echarts.js 408 KB

12345678910111213
  1. !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,e){function n(){this.constructor=t}fd(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(){for(var t=0,e=0,n=arguments.length;n>e;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;n>e;e++)for(var o=arguments[e],a=0,s=o.length;s>a;a++,i++)r[i]=o[a];return r}function r(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function i(t,e){Dd[t]=e}function o(){return kd++}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function s(t){if(null==t||"object"!=typeof t)return t;var e=t,n=_d.call(t);if("[object Array]"===n){if(!X(t)){e=[];for(var r=0,i=t.length;i>r;r++)e[r]=s(t[r])}}else if(md[n]){if(!X(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var r=0,i=t.length;i>r;r++)e[r]=s(t[r])}}}else if(!yd[n]&&!X(t)&&!L(t)){e={};for(var a in t)t.hasOwnProperty(a)&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!I(e)||!I(t))return n?s(e):t;for(var r in e)if(e.hasOwnProperty(r)){var i=t[r],o=e[r];!I(o)||!I(i)||M(o)||M(i)||L(o)||L(i)||A(o)||A(i)||X(o)||X(i)?!n&&r in t||(t[r]=s(e[r])):l(i,o,n)}return t}function u(t,e){for(var n=t[0],r=1,i=t.length;i>r;r++)n=l(n,t[r],e);return n}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function c(t,e,n){for(var r=w(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function p(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n}return-1}function f(t,e){function n(){}var r=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function d(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else c(t,e,n)}function g(t){return t?"string"==typeof t?!1:"number"==typeof t.length:!1}function v(t,e,n){if(t&&e)if(t.forEach&&t.forEach===wd)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;i>r;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function y(t,e,n){if(!t)return[];if(!e)return V(t);if(t.map&&t.map===Md)return t.map(e,n);for(var r=[],i=0,o=t.length;o>i;i++)r.push(e.call(n,t[i],i,t));return r}function m(t,e,n,r){if(t&&e){for(var i=0,o=t.length;o>i;i++)n=e.call(r,n,t[i],i,t);return n}}function _(t,e,n){if(!t)return[];if(!e)return V(t);if(t.filter&&t.filter===bd)return t.filter(e,n);for(var r=[],i=0,o=t.length;o>i;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function x(t,e,n){if(t&&e)for(var r=0,i=t.length;i>r;r++)if(e.call(n,t[r],r,t))return t[r]}function w(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function b(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(Sd.call(arguments)))}}function S(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Sd.call(arguments)))}}function M(t){return Array.isArray?Array.isArray(t):"[object Array]"===_d.call(t)}function T(t){return"function"==typeof t}function C(t){return"string"==typeof t}function D(t){return"[object String]"===_d.call(t)}function k(t){return"number"==typeof t}function I(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function A(t){return!!yd[_d.call(t)]}function O(t){return!!md[_d.call(t)]}function L(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function R(t){return null!=t.colorStops}function P(t){return null!=t.image}function E(t){return"[object RegExp]"===_d.call(t)}function B(t){return t!==t}function N(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;r>n;n++)if(null!=t[n])return t[n]}function z(t,e){return null!=t?t:e}function F(t,e,n){return null!=t?t:null!=e?e:n}function V(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Sd.apply(t,e)}function H(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 G(t,e){if(!t)throw new Error(e)}function W(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function U(t){t[Od]=!0}function X(t){return t[Od]}function Y(t){return new Ld(t)}function q(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n}function j(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&h(n,e),n}function Z(t,e){return t.hasOwnProperty(e)}function K(){}function J(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function $(t,e){return t[0]=e[0],t[1]=e[1],t}function Q(t){return[t[0],t[1]]}function te(t,e,n){return t[0]=e,t[1]=n,t}function ee(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function ne(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function re(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function ie(t){return Math.sqrt(oe(t))}function oe(t){return t[0]*t[0]+t[1]*t[1]}function ae(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function se(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function le(t,e){return t[0]*e[0]+t[1]*e[1]}function ue(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function he(t,e){var n=ie(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ce(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function pe(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function fe(t,e){return t[0]=-e[0],t[1]=-e[1],t}function de(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function ge(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function ve(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ye(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function me(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/Gd);return t[n][l]}for(var u=r|1<<n,h=n+1;r&1<<h;)h++;for(var c=0,p=0,f=0;s>p;p++){var d=1<<p;d&i||(c+=(f%2?-1:1)*t[n][p]*me(t,e-1,h,u,i|d,o),f++)}return o[a]=c,c}function _e(t,e){var n=[[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]]],r={},i=me(n,8,0,0,0,r);if(0!==i){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)*me(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}function xe(t,e,n,r,i){if(e.getBoundingClientRect&&vd.domSupported&&!Se(e)){var o=e[Wd]||(e[Wd]={}),a=we(e,o),s=be(a,o,i);if(s)return s(t,n,r),!0}return!1}function we(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["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",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function be(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,f=h.top;a.push(p,f),l=l&&o&&p===o[c]&&f===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?_e(s,a):_e(a,s))}function Se(t){return"CANVAS"===t.nodeName.toUpperCase()}function Me(t,e,n,r){return n=n||{},r||!vd.canvasSupported?Te(t,e,n):vd.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Te(t,e,n),n}function Te(t,e,n){if(vd.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Se(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(xe(Yd,t,r,i))return n.zrX=Yd[0],void(n.zrY=Yd[1])}n.zrX=n.zrY=0}function Ce(t){return t||window.event}function De(t,e,n){if(e=Ce(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&Me(t,o,e,n)}else{Me(t,e,e,n);var a=ke(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&Xd.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function ke(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=Math.abs(0!==r?r:n),o=r>0?-1:0>r?1:n>0?-1:1;return 3*i*o}function Ie(t,e,n,r){Ud?t.addEventListener(e,n,r):t.attachEvent("on"+e,n)}function Ae(t,e,n,r){Ud?t.removeEventListener(e,n,r):t.detachEvent("on"+e,n)}function Oe(t){return 2===t.which||3===t.which}function Le(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Re(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Pe(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ee}}function Ee(){qd(this.event)}function Be(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s?s:r.parent}return i?Kd:!0}return!1}function Ne(t,e,n){var r=t.painter;return 0>e||e>r.getWidth()||0>n||n>r.getHeight()}function ze(){return[1,0,0,1,0,0]}function Fe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ve(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 He(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ge(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function We(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=r*h+a*u,t[1]=-r*u+a*h,t[2]=i*h+s*u,t[3]=-i*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ue(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Xe(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function Ye(t){var e=ze();return Ve(e,t),e}function qe(t){return t>og||-og>t}function je(t){return t=Math.round(t),0>t?0:t>255?255:t}function Ze(t){return t=Math.round(t),0>t?0:t>360?360:t}function Ke(t){return 0>t?0:t>1?1:t}function Je(t){var e=t;return je(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function $e(t){var e=t;return Ke(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Qe(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function tn(t,e,n){return t+(e-t)*n}function en(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function nn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function rn(t,e){mg&&nn(mg,e),mg=yg.put(t,mg||e.slice())}function on(t,e){if(t){e=e||[];var n=yg.get(t);if(n)return nn(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in vg)return nn(e,vg[r]),rn(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===i){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?en(e,+l[0],+l[1],+l[2],1):en(e,0,0,0,1);u=$e(l.pop());case"rgb":return 3!==l.length?void en(e,0,0,0,1):(en(e,Je(l[0]),Je(l[1]),Je(l[2]),u),rn(t,e),e);case"hsla":return 4!==l.length?void en(e,0,0,0,1):(l[3]=$e(l[3]),an(l,e),rn(t,e),e);case"hsl":return 3!==l.length?void en(e,0,0,0,1):(an(l,e),rn(t,e),e);default:return}}en(e,0,0,0,1)}else{if(4===i||5===i){var h=parseInt(r.slice(1,4),16);return h>=0&&4095>=h?(en(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===i?parseInt(r.slice(4),16)/15:1),rn(t,e),e):void en(e,0,0,0,1)}if(7===i||9===i){var h=parseInt(r.slice(1,7),16);return h>=0&&16777215>=h?(en(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===i?parseInt(r.slice(7),16)/255:1),rn(t,e),e):void en(e,0,0,0,1)}}}}function an(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=$e(t[1]),i=$e(t[2]),o=.5>=i?i*(r+1):i+r-i*r,a=2*i-o;return e=e||[],en(e,je(255*Qe(a,o,n+1/3)),je(255*Qe(a,o,n)),je(255*Qe(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function sn(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var h=((s-r)/6+l/2)/l,c=((s-i)/6+l/2)/l,p=((s-o)/6+l/2)/l;r===s?e=p-c:i===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function ln(t,e){var n=on(t);if(n){for(var r=0;3>r;r++)n[r]=0>e?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return dn(n,4===n.length?"rgba":"rgb")}}function un(t){var e=on(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function hn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=je(tn(a[0],s[0],l)),n[1]=je(tn(a[1],s[1],l)),n[2]=je(tn(a[2],s[2],l)),n[3]=Ke(tn(a[3],s[3],l)),n}}function cn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=on(e[i]),s=on(e[o]),l=r-i,u=dn([je(tn(a[0],s[0],l)),je(tn(a[1],s[1],l)),je(tn(a[2],s[2],l)),Ke(tn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function pn(t,e,n,r){var i=on(t);return t?(i=sn(i),null!=e&&(i[0]=Ze(e)),null!=n&&(i[1]=$e(n)),null!=r&&(i[2]=$e(r)),dn(an(i),"rgba")):void 0}function fn(t,e){var n=on(t);return n&&null!=e?(n[3]=Ke(e),dn(n,"rgba")):void 0}function dn(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function gn(t,e){var n=on(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function vn(){var t=Math.round(255*Math.random()),e=Math.round(255*Math.random()),n=Math.round(255*Math.random());return"rgb("+t+","+e+","+n+")"}function yn(t,e,n){return(e-t)*n+t}function mn(t,e,n){return n>.5?e:t}function _n(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=yn(e[o],n[o],r)}function xn(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;i>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=yn(e[a][s],n[a][s],r)}}function wn(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=e[o]+n[o]*r;return t}function bn(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;i>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function Sn(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;a>l;l++)r.push(1===n?i[l]:bg.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var h=0;u>h;h++)isNaN(r[l][h])&&(r[l][h]=i[l][h])}}function Mn(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;n>r;r++)if(t[r]!==e[r])return!1;return!0}function Tn(t,e,n,r,i,o,a){var s=.5*(n-t),l=.5*(r-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*i+e}function Cn(t,e,n,r,i,o,a,s){for(var l=e.length,u=0;l>u;u++)t[u]=Tn(e[u],n[u],r[u],i[u],o,a,s)}function Dn(t,e,n,r,i,o,a,s){for(var l=e.length,u=e[0].length,h=0;l>h;h++){t[h]||(t[1]=[]);for(var c=0;u>c;c++)t[h][c]=Tn(e[h][c],n[h][c],r[h][c],i[h][c],o,a,s)}}function kn(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],r=0;e>r;r++)n.push(bg.call(t[r]));return n}return bg.call(t)}return t}function In(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function An(t){return g(t&&t[0])?2:1}function On(t,e){return eg||(eg=Id().getContext("2d")),ng!==e&&(ng=eg.font=e||Ng),eg.measureText(t)}function Ln(t,e){e=e||Ng;var n=Bg[e];n||(n=Bg[e]=new gg(500));var r=n.get(t);return null==r&&(r=zg.measureText(t,e).width,n.put(t,r)),r}function Rn(t,e,n,r){var i=Ln(t,e),o=Nn(e),a=En(0,i,n),s=Bn(0,o,r),l=new Eg(a,s,i,o);return l}function Pn(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return Rn(i[0],e,n,r);for(var a=new Eg(0,0,0,0),s=0;s<i.length;s++){var l=Rn(i[s],e,n,r);0===s?a.copy(l):a.union(l)}return a}function En(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Bn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Nn(t){return Ln("国",t)}function zn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Fn(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(r instanceof Array)l+=zn(r[0],n.width),u+=zn(r[1],n.height),h=null,c=null;else switch(r){case"left":l-=i,u+=s,h="right",c="middle";break;case"right":l+=i+a,u+=s,c="middle";break;case"top":l+=a/2,u-=i,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+i,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=a-i,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=i,h="center";break;case"insideBottom":l+=a/2,u+=o-i,h="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,h="right";break;case"insideBottomLeft":l+=i,u+=o-i,c="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Vn(t,e,n,r,i){n=n||{};var o=[];Un(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},c=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var f=o[p];h&&f.done(h),c&&f.aborted(c),f.start(n.easing,n.force)}return o}function Hn(t,e,n){for(var r=0;n>r;r++)t[r]=e[r]}function Gn(t){return g(t[0])}function Wn(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),O(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Hn(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Gn(i))for(var s=i[0].length,l=0;a>l;l++)o[l]?Hn(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Hn(o,i,a);o.length=i.length}else t[n]=e[n]}function Un(t,e,n,r,i,o,a,s){for(var l=[],u=[],h=w(r),c=i.duration,f=i.delay,d=i.additive,v=i.setToFinal,y=!I(o),m=0;m<h.length;m++){var _=h[m];if(null!=n[_]&&null!=r[_]&&(y||o[_]))if(I(r[_])&&!g(r[_])){if(e){s||(n[_]=r[_],t.updateDuringAnimation(e));continue}Un(t,_,n[_],r[_],i,o&&o[_],a,s)}else l.push(_),u.push(_);else s||(n[_]=r[_],t.updateDuringAnimation(e),u.push(_))}var x=l.length;if(x>0||i.force&&!a.length){for(var b=t.animators,S=[],M=0;M<b.length;M++)b[M].targetName===e&&S.push(b[M]);if(!d&&S.length)for(var M=0;M<S.length;M++){var T=S[M].stopTracks(u);if(T){var C=p(b,S[M]);b.splice(C,1)}}var D=void 0,k=void 0,A=void 0;if(s){k={},v&&(D={});for(var M=0;x>M;M++){var _=l[M];k[_]=n[_],v?D[_]=r[_]:n[_]=r[_]}}else if(v){A={};for(var M=0;x>M;M++){var _=l[M];A[_]=kn(n[_]),Wn(n,r,_)}}var O=new Tg(n,!1,d?S:null);O.targetName=e,i.scope&&(O.scope=i.scope),v&&D&&O.whenWithKeys(0,D,l),A&&O.whenWithKeys(0,A,l),O.whenWithKeys(null==c?500:c,s?k:r,l).delay(f||0),t.addAnimator(O,e),a.push(O)}}function Xn(t){for(var e=0;t>=$g;)e|=1&t,t>>=1;return t+e}function Yn(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;n>i&&r(t[i],t[i-1])<0;)i++;qn(t,e,i)}else for(;n>i&&r(t[i],t[i-1])>=0;)i++;return i-e}function qn(t,e,n){for(n--;n>e;){var r=t[e];t[e++]=t[n],t[n--]=r}}function jn(t,e,n,r,i){for(r===e&&r++;n>r;r++){for(var o,a=t[r],s=e,l=r;l>s;)o=s+l>>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-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 Zn(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;s>l&&o(t,e[n+i+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;s>l&&o(t,e[n+i-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Kn(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;s>l&&o(t,e[n+i-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;s>l&&o(t,e[n+i+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Jn(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function r(){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 i(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(n){var r=l[n],i=u[n],o=l[n+1],h=u[n+1];u[n]=i+h,n===c-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),c--;var p=Kn(t[o],t,r,i,0,e);r+=p,i-=p,0!==i&&(h=Zn(t[r+i-1],t,o,h,h-1,e),0!==h&&(h>=i?a(r,i,o,h):s(r,i,o,h)))}function a(n,r,i,o){var a=0;for(a=0;r>a;a++)p[a]=t[n+a];var s=0,l=i,u=n;if(t[u++]=t[l++],0!==--o){if(1===r){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,f,d,g=h;;){c=0,f=0,d=!1;do if(e(t[l],p[s])<0){if(t[u++]=t[l++],f++,c=0,0===--o){d=!0;break}}else if(t[u++]=p[s++],c++,f=0,1===--r){d=!0;break}while(g>(c|f));if(d)break;do{if(c=Kn(t[l],p,s,r,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,r-=c,1>=r){d=!0;break}}if(t[u++]=t[l++],0===--o){d=!0;break}if(f=Zn(p[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){d=!0;break}}if(t[u++]=p[s++],1===--r){d=!0;break}g--}while(c>=Qg||f>=Qg);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===r){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===r)throw new Error;for(a=0;r>a;a++)t[u+a]=p[s+a]}}else for(a=0;r>a;a++)t[u+a]=p[s+a]}function s(n,r,i,o){var a=0;for(a=0;o>a;a++)p[a]=t[i+a];var s=n+r-1,l=o-1,u=i+o-1,c=0,f=0;if(t[u--]=t[s--],0!==--r){if(1===o){for(u-=r,s-=r,f=u+1,c=s+1,a=r-1;a>=0;a--)t[f+a]=t[c+a];return void(t[u]=p[l])}for(var d=h;;){var g=0,v=0,y=!1;do if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0===--r){y=!0;break}}else if(t[u--]=p[l--],v++,g=0,1===--o){y=!0;break}while(d>(g|v));if(y)break;do{if(g=r-Kn(p[l],t,n,r,r-1,e),0!==g){for(u-=g,s-=g,r-=g,f=u+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===r){y=!0;break}}if(t[u--]=p[l--],1===--o){y=!0;break}if(v=o-Zn(t[s],p,0,o,o-1,e),0!==v){for(u-=v,l-=v,o-=v,f=u+1,c=l+1,a=0;v>a;a++)t[f+a]=p[c+a];if(1>=o){y=!0;break}}if(t[u--]=t[s--],0===--r){y=!0;break}d--}while(g>=Qg||v>=Qg);if(y)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=r,s-=r,f=u+1,c=s+1,a=r-1;a>=0;a--)t[f+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=Qg,c=0,p=[];return l=[],u=[],{mergeRuns:r,forceMergeRuns:i,pushRun:n}}function $n(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(2>i)){var o=0;if($g>i)return o=Yn(t,n,r,e),void jn(t,n,r,n+o,e);var a=Jn(t,e),s=Xn(i);do{if(o=Yn(t,n,r,e),s>o){var l=i;l>s&&(l=s),jn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}function Qn(){tv||(tv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function tr(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function er(t){var e=t.pointerType;return"pen"===e||"touch"===e}function nr(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 rr(t){t&&(t.zrByTouch=!0)}function ir(t,e){return De(t.dom,new uv(t,e),!0)}function or(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}function ar(t,e){var n=e.domHandlers;vd.pointerEventsSupported?v(av.pointer,function(r){lr(e,r,function(e){n[r].call(t,e)})}):(vd.touchEventsSupported&&v(av.touch,function(r){lr(e,r,function(i){n[r].call(t,i),nr(e)})}),v(av.mouse,function(r){lr(e,r,function(i){i=Ce(i),e.touching||n[r].call(t,i)})}))}function sr(t,e){function n(n){function r(r){r=Ce(r),or(t,r.target)||(r=ir(t,r),e.domHandlers[n].call(t,r))}lr(e,n,r,{capture:!0})}vd.pointerEventsSupported?v(sv.pointer,n):vd.touchEventsSupported||v(sv.mouse,n)}function lr(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,Ie(t.domTarget,e,n,r)}function ur(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Ae(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function hr(t){delete yv[t]}function cr(t){if(!t)return!1;if("string"==typeof t)return gn(t,1)<Hg;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;r>i;i++)n+=gn(e[i].color,1);return n/=r,Hg>n}return!1}function pr(t,e){var n=new mv(o(),t,e);return yv[n.id]=n,n}function fr(t){t.dispose()}function dr(){for(var t in yv)yv.hasOwnProperty(t)&&yv[t].dispose();yv={}}function gr(t){return yv[t]}function vr(t,e){vv[t]=e}function yr(t){return t.replace(/^\s+|\s+$/g,"")}function mr(t,e,n,r){var i=e[1]-e[0],o=n[1]-n[0];if(0===i)return 0===o?n[0]:(n[0]+n[1])/2;if(r)if(i>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/i*o+n[0]}function _r(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?yr(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function xr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function wr(t){return t.sort(function(t,e){return t-e}),t}function br(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Sr(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var r=+e.slice(n+1);return 0>r?-r:0}var i=e.indexOf(".");return 0>i?0:e.length-1-i}function Mr(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Tr(t,e,n){if(!t[e])return 0;var r=m(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===r)return 0;for(var i=Math.pow(10,n),o=y(t,function(t){return(isNaN(t)?0:t)/r*i*100}),a=100*i,s=y(o,function(t){return Math.floor(t)}),l=m(s,function(t,e){return t+e},0),u=y(o,function(t,e){return t-s[e]});a>l;){for(var h=Number.NEGATIVE_INFINITY,c=null,p=0,f=u.length;f>p;++p)u[p]>h&&(h=u[p],c=p);++s[c],u[c]=0,++l}return s[e]/i}function Cr(t){var e=2*Math.PI;return(t%e+e)%e}function Dr(t){return t>-wv&&wv>t}function kr(t){if(t instanceof Date)return t;if("string"==typeof t){var e=Sv.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return new Date(null==t?0/0:Math.round(t))}function Ir(t){return Math.pow(10,Ar(t))}function Ar(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 Or(t,e){var n,r=Ar(t),i=Math.pow(10,r),o=t/i;return n=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=n*i,r>=-20?+t.toFixed(0>r?-r:0):t}function Lr(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function Rr(t){function e(t,n,r){return t.interval[r]<n.interval[r]||t.interval[r]===n.interval[r]&&(t.close[r]-n.close[r]===(r?-1:1)||!r&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,r=1,i=0;i<t.length;){for(var o=t[i].interval,a=t[i].close,s=0;2>s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-r),n=o[s],r=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t}function Pr(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:0/0}function Er(t){return!isNaN(Pr(t))}function Br(){return Math.round(9*Math.random())}function Nr(t,e){return 0===e?t:Nr(e,t%e)}function zr(t,e){return null==t?e:null==e?t:t*e/Nr(t,e)}function Fr(t){throw new Error(t)}function Vr(t){return t instanceof Array?t:null==t?[]:[t]}function Hr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;i>r;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Gr(t){return!I(t)||M(t)||t instanceof Date?t:t.value}function Wr(t){return I(t)&&!(t instanceof Array)}function Ur(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Y();v(e,function(t,n){return I(t)?void 0:void(e[n]=null)});var s=Xr(t,a,n);return(r||i)&&Yr(s,t,a,e),r&&qr(s,e),r||i?jr(s,e,i):o&&Zr(s,e),Kr(s),s}function Xr(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||ei(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Yr(t,e,n,r){v(r,function(i,o){if(i&&null!=i.id){var a=$r(i.id),s=n.get(a);if(null!=s){var l=t[s];G(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}})}function qr(t,e){v(e,function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!ei(n)&&!ei(o)&&Jr("name",o,n))return t[i].newOption=n,void(e[r]=null)}})}function jr(t,e,n){v(e,function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||ei(r.existing)||r.existing&&null!=e.id&&!Jr("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}})}function Zr(t,e){v(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Kr(t){var e=Y();v(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),v(t,function(t){var n=t.newOption;G(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),v(t,function(t,n){var r=t.existing,i=t.newOption,o=t.keyInfo;if(I(i)){if(o.name=null!=i.name?$r(i.name):r?r.name:Mv+n,r)o.id=$r(r.id);else if(null!=i.id)o.id=$r(i.id);else{var a=0;do o.id="\x00"+o.name+"\x00"+a++;while(e.get(o.id))}e.set(o.id,t)}})}function Jr(t,e,n){var r=Qr(e[t],null),i=Qr(n[t],null);return null!=r&&null!=i&&r===i}function $r(t){return Qr(t,"")}function Qr(t,e){if(null==t)return e;var n=typeof t;return"string"===n?t:"number"===n||D(t)?t+"":e}function ti(t){var e=t.name;return!(!e||!e.indexOf(Mv))}function ei(t){return t&&null!=t.id&&0===$r(t.id).indexOf(Tv)}function ni(t,e,n){v(t,function(t){var r=t.newOption;I(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=ri(e,r,t.existing,n))
  2. })}function ri(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function ii(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?M(e.dataIndex)?y(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?M(e.name)?y(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function oi(){var t="__ec_inner_"+Dv++;return function(e){return e[t]||(e[t]={})}}function ai(t,e,n){var r=si(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(e,r){var i=li(t,r,e,{useDefault:l===r,enableAll:n&&null!=n.enableAll?n.enableAll:!0,enableNone:n&&null!=n.enableNone?n.enableNone:!0});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]}),s}function si(t,e){var n;if(C(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Y(),o={},a=!1;return v(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n)return void(o[n]=t);var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&p(e.includeMainTypes,s)<0)){a=a||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}function li(t,e,n,r){r=r||kv;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||i===!1?(G(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(G(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function ui(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function hi(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function ci(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if("number"==typeof r){var a=yn(n||0,r,i);return xr(a,o?Math.max(Sr(n||0),Sr(r)):e)}if("string"==typeof r)return 1>i?n:r;for(var s=[],l=n,u=r,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if("ordinal"===p.type)s[c]=(1>i&&l?l:u)[c];else{var f=l&&l[c]?l[c]:0,d=u[c],a=yn(f,d,i);s[c]=xr(a,o?Math.max(Sr(f),Sr(d)):e)}}return s}function pi(t){var e={main:"",sub:""};if(t){var n=t.split(Iv);e.main=n[0]||"",e.sub=n[1]||""}return e}function fi(t){G(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function di(t){return!(!t||!t[Ov])}function gi(t){t.$constructor=t,t.extend=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(t.$constructor)t.$constructor.apply(this,arguments);else{if(vi(r)){var a=j(e.prototype,new(r.bind.apply(r,n([void 0],i))));return a}r.apply(this,arguments)}}var r=this;return e[Ov]=!0,h(e.prototype,t),e.extend=this.extend,e.superCall=_i,e.superApply=xi,f(e,this),e.superClass=r,e}}function vi(t){return"function"==typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}function yi(t,e){t.extend=e.extend}function mi(t){var e=["__\x00is_clz",Lv++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function _i(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function xi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function wi(t){function e(t){var e=n[t.main];return e&&e[Av]||(e=n[t.main]={},e[Av]=!0),e}var n={};t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){fi(r),t.prototype.type=r;var i=pi(r);if(i.sub){if(i.sub!==Av){var o=e(i);o[i.sub]=t}}else n[i.main]=t}return t},t.getClass=function(t,e,r){var i=n[t];if(i&&i[Av]&&(i=e?i[e]:null),r&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var e=pi(t),r=[],i=n[e.main];return i&&i[Av]?v(i,function(t,e){e!==Av&&r.push(t)}):r.push(i),r},t.hasClass=function(t){var e=pi(t);return!!n[e.main]},t.getAllClassMainTypes=function(){var t=[];return v(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var e=pi(t),r=n[e.main];return r&&r[Av]}}function bi(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&p(r,s)>=0||i&&p(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function Si(t){if("string"==typeof t){var e=Bv.get(t);return e&&e.image}return t}function Mi(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Bv.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!Ci(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Ti,Bv.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Ti(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Ci(t){return t&&t.width&&t.height}function Di(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=ki(e,n,r,i);for(var a=0,s=o.length;s>a;a++)o[a]=Ii(o[a],i);return o.join("\n")}function ki(t,e,n,r){r=r||{};var i=h({},r);i.font=e,n=z(n,"..."),i.maxIterations=z(r.maxIterations,2);var o=i.minChar=z(r.minChar,0);i.cnCharWidth=Ln("国",e);var a=i.ascCharWidth=Ln("a",e);i.placeholder=z(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=Ln(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Ii(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=Ln(t,r);if(n>=o)return t;for(var a=0;;a++){if(i>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ai(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=Ln(t,r)}return""===t&&(t=e.placeholder),t}function Ai(t,e,n,r){for(var i=0,o=0,a=t.length;a>o&&e>i;o++){var s=t.charCodeAt(o);i+=s>=0&&127>=s?n:r}return o}function Oi(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=Nn(o),l=z(e.lineHeight,s),u="truncate"===e.lineOverflow,h=e.width;n=null!=h&&"break"===r||"breakAll"===r?t?Bi(t,e.font,h,"breakAll"===r,0).lines:[]:t?t.split("\n"):[];var c=n.length*l,p=z(e.height,c);if(c>p&&u){var f=Math.floor(p/l);n=n.slice(0,f)}var d=p,g=h;if(i&&(d+=i[0]+i[2],null!=g&&(g+=i[1]+i[3])),t&&a&&null!=g)for(var v=ki(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=Ii(n[y],v);if(null==h){for(var m=0,y=0;y<n.length;y++)m=Math.max(Ln(n[y],o),m);h=m}return{lines:n,height:p,outerHeight:d,lineHeight:l,calculatedLineHeight:s,contentHeight:c,width:h}}function Li(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,p+=n,f=Math.max(f,e)}var r=new Vv;if(null!=t&&(t+=""),!t)return r;for(var i,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=Nv.lastIndex=0;null!=(i=Nv.exec(t));){var h=i.index;h>u&&Ri(r,t.substring(u,h),e,l),Ri(r,i[2],e,l,i[1]),u=Nv.lastIndex}u<t.length&&Ri(r,t.substring(u,t.length),e,l);var c=[],p=0,f=0,d=e.padding,g="truncate"===s,v="truncate"===e.lineOverflow;t:for(var y=0;y<r.lines.length;y++){for(var m=r.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},M=b.textPadding=S.padding,T=M?M[1]+M[3]:0,C=b.font=S.font||e.font;b.contentHeight=Nn(C);var D=z(S.height,b.contentHeight);if(b.innerHeight=D,M&&(D+=M[0]+M[2]),b.height=D,b.lineHeight=F(S.lineHeight,e.lineHeight,D),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",v&&null!=a&&p+b.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),n(m,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break t}var k=S.width,I=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))b.percentWidth=k,c.push(b),b.contentWidth=Ln(b.text,C);else{if(I){var A=S.backgroundColor,O=A&&A.image;O&&(O=Si(O),Ci(O)&&(b.width=Math.max(b.width,O.width*D/O.height)))}var L=g&&null!=o?o-x:null;null!=L&&L<b.width?!I||T>L?(b.text="",b.width=b.contentWidth=0):(b.text=Di(b.text,L-T,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=Ln(b.text,C)):b.contentWidth=Ln(b.text,C)}b.width+=T,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}n(m,x,_)}r.outerWidth=r.width=z(o,f),r.outerHeight=r.height=z(a,p),r.contentHeight=p,r.contentWidth=f,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var y=0;y<c.length;y++){var b=c[y],R=b.percentWidth;b.width=parseInt(R,10)/100*r.width}return r}function Ri(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,h=l.font||n.font,c=!1;if(r){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=zn(l.width,r.width)+f;u.length>0&&d+r.accumWidth>r.width&&(o=e.split("\n"),c=!0),r.accumWidth=d}else{var g=Bi(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new zv;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!s,m.width="number"==typeof l.width?l.width:a?a[v]:Ln(y,h),v||c)u.push(new Fv([m]));else{var _=(u[u.length-1]||(u[0]=new Fv)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(y||!x||s)&&_.push(m)}}}function Pi(t){var e=t.charCodeAt(0);return e>=33&&255>=e}function Ei(t){return Pi(t)?Hv[t]?!0:!1:!0}function Bi(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var p=t.charAt(c);if("\n"!==p){var f=Ln(p,e),d=r?!1:!Ei(p);(o.length?h+f>n:i+h+f>n)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=f,s="",h=u):(l&&(s+=l,h+=u,l="",u=0),o.push(s),a.push(h),s=p,h=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(h+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=i),{accumWidth:h,lines:o,linesWidths:a}}function Ni(t,e,n){return qv.copy(t.getBoundingRect()),t.transform&&qv.applyTransform(t.transform),jv.width=e,jv.height=n,!qv.intersect(jv)}function zi(t){return t>-Jv&&Jv>t}function Fi(t){return t>Jv||-Jv>t}function Vi(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function Hi(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function Gi(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(zi(h)&&zi(c))if(zi(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[f++]=d)}else{var g=c*c-4*h*p;if(zi(g)){var v=c/h,d=-s/a+v,y=-v/2;d>=0&&1>=d&&(o[f++]=d),y>=0&&1>=y&&(o[f++]=y)}else if(g>0){var m=Kv(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-Zv(-_,ty):Zv(_,ty),x=0>x?-Zv(-x,ty):Zv(x,ty);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var w=(2*h*s-3*a*c)/(2*Kv(h*h*h)),b=Math.acos(w)/3,S=Kv(h),M=Math.cos(b),d=(-s-2*S*M)/(3*a),y=(-s+S*(M+Qv*Math.sin(b)))/(3*a),T=(-s+S*(M-Qv*Math.sin(b)))/(3*a);d>=0&&1>=d&&(o[f++]=d),y>=0&&1>=y&&(o[f++]=y),T>=0&&1>=T&&(o[f++]=T)}}return f}function Wi(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(zi(a)){if(Fi(o)){var u=-s/o;u>=0&&1>=u&&(i[l++]=u)}}else{var h=o*o-4*a*s;if(zi(h))i[0]=-o/(2*a);else if(h>0){var c=Kv(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(i[l++]=u),p>=0&&1>=p&&(i[l++]=p)}}return l}function Ui(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,h=(l-s)*i+s,c=(h-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=r}function Xi(t,e,n,r,i,o,a,s,l,u,h){var c,p,f,d,g,v=.005,y=1/0;ey[0]=l,ey[1]=u;for(var m=0;1>m;m+=.05)ny[0]=Vi(t,n,i,a,m),ny[1]=Vi(e,r,o,s,m),d=Nd(ey,ny),y>d&&(c=m,y=d);y=1/0;for(var _=0;32>_&&!($v>v);_++)p=c-v,f=c+v,ny[0]=Vi(t,n,i,a,p),ny[1]=Vi(e,r,o,s,p),d=Nd(ny,ey),p>=0&&y>d?(c=p,y=d):(ry[0]=Vi(t,n,i,a,f),ry[1]=Vi(e,r,o,s,f),g=Nd(ry,ey),1>=f&&y>g?(c=f,y=g):v*=.5);return h&&(h[0]=Vi(t,n,i,a,c),h[1]=Vi(e,r,o,s,c)),Kv(y)}function Yi(t,e,n,r,i,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,f=1;l>=f;f++){var d=f*p,g=Vi(t,n,i,a,d),v=Vi(e,r,o,s,d),y=g-u,m=v-h;c+=Math.sqrt(y*y+m*m),u=g,h=v}return c}function qi(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function ji(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Zi(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(zi(o)){if(Fi(a)){var u=-s/a;u>=0&&1>=u&&(i[l++]=u)}}else{var h=a*a-4*o*s;if(zi(h)){var u=-a/(2*o);u>=0&&1>=u&&(i[l++]=u)}else if(h>0){var c=Kv(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(i[l++]=u),p>=0&&1>=p&&(i[l++]=p)}}return l}function Ki(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Ji(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function $i(t,e,n,r,i,o,a,s,l){var u,h=.005,c=1/0;ey[0]=a,ey[1]=s;for(var p=0;1>p;p+=.05){ny[0]=qi(t,n,i,p),ny[1]=qi(e,r,o,p);var f=Nd(ey,ny);c>f&&(u=p,c=f)}c=1/0;for(var d=0;32>d&&!($v>h);d++){var g=u-h,v=u+h;ny[0]=qi(t,n,i,g),ny[1]=qi(e,r,o,g);var f=Nd(ny,ey);if(g>=0&&c>f)u=g,c=f;else{ry[0]=qi(t,n,i,v),ry[1]=qi(e,r,o,v);var y=Nd(ry,ey);1>=v&&c>y?(u=v,c=y):h*=.5}}return l&&(l[0]=qi(t,n,i,u),l[1]=qi(e,r,o,u)),Kv(c)}function Qi(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,f=qi(t,n,i,p),d=qi(e,r,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}function to(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=iy(i,r[0]),o=oy(o,r[0]),a=iy(a,r[1]),s=oy(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function eo(t,e,n,r,i,o){i[0]=iy(t,n),i[1]=iy(e,r),o[0]=oy(t,n),o[1]=oy(e,r)}function no(t,e,n,r,i,o,a,s,l,u){var h=Wi,c=Vi,p=h(t,n,i,a,py);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;p>f;f++){var d=c(t,n,i,a,py[f]);l[0]=iy(d,l[0]),u[0]=oy(d,u[0])}p=h(e,r,o,s,fy);for(var f=0;p>f;f++){var g=c(e,r,o,s,fy[f]);l[1]=iy(g,l[1]),u[1]=oy(g,u[1])}l[0]=iy(t,l[0]),u[0]=oy(t,u[0]),l[0]=iy(a,l[0]),u[0]=oy(a,u[0]),l[1]=iy(e,l[1]),u[1]=oy(e,u[1]),l[1]=iy(s,l[1]),u[1]=oy(s,u[1])}function ro(t,e,n,r,i,o,a,s){var l=Ki,u=qi,h=oy(iy(l(t,n,i),1),0),c=oy(iy(l(e,r,o),1),0),p=u(t,n,i,h),f=u(e,r,o,c);a[0]=iy(t,i,p),a[1]=iy(e,o,f),s[0]=oy(t,i,p),s[1]=oy(e,o,f)}function io(t,e,n,r,i,o,a,s,l){var u=ve,h=ye,c=Math.abs(i-o);if(1e-4>c%ly&&c>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(uy[0]=sy(i)*n+t,uy[1]=ay(i)*r+e,hy[0]=sy(o)*n+t,hy[1]=ay(o)*r+e,u(s,uy,hy),h(l,uy,hy),i%=ly,0>i&&(i+=ly),o%=ly,0>o&&(o+=ly),i>o&&!a?o+=ly:o>i&&a&&(i+=ly),a){var p=o;o=i,i=p}for(var f=0;o>f;f+=Math.PI/2)f>i&&(cy[0]=sy(f)*n+t,cy[1]=ay(f)*r+e,u(s,cy,s),h(l,cy,l))}function oo(t){var e=Math.round(t/Dy*1e8)/1e8;return e%2*Dy}function ao(t,e){var n=oo(t[0]);0>n&&(n+=ky);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=ky?i=n+ky:e&&n-i>=ky?i=n-ky:!e&&n>i?i=n+(ky-oo(n-i)):e&&i>n&&(i=n-(ky-oo(i-n))),t[0]=n,t[1]=i}function so(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||e-s>a&&r-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function lo(t,e,n,r,i,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>r+c&&h>o+c&&h>s+c||e-c>h&&r-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>i+c&&u>a+c||t-c>u&&n-c>u&&i-c>u&&a-c>u)return!1;var p=Xi(t,e,n,r,i,o,a,s,u,h,null);return c/2>=p}function uo(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||e-u>l&&r-u>l&&o-u>l||s>t+u&&s>n+u&&s>i+u||t-u>s&&n-u>s&&i-u>s)return!1;var h=$i(t,e,n,r,i,o,s,l,null);return u/2>=h}function ho(t){return t%=Ly,0>t&&(t+=Ly),t}function co(t,e,n,r,i,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>n||n>h+u)return!1;if(Math.abs(r-i)%Ry<1e-4)return!0;if(o){var c=r;r=ho(i),i=ho(c)}else r=ho(r),i=ho(i);r>i&&(i+=Ry);var p=Math.atan2(l,s);return 0>p&&(p+=Ry),p>=r&&i>=p||p+Ry>=r&&i>=p+Ry}function po(t,e,n,r,i,o){if(o>e&&o>r||e>o&&r>o)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=e>r?1:-1;(1===a||0===a)&&(s=e>r?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}function fo(t,e){return Math.abs(t-e)<By}function go(){var t=zy[0];zy[0]=zy[1],zy[1]=t}function vo(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||e>u&&r>u&&o>u&&s>u)return 0;var h=Gi(e,r,o,s,u,Ny);if(0===h)return 0;for(var c=0,p=-1,f=void 0,d=void 0,g=0;h>g;g++){var v=Ny[g],y=0===v||1===v?.5:1,m=Vi(t,n,i,a,v);l>m||(0>p&&(p=Wi(e,r,o,s,zy),zy[1]<zy[0]&&p>1&&go(),f=Vi(e,r,o,s,zy[0]),p>1&&(d=Vi(e,r,o,s,zy[1]))),c+=2===p?v<zy[0]?e>f?y:-y:v<zy[1]?f>d?y:-y:d>s?y:-y:v<zy[0]?e>f?y:-y:f>s?y:-y)}return c}function yo(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||e>s&&r>s&&o>s)return 0;var l=Zi(e,r,o,s,Ny);if(0===l)return 0;var u=Ki(e,r,o);if(u>=0&&1>=u){for(var h=0,c=qi(e,r,o,u),p=0;l>p;p++){var f=0===Ny[p]||1===Ny[p]?.5:1,d=qi(t,n,i,Ny[p]);a>d||(h+=Ny[p]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===Ny[0]||1===Ny[0]?.5:1,d=qi(t,n,i,Ny[0]);return a>d?0:e>o?f:-f}function mo(t,e,n,r,i,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);Ny[0]=-l,Ny[1]=l;var u=Math.abs(r-i);if(1e-4>u)return 0;if(u>=Ey-1e-4){r=0,i=Ey;var h=o?1:-1;return a>=Ny[0]+t&&a<=Ny[1]+t?h:0}if(r>i){var c=r;r=i,i=c}0>r&&(r+=Ey,i+=Ey);for(var p=0,f=0;2>f;f++){var d=Ny[f];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=Ey+g),(g>=r&&i>=g||g+Ey>=r&&i>=g+Ey)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function _o(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,f=0,d=0;l>d;){var g=s[d++],v=1===d;switch(g===Py.M&&d>1&&(n||(u+=po(h,c,p,f,r,i))),v&&(h=s[d],c=s[d+1],p=h,f=c),g){case Py.M:p=s[d++],f=s[d++],h=p,c=f;break;case Py.L:if(n){if(so(h,c,s[d],s[d+1],e,r,i))return!0}else u+=po(h,c,s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case Py.C:if(n){if(lo(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=vo(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case Py.Q:if(n){if(uo(h,c,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=yo(h,c,s[d++],s[d++],s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case Py.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(w)*_+y,a=Math.sin(w)*x+m,v?(p=o,f=a):u+=po(h,c,o,a,r,i);var M=(r-y)*x/_+y;if(n){if(co(y,m,x,w,w+b,S,e,M,i))return!0}else u+=mo(y,m,x,w,w+b,S,M,i);h=Math.cos(w+b)*_+y,c=Math.sin(w+b)*x+m;break;case Py.R:p=h=s[d++],f=c=s[d++];var T=s[d++],C=s[d++];if(o=p+T,a=f+C,n){if(so(p,f,o,f,e,r,i)||so(o,f,o,a,e,r,i)||so(o,a,p,a,e,r,i)||so(p,a,p,f,e,r,i))return!0}else u+=po(o,f,o,a,r,i),u+=po(p,a,p,f,r,i);break;case Py.Z:if(n){if(so(h,c,p,f,e,r,i))return!0}else u+=po(h,c,p,f,r,i);h=p,c=f}}return n||fo(c,f)||(u+=po(h,c,p,f,r,i)||0),0!==u}function xo(t,e,n){return _o(t,0,!1,e,n)}function wo(t,e,n,r){return _o(t,e,!0,n,r)}function bo(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function So(t,e){var n,r,i,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?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0;var c;n+r>l&&(c=n+r,n*=l/c,r*=l/c),i+o>l&&(c=i+o,i*=l/c,o*=l/c),r+i>u&&(c=r+i,r*=u/c,i*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-r,s),0!==r&&t.arc(a+l-r,s+r,r,-Math.PI/2,0),t.lineTo(a+l,s+u-i),0!==i&&t.arc(a+l-i,s+u-i,i,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+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function Mo(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(jy(2*r)===jy(2*i)&&(t.x1=t.x2=Co(r,s,!0)),jy(2*o)===jy(2*a)&&(t.y1=t.y2=Co(o,s,!0)),t):t}}function To(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Co(r,s,!0),t.y=Co(i,s,!0),t.width=Math.max(Co(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Co(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Co(t,e,n){if(!e)return t;var r=jy(2*t);return(r+jy(e))%2===0?r/2:(r+(n?1:-1))/2}function Do(t){return ko(t),v(t.rich,ko),t}function ko(t){if(t){t.font=em.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||nm[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||rm[n]?n:"top";var r=t.padding;r&&(t.padding=H(t.padding))}}function Io(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ao(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Oo(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Lo(t){var e=t.text;return null!=e&&(e+=""),e}function Ro(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}function Po(t){return null!=t&&"none"!==t}function Eo(t){if("string"!=typeof t)return t;var e=xm.get(t);return e||(e=ln(t,-.1),xm.put(t,e)),e}function Bo(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function No(t){Bo(t,"emphasis",hm)}function zo(t){t.hoverState===hm&&Bo(t,"normal",lm)}function Fo(t){Bo(t,"blur",um)}function Vo(t){t.hoverState===um&&Bo(t,"normal",lm)}function Ho(t){t.selected=!0}function Go(t){t.selected=!1}function Wo(t,e,n){e(t,n)}function Uo(t,e,n){Wo(t,e,n),t.isGroup&&t.traverse(function(t){Wo(t,e,n)})}function Xo(t,e){switch(e){case"emphasis":t.hoverState=hm;break;case"normal":t.hoverState=lm;break;case"blur":t.hoverState=um;break;case"select":t.selected=!0}}function Yo(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveFinalToTarget(o,e)}return o}function qo(t,e,n,r){var i=n&&p(n,"select")>=0,o=!1;if(t instanceof Gy){var a=sm(t),s=i?a.selectFill||a.normalFill:a.normalFill,l=i?a.selectStroke||a.normalStroke:a.normalStroke;if(Po(s)||Po(l)){r=r||{};var u=r.style||{};!Po(u.fill)&&Po(s)?(o=!0,r=h({},r),u=h({},u),u.fill=Eo(s)):!Po(u.stroke)&&Po(l)&&(o||(r=h({},r),u=h({},u)),u.stroke=Eo(l)),r.style=u}}if(r&&null==r.z2){o||(r=h({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:fm)}return r}function jo(t,e,n){if(n&&null==n.z2){n=h({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:dm)}return n}function Zo(t,e,n){var r=p(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:Yo(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=h({},n),a=h({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Ko(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return qo(this,t,e,n);if("blur"===t)return Zo(this,t,n);if("select"===t)return jo(this,t,n)}return n}function Jo(t){t.stateProxy=Ko;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Ko),n&&(n.stateProxy=Ko)}function $o(t,e){!aa(t,e)&&!t.__highByOuter&&Uo(t,No)}function Qo(t,e){!aa(t,e)&&!t.__highByOuter&&Uo(t,zo)}function ta(t,e){t.__highByOuter|=1<<(e||0),Uo(t,No)}function ea(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Uo(t,zo)}function na(t){Uo(t,Fo)}function ra(t){Uo(t,Vo)}function ia(t){Uo(t,Ho)}function oa(t){Uo(t,Go)}function aa(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function sa(t){var e=t.getModel();e.eachComponent(function(e,n){var r="series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n);r.group.traverse(function(t){Vo(t)})})}function la(t,e,n,r){function i(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&ra(r)}}var o=r.getModel();if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(t){var o=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!h||"series"===e&&o)){var c=r.getViewOfSeriesModel(t);if(c.group.traverse(function(t){Fo(t)}),g(e))i(t.getData(),e);else if(I(e))for(var p=w(e),f=0;f<p.length;f++)i(t.getData(p[f]),e[p[f]]);l.push(t)}}),o.eachComponent(function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.blurSeries&&n.blurSeries(l,o)}})}}function ua(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(t){Fo(t)})}}}function ha(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType),o=ii(i,e);o=(M(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&s>l;)a=i.getItemGraphicEl(l++);if(a){var u=im(a);la(r,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&la(r,h,c,n)}}function ca(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===im(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function pa(t,e,n){var r=im(t),i=ca(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&ua(r.componentMainType,r.componentIndex,n),v(o,function(t){return $o(t,e)})):(la(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&ua(r.componentMainType,r.componentIndex,n),$o(t,e))}function fa(t,e,n){sa(n);var r=im(t),i=ca(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?v(i,function(t){return Qo(t,e)}):Qo(t,e)}function da(t,e){if(Sa(e)){var n=e.dataType,r=t.getData(n),i=ii(r,e);M(i)||(i=[i]),t[e.type===_m?"toggleSelect":e.type===ym?"select":"unselect"](i,n)}}function ga(t){var e=t.getAllData();v(e,function(e){var n=e.data,r=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,r)?ia(e):oa(e)})})}function va(t){var e=[];return t.eachSeries(function(t){var n=t.getAllData();v(n,function(n){var r=(n.data,n.type),i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}})}),e}function ya(t,e,n){_a(t,!0),Uo(t,Jo),ma(t,e,n)}function ma(t,e,n){var r=im(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}function _a(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function xa(t){return!(!t||!t.__highDownDispatcher)}function wa(t,e,n){var r=im(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function ba(t){var e=am[t];return null==e&&32>=om&&(e=am[t]=om++),e}function Sa(t){var e=t.type;return e===ym||e===mm||e===_m}function Ma(t){var e=t.type;return e===gm||e===vm}function Ta(t){var e=sm(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function Ca(t,e){var n,r,i,o,a,s,l=t.data,u=t.len(),h=wm.M,c=wm.C,p=wm.L,f=wm.R,d=wm.A,g=wm.Q;for(i=0,o=0;u>i;){switch(n=l[i++],o=i,r=0,n){case h:r=1;break;case p:r=1;break;case c:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=Sm(e[0]*e[0]+e[1]*e[1]),_=Sm(e[2]*e[2]+e[3]*e[3]),x=Mm(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=_,l[i++]+=y,l[i++]*=m,l[i++]*=_,l[i++]+=x,l[i++]+=x,i+=2,o=i;break;case f:s[0]=l[i++],s[1]=l[i++],ge(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],ge(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;r>a;a++){var w=bm[a];w[0]=l[i++],w[1]=l[i++],ge(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}function Da(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ka(t,e){return(t[0]*e[0]+t[1]*e[1])/(Da(t)*Da(e))}function Ia(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ka(t,e))}function Aa(t,e,n,r,i,o,a,s,l,u,h){var c=l*(km/180),p=Dm(c)*(t-n)/2+Cm(c)*(e-r)/2,f=-1*Cm(c)*(t-n)/2+Dm(c)*(e-r)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=Tm(d),s*=Tm(d));var g=(i===o?-1:1)*Tm((a*a*s*s-a*a*f*f-s*s*p*p)/(a*a*f*f+s*s*p*p))||0,v=g*a*f/s,y=g*-s*p/a,m=(t+n)/2+Dm(c)*v-Cm(c)*y,_=(e+r)/2+Cm(c)*v+Dm(c)*y,x=Ia([1,0],[(p-v)/a,(f-y)/s]),w=[(p-v)/a,(f-y)/s],b=[(-1*p-v)/a,(-1*f-y)/s],S=Ia(w,b);if(ka(w,b)<=-1&&(S=km),ka(w,b)>=1&&(S=0),0>S){var M=Math.round(S/km*1e6)/1e6;S=2*km+M%2*km}h.addData(u,m,_,a,s,x,S,c,o)}function Oa(t){var e=new Oy;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Oy.CMD,l=t.match(Im);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,f=h.match(Am)||[],d=f.length,g=0;d>g;g++)f[g]=parseFloat(f[g]);for(var v=0;d>v;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=r,T=i,C=void 0,D=void 0;switch(c){case"l":r+=f[v++],i+=f[v++],p=s.L,e.addData(p,r,i);break;case"L":r=f[v++],i=f[v++],p=s.L,e.addData(p,r,i);break;case"m":r+=f[v++],i+=f[v++],p=s.M,e.addData(p,r,i),o=r,a=i,c="l";break;case"M":r=f[v++],i=f[v++],p=s.M,e.addData(p,r,i),o=r,a=i,c="L";break;case"h":r+=f[v++],p=s.L,e.addData(p,r,i);break;case"H":r=f[v++],p=s.L,e.addData(p,r,i);break;case"v":i+=f[v++],p=s.L,e.addData(p,r,i);break;case"V":i=f[v++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),r=f[v-2],i=f[v-1];break;case"c":p=s.C,e.addData(p,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i),r+=f[v-2],i+=f[v-1];break;case"S":y=r,m=i,C=e.len(),D=e.data,n===s.C&&(y+=r-D[C-4],m+=i-D[C-3]),p=s.C,M=f[v++],T=f[v++],r=f[v++],i=f[v++],e.addData(p,y,m,M,T,r,i);break;case"s":y=r,m=i,C=e.len(),D=e.data,n===s.C&&(y+=r-D[C-4],m+=i-D[C-3]),p=s.C,M=r+f[v++],T=i+f[v++],r+=f[v++],i+=f[v++],e.addData(p,y,m,M,T,r,i);break;case"Q":M=f[v++],T=f[v++],r=f[v++],i=f[v++],p=s.Q,e.addData(p,M,T,r,i);break;case"q":M=f[v++]+r,T=f[v++]+i,r+=f[v++],i+=f[v++],p=s.Q,e.addData(p,M,T,r,i);break;case"T":y=r,m=i,C=e.len(),D=e.data,n===s.Q&&(y+=r-D[C-4],m+=i-D[C-3]),r=f[v++],i=f[v++],p=s.Q,e.addData(p,y,m,r,i);break;case"t":y=r,m=i,C=e.len(),D=e.data,n===s.Q&&(y+=r-D[C-4],m+=i-D[C-3]),r+=f[v++],i+=f[v++],p=s.Q,e.addData(p,y,m,r,i);break;case"A":_=f[v++],x=f[v++],w=f[v++],b=f[v++],S=f[v++],M=r,T=i,r=f[v++],i=f[v++],p=s.A,Aa(M,T,r,i,b,S,_,x,w,p,e);break;case"a":_=f[v++],x=f[v++],w=f[v++],b=f[v++],S=f[v++],M=r,T=i,r+=f[v++],i+=f[v++],p=s.A,Aa(M,T,r,i,b,S,_,x,w,p,e)}}("z"===c||"Z"===c)&&(p=s.Z,e.addData(p),r=o,i=a),n=p}return e.toStatic(),e}function La(t){return null!=t.setData}function Ra(t,e){var n=Oa(t),r=h({},e);return r.buildPath=function(t){if(La(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Ca(n,t),this.dirtyShape()},r}function Pa(t,e){return new Om(Ra(t,e))}function Ea(t,n){var r=Ra(t,n),i=function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=r.applyTransform,n.buildPath=r.buildPath,n}return e(n,t),n}(Om);return i}function Ba(t,e){for(var n=[],r=t.length,i=0;r>i;i++){var o=t[i];o.path||o.createPathProxy(),o.shapeChanged()&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var a=new Gy(e);return a.createPathProxy(),a.buildPath=function(t){if(La(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Na(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,h=a-i,c=s-o,p=c*l-h*u;return Ym>p*p?void 0:(p=(h*(e-o)-c*(t-i))/p,[t+p*l,e+p*u])}function za(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/Wm(s*s+l*l),h=u*l,c=-u*s,p=t+h,f=e+c,d=n+h,g=r+c,v=(p+d)/2,y=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,w=i-o,b=p*g-d*f,S=(0>_?-1:1)*Wm(Um(0,w*w*x-b*b)),M=(b*_-m*S)/x,T=(-b*m-_*S)/x,C=(b*_+m*S)/x,D=(-b*m+_*S)/x,k=M-v,I=T-y,A=C-v,O=D-y;return k*k+I*I>A*A+O*O&&(M=C,T=D),{cx:M,cy:T,x01:-h,y01:-c,x11:M*(i/w-1),y11:T*(i/w-1)}}function Fa(t,e){var n=Um(e.r,0),r=Um(e.r0||0,0),i=n>0,o=r>0;if(i||o){if(i||(n=r,r=0),r>n){var a=n;n=r,r=a}var s,l=!!e.clockwise,u=e.startAngle,h=e.endAngle;if(u===h)s=0;else{var c=[u,h];ao(c,!l),s=Gm(c[0]-c[1])}var p=e.cx,f=e.cy,d=e.cornerRadius||0,g=e.innerCornerRadius||0;if(n>Ym)if(s>Nm-Ym)t.moveTo(p+n*Fm(u),f+n*zm(u)),t.arc(p,f,n,u,h,!l),r>Ym&&(t.moveTo(p+r*Fm(h),f+r*zm(h)),t.arc(p,f,r,h,u,l));else{var v=Gm(n-r)/2,y=Xm(v,d),m=Xm(v,g),_=m,x=y,w=n*Fm(u),b=n*zm(u),S=r*Fm(h),M=r*zm(h),T=void 0,C=void 0,D=void 0,k=void 0;if((y>Ym||m>Ym)&&(T=n*Fm(h),C=n*zm(h),D=r*Fm(u),k=r*zm(u),Bm>s)){var I=Na(w,b,D,k,T,C,S,M);if(I){var A=w-I[0],O=b-I[1],L=T-I[0],R=C-I[1],P=1/zm(Vm((A*L+O*R)/(Wm(A*A+O*O)*Wm(L*L+R*R)))/2),E=Wm(I[0]*I[0]+I[1]*I[1]);_=Xm(m,(r-E)/(P-1)),x=Xm(y,(n-E)/(P+1))}}if(s>Ym)if(x>Ym){var B=za(D,k,w,b,n,x,l),N=za(T,C,S,M,n,x,l);t.moveTo(p+B.cx+B.x01,f+B.cy+B.y01),y>x?t.arc(p+B.cx,f+B.cy,x,Hm(B.y01,B.x01),Hm(N.y01,N.x01),!l):(t.arc(p+B.cx,f+B.cy,x,Hm(B.y01,B.x01),Hm(B.y11,B.x11),!l),t.arc(p,f,n,Hm(B.cy+B.y11,B.cx+B.x11),Hm(N.cy+N.y11,N.cx+N.x11),!l),t.arc(p+N.cx,f+N.cy,x,Hm(N.y11,N.x11),Hm(N.y01,N.x01),!l))
  3. }else t.moveTo(p+w,f+b),t.arc(p,f,n,u,h,!l);else t.moveTo(p+w,f+b);if(r>Ym&&s>Ym)if(_>Ym){var B=za(S,M,T,C,r,-_,l),N=za(w,b,D,k,r,-_,l);t.lineTo(p+B.cx+B.x01,f+B.cy+B.y01),m>_?t.arc(p+B.cx,f+B.cy,_,Hm(B.y01,B.x01),Hm(N.y01,N.x01),!l):(t.arc(p+B.cx,f+B.cy,_,Hm(B.y01,B.x01),Hm(B.y11,B.x11),!l),t.arc(p,f,r,Hm(B.cy+B.y11,B.cx+B.x11),Hm(N.cy+N.y11,N.cx+N.x11),l),t.arc(p+N.cx,f+N.cy,_,Hm(N.y11,N.x11),Hm(N.y01,N.x01),!l))}else t.lineTo(p+S,f+M),t.arc(p,f,r,h,u,l);else t.lineTo(p+S,f+M)}else t.moveTo(p,f);t.closePath()}}function Va(t,e,n,r,i,o,a){var s=.5*(n-t),l=.5*(r-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*i+e}function Ha(t,e){for(var n=t.length,r=[],i=0,o=1;n>o;o++)i+=ce(t[o-1],t[o]);var a=i/2;a=n>a?n:a;for(var o=0;a>o;o++){var s=o/(a-1)*(e?n:n-1),l=Math.floor(s),u=s-l,h=void 0,c=t[l%n],p=void 0,f=void 0;e?(h=t[(l-1+n)%n],p=t[(l+1)%n],f=t[(l+2)%n]):(h=t[0===l?l:l-1],p=t[l>n-2?n-1:l+1],f=t[l>n-3?n-1:l+2]);var d=u*u,g=u*d;r.push([Va(h[0],c[0],p[0],f[0],u,d,g),Va(h[1],c[1],p[1],f[1],u,d,g)])}return r}function Ga(t,e,n,r){var i,o,a,s,l=[],u=[],h=[],c=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;f>p;p++)ve(a,a,t[p]),ye(s,s,t[p]);ve(a,a,r[0]),ye(s,s,r[1])}for(var p=0,f=t.length;f>p;p++){var d=t[p];if(n)i=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){l.push(Q(t[p]));continue}i=t[p-1],o=t[p+1]}re(u,o,i),ue(u,u,e);var g=ce(d,i),v=ce(d,o),y=g+v;0!==y&&(g/=y,v/=y),ue(h,u,-g),ue(c,u,v);var m=ee([],d,h),_=ee([],d,c);r&&(ye(m,m,a),ve(m,m,s),ye(_,_,a),ve(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function Wa(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r&&"spline"!==r){var o=Ga(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===r&&(i=Ha(i,n)),t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;c>s;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}function Ua(t,e,n){var r=t.cpx2,i=t.cpy2;return null===r||null===i?[(n?Hi:Vi)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Hi:Vi)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ji:qi)(t.x1,t.cpx1,t.x2,e),(n?ji:qi)(t.y1,t.cpy1,t.y2,e)]}function Xa(t){return Gy.extend(t)}function Ya(t,e){return S_(t,e)}function qa(t,e){b_[t]=e}function ja(t){return b_.hasOwnProperty(t)?b_[t]:void 0}function Za(t,e,n,r){var i=Pa(t,e);return n&&("center"===r&&(n=Ja(n,i.getBoundingRect())),$a(i,n)),i}function Ka(t,e,n){var r=new qy({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(Ja(e,i))}}});return r}function Ja(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}function $a(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Qa(t,e,n,r,i,o,a){var s,l=!1;"function"==typeof i?(a=o,o=i,i=null):I(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u,h="update"===t,c="remove"===t;if(r&&r.ecModel){var p=r.ecModel.getUpdatePayload();u=p&&p.animation}var f=r&&r.isAnimationEnabled();if(c||e.stopAnimation("remove"),f){var d=void 0,g=void 0,v=void 0;u?(d=u.duration||0,g=u.easing||"cubicOut",v=u.delay||0):c?(s=s||{},d=z(s.duration,200),g=z(s.easing,"cubicOut"),v=0):(d=r.getShallow(h?"animationDurationUpdate":"animationDuration"),g=r.getShallow(h?"animationEasingUpdate":"animationEasing"),v=r.getShallow(h?"animationDelayUpdate":"animationDelay")),"function"==typeof v&&(v=v(i,r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null)),"function"==typeof d&&(d=d(i)),d>0?l?e.animateFrom(n,{duration:d,delay:v||0,easing:g,done:o,force:!!o||!!a,scope:t,during:a}):e.animateTo(n,{duration:d,delay:v||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),!l&&e.attr(n),o&&o())}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function ts(t,e,n,r,i,o){Qa("update",t,e,n,r,i,o)}function es(t,e,n,r,i,o){Qa("init",t,e,n,r,i,o)}function ns(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("remove"===n.scope)return!0}return!1}function rs(t,e){for(var n=Fe([]);t&&t!==e;)He(n,t.getLocalTransform(),n),t=t.parent;return n}function is(t,e){return y(t,function(t){var n=t[0];n=x_(n,e.x),n=w_(n,e.x+e.width);var r=t[1];return r=x_(r,e.y),r=w_(r,e.y+e.height),[n,r]})}function os(t,e){var n=x_(t.x,e.x),r=w_(t.x+t.width,e.x+e.width),i=x_(t.y,e.y),o=w_(t.y+t.height,e.y+e.height);return r>=n&&o>=i?{x:n,y:i,width:r-n,height:o-i}:void 0}function as(t,e,n){var r=h({rectHover:!0},e),i=r.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(i.image=t.slice(8),c(i,n),new qy(r)):Za(t.replace("path://",""),r,n,"center"):void 0}function ss(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=C(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&v(w(l),function(t){Z(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=im(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:c({content:r,formatterParams:s},i)}}function ls(t,e){for(var n=0;n<cm.length;n++){var r=cm[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function us(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=T(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<cm.length;u++){var h=cm[u],c=e[h];l[h]=z(i?i.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,r)}return l}function hs(t,e,n,r){n=n||T_;for(var i=t instanceof em,o=!1,a=0;a<pm.length;a++){var s=e[pm[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new em,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=us(n,e),h=e.normal,c=!!h.getShallow("show"),p=ps(h,r&&r.normal,n,!1,!i);p.text=u.normal,i||t.setTextConfig(fs(h,n,!1));for(var a=0;a<cm.length;a++){var f=cm[a],s=e[f];if(s){var d=l.ensureState(f),g=!!z(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=ps(s,r&&r[f],n,!0,!i),d.style.text=u[f],!i){var v=t.ensureState(f);v.textConfig=fs(s,n,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),n.enableTextSetter&&(I_(l).setLabelText=function(t){var r=us(n,e,t);ls(l,r)})}else l&&(l.ignore=!0);t.dirty()}function cs(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<cm.length;r++){var i=cm[r];n[i]=t.getModel([i,e])}return n}function ps(t,e,n,r,i){var o={};return ds(o,t,n,r,i),e&&h(o,e),o}function fs(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=z(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function ds(t,e,n,r,i){n=n||T_;var o,a=e.ecModel,s=a&&a.option.textStyle,l=gs(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);vs(o[u]={},h,s,n,r,i,!1,!0)}}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var p=e.get("minMargin");null!=p&&(t.margin=p),vs(t,e,s,n,r,i,!0,!1)}function gs(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||T_).rich;if(n){e=e||{};for(var r=w(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}function vs(t,e,n,r,i,o,a,s){n=!i&&n||T_;var l=r&&r.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=z(e.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l?l:null),("inherit"===h||"auto"===h)&&(h=l?l:null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var p=z(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var f=z(e.getShallow("textBorderType"),n.textBorderType);null!=f&&(t.lineDash=f);var d=z(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),i||null!=c||s||(c=r&&r.defaultOpacity),null!=c&&(t.opacity=c),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<C_.length;g++){var v=C_[g],y=z(e.getShallow(v),n[v]);null!=y&&(t[v]=y)}for(var g=0;g<D_.length;g++){var v=D_[g],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!r.disableBox){for(var g=0;g<k_.length;g++){var v=k_[g],y=e.getShallow(v);null!=y&&(t[v]=y)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function ys(t,e){var n=e&&e.getModel("textStyle");return W([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function ms(t,e,n,r,i){function o(r){var o=ci(n,a.precision,l,u,r);a.interpolatedValue=1===r?null:o;var h=us({labelDataIndex:e,labelFetcher:i,defaultText:s?s(o):o+""},a.statesModels,o);ls(t,h)}var a=I_(t);if(a.valueAnimation){var s=a.defaultInterpolatedText,l=z(a.interpolatedValue,a.prevValue),u=a.value;(null==l?es:ts)(t,{},r,e,null,o)}}function _s(t,e,n){im(t).dataIndex=e,im(t).dataType=n}function xs(t){return[t||"",V_++].join("_")}function ws(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=pi(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=pi(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function bs(t,e){function n(t){var n={},o=[];return v(t,function(a){var s=r(n,a),l=s.originalDeps=e(a),u=i(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),v(u,function(t){p(s.predecessor,t)<0&&s.predecessor.push(t);var e=r(n,t);p(e.successor,t)<0&&e.successor.push(a)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function i(t,e){var n=[];return v(t,function(t){p(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,r,i){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=n(e),l=s.graph,u=s.noEntryList,h={};for(v(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],f=!!h[c];f&&(r.call(i,c,p.originalDeps.slice()),delete h[c]),v(p.successor,f?a:o)}v(h,function(){var t="";throw new Error(t)})}}}function Ss(t,e){t=t.toUpperCase(),q_[t]=new F_(e),Y_[t]=e}function Ms(t){if(C(t)){var e=Y_[t.toUpperCase()]||{};return t===W_||t===U_?s(e):l(s(e),s(Y_[X_]),!1)}return l(s(t),s(Y_[X_]),!1)}function Ts(t){return q_[t]}function Cs(){return q_[X_]}function Ds(t,e){return t+="","0000".substr(0,e-t.length)+t}function ks(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Is(t){return t===ks(t)}function As(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Os(t,e,n,r){var i=kr(t),o=i[Es(n)](),a=i[Bs(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[Ns(n)](),u=i["get"+(n?"UTC":"")+"Day"](),h=i[zs(n)](),c=(h-1)%12+1,p=i[Fs(n)](),f=i[Vs(n)](),d=i[Hs(n)](),g=r instanceof F_?r:Ts(r||j_)||Cs(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),_=v.get("dayOfWeek"),x=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Ds(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ds(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ds(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Ds(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ds(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ds(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Ds(d,3)).replace(/{S}/g,d+"")}function Ls(t,e,n,r,i){var o=null;if("string"==typeof n)o=n;else if("function"==typeof n)o=n(t.value,e,{level:t.level});else{var a=h({},tx);if(t.level>0)for(var s=0;s<rx.length;++s)a[rx[s]]="{primary|"+a[rx[s]]+"}";var l=n?n.inherit===!1?n:c(n,a):a,u=Rs(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(var p=ix.indexOf(u),s=p-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M(o)){var f=null==t.level?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return Os(new Date(t.value),o,i,r)}function Rs(t,e){var n=kr(t),r=n[Bs(e)]()+1,i=n[Ns(e)](),o=n[zs(e)](),a=n[Fs(e)](),s=n[Vs(e)](),l=n[Hs(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,f=p&&1===i,d=f&&1===r;return d?"year":f?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function Ps(t,e,n){var r="number"==typeof t?kr(t):t;switch(e=e||Rs(t,n)){case"year":return r[Es(n)]();case"half-year":return r[Bs(n)]()>=6?1:0;case"quarter":return Math.floor((r[Bs(n)]()+1)/4);case"month":return r[Bs(n)]();case"day":return r[Ns(n)]();case"half-day":return r[zs(n)]()/24;case"hour":return r[zs(n)]();case"minute":return r[Fs(n)]();case"second":return r[Vs(n)]();case"millisecond":return r[Hs(n)]()}}function Es(t){return t?"getUTCFullYear":"getFullYear"}function Bs(t){return t?"getUTCMonth":"getMonth"}function Ns(t){return t?"getUTCDate":"getDate"}function zs(t){return t?"getUTCHours":"getHours"}function Fs(t){return t?"getUTCMinutes":"getMinutes"}function Vs(t){return t?"getUTCSeconds":"getSeconds"}function Hs(t){return t?"getUTCSeconds":"getSeconds"}function Gs(t){return t?"setUTCFullYear":"setFullYear"}function Ws(t){return t?"setUTCMonth":"setMonth"}function Us(t){return t?"setUTCDate":"setDate"}function Xs(t){return t?"setUTCHours":"setHours"}function Ys(t){return t?"setUTCMinutes":"setMinutes"}function qs(t){return t?"setUTCSeconds":"setSeconds"}function js(t){return t?"setUTCSeconds":"setSeconds"}function Zs(t,e,n,r,i,o,a,s){var l=new em({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Ks(t){if(!Er(t))return C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Js(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 $s(t){return null==t?"":(t+"").replace(ax,function(t,e){return sx[e]})}function Qs(t,e,n){M(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=lx[o];t=t.replace(ux(a),ux(a,0))}for(var s=0;r>s;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(ux(lx[l],s),n?$s(u):u)}return t}function tl(t,e){var n=C(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if("html"===o)return"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+$s(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+$s(r)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function el(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var r=kr(e),i=n?"UTC":"",o=r["get"+i+"FullYear"](),a=r["get"+i+"Month"]()+1,s=r["get"+i+"Date"](),l=r["get"+i+"Hours"](),u=r["get"+i+"Minutes"](),h=r["get"+i+"Seconds"](),c=r["get"+i+"Milliseconds"]();return t=t.replace("MM",Ds(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",Ds(s,2)).replace("d",s).replace("hh",Ds(l,2)).replace("h",l).replace("mm",Ds(u,2)).replace("m",u).replace("ss",Ds(h,2)).replace("s",h).replace("SSS",Ds(c,3))}function nl(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function rl(t,e){return e=e||"transparent",C(t)?t:I(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function il(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);h=o+g,h>r||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);c=a+v,c>i||l.newline?(o+=s+n,a=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}function ol(t,e,n){n=ox(n||0);var r=e.width,i=e.height,o=_r(t.left,r),a=_r(t.top,i),s=_r(t.right,r),l=_r(t.bottom,i),u=_r(t.width,r),h=_r(t.height,i),c=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(h)&&(h=i-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>r/i?u=.8*r:h=.8*i),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-h-c),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p}switch(t.top||t.bottom){case"middle":case"center":a=i/2-h/2-n[0];break;case"bottom":a=i-h-c}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(h)&&(h=i-c-a-(l||0));var d=new Eg(o+n[3],a+n[0],u,h);return d.margin=n,d}function al(t){var e=t.layoutMode||t.constructor.layoutMode;return I(e)?e:e?{type:e}:null}function sl(t,e,n){function r(n,r){var a={},l=0,u={},h=0,c=2;if(hx(n,function(e){u[e]=t[e]}),hx(n,function(t){i(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[r])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var p=0;p<n.length;p++){var f=n[p];if(!i(a,f)&&i(t,f)){a[f]=t[f];break}}return a}return u}function i(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){hx(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize;!M(s)&&(s=[s,s]);var l=r(px[0],0),u=r(px[1],1);a(px[0],t,l),a(px[1],t,u)}function ll(t){return ul({},t)}function ul(t,e){return e&&t&&hx(cx,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function hl(t){var e=[];return v(dx.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=y(e,function(t){return pi(t).main}),"dataset"!==t&&p(e,"dataset")<=0&&e.unshift("dataset"),e}function cl(t){Ox(t).datasetMap=Y()}function pl(t,e,n){function r(t,e,n){for(var r=0;n>r;r++)t.push(e+r)}function i(t){var e=t.dimsDef;return e?e.length:1}var o={},a=dl(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=Ox(c).datasetMap,f=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),v(t,function(e,n){var r=I(e)?e:t[n]={name:e};"ordinal"===r.type&&null==s&&(s=n,l=i(r)),o[r.name]=[]});var d=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});return v(t,function(t,e){var n=t.name,a=i(t);if(null==s){var l=d.valueWayDim;r(o[n],l,a),r(h,l,a),d.valueWayDim+=a}else if(s===e)r(o[n],0,a),r(u,0,a);else{var l=d.categoryWayDim;r(o[n],l,a),r(h,l,a),d.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function fl(t,e,n){var r={},i=dl(t);if(!i)return r;var o,a=e.sourceFormat,s=e.dimensionsDefine;(a===Mx||a===Tx)&&v(s,function(t,e){"name"===(I(t)?t.name:t)&&(o=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var r={},i={},l=[],u=0,h=Math.min(5,n);h>u;u++){var c=yl(e.data,a,e.seriesLayoutBy,s,e.startIndex,u);l.push(c);var p=c===Ax.Not;if(p&&null==r.v&&u!==o&&(r.v=u),(null==r.n||r.n===r.v||!p&&l[r.n]===Ax.Not)&&(r.n=u),t(r)&&l[r.n]!==Ax.Not)return r;p||(c===Ax.Might&&null==i.v&&u!==o&&(i.v=u),(null==i.n||i.n===i.v)&&(i.n=u))}return t(r)?r:t(i)?i:null}();if(l){r.value=[l.v];var u=null!=o?o:l.n;r.itemName=[u],r.seriesName=[u]}return r}function dl(t){var e=t.get("data",!0);return e?void 0:li(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},kv).models[0]}function gl(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?li(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},kv).models:[]}function vl(t,e){return yl(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function yl(t,e,n,r,i,o){function a(t){var e=C(t);return null!=t&&isFinite(t)&&""!==t?e?Ax.Might:Ax.Not:e&&"-"!==t?Ax.Must:void 0}var s,l=5;if(O(t))return Ax.Not;var u,h;if(r){var c=r[o];I(c)?(u=c.name,h=c.type):C(c)&&(u=c)}if(null!=h)return"ordinal"===h?Ax.Must:Ax.Not;if(e===Sx){var p=t;if(n===Ix){for(var f=p[o],d=0;d<(f||[]).length&&l>d;d++)if(null!=(s=a(f[i+d])))return s}else for(var d=0;d<p.length&&l>d;d++){var g=p[i+d];if(g&&null!=(s=a(g[o])))return s}}else if(e===Mx){var v=t;if(!u)return Ax.Not;for(var d=0;d<v.length&&l>d;d++){var y=v[d];if(y&&null!=(s=a(y[u])))return s}}else if(e===Tx){var m=t;if(!u)return Ax.Not;var f=m[u];if(!f||O(f))return Ax.Not;for(var d=0;d<f.length&&l>d;d++)if(null!=(s=a(f[d])))return s}else if(e===bx)for(var _=t,d=0;d<_.length&&l>d;d++){var y=_[d],x=Gr(y);if(!M(x))return Ax.Not;if(null!=(s=a(x[o])))return s}return Ax.Not}function ml(t,e,n){var r=Lx.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}function _l(t,e){for(var n=t.length,r=0;n>r;r++)if(t[r].length>e)return t[r];return t[n-1]}function xl(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var h=null!=a&&r?_l(r,a):n;if(h=h||n,h&&h.length){var c=h[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%h.length,c}}function wl(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function bl(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function Sl(t,e){var n=t.color&&!t.colorLayer;v(e,function(e,r){"colorLayer"===r&&n||dx.hasClass(r)||("object"==typeof e?t[r]=t[r]?l(t[r],e,!1):s(e):null==t[r]&&(t[r]=e))})}function Ml(t,e,n){if(M(e)){var r=Y();return v(e,function(t){if(null!=t){var e=Qr(t,null);null!=e&&r.set(t,!0)}}),_(n,function(e){return e&&r.get(e[t])})}var i=Qr(e,null);return _(n,function(e){return e&&null!=i&&e[t]===i})}function Tl(t,e){return e.hasOwnProperty("subType")?_(t,function(t){return t&&t.subType===e.subType}):t}function Cl(t){var e=Y();return t&&v(Vr(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Dl(t,e,n){function r(t){v(e,function(e){e(t,n)})}var i,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&M(h)&&v(h,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))}),r(o),v(u,function(t){return r(t)}),v(a,function(t){return r(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:i,mediaList:a}}function kl(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return v(t,function(t,e){var n=e.match(qx);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();Il(r[a],t,o)||(i=!1)}}),i}function Il(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function Al(t,e){return t.join(",")===e.join(",")}function Ol(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Jx.length;r>n;n++){var i=Jx[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?l(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?l(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function Ll(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Rl(t){Ll(t,"itemStyle"),Ll(t,"lineStyle"),Ll(t,"areaStyle"),Ll(t,"label"),Ll(t,"labelLine"),Ll(t,"upperLabel"),Ll(t,"edgeLabel")}function Pl(t,e){var n=Kx(t)&&t[e],r=Kx(n)&&n.textStyle;if(r)for(var i=0,o=Cv.length;o>i;i++){var a=Cv[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function El(t){t&&(Rl(t),Pl(t,"label"),t.emphasis&&Pl(t.emphasis,"label"))}function Bl(t){if(Kx(t)){Ol(t),Rl(t),Pl(t,"label"),Pl(t,"upperLabel"),Pl(t,"edgeLabel"),t.emphasis&&(Pl(t.emphasis,"label"),Pl(t.emphasis,"upperLabel"),Pl(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ol(e),El(e));var n=t.markLine;n&&(Ol(n),El(n));var r=t.markArea;r&&El(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!O(o))for(var a=0;a<o.length;a++)El(o[a]);v(t.categories,function(t){Rl(t)})}if(i&&!O(i))for(var a=0;a<i.length;a++)El(i[a]);if(e=t.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)El(s[a]);if(n=t.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)M(l[a])?(El(l[a][0]),El(l[a][1])):El(l[a]);"gauge"===t.type?(Pl(t,"axisLabel"),Pl(t,"title"),Pl(t,"detail")):"treemap"===t.type?(Ll(t.breadcrumb,"itemStyle"),v(t.levels,function(t){Rl(t)})):"tree"===t.type&&Rl(t.leaves)}}function Nl(t){return M(t)?t:t?[t]:[]}function zl(t){return(M(t)?t[0]:t)||{}}function Fl(t,e){Zx(Nl(t.series),function(t){Kx(t)&&Bl(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Zx(n,function(e){Zx(Nl(t[e]),function(t){t&&(Pl(t,"axisLabel"),Pl(t.axisPointer,"label"))})}),Zx(Nl(t.parallel),function(t){var e=t&&t.parallelAxisDefault;Pl(e,"axisLabel"),Pl(e&&e.axisPointer,"label")}),Zx(Nl(t.calendar),function(t){Ll(t,"itemStyle"),Pl(t,"dayLabel"),Pl(t,"monthLabel"),Pl(t,"yearLabel")}),Zx(Nl(t.radar),function(t){Pl(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Zx(Nl(t.geo),function(t){Kx(t)&&(El(t),Zx(Nl(t.regions),function(t){El(t)}))}),Zx(Nl(t.timeline),function(t){El(t),Ll(t,"label"),Ll(t,"itemStyle"),Ll(t,"controlStyle",!0);var e=t.data;M(e)&&v(e,function(t){I(t)&&(Ll(t,"label"),Ll(t,"itemStyle"))})}),Zx(Nl(t.toolbox),function(t){Ll(t,"iconStyle"),Zx(t.feature,function(t){Ll(t,"iconStyle")})}),Pl(zl(t.axisPointer),"label"),Pl(zl(t.tooltip).axisPointer,"label")}function Vl(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&(r=r&&r[n[i]],null!=r);i++);return r}function Hl(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function Gl(t){t&&v($x,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Wl(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<tw.length;n++){var r=tw[n][1],i=tw[n][0];null!=e[r]&&(e[i]=e[r])}}function Ul(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Xl(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Yl(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function ql(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&ql(t[n].children,e)}function jl(t,e){Fl(t,e),t.series=Vr(t.series),v(t.series,function(t){if(I(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),Ul(t.label);var n=t.data;if(n&&!O(n))for(var r=0;r<n.length;r++)Ul(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=Vl(t,"pointer.color");null!=i&&Hl(t,"itemStyle.color",i)}else if("bar"===e){Wl(t),Wl(t.backgroundStyle),Wl(t.emphasis);var n=t.data;if(n&&!O(n))for(var r=0;r<n.length;r++)"object"==typeof n[r]&&(Wl(n[r]),Wl(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Xl(t),ql(t.data,Xl)}else"graph"===e||"sankey"===e?Yl(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&c(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Gl(t)}}),t.dataRange&&(t.visualMap=t.dataRange),v(Qx,function(e){var n=t[e];n&&(M(n)||(n=[n]),v(n,function(t){Gl(t)}))})}function Zl(t){var e=Y();t.eachSeries(function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}}),e.each(Kl)}function Kl(t){v(t,function(e,n){var r=[],i=[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 i;var c,p;s?p=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f=0/0,d=n-1;d>=0;d--){var g=t[d];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,c)),p>=0){var v=g.data.getByRawIndex(g.stackResultDimension,p);if(h>=0&&v>0||0>=h&&0>v){h+=v,f=v;break}}}return r[0]=h,r[1]=f,r});a.hostModel.setData(l),e.data=l})}function Jl(t){return t instanceof ew}function $l(t,e,n,r){n=n||nu(t);var i=e.seriesLayoutBy,o=ru(t,n,i,e.sourceHeader,e.dimensions),a=new ew({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:eu(r),metaRawOption:s(e)});return a}function Ql(t){return new ew({data:t,sourceFormat:O(t)?Cx:bx})}function tu(t){return new ew({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount,encodeDefine:eu(t.encodeDefine)})}function eu(t){return t?Y(t):null}function nu(t){var e=Dx;if(O(t))e=Cx;else if(M(t)){0===t.length&&(e=Sx);for(var n=0,r=t.length;r>n;n++){var i=t[n];if(null!=i){if(M(i)){e=Sx;break}if(I(i)){e=Mx;break}}}}else if(I(t))for(var o in t)if(Z(t,o)&&g(t[o])){e=Tx;break}return e}function ru(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:ou(i),startIndex:a,dimensionsDetectedCount:o};if(e===Sx){var s=t;"auto"===r||null==r?au(function(t){null!=t&&"-"!==t&&(C(t)?null==a&&(a=1):a=0)},n,s,10):a=k(r)?r:r?1:0,i||1!==a||(i=[],au(function(t,e){i[e]=null!=t?t+"":""},n,s,1/0)),o=i?i.length:n===Ix?s.length:s[0]?s[0].length:null}else if(e===Mx)i||(i=iu(t));else if(e===Tx)i||(i=[],v(t,function(t,e){i.push(e)}));else if(e===bx){var l=Gr(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:ou(i),dimensionsDetectedCount:o}}function iu(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var r=[];return v(e,function(t,e){r.push(e)}),r}}function ou(t){if(t){var e=Y();return y(t,function(t){t=I(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var r=e.get(n.name);return r?n.name+="-"+r.count++:e.set(n.name,{count:1}),n})}}function au(t,e,n,r){if(e===Ix)for(var i=0;i<n.length&&r>i;i++)t(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&r>i;i++)t(o[i],i)}function su(t,e){var n=iw[hu(t,e)];return n}function lu(t,e){var n=aw[hu(t,e)];return n}function uu(t){var e=lw[t];return e}function hu(t,e){return t===Sx?t+"_"+e:t}function cu(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(i=s.name,o=s.index),uu(a)(r,o,i)}}}function pu(t){return new cw(t)}function fu(t,e){var n=e&&e.type;if("ordinal"===n){var r=e&&e.ordinalMeta;return r?r.parseAndCollect(t):t}return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+kr(t)),null==t||""===t?0/0:+t}function du(t,e){var n=new dw,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==kx&&Fr(a);var s=[],l={},u=t.dimensionsDefine;
  4. if(u)v(u,function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Z(l,n)&&Fr(i),l[n]=r}});else for(var h=0;h<t.dimensionsDetectedCount;h++)s.push({index:h});var c=su(i,kx);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(r,o,s,t)},n.getRawData=Ad(gu,null,t)),n.cloneRawData=Ad(vu,null,t);var p=lu(i,kx);n.count=Ad(p,null,r,o,s);var f=uu(i);n.retrieveValue=function(t,e){var n=c(r,o,s,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?f(t,e,n.name):void 0}};return n.getDimensionInfo=Ad(yu,null,s,l),n.cloneAllDimensionInfo=Ad(mu,null,s),n}function gu(t){var e=t.sourceFormat;if(!bu(e)){var n="";Fr(n)}return t.data}function vu(t){var e=t.sourceFormat,n=t.data;if(!bu(e)){var r="";Fr(r)}if(e===Sx){for(var i=[],o=0,a=n.length;a>o;o++)i.push(n[o].slice());return i}if(e===Mx){for(var i=[],o=0,a=n.length;a>o;o++)i.push(h({},n[o]));return i}}function yu(t,e,n){return null!=n?"number"==typeof n||!isNaN(n)&&!Z(e,n)?t[n]:Z(e,n)?e[n]:void 0:void 0}function mu(t){return s(t)}function _u(t){t=s(t);var e=t.type,n="";e||Fr(n);var r=e.split(":");2!==r.length&&Fr(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,gw.set(e,t)}function xu(t,e,n){var r=Vr(t),i=r.length,o="";i||Fr(o);for(var a=0,s=i;s>a;a++){var l=r[a];e=wu(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function wu(t,e){var n="";e.length||Fr(n),I(t)||Fr(n);var r=t.type,i=gw.get(r);i||Fr(n);var o=y(e,function(t){return du(t,i)}),a=Vr(i.transform({upstream:o[0],upstreamList:o,config:s(t.config)}));return y(a,function(t,n){var r="";I(t)||Fr(r),t.data||Fr(r);var i=nu(t.data);bu(i)||Fr(r);var o,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:kx,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:kx,sourceHeader:0,dimensions:t.dimensions};return $l(t.data,o,null,null)})}function bu(t){return t===Sx||t===Mx}function Su(t){var e=t.option.transform;e&&U(t.option.transform)}function Mu(t){return"series"===t.mainType}function Tu(t){throw new Error(t)}function Cu(t,e){return e.type=t,e}function Du(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return rl(r)}function ku(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=M(c),f=Du(o,a);if(h>1||p&&!h){var d=Iu(c,o,a,u,f);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);i=e=cu(l,a,u[0]),n=g.type}else i=e=p?c[0]:c;var v=ti(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return Cu("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[Cu("nameValue",{markerType:"item",markerColor:f,name:_,noName:!W(_),value:e,valueType:n})].concat(r||[])})}function Iu(t,e,n,r,i){function o(t,e){var n=a.getDimensionInfo(e);n&&n.otherDims.tooltip!==!1&&(s?h.push(Cu("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=m(t,function(t,e,n){var r=a.getDimensionInfo(n);return t=t||r&&r.tooltip!==!1&&null!=r.displayName},!1),l=[],u=[],h=[];return r.length?v(r,function(t){o(cu(a,n,t),t)}):v(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function Au(t,e){return t.getName(e)||t.getId(e)}function Ou(t){var e=t.name;ti(t)||(t.name=Lu(t)||e)}function Lu(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return v(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)}),r.join(" ")}function Ru(t){return t.model.getRawData().count()}function Pu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Eu}function Eu(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Bu(t,e){v(n(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,S(Nu,e))})}function Nu(t,e){var n=zu(t);return n&&n.setOutputEnd((e||this).count()),e}function zu(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}function Fu(){var t=oi();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}function Vu(t,e,n){t&&("emphasis"===e?ta:ea)(t,n)}function Hu(t,e,n){var r=ii(t,e),i=e&&null!=e.highlightKey?ba(e.highlightKey):null;null!=r?v(Vr(r),function(e){Vu(t.getItemGraphicEl(e),n,i)}):t.eachItemGraphicEl(function(t){Vu(t,n,i)})}function Gu(t){return ww(t.model)}function Wu(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&xw(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),Mw[l]}function Uu(t,e,n){function r(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var i,o,a,s,l,u=0,h=0,c=null;e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=(new Date).getTime(),a=this,s=t;var f=l||e,d=l||n;l=null,o=i-(d?u:h)-f,clearTimeout(c),d?c=setTimeout(r,f):o>=0?r():c=setTimeout(r,-o),u=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function Xu(t,e){var n=t.visualStyleMapper||Cw[e];return n?n:(console.warn("Unkown style type '"+e+"'."),Cw.itemStyle)}function Yu(t,e){var n=t.visualDrawType||Dw[e];return n?n:(console.warn("Unkown style type '"+e+"'."),"fill")}function qu(t,e){e=e||{},c(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new dv,r=new Jy({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new em({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new Jy({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new l_({shape:{startAngle:-Lw/2,endAngle:-Lw/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*Lw/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*Lw/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var n=i.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),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}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function ju(t){t.overallReset(t.ecModel,t.api,t.payload)}function Zu(t){return t.overallProgress&&Ku}function Ku(){this.agent.dirty(),this.getDownstream().dirty()}function Ju(){this.agent&&this.agent.dirty()}function $u(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Qu(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Vr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?y(e,function(t,e){return th(e)}):Pw}function th(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function eh(t){return t.data.count()}function nh(t){Sw=null;try{t(Ew,Bw)}catch(e){}return Sw}function rh(t,e){for(var n in e.prototype)t[n]=K}function ih(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function oh(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function ah(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function sh(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(Math.abs(r-i)%qw<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=r;r=ho(i),i=ho(p)}else r=ho(r),i=ho(i);r>i&&(i+=qw);var f=Math.atan2(s,a);if(0>f&&(f+=qw),f>=r&&i>=f||f+qw>=r&&i>=f+qw)return l[0]=h,l[1]=c,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function lh(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,h=n-t,c=r-e,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var f=l*h+u*c,d=f/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var g=a[0]=t+d*h,v=a[1]=e+d*c;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function uh(t,e,n,r,i,o,a){0>n&&(t+=n,n=-n),0>r&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(h-o)*(h-o))}function hh(t,e,n){var r=uh(e.x,e.y,e.width,e.height,t.x,t.y,Kw);return n.set(Kw[0],Kw[1]),r}function ch(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,f=0;f<h.length;){var d=h[f++];1===f&&(o=h[f],a=h[f+1],s=o,l=a);var g=u;switch(d){case jw.M:s=h[f++],l=h[f++],o=s,a=l;break;case jw.L:g=lh(o,a,h[f],h[f+1],c,p,Kw,!0),o=h[f++],a=h[f++];break;case jw.C:g=Xi(o,a,h[f++],h[f++],h[f++],h[f++],h[f],h[f+1],c,p,Kw),o=h[f++],a=h[f++];break;case jw.Q:g=$i(o,a,h[f++],h[f++],h[f],h[f+1],c,p,Kw),o=h[f++],a=h[f++];break;case jw.A:var v=h[f++],y=h[f++],m=h[f++],_=h[f++],x=h[f++],w=h[f++];f+=1;var b=!!(1-h[f++]);r=Math.cos(x)*m+v,i=Math.sin(x)*_+y,1>=f&&(s=r,l=i);var S=(c-v)*_/m+v;g=sh(v,y,_,x,x+w,b,S,p,Kw),o=Math.cos(x+w)*m+v,a=Math.sin(x+w)*_+y;break;case jw.R:s=o=h[f++],l=a=h[f++];var M=h[f++],T=h[f++];g=uh(s,l,M,T,c,p,Kw);break;case jw.Z:g=lh(o,a,s,l,c,p,Kw,!0),o=s,a=l}u>g&&(u=g,n.set(Kw[0],Kw[1]))}return u}function ph(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Zw,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,h=t.getComputedTransform(),c=h&&Xe([],h),p=e.get("length2")||0;u&&Qw.copy(u);for(var f=0;f<a.length;f++){var d=a[f];ah(d,0,s,Jw,tb),Cg.scaleAndAdd($w,Jw,tb,p),$w.transform(c);var g=t.getBoundingRect(),v=u?u.distance($w):t instanceof Gy?ch($w,t.path,Qw):hh($w,g,Qw);l>v&&(l=v,$w.transform(h),Qw.transform(h),Qw.toArray(o[0]),$w.toArray(o[1]),Jw.toArray(o[2]))}fh(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function fh(t,e){if(180>=e&&e>0){e=e/180*Math.PI,Jw.fromArray(t[0]),$w.fromArray(t[1]),Qw.fromArray(t[2]),Cg.sub(tb,Jw,$w),Cg.sub(eb,Qw,$w);var n=tb.len(),r=eb.len();if(!(.001>n||.001>r)){tb.scale(1/n),eb.scale(1/r);var i=tb.dot(eb),o=Math.cos(e);if(i>o){var a=lh($w.x,$w.y,Qw.x,Qw.y,Jw.x,Jw.y,nb,!1);rb.fromArray(nb),rb.scaleAndAdd(eb,a/Math.tan(Math.PI-e));var s=Qw.x!==$w.x?(rb.x-$w.x)/(Qw.x-$w.x):(rb.y-$w.y)/(Qw.y-$w.y);if(isNaN(s))return;0>s?Cg.copy(rb,$w):s>1&&Cg.copy(rb,Qw),rb.toArray(t[1])}}}}function dh(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function gh(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Bd(r[0],r[1]),o=Bd(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=de([],r[1],r[0],a/i),l=de([],r[1],r[2],a/o),u=de([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var h=1;h<r.length;h++)t.lineTo(r[h][0],r[h][1])}function vh(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i)return void(r&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<pm.length;l++){var u=pm[l],h=e[u],p="normal"===u;if(h){var f=h.get("show"),d=p?s:z(i.states[u]&&i.states[u].ignore,s);if(d||!z(f,a)){var g=p?r:r&&r.states.normal;g&&(g.ignore=!0);continue}r||(r=new t_,t.setTextGuideLine(r),p||!s&&a||dh(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),dh(r,!1,u,h)}}if(r){c(r.style,n),r.style.fill=null;var v=o.get("showAbove"),y=t.textGuideLineConfig=t.textGuideLineConfig||{};y.showAbove=v||!1,r.buildPath=gh}}function yh(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<cm.length;r++){var i=cm[r];n[i]=t.getModel([i,e])}return n}function mh(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new y_(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:h,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function _h(t,e,n,r,i,o){function a(){w=S.rect[e]-r,b=i-M.rect[e]-M.rect[n]}function s(t,e,n){if(0>t){var r=Math.min(e,-t);if(r>0){l(r*n,0,c);var i=r+t;0>i&&u(-i*n,1)}else u(-t*n,1)}}function l(n,r,i){0!==n&&(d=!0);for(var o=r;i>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function u(r,i){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(r)/a,i);if(r>0)for(var s=0;c-1>s;s++){var f=o[s]*p;l(f,0,s+1)}else for(var s=c-1;s>0;s--){var f=o[s-1]*p;l(-f,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(c-1)),r=0;c-1>r;r++)if(e>0?l(n,0,r+1):l(-n,c-r-1,c),t-=n,0>=t)return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p,f=0,d=!1,g=[],v=0,y=0;c>y;y++){var m=t[y],_=m.rect;p=_[e]-f,0>p&&(_[e]-=p,m.label[e]-=p,d=!0);var x=Math.max(-p,0);g.push(x),v+=x,f=_[e]+_[n]}v>0&&o&&l(-v/c,0,c);var w,b,S=t[0],M=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),d}}function xh(t,e,n,r){return _h(t,"x","width",e,n,r)}function wh(t,e,n,r){return _h(t,"y","height",e,n,r)}function bh(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var r=new Eg(0,0,0,0),i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=o.obb,p=!1,f=0;f<n.length;f++){var d=n[f];if(r.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new y_(d.localRect,d.transform)),c||(c=new y_(s,l)),c.intersect(d.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function Sh(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Mh(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Sh(r&&r.shape.points)}}function Th(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}function Ch(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){r.push(t.seriesIndex)}),r}v([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,r,i){e=h({},e),i.dispatchAction(h(e,{type:t[1],seriesIndex:n(r,e)}))})})}function Dh(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,r=i.selected,a=0;a<r.length;a++)if(r[a].seriesIndex===e){var s=t.getData(),l=ii(s,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:s.getName(M(l)?l[0]:l),selected:h({},t.option.selectedMap)})}})}function kh(t,e,n){t.on("selectchanged",function(t){var r=n.getModel();t.isFromClick?(Dh("map","selectchanged",e,r,t),Dh("pie","selectchanged",e,r,t)):"select"===t.fromAction?(Dh("map","selected",e,r,t),Dh("pie","selected",e,r,t)):"unselect"===t.fromAction&&(Dh("map","unselected",e,r,t),Dh("pie","unselected",e,r,t))})}function Ih(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}function Ah(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function Oh(t,e,n,r,i,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://")?Ka(t.slice(8),new Eg(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?Za(t.slice(7),{},new Eg(e,n,r,i),a?"center":"cover"):new xb({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=Ah,o&&l.setColor(o),l}function Lh(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=t.createLinearGradient(r,o,i,a);return s}function Rh(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),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*r+n.x,s=s*i+n.y,l*=o);var u=t.createRadialGradient(a,s,0,a,s,l);return u}function Ph(t,e,n){for(var r="radial"===e.type?Rh(t,e,n):Lh(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Eh(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Bh(t,e){return t&&"solid"!==t&&e>0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:k(t)?[t]:M(t)?t:null):null}function Nh(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function zh(t){var e=t.fill;return null!=e&&"none"!==e}function Fh(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Vh(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Hh(t,e,n){var r=Mi(e.image,e.__image,n);if(Ci(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),i.setTransform(o)}return i}}function Gh(t,e,n,r){var i=Nh(n),o=zh(n),a=n.strokePercent,s=1>a,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u=e.path||wb;if(!r){var h=n.fill,c=n.stroke,p=o&&!!h.colorStops,f=i&&!!c.colorStops,d=o&&!!h.image,g=i&&!!c.image,v=void 0,m=void 0,_=void 0,x=void 0,w=void 0;(p||f)&&(w=e.getBoundingRect()),p&&(v=e.__dirty?Ph(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=v),f&&(m=e.__dirty?Ph(t,c,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),d&&(_=e.__dirty||!e.__canvasFillPattern?Hh(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),g&&(x=e.__dirty||!e.__canvasStrokePattern?Hh(t,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=v:d&&(_?t.fillStyle=_:o=!1),f?t.strokeStyle=m:g&&(x?t.strokeStyle=x:i=!1)}var b=n.lineDash&&n.lineWidth>0&&Bh(n.lineDash,n.lineWidth),S=n.lineDashOffset,M=!!t.setLineDash,T=e.getGlobalScale();if(u.setScale(T[0],T[1],e.segmentIgnoreThreshold),b){var C=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;C&&1!==C&&(b=y(b,function(t){return t/C}),S/=C)}var D=!0;(l||e.__dirty&Gy.SHAPE_CHANGED_BIT||b&&!M&&i)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),D=!1),u.reset(),b&&!M&&(u.setLineDash(b),u.setLineDashOffset(S)),e.buildPath(u,e.shape,r),u.toStatic(),e.pathUpdated()),D&&u.rebuildPath(t,s?a:1),b&&M&&(t.setLineDash(b),t.lineDashOffset=S),r||(n.strokeFirst?(i&&Vh(t,n),o&&Fh(t,n)):(o&&Fh(t,n),i&&Vh(t,n))),b&&M&&t.setLineDash([])}function Wh(t,e,n){var r=e.__image=Mi(n.image,e.__image,e,e.onload);if(r&&Ci(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(r,u,h,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,p=s-h;t.drawImage(r,u,h,c,p,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Uh(t,e,n){var r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||Ng,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0;if(t.setLineDash){var o=n.lineDash&&n.lineWidth>0&&Bh(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=y(o,function(t){return t/s}),a/=s),t.setLineDash(o),t.lineDashOffset=a,i=!0}}n.strokeFirst?(Nh(n)&&t.strokeText(r,n.x,n.y),zh(n)&&t.fillText(r,n.x,n.y)):(zh(n)&&t.fillText(r,n.x,n.y),Nh(n)&&t.strokeText(r,n.x,n.y)),i&&t.setLineDash([])}}function Xh(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){o||($h(t,i),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Wv.opacity:a}(r||e.blend!==n.blend)&&(o||($h(t,i),o=!0),t.globalCompositeOperation=e.blend||Wv.blend);for(var s=0;s<bb.length;s++){var l=bb[s];(r||e[l]!==n[l])&&(o||($h(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||($h(t,i),o=!0),t.shadowColor=e.shadowColor||Wv.shadowColor),o}function Yh(t,e,n,r,i){var o=Qh(e,i.inHover),a=r?null:n&&Qh(n,i.inHover)||{};if(o===a)return!1;var s=Xh(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||($h(t,i),s=!0),t.fillStyle=o.fill),(r||o.stroke!==a.stroke)&&(s||($h(t,i),s=!0),t.strokeStyle=o.stroke),(r||o.opacity!==a.opacity)&&(s||($h(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||($h(t,i),s=!0),t.lineWidth=u)}for(var h=0;h<Sb.length;h++){var c=Sb[h],p=c[0];(r||o[p]!==a[p])&&(s||($h(t,i),s=!0),t[p]=o[p]||c[1])}return s}function qh(t,e,n,r,i){return Xh(t,Qh(e,i.inHover),n&&Qh(n,i.inHover),r,i)}function jh(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Zh(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),jh(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function Kh(t,e){return t&&e?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||e?!0:!1}function Jh(t){var e=zh(t),n=Nh(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function $h(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Qh(t,e){return e?t.__hoverStyle||t.style:t.style}function tc(t,e){ec(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ec(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Kg.REDARAW_BIT,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||Eh(o,a))&&(a&&a.length&&($h(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&($h(t,n),t.save(),Zh(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var h=e instanceof Gy&&e.autoBatch&&Jh(e.style);s||Kh(i,u.transform)?($h(t,n),jh(t,e)):h||$h(t,n);var c=Qh(e,n.inHover);e instanceof Gy?(n.lastDrawType!==Mb&&(l=!0,n.lastDrawType=Mb),Yh(t,e,u,l,n),h&&(n.batchFill||n.batchStroke)||t.beginPath(),Gh(t,e,c,h),h&&(n.batchFill=c.fill||"",n.batchStroke=c.stroke||"")):e instanceof Uy?(n.lastDrawType!==Cb&&(l=!0,n.lastDrawType=Cb),Yh(t,e,u,l,n),Uh(t,e,c)):e instanceof qy?(n.lastDrawType!==Tb&&(l=!0,n.lastDrawType=Tb),qh(t,e,u,l,n),Wh(t,e,c)):e instanceof __&&(n.lastDrawType!==Db&&(l=!0,n.lastDrawType=Db),nc(t,e,n)),h&&r&&$h(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function nc(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;a>o;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ec(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=i.length;h>u;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ec(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function rc(t,e){function n(t){function e(){for(var t=1,e=0,n=m.length;n>e;++e)t=zr(t,m[e]);for(var r=1,e=0,n=y.length;n>e;++e)r=zr(r,y[e].length);t*=r;var i=_*m.length*y.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(i,s.maxTileHeight))}}function n(){function t(t,e,n,a,l){var u=o?1:r,h=Oh(l,t*u,e*u,n*u,a*u,s.color,s.symbolKeepAspect);o?w.appendChild(i.painter.paintOne(h)):tc(d,h)}d&&(d.clearRect(0,0,x.width,x.height),s.backgroundColor&&(d.fillStyle=s.backgroundColor,d.fillRect(0,0,x.width,x.height)));for(var e=0,n=0;n<v.length;++n)e+=v[n];if(!(0>=e))for(var a=-_,l=0,u=0,h=0;a<b.height;){if(l%2===0){for(var c=u/2%y.length,p=0,f=0,m=0;p<2*b.width;){for(var S=0,n=0;n<g[h].length;++n)S+=g[h][n];if(0>=S)break;if(f%2===0){var M=.5*(1-s.symbolSize),T=p+g[h][f]*M,C=a+v[l]*M,D=g[h][f]*s.symbolSize,k=v[l]*s.symbolSize,I=m/2%y[c].length;t(T,C,D,k,y[c][I])}p+=g[h][f],++m,++f,f===g[h].length&&(f=0)}++h,h===g.length&&(h=0)}a+=v[l],++u,++l,l===v.length&&(l=0)}}for(var a=[r],l=!0,u=0;u<Ab.length;++u){var h=s[Ab[u]],c=typeof h;if(null!=h&&!M(h)&&"string"!==c&&"number"!==c&&"boolean"!==c){l=!1;break}a.push(h)}var p;if(l){p=a.join(",")+(o?"-svg":"");var f=Ib.get(p);f&&(o?t.svgElement=f:t.image=f)}var d,g=oc(s.dashArrayX),v=ac(s.dashArrayY),y=ic(s.symbol),m=sc(g),_=lc(v),x=!o&&Id(),w=o&&i.painter.createSVGElement("g"),b=e();x&&(x.width=b.width*r,x.height=b.height*r,d=x.getContext("2d")),n(),l&&Ib.put(p,x||w),t.image=x,t.svgElement=w,t.svgWidth=b.width,t.svgHeight=b.height}if("none"===t)return null;var r=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type;t.dirty&&kb["delete"](t);var a=kb.get(t);if(a)return a;var s=c(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===s.backgroundColor&&(s.backgroundColor=null);var l={repeat:"repeat"};return n(l),l.rotation=s.rotation,l.scaleX=l.scaleY=o?1:1/r,kb.set(t,l),t.dirty=!1,l}function ic(t){if(!t||0===t.length)return[["rect"]];if("string"==typeof t)return[[t]];for(var e=!0,n=0;n<t.length;++n)if("string"!=typeof t[n]){e=!1;break}if(e)return ic([t]);for(var r=[],n=0;n<t.length;++n)r.push("string"==typeof t[n]?[t[n]]:t[n]);return r}function oc(t){if(!t||0===t.length)return[[0,0]];if("number"==typeof t){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if("number"!=typeof t[r]){n=!1;break}if(n)return oc([t]);for(var i=[],r=0;r<t.length;++r)if("number"==typeof t[r]){var e=Math.ceil(t[r]);i.push([e,e])}else{var e=y(t[r],function(t){return Math.ceil(t)});i.push(e.length%2===1?e.concat(e):e)}return i}function ac(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if("number"==typeof t){var e=Math.ceil(t);return[e,e]}var n=y(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}function sc(t){return y(t,function(t){return lc(t)})}function lc(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function uc(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(t){var n=r.getItemVisual(t,"decal");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=rc(n,e)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=rc(i,e)}}})}function hc(t){if(C(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;for(9===n.nodeType&&(n=n.firstChild);"svg"!==n.nodeName.toLowerCase()||1!==n.nodeType;)n=n.nextSibling;return n}function cc(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function pc(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};wc(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function fc(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),c(e.__inheritedStyle,t.__inheritedStyle))}function dc(t){for(var e=_c(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function gc(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(xc(t,e),wc(t,a,s),r||bc(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=yc(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=yc(o,"stroke",a.stroke,n)),v(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))}),v(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(o.style[t]=a[t])}),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=y(_c(a.lineDash),function(t){return parseFloat(t)})),("hidden"===a.visibility||"collapse"===a.visibility)&&(o.invisible=!0),"none"===a.display&&(o.ignore=!0),o.z=-1e4,o.z2=-1e3}function vc(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":("central"===r||"mathematical"===r)&&(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}function yc(t,e,n,r){var i=n&&n.match(Nb);if(i){var o=W(i[1]);return void r.push([t,e,o])}return"none"===n&&(n=null),n}function mc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}function _c(t){return t.match(zb)||[]}function xc(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(Fb,function(t,e,n){return r.push(e,n),""});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=void 0;switch(i=i||ze(),s){case"translate":l=_c(a),Ge(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":l=_c(a),Ue(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":l=_c(a),We(i,i,-parseFloat(l[0])/180*Math.PI);break;case"skew":l=_c(a),console.warn("Skew transform is not supported yet");break;case"matrix":l=_c(a),i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}function wc(t,e,n){var r=t.getAttribute("style");if(r){Vb.lastIndex=0;for(var i;null!=(i=Vb.exec(r));){var o=i[1],a=Z(Ob,o)?Ob[o]:null;a&&(e[a]=i[2]);var s=Z(Rb,o)?Rb[o]:null;s&&(n[s]=i[2])}}}function bc(t,e,n){for(var r=0;r<Lb.length;r++){var i=Lb[r],o=t.getAttribute(i);null!=o&&(e[Ob[i]]=o)}for(var r=0;r<Pb.length;r++){var i=Pb[r],o=t.getAttribute(i);null!=o&&(n[Rb[i]]=o)}}function Sc(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function Mc(t,e){var n=new Eb;return n.parse(t,e)}function Tc(t,e){return Math.abs(t-e)<Hb}function Cc(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];
  5. r+=po(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return Tc(i[0],s[0])&&Tc(i[1],s[1])||(r+=po(i[0],i[1],s[0],s[1],e,n)),0!==r}function Dc(t){t.silent=!1,t.isGroup&&t.traverse(function(t){t.silent=!1})}function kc(t){var e=[],n=Y();return v(t,function(t){if(null==t.namedFrom){var r=new Xb(t.name,t.el);e.push(r),n.set(t.name,r)}}),{regions:e,regionsMap:n}}function Ic(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);for(var r=e.features,i=0;i<r.length;i++){var o=r[i],a=o.geometry;if("Polygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)s[l]=Ac(s[l],a.encodeOffsets[l],n);else if("MultiPolygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)for(var u=s[l],h=0;h<u.length;h++)u[h]=Ac(u[h],a.encodeOffsets[l][h],n)}return e.UTF8Encoding=!1,e}function Ac(t,e,n){for(var r=[],i=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+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function Oc(t,e){return t=Ic(t),y(_(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,r=t.geometry,i=[];if("Polygon"===r.type){var o=r.coordinates;i.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if("MultiPolygon"===r.type){var o=r.coordinates;v(o,function(t){t[0]&&i.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})})}var a=new Ub(n[e||"name"],i,n.cp);return a.properties=n,a})}function Lc(t,e){"china"===t&&e.push(new Ub("南海诸岛",y(Zb,function(t){return{type:"polygon",exterior:t}}),jb))}function Rc(t,e){if("china"===t){var n=$b[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}function Pc(t,e){if("world"===t){var n=Qb[e.name];if(n){var r=[n[0],n[1]];e.setCenter(r)}}}function Ec(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:tS[0]})}function Bc(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function Nc(t){return C(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}function zc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void 0:Vc(this,t,e)}}function Fc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Vc(this,t,e)}}function Vc(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Hd.prototype[e].apply(t,n)}function Hc(t,e,n){var r=Xc(t);if(r)return r;var i=new sM(t,e,n);return i.id="ec_"+wM++,_M[i.id]=i,ui(t,SM,i.id),rM(i),aS(dM,function(t){t(i)}),i}function Gc(t){if(M(t)){var e=t;t=null,aS(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+bM++,aS(e,function(e){e.group=t})}return xM[t]=!0,t}function Wc(t){xM[t]=!1}function Uc(t){"string"==typeof t?t=_M[t]:t instanceof sM||(t=Xc(t)),t instanceof sM&&!t.isDisposed()&&t.dispose()}function Xc(t){return _M[hi(t,SM)]}function Yc(t){return _M[t]}function qc(t,e){yM[t]=e}function jc(t){uS(fM,t)<0&&fM.push(t)}function Zc(t,e){rp(pM,t,e,yS)}function Kc(t){uS(dM,t)<0&&t&&dM.push(t)}function Jc(t){uS(gM,t)<0&&t&&gM.push(t)}function $c(t,e,n){"function"==typeof e&&(n=e,e="");var r=lS(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,cM[e]||(oS(RS.test(r)&&RS.test(e)),hM[r]||(hM[r]={action:n,actionInfo:t}),cM[e]=r)}function Qc(t,e){Yx.register(t,e)}function tp(t){var e=Yx.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function ep(t,e){rp(vM,t,e,_S,"layout")}function np(t,e){rp(vM,t,e,bS,"visual")}function rp(t,e,n,r,i){if((sS(e)||lS(e))&&(n=e,e=r),!(uS(TM,n)>=0)){TM.push(n);var o=Rw.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function ip(t,e){mM[t]=e}function op(t){i("createCanvas",t)}function ap(t,e,n){iS.registerMap(t,e,n)}function sp(t){return iS.getMapForUser(t)}function lp(t){return null==t?0:t.length||1}function up(t){return t}function hp(t){var e={},n=e.encode={},r=Y(),i=[],o=[],a=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};v(t.dimensions,function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){var u=s.coordDimIndex;cp(n,l)[u]=e,s.isExtraCoord||(r.set(l,1),fp(s.type)&&(i[0]=e),cp(a.encode,l)[u]=s.index),s.defaultTooltip&&o.push(e)}xx.each(function(t,e){var r=cp(n,e),i=s.otherDims[e];null!=i&&i!==!1&&(r[i]=s.name)})});var s=[],l={};r.each(function(t,e){var r=n[e];l[e]=r[0],s=s.concat(r)}),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(i=u.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,e}function cp(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function pp(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function fp(t){return!("ordinal"===t||"time"===t)}function dp(t,e,n){function r(t,e,n){null!=xx.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}Jl(e)||(e=Ql(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),o=Y(),a=Y(),l=[],u=gp(e,t,i,n.dimCount),p=0;u>p;p++){var f=i[p],d=i[p]=h({},I(f)?f:{name:f}),g=d.name,y=l[p]=new WM;null!=g&&null==o.get(g)&&(y.name=y.displayName=g,o.set(g,p)),null!=d.type&&(y.type=d.type),null!=d.displayName&&(y.displayName=d.displayName)}var m=n.encodeDef;!m&&n.encodeDefaulter&&(m=n.encodeDefaulter(e,u));var _=Y(m);_.each(function(t,e){var n=Vr(t).slice();if(1===n.length&&!C(n[0])&&n[0]<0)return void _.set(e,!1);var i=_.set(e,[]);v(n,function(t,n){var a=C(t)?o.get(t):t;null!=a&&u>a&&(i[n]=a,r(l[a],e,n))})});var x=0;v(t,function(t){var e,n,i,o;if(C(t))e=t,o={};else{o=t,e=o.name;var a=o.ordinalMeta;o.ordinalMeta=null,o=s(o),o.ordinalMeta=a,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var u=_.get(e);if(u!==!1){if(u=Vr(u),!u.length)for(var h=0;h<(n&&n.length||1);h++){for(;x<l.length&&null!=l[x].coordDim;)x++;x<l.length&&u.push(x++)}v(u,function(t,a){var s=l[t];if(r(c(s,o),e,a),null==s.name&&n){var u=n[a];!I(u)&&(u={name:u}),s.name=s.displayName=u.name,s.defaultTooltip=u.defaultTooltip}i&&c(s.otherDims,i)})}});var w=n.generateCoord,b=n.generateCoordCount,S=null!=b;b=w?b||1:0;for(var M=w||"value",T=0;u>T;T++){var y=l[T]=l[T]||new WM,D=y.coordDim;null==D&&(y.coordDim=vp(M,a,S),y.coordDimIndex=0,(!w||0>=b)&&(y.isExtraCoord=!0),b--),null==y.name&&(y.name=vp(y.coordDim,o,!1)),null!=y.type||vl(e,T)!==Ax.Must&&(!y.isExtraCoord||null==y.otherDims.itemName&&null==y.otherDims.seriesName)||(y.type="ordinal")}return l}function gp(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return v(e,function(t){var e;I(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))}),i}function vp(t,e,n){if(n||null!=e.get(t)){for(var r=0;null!=e.get(t+r);)r++;t+=r}return e.set(t,!0),t}function yp(t,e){return e=e||{},dp(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})}function mp(t){var e=t.get("coordinateSystem"),n=new rT(e),r=iT[e];return r?(r(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function _p(t){return"category"===t.get("type")}function xp(t,e,n){n=n||{};var r,i,o,a,s=n.byIndex,l=n.stackedCoordDimension,u=!(!t||!t.get("stack"));if(v(e,function(t,n){C(t)&&(e[n]=t={name:t}),u&&!t.isExtraCoord&&(s||r||!t.ordinalMeta||(r=t),i||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(i=t))}),!i||s||r||(s=!0),i){o="__\x00ecstackresult",a="__\x00ecstackedover",r&&(r.createInvertedIndices=!0);var h=i.coordDim,c=i.type,p=0;v(e,function(t){t.coordDim===h&&p++}),e.push({name:o,coordDim:h,coordDimIndex:p,type:c,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:a,coordDim:a,coordDimIndex:p,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:i&&i.name,stackedByDimension:r&&r.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}function wp(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function bp(t,e){return wp(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Sp(t,e,n){n=n||{},Jl(t)||(t=Ql(t));var r,i=e.get("coordinateSystem"),o=Yx.get(i),a=mp(e);a&&a.coordSysDims&&(r=y(a.coordSysDims,function(t){var e={name:t},n=a.axisMap.get(t);if(n){var r=n.get("type");e.type=pp(r)}return e})),r||(r=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=n.useEncodeDefaulter,h=yp(t,{coordDimensions:r,generateCoord:n.generateCoord,encodeDefaulter:T(u)?u:u?S(pl,r,e):null});a&&v(h,function(t,e){var r=t.coordDim,i=a.categoryAxisMap.get(r);i&&(null==s&&(s=e),t.ordinalMeta=i.getOrdinalMeta(),n.createInvertedIndices&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(h[s].otherDims.itemName=0);var c=xp(e,h),p=new nT(h,e);p.setCalculationInfo(c);var f=null!=s&&Mp(t)?function(t,e,n,r){return r===s?n:this.defaultDimValueGetter(t,e,n,r)}:null;return p.hasItemOption=!1,p.initData(t,null,f),p}function Mp(t){if(t.sourceFormat===bx){var e=Tp(t.data||[]);return null!=e&&!M(Gr(e))}}function Tp(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Cp(t){return I(t)&&null!=t.value?t.value:t+""}function Dp(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Or(o/e,!0);null!=n&&n>a&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=kp(a),l=i.niceTickExtent=[sT(Math.ceil(t[0]/a)*a,s),sT(Math.floor(t[1]/a)*a,s)];return Ap(l,t),i}function kp(t){return Sr(t)+2}function Ip(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Ap(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ip(t,0,e),Ip(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Op(t,e){return t>=e[0]&&t<=e[1]}function Lp(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Rp(t,e){return t*(e[1]-e[0])+e[0]}function Pp(t){return t.get("stack")||cT+t.seriesIndex}function Ep(t){return t.dim+t.index}function Bp(t,e){var n=[];return e.eachSeriesByType(t,function(t){Hp(t)&&!Gp(t)&&n.push(t)}),n}function Np(t){var e={};v(t,function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.mapDimension(r.dim),s=0,l=i.count();l>s;++s){var u=i.get(a,s);e[o]?e[o].push(u):e[o]=[u]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(t,e){return t-e});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function zp(t){var e=Np(t),n=[];return v(t,function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=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]);r=l?u/c*l:u}else{var p=t.getData();r=Math.abs(a[1]-a[0])/p.count()}var f=_r(t.get("barWidth"),r),d=_r(t.get("barMaxWidth"),r),g=_r(t.get("barMinWidth")||1,r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:f,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:Ep(o),stackId:Pp(t)})}),Fp(n)}function Fp(t){var e={};v(t,function(t){var n=t.axisKey,r=t.bandWidth,i=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=i.stacks;e[n]=i;var a=t.stackId;o[a]||i.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(i.remainedWidth,s),i.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&&(i.gap=h);var c=t.barCategoryGap;null!=c&&(i.categoryGap=c)});var n={};return v(e,function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=w(r).length;o=Math.max(35-4*a,15)+"%"}var s=_r(o,i),l=_r(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),v(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,h--}else{var r=c;e&&r>e&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==c&&(t.width=r,u-=r+l*r,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,f=0;v(r,function(t){t.width||(t.width=c),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var d=-f/2;v(r,function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function Vp(t,e,n){if(t&&e){var r=t[Ep(e)];return null!=r&&null!=n?r[Pp(n)]:r}}function Hp(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Gp(t){return t.pipelineContext&&t.pipelineContext.large}function Wp(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function Up(t,e,n,r){var i=kr(e),o=kr(n),a=function(t){return Ps(i,t,r)===Ps(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},p=function(){return c()&&a("second")},f=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return p();case"millisecond":return f()}}function Xp(t){return t/=$_,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Yp(t){var e=30*$_;return t/=e,t>6?6:t>3?3:t>2?2:1}function qp(t){return t/=J_,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function jp(t,e){return t/=e?K_:Z_,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Zp(t){return Or(t,!0)}function Kp(t,e,n){var r=new Date(t);switch(ks(e)){case"year":case"month":r[Ws(n)](0);case"day":r[Us(n)](1);case"hour":r[Xs(n)](0);case"minute":r[Ys(n)](0);case"second":r[qs(n)](0),r[js(n)](0)}return r.getTime()}function Jp(t,e,n,r){function i(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,h=l[i]();n>u&&u<=r[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!Up(ks(t),r[0],r[1],n)){l&&(o=[{value:Kp(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<o.length-1;u++){var h=o[u].value,c=o[u+1].value;if(h!==c){var p=void 0,f=void 0,d=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/$_/365)),f=Es(n),d=Gs(n);break;case"half-year":case"quarter":case"month":p=Yp(e),f=Bs(n),d=Ws(n);break;case"week":case"half-week":case"day":p=Xp(e,31),f=Ns(n),d=Us(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=qp(e),f=zs(n),d=Xs(n);break;case"minute":p=jp(e,!0),f=Fs(n),d=Ys(n);break;case"second":p=jp(e,!1),f=Vs(n),d=qs(n);break;case"millisecond":p=Zp(e),f=Hs(n),d=js(n)}i(p,h,c,f,d,g,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u<s.length;u++)a.push(s[u]);return s}}for(var a=1e4,s=ix,l=0,u=[],h=[],c=0,p=0,f=0;f<s.length&&l++<a;++f){var d=ks(s[f]);if(Is(s[f])){o(s[f],u[u.length-1]||[],h);var g=s[f+1]?ks(s[f+1]):null;if(d!==g){if(h.length){p=c,h.sort(function(t,e){return t.value-e.value});for(var v=[],m=0;m<h.length;++m){var x=h[m].value;(0===m||h[m-1].value!==x)&&(v.push(h[m]),x>=r[0]&&x<=r[1]&&c++)}var w=(r[1]-r[0])/e;if(c>1.5*w&&p>w/1.5)break;if(u.push(v),c>w||t===s[f])break}h=[]}}}for(var b=_(y(u,function(t){return _(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd})}),function(t){return t.length>0}),S=[],M=b.length-1,f=0;f<b.length;++f)for(var T=b[f],C=0;C<T.length;++C)S.push({value:T[C].value,level:M-f});S.sort(function(t,e){return t.value-e.value});for(var D=[],f=0;f<S.length;++f)(0===f||S[f].value!==S[f-1].value)&&D.push(S[f]);return D}function $p(t,e){return xT(t,_T(e))}function Qp(t,e,n){var r=t.rawExtentInfo;return r?r:(r=new DT(t,e,n),t.rawExtentInfo=r,r)}function tf(t,e){return null==e?null:B(e)?0/0:t.parse(e)}function ef(t,e){var n=t.type,r=Qp(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=Bp("bar",a),l=!1;if(v(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=zp(s),h=nf(i,o,e,u);i=h.min,o=h.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function nf(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Vp(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;v(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;v(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,p=h/c-h;return e+=p*(l/u),t-=p*(s/u),{min:t,max:e}}function rf(t,e){var n=ef(t,e),r=n.extent,i=e.get("splitNumber");t instanceof TT&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(r[0],r[1]),t.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.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 of(t,e){if(e=e||t.get("type"))switch(e){case"category":return new lT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new gT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(oT.getClass(e)||hT)}}function af(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):"string"==typeof e?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):"function"==typeof e?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(sf(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function sf(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function lf(t){var e=t.get("interval");return null==e?"auto":e}function uf(t){return"category"===t.type&&0===lf(t.getLabelModel())}function hf(t){return Sp(t.getSource(),t)}function cf(t,e){var n=e;e instanceof F_||(n=new F_(e));var r=of(n);return r.setExtent(t[0],t[1]),rf(r,n),r}function pf(t){d(t,AT)}function ff(t,e){return e=e||{},ps(t,null,null,"normal"!==e.state)}function df(t){return M(t)?void v(t,function(t){df(t)}):void(p(RT,t)>=0||(RT.push(t),T(t)&&(t={install:t}),t.install(PT)))}function gf(t){return"category"===t.type?yf(t):xf(t)}function vf(t,e){return"category"===t.type?_f(t,e):{ticks:y(t.scale.getTicks(),function(t){return t.value})}}function yf(t){var e=t.getLabelModel(),n=mf(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function mf(t,e){var n=wf(t,"labels"),r=lf(e),i=bf(n,r);if(i)return i;var o,a;return T(r)?o=kf(t,r):(a="auto"===r?Mf(t):r,o=Df(t,a)),Sf(n,r,{labels:o,labelCategoryInterval:a})}function _f(t,e){var n=wf(t,"ticks"),r=lf(e),i=bf(n,r);if(i)return i;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),T(r))o=kf(t,r,!0);else if("auto"===r){var s=mf(t,t.getLabelModel());a=s.labelCategoryInterval,o=y(s.labels,function(t){return t.tickValue})}else a=r,o=Df(t,a,!0);return Sf(n,r,{ticks:o,tickCategoryInterval:a})}function xf(t){var e=t.scale.getTicks(),n=af(t);return{labels:y(e,function(e,r){return{formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function wf(t,e){return VT(t)[e]||(VT(t)[e]=[])}function bf(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Sf(t,e,n){return t.push({key:e,value:n}),n}function Mf(t){var e=VT(t).autoInterval;return null!=e?e:VT(t).autoInterval=t.calculateCategoryInterval()}function Tf(t){var e=Cf(t),n=af(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.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(r)),c=Math.abs(u*Math.sin(r)),p=0,f=0;l<=o[1];l+=s){var d=0,g=0,v=Pn(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var y=p/h,m=f/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=VT(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.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function Cf(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 Df(t,e,n){function r(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}var i=af(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 p=uf(t),f=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;f&&h!==a[0]&&r(a[0]);for(var g=h;g<=a[1];g+=u)r(g);return d&&g-u!==a[1]&&r(a[1]),l}function kf(t,e,n){var r=t.scale,i=af(t),o=[];return v(r.getTicks(),function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})}),o}function If(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function Af(t,e,n,r){function i(t,e){return t=xr(t),e=xr(e),p?t>e:e>t}var o=e.length;if(t.onBand&&!n&&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;v(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 p=l[0]>l[1];i(e[0].coord,l[0])&&(r?e[0].coord=l[0]:e.shift()),r&&i(l[0],e[0].coord)&&e.unshift({coord:l[0]}),i(l[1],a.coord)&&(r?a.coord=l[1]:e.pop()),r&&i(a.coord,l[1])&&e.push({coord:l[1]})}}function Of(t){var e=dx.extend(t);return dx.registerClass(e),e}function Lf(t){var e=_w.extend(t);return _w.registerClass(e),e}function Rf(t){var e=mw.extend(t);return mw.registerClass(e),e}function Pf(t){var e=bw.extend(t);return bw.registerClass(e),e}function Ef(){return!1}function Bf(t,e,n){var r=Id(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}function Nf(t){return parseInt(t,10)}function zf(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function Ff(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function Vf(t){t.registerPainter("canvas",jT)}function Hf(t){t.registerComponentModel(ZT),t.registerComponentView(KT)}function Gf(t,e){return!!Wf(t)[e]}function Wf(t){return t[JT]||(t[JT]={})}function Uf(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(qd(r.event),Xf(t,e,n,r,i))}function Xf(t,e,n,r,i){i.isAvailableBehavior=Ad(Yf,null,n,r),t.trigger(e,i)}function Yf(t,e,n){var r=n[t];return!t||r&&(!C(r)||e.event[r+"Key"])}function qf(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function jf(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}function Zf(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!QT.hasOwnProperty(r.mainType)&&i&&i.model!==n}function Kf(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function Jf(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Kf(i),u=Kf(o),h=Kf(s),c=Kf(a),p=t.data;if(p){var f=p.getItemVisual(n,"style"),d=p.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),d&&(l.decal=rc(d,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=h,e.ensureState("blur").style=c,Jo(e)}function $f(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),h=s&&s.getItemLayout(o);if(l||u||h&&h.showLabel){var c=l?n:o,p=void 0;(!s||o>=0)&&(p=i);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;hs(e,cs(r),{labelFetcher:p,labelDataIndex:c,defaultText:n},f);var d=e.getTextContent();if(d&&(iC(d).ignore=d.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}_s(e,o,null),e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Qf(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):im(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function td(t,e,n,r,i){t.data||ss({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function ed(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return ya(e,a,o.get("blurScope")),t.isGeo&&wa(e,i,n),a}function nd(t,e,n){e=M(e)&&{coordDimensions:e}||h({},e);var r=t.getSource(),i=yp(r,e),o=new nT(i,t);return o.initData(r,n),o}function rd(t,e){var n={};return v(t,function(t){t.each(t.mapDimension("value"),function(e,r){var i="ec-"+t.getName(r);n[i]=n[i]||[],isNaN(e)||n[i].push(e)})}),t[0].map(t[0].mapDimension("value"),function(r,i){for(var o="ec-"+t[0].getName(i),a=0,s=1/0,l=-1/0,u=n[o].length,h=0;u>h;h++)s=Math.min(s,n[o][h]),l=Math.max(l,n[o][h]),a+=n[o][h];var c;return c="min"===e?s:"max"===e?l:"average"===e?a/u:a,0===u?0/0:c})}function id(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)}),v(e,function(t){for(var e=rd(y(t,function(t){return t.getData()}),t[0].get("mapValueCalculation")),n=0;n<t.length;n++)t[n].originalData=t[n].getData();for(var n=0;n<t.length;n++)t[n].seriesGroup=t,t[n].needsDrawMap=0===n&&!t[n].getHostGeoModel(),t[n].setData(e.cloneShallow()),t[n].mainSeries=t[0]})}function od(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};v(n.seriesGroup,function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}})});var o=n.getData();o.each(function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)}),e[r]=!0}})}function ad(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function sd(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",kv).models[0]||{}).coordinateSystem:null}function ld(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}var o,a,s=this.getBoundingRect(),l=t.get("layoutCenter"),u=t.get("layoutSize"),h=e.getWidth(),c=e.getHeight(),p=s.width/s.height*this.aspectScale,f=!1;l&&u&&(o=[_r(l[0],h),_r(l[1],c)],a=_r(u,Math.min(h,c)),isNaN(o[0])||isNaN(o[1])||isNaN(a)||(f=!0));var d;if(f)d={},p>1?(d.width=a,d.height=a/p):(d.height=a,d.width=a*p),d.y=o[1]-d.height/2,d.x=o[0]-d.width/2;else{var g=t.getBoxLayoutParams();g.aspect=p,d=ol(g,{width:h,height:c})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function ud(t,e){v(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}function hd(t,e,n){var r=t.getZoom(),i=t.getCenter(),o=e.zoom,a=t.dataToPoint(i);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(t.pointToData(a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(r*o,l),s)/r}t.scaleX*=o,t.scaleY*=o;var u=(e.originX-t.x)*(o-1),h=(e.originY-t.y)*(o-1);t.x-=u,t.y-=h,t.updateTransform(),t.setCenter(t.pointToData(a)),t.setZoom(o*r)}return{center:t.getCenter(),zoom:t.getZoom()}}function cd(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},function(n){n[e](t.name);var o=n.coordinateSystem;v(o.regions,function(t){r[t.name]=n.isSelected(t.name)||!1});var a=[];v(r,function(t,e){r[e]&&a.push(e)}),i.push({geoIndex:n.componentIndex,name:a})}),{selected:r,allSelected:i,name:t.name}})}t.registerCoordinateSystem("geo",fC),t.registerComponentModel(dC),t.registerComponentView(gC),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){var r=e.coordinateSystem;if("geo"===r.type){var i=hd(r,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom),"series"===n&&v(e.seriesGroup,function(t){t.setCenter(i.center),t.setZoom(i.zoom)})}})})}function pd(t){df(cd),t.registerChartView(aC),t.registerSeriesModel(sC),t.registerLayout(od),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,id),Ch("map",t.registerAction)}var fd=function(t,e){return(fd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},dd=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),gd=function(){function t(){this.browser=new dd,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}return t}(),vd=new gd;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(vd.wxa=!0,vd.canvasSupported=!0,vd.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(vd.worker=!0,vd.canvasSupported=!0):"undefined"==typeof navigator?(vd.node=!0,vd.canvasSupported=!0,vd.svgSupported=!0):r(navigator.userAgent,vd);var yd={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},md={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},_d=Object.prototype.toString,xd=Array.prototype,wd=xd.forEach,bd=xd.filter,Sd=xd.slice,Md=xd.map,Td=function(){}.constructor,Cd=Td?Td.prototype:null,Dd={},kd=2311,Id=function(){return Dd.createCanvas()};Dd.createCanvas=function(){return document.createElement("canvas")};var Ad=Cd&&T(Cd.bind)?Cd.call.bind(Cd.bind):b,Od="__ec_primitive__",Ld=function(){function t(e){function n(t,e){r?i.set(t,e):i.set(e,t)}this.data={};var r=M(e);this.data={};var i=this;e instanceof t?e.each(n):e&&v(e,n)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return w(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}(),Rd=(Object.freeze||Object)({$override:i,guid:o,logError:a,clone:s,merge:l,mergeAll:u,extend:h,defaults:c,createCanvas:Id,indexOf:p,inherits:f,mixin:d,isArrayLike:g,each:v,map:y,reduce:m,filter:_,find:x,keys:w,bind:Ad,curry:S,isArray:M,isFunction:T,isString:C,isStringSafe:D,isNumber:k,isObject:I,isBuiltInObject:A,isTypedArray:O,isDom:L,isGradientObject:R,isPatternObject:P,isRegExp:E,eqNaN:B,retrieve:N,retrieve2:z,retrieve3:F,slice:V,normalizeCssArray:H,assert:G,trim:W,setAsPrimitive:U,isPrimitive:X,HashMap:Ld,createHashMap:Y,concatArray:q,createObject:j,hasOwn:Z,noop:K}),Pd=ie,Ed=oe,Bd=ce,Nd=pe,zd=(Object.freeze||Object)({create:J,copy:$,clone:Q,set:te,add:ee,scaleAndAdd:ne,sub:re,len:ie,length:Pd,lenSquare:oe,lengthSquare:Ed,mul:ae,div:se,dot:le,scale:ue,normalize:he,distance:ce,dist:Bd,distanceSquare:pe,distSquare:Nd,negate:fe,lerp:de,applyTransform:ge,min:ve,max:ye}),Fd=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget
  6. }return t}(),Vd=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._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.handler.dispatchToElement(new Fd(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new Fd(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Fd(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Fd(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Fd(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Fd(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Hd=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;o>i;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;a>s;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){if(!this._$handlers)return this;var e=this._$handlers[t],n=this._$eventProcessor;if(e)for(var r=arguments,i=r.length,o=r[i-1],a=e.length,s=0;a>s;s++){var l=e[s];if(!n||!n.filter||null==l.query||n.filter(t,l.query))switch(i){case 0:l.h.call(o);break;case 1:l.h.call(o,r[0]);break;case 2:l.h.call(o,r[0],r[1]);break;default:l.h.apply(o,r.slice(1,i-1))}}return n&&n.afterTrigger&&n.afterTrigger(t),this},t}(),Gd=Math.log(2),Wd="___zrEVENTSAVED",Ud="undefined"!=typeof window&&!!window.addEventListener,Xd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yd=[],qd=Ud?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},jd=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;a>o;o++){var s=r[o],l=Me(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in Zd)if(Zd.hasOwnProperty(e)){var n=Zd[e](this._track,t);if(n)return n}},t}(),Zd={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=Le(r)/Le(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Re(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Kd="silent",Jd=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(Hd),$d=function(){function t(t,e){this.x=t,this.y=e}return t}(),Qd=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tg=function(t){function n(e,n,r,i){var o=t.call(this)||this;return o._hovered=new $d(0,0),o.storage=e,o.painter=n,o.painterRoot=i,r=r||new Jd,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Vd(o),o}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(v(Qd,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Ne(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new $d(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new $d(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){for(var i="on"+e,o=Pe(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){for(var r=this.storage.getDisplayList(),i=new $d(t,e),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=Be(r[o],t,e))&&(!i.topTarget&&(i.topTarget=r[o]),a!==Kd)){i.target=r[o];break}}return i},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new jd);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new $d;o.target=r.target,this.dispatchToElement(o,i,r.event)}},n}(Hd);v(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){tg.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Ne(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Bd(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var eg,ng,rg=(Object.freeze||Object)({create:ze,identity:Fe,copy:Ve,mul:He,translate:Ge,rotate:We,scale:Ue,invert:Xe,clone:Ye}),ig=Fe,og=5e-5,ag=[],sg=[],lg=ze(),ug=Math.abs,hg=function(){function t(){}return t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return qe(this.rotation)||qe(this.x)||qe(this.y)||qe(this.scaleX-1)||qe(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),r=this.transform;return n||e?(r=r||ze(),n?this.getLocalTransform(r):ig(r),e&&(n?He(r,t.transform,r):Ve(r,t.transform)),this.transform=r,void this._resolveGlobalScaleRatio(r)):void(r&&ig(r))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(ag);var n=ag[0]<0?-1:1,r=ag[1]<0?-1:1,i=((ag[0]-n)*e+n)/ag[0]||0,o=((ag[1]-r)*e+r)/ag[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ze(),Xe(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3];qe(e-1)&&(e=Math.sqrt(e)),qe(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),this.rotation=Math.atan2(-t[1]/n,t[0]/e),0>e&&0>n&&(this.rotation+=Math.PI,e=-e,n=-n),this.x=t[4],this.y=t[5],this.scaleX=e,this.scaleY=n}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(He(sg,t.invTransform,e),e=sg);var n=this.originX,r=this.originY;(n||r)&&(lg[4]=n,lg[5]=r,He(sg,e,lg),sg[4]-=n,sg[5]-=r,e=sg),this.setLocalTransform(e)}},t.prototype.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)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&ge(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&ge(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&ug(t[0]-1)>1e-10&&ug(t[3]-1)>1e-10?Math.sqrt(ug(t[0]*t[3]-t[2]*t[1])):1},t.getLocalTransform=function(t,e){e=e||[],ig(e);var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y;return e[4]-=n,e[5]-=r,e[0]*=i,e[1]*=o,e[2]*=i,e[3]*=o,e[4]*=i,e[5]*=o,a&&We(e,e,a),e[4]+=n,e[5]+=r,e[4]+=s,e[5]+=l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),cg={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r)))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/r)*.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-cg.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*cg.bounceIn(2*t):.5*cg.bounceOut(2*t-1)+.5}},pg=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,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}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var n=(t-this._startTime-this._pausedTime)/this._life;0>n&&(n=0),n=Math.min(n,1);var r=this.easing,i="string"==typeof r?cg[r]:r,o="function"==typeof i?i(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1},t.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),fg=function(){function t(t){this.value=t}return t}(),dg=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new fg(t);return this.insertEntry(e),e},t.prototype.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),gg=function(){function t(t){this._list=new dg,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new fg(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),vg={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]},yg=new gg(20),mg=null,_g=hn,xg=cn,wg=(Object.freeze||Object)({parse:on,lift:ln,toHex:un,fastLerp:hn,fastMapToColor:_g,lerp:cn,mapToColor:xg,modifyHSL:pn,modifyAlpha:fn,stringify:dn,lum:gn,random:vn}),bg=Array.prototype.slice,Sg=[0,0,0,0],Mg=function(){function t(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,r=n.length;if(this.interpolable)if(g(e)){var i=An(e);if(r>0&&this.arrDim!==i)return void(this.interpolable=!1);if(1===i&&"number"!=typeof e[0]||2===i&&"number"!=typeof e[0][0])return void(this.interpolable=!1);if(r>0){var o=n[r-1];this._isAllValueEqual&&(1===i?Mn(e,o.value)||(this._isAllValueEqual=!1):this._isAllValueEqual=!1)}this.arrDim=i}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof e){var a=on(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e||isNaN(e))return void(this.interpolable=!1);if(this._isAllValueEqual&&r>0){var o=n[r-1];this.isValueColor&&!Mn(o.value,e)?this._isAllValueEqual=!1:o.value!==e&&(this._isAllValueEqual=!1)}}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort(function(t,e){return t.time-e.time});for(var n=this.arrDim,r=e.length,i=e[r-1],o=0;r>o;o++)e[o].percent=e[o].time/this.maxTime,n>0&&o!==r-1&&Sn(e[o].value,i.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var a=e[0].value,o=0;r>o;o++)0===n?e[o].additiveValue=this.isValueColor?wn([],e[o].value,a,-1):e[o].value-a:1===n?e[o].additiveValue=wn([],e[o].value,a,-1):2===n&&(e[o].additiveValue=bn([],e[o].value,a,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r=null!=this._additiveTrack,i=r?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(0>e)n=0;else if(e<this._lastFramePercent){var h=Math.min(this._lastFrame+1,a-1);for(n=h;n>=0&&!(o[n].percent<=e);n--);n=Math.min(n,a-2)}else{for(n=this._lastFrame;a>n&&!(o[n].percent>e);n++);n=Math.min(n-1,a-2)}var c=o[n+1],p=o[n];if(p&&c){this._lastFrame=n,this._lastFramePercent=e;var f=c.percent-p.percent;if(0!==f){var d=(e-p.percent)/f,g=r?this._additiveValue:u?Sg:t[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var v=o[n][i],y=o[0===n?n:n-1][i],m=o[n>a-2?a-1:n+1][i],_=o[n>a-3?a-1:n+2][i];if(l>0)1===l?Cn(g,y,v,m,_,d,d*d,d*d*d):Dn(g,y,v,m,_,d,d*d,d*d*d);else if(u)Cn(g,y,v,m,_,d,d*d,d*d*d),r||(t[s]=In(g));else{var x=void 0;x=this.interpolable?Tn(y,v,m,_,d,d*d,d*d*d):m,r?this._additiveValue=x:t[s]=x}}else if(l>0)1===l?_n(g,p[i],c[i],d):xn(g,p[i],c[i],d);else if(u)_n(g,p[i],c[i],d),r||(t[s]=In(g));else{var x=void 0;x=this.interpolable?yn(p[i],c[i],d):mn(p[i],c[i],d),r?this._additiveValue=x:t[s]=x}r&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,r=this._additiveValue;0===e?this.isValueColor?(on(t[n],Sg),wn(Sg,Sg,r,1),t[n]=In(Sg)):t[n]=t[n]+r:1===e?wn(t[n],t[n],r,1):2===e&&bn(t[n],t[n],r,1)},t}(),Tg=function(){function t(t,e,n){return this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?void a("Can' use additive animation on looped animation."):void(this._additiveAnimators=n)}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,w(e))},t.prototype.whenWithKeys=function(t,e,n){for(var r=this._tracks,i=0;i<n.length;i++){var o=n[i],a=r[o];if(!a){a=r[o]=new Mg(o);var s=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes[l.keyframes.length-1];s=u&&u.value,l.isValueColor&&s&&(s=In(s))}else s=this._target[o];if(null==s)continue;0!==t&&a.addKeyframe(0,kn(s)),this._trackKeys.push(o)}a.addKeyframe(t,kn(e[o]))}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneList;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedList;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t,e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes;if(a.prepare(s),a.needsAnimate())r.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(n._target[a.propName]=u.value)}}if(r.length||e){var h=new pg({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var i=!1,o=0;o<e.length;o++)if(e[o]._clip){i=!0;break}i||(n._additiveAnimators=null)}for(var o=0;o<r.length;o++)r[o].step(n._target,t);var a=n._onframeList;if(a)for(var o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&"spline"!==t&&(h.easing=t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(t)),this},t.prototype.done=function(t){return t&&(this._doneList||(this._doneList=[]),this._doneList.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i&&!i.isFinished()){var o=i.keyframes,a=o[o.length-1];if(a){var s=kn(a.value);i.isValueColor&&(s=In(s)),t[r]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||w(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(i.getAdditiveTrack())}}}},t}(),Cg=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Dg=Math.min,kg=Math.max,Ig=new Cg,Ag=new Cg,Og=new Cg,Lg=new Cg,Rg=new Cg,Pg=new Cg,Eg=function(){function t(t,e,n,r){0>n&&isFinite(n)&&(t+=n,n=-n),0>r&&isFinite(r)&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=Dg(t.x,this.x),n=Dg(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?kg(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?kg(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=ze();return Ge(i,i,[-e.x,-e.y]),Ue(i,i,[n,r]),Ge(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||i>u||h>s||a>c);if(n){var f=1/0,d=0,g=Math.abs(o-l),v=Math.abs(u-i),y=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,v),x=Math.min(y,m);l>o||i>u?_>d&&(d=_,v>g?Cg.set(Pg,-g,0):Cg.set(Pg,v,0)):f>_&&(f=_,v>g?Cg.set(Rg,g,0):Cg.set(Rg,-v,0)),h>s||a>c?x>d&&(d=x,m>y?Cg.set(Pg,0,-y):Cg.set(Pg,0,m)):f>_&&(f=_,m>y?Cg.set(Rg,0,y):Cg.set(Rg,0,-m))}return n&&Cg.copy(n,p?Rg:Pg),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(!r)return void(e!==n&&t.copy(e,n));if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Ig.x=Og.x=n.x,Ig.y=Lg.y=n.y,Ag.x=Lg.x=n.x+n.width,Ag.y=Og.y=n.y+n.height,Ig.transform(r),Lg.transform(r),Ag.transform(r),Og.transform(r),e.x=Dg(Ig.x,Ag.x,Og.x,Lg.x),e.y=Dg(Ig.y,Ag.y,Og.y,Lg.y);var l=kg(Ig.x,Ag.x,Og.x,Lg.x),u=kg(Ig.y,Ag.y,Og.y,Lg.y);e.width=l-e.x,e.height=u-e.y},t}(),Bg={},Ng="12px sans-serif",zg={measureText:On},Fg=1;"undefined"!=typeof window&&(Fg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Vg=Fg,Hg=.4,Gg="#333",Wg="#ccc",Ug="#eee",Xg="__zr_normal__",Yg=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],qg={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},jg={},Zg=new Eg(0,0,0,0),Kg=function(){function t(t){this.id=o(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.attachedTransform,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.x=e.x,i.y=e.y,i.originX=e.originX,i.originY=e.originY,i.rotation=e.rotation,i.scaleX=e.scaleX,i.scaleY=e.scaleY,null!=n.position){var u=Zg;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(jg,n,u):Fn(jg,n,u),i.x=jg.x,i.y=jg.y,o=jg.align,a=jg.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=zn(h[0],u.width),p=zn(h[1],u.height)),l=!0,i.originX=-i.x+c+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)
  7. }}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,(null==v||"auto"===v)&&(v=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,(null==v||"auto"===v)&&(v=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",(v!==g.fill||y!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),s&&e.dirtyStyle(),e.markRedraw()}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wg:Gg},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&on(t);e||(e=[255,255,255,1]);for(var n=e[3],r=this.__zr.isDarkMode(),i=0;3>i;i++)e[i]=e[i]*n+(r?0:255)*(1-n);return e[3]=1,dn(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},h(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(I(t))for(var n=t,r=w(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!i||i===Xg){var o=r.targetName,a=o?e[o]:e;r.saveFinalToTarget(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Yg)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Xg,!1,t)},t.prototype.useState=function(e,n,r){var i=e===Xg,o=this.hasState();if(o||!i){var s=this.currentStates,l=this.stateTransition;if(!(p(s,e)>=0)||!n&&1!==s.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i)return void a("State "+e+" not exists.");i||this.saveCurrentToNormalState(u);var h=!(!u||!u.hoverLayer);return h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l),this._textContent&&this._textContent.useState(e,n),this._textGuide&&this._textGuide.useState(e,n),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~t.REDARAW_BIT),u}}},t.prototype.useStates=function(e,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;o>s;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var h=!(!r[o-1]||!r[o-1].hoverLayer);h&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!n&&!this.__inHover&&p&&p.duration>0,p),this._textContent&&this._textContent.useStates(e),this._textGuide&&this._textGuide.useStates(e),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~t.REDARAW_BIT)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=p(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=p(r,t),o=p(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];h(n,i),i.textConfig&&(e=e||{},h(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=h({},r?this.textConfig:n.textConfig),h(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Yg.length;u++){var c=Yg[u],p=i&&qg[c];e&&null!=e[c]?p?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(p?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(var u=0;u<this.animators.length;u++){var f=this.animators[u],d=f.targetName;f.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.attachedTransform=new hg,this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),h(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.attachedTransform=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=t.REDARAW_BIT;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)},t.prototype.animate=function(t,e){var n=t?this[t]:this;if(!n)return void a('Property "'+t+'" is not existed in element '+this.id);var r=new Tg(n,e);return this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var e=r.animators,n=p(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;r>o;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Vn(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Vn(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Vn(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.REDARAW_BIT=1,t.initDefaultProps=function(){function e(t,e,n){i[t+e+n]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+n+"' instead"),i[t+e+n]=!0)}function n(t,n,i,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(r,t,{get:function(){if(e(t,i,o),!this[n]){var r=this[n]=[];a(this,r)}return this[n]},set:function(r){e(t,i,o),this[i]=r[0],this[o]=r[1],this[n]=r,a(this,r)}})}var r=t.prototype;r.type="element",r.name="",r.ignore=!1,r.silent=!1,r.isGroup=!1,r.draggable=!1,r.dragging=!1,r.ignoreClip=!1,r.__inHover=!1,r.__dirty=t.REDARAW_BIT;var i={};Object.defineProperty&&(!vd.browser.ie||vd.browser.version>8)&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();d(Kg,Hd),d(Kg,hg);var Jg,$g=32,Qg=7,tv=!1,ev=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=tr}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;i>r;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,vd.canvasSupported&&$n(n,tr)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Kg.REDARAW_BIT),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Qn(),u.z=0),isNaN(u.z2)&&(Qn(),u.z2=0),isNaN(u.zlevel)&&(Qn(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var r=p(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Jg="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var nv=Jg,rv=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n.onframe=e.onframe||function(){},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,r=this._clipsHead;r;){var i=r.next,o=r.step(e,n);o?(r.ondestroy&&r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(nv(t),!e._paused&&e.update())}var e=this;this._running=!0,nv(t)},n.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},n.prototype.isFinished=function(){return null==this._clipsHead},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new Tg(t,e.loop);return this.addAnimator(n),n},n}(Hd),iv=300,ov=vd.domSupported,av=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=y(t,function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:r}}(),sv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lv=!1,uv=function(){function t(t,e){this.stopPropagation=K,this.stopImmediatePropagation=K,this.preventDefault=K,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),hv={mousedown:function(t){t=De(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=De(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=De(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=De(this.dom,t);var e=t.toElement||t.relatedTarget;or(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){lv=!0,t=De(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){lv||(t=De(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=De(this.dom,t),rr(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),hv.mousemove.call(this,t),hv.mousedown.call(this,t)},touchmove:function(t){t=De(this.dom,t),rr(t),this.handler.processGesture(t,"change"),hv.mousemove.call(this,t)},touchend:function(t){t=De(this.dom,t),rr(t),this.handler.processGesture(t,"end"),hv.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<iv&&hv.click.call(this,t)},pointerdown:function(t){hv.mousedown.call(this,t)},pointermove:function(t){er(t)||hv.mousemove.call(this,t)},pointerup:function(t){hv.mouseup.call(this,t)},pointerout:function(t){er(t)||hv.mouseout.call(this,t)}};v(["click","dblclick","contextmenu"],function(t){hv[t]=function(e){e=De(this.dom,e),this.trigger(t,e)}});var cv={pointermove:function(t){er(t)||cv.mousemove.call(this,t)},pointerup:function(t){cv.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},pv=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),fv=function(t){function n(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new pv(e,hv),ov&&(r._globalHandlerScope=new pv(document,cv)),ar(r,r._localHandlerScope),r}return e(n,t),n.prototype.dispose=function(){ur(this._localHandlerScope),ov&&ur(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ov&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?sr(this,e):ur(e)}},n}(Hd),dv=function(t){function n(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},n.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},n.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,r=p(n,t);return 0>r?this:(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},n.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},n.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},n.prototype.getBoundingRect=function(t){for(var e=new Eg(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Eg.applyTransform(e,s,l),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},n}(Kg);dv.prototype.type="group";var gv=!vd.canvasSupported,vv={},yv={},mv=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new ev,o=n.renderer||"canvas";if(gv)throw new Error("IE8 support has been dropped since 5.0");if(vv[o]||(o=w(vv)[0]),!vv[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null==n.useDirtyRect?!1:n.useDirtyRect;var a=new vv[o](e,i,n,t);this.storage=i,this.painter=a;var s=vd.node||vd.worker?null:new fv(a.getViewportRoot(),a.root);this.handler=new tg(i,a,s,a.root),this.animation=new rv({stage:{update:function(){return r._flush(!0)}}}),this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=cr(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=(new Date).getTime();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(){},t.prototype.removeHover=function(){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){return this.painter.pathToImage?this.painter.pathToImage(t,e):void 0},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof dv&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.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,hr(this.id)},t}(),_v="5.1.0",xv=(Object.freeze||Object)({init:pr,dispose:fr,disposeAll:dr,getInstance:gr,registerPainter:vr,version:_v}),wv=1e-4,bv=9007199254740991,Sv=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Mv=("undefined"!=typeof console&&console.warn&&console.log,"series\x00"),Tv="\x00_ec_\x00",Cv=["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"],Dv=Br(),kv={useDefault:!0,enableAll:!1,enableNone:!1},Iv=".",Av="___EC__COMPONENT__CONTAINER___",Ov="___EC__EXTENDED_CLASS___",Lv=Math.round(10*Math.random()),Rv=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Pv=bi(Rv),Ev=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Pv(this,t,e)},t}(),Bv=new gg(50),Nv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,zv=function(){function t(){}return t}(),Fv=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Vv=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}(),Hv=m(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Gv="__zr_style_"+Math.round(10*Math.random()),Wv={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Uv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wv[Gv]=!0;var Xv=["z","z2","invisible"],Yv=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype._init=function(e){for(var n=w(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Ni(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return r.contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Eg(0,0,0,0)),e?Eg.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Eg(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:h(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(){this.markRedraw(),this.__dirty|=n.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(this.__dirty&n.STYLE_CHANGED_BIT)},n.prototype.styleUpdated=function(){this.__dirty&=~n.STYLE_CHANGED_BIT},n.prototype.createStyle=function(t){return j(Wv,t)},n.prototype.useStyle=function(t){t[Gv]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[Gv]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Xv)},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=w(u),c=0;c<h.length;c++){var p=h[c];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var f=w(s),c=0;c<f.length;c++){var p=f[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var c=0;c<Xv.length;c++){var p=Xv[c];n&&null!=n[p]?this[p]=n[p]:l&&null!=r[p]&&(this[p]=r[p])}},n.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},n.prototype._mergeStyle=function(t,e){return h(t,e),t},n.prototype.getAnimationStyleProps=function(){return Uv},n.STYLE_CHANGED_BIT=2,n.initDefaultProps=function(){var t=n.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Kg.REDARAW_BIT|n.STYLE_CHANGED_BIT}(),n}(Kg),qv=new Eg(0,0,0,0),jv=new Eg(0,0,0,0),Zv=Math.pow,Kv=Math.sqrt,Jv=1e-8,$v=1e-4,Qv=Kv(3),ty=1/3,ey=J(),ny=J(),ry=J(),iy=Math.min,oy=Math.max,ay=Math.sin,sy=Math.cos,ly=2*Math.PI,uy=J(),hy=J(),cy=J(),py=[],fy=[],dy={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},gy=[],vy=[],yy=[],my=[],_y=[],xy=[],wy=Math.min,by=Math.max,Sy=Math.cos,My=Math.sin,Ty=Math.sqrt,Cy=Math.abs,Dy=Math.PI,ky=2*Dy,Iy="undefined"!=typeof Float32Array,Ay=[],Oy=function(){function t(t){this.dpr=1,this._version=0,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=Cy(n/Vg/t)||0,this._uy=Cy(n/Vg/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this.addData(dy.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Cy(t-this._xi)>this._ux||Cy(e-this._yi)>this._uy||this._len<5;return this.addData(dy.L,t,e),this._ctx&&n&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this.addData(dy.C,t,e,n,r,i,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,r,i,o):this._ctx.bezierCurveTo(t,e,n,r,i,o)),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this.addData(dy.Q,t,e,n,r),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,r):this._ctx.quadraticCurveTo(t,e,n,r)),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){Ay[0]=r,Ay[1]=i,ao(Ay,o),r=Ay[0],i=Ay[1];
  8. var a=i-r;return this.addData(dy.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Sy(i)*n+t,this._yi=My(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._ctx&&this._ctx.rect(t,e,n,r),this.addData(dy.R,t,e,n,r),this},t.prototype.closePath=function(){this.addData(dy.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},t.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Iy||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;e>i;i++)n+=t[i].len();Iy&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;e>i;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype._dashedLineTo=function(t,e){var n,r,i=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,h=t-l,c=e-u,p=Ty(h*h+c*c),f=l,d=u,g=o.length;for(h/=p,c/=p,0>s&&(s=i+s),s%=i,f-=s*h,d-=s*c;h>0&&t>=f||0>h&&f>=t||0===h&&(c>0&&e>=d||0>c&&d>=e);)r=this._dashIdx,n=o[r],f+=h*n,d+=c*n,this._dashIdx=(r+1)%g,h>0&&l>f||0>h&&f>l||c>0&&u>d||0>c&&d>u||a[r%2?"moveTo":"lineTo"](h>=0?wy(f,t):by(f,t),c>=0?wy(d,e):by(d,e));h=f-t,c=d-e,this._dashOffset=-Ty(h*h+c*c)},t.prototype._dashedBezierTo=function(t,e,n,r,i,o){var a,s,l,u,h,c=this._ctx,p=this._dashSum,f=this._dashOffset,d=this._lineDash,g=this._xi,v=this._yi,y=0,m=this._dashIdx,_=d.length,x=0;for(0>f&&(f=p+f),f%=p,a=0;1>a;a+=.1)s=Vi(g,t,n,i,a+.1)-Vi(g,t,n,i,a),l=Vi(v,e,r,o,a+.1)-Vi(v,e,r,o,a),y+=Ty(s*s+l*l);for(;_>m&&(x+=d[m],!(x>f));m++);for(a=(x-f)/y;1>=a;)u=Vi(g,t,n,i,a),h=Vi(v,e,r,o,a),m%2?c.moveTo(u,h):c.lineTo(u,h),a+=d[m]/y,m=(m+1)%_;m%2!==0&&c.lineTo(i,o),s=i-u,l=o-h,this._dashOffset=-Ty(s*s+l*l)},t.prototype._dashedQuadraticTo=function(t,e,n,r){var i=n,o=r;n=(n+2*t)/3,r=(r+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,r,i,o)},t.prototype.toStatic=function(){if(this._saveData){var t=this.data;t instanceof Array&&(t.length=this._len,Iy&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){yy[0]=yy[1]=_y[0]=_y[1]=Number.MAX_VALUE,my[0]=my[1]=xy[0]=xy[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,o=r),a){case dy.M:n=i=e[t++],r=o=e[t++],_y[0]=i,_y[1]=o,xy[0]=i,xy[1]=o;break;case dy.L:eo(n,r,e[t],e[t+1],_y,xy),n=e[t++],r=e[t++];break;case dy.C:no(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],_y,xy),n=e[t++],r=e[t++];break;case dy.Q:ro(n,r,e[t++],e[t++],e[t],e[t+1],_y,xy),n=e[t++],r=e[t++];break;case dy.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(i=Sy(p)*h+l,o=My(p)*c+u),io(l,u,h,c,p,f,d,_y,xy),n=Sy(f)*h+l,r=My(f)*c+u;break;case dy.R:i=n=e[t++],o=r=e[t++];var g=e[t++],v=e[t++];eo(i,o,i+g,o+v,_y,xy);break;case dy.Z:n=i,r=o}ve(yy,yy,_y),ye(my,my,xy)}return 0===t&&(yy[0]=yy[1]=my[0]=my[1]=0),new Eg(yy[0],yy[1],my[0]-yy[0],my[1]-yy[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;e>c;){var p=t[c++],f=1===c;f&&(i=t[c],o=t[c+1],a=i,s=o);var d=-1;switch(p){case dy.M:i=a=t[c++],o=s=t[c++];break;case dy.L:var g=t[c++],v=t[c++],y=g-i,m=v-o;(Cy(y)>n||Cy(m)>r||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=g,o=v);break;case dy.C:var _=t[c++],x=t[c++],g=t[c++],v=t[c++],w=t[c++],b=t[c++];d=Yi(i,o,_,x,g,v,w,b,10),i=w,o=b;break;case dy.Q:var _=t[c++],x=t[c++],g=t[c++],v=t[c++];d=Qi(i,o,_,x,g,v,10),i=g,o=v;break;case dy.A:var S=t[c++],M=t[c++],T=t[c++],C=t[c++],D=t[c++],k=t[c++],I=k+D;c+=1;{!t[c++]}f&&(a=Sy(D)*T+S,s=My(D)*C+M),d=by(T,C)*wy(ky,Math.abs(k)),i=Sy(I)*T+S,o=My(I)*C+M;break;case dy.R:a=i=t[c++],s=o=t[c++];var A=t[c++],O=t[c++];d=2*A+2*O;break;case dy.Z:var y=a-i,m=s-o;d=Math.sqrt(y*y+m*m),i=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,h,c=this.data,p=this._ux,f=this._uy,d=this._len,g=1>e,v=0,y=0;if(!g||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var m=0;d>m;){var _=c[m++],x=1===m;switch(x&&(i=c[m],o=c[m+1],n=i,r=o),_){case dy.M:n=i=c[m++],r=o=c[m++],t.moveTo(i,o);break;case dy.L:if(a=c[m++],s=c[m++],Cy(a-i)>p||Cy(s-o)>f||m===d-1){if(g){var w=l[y++];if(v+w>h){var b=(h-v)/w;t.lineTo(i*(1-b)+a*b,o*(1-b)+s*b);break t}v+=w}t.lineTo(a,s),i=a,o=s}break;case dy.C:var S=c[m++],M=c[m++],T=c[m++],C=c[m++],D=c[m++],k=c[m++];if(g){var w=l[y++];if(v+w>h){var b=(h-v)/w;Ui(i,S,T,D,b,gy),Ui(o,M,C,k,b,vy),t.bezierCurveTo(gy[1],vy[1],gy[2],vy[2],gy[3],vy[3]);break t}v+=w}t.bezierCurveTo(S,M,T,C,D,k),i=D,o=k;break;case dy.Q:var S=c[m++],M=c[m++],T=c[m++],C=c[m++];if(g){var w=l[y++];if(v+w>h){var b=(h-v)/w;Ji(i,S,T,b,gy),Ji(o,M,C,b,vy),t.quadraticCurveTo(gy[1],vy[1],gy[2],vy[2]);break t}v+=w}t.quadraticCurveTo(S,M,T,C),i=T,o=C;break;case dy.A:var I=c[m++],A=c[m++],O=c[m++],L=c[m++],R=c[m++],P=c[m++],E=c[m++],B=!c[m++],N=O>L?O:L,z=Cy(O-L)>.001,F=R+P,V=!1;if(g){var w=l[y++];v+w>h&&(F=R+P*(h-v)/w,V=!0),v+=w}if(z&&t.ellipse?t.ellipse(I,A,O,L,E,R,F,B):t.arc(I,A,N,R,F,B),V)break t;x&&(n=Sy(R)*O+I,r=My(R)*L+A),i=Sy(F)*O+I,o=My(F)*L+A;break;case dy.R:n=i=c[m],r=o=c[m+1],a=c[m++],s=c[m++];var H=c[m++],G=c[m++];if(g){var w=l[y++];if(v+w>h){var W=h-v;t.moveTo(a,s),t.lineTo(a+wy(W,H),s),W-=H,W>0&&t.lineTo(a+H,s+wy(W,G)),W-=G,W>0&&t.lineTo(a+by(H-W,0),s+G),W-=H,W>0&&t.lineTo(a,s+by(G-W,0));break t}v+=w}t.rect(a,s,H,G);break;case dy.Z:if(g){var w=l[y++];if(v+w>h){var b=(h-v)/w;t.lineTo(i*(1-b)+n*b,o*(1-b)+r*b);break t}v+=w}t.closePath(),i=n,o=r}}},t.CMD=dy,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0}(),t}(),Ly=2*Math.PI,Ry=2*Math.PI,Py=Oy.CMD,Ey=2*Math.PI,By=1e-4,Ny=[-1,-1,-1],zy=[-1,-1],Fy=c({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wv),Vy={style:c({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Uv.style)},Hy=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Gy=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<Hy.length;++s)i[Hy[s]]=this[Hy[s]];i.__dirty|=Kg.REDARAW_BIT}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=w(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?h(this.style,a):this.useStyle(a):"shape"===o?h(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(C(t)){var e=gn(t,0);return e>.5?Gg:e>.2?Ug:Wg}if(t)return Wg}return Gg},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(C(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=gn(t,0)<Hg;if(r===i)return e}},n.prototype.buildPath=function(){},n.prototype.pathUpdated=function(){this.__dirty&=~n.SHAPE_CHANGED_BIT},n.prototype.createPathProxy=function(){this.path=new Oy(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,r=!t;if(r){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&n.SHAPE_CHANGED_BIT)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||r){a.copy(t);var s=e.strokeNoScale?this.getLineScale():1,l=e.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,null==u?4:u)}s>1e-10&&(a.width+=l/s,a.height+=l/s,a.x-=l/s/2,a.y-=l/s/2)}return a}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),wo(o,a/s,t,e)))return!0}if(this.hasFill())return xo(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=n.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:h(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&n.SHAPE_CHANGED_BIT)},n.prototype.createStyle=function(t){return j(Fy,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=h({},this.shape))},n.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=h({},r.shape),h(s,n.shape)):(s=h({},i?this.shape:r.shape),h(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=w(s),p=0;p<c.length;p++){var f=c[p];"object"==typeof s[f]?this.shape[f]=s[f]:u[f]=s[f]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},n.prototype.getAnimationStyleProps=function(){return Vy},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var r=function(n){function r(e){var r=n.call(this,e)||this;return t.init&&t.init.call(r,e),r}return e(r,n),r.prototype.getDefaultStyle=function(){return s(t.style)},r.prototype.getDefaultShape=function(){return s(t.shape)},r}(n);for(var i in t)"function"==typeof t[i]&&(r.prototype[i]=t[i]);return r},n.SHAPE_CHANGED_BIT=4,n.initDefaultProps=function(){var t=n.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Kg.REDARAW_BIT|Yv.STYLE_CHANGED_BIT|n.SHAPE_CHANGED_BIT}(),n}(Yv),Wy=c({strokeFirst:!0,font:Ng,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Fy),Uy=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createStyle=function(t){return j(Wy,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Pn(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},n.initDefaultProps=function(){var t=n.prototype;t.dirtyRectTolerance=10}(),n}(Yv);Uy.prototype.type="tspan";var Xy=c({x:0,y:0},Wv),Yy={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Uv.style)},qy=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return j(Xy,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=bo(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return Yy},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Eg(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(Yv);qy.prototype.type="image";var jy=Math.round,Zy=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Ky={},Jy=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Zy},n.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=To(Ky,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?So(t,e):t.rect(n,r,i,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(Gy);Jy.prototype.type="rect";var $y={fill:"#000"},Qy=2,tm={style:c({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Uv.style)},em=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=$y,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}var r=this.attachedTransform;if(r){r.updateTransform();var i=r.transform;i?(this.transform=this.transform||[],Ve(this.transform,i)):this.transform=null}else t.prototype.update.call(this)},n.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():t.prototype.getComputedTransform.call(this)},n.prototype._updateSubTexts=function(){this._childCursor=0,Do(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},n.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Eg(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),r=r||t.clone(),r.union(t)):(r=r||a.clone(),r.union(a))}this._rect=r||t}return this._rect},n.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||$y},n.prototype.setTextContent=function(){throw new Error("Can't attach text on another text")},n.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return h(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},n.prototype._mergeRich=function(t,e){for(var n=w(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},h(t[i],e[i])}},n.prototype.getAnimationStyleProps=function(){return tm},n.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},n.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Ng,n=t.padding,r=Lo(t),i=Oi(r,t),o=Ro(t),a=!!t.backgroundColor,s=i.outerHeight,l=i.lines,u=i.lineHeight,h=this._defaultStyle,c=t.x||0,p=t.y||0,f=t.align||h.align||"left",d=t.verticalAlign||h.verticalAlign||"top",g=c,v=Bn(p,i.contentHeight,d);if(o||n){var y=i.width;n&&(y+=n[1]+n[3]);var m=En(c,y,f),_=Bn(p,s,d);o&&this._renderBackground(t,t,m,_,y,s)}v+=u/2,n&&(g=Oo(c,f,n),"top"===d?v+=n[0]:"bottom"===d&&(v-=n[2]));for(var x=0,w=!1,b=(Ao("fill"in t?t.fill:(w=!0,h.fill))),S=(Io("stroke"in t?t.stroke:a||h.autoStroke&&!w?null:(x=Qy,h.stroke))),M=t.textShadowBlur>0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,D=0;D<l.length;D++){var k=this._getOrCreateChild(Uy),I=k.createStyle();k.useStyle(I),I.text=l[D],I.x=g,I.y=v,f&&(I.textAlign=f),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,M&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),S&&(I.stroke=S,I.lineWidth=t.lineWidth||x,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),b&&(I.fill=b),I.font=e,v+=u,T&&k.setBoundingRect(new Eg(En(I.x,t.width,I.textAlign),Bn(I.y,C,I.textBaseline),t.width,C))}},n.prototype._updateRichTexts=function(){var t=this.style,e=Lo(t),n=Li(e,t),r=n.width,i=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,h=t.align||u.align,c=t.verticalAlign||u.verticalAlign,p=En(s,i,h),f=Bn(l,o,c),d=p,g=f;a&&(d+=a[3],g+=a[0]);var v=d+r;Ro(t)&&this._renderBackground(t,t,p,f,i,o);for(var y=!!t.backgroundColor,m=0;m<n.lines.length;m++){for(var _=n.lines[m],x=_.tokens,w=x.length,b=_.lineHeight,S=_.width,M=0,T=d,C=v,D=w-1,k=void 0;w>M&&(k=x[M],!k.align||"left"===k.align);)this._placeToken(k,t,b,g,T,"left",y),S-=k.width,T+=k.width,M++;for(;D>=0&&(k=x[D],"right"===k.align);)this._placeToken(k,t,b,g,C,"right",y),S-=k.width,C-=k.width,D--;for(T+=(r-(T-d)-(v-C)-S)/2;D>=M;)k=x[M],this._placeToken(k,t,b,g,T+k.width/2,"center",y),T+=k.width,M++;g+=b}},n.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var h=!t.isLineHolder&&Ro(s);h&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,p=t.textPadding;p&&(i=Oo(i,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var f=this._getOrCreateChild(Uy),d=f.createStyle();f.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=Io("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=Io("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||g.autoStroke&&!v?null:(y=Qy,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||Ng,d.opacity=F(s.opacity,e.opacity,1),_&&(d.lineWidth=F(s.lineWidth,e.lineWidth,y),d.lineDash=z(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),m&&(d.fill=m);var w=t.contentWidth,b=t.contentHeight;f.setBoundingRect(new Eg(En(d.x,w,d.textAlign),Bn(d.y,b,d.textBaseline),w,b))},n.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=C(l),p=t.borderRadius,f=this;if(c||u&&h){a=this._getOrCreateChild(Jy),a.useStyle(a.createStyle()),a.style.fill=null;var d=a.shape;d.x=n,d.y=r,d.width=i,d.height=o,d.r=p,a.dirtyShape()}if(c){var g=a.style;g.fill=l||null,g.fillOpacity=z(t.fillOpacity,1)}else if(l&&l.image){s=this._getOrCreateChild(qy),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=r,v.width=i,v.height=o}if(u&&h){var g=a.style;g.lineWidth=u,g.stroke=h,g.strokeOpacity=z(t.strokeOpacity,1),g.lineDash=t.borderDash,g.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=F(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var n="";n="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,n,t.fontFamily||"sans-serif"].join(" ")}return e&&W(e)||t.textFont||t.font},n}(Yv),nm={left:!0,right:1,center:1},rm={top:1,bottom:1,middle:1},im=oi(),om=1,am={},sm=oi(),lm=0,um=1,hm=2,cm=["emphasis","blur","select"],pm=["normal","emphasis","blur","select"],fm=10,dm=9,gm="highlight",vm="downplay",ym="select",mm="unselect",_m="toggleSelect",xm=new gg(100),wm=Oy.CMD,bm=[[],[],[]],Sm=Math.sqrt,Mm=Math.atan2,Tm=Math.sqrt,Cm=Math.sin,Dm=Math.cos,km=Math.PI,Im=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Am=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Om=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(Gy),Lm=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Rm=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Lm},n.prototype.buildPath=function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(Gy);Rm.prototype.type="circle";var Pm=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Em=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Pm},n.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},n}(Gy);Em.prototype.type="ellipse";var Bm=Math.PI,Nm=2*Bm,zm=Math.sin,Fm=Math.cos,Vm=Math.acos,Hm=Math.atan2,Gm=Math.abs,Wm=Math.sqrt,Um=Math.max,Xm=Math.min,Ym=1e-4,qm=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0}return t}(),jm=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new qm},n.prototype.buildPath=function(t,e){Fa(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(Gy);jm.prototype.type="sector";var Zm=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Km=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Zm},n.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},n}(Gy);Km.prototype.type="ring";var Jm=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),$m=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Jm},n.prototype.buildPath=function(t,e){Wa(t,e,!0)},n}(Gy);$m.prototype.type="polygon";var Qm=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),t_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new Qm},n.prototype.buildPath=function(t,e){Wa(t,e,!1)},n}(Gy);t_.prototype.type="polyline";var e_={},n_=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),r_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new n_},n.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Mo(e_,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),1>s&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(Gy);r_.prototype.type="line";var i_=[],o_=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),a_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new o_},n.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,r),null==l||null==u?(1>h&&(Ji(n,a,i,h,i_),a=i_[1],i=i_[2],Ji(r,s,o,h,i_),s=i_[1],o=i_[2]),t.quadraticCurveTo(a,s,i,o)):(1>h&&(Ui(n,a,l,i,h,i_),a=i_[1],l=i_[2],i=i_[3],Ui(r,s,u,o,h,i_),s=i_[1],u=i_[2],o=i_[3]),t.bezierCurveTo(a,s,l,u,i,o)))},n.prototype.pointAt=function(t){return Ua(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=Ua(this.shape,t,!0);return he(e,e)},n}(Gy);a_.prototype.type="bezier-curve";var s_=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),l_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new s_},n.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=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*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},n}(Gy);l_.prototype.type="arc";var u_=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},n.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},n.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},n.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},n.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Gy.prototype.getBoundingRect.call(this)},n}(Gy),h_=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),c_=function(t){function n(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return e(n,t),n}(h_),p_=function(t){function n(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return e(n,t),n}(h_),f_=[0,0],d_=[0,0],g_=new Cg,v_=new Cg,y_=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;4>n;n++)this._corners[n]=new Cg;for(var n=0;2>n;n++)this._axes[n]=new Cg;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;4>l;l++)n[l].transform(e);Cg.sub(r[0],n[1],n[0]),Cg.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;2>l;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return g_.set(1/0,1/0),v_.set(0,0),!this._intersectCheckOneSide(this,t,g_,v_,r,1)&&(n=!1,r)?n:!this._intersectCheckOneSide(t,this,g_,v_,r,-1)&&(n=!1,r)?n:(r||Cg.copy(e,n?g_:v_),n)},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,f_),this._getProjMinMaxOnAxis(s,e._corners,d_),f_[1]<d_[0]||f_[0]>d_[1]){if(a=!1,i)return a;var u=Math.abs(d_[0]-f_[1]),h=Math.abs(f_[0]-d_[1]);Math.min(u,h)>r.len()&&(h>u?Cg.scale(r,l,-u*o):Cg.scale(r,l,h*o))}else if(n){var u=Math.abs(d_[0]-f_[1]),h=Math.abs(f_[0]-d_[1]);Math.min(u,h)<n.len()&&(h>u?Cg.scale(n,l,u*o):Cg.scale(n,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),m_=[],__=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return e(n,t),n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.useStyle=function(){this.style={}},n.prototype.getCursor=function(){return this._cursor},n.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},n.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},n.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},n.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},n.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},n.prototype.getDisplayables=function(){return this._displayables},n.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},n.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])},n.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}},n.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Eg(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();
  9. n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(m_)),t.union(r)}this._rect=t}return this._rect},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(t,e))return!0}return!1},n}(Yv),x_=Math.max,w_=Math.min,b_={},S_=Ea,M_=Ba;qa("circle",Rm),qa("ellipse",Em),qa("sector",jm),qa("ring",Km),qa("polygon",$m),qa("polyline",t_),qa("rect",Jy),qa("line",r_),qa("bezierCurve",a_),qa("arc",l_);var T_={},C_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],D_=["align","lineHeight","width","height","tag","verticalAlign"],k_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],I_=oi(),A_=["textStyle","color"],O_=new em,L_=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(A_):null)},t.prototype.getFont=function(){return ys({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){return O_.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),O_.update(),O_.getBoundingRect()},t}(),R_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],P_=bi(R_),E_=function(){function t(){}return t.prototype.getLineStyle=function(t){return P_(this,t)},t}(),B_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],N_=bi(B_),z_=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return N_(this,t,e)},t}(),F_=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){l(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(s(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!vd.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||(n=n&&"object"==typeof n?n[t[r]]:null,null!=n));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();gi(F_),mi(F_),d(F_,E_),d(F_,z_),d(F_,Ev),d(F_,L_);var V_=Math.round(10*Math.random()),H_={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Guage",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},G_={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},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:""}}}},W_="ZH",U_="EN",X_=U_,Y_={},q_={},j_=vd.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(W_)>-1?W_:X_}():X_;Ss(U_,H_),Ss(W_,G_);var Z_=1e3,K_=60*Z_,J_=60*K_,$_=24*J_,Q_=365*$_,tx={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},ex="{yyyy}-{MM}-{dd}",nx={year:"{yyyy}",month:"{yyyy}-{MM}",day:ex,hour:ex+" "+tx.hour,minute:ex+" "+tx.minute,second:ex+" "+tx.second,millisecond:tx.none},rx=["year","month","day","hour","minute","second","millisecond"],ix=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],ox=H,ax=/([&<>"'])/g,sx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},lx=["a","b","c","d","e","f","g"],ux=function(t,e){return"{"+t+(null==e?"":e)+"}"},hx=v,cx=["left","right","top","bottom","width","height"],px=[["width","left","right"],["height","top","bottom"]],fx=(S(il,"vertical"),S(il,"horizontal"),oi()),dx=function(t){function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=xs("ec_cpt_model"),i}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=al(this),r=n?ll(t):{},i=e.getTheme();l(t,i.get(this.mainType)),l(t,this.getDefaultOption()),n&&sl(t,r,n)},n.prototype.mergeOption=function(t){l(this.option,t,!0);var e=al(this);e&&sl(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!di(t))return t.defaultOption;var e=fx(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=l(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return li(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(F_);yi(dx,F_),wi(dx),ws(dx),bs(dx,hl);var gx="";"undefined"!=typeof navigator&&(gx=navigator.platform||"");var vx,yx,mx="rgba(0, 0, 0, 0.2)",_x={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mx,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mx,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mx,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mx,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mx,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mx,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gx.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},xx=Y(["tooltip","label","itemName","itemId","seriesName"]),bx="original",Sx="arrayRows",Mx="objectRows",Tx="keyedColumns",Cx="typedArray",Dx="unknown",kx="column",Ix="row",Ax={Must:1,Might:2,Not:3},Ox=oi(),Lx=Y(),Rx=oi(),Px=(oi(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Vr(this.get("color",!0)),i=this.get("colorLayer",!0);return xl(this,Rx,r,i,t,e,n)},t.prototype.clearColorPalette=function(){wl(this,Rx)},t}()),Ex="\x00_ec_inner",Bx=1,Nx=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new F_(r),this._locale=new F_(i),this._optionManager=o},n.prototype.setOption=function(t,e,n){var r=Cl(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},n.prototype.resetOption=function(t,e){return this._resetOption(t,Cl(e))},n.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):yx(this,i),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&v(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=ml(this,e,Vr(t[e])),a=i.get(e),s=a?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",l=Ur(a,n,s);ni(l,e,dx),r[e]=null,i.set(e,null),o.set(e,0);var u=[],p=[],f=0;v(l,function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=dx.getClass(e,t.keyInfo.subType,!o);if(!a)return;if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=h({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),h(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(u.push(r.option),p.push(r),f++):(u.push(void 0),p.push(void 0))},this),r[e]=u,i.set(e,p),o.set(e,f),"series"===e&&vx(this)}var r=this.option,i=this._componentsMap,o=this._componentsCount,a=[],u=Y(),c=e&&e.replaceMergeMainTypeMap;cl(this),v(t,function(t,e){null!=t&&(dx.hasClass(e)?e&&(a.push(e),u.set(e,!0)):r[e]=null==r[e]?s(t):l(r[e],t,!0))}),c&&c.each(function(t,e){dx.hasClass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),dx.topologicalTravel(a,dx.getAllClassMainTypes(),n,this),this._seriesIndices||vx(this)},n.prototype.getOption=function(){var t=s(this.option);return v(t,function(e,n){if(dx.hasClass(n)){for(var r=Vr(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!ei(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t[Ex],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.getLocale=function(t){var e=this.getLocaleModel();return e.get(t)},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},n.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n=t.index,r=t.id,i=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;return null!=n?(a=[],v(Vr(n),function(t){o[t]&&a.push(o[t])})):a=null!=r?Ml("id",r,o):null!=i?Ml("name",i,o):_(o,function(t){return!!t}),Tl(a,t)},n.prototype.findComponents=function(t){function e(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}function n(e){return t.filter?_(e,t.filter):e}var r=t.query,i=t.mainType,o=e(r),a=o?this.queryComponents(o):_(this._componentsMap.get(i),function(t){return!!t});return n(Tl(a,t))},n.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(T(t)){var i=e,o=t;r.each(function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}})}else for(var a=C(t)?r.get(t):I(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},n.prototype.getSeriesByName=function(t){var e=Qr(t,null);return _(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},n.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},n.prototype.getSeriesByType=function(t){return _(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},n.prototype.getSeries=function(){return _(this._componentsMap.get("series").slice(),function(t){return!!t})},n.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},n.prototype.eachSeries=function(t,e){v(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)},this)},n.prototype.eachRawSeries=function(t,e){v(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},n.prototype.eachSeriesByType=function(t,e,n){v(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)},this)},n.prototype.eachRawSeriesByType=function(t,e,n){return v(this.getSeriesByType(t),e,n)},n.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},n.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},n.prototype.filterSeries=function(t,e){var n=[];v(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},n.prototype.restoreData=function(t){vx(this);var e=this._componentsMap,n=[];e.each(function(t,e){dx.hasClass(e)&&n.push(e)}),dx.topologicalTravel(n,dx.getAllClassMainTypes(),function(n){v(e.get(n),function(e){!e||"series"===n&&bl(e,t)||e.restoreData()})})},n.internalField=function(){vx=function(t){var e=t._seriesIndices=[];v(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Y(e)},yx=function(t,e){t.option={},t.option[Ex]=Bx,t._componentsMap=Y({series:[]}),t._componentsCount=Y();var n=e.aria;I(n)&&null==n.enabled&&(n.enabled=!0),Sl(e,t._theme.option),l(e,_x,!1),t._mergeOption(e,null)}}(),n}(F_);d(Nx,Px);var zx,Fx,Vx,Hx,Gx,Wx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Ux=function(){function t(t){v(Wx,function(e){this[e]=Ad(t[e],t)},this)}return t}(),Xx={},Yx=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];v(Xx,function(r){var i=r.create(t,e);n=n.concat(i||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){v(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Xx[t]=e},t.get=function(t){return Xx[t]},t}(),qx=/^(min|max)?(.+)$/,jx=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(v(Vr(t.series),function(t){t&&t.data&&O(t.data)&&U(t.data)}),v(Vr(t.dataset),function(t){t&&t.source&&O(t.source)&&U(t.source)})),t=s(t);var n=this._optionBackup,r=Dl(t,e,!n);this._newBaseOption=r.baseOption,n?(r.timelineOptions.length&&(n.timelineOptions=r.timelineOptions),r.mediaList.length&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=s(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,r=this._mediaDefault,i=[],o=[];if(!n.length&&!r)return o;for(var a=0,l=n.length;l>a;a++)kl(n[a].query,t,e)&&i.push(a);return!i.length&&r&&(i=[-1]),i.length&&!Al(i,this._currentMediaIndices)&&(o=y(i,function(t){return s(-1===t?r.option:n[t].option)})),this._currentMediaIndices=i,o},t}(),Zx=v,Kx=I,Jx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],$x=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Qx=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],tw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],ew=function(){function t(t){this.data=t.data||(t.sourceFormat===Tx?{}:[]),this.sourceFormat=t.sourceFormat||Dx,this.seriesLayoutBy=t.seriesLayoutBy||kx,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption}return t}(),nw=function(){function t(t,e){var n=Jl(t)?t:Ql(t);this._source=n;var r=this._data=n.data;n.sourceFormat===Cx&&(this._offset=0,this._dimSize=e,this._data=r),Gx(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;Gx=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Hx[hu(a,s)];if(h(t,c),a===Cx)t.getItem=n,t.count=i,t.fillStorage=r;else{var p=su(a,s);t.getItem=Ad(p,null,e,l,u);var f=lu(a,s);t.count=Ad(f,null,e,l,u)}};var n=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;r>o;o++)e[o]=n[i+o];return e},r=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;h>p;p++){var f=i[p*o+a];c[t+p]=f,l>f&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};e={},e[Sx+"_"+kx]={pure:!0,appendData:t},e[Sx+"_"+Ix]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Mx]={pure:!0,appendData:t},e[Tx]={pure:!0,appendData:function(t){var e=this._data;v(t,function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])})}},e[bx]={appendData:t},e[Cx]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Hx=e}(),t}(),rw=function(t,e,n,r){return t[r]},iw=(zx={},zx[Sx+"_"+kx]=function(t,e,n,r){return t[r+e]},zx[Sx+"_"+Ix]=function(t,e,n,r){r+=e;for(var i=[],o=t,a=0;a<o.length;a++){var s=o[a];i.push(s?s[r]:null)}return i},zx[Mx]=rw,zx[Tx]=function(t,e,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o].name,s=t[a];i.push(s?s[r]:null)}return i},zx[bx]=rw,zx),ow=function(t){return t.length},aw=(Fx={},Fx[Sx+"_"+kx]=function(t,e){return Math.max(0,t.length-e)},Fx[Sx+"_"+Ix]=function(t,e){var n=t[0];return n?Math.max(0,n.length-e):0},Fx[Mx]=ow,Fx[Tx]=function(t,e,n){var r=n[0].name,i=t[r];return i?i.length:0},Fx[bx]=ow,Fx),sw=function(t,e){return null!=e?t[e]:t},lw=(Vx={},Vx[Sx]=sw,Vx[Mx]=function(t,e,n){return null!=e?t[n]:t},Vx[Tx]=sw,Vx[bx]=function(t,e){var n=Gr(t);return null!=e&&n instanceof Array?n[e]:n},Vx[Cx]=sw,Vx),uw=/\{@(.+?)\}/g,hw=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,p=n.userOutput;return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:p?p.dimensionNames:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=r&&M(s.value)&&(s.value=s.value[r]),!i){var l=a.getItemModel(t);i=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if("function"==typeof i)return s.status=e,s.dimensionIndex=r,i(s);if("string"==typeof i){var u=Qs(i,s);return u.replace(uw,function(e,n){var r=n.length,i="["===n.charAt(0)&&"]"===n.charAt(r-1)?+n.slice(1,r-1):n,s=cu(a,t,i);if(o&&M(o.interpolatedValue)){var l=a.getDimensionInfo(i);l&&(s=o.interpolatedValue[l.index])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return cu(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),cw=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(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=this._doReset(r)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!r&&(h||f>p)){var d=this._progress;if(M(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],p,f,l,u);else this._doProgress(d,p,f,l,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){pw.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:pw.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),M(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),pw=function(){function t(){return n>r?r++:null}function e(){var t=r%a*i+Math.ceil(r/a),e=r>=n?null:o>t?t:r;return r++,e}var n,r,i,o,a,s={reset:function(l,u,h,c){r=l,n=u,i=h,o=c,a=Math.ceil(o/i),s.next=i>1&&o>0?e:t}};return s}(),fw=(Y({number:function(t){return parseFloat(t)},time:function(t){return+kr(t)},trim:function(t){return"string"==typeof t?W(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),dw=(function(){function t(t,e){if("number"!=typeof e){var n="";Fr(n)}this._opFn=fw[t],this._rvalFloat=Pr(e)}return t.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(Pr(t),this._rvalFloat)},t}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=typeof t,r=typeof e,i="number"===n?t:Pr(t),o="number"===r?e:Pr(e),a=isNaN(i),s=isNaN(o);if(a&&(i=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===r;l&&(i=u?t:0),u&&(o=l?e:0)}return o>i?this._resultLT:i>o?-this._resultLT:0},t}(),function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Pr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Pr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return fu(t,e)},t}()),gw=Y(),vw=function(){function t(t){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[])},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Mu(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=O(a)?Cx:bx,e=[];var h=this._getSourceMetaRawOption(),c=l?l.metaRawOption:null,p=z(h.seriesLayoutBy,c?c.seriesLayoutBy:null),f=z(h.sourceHeader,c?c.sourceHeader:null),d=z(h.dimensions,c?c.dimensions:null);t=[$l(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s,o.get("encode",!0))]}else{var g=n;if(i){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else{var y=g.get("source",!0);t=[$l(y,this._getSourceMetaRawOption(),null,null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),r=e.get("fromTransformResult",!0);if(null!=r){var i="";1!==t.length&&Tu(i)}var o,a=[],s=[];return v(t,function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||Tu(n),a.push(e),s.push(t._getVersionSign())}),n?o=xu(n,a,{datasetIndex:e.componentIndex}):null!=r&&(o=[tu(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){var t=this._sourceList;if(!t.length)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(t){return this._sourceList[t||0]},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Mu(t)){var e=dl(t);return e?[e.getSourceManager()]:[]}return y(gl(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(Mu(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}(),yw=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Br()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=tl({color:e,type:t,renderMode:n,markerId:r});return C(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};M(e)?v(e,function(t){return h(n,t)}):h(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}(),oi()),mw=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=pu({count:Ru,reset:Pu}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=yw(this).sourceManager=new vw(this);
  10. r.prepareSource();var i=this.getInitialData(t,n);Bu(i,this),this.dataTask.context.data=i,yw(this).dataBeforeProcessed=i,Ou(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=al(this),r=n?ll(t):{},i=this.subType;dx.hasClass(i)&&(i+="Series"),l(t,e.getTheme().get(this.subType)),l(t,this.getDefaultOption()),Hr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&sl(t,r,n)},n.prototype.mergeOption=function(t,e){t=l(this.option,t,!0),this.fillDataTextStyle(t.data);var n=al(this);n&&sl(this.option,t,n);var r=yw(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Bu(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,yw(this).dataBeforeProcessed=i,Ou(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(t){if(t&&!O(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Hr(t[n],"label",e)},n.prototype.getInitialData=function(){},n.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},n.prototype.getData=function(t){var e=zu(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return yw(this).data},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=zu(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}yw(this).data=t},n.prototype.getSource=function(){return yw(this).sourceManager.getSource()},n.prototype.getRawData=function(){return yw(this).dataBeforeProcessed},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.formatTooltip=function(t,e){return ku({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){if(vd.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Px.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var r=this.getData(e),i=0;i<t.length;i++){var o=t[i],a=Au(r,o);n[a]=!1,this._selectedDataIndicesMap[a]=-1}},n.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=w(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e),i=Au(r,t);return n[i]||!1},n.prototype._innerSelect=function(t,e){var n,r,i=this.option.selectedMode,o=e.length;if(i&&o)if("multiple"===i)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;o>s;s++){var l=e[s],u=Au(t,l);a[u]=!0,this._selectedDataIndicesMap[u]=t.getRawIndex(l)}else if("single"===i||i===!0){var h=e[o-1],u=Au(t,h);this.option.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=t.getRawIndex(h),r)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return dx.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(dx);d(mw,hw),d(mw,Px),yi(mw,dx);var _w=function(){function t(){this.group=new dv,this.uid=xs("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.blurSeries=function(){},t}();gi(_w),wi(_w);var xw=oi(),ww=Fu(),bw=function(){function t(){this.group=new dv,this.uid=xs("viewChart"),this.renderTask=pu({plan:Gu,reset:Wu}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,r){Hu(t.getData(),r,"emphasis")},t.prototype.downplay=function(t,e,n,r){Hu(t.getData(),r,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.markUpdateMethod=function(t,e){xw(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();gi(bw,["dispose"]),wi(bw);var Sw,Mw={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)}}},Tw=oi(),Cw={itemStyle:bi(B_,!0),lineStyle:bi(R_,!0)},Dw={lineStyle:"stroke",itemStyle:"fill"},kw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Xu(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Yu(t,r),u=a[l],c=T(u)?u:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||p){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||"function"==typeof a.fill?f:a.fill,a.stroke="auto"===a.stroke||"function"==typeof a.stroke?f:a.stroke}return n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c?(n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=h({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}):void 0}},Iw=new F_,Aw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Xu(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){Iw.option=n[r];var a=i(Iw),s=t.ensureUniqueItemVisual(e,"style");h(s,a),Iw.option.decal&&(t.setItemVisual(e,"decal",Iw.option.decal),Iw.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ow={performRawSeries:!0,overallReset:function(t){var e=Y();t.eachSeries(function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||(n={},e.set(t.type,n)),Tw(t).scope=n}}),t.eachSeries(function(e){if(e.useColorPaletteOnData&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=Tw(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Yu(e,a);i.each(function(t){var e=i.getRawIndex(t);r[e]=t}),n.each(function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),h=n.getName(t)||t+"",c=n.count();u[s]=e.getColorFromPalette(h,o,c)}})}})}},Lw=Math.PI,Rw=function(){function t(t,e,n,r){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Y();t.eachSeries(function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;v(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";G(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)},this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){function i(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var o=!1,a=this;v(t,function(t){if(!r.visualType||r.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){i(r,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){i(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.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)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){function i(e){var i=e.uid,l=s.set(i,a&&a.get(i)||pu({plan:$u,reset:Qu,count:eh}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(i):l?n.eachRawSeriesByType(l,i):u&&u(n,r).each(i)},t.prototype._createOverallStageTask=function(t,e,n,r){function i(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,pu({reset:Zu,onDirty:Ju})));n.context={model:t,overallProgress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||pu({reset:ju});a.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Y(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1,f="";G(!t.createOnAllSeries,f),u?n.eachRawSeriesByType(u,i):h?h(n,r).each(i):(c=!1,v(n.getSeries(),i)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return T(t)&&(t={overallReset:t,seriesType:nh(t)}),t.uid=xs("stageHandler"),e&&(t.visualType=e),t},t}(),Pw=th(0),Ew={},Bw={};rh(Ew,Nx),rh(Bw,Ux),Ew.eachSeriesByType=Ew.eachRawSeriesByType=function(t){Sw=t},Ew.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Sw=t.subType)};var Nw=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],zw={color:Nw,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Nw]},Fw="#B9B8CE",Vw="#100C2A",Hw=function(){return{axisLine:{lineStyle:{color:Fw}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Gw=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ww={darkMode:!0,color:Gw,backgroundColor:Vw,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Fw}},textStyle:{color:Fw},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Fw}},dataZoom:{borderColor:"#71708A",textStyle:{color:Fw},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Fw}},timeline:{lineStyle:{color:Fw},label:{color:Fw},controlStyle:{color:Fw,borderColor:Fw}},calendar:{itemStyle:{color:Vw},dayLabel:{color:Fw},monthLabel:{color:Fw},yearLabel:{color:Fw}},timeAxis:Hw(),logAxis:Hw(),valueAxis:Hw(),categoryAxis:Hw(),line:{symbol:"circle"},graph:{color:Gw},gauge:{title:{color:Fw},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Fw},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Ww.categoryAxis.splitLine.show=!1;var Uw=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(C(t)){var i=pi(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};v(t,function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=i.lastIndexOf(u);if(h>0&&h===i.length-u.length){var c=i.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){function n(t,e,n,r){return null==t[n]||e[r||n]===t[n]}var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Xw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){var r=t.getRawValue(n),a=t.getDataParams(n);u&&e.setItemVisual(n,"symbol",i(r,a)),h&&e.setItemVisual(n,"symbolSize",o(r,a)),c&&e.setItemVisual(n,"symbolRotate",s(r,a)),p&&e.setItemVisual(n,"symbolOffset",l(r,a))}var r=t.getData();if(t.legendSymbol&&r.setVisual("legendSymbol",t.legendSymbol),t.hasSymbolVisual){var i=t.get("symbol"),o=t.get("symbolSize"),a=t.get("symbolKeepAspect"),s=t.get("symbolRotate"),l=t.get("symbolOffset"),u=T(i),h=T(o),c=T(s),p=T(l),f=u||h||c||p,d=!u&&i?i:t.defaultSymbol,g=h?null:o,v=c?null:s,y=p?null:l;if(r.setVisual({legendSymbol:t.legendSymbol||d,symbol:d,symbolSize:g,symbolKeepAspect:a,symbolRotate:v,symbolOffset:y}),!e.isSeriesFiltered(t))return{dataEach:f?n:null}}}},Yw={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(t,e){var n=t.getItemModel(e),r=n.getShallow("symbol",!0),i=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=r&&t.setItemVisual(e,"symbol",r),null!=i&&t.setItemVisual(e,"symbolSize",i),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolOffset",a),null!=s&&t.setItemVisual(e,"symbolKeepAspect",s)}if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var r=t.getData();return{dataEach:r.hasItemOption?n:null}}}},qw=2*Math.PI,jw=Oy.CMD,Zw=["top","right","bottom","left"],Kw=[],Jw=new Cg,$w=new Cg,Qw=new Cg,tb=new Cg,eb=new Cg,nb=[],rb=new Cg,ib=["align","verticalAlign","width","height","fontSize"],ob=new hg,ab=oi(),sb=oi(),lb=["x","y","rotation"],ub=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();Eg.applyTransform(u,u,l),l?ob.setLocalTransform(l):(ob.x=ob.y=ob.rotation=ob.originX=ob.originY=0,ob.scaleX=ob.scaleY=1);var h,c=r.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();Eg.applyTransform(h,h,p)}var f=h&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:ob.x,y:ob.y,scaleX:ob.scaleX,scaleY:ob.scaleY,rotation:ob.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(T(r)||w(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=im(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)})},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){ph(t,e)}}for(var n=t.getWidth(),r=t.getHeight(),i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u="function"==typeof o.layoutOption?o.layoutOption(Mh(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var h=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*h:l.attachedRot,offset:[u.dx||0,u.dy||0]});var c=!1;if(null!=u.x?(a.x=_r(u.x,n),a.setStyle("x",0),c=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=_r(u.y,r),a.setStyle("y",0),c=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var p=s.getTextGuideLine();p&&(p.setShape({points:u.labelLinePoints}),c=!1)}var f=ab(a);f.needsUpdateLabelLine=c,a.rotation=null!=u.rotate?u.rotate*h:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var d=0;d<ib.length;d++){var g=ib[d];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",e(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=mh(this._labelList),i=_(r,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=_(r,function(t){return"shiftY"===t.layoutOption.moveOverlap});xh(i,0,e),wh(o,0,n);var a=_(r,function(t){return t.layoutOption.hideOverlap});bh(a)},t.prototype.processLabelsOverall=function(){var t=this;v(this._chartViewList,function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=ab(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=im(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style"),u=o.getVisual("drawType");s.stroke=l[u];var h=a.getModel("labelLine");vh(t,yh(a),s),ph(t,h)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!ns(t)){var i=ab(n),o=i.oldLayout,a=im(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(p(h,"select")>=0&&n.attr(i.oldLayoutSelect),p(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),ts(n,l,e,s)}else if(n.attr(l),!I_(n).valueAnimation){var c=z(n.style.opacity,1);n.style.opacity=0,es(n,{style:{opacity:c}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};Th(f,l,lb),Th(f,n.states.select,lb)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};Th(d,l,lb),Th(d,n.states.emphasis,lb)}ms(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){var i=sb(r),o=i.oldLayout,g={points:r.shape.points};o?(r.attr({shape:o}),ts(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,es(r,{style:{strokePercent:1}},e)),i.oldLayout=g}},t}(),hb=Math.round(9*Math.random()),cb=function(){function t(){this._id="__ec_inner_"+hb++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return"function"==typeof Object.defineProperty?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),pb=Gy.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),fb=Gy.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),db=Gy.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*f,l+s+p*f,n,r-d,n,r),t.bezierCurveTo(n,r-d,n-h+c*f,l+s+p*f,n-h,l+s),t.closePath()}}),gb=Gy.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),vb={line:r_,rect:Jy,roundRect:Jy,square:Jy,circle:Rm,diamond:fb,pin:db,arrow:gb,triangle:pb},yb={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},mb={};v(vb,function(t,e){mb[e]=new t});for(var _b,xb=Gy.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Fn(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=mb[r];i||(r="rect",i=mb[r]),yb[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}}),wb=new Oy(!0),bb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Mb=1,Tb=2,Cb=3,Db=4,kb=new cb,Ib=new gg(100),Ab=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],Ob={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-anchor":"textAlign",visibility:"visibility",display:"display"},Lb=w(Ob),Rb={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Pb=w(Rb),Eb=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=hc(t);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new dv;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),gc(n,r,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,r,i,null,!1,!1),l=l.nextSibling;mc(this._defs,this._defsUsePending),this._defsUsePending=[];var u,h;if(o){var c=_c(o);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&null!=a&&null!=s&&(h=Sc(u,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=r;r=new dv,r.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new Jy({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:u,viewBoxTransform:h,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=_b[s];if(u&&Z(_b,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var p=Bb[s];if(p&&Z(Bb,s)){var f=p.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=f)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new Uy({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});fc(e,n),gc(t,n,this._defsUsePending,!1,!1),vc(n,e);var r=n.style,i=r.fontSize;i&&9>i&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){_b={g:function(t,e){var n=new dv;return fc(e,n),gc(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Jy;return fc(e,n),gc(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(t,e){var n=new Rm;return fc(e,n),gc(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new r_;return fc(e,n),gc(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(t,e){var n=new Em;return fc(e,n),gc(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=dc(r));var i=new $m({shape:{points:n||[]},silent:!0});return fc(e,i),gc(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=dc(r));var i=new t_({shape:{points:n||[]},silent:!0});return fc(e,i),gc(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new qy;return fc(e,n),gc(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new dv;return fc(e,a),gc(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new dv;return fc(e,a),gc(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",r=Pa(n);return fc(e,r),gc(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),t}(),Bb={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new c_(e,n,r,i);return cc(t,o),pc(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new p_(e,n,r);return cc(t,i),pc(t,i),i}},Nb=/^url\(\s*#(.*?)\)/,zb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Fb=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Vb=/([^\s:;]+)\s*:\s*([^:;]+)/g,Hb=1e-8,Gb=[],Wb=function(){function t(t){this.name=t}return t.prototype.getCenter=function(){},t}(),Ub=function(t){function n(e,n,r){var i=t.call(this,e)||this;if(i.type="geoJSON",i.geometries=n,r)r=[r[0],r[1]];else{var o=i.getBoundingRect();r=[o.x+o.width/2,o.y+o.height/2]}return i._center=r,i}return e(n,t),n.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],r=[-e,-e],i=[],o=[],a=this.geometries,s=0;s<a.length;s++)if("polygon"===a[s].type){var l=a[s].exterior;to(l,i,o),ve(n,n,i),ye(r,r,o)}return 0===s&&(n[0]=n[1]=r[0]=r[1]=0),this._rect=new Eg(n[0],n[1],r[0]-n[0],r[1]-n[1])},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;i>r;r++)if("polygon"===n[r].type){var o=n[r].exterior,a=n[r].interiors;if(Cc(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Cc(a[s],t[0],t[1]))continue t;return!0}}return!1},n.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Eg(t,e,n,r),s=i.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,p=0;p<h.length;p++)ge(h[p],h[p],s);for(var f=0;f<(c?c.length:0);f++)for(var p=0;p<c[f].length;p++)ge(c[f][p],c[f][p],s)}i=this._rect,i.copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},n.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new n(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},n.prototype.getCenter=function(){return this._center},n.prototype.setCenter=function(t){this._center=t},n}(Wb),Xb=function(t){function n(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return e(n,t),n.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this._calculateCenter()),t},n.prototype._calculateCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=Fe(Gb),i=t;i&&!i.isGeoSVGGraphicRoot;)He(r,i.getLocalTransform(),r),i=i.parent;
  11. return Xe(r,r),ge(n,n,r),n},n}(Wb),Yb=Y(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),qb=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Y(),this._freedGraphics=[],this._mapName=t,this._parsedXML=hc(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=kc(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&Mc(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,G(null!=n)}catch(r){throw new Error("Invalid svg format\n"+r.message)}var i=new dv;i.add(n),i.isGeoSVGGraphicRoot=!0;var o=e.width,a=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,h=void 0,c=void 0,p=void 0;if(null!=o?(u=0,c=o):s&&(u=s.x,c=s.width),null!=a?(h=0,p=a):s&&(h=s.y,p=s.height),null==u||null==h){var f=n.getBoundingRect();null==u&&(u=f.x,c=f.width),null==h&&(h=f.y,p=f.height)}l=this._boundingRect=new Eg(u,h,c,p)}if(s){var d=Sc(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}i.setClipPath(new Jy({shape:l.plain()}));var g=[];return v(e.named,function(t){null!=Yb.get(t.svgNodeTagLower)&&(g.push(t),Dc(t.el))}),{root:i,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n?n:(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}(),jb=[126,25],Zb=[[[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]]],Kb=0;Kb<Zb.length;Kb++)for(var Jb=0;Jb<Zb[Kb].length;Jb++)Zb[Kb][Jb][0]/=10.5,Zb[Kb][Jb][1]/=-14,Zb[Kb][Jb][0]+=jb[0],Zb[Kb][Jb][1]+=jb[1];var $b={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},Qb={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},tS=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],eS="name",nS=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Y(),this._mapName=t,this._specialAreas=n,this._geoJSON=Nc(e)}return t.prototype.load=function(t,e){e=e||eS;var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:Bc(r)})}var i=Y(),o=[];return v(n.regions,function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)}),{regions:o,boundingRect:n.boundingRect||new Eg(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?Oc(r,t):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return Lc(n,e),v(e,function(t){var e=t.name;Rc(n,t),Pc(n,t),Ec(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)},this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}(),rS=Y(),iS={registerMap:function(t,e,n){if(e.svg){var r=new qb(t,e.svg);rS.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;var r=new nS(t,i,n);rS.set(t,r)}},getGeoResource:function(t){return rS.get(t)},getMapForUser:function(t){var e=rS.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=rS.get(t);if(r)return r.load(e,n)}},oS=G,aS=v,sS=T,lS=I,uS=p,hS="undefined"!=typeof window,cS="5.1.1",pS={zrender:"5.1.0"},fS=1,dS=800,gS=900,vS=1e3,yS=2e3,mS=5e3,_S=1e3,xS=1100,wS=2e3,bS=3e3,SS=4e3,MS=4500,TS=4600,CS=5e3,DS=6e3,kS=7e3,IS={PROCESSOR:{FILTER:vS,SERIES_FILTER:dS,STATISTIC:mS},VISUAL:{LAYOUT:_S,PROGRESSIVE_LAYOUT:xS,GLOBAL:wS,CHART:bS,POST_CHART_LAYOUT:TS,COMPONENT:SS,BRUSH:CS,CHART_ITEM:MS,ARIA:DS,DECAL:kS}},AS="__flagInMainProcess",OS="__optionUpdated",LS="__needsUpdateStatus",RS=/^[a-zA-Z0-9_]+$/,PS="__connectUpdateStatus",ES=0,BS=1,NS=2,zS=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(Hd),FS=zS.prototype;FS.on=Fc("on"),FS.off=Fc("off");var VS,HS,GS,WS,US,XS,YS,qS,jS,ZS,KS,JS,$S,QS,tM,eM,nM,rM,iM,oM,aM,sM=function(t){function n(e,n,r){function i(t,e){return t.__prio-e.__prio}var o=t.call(this,new Uw)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},"string"==typeof n&&(n=yM[n]),o._dom=e;var a="canvas",l=!1,u=o._zr=pr(e,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,useDirtyRect:null==r.useDirtyRect?l:r.useDirtyRect});o._throttledZrFlush=Uu(Ad(u.flush,u),17),n=s(n),n&&jl(n,!0),o._theme=n,o._locale=Ms(r.locale||j_),o._coordSysMgr=new Yx;var h=o._api=nM(o);return $n(vM,i),$n(pM,i),o._scheduler=new Rw(o,h,pM,vM),o._messageCenter=new zS,o._labelManager=new ub,o._initEvents(),o.resize=Ad(o.resize,o),u.animation.on("frame",o._onframe,o),ZS(u,o),KS(u,o),U(o),o}return e(n,t),n.prototype._onframe=function(){if(!this._disposed){aM(this);var t=this._scheduler;if(this[OS]){var e=this[OS].silent;this[AS]=!0,VS(this),WS.update.call(this),this._zr.flush(),this[AS]=!1,this[OS]=!1,qS.call(this,e),jS.call(this,e)}else if(t.unfinished){var n=fS,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),XS(this,r),t.performVisualTasks(r),tM(this,this._model,i,"remain"),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.setOption=function(t,e,n){if(!this._disposed){var r,i,o;if(lS(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[AS]=!0,!this._model||e){var a=new jx(this._api),s=this._theme,l=this._model=new Nx;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},fM),iM(this,o),n?(this[OS]={silent:r},this[AS]=!1,this.getZr().wakeUp()):(VS(this),WS.update.call(this),this._zr.flush(),this[OS]=!1,this[AS]=!1,qS.call(this,r),jS.call(this,r))}},n.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||hS&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){if(vd.canvasSupported){t=h({},t||{}),t.pixelRatio=t.pixelRatio||this.getDevicePixelRatio(),t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},n.prototype.getSvgDataURL=function(){if(vd.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return v(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;aS(e,function(t){n.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.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 aS(r,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed&&vd.canvasSupported){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(xM[n]){var a=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();v(_M,function(o){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(s(t)),f=o.getDom().getBoundingClientRect();a=r(f.left,a),l=r(f.top,l),u=i(f.right,u),h=i(f.bottom,h),c.push({dom:p,left:f.left,top:f.top})}}),a*=p,l*=p,u*=p,h*=p;var f=u-a,d=h-l,g=Id(),y=pr(g,{renderer:e?"svg":"canvas"});if(y.resize({width:f,height:d}),e){var m="";return aS(c,function(t){var e=t.left-a,n=t.top-l;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new Jy({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),aS(c,function(t){var e=new qy({style:{x:t.left*p-a,y:t.top*p-l,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return US(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return US(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=ai(r,t);return v(i,function(t,r){r.indexOf("Models")>=0&&v(t,function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,r=ai(n,t,{defaultMainType:"series"}),i=r.seriesModel,o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?ih(o,a,e):oh(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;aS(uM,function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&Ih(o,function(t){var e=im(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(r=h({},e.eventData),!0):void 0},!0),r){var s=r.componentType,l=r.componentIndex;("markLine"===s||"markPoint"===s||"markArea"===s)&&(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),aS(cM,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),aS(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),kh(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,ui(this.getDom(),SM,"");var t=this._api,e=this._model;aS(this._componentsViews,function(n){n.dispose(e,t)}),aS(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete _M[this.id]}},n.prototype.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[AS]=!0,n&&VS(this),WS.update.call(this,{type:"resize",animation:h({duration:0},t&&t.animation)}),this[AS]=!1,qS.call(this,r),jS.call(this,r)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(lS(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),mM[t])){var n=mM[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=h({},t);return e.type=cM[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(lS(e)||(e={silent:!!e}),hM[t.type]&&this._model)){if(this[AS])return void this._pendingActions.push(t);var n=e.silent;YS.call(this,t,n);var r=e.flush;r?this._zr.flush():r!==!1&&vd.browser.weChat&&this._throttledZrFlush(),qS.call(this,n),jS.call(this,n)}},n.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===hm&&t.states.emphasis?e.push("emphasis"):t.hoverState===um&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){var n=t._zr,r=n.storage,i=0;r.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!vd.node&&!vd.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function r(t,e){var n=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||(t.style.blend=n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=n})})}function i(t,e){t.preventAutoZ||o(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function o(t,e,n,r){var i=t.getTextContent(),a=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)r=Math.max(o(l[u],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var h=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+(h&&h.showAbove?1:-1))}return r}function a(t,e){e.group.traverse(function(t){if(!ns(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function s(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.group.traverse(function(e){if(e.states&&e.states.emphasis){if(ns(e))return;if(e instanceof Gy&&Ta(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}VS=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),HS(t,!0),HS(t,!1),e.plan()},HS=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!n&&a[u];if(!h){var c=pi(t.type),p=e?_w.getClass(c.main,c.sub):bw.getClass(c.sub);h=new p,h.init(r,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(h,t,r,l)}for(var r=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(r,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},GS=function(t,e,n,r,i){function o(r){r&&r.__alive&&r[e]&&r[e](r.__model,a,t._api,n)}var a=t._model;if(a.setUpdatePayload(n),!r)return void aS([].concat(t._componentsViews).concat(t._chartsViews),o);var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var u,h=n.excludeSeriesId;null!=h&&(u=Y(),aS(Vr(h),function(t){var e=Qr(t,null);null!=e&&u.set(e,!0)})),Ma(n)&&sa(t._api),a&&a.eachComponent(l,function(e){if(!u||null==u.get(e.id)){if(Ma(n))if(e instanceof mw)n.type!==gm||n.notBlur||ha(e,n,t._api);else{var i=ca(e.mainType,e.componentIndex,n.name,t._api),a=i.focusSelf,s=i.dispatchers;n.type===gm&&a&&!n.notBlur&&ua(e.mainType,e.componentIndex,t._api),s&&aS(s,function(t){n.type===gm?ta(t):ea(t)})}else Sa(n)&&e instanceof mw&&(da(e,n,t._api),ga(e),oM(t));o(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}},t)},WS={prepareAndUpdate:function(t){VS(this),WS.update.call(this,t)},update:function(t){var e=this._model,n=this._api,r=this._zr,i=this._coordSysMgr,o=this._scheduler;if(e){e.setUpdatePayload(t),o.restoreData(e,t),o.performSeriesTasks(e),i.create(e,n),o.performDataProcessorTasks(e,t),XS(this,e),i.update(e,n),JS(e),o.performVisualTasks(e,t),$S(this,e,n,t);var a=e.get("backgroundColor")||"transparent",s=e.get("darkMode");if(vd.canvasSupported)r.setBackgroundColor(a),null!=s&&"auto"!==s&&r.setDarkMode(s);else{var l=on(a);a=dn(l,"rgb"),0===l[3]&&(a="transparent")}eM(e,n)}},updateTransform:function(t){var e=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(t);var i=[];n.eachComponent(function(o,a){if("series"!==o){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,r,t);l&&l.update&&i.push(s)}else i.push(s)}});var o=Y();n.eachSeries(function(i){var a=e._chartsMap[i.__viewId];if(a.updateTransform){var s=a.updateTransform(i,n,r,t);s&&s.update&&o.set(i.uid,1)}else o.set(i.uid,1)}),JS(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),tM(this,n,r,t,o),eM(n,this._api)}},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),bw.markUpdateMethod(t,"updateView"),JS(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),$S(this,this._model,this._api,t),eM(e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries(function(t){t.getData().clearAllVisual()}),bw.markUpdateMethod(t,"updateVisual"),JS(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent(function(r,i){if("series"!==r){var o=e.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,n,e._api,t)}}),n.eachSeries(function(r){var i=e._chartsMap[r.__viewId];i.updateVisual(r,n,e._api,t)}),eM(n,this._api))},updateLayout:function(t){WS.update.call(this,t)}},US=function(t,e,n,r){if(!t._disposed)for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=ai(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}},XS=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries(function(t){r.updateStreamModes(t,n[t.__viewId])})},YS=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=hM[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),p=null!=l[0]&&pi(l[0]);this[AS]=!0;var f=[t],d=!1;t.batch&&(d=!0,f=y(t.batch,function(e){return e=c(h({},e),t),e.batch=null,e}));var g,v=[],m=Sa(t),_=Ma(t);if(aS(f,function(e){if(g=a.action(e,n._model,n._api),g=g||h({},e),g.type=s.event||g.type,v.push(g),_){var r=si(t),i=r.queryOptionMap,o=r.mainTypeSpecified,l=o?i.keys()[0]:"series";GS(n,u,e,l),oM(n)}else m?(GS(n,u,e,"series"),oM(n)):p&&GS(n,u,e,p.main,p.sub)}),"none"===u||_||m||p||(this[OS]?(VS(this),WS.update.call(this,t),this[OS]=!1):WS[u].call(this,t)),g=d?{type:s.event||i,escapeConnect:o,batch:v}:v[0],this[AS]=!1,!e){var x=this._messageCenter;if(x.trigger(g.type,g),m){var w={type:"selectchanged",escapeConnect:o,selected:va(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};x.trigger(w.type,w)}}},qS=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();YS.call(this,n,t)}},jS=function(t){!t&&this.trigger("updated")},ZS=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[OS]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},KS=function(t,e){t.on("mouseover",function(t){var n=t.target,r=Ih(n,xa);r&&(pa(r,t,e._api),oM(e))}).on("mouseout",function(t){var n=t.target,r=Ih(n,xa);r&&(fa(r,t,e._api),oM(e))}).on("click",function(t){var n=t.target,r=Ih(n,function(t){return null!=im(t).dataIndex},!0);if(r){var i=r.selected?"unselect":"select",o=im(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},JS=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},$S=function(t,e,n,r){QS(t,e,n,r),aS(t._chartsViews,function(t){t.__alive=!1}),tM(t,e,n,r),aS(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},QS=function(t,e,n,r,o){aS(o||t._componentsViews,function(t){var o=t.__model;a(o,t),t.render(o,e,n,r),i(o,t),s(o,t)})},tM=function(t,e,o,l,u){var h=t._scheduler,c=t._labelManager;c.clearLabels();var p=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,l),a(e,n),u&&u.get(e.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(p=!0),e.__transientTransitionOpt=null,n.group.silent=!!e.get("silent"),r(e,n),ga(e),c.addLabelsOfSeries(n)}),h.unfinished=p||h.unfinished,c.updateLayoutConfig(o),c.layout(o),c.processLabelsOverall(),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];i(e,n),s(e,n)}),n(t,e)},eM=function(t,e){aS(gM,function(n){n(t,e)})},oM=function(t){t[LS]=!0,t.getZr().wakeUp()},aM=function(e){e[LS]&&(e.getZr().storage.traverse(function(e){ns(e)||t(e)}),e[LS]=!1)},nM=function(t){return new(function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return e(r,n),r.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},r.prototype.enterEmphasis=function(e,n){ta(e,n),oM(t)},r.prototype.leaveEmphasis=function(e,n){ea(e,n),oM(t)},r.prototype.enterBlur=function(e){na(e),oM(t)},r.prototype.leaveBlur=function(e){ra(e),oM(t)},r.prototype.enterSelect=function(e){ia(e),oM(t)},r.prototype.leaveSelect=function(e){oa(e),oM(t)},r.prototype.getModel=function(){return t.getModel()},r.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},r.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},r}(Ux))(t)},rM=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[PS]=e}}aS(cM,function(n,r){t._messageCenter.on(r,function(n){if(xM[t.group]&&t[PS]!==ES){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];aS(_M,function(e){e!==t&&e.group===t.group&&i.push(e)}),e(i,ES),aS(i,function(t){t[PS]!==BS&&t.dispatchAction(r)}),e(i,NS)}})})},iM=function(t,e){var n=t._model;v(Vr(e),function(t){var e,r=t.from,i=t.to;null==i&&Fr(e);var o={includeMainTypes:["series"],enableAll:!1,enableNone:!1},a=r?ai(n,r,o):null,s=ai(n,i,o),l=s.seriesModel;null==l&&(e=""),a&&a.seriesModel!==l&&(e=""),null!=e&&Fr(e),l.__transientTransitionOpt={from:r?r.dimension:null,to:i.dimension,dividingMethod:t.dividingMethod}})}}(),n}(Hd),lM=sM.prototype;lM.on=zc("on"),lM.off=zc("off"),lM.one=function(t,e,n){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(t,r)}var i=this;this.on.call(this,t,r,n)};var uM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],hM={},cM={},pM=[],fM=[],dM=[],gM=[],vM=[],yM={},mM={},_M={},xM={},wM=+new Date-0,bM=+new Date-0,SM="_echarts_instance_",MM=Wc,TM=[],CM=_u;np(wS,kw),np(MS,Aw),np(MS,Ow),np(wS,Xw),np(MS,Yw),np(kS,uc),jc(jl),Zc(gS,Zl),ip("default",qu),$c({type:gm,event:gm,update:gm},K),$c({type:vm,event:vm,update:vm},K),$c({type:ym,event:ym,update:ym},K),$c({type:mm,event:mm,update:mm},K),$c({type:_m,event:_m,update:_m},K),qc("light",zw),qc("dark",Ww);var DM,kM,IM,AM,OM,LM,RM,PM,EM,BM,NM,zM,FM,VM,HM={},GM=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||up,this._newKeyGetter=r||up,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=lp(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],h=lp(l),c=lp(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),r[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=lp(i);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=lp(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),WM=function(){function t(t){this.otherDims={},null!=t&&h(this,t)}return t}(),UM=Math.floor,XM=I,YM=y,qM="undefined",jM=-1,ZM="e\x00\x00",KM={"float":typeof Float64Array===qM?Array:Float64Array,"int":typeof Int32Array===qM?Array:Int32Array,ordinal:Array,number:Array,time:Array},JM=typeof Uint32Array===qM?Array:Uint32Array,$M=typeof Int32Array===qM?Array:Int32Array,QM=typeof Uint16Array===qM?Array:Uint16Array,tT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],eT=["_extent","_approximateExtent","_rawExtent"],nT=function(){function t(t,e){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=OM,t=t||["x","y"];for(var n={},r=[],i={},o=0;o<t.length;o++){var a=t[o],s=C(a)?new WM({name:a}):a instanceof WM?a:new WM(a),l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0);var u=s.otherDims=s.otherDims||{};r.push(l),n[l]=s,s.index=o,s.createInvertedIndices&&(i[l]=[]),0===u.itemName&&(this._nameDimIdx=o,this._nameOrdinalMeta=s.ordinalMeta),0===u.itemId&&(this._idDimIdx=o,this._idOrdinalMeta=s.ordinalMeta)}this.dimensions=r,this._dimensionInfos=n,this.hostModel=e,this._dimensionsSummary=hp(this),this._invertedIndicesMap=i,this.userOutput=this._dimensionsSummary.userOutput}return t.prototype.getDimension=function(t){return("number"==typeof t||!isNaN(t)&&!this._dimensionInfos.hasOwnProperty(t))&&(t=this.dimensions[t]),t},t.prototype.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},t.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimensionsSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.initData=function(t,e,n){var r=Jl(t)||g(t),i=r?new nw(t,this.dimensions.length):t;this._rawData=i;var o=i.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||o===Cx||!!i.fillStorage,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=DM[o],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=DM.arrayRows,this._rawExtent={},this._initDataFromProvider(0,i.count()),i.pure&&(this.hasItemOption=!1)},t.prototype.getProvider=function(){return this._rawData},t.prototype.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var r=e.count();e.persistent||(r+=n),this._initDataFromProvider(n,r,!0)},t.prototype.appendValues=function(t,e){for(var n=this._storage,r=this.dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e?e.length:0),l=0;i>l;l++){var u=r[l];o[u]||(o[u]=zM()),AM(n,this._dimensionInfos[u],s,!0)}for(var h=YM(r,function(t){return o[t]}),c=this._storageArr=YM(r,function(t){return n[t]}),p=[],f=a;s>f;f++){for(var d=f-a,g=0;i>g;g++){var u=r[g],v=this._dimValueGetterArrayRows(t[d]||p,u,d,g);c[g][f]=v;var y=h[g];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}e&&(this._nameList[f]=e[d],this._dontMakeIdFromName||EM(this,f))}this._rawCount=this._count=s,this._extent={},kM(this)},t.prototype._initDataFromProvider=function(t,e,n){if(!(t>=e)){for(var r=this._rawData,i=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,l=this._nameList,u=this._idList,h=this._rawExtent,c=r.getSource().sourceFormat,p=c===bx,f=0;a>f;f++){var d=o[f];h[d]||(h[d]=zM()),AM(i,s[d],e,n)}var g=this._storageArr=YM(o,function(t){return i[t]}),v=YM(o,function(t){return h[t]});if(r.fillStorage)r.fillStorage(t,e,g,v);else for(var y=[],m=t;e>m;m++){y=r.getItem(m,y);for(var _=0;a>_;_++){var d=o[_],x=g[_],w=this._dimValueGetter(y,d,m,_);x[m]=w;var b=v[_];w<b[0]&&(b[0]=w),w>b[1]&&(b[1]=w)}if(p&&!r.pure&&y){var S=y.name;null==l[m]&&null!=S&&(l[m]=Qr(S,null));var M=y.id;null==u[m]&&null!=M&&(u[m]=Qr(M,null))}this._dontMakeIdFromName||EM(this,m)}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},kM(this)}},t.prototype.count=function(){return this._count},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;r>i;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{var n=IM(this);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},t.prototype.getByDimIdx=function(t,e){if(!(e>=0&&e<this._count))return 0/0;var n=this._storageArr[t];return n?n[this.getRawIndex(e)]:0/0},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return 0/0;var n=this._storage[t];return n?n[this.getRawIndex(e)]:0/0},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var n=this._storage[t];return n?n[e]:0/0},t.prototype.getValues=function(t,e){var n=[];M(t)||(e=t,t=this.dimensions);for(var r=0,i=t.length;i>r;r++)n.push(this.get(t[r],e));return n},t.prototype.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,r=e.length;r>n;n++)if(isNaN(this.get(e[n],t)))return!1;
  12. return!0},t.prototype.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=zM();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();r=n;for(var a=r[0],s=r[1],l=0;i>l;l++){var u=this.getRawIndex(l),h=e[u];a>h&&(a=h),h>s&&(s=h)}return r=[a,s],this._extent[t]=r,r},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){XM(t)?h(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=this._storage[t],n=0;if(e)for(var r=0,i=this.count();i>r;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each(t,function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],r=n[e];return null==r||isNaN(r)?jM:r},t.prototype.indexOfName=function(t){for(var e=0,n=this.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;i>=r;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._storage,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),p=e-i[c],f=Math.abs(p);n>=f&&((a>f||f===a&&p>=0&&0>s)&&(a=f,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var r=this.dimensions[n];e.push(this.get(r,t))}return e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=PM(this,this._nameDimIdx,this._nameOrdinalMeta,e)),null==n&&(n=""),n},t.prototype.getId=function(t){return RM(this,this.getRawIndex(t))},t.prototype.each=function(t,e,n,r){var i=this;if(this._count){"function"==typeof t&&(r=n,n=e,e=t,t=[]);for(var o=n||r||this,a=YM(BM(t),this.getDimension,this),s=a.length,l=YM(a,function(t){return i._dimensionInfos[t].index}),u=this._storageArr,h=0,c=this.count();c>h;h++){var p=this.getRawIndex(h);switch(s){case 0:e.call(o,h);break;case 1:e.call(o,u[l[0]][p],h);break;case 2:e.call(o,u[l[0]][p],u[l[1]][p],h);break;default:for(var f=0,d=[];s>f;f++)d[f]=u[l[f]][p];d[f]=h,e.apply(o,d)}}}},t.prototype.filterSelf=function(t,e,n,r){var i=this;if(this._count){"function"==typeof t&&(r=n,n=e,e=t,t=[]);for(var o=n||r||this,a=YM(BM(t),this.getDimension,this),s=this.count(),l=IM(this),u=new l(s),h=[],c=a.length,p=0,f=YM(a,function(t){return i._dimensionInfos[t].index}),d=f[0],g=this._storageArr,v=0;s>v;v++){var y=void 0,m=this.getRawIndex(v);if(0===c)y=e.call(o,v);else if(1===c){var _=g[d][m];y=e.call(o,_,v)}else{for(var x=0;c>x;x++)h[x]=g[f[x]][m];h[x]=v,y=e.apply(o,h)}y&&(u[p++]=m)}return s>p&&(this._indices=u),this._count=p,this._extent={},this.getRawIndex=this._indices?LM:OM,this}},t.prototype.selectRange=function(t){var e=this,n=this._count;if(n){var r=[];for(var i in t)t.hasOwnProperty(i)&&r.push(i);var o=r.length;if(o){var a=this.count(),s=IM(this),l=new s(a),u=0,h=r[0],c=YM(r,function(t){return e._dimensionInfos[t].index}),p=t[h][0],f=t[h][1],d=this._storageArr,g=!1;if(!this._indices){var v=0;if(1===o){for(var y=d[c[0]],m=0;n>m;m++){var _=y[m];(_>=p&&f>=_||isNaN(_))&&(l[u++]=v),v++}g=!0}else if(2===o){for(var y=d[c[0]],x=d[c[1]],w=t[r[1]][0],b=t[r[1]][1],m=0;n>m;m++){var _=y[m],S=x[m];(_>=p&&f>=_||isNaN(_))&&(S>=w&&b>=S||isNaN(S))&&(l[u++]=v),v++}g=!0}}if(!g)if(1===o)for(var m=0;a>m;m++){var M=this.getRawIndex(m),_=d[c[0]][M];(_>=p&&f>=_||isNaN(_))&&(l[u++]=M)}else for(var m=0;a>m;m++){for(var T=!0,M=this.getRawIndex(m),C=0;o>C;C++){var D=r[C],_=d[c[C]][M];(_<t[D][0]||_>t[D][1])&&(T=!1)}T&&(l[u++]=this.getRawIndex(m))}return a>u&&(this._indices=l),this._count=u,this._extent={},this.getRawIndex=this._indices?LM:OM,this}}},t.prototype.mapArray=function(t,e,n,r){"function"==typeof t&&(r=n,n=e,e=t,t=[]),n=n||r||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=YM(BM(t),this.getDimension,this),a=NM(this,o),s=a._storage;a._indices=this._indices,a.getRawIndex=a._indices?LM:OM;for(var l=[],u=o.length,h=this.count(),c=[],p=a._rawExtent,f=0;h>f;f++){for(var d=0;u>d;d++)c[d]=this.get(o[d],f);c[u]=f;var g=e&&e.apply(i,c);if(null!=g){"object"!=typeof g&&(l[0]=g,g=l);for(var v=this.getRawIndex(f),y=0;y<g.length;y++){var m=o[y],_=g[y],x=p[m],w=s[m];w&&(w[v]=_),_<x[0]&&(x[0]=_),_>x[1]&&(x[1]=_)}}}return a},t.prototype.downSample=function(t,e,n,r){for(var i=NM(this,[t]),o=i._storage,a=[],s=UM(1/e),l=o[t],u=this.count(),h=i._rawExtent[t],c=new(IM(this))(u),p=0,f=0;u>f;f+=s){s>u-f&&(s=u-f,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(f+d);a[d]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(f+r(a,v)||0,u-1));l[y]=v,v<h[0]&&(h[0]=v),v>h[1]&&(h[1]=v),c[p++]=y}return i._count=p,i._indices=c,i.getRawIndex=LM,i},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=NM(this,[]),a=o._storage,s=a[t],l=this.count(),u=new(IM(this))(l),h=0,c=UM(1/e),p=this.getRawIndex(0);u[h++]=p;for(var f=1;l-1>f;f+=c){for(var d=Math.min(f+c,l-1),g=Math.min(f+2*c,l),v=(g+d)/2,y=0,m=d;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(y+=x)}y/=g-d;var w=f,b=Math.min(f+c,l),S=f-1,M=s[p];n=-1,i=w;for(var m=w;b>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(r=Math.abs((S-v)*(x-M)-(S-m)*(y-M)),r>n&&(n=r,i=_))}u[h++]=i,p=i}return u[h++]=this.getRawIndex(l-1),o._count=h,o._indices=u,o.getRawIndex=LM,o},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new F_(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new GM(t?t.getIndices():[],this.getIndices(),function(e){return RM(t,e)},function(t){return RM(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},XM(t)?h(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),M(i)?i=i.slice():XM(i)&&(i=h({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,XM(e)?h(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(XM(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?h(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel;if(e){var r=im(e);r.dataIndex=t,r.dataType=this.dataType,r.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(FM,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){v(this._graphicEls,function(n,r){n&&t&&t.call(e,n,r)})},t.prototype.cloneShallow=function(e){if(!e){var n=YM(this.dimensions,this.getDimensionInfo,this);e=new t(n,this.hostModel)}if(e._storage=this._storage,e._storageArr=this._storageArr,VM(e,this),this._indices){var r=this._indices.constructor;if(r===Array){var i=this._indices.length;e._indices=new r(i);for(var o=0;i>o;o++)e._indices[o]=this._indices[o]}else e._indices=new r(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?LM:OM,e},t.prototype.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(V(arguments)))})},t.internalField=function(){function e(t,e,n,r){return fu(t[r],this._dimensionInfos[e])}function n(t){var e=t.constructor;return e===Array?t.slice():new e(t)}DM={arrayRows:e,objectRows:function(t,e){return fu(t[e],this._dimensionInfos[e])},keyedColumns:e,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Wr(t)&&(this.hasItemOption=!0),fu(i instanceof Array?i[r]:i,this._dimensionInfos[e])},typedArray:function(t,e,n,r){return t[r]}},kM=function(t){var e=t._invertedIndicesMap;v(e,function(n,r){var i=t._dimensionInfos[r],o=i.ordinalMeta;if(o){n=e[r]=new $M(o.categories.length);for(var a=0;a<n.length;a++)n[a]=jM;for(var a=0;a<t._count;a++)n[t.get(r,a)]=a}})},PM=function(t,e,n,r){var i,o=t._storageArr[e];return o&&(i=o[r],n&&n.categories.length&&(i=n.categories[i])),Qr(i,null)},IM=function(t){return t._rawCount>65535?JM:QM},AM=function(t,e,n,r){var i=KM[e.type],o=e.name;if(r){var a=t[o],s=a&&a.length;if(s!==n){for(var l=new i(n),u=0;s>u;u++)l[u]=a[u];t[o]=l}}else t[o]=new i(n)},OM=function(t){return t},LM=function(t){return t<this._count&&t>=0?this._indices[t]:-1},RM=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=PM(t,t._idDimIdx,t._idOrdinalMeta,e)),null==n&&(n=ZM+e),n},BM=function(t){return M(t)||(t=null!=t?[t]:[]),t},NM=function(e,r){var i=e.dimensions,o=new t(YM(i,e.getDimensionInfo,e),e.hostModel);VM(o,e);for(var a=o._storage={},s=e._storage,l=o._storageArr=[],u=0;u<i.length;u++){var h=i[u];s[h]&&(p(r,h)>=0?(a[h]=n(s[h]),o._rawExtent[h]=zM(),o._extent[h]=null):a[h]=s[h],l.push(a[h]))}return o},zM=function(){return[1/0,-1/0]},FM=function(t){var e=im(t),n=im(this);e.seriesIndex=n.seriesIndex,e.dataIndex=n.dataIndex,e.dataType=n.dataType},VM=function(t,e){v(tT.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,v(eT,function(n){t[n]=s(e[n])}),t._calculationInfo=h({},e._calculationInfo)},EM=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=PM(t,i,t._nameOrdinalMeta,e)),null==s&&null!=o&&(r[e]=s=PM(t,o,t._idOrdinalMeta,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),rT=function(){function t(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return t}(),iT={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",kv).models[0],o=t.getReferringComponents("yAxis",kv).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),_p(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),_p(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",kv).models[0];e.coordSysDims=["single"],n.set("single",i),_p(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",kv).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),_p(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),_p(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();v(o.parallelAxisIndex,function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),_p(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},oT=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();wi(oT);var aT=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&y(r,Cp);return new t({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},t}(),sT=xr,lT=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new aT({})),M(r)&&(r=new aT({categories:y(r,function(t){return I(t)?t.value:t})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),Op(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Lp(t,this._extent)},n.prototype.scale=function(t){return t=Math.round(Rp(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>i;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;o>i;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},n.prototype.count=function(){return this._extent[1]-this._extent[0]+1},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.niceTicks=function(){},n.prototype.niceExtent=function(){},n.type="ordinal",n}(oT);oT.registerClass(lT);var uT=xr,hT=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Op(t,this._extent)},n.prototype.normalize=function(t){return Lp(t,this._extent)},n.prototype.scale=function(t){return Rp(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=kp(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<r[0]&&o.push(t?{value:uT(r[0]-e,i)}:{value:n[0]});for(var s=r[0];s<=r[1]&&(o.push({value:s}),s=uT(s+e,i),s!==o[o.length-1].value);)if(o.length>a)return[];var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&o.push(t?{value:uT(l+e,i)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=o.value-a.value,h=u/t;t-1>s;){var c=uT(a.value+(s+1)*h);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},n.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=Sr(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=uT(t.value,n,!0);return Ks(r)},n.prototype.niceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){0>i&&(i=-i,r.reverse());var o=Dp(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=uT(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=uT(Math.ceil(e[1]/i)*i))},n.type="interval",n}(oT);oT.registerClass(hT);var cT="__ec_stack_",pT=.5,fT="undefined"!=typeof Float32Array?Float32Array:Array,dT=({seriesType:"bar",plan:Fu(),reset:function(t){if(Hp(t)&&Gp(t)){var e=t.getData(),n=t.coordinateSystem,r=n.master.getRect(),i=n.getBaseAxis(),o=n.getOtherAxis(i),a=e.mapDimension(o.dim),s=e.mapDimension(i.dim),l=o.isHorizontal(),u=l?0:1,h=Vp(zp([t]),i,t).width;return h>pT||(h=pT),{progress:function(t,e){for(var c,p=t.count,f=new fT(2*p),d=new fT(2*p),g=new fT(p),v=[],y=[],m=0,_=0;null!=(c=t.next());)y[u]=e.get(a,c),y[1-u]=e.get(s,c),v=n.dataToPoint(y,null,v),d[m]=l?r.x+r.width:v[0],f[m++]=v[0],d[m]=l?v[1]:r.y+r.height,f[m++]=v[1],g[_++]=c;e.setLayout({largePoints:f,largeDataIndices:g,largeBackgroundPoints:d,barWidth:h,valueAxisStart:Wp(i,o,!1),backgroundStart:l?r.x:r.y,valueAxisHorizontal:l})}}}}},function(t,e,n,r){for(;r>n;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}),gT=function(t){function n(e){var n=t.call(this,e)||this;return n.type="time",n}return e(n,t),n.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Os(t.value,nx[As(ks(this._minLevelUnit))]||nx.second,e,this.getSetting("locale"))},n.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Ls(t,e,n,i,r)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=Jp(this._minLevelUnit,this._approxInterval,r,e);return n=n.concat(i),n.push({value:e[1],level:0}),n},n.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=$_,e[1]+=$_),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-$_}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},n.prototype.niceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=vT.length,a=Math.min(dT(vT,this._approxInterval,0,o),o-1);this._interval=vT[a][1],this._minLevelUnit=vT[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return"number"==typeof t?t:+kr(t)},n.prototype.contain=function(t){return Op(this.parse(t),this._extent)},n.prototype.normalize=function(t){return Lp(this.parse(t),this._extent)},n.prototype.scale=function(t){return Rp(t,this._extent)},n.type="time",n}(hT),vT=[["second",Z_],["minute",K_],["hour",J_],["quarter-day",6*J_],["half-day",12*J_],["day",1.2*$_],["half-week",3.5*$_],["week",7*$_],["month",31*$_],["quarter",95*$_],["half-year",Q_/2],["year",Q_]];oT.registerClass(gT);var yT=oT.prototype,mT=hT.prototype,_T=Sr,xT=xr,wT=Math.floor,bT=Math.ceil,ST=Math.pow,MT=Math.log,TT=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new hT,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=mT.getTicks.call(this,t);return y(i,function(t){var e=t.value,i=xr(ST(this.base,e));return i=e===n[0]&&this._fixMin?$p(i,r[0]):i,i=e===n[1]&&this._fixMax?$p(i,r[1]):i,{value:i}},this)},n.prototype.setExtent=function(t,e){var n=this.base;t=MT(t)/MT(n),e=MT(e)/MT(n),mT.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=yT.getExtent.call(this);e[0]=ST(t,e[0]),e[1]=ST(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=$p(e[0],r[0])),this._fixMax&&(e[1]=$p(e[1],r[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=MT(t[0])/MT(e),t[1]=MT(t[1])/MT(e),yT.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var r=Ir(n),i=t/n*r;for(.5>=i&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[xr(bT(e[0]/r)*r),xr(wT(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},n.prototype.niceExtent=function(t){mT.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=MT(t)/MT(this.base),Op(t,this._extent)},n.prototype.normalize=function(t){return t=MT(t)/MT(this.base),Lp(t,this._extent)},n.prototype.scale=function(t){return t=Rp(t,this._extent),ST(this.base,t)},n.type="log",n}(oT),CT=TT.prototype;CT.getMinorTicks=mT.getMinorTicks,CT.getLabel=mT.getLabel,oT.registerClass(TT);var DT=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[0/0,0/0]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);T(i)?this._modelMinNum=tf(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=tf(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(T(o)?this._modelMaxNum=tf(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=tf(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=M(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[zn(s[0],1),zn(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:0/0:e-i[0]*o),null==s&&(s=t?r?r-1:0/0:n+i[1]*o),(null==a||!isFinite(a))&&(a=0/0),(null==s||!isFinite(s))&&(s=0/0),a>s&&(a=0/0,s=0/0);var h=B(a)||B(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[IT[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=kT[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),kT={min:"_determinedMin",max:"_determinedMax"},IT={min:"_dataMin",max:"_dataMax"},AT=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),OT={isDimensionStacked:wp,enableDataStack:xp,getStackedDimension:bp},LT=(Object.freeze||Object)({createList:hf,getLayoutRect:ol,dataStack:OT,createScale:cf,mixinAxisModelCommonMethods:pf,getECData:im,createTextStyle:ff,createDimensions:yp,createSymbol:Oh,enableHoverEmphasis:ya}),RT=[],PT={registerPreprocessor:jc,registerProcessor:Zc,registerPostInit:Kc,registerPostUpdate:Jc,registerAction:$c,registerCoordinateSystem:Qc,registerLayout:ep,registerVisual:np,registerTransform:CM,registerLoading:ip,registerMap:ap,PRIORITY:IS,ComponentModel:dx,ComponentView:_w,SeriesModel:mw,ChartView:bw,registerComponentModel:function(t){dx.registerClass(t)},registerComponentView:function(t){_w.registerClass(t)},registerSeriesModel:function(t){mw.registerClass(t)},registerChartView:function(t){bw.registerClass(t)},registerSubTypeDefaulter:function(t,e){dx.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){vr(t,e)}},ET=(Object.freeze||Object)({linearMap:mr,round:xr,asc:wr,getPrecision:br,getPrecisionSafe:Sr,getPixelPrecision:Mr,getPercentWithPrecision:Tr,MAX_SAFE_INTEGER:bv,remRadian:Cr,isRadianAroundZero:Dr,parseDate:kr,quantity:Ir,quantityExponent:Ar,nice:Or,quantile:Lr,reformIntervals:Rr,isNumeric:Er,numericToNumber:Pr}),BT=(Object.freeze||Object)({parse:kr,format:Os}),NT=(Object.freeze||Object)({extendShape:Xa,extendPath:Ya,makePath:Za,makeImage:Ka,mergePath:M_,resizePath:$a,createIcon:as,updateProps:ts,initProps:es,getTransform:rs,clipPointsByRect:is,clipRectByRect:os,registerShape:qa,getShapeClass:ja,Group:dv,Image:qy,Text:em,Circle:Rm,Ellipse:Em,Sector:jm,Ring:Km,Polygon:$m,Polyline:t_,Rect:Jy,Line:r_,BezierCurve:a_,Arc:l_,IncrementalDisplayable:__,CompoundPath:u_,LinearGradient:c_,RadialGradient:p_,BoundingRect:Eg}),zT=(Object.freeze||Object)({addCommas:Ks,toCamelCase:Js,normalizeCssArray:ox,encodeHTML:$s,formatTpl:Qs,getTooltipMarker:tl,formatTime:el,capitalFirst:nl,truncateText:Di,getTextRect:Zs}),FT=(Object.freeze||Object)({map:y,each:v,indexOf:p,inherits:f,reduce:m,filter:_,bind:Ad,curry:S,isArray:M,isString:C,isObject:I,isFunction:T,extend:h,defaults:c,clone:s,merge:l}),VT=oi(),HT=[0,1],GT=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&r>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Mr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),If(n,r.count())),mr(t,HT,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),If(n,r.count()));var i=mr(t,n,HT,e);return this.scale.scale(i)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=vf(this,e),r=n.ticks,i=y(r,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),o=e.get("alignWithLabel");return Af(this,i,o,t.clamp),i},t.prototype.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 n=this.scale.getMinorTicks(e),r=y(n,function(t){return y(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return r},t.prototype.getViewLabels=function(){return gf(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return Tf(this)},t}(),WT=function(t){function n(e,n,r){var i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;r=r||Vg,"string"==typeof e?o=Bf(e,n,r):I(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var a=o.style;return a&&(o.onselectstart=Ef,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),i.domBack=null,i.ctxBack=null,i.painter=n,i.config=null,i.dpr=r,i}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Bf("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,r){function i(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Eg(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new Eg(0,0,0,0);c.copy(h),c.union(t),o[u]=c,n=!0;break}if(s){l.copy(t),l.union(h);var p=t.width*t.height,f=h.width*h.height,d=l.width*l.height,g=d-p-f;r>g&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){var e=new Eg(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new Eg(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){var h=t[u];if(h){var c=h.shouldBePainted(n,r,!0,!0),p=h.__isRendered&&(h.__dirty&Kg.REDARAW_BIT||!c)?h.getPrevPaintRect():null;p&&i(p);var f=c&&(h.__dirty&Kg.REDARAW_BIT||!h.__isRendered)?h.getPaintRect():null;f&&i(f)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(n,r,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&i(p)}}var d;do{d=!1;for(var u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(d=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(d);return this._paintRects=o,o},n.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},n.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},n.prototype.clear=function(t,e,n){function r(t,n,r,i){if(o.clearRect(t,n,r,i),e&&"transparent"!==e){var a=void 0;R(e)?(a=e.__canvasGradient||Ph(o,e,{x:0,y:0,width:r,height:i}),e.__canvasGradient=a):P(e)&&(a=Hh(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,n,r,i),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,n,r,i),o.restore())}var i=this.dom,o=this.ctx,a=i.width,s=i.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/h,s/h));var p=this.domBack;!n||l?r(0,0,a,s):n.length&&v(n,function(t){r(t.x*h,t.y*h,t.width*h,t.height*h)})},n}(Hd),UT=1e5,XT=314159,YT=.01,qT=.001,jT=function(){function t(t,e,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";
  13. var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=h({},n||{}),this.dpr=n.devicePixelRatio||Vg,this._singleCanvas=r,this.root=t;var i=t.style;i&&(i.webkitTapHighlightColor="transparent",i.webkitUserSelect="none",i.userSelect="none",i["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new WT(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[XT]=c,c.zlevel=XT,o.push(XT),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=Ff(this._width,this._height);t.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(UT)),r||(r=n.ctx,r.save()),ec(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(UT)},t.prototype.paintOne=function(t,e){tc(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;nv(function(){s._paintList(t,e,n,r)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(XT).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,h=!1,c=function(a){var s=i[a],l=s.ctx,c=o&&s.createRepaintRects(t,e,p._width,p._height);l.save();var f=n?s.__startIndex:s.__drawIndex,d=!n&&s.incremental&&Date.now,g=d&&Date.now(),v=s.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,v,c);else if(f===s.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||s.clear(!1,v,c)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=s.__startIndex);var m,_=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(m=f;m<s.__endIndex;m++){var i=t[m];if(i.__inHover&&(h=!0),r._doPaintEl(i,s,o,e,n,m===s.__endIndex-1),d){var a=Date.now()-g;if(a>15)break}}n.prevElClipPaths&&l.restore()};if(c)if(0===c.length)m=s.__endIndex;else for(var x=p.dpr,w=0;w<c.length;++w){var b=c[w];l.save(),l.beginPath(),l.rect(b.x*x,b.y*x,b.width*x,b.height*x),l.clip(),_(b),l.restore()}else l.save(),_(),l.restore();s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(u=!1)},p=this,f=0;f<i.length;f++)c(f);return vd.wxa&&v(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:h}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(ec(a,t,i,o),t.setPrevPaintRect(s))}else ec(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=XT);var n=this._layers[t];return n||(n=new WT("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?l(n,this._layerConfig[t],!0):this._layerConfig[t-YT]&&l(n,this._layerConfig[t-YT],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,s=null,l=-1;if(n[t])return void a("ZLevel "+t+" has been used already");if(!zf(e))return void a("Layer of zlevel "+t+" is not valid");if(i>0&&t>r[0]){for(l=0;i-1>l&&!(r[l]<t&&r[l+1]>t);l++);s=n[r[l]]}if(r.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var r=t[n];if(r.zlevel!==t[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o,s=null,l=0;for(o=0;o<t.length;o++){var r=t[o],u=r.zlevel,h=void 0;i!==u&&(i=u,l=0),r.incremental?(h=this.getLayer(u+qT,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?YT:0),this._needsManuallyCompositing),h.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.__drawIndex=h.incremental?-1:o,e(o),s=h),r.__dirty&Kg.REDARAW_BIT&&!r.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),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)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,v(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?l(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+YT){var o=this._layers[i];l(o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(p(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var i in this._layers)this._layers.hasOwnProperty(i)&&this._layers[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(XT).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[XT].dom;var e=new WT("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;l>s;s++){var u=a[s];ec(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],r=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||Nf(s[n])||Nf(a.style[n]))-(Nf(s[i])||0)-(Nf(s[o])||0)|0},t.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),r=n.getContext("2d"),i=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=t.hasStroke()?o.lineWidth:0,c=Math.max(u/2,-s+a),p=Math.max(u/2,s+a),f=Math.max(u/2,-l+a),d=Math.max(u/2,l+a),g=i.width+c+p,v=i.height+f+d;n.width=g*e,n.height=v*e,r.scale(e,e),r.clearRect(0,0,g,v),r.dpr=e;var y={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=c-i.x,t.y=f-i.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&ec(r,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new qy({style:{x:0,y:0,image:n}});return h(t,y),m},t}(),ZT=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new vw(this),Su(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Su(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:kx},n}(dx),KT=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(_w);df([Vf,Hf]);var JT="\x00_ec_interaction_mutex";$c({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var $T=function(t){function n(e){var n=t.call(this)||this;n._zr=e;var r=Ad(n._mousedownHandler,n),i=Ad(n._mousemoveHandler,n),o=Ad(n._mouseupHandler,n),a=Ad(n._mousewheelHandler,n),l=Ad(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=c(s(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),(t===!0||"move"===t||"pan"===t)&&(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),(t===!0||"scale"===t||"zoom"===t)&&(e.on("mousewheel",a),e.on("pinch",l))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",l)},n}return e(n,t),n.prototype.isDragging=function(){return this._dragging},n.prototype.isPinching=function(){return this._pinching},n.prototype.setPointerChecker=function(t){this.pointerChecker=t},n.prototype.dispose=function(){this.disable()},n.prototype._mousedownHandler=function(t){if(!(Oe(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},n.prototype._mousemoveHandler=function(t){if(this._dragging&&Yf("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Gf(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&qd(t.event),Xf(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},n.prototype._mouseupHandler=function(t){Oe(t)||(this._dragging=!1)},n.prototype._mousewheelHandler=function(t){var e=Yf("zoomOnMouseWheel",t,this._opt),n=Yf("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;Uf(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),h=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);Uf(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:o,originY:a,isAvailableBehavior:null})}}},n.prototype._pinchHandler=function(t){if(!Gf(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;Uf(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},n}(Hd),QT={axisPointer:1,tooltip:1,brush:1},tC=["rect","circle","line","ellipse","polygon","polyline","path"],eC=Y(tC),nC=Y(tC.concat(["g"])),rC=Y(tC.concat(["g"])),iC=oi(),oC=function(){function t(t){var e=new dv;this.uid=xs("ec_map_draw"),this._controller=new $T(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new dv),e.add(this._svgGroup=new dv)}return t.prototype.draw=function(t,e,n,r,i){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,l=this._regionsGroup,u=this.group,h=s.getTransformInfo(),c=h.raw,p=h.roam,f=!l.childAt(0)||i;f?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):ts(u,p,t);var d=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Y(),n=this._regionsGroup,r=t.transformInfoRaw,i=t.mapOrGeoModel,o=t.data,a=function(t){return[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]};n.removeAll(),v(t.geo.regions,function(r){var s=r.name,l=i.getRegionModel(s),u=o?o.indexOfName(s):null,h=e.get(s),c=!!h;c||(h=e.set(s,new dv),n.add(h));var p=new u_({segmentIgnoreThreshold:1,shape:{paths:[]}});h.add(p),c||(Qf(t,h,s,l,i,u),td(t,h,s,l,i),ed(t,h,s,l,i)),v(r.geometries,function(t){if("polygon"===t.type){for(var e=[],n=0;n<t.exterior.length;++n)e.push(a(t.exterior[n]));p.shape.paths.push(new $m({segmentIgnoreThreshold:1,shape:{points:e}}));for(var n=0;n<(t.interiors?t.interiors.length:0);++n){for(var r=t.interiors[n],i=[],o=0;o<r.length;++o)i.push(a(r[o]));p.shape.paths.push(new $m({segmentIgnoreThreshold:1,shape:{points:i}}))}}}),Jf(t,p,u,l),p instanceof Yv&&(p.culling=!0);var f=a(r.getCenter());$f(t,p,s,l,i,u,f)},this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=Y(),i=!1;v(this._svgGraphicRecord.named,function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,h=o.getRegionModel(n);if(null!=eC.get(s)&&l instanceof Yv&&Jf(t,l,u,h),l instanceof Yv&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=rC.get(s)&&$f(t,l,n,h,o,u,null),Qf(t,l,n,h,o,u),td(t,l,n,h,o),null!=nC.get(s))){var c=ed(t,l,n,h,o);"self"===c&&(i=!0);var p=r.get(n)||r.set(n,[]);p.push(l)}},this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),r=n.opacity;this._svgGraphicRecord.root.traverse(function(t){if(!t.isGroup){Jo(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=r&&(e.opacity=r),t.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=iS.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=iS.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){function r(){var e={type:"geoRoam",componentType:s};return e[s+"Id"]=t.id,e}var i=t.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=i.getZoom(),o.enable(t.get("roam")||!1);var s=t.mainType;o.off("pan").on("pan",function(t){this._mouseDownFlag=!1,qf(a,t.dx,t.dy),n.dispatchAction(h(r(),{dx:t.dx,dy:t.dy}))},this),o.off("zoom").on("zoom",function(t){this._mouseDownFlag=!1,jf(a,t.scale,t.originX,t.originY),n.dispatchAction(h(r(),{zoom:t.scale,originX:t.originX,originY:t.originY}))},this),o.setPointerChecker(function(e,r,o){return i.containPoint([r,o])&&!Zf(e,n,t)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=iC(e).ignore)})},t.prototype._updateMapSelectHandler=function(t,e){var n=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){n._mouseDownFlag=!0}),e.on("click",function(){n._mouseDownFlag&&(n._mouseDownFlag=!1)}))},t}(),aC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id){var o=this._mapDraw;o&&i.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new oC(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},n.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},n.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},n.prototype._renderSymbols=function(t){var e=t.originalData,n=this.group;e.each(e.mapDimension("value"),function(r,i){if(!isNaN(r)){var o=e.getItemLayout(i);if(o&&o.point){var a=o.point,s=o.offset,l=new Rm({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:fm+1)});if(!s){var u=t.mainSeries.getData(),h=e.getName(i),c=u.indexOfName(h),p=e.getItemModel(i),f=p.getModel("label"),d=u.getItemGraphicEl(c);hs(l,cs(p),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(c,n)}}}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),d.onHoverStateChange=function(t){Xo(l,t)}}n.add(l)}}})},n.type="map",n}(bw),sC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},e}return e(n,t),n.prototype.getInitialData=function(){for(var t=nd(this,{coordDimensions:["value"],encodeDefaulter:S(fl,this)}),e=Y(),n=[],r=0,i=t.count();i>r;r++){var o=t.getName(r);e.set(o,!0)}var a=iS.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return v(a.regions,function(t){var r=t.name;e.get(r)||n.push(r)}),t.appendValues([],n),t},n.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},n.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},n.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},n.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},n.prototype.formatTooltip=function(t){for(var e=this.getData(),n=this.getRawValue(t),r=e.getName(t),i=this.seriesGroup,o=[],a=0;a<i.length;a++){var s=i[a].originalData.indexOfName(r),l=e.mapDimension("value");isNaN(i[a].originalData.get(l,s))||o.push(i[a].name)}return Cu("section",{header:o.join(", "),noHeader:!o.length,blocks:[Cu("nameValue",{name:r,value:n})]})},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.getLegendIcon=function(t){var e=t.symbolType||"roundRect",n=Oh(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},n.type="series.map",n.dependencies=["geo"],n.layoutMode="box",n.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,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)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},n}(mw),lC=ge,uC=function(t){function n(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new hg,n._rawTransformable=new hg,n.name=e,n}return e(n,t),n.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new Eg(t,e,n,r),this._rect},n.prototype.getBoundingRect=function(){return this._rect},n.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new Eg(t,e,n,r)},n.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new Eg(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},n.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},n.prototype.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()},n.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},n.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},n.prototype.getZoom=function(){return this._zoom||1},n.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},n.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=ge([],r,t),n=ge([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},n.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Ve(this.transform||(this.transform=[]),e.transform||ze()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Xe(this.invTransform,this.transform),this.decomposeTransform()},n.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new hg;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},n.prototype.getViewRect=function(){return this._viewRect},n.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},n.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?lC(n,t,r):$(n,t)},n.prototype.pointToData=function(t){var e=this.invTransform;return e?lC([],t,e):[t[0],t[1]]},n.prototype.convertToPixel=function(t,e,n){var r=ad(e);return r===this?r.dataToPoint(n):null},n.prototype.convertFromPixel=function(t,e,n){var r=ad(e);return r===this?r.pointToData(n):null},n.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},n.dimensions=["x","y"],n}(hg),hC={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},cC=function(t){function n(e,n,r){var i=t.call(this,e)||this;i.dimensions=["lng","lat"],i.type="geo",i._nameCoordMap=Y(),i.map=n;var o=iS.load(n,r.nameMap,r.nameProperty),a=iS.getGeoResource(n);i.resourceType=a?a.type:null;var s=hC[a.type];i._regionsMap=o.regionsMap,i._invertLongitute=s.invertLongitute,i.regions=o.regions,i.aspectScale=z(r.aspectScale,s.aspectScale);var l=o.boundingRect;return i.setBoundingRect(l.x,l.y,l.width,l.height),i}return e(n,t),n.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new Eg(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},n.prototype.getRegion=function(t){return this._regionsMap.get(t)},n.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},n.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},n.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},n.prototype.dataToPoint=function(t,e,n){return"string"==typeof t&&(t=this.getGeoCoord(t)),t?uC.prototype.dataToPoint.call(this,t,e,n):void 0},n.prototype.convertToPixel=function(t,e,n){var r=sd(e);return r===this?r.dataToPoint(n):null},n.prototype.convertFromPixel=function(t,e,n){var r=sd(e);return r===this?r.pointToData(n):null},n}(uC);d(cC,uC);var pC=function(){function t(){this.dimensions=cC.prototype.dimensions}return t.prototype.create=function(t,e){var n=[];t.eachComponent("geo",function(t,r){var i=t.get("map"),o=new cC(i+r,i,{nameMap:t.get("nameMap"),nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale")});o.zoomLimit=t.get("scaleLimit"),n.push(o),t.coordinateSystem=o,o.model=t,o.resize=ld,o.resize(t,e)}),t.eachSeries(function(t){var e=t.get("coordinateSystem");if("geo"===e){var r=t.get("geoIndex")||0;t.coordinateSystem=n[r]}});var r={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}}),v(r,function(t,r){var i=y(t,function(t){return t.get("nameMap")}),o=new cC(r,r,{nameMap:u(i),nameProperty:t[0].get("nameProperty"),aspectScale:t[0].get("aspectScale")});o.zoomLimit=N.apply(null,y(t,function(t){return t.get("scaleLimit")})),n.push(o),o.resize=ld,o.resize(t[0],e),v(t,function(t){t.coordinateSystem=o,ud(o,t)})}),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=Y(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=iS.load(e,n,r);return v(s.regions,function(t){var e=t.name;!o.get(e)&&i.push({name:e})}),i},t}(),fC=new pC,dC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e,n){var r=iS.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),Hr(t,"label",["show"])},n.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=fC.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=m(e.regions||[],function(e,r){var i=r.name;return i&&(e.set(i,new F_(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e},Y()),e.selectedMap||(e.selectedMap=n)},n.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new F_(null,this,this.ecModel)},n.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r=n.get("normal"===e?["label","formatter"]:["emphasis","label","formatter"]),i={name:t};return"function"==typeof r?(i.status=e,r(i)):"string"==typeof r?r.replace("{a}",null!=t?t:""):void 0},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var r=e.selectedMap||(e.selectedMap={});r[t]=!0}},n.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},n.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},n.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},n.type="geo",n.layoutMode="box",n.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"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},n}(dx),gC=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.focusBlurEnabled=!0,e}return e(n,t),n.prototype.init=function(t,e){var n=new oC(e);this._mapDraw=n,this.group.add(n.group),this._api=e},n.prototype.render=function(t,e,n,r){var i=this._mapDraw;t.get("show")?i.draw(t,e,n,this,r):this._mapDraw.group.removeAll(),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this._model=t,this.updateSelectStatus(t,e,n)},n.prototype._handleRegionClick=function(t){var e;Ih(t.target,function(t){return null!=(e=im(t).eventData)},!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},n.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse(function(t){var e=im(t).eventData;return e?(r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0):void 0})},n.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},n.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},n.type="geo",n}(_w);df(pd),df(cd),t.version=cS,t.dependencies=pS,t.PRIORITY=IS,t.init=Hc,t.connect=Gc,t.disConnect=Wc,t.disconnect=MM,t.dispose=Uc,t.getInstanceByDom=Xc,t.getInstanceById=Yc,t.registerTheme=qc,t.registerPreprocessor=jc,t.registerProcessor=Zc,t.registerPostInit=Kc,t.registerPostUpdate=Jc,t.registerAction=$c,t.registerCoordinateSystem=Qc,t.getCoordinateSystemDimensions=tp,t.registerLayout=ep,t.registerVisual=np,t.registerLoading=ip,t.setCanvasCreator=op,t.registerMap=ap,t.getMap=sp,t.registerTransform=CM,t.dataTool=HM,t.registerLocale=Ss,t.zrender=xv,t.matrix=rg,t.vector=zd,t.zrUtil=Rd,t.color=wg,t.helper=LT,t.number=ET,t.time=BT,t.graphic=NT,t.format=zT,t.util=FT,t.ComponentModel=dx,t.ComponentView=_w,t.SeriesModel=mw,t.ChartView=bw,t.extendComponentModel=Of,t.extendComponentView=Lf,t.extendSeriesModel=Rf,t.extendChartView=Pf,t.throttle=Uu,t.use=df,t.parseGeoJSON=Oc,t.parseGeoJson=Oc,t.env=vd,t.List=nT,t.Model=F_,t.Axis=GT,t.innerDrawElementOnCanvas=tc});