!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}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Od(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(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.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 r(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;nr;r++)e[r]=s(t[r])}}else if(Ud[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]=t[r]}}}else if(!Gd[n]&&!X(t)&&!L(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==Jd&&(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)&&r!==Jd){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)&&n!==Jd&&(t[n]=e[n]);return t}function c(t,e,n){for(var r=w(e),i=0;in;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;ir;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===Kd)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===jd)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;rn;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;np;p++){var d=1<a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*xe(n,7,0===a?1:0,1<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 Me(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?we(s,a):we(a,s))}function Te(t){return"CANVAS"===t.nodeName.toUpperCase()}function Ce(t){return null==t?"":(t+"").replace(_g,function(t,e){return xg[e]})}function ke(t,e,n,r){return n=n||{},r?De(t,e,n):Sg&&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):De(t,e,n),n}function De(t,e,n){if(Rd.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Te(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(be(bg,t,r,i))return n.zrX=bg[0],void(n.zrY=bg[1])}n.zrX=n.zrY=0}function Ie(t){return t||window.event}function Ae(t,e,n){if(e=Ie(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&&ke(t,o,e,n)}else{ke(t,e,e,n);var a=Oe(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&wg.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Oe(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 Le(t,e,n,r){t.addEventListener(e,n,r)}function Pe(t,e,n,r){t.removeEventListener(e,n,r)}function Re(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Ee(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Be(){return[1,0,0,1,0,0]}function Ne(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ze(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 Fe(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 Ve(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 He(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 We(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 Ge(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 Ue(t){var e=Be();return ze(e,t),e}function Xe(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:Ye}}function Ye(){Mg(this.event)}function qe(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?zg:!0}return!1}function je(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=qe(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==zg)){e.target=a;break}}}function Ze(t,e,n){var r=t.painter;return 0>e||e>r.getWidth()||0>n||n>r.getHeight()}function Ke(t){for(var e=0;t>=Xg;)e|=1&t,t>>=1;return t+e}function $e(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++;Qe(t,e,i)}else for(;n>i&&r(t[i],t[i-1])>=0;)i++;return i-e}function Qe(t,e,n){for(n--;n>e;){var r=t[e];t[e++]=t[n],t[n--]=r}}function Je(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 tn(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 en(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 nn(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])break;o(t)}}function i(){for(;c>1;){var t=c-2;t>0&&u[t-1]=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=en(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=tn(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>=Yg||f>=Yg);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-en(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-tn(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>=Yg||v>=Yg);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=Yg,c=0,p=[];return l=[],u=[],{mergeRuns:r,forceMergeRuns:i,pushRun:n}}function rn(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(2>i)){var o=0;if(Xg>i)return o=$e(t,n,r,e),void Je(t,n,r,n+o,e);var a=nn(t,e),s=Ke(i);do{if(o=$e(t,n,r,e),s>o){var l=i;l>s&&(l=s),Je(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 on(){Kg||(Kg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function an(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function sn(t){return t>-nv&&nv>t}function ln(t){return t>nv||-nv>t}function un(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 hn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function cn(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(sn(h)&&sn(c))if(sn(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(sn(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=ev(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-tv(-_,ov):tv(_,ov),x=0>x?-tv(-x,ov):tv(x,ov);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var w=(2*h*s-3*a*c)/(2*ev(h*h*h)),b=Math.acos(w)/3,S=ev(h),M=Math.cos(b),d=(-s-2*S*M)/(3*a),y=(-s+S*(M+iv*Math.sin(b)))/(3*a),T=(-s+S*(M-iv*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 pn(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(sn(a)){if(ln(o)){var u=-s/o;u>=0&&1>=u&&(i[l++]=u)}}else{var h=o*o-4*a*s;if(sn(h))i[0]=-o/(2*a);else if(h>0){var c=ev(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 fn(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 dn(t,e,n,r,i,o,a,s,l,u,h){var c,p,f,d,g,v=.005,y=1/0;av[0]=l,av[1]=u;for(var m=0;1>m;m+=.05)sv[0]=un(t,n,i,a,m),sv[1]=un(e,r,o,s,m),d=pg(av,sv),y>d&&(c=m,y=d);y=1/0;for(var _=0;32>_&&!(rv>v);_++)p=c-v,f=c+v,sv[0]=un(t,n,i,a,p),sv[1]=un(e,r,o,s,p),d=pg(sv,av),p>=0&&y>d?(c=p,y=d):(lv[0]=un(t,n,i,a,f),lv[1]=un(e,r,o,s,f),g=pg(lv,av),1>=f&&y>g?(c=f,y=g):v*=.5);return h&&(h[0]=un(t,n,i,a,c),h[1]=un(e,r,o,s,c)),ev(y)}function gn(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=un(t,n,i,a,d),v=un(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 vn(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function yn(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function mn(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(sn(o)){if(ln(a)){var u=-s/a;u>=0&&1>=u&&(i[l++]=u)}}else{var h=a*a-4*o*s;if(sn(h)){var u=-a/(2*o);u>=0&&1>=u&&(i[l++]=u)}else if(h>0){var c=ev(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 _n(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function xn(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 wn(t,e,n,r,i,o,a,s,l){var u,h=.005,c=1/0;av[0]=a,av[1]=s;for(var p=0;1>p;p+=.05){sv[0]=vn(t,n,i,p),sv[1]=vn(e,r,o,p);var f=pg(av,sv);c>f&&(u=p,c=f)}c=1/0;for(var d=0;32>d&&!(rv>h);d++){var g=u-h,v=u+h;sv[0]=vn(t,n,i,g),sv[1]=vn(e,r,o,g);var f=pg(sv,av);if(g>=0&&c>f)u=g,c=f;else{lv[0]=vn(t,n,i,v),lv[1]=vn(e,r,o,v);var y=pg(lv,av);1>=v&&c>y?(u=v,c=y):h*=.5}}return l&&(l[0]=vn(t,n,i,u),l[1]=vn(e,r,o,u)),ev(c)}function bn(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=vn(t,n,i,p),d=vn(e,r,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}function Sn(t){var e=t&&uv.exec(t);if(e){var n=e[1].split(","),r=+G(n[0]),i=+G(n[1]),o=+G(n[2]),a=+G(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:cn(0,r,o,1,t,s)&&un(0,i,a,1,s[0])}}}function Mn(t){return t=Math.round(t),0>t?0:t>255?255:t}function Tn(t){return t=Math.round(t),0>t?0:t>360?360:t}function Cn(t){return 0>t?0:t>1?1:t}function kn(t){var e=t;return Mn(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Dn(t){var e=t;return Cn(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function In(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 An(t,e,n){return t+(e-t)*n}function On(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Ln(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Pn(t,e){vv&&Ln(vv,e),vv=gv.put(t,vv||e.slice())}function Rn(t,e){if(t){e=e||[];var n=gv.get(t);if(n)return Ln(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in dv)return Ln(e,dv[r]),Pn(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?On(e,+l[0],+l[1],+l[2],1):On(e,0,0,0,1);u=Dn(l.pop());case"rgb":return l.length>=3?(On(e,kn(l[0]),kn(l[1]),kn(l[2]),3===l.length?u:Dn(l[3])),Pn(t,e),e):void On(e,0,0,0,1);case"hsla":return 4!==l.length?void On(e,0,0,0,1):(l[3]=Dn(l[3]),En(l,e),Pn(t,e),e);case"hsl":return 3!==l.length?void On(e,0,0,0,1):(En(l,e),Pn(t,e),e);default:return}}On(e,0,0,0,1)}else{if(4===i||5===i){var h=parseInt(r.slice(1,4),16);return h>=0&&4095>=h?(On(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),Pn(t,e),e):void On(e,0,0,0,1)}if(7===i||9===i){var h=parseInt(r.slice(1,7),16);return h>=0&&16777215>=h?(On(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===i?parseInt(r.slice(7),16)/255:1),Pn(t,e),e):void On(e,0,0,0,1)}}}}function En(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Dn(t[1]),i=Dn(t[2]),o=.5>=i?i*(r+1):i+r-i*r,a=2*i-o;return e=e||[],On(e,Mn(255*In(a,o,n+1/3)),Mn(255*In(a,o,n)),Mn(255*In(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Bn(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 Nn(t,e){var n=Rn(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 Gn(n,4===n.length?"rgba":"rgb")}}function zn(t){var e=Rn(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Fn(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]=Mn(An(a[0],s[0],l)),n[1]=Mn(An(a[1],s[1],l)),n[2]=Mn(An(a[2],s[2],l)),n[3]=Cn(An(a[3],s[3],l)),n}}function Vn(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=Rn(e[i]),s=Rn(e[o]),l=r-i,u=Gn([Mn(An(a[0],s[0],l)),Mn(An(a[1],s[1],l)),Mn(An(a[2],s[2],l)),Cn(An(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function Hn(t,e,n,r){var i=Rn(t);return t?(i=Bn(i),null!=e&&(i[0]=Tn(e)),null!=n&&(i[1]=Dn(n)),null!=r&&(i[2]=Dn(r)),Gn(En(i),"rgba")):void 0}function Wn(t,e){var n=Rn(t);return n&&null!=e?(n[3]=Cn(e),Gn(n,"rgba")):void 0}function Gn(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 Un(t,e){var n=Rn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Xn(){return Gn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Yn(t){return"linear"===t.type}function qn(t){return"radial"===t.type}function jn(t,e,n){return(e-t)*n+t}function Zn(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=jn(e[o],n[o],r);return t}function Kn(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]=jn(e[a][s],n[a][s],r)}return t}function $n(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=e[o]+n[o]*r;return t}function Qn(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 Jn(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;a>l;l++)r.push(1===n?i[l]:xv.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;lh;h++)isNaN(r[l][h])&&(r[l][h]=i[l][h])}}function er(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],r=0;e>r;r++)n.push(xv.call(t[r]));return n}return xv.call(t)}return t}function nr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function rr(t){return g(t&&t[0])?2:1}function ir(t){return t===Tv||t===Cv}function or(t){return t===bv||t===Sv}function ar(){return(new Date).getTime()}function sr(t){var e=t.pointerType;return"pen"===e||"touch"===e}function lr(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 ur(t){t&&(t.zrByTouch=!0)}function hr(t,e){return Ae(t.dom,new Nv(t,e),!0)}function cr(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 pr(t,e){var n=e.domHandlers;Rd.pointerEventsSupported?v(Rv.pointer,function(r){dr(e,r,function(e){n[r].call(t,e)})}):(Rd.touchEventsSupported&&v(Rv.touch,function(r){dr(e,r,function(i){n[r].call(t,i),lr(e)})}),v(Rv.mouse,function(r){dr(e,r,function(i){i=Ie(i),e.touching||n[r].call(t,i)})}))}function fr(t,e){function n(n){function r(r){r=Ie(r),cr(t,r.target)||(r=hr(t,r),e.domHandlers[n].call(t,r))}dr(e,n,r,{capture:!0})}Rd.pointerEventsSupported?v(Ev.pointer,n):Rd.touchEventsSupported||v(Ev.mouse,n)}function dr(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,Le(t.domTarget,e,n,r)}function gr(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Pe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function vr(t){return t>Zv||-Zv>t}function yr(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Tr(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+=Mr(r[0],n.width),u+=Mr(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 Cr(t,e,n,r,i){n=n||{};var o=[];Lr(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;pr;r++)t[r]=e[r]}function Dr(t){return g(t[0])}function Ir(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),kr(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Dr(i))for(var s=i[0].length,l=0;a>l;l++)o[l]?kr(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else kr(o,i,a);o.length=i.length}else t[n]=e[n]}function Ar(t,e){return t===e||g(t)&&g(e)&&Or(t,e)}function Or(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 Lr(t,e,n,r,i,o,a,s){for(var l=w(r),u=i.duration,h=i.delay,c=i.additive,f=i.setToFinal,d=!I(o),v=t.animators,y=[],m=0;m0||i.force&&!a.length){var D=void 0,A=void 0,O=void 0;if(s){A={},f&&(D={});for(var M=0;S>M;M++){var x=y[M];A[x]=n[x],f?D[x]=r[x]:n[x]=r[x]}}else if(f){O={};for(var M=0;S>M;M++){var x=y[M];O[x]=er(n[x]),Ir(n,r,x)}}var T=new Av(n,!1,!1,c?_(v,function(t){return t.targetName===e}):null);T.targetName=e,i.scope&&(T.scope=i.scope),f&&D&&T.whenWithKeys(0,D,y),O&&T.whenWithKeys(0,O,y),T.whenWithKeys(null==u?500:u,s?A:r,y).delay(h||0),t.addAnimator(T,e),a.push(T)}}function Pr(t){delete cy[t]}function Rr(t){if(!t)return!1;if("string"==typeof t)return Un(t,1)i;i++)n+=Un(e[i].color,1);return n/=r,Uv>n}return!1}function Er(t,e){var n=new py(o(),t,e);return cy[n.id]=n,n}function Br(t){t.dispose()}function Nr(){for(var t in cy)cy.hasOwnProperty(t)&&cy[t].dispose();cy={}}function zr(t){return cy[t]}function Fr(t,e){hy[t]=e}function Vr(t){return t.replace(/^\s+|\s+$/g,"")}function Hr(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(i>=t)return a;if(t>=o)return s}else{if(t>=i)return a;if(o>=t)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Wr(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 C(t)?Vr(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function Gr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),vy),t=(+t).toFixed(e),n?t:+t}function Ur(t){return t.sort(function(t,e){return t-e}),t}function Xr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Yr(t)}function Yr(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:i-1-o;return Math.max(0,a-r)}function qr(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 jr(t,e,n){if(!t[e])return 0;var r=Zr(t,n);return r[e]||0}function Zr(t,e){var n=m(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var r=Math.pow(10,e),i=y(t,function(t){return(isNaN(t)?0:t)/n*r*100}),o=100*r,a=y(i,function(t){return Math.floor(t)}),s=m(a,function(t,e){return t+e},0),l=y(i,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;p>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return y(a,function(t){return t/r})}function Kr(t,e){var n=Math.max(Xr(t),Xr(e)),r=t+e;return n>vy?r:Gr(r,n)}function $r(t){var e=2*Math.PI;return(t%e+e)%e}function Qr(t){return t>-gy&&gy>t}function Jr(t){if(t instanceof Date)return t;if(C(t)){var e=my.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]?+e[7].substring(0,3):0)) }return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?0/0:Math.round(t))}function ti(t){return Math.pow(10,ei(t))}function ei(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 ni(t,e){var n,r=ei(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 ri(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 ii(t){function e(t,n,r){return t.interval[r]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 oi(t){var e=parseFloat(t);return e==t&&(0!==e||!C(t)||t.indexOf("x")<=0)?e:0/0}function ai(t){return!isNaN(oi(t))}function si(){return Math.round(9*Math.random())}function li(t,e){return 0===e?t:li(e,t%e)}function ui(t,e){return null==t?e:null==e?t:t*e/li(t,e)}function hi(t){throw new Error(t)}function ci(t,e,n){return(e-t)*n+t}function pi(t){return t instanceof Array?t:null==t?[]:[t]}function fi(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 di(t){return!I(t)||M(t)||t instanceof Date?t:t.value}function gi(t){return I(t)&&!(t instanceof Array)}function vi(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=q();v(e,function(t,n){return I(t)?void 0:void(e[n]=null)});var s=yi(t,a,n);return(r||i)&&mi(s,t,a,e),r&&_i(s,e),r||i?xi(s,e,i):o&&wi(s,e),bi(s),s}function yi(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;ii?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(p&&"ordinal"===p.type)s[c]=(1>i&&l?l:u)[c];else{var f=l&&l[c]?l[c]:0,d=u[c],a=ci(f,d,i);s[c]=Gr(a,o?Math.max(Xr(f),Xr(d)):e)}}return s}function zi(t){var e={main:"",sub:""};if(t){var n=t.split(My);e.main=n[0]||"",e.sub=n[1]||""}return e}function Fi(t){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Vi(t){return!(!t||!t[Cy])}function Hi(t){t.$constructor=t,t.extend=function(t){var n,r=this;return Wi(r)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(r):(n=function(){(t.$constructor||r).apply(this,arguments)},f(n,this)),h(n.prototype,t),n[Cy]=!0,n.extend=this.extend,n.superCall=Xi,n.superApply=Yi,n.superClass=r,n}}function Wi(t){return T(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Gi(t,e){t.extend=e.extend}function Ui(t){var e=["__\x00is_clz",ky++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Xi(t,e){for(var n=[],r=2;r=0||i&&p(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function Zi(t){if("string"==typeof t){var e=Oy.get(t);return e&&e.image}return t}function Ki(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Oy.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!Qi(e)&&o.pending.push(a)):(e=Wd.loadImage(t,$i,$i),e.__zrImageSrc=t,Oy.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function $i(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ea;a++)o[a]=eo(o[a],i);return o.join("\n")}function to(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=mr("国",e);var a=i.ascCharWidth=mr("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=mr(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 eo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=mr(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?no(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=mr(t,r)}return""===t&&(t=e.placeholder),t}function no(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 ro(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=Sr(o),l=z(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width;n=null==c||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?lo(t,e.font,c,"breakAll"===r,0).lines:[];var p=n.length*l,f=z(e.height,p);if(p>f&&h){var d=Math.floor(f/l);n=n.slice(0,d)}if(t&&a&&null!=c)for(var g=to(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vu&&oo(r,t.substring(u,h),e,l),oo(r,i[2],e,l,i[1]),u=Ly.lastIndex}ua){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 D=S.width,I=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))b.percentWidth=D,c.push(b),b.contentWidth=mr(b.text,C);else{if(I){var A=S.backgroundColor,O=A&&A.image;O&&(O=Zi(O),Qi(O)&&(b.width=Math.max(b.width,O.width*k/O.height)))}var L=g&&null!=o?o-x:null;null!=L&&LL?(b.text="",b.width=b.contentWidth=0):(b.text=Ji(b.text,L-T,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=mr(b.text,C)):b.contentWidth=mr(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;y0&&d+r.accumWidth>r.width&&(o=e.split("\n"),c=!0),r.accumWidth=d}else{var g=lo(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=33&&383>=e}function so(t){return ao(t)?By[t]?!0:!1:!0}function lo(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn: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,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 uo(t,e,n){return Gy.copy(t.getBoundingRect()),t.transform&&Gy.applyTransform(t.transform),Uy.width=e,Uy.height=n,!Gy.intersect(Uy)}function ho(t,e,n,r,i,o){i[0]=Xy(t,n),i[1]=Xy(e,r),o[0]=Yy(t,n),o[1]=Yy(e,r)}function co(t,e,n,r,i,o,a,s,l,u){var h=pn,c=un,p=h(t,n,i,a,Jy);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,Jy[f]);l[0]=Xy(d,l[0]),u[0]=Yy(d,u[0])}p=h(e,r,o,s,tm);for(var f=0;p>f;f++){var g=c(e,r,o,s,tm[f]);l[1]=Xy(g,l[1]),u[1]=Yy(g,u[1])}l[0]=Xy(t,l[0]),u[0]=Yy(t,u[0]),l[0]=Xy(a,l[0]),u[0]=Yy(a,u[0]),l[1]=Xy(e,l[1]),u[1]=Yy(e,u[1]),l[1]=Xy(s,l[1]),u[1]=Yy(s,u[1])}function po(t,e,n,r,i,o,a,s){var l=_n,u=vn,h=Yy(Xy(l(t,n,i),1),0),c=Yy(Xy(l(e,r,o),1),0),p=u(t,n,i,h),f=u(e,r,o,c);a[0]=Xy(t,i,p),a[1]=Xy(e,o,f),s[0]=Yy(t,i,p),s[1]=Yy(e,o,f)}function fo(t,e,n,r,i,o,a,s,l){var u=me,h=_e,c=Math.abs(i-o);if(1e-4>c%Zy&&c>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(Ky[0]=jy(i)*n+t,Ky[1]=qy(i)*r+e,$y[0]=jy(o)*n+t,$y[1]=qy(o)*r+e,u(s,Ky,$y),h(l,Ky,$y),i%=Zy,0>i&&(i+=Zy),o%=Zy,0>o&&(o+=Zy),i>o&&!a?o+=Zy:o>i&&a&&(i+=Zy),a){var p=o;o=i,i=p}for(var f=0;o>f;f+=Math.PI/2)f>i&&(Qy[0]=jy(f)*n+t,Qy[1]=qy(f)*r+e,u(s,Qy,s),h(l,Qy,l))}function go(t){var e=Math.round(t/fm*1e8)/1e8;return e%2*fm}function vo(t,e){var n=go(t[0]);0>n&&(n+=dm);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=dm?i=n+dm:e&&n-i>=dm?i=n-dm:!e&&n>i?i=n+(dm-go(n-i)):e&&i>n&&(i=n-(dm-go(i-n))),t[0]=n,t[1]=i}function yo(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 mo(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=dn(t,e,n,r,i,o,a,s,u,h,null);return c/2>=p}function _o(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=wn(t,e,n,r,i,o,s,l,null);return u/2>=h}function xo(t){return t%=mm,0>t&&(t+=mm),t}function wo(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)%_m<1e-4)return!0;if(o){var c=r;r=xo(i),i=xo(c)}else r=xo(r),i=xo(i);r>i&&(i+=_m);var p=Math.atan2(l,s);return 0>p&&(p+=_m),p>=r&&i>=p||p+_m>=r&&i>=p+_m}function bo(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 So(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||e>u&&r>u&&o>u&&s>u)return 0;var h=cn(e,r,o,s,u,Sm);if(0===h)return 0;for(var c=0,p=-1,f=void 0,d=void 0,g=0;h>g;g++){var v=Sm[g],y=0===v||1===v?.5:1,m=un(t,n,i,a,v);l>m||(0>p&&(p=pn(e,r,o,s,Mm),Mm[1]1&&Mo(),f=un(e,r,o,s,Mm[0]),p>1&&(d=un(e,r,o,s,Mm[1]))),c+=2===p?vf?y:-y:vd?y:-y:d>s?y:-y:vf?y:-y:f>s?y:-y)}return c}function Co(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=mn(e,r,o,s,Sm);if(0===l)return 0;var u=_n(e,r,o);if(u>=0&&1>=u){for(var h=0,c=vn(e,r,o,u),p=0;l>p;p++){var f=0===Sm[p]||1===Sm[p]?.5:1,d=vn(t,n,i,Sm[p]);a>d||(h+=Sm[p]c?f:-f:c>o?f:-f)}return h}var f=0===Sm[0]||1===Sm[0]?.5:1,d=vn(t,n,i,Sm[0]);return a>d?0:e>o?f:-f}function ko(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);Sm[0]=-l,Sm[1]=l;var u=Math.abs(r-i);if(1e-4>u)return 0;if(u>=wm-1e-4){r=0,i=wm;var h=o?1:-1;return a>=Sm[0]+t&&a<=Sm[1]+t?h:0}if(r>i){var c=r;r=i,i=c}0>r&&(r+=wm,i+=wm);for(var p=0,f=0;2>f;f++){var d=Sm[f];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=wm+g),(g>=r&&i>=g||g+wm>=r&&i>=g+wm)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Do(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===xm.M&&d>1&&(n||(u+=bo(h,c,p,f,r,i))),v&&(h=s[d],c=s[d+1],p=h,f=c),g){case xm.M:p=s[d++],f=s[d++],h=p,c=f;break;case xm.L:if(n){if(yo(h,c,s[d],s[d+1],e,r,i))return!0}else u+=bo(h,c,s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case xm.C:if(n){if(mo(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=To(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 xm.Q:if(n){if(_o(h,c,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=Co(h,c,s[d++],s[d++],s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case xm.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+=bo(h,c,o,a,r,i);var M=(r-y)*x/_+y;if(n){if(wo(y,m,x,w,w+b,S,e,M,i))return!0}else u+=ko(y,m,x,w,w+b,S,M,i);h=Math.cos(w+b)*_+y,c=Math.sin(w+b)*x+m;break;case xm.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(yo(p,f,o,f,e,r,i)||yo(o,f,o,a,e,r,i)||yo(o,a,p,a,e,r,i)||yo(p,a,p,f,e,r,i))return!0}else u+=bo(o,f,o,a,r,i),u+=bo(p,a,p,f,r,i);break;case xm.Z:if(n){if(yo(h,c,p,f,e,r,i))return!0}else u+=bo(h,c,p,f,r,i);h=p,c=f}}return n||So(c,f)||(u+=bo(h,c,p,f,r,i)||0),0!==u}function Io(t,e,n){return Do(t,0,!1,e,n)}function Ao(t,e,n,r){return Do(t,e,!0,n,r)}function Oo(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Lo(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 Po(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?(Rm(2*r)===Rm(2*i)&&(t.x1=t.x2=Eo(r,s,!0)),Rm(2*o)===Rm(2*a)&&(t.y1=t.y2=Eo(o,s,!0)),t):t}}function Ro(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=Eo(r,s,!0),t.y=Eo(i,s,!0),t.width=Math.max(Eo(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Eo(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Eo(t,e,n){if(!e)return t;var r=Rm(2*t);return(r+Rm(e))%2===0?r/2:(r+(n?1:-1))/2}function Bo(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Ed+"px":t+"px":t}function No(t,e){for(var n=0;n=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Wo(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Go(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Uo(t){var e=t.text;return null!=e&&(e+=""),e}function Xo(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Yo(t){return null!=t&&"none"!==t}function qo(t){if(C(t)){var e=u_.get(t);return e||(e=Nn(t,-.1),u_.put(t,e)),e}if(P(t)){var n=h({},t);return n.colorStops=y(t.colorStops,function(t){return{offset:t.offset,color:Nn(t.color,-.1)}}),n}return t}function jo(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Zo(t){jo(t,"emphasis",Jm)}function Ko(t){t.hoverState===Jm&&jo(t,"normal",$m)}function $o(t){jo(t,"blur",Qm)}function Qo(t){t.hoverState===Qm&&jo(t,"normal",$m)}function Jo(t){t.selected=!0}function ta(t){t.selected=!1}function ea(t,e,n){e(t,n)}function na(t,e,n){ea(t,e,n),t.isGroup&&t.traverse(function(t){ea(t,e,n)})}function ra(t,e,n,r){for(var i=t.style,o={},a=0;a=0,o=!1;if(t instanceof Dm){var a=Zm(t),s=i?a.selectFill||a.normalFill:a.normalFill,l=i?a.selectStroke||a.normalStroke:a.normalStroke;if(Yo(s)||Yo(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=h({},r),u=h({},u),u.fill=s):!Yo(u.fill)&&Yo(s)?(o=!0,r=h({},r),u=h({},u),u.fill=qo(s)):!Yo(u.stroke)&&Yo(l)&&(o||(r=h({},r),u=h({},u)),u.stroke=qo(l)),r.style=u}}if(r&&null==r.z2){o||(r=h({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:n_)}return r}function oa(t,e,n){if(n&&null==n.z2){n=h({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:r_)}return n}function aa(t,e,n){var r=p(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:ra(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 sa(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return ia(this,t,e,n);if("blur"===t)return aa(this,t,n);if("select"===t)return oa(this,t,n)}return n}function la(t){t.stateProxy=sa;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=sa),n&&(n.stateProxy=sa)}function ua(t,e){!ya(t,e)&&!t.__highByOuter&&na(t,Zo)}function ha(t,e){!ya(t,e)&&!t.__highByOuter&&na(t,Ko)}function ca(t,e){t.__highByOuter|=1<<(e||0),na(t,Zo)}function pa(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&na(t,Ko)}function fa(t){na(t,$o)}function da(t){na(t,Qo)}function ga(t){na(t,Jo)}function va(t){na(t,ta)}function ya(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ma(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(e,i){var o=Km(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse(function(t){Qo(t)}),a&&n.push(i)),o.isBlured=!1}),v(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function _a(t,e,n,r){function i(t,e){for(var n=0;nl;)a=i.getItemGraphicEl(l++);if(a){var u=Xm(a);_a(r,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&_a(r,h,c,n)}}}function ba(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;u0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}})}),e}function Da(t,e,n){Pa(t,!0),na(t,la),Oa(t,e,n)}function Ia(t){Pa(t,!1)}function Aa(t,e,n,r){r?Ia(t):Da(t,e,n)}function Oa(t,e,n){var r=Xm(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}function La(t,e,n,r){n=n||"itemStyle";for(var i=0;i=qm&&(e=jm[t]=qm++),e}function Ba(t){var e=t.type;return e===a_||e===s_||e===l_}function Na(t){var e=t.type;return e===i_||e===o_}function za(t){var e=Zm(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 Fa(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),h=p_.M,c=p_.C,p=p_.L,f=p_.R,d=p_.A,g=p_.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=d_(e[0]*e[0]+e[1]*e[1]),_=d_(e[2]*e[2]+e[3]*e[3]),x=g_(-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++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;r>a;a++){var w=f_[a];w[0]=l[i++],w[1]=l[i++],ye(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}function Va(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ha(t,e){return(t[0]*e[0]+t[1]*e[1])/(Va(t)*Va(e))}function Wa(t,e){return(t[0]*e[1]1&&(a*=v_(d),s*=v_(d));var g=(i===o?-1:1)*v_((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+m_(c)*v-y_(c)*y,_=(e+r)/2+y_(c)*v+m_(c)*y,x=Wa([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=Wa(w,b);if(Ha(w,b)<=-1&&(S=__),Ha(w,b)>=1&&(S=0),0>S){var M=Math.round(S/__*1e6)/1e6;S=2*__+M%2*__}h.addData(u,m,_,a,s,x,S,c,o)}function Ua(t){var e=new ym;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=ym.CMD,l=t.match(x_);if(!l)return e;for(var u=0;ug;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,k=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(),k=e.data,n===s.C&&(y+=r-k[C-4],m+=i-k[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(),k=e.data,n===s.C&&(y+=r-k[C-4],m+=i-k[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(),k=e.data,n===s.Q&&(y+=r-k[C-4],m+=i-k[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(),k=e.data,n===s.Q&&(y+=r-k[C-4],m+=i-k[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,Ga(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,Ga(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 Xa(t){return null!=t.setData}function Ya(t,e){var n=Ua(t),r=h({},e);return r.buildPath=function(t){if(Xa(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){Fa(n,t),this.dirtyShape()},r}function qa(t,e){return new b_(Ya(t,e))}function ja(t,n){var r=Ya(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}(b_);return i}function Za(t,e){for(var n=[],r=t.length,i=0;r>i;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Dm(e);return a.createPathProxy(),a.buildPath=function(t){if(Xa(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Ka(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 N_>p*p?void 0:(p=(h*(e-o)-c*(t-i))/p,[t+p*l,e+p*u])}function $a(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/R_(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)*R_(E_(0,w*w*x-b*b)),M=(b*_-m*S)/x,T=(-b*m-_*S)/x,C=(b*_+m*S)/x,k=(-b*m+_*S)/x,D=M-v,I=T-y,A=C-v,O=k-y; return D*D+I*I>A*A+O*O&&(M=C,T=k),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(i/w-1),y1:T*(i/w-1)}}function Qa(t){var e;if(M(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Ja(t,e){var n,r=E_(e.r,0),i=E_(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,f=P_(u-l),d=f>D_&&f%D_;if(d>N_&&(f=d),r>N_)if(f>D_-N_)t.moveTo(h+r*A_(l),c+r*I_(l)),t.arc(h,c,r,l,u,!p),i>N_&&(t.moveTo(h+i*A_(u),c+i*I_(u)),t.arc(h,c,i,u,l,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=void 0,T=void 0,C=void 0,k=void 0,D=void 0,I=void 0,A=void 0,O=r*A_(l),L=r*I_(l),P=i*A_(u),R=i*I_(u),E=f>N_;if(E){var B=e.cornerRadius;B&&(n=Qa(B),g=n[0],v=n[1],y=n[2],m=n[3]);var N=P_(r-i)/2;if(_=B_(N,y),x=B_(N,m),w=B_(N,g),b=B_(N,v),T=S=E_(_,x),C=M=E_(w,b),(S>N_||M>N_)&&(k=r*A_(u),D=r*I_(u),I=i*A_(l),A=i*I_(l),k_>f)){var z=Ka(O,L,I,A,k,D,P,R);if(z){var F=O-z[0],V=L-z[1],H=k-z[0],W=D-z[1],G=1/I_(O_((F*H+V*W)/(R_(F*F+V*V)*R_(H*H+W*W)))/2),U=R_(z[0]*z[0]+z[1]*z[1]);T=B_(S,(r-U)/(G+1)),C=B_(M,(i-U)/(G-1))}}}if(E)if(T>N_){var X=B_(y,T),Y=B_(m,T),q=$a(I,A,O,L,r,X,p),j=$a(k,D,P,R,r,Y,p);t.moveTo(h+q.cx+q.x0,c+q.cy+q.y0),S>T&&X===Y?t.arc(h+q.cx,c+q.cy,T,L_(q.y0,q.x0),L_(j.y0,j.x0),!p):(X>0&&t.arc(h+q.cx,c+q.cy,X,L_(q.y0,q.x0),L_(q.y1,q.x1),!p),t.arc(h,c,r,L_(q.cy+q.y1,q.cx+q.x1),L_(j.cy+j.y1,j.cx+j.x1),!p),Y>0&&t.arc(h+j.cx,c+j.cy,Y,L_(j.y1,j.x1),L_(j.y0,j.x0),!p))}else t.moveTo(h+O,c+L),t.arc(h,c,r,l,u,!p);else t.moveTo(h+O,c+L);if(i>N_&&E)if(C>N_){var X=B_(g,C),Y=B_(v,C),q=$a(P,R,k,D,i,-Y,p),j=$a(O,L,I,A,i,-X,p);t.lineTo(h+q.cx+q.x0,c+q.cy+q.y0),M>C&&X===Y?t.arc(h+q.cx,c+q.cy,C,L_(q.y0,q.x0),L_(j.y0,j.x0),!p):(Y>0&&t.arc(h+q.cx,c+q.cy,Y,L_(q.y0,q.x0),L_(q.y1,q.x1),!p),t.arc(h,c,i,L_(q.cy+q.y1,q.cx+q.x1),L_(j.cy+j.y1,j.cx+j.x1),p),X>0&&t.arc(h+j.cx,c+j.cy,X,L_(j.y1,j.x1),L_(j.y0,j.x0),!p))}else t.lineTo(h+P,c+R),t.arc(h,c,i,u,l,p);else t.lineTo(h+P,c+R)}else t.moveTo(h,c);t.closePath()}}}function ts(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++)me(a,a,t[p]),_e(s,s,t[p]);me(a,a,r[0]),_e(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(ee(t[p]));continue}i=t[p-1],o=t[p+1]}oe(u,o,i),ce(u,u,e);var g=fe(d,i),v=fe(d,o),y=g+v;0!==y&&(g/=y,v/=y),ce(h,u,-g),ce(c,u,v);var m=re([],d,h),_=re([],d,c);r&&(_e(m,m,a),me(m,m,s),_e(_,_,a),me(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function es(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=ts(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{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 ns(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?hn:un)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?hn:un)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?yn:vn)(t.x1,t.cpx1,t.x2,e),(n?yn:vn)(t.y1,t.cpy1,t.y2,e)]}function rs(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;r?(u=z(r.duration,200),h=z(r.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),T(c)&&(c=c(n,i)),T(u)&&(u=u(n));var p={duration:u||0,delay:c,easing:h};return p}return null}function is(t,e,n,r,i,o,a){var s,l=!1;T(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="leave"===t;u||e.stopAnimation("leave");var h=rs(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,f=h.easing,d={duration:c,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function os(t,e,n,r,i,o){is("update",t,e,n,r,i,o)}function as(t,e,n,r,i,o){is("enter",t,e,n,r,i,o)}function ss(t){if(!t.__zr)return!0;for(var e=0;e=n&&o>=i?{x:n,y:i,width:r-n,height:o-i}:void 0}function Ss(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 Pm(r)):vs(t.replace("path://",""),r,n,"center"):void 0}function Ms(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Ts(t,e){if(t)if(M(t))for(var n=0;n=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 Hs(t,e){return l(l({},t,!0),e,!0)}function Ws(t,e){t=t.toUpperCase(),Hx[t]=new Px(e),Vx[t]=e}function Gs(t){if(C(t)){var e=Vx[t.toUpperCase()]||{};return t===Nx||t===zx?s(e):l(s(e),s(Vx[Fx]),!1)}return l(s(t),s(Vx[Fx]),!1)}function Us(t){return Hx[t]}function Xs(){return Hx[Fx]}function Ys(t,e){return t+="","0000".substr(0,e-t.length)+t}function qs(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 js(t){return t===qs(t)}function Zs(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ks(t,e,n,r){var i=Jr(t),o=i[tl(n)](),a=i[el(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[nl(n)](),u=i["get"+(n?"UTC":"")+"Day"](),h=i[rl(n)](),c=(h-1)%12+1,p=i[il(n)](),f=i[ol(n)](),d=i[al(n)](),g=r instanceof Px?r:Us(r||Wx)||Xs(),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,Ys(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ys(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ys(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Ys(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ys(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ys(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Ys(d,3)).replace(/{S}/g,d+"")}function $s(t,e,n,r,i){var o=null;if(C(n))o=n;else if(T(n))o=n(t.value,e,{level:t.level});else{var a=h({},jx);if(t.level>0)for(var s=0;s<$x.length;++s)a[$x[s]]="{primary|"+a[$x[s]]+"}";var l=n?n.inherit===!1?n:c(n,a):a,u=Qs(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(var p=Qx.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 Ks(new Date(t.value),o,i,r)}function Qs(t,e){var n=Jr(t),r=n[el(e)]()+1,i=n[nl(e)](),o=n[rl(e)](),a=n[il(e)](),s=n[ol(e)](),l=n[al(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 Js(t,e,n){var r=D(t)?Jr(t):t;switch(e=e||Qs(t,n)){case"year":return r[tl(n)]();case"half-year":return r[el(n)]()>=6?1:0;case"quarter":return Math.floor((r[el(n)]()+1)/4);case"month":return r[el(n)]();case"day":return r[nl(n)]();case"half-day":return r[rl(n)]()/24;case"hour":return r[rl(n)]();case"minute":return r[il(n)]();case"second":return r[ol(n)]();case"millisecond":return r[al(n)]()}}function tl(t){return t?"getUTCFullYear":"getFullYear"}function el(t){return t?"getUTCMonth":"getMonth"}function nl(t){return t?"getUTCDate":"getDate"}function rl(t){return t?"getUTCHours":"getHours"}function il(t){return t?"getUTCMinutes":"getMinutes"}function ol(t){return t?"getUTCSeconds":"getSeconds"}function al(t){return t?"getUTCMilliseconds":"getMilliseconds"}function sl(t){return t?"setUTCFullYear":"setFullYear"}function ll(t){return t?"setUTCMonth":"setMonth"}function ul(t){return t?"setUTCDate":"setDate"}function hl(t){return t?"setUTCHours":"setHours"}function cl(t){return t?"setUTCMinutes":"setMinutes"}function pl(t){return t?"setUTCSeconds":"setSeconds"}function fl(t){return t?"setUTCMilliseconds":"setMilliseconds"}function dl(t,e,n,r,i,o,a,s){var l=new Hm({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function gl(t){if(!ai(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 vl(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 yl(t,e,n){M(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;os;s++)for(var l=0;l':'';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 _l(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var r=Jr(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),h=r[i+"Seconds"](),c=r[i+"Milliseconds"]();return t=t.replace("MM",Ys(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Ys(o%100+"",2)).replace("dd",Ys(s,2)).replace("d",s).replace("hh",Ys(l,2)).replace("h",l).replace("mm",Ys(u,2)).replace("m",u).replace("ss",Ys(h,2)).replace("s",h).replace("SSS",Ys(c,3))}function xl(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function wl(t,e){return e=e||"transparent",C(t)?t:I(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function bl(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 Sl(t,e,n){n=Jx(n||0);var r=e.width,i=e.height,o=Wr(t.left,r),a=Wr(t.top,i),s=Wr(t.right,r),l=Wr(t.bottom,i),u=Wr(t.width,r),h=Wr(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 Ng(o+n[3],a+n[0],u,h);return d.margin=n,d}function Ml(t){var e=t.layoutMode||t.constructor.layoutMode;return I(e)?e:e?{type:e}:null}function Tl(t,e,n){function r(n,r){var a={},l=0,u={},h=0,c=2;if(nw(n,function(e){u[e]=t[e]}),nw(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;pr;r++)t.push(e+r)}function i(t){var e=t.dimsDef;return e?e.length:1}var o={},a=Ol(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=bw(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 Ol(t){var e=t.get("data",!0);return e?void 0:Ri(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Sy).models[0]}function Ll(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ri(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Sy).models:[]}function Pl(t,e){return Rl(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Rl(t,e,n,r,i,o){function a(t){var e=C(t);return null!=t&&isFinite(t)&&""!==t?e?ww.Might:ww.Not:e&&"-"!==t?ww.Must:void 0}var s,l=5;if(O(t))return ww.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?ww.Must:ww.Not;if(e===dw){var p=t;if(n===xw){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;dd;d++){var g=p[i+d];if(g&&null!=(s=a(g[o])))return s}}else if(e===gw){var v=t;if(!u)return ww.Not;for(var d=0;dd;d++){var y=v[d];if(y&&null!=(s=a(y[u])))return s}}else if(e===vw){var m=t;if(!u)return ww.Not;var f=m[u];if(!f||O(f))return ww.Not;for(var d=0;dd;d++)if(null!=(s=a(f[d])))return s}else if(e===fw)for(var _=t,d=0;d<_.length&&l>d;d++){var y=_[d],x=di(y);if(!M(x))return ww.Not;if(null!=(s=a(x[o])))return s}return ww.Not}function El(t,e,n){var r=Sw.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}function Bl(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 Nl(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?Bl(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 zl(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function Fl(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 Vl(t,e){var n=t.color&&!t.colorLayer;v(e,function(e,r){"colorLayer"===r&&n||aw.hasClass(r)||("object"==typeof e?t[r]=t[r]?l(t[r],e,!1):s(e):null==t[r]&&(t[r]=e))})}function Hl(t,e,n){if(M(e)){var r=q();return v(e,function(t){if(null!=t){var e=Ti(t,null);null!=e&&r.set(t,!0)}}),_(n,function(e){return e&&r.get(e[t])})}var i=Ti(e,null);return _(n,function(e){return e&&null!=i&&e[t]===i})}function Wl(t,e){return e.hasOwnProperty("subType")?_(t,function(t){return t&&t.subType===e.subType}):t}function Gl(t){var e=q();return t&&v(pi(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Ul(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 Xl(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return v(t,function(t,e){var n=e.match(Fw);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();Yl(r[a],t,o)||(i=!1)}}),i}function Yl(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function ql(t,e){return t.join(",")===e.join(",")}function jl(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Gw.length;r>n;n++){var i=Gw[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 Zl(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 Kl(t){Zl(t,"itemStyle"),Zl(t,"lineStyle"),Zl(t,"areaStyle"),Zl(t,"label"),Zl(t,"labelLine"),Zl(t,"upperLabel"),Zl(t,"edgeLabel")}function $l(t,e){var n=Ww(t)&&t[e],r=Ww(n)&&n.textStyle;if(r)for(var i=0,o=wy.length;o>i;i++){var a=wy[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function Ql(t){t&&(Kl(t),$l(t,"label"),t.emphasis&&$l(t.emphasis,"label"))}function Jl(t){if(Ww(t)){jl(t),Kl(t),$l(t,"label"),$l(t,"upperLabel"),$l(t,"edgeLabel"),t.emphasis&&($l(t.emphasis,"label"),$l(t.emphasis,"upperLabel"),$l(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(jl(e),Ql(e));var n=t.markLine;n&&(jl(n),Ql(n));var r=t.markArea;r&&Ql(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=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,p)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&0>y||"samesign"===l&&c>=0&&y>0||"samesign"===l&&0>=c&&0>y){c=Kr(c,y),d=y;break}}}return r[0]=c,r[1]=d,r})})}function du(t){return t instanceof qw}function gu(t,e,n){n=n||mu(t);var r=e.seriesLayoutBy,i=_u(t,n,r,e.sourceHeader,e.dimensions),o=new qw({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:s(e)});return o}function vu(t){return new qw({data:t,sourceFormat:O(t)?yw:fw})}function yu(t){return new qw({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function mu(t){var e=mw;if(O(t))e=yw;else if(M(t)){0===t.length&&(e=dw);for(var n=0,r=t.length;r>n;n++){var i=t[n];if(null!=i){if(M(i)){e=dw;break}if(I(i)){e=gw;break}}}}else if(I(t))for(var o in t)if($(t,o)&&g(t[o])){e=vw;break}return e}function _u(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:wu(i),startIndex:a,dimensionsDetectedCount:o};if(e===dw){var s=t;"auto"===r||null==r?bu(function(t){null!=t&&"-"!==t&&(C(t)?null==a&&(a=1):a=0)},n,s,10):a=D(r)?r:r?1:0,i||1!==a||(i=[],bu(function(t,e){i[e]=null!=t?t+"":""},n,s,1/0)),o=i?i.length:n===xw?s.length:s[0]?s[0].length:null}else if(e===gw)i||(i=xu(t));else if(e===vw)i||(i=[],v(t,function(t,e){i.push(e)}));else if(e===fw){var l=di(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:wu(i),dimensionsDetectedCount:o}}function xu(t){for(var e,n=0;ni;i++)t(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;ii;i++)t(o[i],i)}function Su(t){var e=t.sourceFormat;return e===gw||e===vw}function Mu(t,e){var n=Kw[ku(t,e)]; return n}function Tu(t,e){var n=Qw[ku(t,e)];return n}function Cu(t){var e=tb[t];return e}function ku(t,e){return t===dw?t+"_"+e:t}function Du(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Cu(o)(r,a,s)}var l=r;return o===fw&&(l=di(r)),l}}}function Iu(t){return new rb(t)}function Au(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||D(t)||null==t||"-"===t||(t=+Jr(t)),null==t||""===t?0/0:+t)}function Ou(t,e){var n=new ab,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==_w&&hi(a);var s=[],l={},u=t.dimensionsDefine;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="";$(l,n)&&hi(i),l[n]=r}});else for(var h=0;ho;o++)i.push(n[o].slice());return i}if(e===gw){for(var i=[],o=0,a=n.length;a>o;o++)i.push(h({},n[o]));return i}}function Ru(t,e,n){return null!=n?D(n)||!isNaN(n)&&!$(e,n)?t[n]:$(e,n)?e[n]:void 0:void 0}function Eu(t){return s(t)}function Bu(t){t=s(t);var e=t.type,n="";e||hi(n);var r=e.split(":");2!==r.length&&hi(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,sb.set(e,t)}function Nu(t,e,n){var r=pi(t),i=r.length,o="";i||hi(o);for(var a=0,s=i;s>a;a++){var l=r[a];e=zu(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function zu(t,e){var n="";e.length||hi(n),I(t)||hi(n);var r=t.type,i=sb.get(r);i||hi(n);var o=y(e,function(t){return Ou(t,i)}),a=pi(i.transform({upstream:o[0],upstreamList:o,config:s(t.config)}));return y(a,function(t,n){var r="";I(t)||hi(r),t.data||hi(r);var i=mu(t.data);Fu(i)||hi(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:_w,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:_w,sourceHeader:0,dimensions:t.dimensions};return gu(t.data,o,null)})}function Fu(t){return t===dw||t===gw}function Vu(t){return t>65535?ub:hb}function Hu(){return[1/0,-1/0]}function Wu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Gu(t,e,n,r,i){var o=fb[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}function Uu(t){var e=t.option.transform;e&&U(t.option.transform)}function Xu(t){return"series"===t.mainType}function Yu(t){throw new Error(t)}function qu(t,e){return e.type=t,e}function ju(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return wl(r)}function Zu(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=ju(o,a);if(h>1||p&&!h){var d=Ku(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=Du(l,a,u[0]),n=g.type}else i=e=p?c[0]:c;var v=Ci(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return qu("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[qu("nameValue",{markerType:"item",markerColor:f,name:_,noName:!G(_),value:e,valueType:n})].concat(r||[])})}function Ku(t,e,n,r,i){function o(t,e){var n=a.getDimensionInfo(e);n&&n.otherDims.tooltip!==!1&&(s?h.push(qu("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(Du(a,n,t),t)}):v(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function $u(t,e){return t.getName(e)||t.getId(e)}function Qu(t){var e=t.name;Ci(t)||(t.name=Ju(t)||e)}function Ju(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 th(t){return t.model.getRawData().count()}function eh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),nh}function nh(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function rh(t,e){v(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,S(ih,e))})}function ih(t,e){var n=oh(t);return n&&n.setOutputEnd((e||this).count()),e}function oh(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 ah(){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 sh(t,e,n){t&&Ra(t)&&("emphasis"===e?ca:pa)(t,n)}function lh(t,e,n){var r=Ai(t,e),i=e&&null!=e.highlightKey?Ea(e.highlightKey):null;null!=r?v(pi(r),function(e){sh(t.getItemGraphicEl(e),n,i)}):t.eachItemGraphicEl(function(t){sh(t,n,i)})}function uh(t){return wb(t.model)}function hh(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&xb(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),Mb[l]}function ch(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=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 ph(t,e){var n=t.visualStyleMapper||Cb[e];return n?n:(console.warn("Unknown style type '"+e+"'."),Cb.itemStyle)}function fh(t,e){var n=t.visualDrawType||kb[e];return n?n:(console.warn("Unknown style type '"+e+"'."),"fill")}function dh(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 uy,r=new Nm({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new Hm({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 Nm({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 J_({shape:{startAngle:-Lb/2,endAngle:-Lb/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*Lb/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*Lb/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 gh(t){t.overallReset(t.ecModel,t.api,t.payload)}function vh(t){return t.overallProgress&&yh}function yh(){this.agent.dirty(),this.getDownstream().dirty()}function mh(){this.agent&&this.agent.dirty()}function _h(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function xh(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=pi(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?y(e,function(t,e){return wh(e)}):Rb}function wh(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o=0&&Lh(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function Eh(t,e,n){for(var r="radial"===e.type?Rh(t,e,n):Ph(t,e,n),i=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:D(t)?[t]:M(t)?t:null:null}function Vh(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Fh(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=y(n,function(t){return t/i}),r/=i)}return[n,r]}function Hh(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Wh(t){return"string"==typeof t&&"none"!==t}function Gh(t){var e=t.fill;return null!=e&&"none"!==e}function Uh(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 Xh(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 Yh(t,e,n){var r=Ki(e.image,e.__image,n);if(Qi(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*sg),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function qh(t,e,n,r){var i,o=Hh(n),a=Gh(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||aS,c=e.__dirty;if(!r){var p=n.fill,f=n.stroke,d=a&&!!p.colorStops,g=o&&!!f.colorStops,v=a&&!!p.image,y=o&&!!f.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=e.getBoundingRect()),d&&(m=c?Eh(t,p,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=c?Eh(t,f,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=c||!e.__canvasFillPattern?Yh(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(w=c||!e.__canvasStrokePattern?Yh(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(w?t.strokeStyle=w:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,T;t.setLineDash&&n.lineDash&&(i=Vh(e),M=i[0],T=i[1]);var C=!0;(u||c&Zg)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,r),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=T),r||(n.strokeFirst?(o&&Xh(t,n),a&&Uh(t,n)):(a&&Uh(t,n),o&&Xh(t,n))),M&&t.setLineDash([])}function jh(t,e,n){var r=e.__image=Ki(n.image,e.__image,e,e.onload);if(r&&Qi(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 Zh(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||Nd,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=Vh(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Hh(n)&&t.strokeText(i,n.x,n.y),Gh(n)&&t.fillText(i,n.x,n.y)):(Gh(n)&&t.fillText(i,n.x,n.y),Hh(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}function Kh(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){rc(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?zy.opacity:a}(r||e.blend!==n.blend)&&(o||(rc(t,i),o=!0),t.globalCompositeOperation=e.blend||zy.blend);for(var s=0;so;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ac(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(),ac(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function lc(t,e){function n(t){function e(){for(var t=1,e=0,n=y.length;n>e;++e)t=ui(t,y[e]);for(var r=1,e=0,n=v.length;n>e;++e)r=ui(r,v[e].length);t*=r;var i=m*y.length*v.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);if(o){var c=i.painter.renderOneToVNode(h);c&&x.children.push(c)}else oc(f,h)}f&&(f.clearRect(0,0,_.width,_.height),s.backgroundColor&&(f.fillStyle=s.backgroundColor,f.fillRect(0,0,_.width,_.height)));for(var e=0,n=0;n=e))for(var a=-m,l=0,u=0,h=0;a=S)break;if(y%2===0){var M=.5*(1-s.symbolSize),T=p+d[h][y]*M,C=a+g[l]*M,k=d[h][y]*s.symbolSize,D=g[l]*s.symbolSize,I=b/2%v[c].length;t(T,C,k,D,v[c][I])}p+=d[h][y],++b,++y,y===d[h].length&&(y=0)}++h,h===d.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[r],l=!0,u=0;u=0)){kM.push(n);var o=Pb.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function zc(t,e){xM[t]=e}function Fc(t){i({createCanvas:t})}function Vc(t,e,n){var r=vc("registerMap");r&&r(t,e,n)}function Hc(t){var e=vc("getMap");return e&&e(t)}function Wc(t){return null==t?0:t.length||1}function Gc(t){return t}function Uc(t,e){var n={},r=n.encode={},i=q(),o=[],a=[],s={};v(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;Xc(r,l)[u]=e,n.isExtraCoord||(i.set(l,1),qc(n.type)&&(o[0]=e),Xc(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}pw.each(function(t,e){var i=Xc(r,e),o=n.otherDims[e];null!=o&&o!==!1&&(i[o]=n.name)})});var l=[],u={};i.each(function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=y(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=r.label;h&&h.length&&(o=h.slice());var c=r.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new zM(s,e),n}function Xc(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Yc(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function qc(t){return!("ordinal"===t||"time"===t)}function jc(t){return t instanceof WM}function Zc(t){for(var e=q(),n=0;n<(t||[]).length;n++){var r=t[n],i=I(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Kc(t){var e=VM(t);return e.dimNameMap||(e.dimNameMap=Zc(t.dimensionsDefine))}function $c(t){return t>30}function Qc(t,e){return Jc(t,e).dimensions}function Jc(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],r=I(n)?n:{name:n},i=new FM,o=r.name;null!=o&&null!=d.get(o)&&(i.name=i.displayName=o),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var s=l.length;return m[t]=s,i.storeDimIndex=t,l.push(i),i}return l[e]}function r(t,e,n){null!=pw.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function i(t){null==t.name&&(t.name=t.coordDim)}du(t)||(t=vu(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=q(),l=[],u=ep(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&$c(u),f=a===t.dimensionsDefine,d=f?Kc(t):Zc(a),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,u));for(var y=q(g),m=new cb(u),_=0;__;_++)n(_);y.each(function(t,e){var i=pi(t).slice();if(1===i.length&&!C(i[0])&&i[0]<0)return void y.set(e,!1);var o=y.set(e,[]);v(i,function(t,i){var a=C(t)?d.get(t):t;null!=a&&u>a&&(o[i]=a,r(n(a),e,i))})});var x=0;v(o,function(t){var e,i,o,a;if(C(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=h({},a),a.ordinalMeta=s,i=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var l=y.get(e);if(l!==!1){if(l=pi(l),!l.length)for(var p=0;p<(i&&i.length||1);p++){for(;u>x&&null!=n(x).coordDim;)x++;u>x&&l.push(x++)}v(l,function(t,s){var l=n(t);if(f&&null!=a.type&&(l.type=a.type),r(c(l,a),e,s),null==l.name&&i){var u=i[s];!I(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&c(l.otherDims,o)})}});var w=e.generateCoord,b=e.generateCoordCount,S=null!=b;b=w?b||1:0;var M=w||"value";if(p)v(l,function(t){i(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var T=0;u>T;T++){var k=n(T),D=k.coordDim;null==D&&(k.coordDim=np(M,s,S),k.coordDimIndex=0,(!w||0>=b)&&(k.isExtraCoord=!0),b--),i(k),null!=k.type||Pl(t,T)!==ww.Must&&(!k.isExtraCoord||null==k.otherDims.itemName&&null==k.otherDims.seriesName)||(k.type="ordinal")}return tp(l),new WM({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:p})}function tp(t){for(var e=q(),n=0;n0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function ep(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 np(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}function rp(t){var e=t.get("coordinateSystem"),n=new $M(e),r=QM[e];return r?(r(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function ip(t){return"category"===t.get("type")}function op(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;ap(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(v(r,function(t,e){C(t)&&(r[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\x00ecstackresult_"+t.id,c="__\x00ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,d=u.type,g=0;v(r,function(t){t.coordDim===f&&g++});var y={name:h,coordDim:f,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,d),m.storeDimIndex=o.ensureCalculationDimension(h,d)),i.appendCalculationDimension(y),i.appendCalculationDimension(m)):(r.push(y),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function ap(t){return!jc(t.schema)}function sp(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function lp(t,e){return sp(t,e)?t.getCalculationInfo("stackResultDimension"):e}function up(t,e){var n,r=t.get("coordinateSystem"),i=zw.get(r);return e&&e.coordSysDims&&(n=y(e.coordSysDims,function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=Yc(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function hp(t,e,n){var r,i;return n&&v(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)}),i||null==r||(t[r].otherDims.itemName=0),r}function cp(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=vu(t)):(r=i.getSource(),o=r.sourceFormat===fw);var a=rp(e),s=up(e,a),l=n.useEncodeDefaulter,u=T(l)?l:l?S(Al,s,e):null,h={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=Jc(r,h),p=hp(c.dimensions,n.createInvertedIndices,a),f=o?null:i.getSharedDataStore(c),d=op(e,{schema:c,store:f}),g=new KM(c,e);g.setCalculationInfo(d);var v=null!=p&&pp(r)?function(t,e,n,r){return r===p?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:f,null,v),g}function pp(t){if(t.sourceFormat===fw){var e=fp(t.data||[]);return!M(di(e))}}function fp(t){for(var e=0;ea&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=vp(a),l=i.niceTickExtent=[Gr(Math.ceil(t[0]/a)*a,s),Gr(Math.floor(t[1]/a)*a,s)];return mp(l,t),i}function vp(t){return Xr(t)+2}function yp(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function mp(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),yp(t,0,e),yp(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function _p(t,e){return t>=e[0]&&t<=e[1]}function xp(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function wp(t,e){return t*(e[1]-e[0])+e[0]}function bp(t){return M(t)?oT?new Float32Array(t):t:new aT(t)}function Sp(t){return t.get("stack")||sT+t.seriesIndex}function Mp(t){return t.dim+t.index}function Tp(t,e){var n=[];return e.eachSeriesByType(t,function(t){Lp(t)&&n.push(t)}),n}function Cp(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.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});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;a0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function kp(t){var e=Cp(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=Wr(t.get("barWidth"),r),d=Wr(t.get("barMaxWidth"),r),g=Wr(t.get("barMinWidth")||(Pp(t)?.5: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:Mp(o),stackId:Sp(t)})}),Dp(n)}function Dp(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=Wr(o,i),l=Wr(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 Ip(t,e,n){if(t&&e){var r=t[Mp(e)];return null!=r&&null!=n?r[Sp(n)]:r}}function Ap(t,e){var n=Tp(t,e),r=kp(n);v(n,function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=Sp(t),a=r[Mp(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})})}function Op(t){return{seriesType:t,plan:ah(),reset:function(t){if(Lp(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),h=sp(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),p=Rp(r,i),f=Pp(t),d=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=f&&bp(3*i),u=f&&s&&bp(3*i),m=f&&bp(i),_=n.master.getRect(),x=c?_.width:_.height,w=e.getStore(),b=0;null!=(r=t.next());){var S=w.get(h?g:o,r),M=w.get(a,r),T=p,C=void 0;h&&(C=+S-w.get(o,r));var k=void 0,D=void 0,I=void 0,A=void 0;if(c){var O=n.dataToPoint([S,M]);if(h){var L=n.dataToPoint([C,M]);T=L[0]}k=T,D=O[1]+y,I=O[0]-T,A=v,Math.abs(I)I?-1:1)*d)}else{var O=n.dataToPoint([M,S]);if(h){var L=n.dataToPoint([M,C]);T=L[1]}k=O[0]+y,D=T,I=v,A=O[1]-T,Math.abs(A)=A?-1:1)*d)}f?(l[b]=k,l[b+1]=D,l[b+2]=c?I:A,u&&(u[b]=c?_.x:k,u[b+1]=c?D:_.y,u[b+2]=x),m[r]=r):e.setItemLayout(r,{x:k,y:D,width:I,height:A}),b+=3}f&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}}function Lp(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Pp(t){return t.pipelineContext&&t.pipelineContext.large}function Rp(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function Ep(t,e,n,r){var i=Jr(e),o=Jr(n),a=function(t){return Js(i,t,r)===Js(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 Bp(t){return t/=Yx,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Np(t){var e=30*Yx;return t/=e,t>6?6:t>3?3:t>2?2:1}function zp(t){return t/=Xx,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Fp(t,e){return t/=e?Ux:Gx,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Vp(t){return ni(t,!0)}function Hp(t,e,n){var r=new Date(t);switch(qs(e)){case"year":case"month":r[ll(n)](0);case"day":r[ul(n)](1);case"hour":r[hl(n)](0);case"minute":r[cl(n)](0);case"second":r[pl(n)](0),r[fl(n)](0)}return r.getTime()}function Wp(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(!Ep(qs(t),r[0],r[1],n)){l&&(o=[{value:Hp(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u=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=0||(CT.push(t),T(t)&&(t={install:t}),t.install(kT)))}function af(t,e){return Math.abs(t-e)s;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,r+=(a+u)*h,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}function cf(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return v(r,function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=ff(i,r,n);break;case"Polygon":pf(i,r,n);break;case"MultiLineString":pf(i,r,n);break;case"MultiPolygon":v(i,function(t,e){return pf(t,r[e],n)})}}),e.UTF8Encoding=!1,e}function pf(t,e,n){for(var r=0;r>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 df(t,e){return t=cf(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=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new OT(o[0],o.slice(1)));break;case"MultiPolygon":v(r.coordinates,function(t){t[0]&&i.push(new OT(t[0],t.slice(1)))});break;case"LineString":i.push(new LT([r.coordinates]));break;case"MultiLineString":i.push(new LT(r.coordinates))}var a=new PT(n[e||"name"],i,n.cp);return a.properties=n,a})}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=Qp(e),i=bf(n,r);if(i)return i;var o,a;return T(r)?o=Df(t,r):(a="auto"===r?Mf(t):r,o=kf(t,a)),Sf(n,r,{labels:o,labelCategoryInterval:a})}function _f(t,e){var n=wf(t,"ticks"),r=Qp(e),i=bf(n,r);if(i)return i;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),T(r))o=Df(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=kf(t,a,!0);return Sf(n,r,{ticks:o,tickCategoryInterval:a})}function xf(t){var e=t.scale.getTicks(),n=Kp(t);return{labels:y(e,function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function wf(t,e){return FT(t)[e]||(FT(t)[e]=[])}function bf(t,e){for(var n=0;n40&&(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=xr(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=FT(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 kf(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=Kp(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=Jp(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 Df(t,e,n){var r=t.scale,i=Kp(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=Gr(t),e=Gr(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=aw.extend(t);return aw.registerClass(e),e}function Lf(t){var e=_b.extend(t);return _b.registerClass(e),e}function Pf(t){var e=mb.extend(t);return mb.registerClass(e),e}function Rf(t){var e=bb.extend(t);return bb.registerClass(e),e}function Ef(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 Bf(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)%WT<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=r;r=xo(i),i=xo(p)}else r=xo(r),i=xo(i);r>i&&(i+=WT);var f=Math.atan2(s,a);if(0>f&&(f+=WT),f>=r&&i>=f||f+WT>=r&&i>=f+WT)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 Nf(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 zf(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 Ff(t,e,n){var r=zf(e.x,e.y,e.width,e.height,t.x,t.y,XT);return n.set(XT[0],XT[1]),r}function Vf(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=f&&(s=r,l=i);var S=(c-v)*_/m+v;g=Bf(v,y,_,x,x+w,b,S,p,XT),o=Math.cos(x+w)*m+v,a=Math.sin(x+w)*_+y;break;case GT.R:s=o=h[f++],l=a=h[f++];var M=h[f++],T=h[f++];g=zf(s,l,M,T,c,p,XT);break;case GT.Z:g=Nf(o,a,s,l,c,p,XT,!0),o=s,a=l}u>g&&(u=g,n.set(XT[0],XT[1]))}return u}function Hf(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||UT,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,h=t.getComputedTransform(),c=h&&Ge([],h),p=e.get("length2")||0;u&&jT.copy(u);for(var f=0;fv&&(l=v,qT.transform(h),jT.transform(h),jT.toArray(o[0]),qT.toArray(o[1]),YT.toArray(o[2]))}Wf(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function Wf(t,e){if(180>=e&&e>0){e=e/180*Math.PI,YT.fromArray(t[0]),qT.fromArray(t[1]),jT.fromArray(t[2]),Dg.sub(ZT,YT,qT),Dg.sub(KT,jT,qT);var n=ZT.len(),r=KT.len();if(!(.001>n||.001>r)){ZT.scale(1/n),KT.scale(1/r);var i=ZT.dot(KT),o=Math.cos(e);if(i>o){var a=Nf(qT.x,qT.y,jT.x,jT.y,YT.x,YT.y,$T,!1);QT.fromArray($T),QT.scaleAndAdd(KT,a/Math.tan(Math.PI-e));var s=jT.x!==qT.x?(QT.x-qT.x)/(jT.x-qT.x):(QT.y-qT.y)/(jT.y-qT.y);if(isNaN(s))return;0>s?Dg.copy(QT,qT):s>1&&Dg.copy(QT,jT),QT.toArray(t[1])}}}}function Gf(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 Uf(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=cg(r[0],r[1]),o=cg(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=ve([],r[1],r[0],a/i),l=ve([],r[1],r[2],a/o),u=ve([],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;ht){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 Zf(t,e,n,r){return jf(t,"x","width",e,n,r)}function Kf(t,e,n,r){return jf(t,"y","height",e,n,r)}function $f(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 Ng(0,0,0,0),i=0;i10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/p));var f=void 0;C(i)?f=dC[i]:T(i)&&(f=i),f&&t.setData(r.downSample(r.mapDimension(l.dim),1/p,f,gC))}}}}}function ld(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new Nm({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),d=p.inverse;f?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=T(i)?function(t){i(t,c)}:null;as(c,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return c}function ud(t,e,n){var r=t.getArea(),i=Gr(r.r0,1),o=Gr(r.r,1),a=new F_({shape:{cx:Gr(t.cx,1),cy:Gr(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=r.startAngle:a.shape.r=i,as(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function hd(t,e,n,r,i){return t?"polar"===t.type?ud(t,e,n):"cartesian2d"===t.type?ld(t,e,n,r,i):null:null}function cd(t,e){return t.type===e}function pd(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Du(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}function dd(t,e){e=e||{};var n=e.isRoundCap;return function(e,r,i){var o=r.position;if(!o||o instanceof Array)return Tr(e,r,i);var a=t(o),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,h=l.cy,c=l.r,p=l.r0,f=(c+p)/2,d=l.startAngle,g=l.endAngle,v=(d+g)/2,y=n?Math.abs(c-p)/2:0,m=Math.cos,_=Math.sin,x=u+c*m(d),w=h+c*_(d),b="left",S="top";switch(a){case"startArc":x=u+(p-s)*m(v),w=h+(p-s)*_(v),b="center",S="top";break;case"insideStartArc":x=u+(p+s)*m(v),w=h+(p+s)*_(v),b="center",S="bottom";break;case"startAngle":x=u+f*m(d)+vd(d,s+y,!1),w=h+f*_(d)+yd(d,s+y,!1),b="right",S="middle";break;case"insideStartAngle":x=u+f*m(d)+vd(d,-s+y,!1),w=h+f*_(d)+yd(d,-s+y,!1),b="left",S="middle";break;case"middle":x=u+f*m(v),w=h+f*_(v),b="center",S="middle";break;case"endArc":x=u+(c+s)*m(v),w=h+(c+s)*_(v),b="center",S="bottom";break;case"insideEndArc":x=u+(c-s)*m(v),w=h+(c-s)*_(v),b="center",S="top";break;case"endAngle":x=u+f*m(g)+vd(g,s+y,!0),w=h+f*_(g)+yd(g,s+y,!0),b="left",S="middle";break;case"insideEndAngle":x=u+f*m(g)+vd(g,-s+y,!0),w=h+f*_(g)+yd(g,-s+y,!0),b="right",S="middle";break;default:return Tr(e,r,i)}return e=e||{},e.x=x,e.y=w,e.align=b,e.verticalAlign=S,e}}function gd(t,e,n,r){if(D(r))return void t.setTextConfig({rotation:r});if(M(e))return void t.setTextConfig({rotation:0});var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-i;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}function vd(t,e,n){return e*Math.sin(t)*(n?-1:1)}function yd(t,e,n){return e*Math.cos(t)*(n?1:-1)}function md(t,e){var n=t.getArea&&t.getArea();if(cd(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}function _d(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();return n&&"category"===r.type&&"cartesian2d"===e.type?{baseAxis:r,otherAxis:e.getOtherAxis(r)}:void 0}function xd(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?os:as)(n,{shape:l},e,i,null);var h=e?t.baseAxis.model:null;(a?os:as)(n,{shape:u},h,i)}function wd(t,e){for(var n=0;n=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",c=Is(r);Ds(t,c,{labelFetcher:o,labelDataIndex:n,defaultText:pd(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var f=r.get(["label","position"]);t.textConfig.inside="middle"===f?!0:null,gd(t,"outside"===f?h:f,Sd(a),r.get(["label","rotate"]))}Bs(p,c,o.getRawValue(n),function(t){return fd(e,t)});var d=r.getModel(["emphasis"]);Aa(t,d.get("focus"),d.get("blurScope"),d.get("disabled")),La(t,r),bd(i)&&(t.style.fill="none",t.style.stroke="none",v(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}function Td(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}function Cd(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var h=new AC({shape:{points:u},incremental:!!r,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var c=new AC({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(i.getVisual("style")),Xm(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",OC),c.on("mousemove",OC)),n&&n.push(c)}function kd(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;c>h;h++){var p=3*h;if(l[r]=u,l[i]=o[p+2],s[r]=o[p+r],s[i]=o[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}function Dd(t,e,n){if(cd(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var i=n.getArea(),o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function Id(t,e,n){var r="polar"===t.type?F_:Nm;return new r({shape:Dd(e,n,t),silent:!0,z2:0})}function Ad(t){t.registerChartView(bC),t.registerSeriesModel(yC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,S(Ap,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Op("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,sd("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})}var Od=function(t,e){return(Od=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)},Ld=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Pd=function(){function t(){this.browser=new Ld,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}return t}(),Rd=new Pd;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Rd.wxa=!0,Rd.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Rd.worker=!0:"undefined"==typeof navigator?(Rd.node=!0,Rd.svgSupported=!0):n(navigator.userAgent,Rd);var Ed=12,Bd="sans-serif",Nd=Ed+"px "+Bd,zd=20,Fd=100,Vd="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N",Hd=r(Vd),Wd={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var i=Wd.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Nd),t.measureText(n);n=n||"",r=r||Nd;var o=/(\d+)px/.exec(r),a=o&&+o[1]||Ed,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;li;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;ns;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){for(var e=[],n=1;nl;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),yg=Math.log(2),mg="___zrEVENTSAVED",_g=/([&<>"'])/g,xg={"&":"&","<":"<",">":">",'"':""","'":"'"},wg=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bg=[],Sg=Rd.browser.firefox&&+Rd.browser.version.split(".")[0]<39,Mg=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Tg=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=ke(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 Cg)if(Cg.hasOwnProperty(e)){var n=Cg[e](this._track,t);if(n)return n}},t}(),Cg={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=Re(r)/Re(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Ee(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},kg=(Object.freeze||Object)({create:Be,identity:Ne,copy:ze,mul:Fe,translate:Ve,rotate:He,scale:We,invert:Ge,clone:Ue}),Dg=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}(),Ig=Math.min,Ag=Math.max,Og=new Dg,Lg=new Dg,Pg=new Dg,Rg=new Dg,Eg=new Dg,Bg=new Dg,Ng=function(){function t(t,e,n,r){0>n&&(t+=n,n=-n),0>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=Ig(t.x,this.x),n=Ig(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Ag(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?Ag(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=Be();return Ve(i,i,[-e.x,-e.y]),We(i,i,[n,r]),Ve(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?Dg.set(Bg,-g,0):Dg.set(Bg,v,0)):f>_&&(f=_,v>g?Dg.set(Eg,g,0):Dg.set(Eg,-v,0)),h>s||a>c?x>d&&(d=x,m>y?Dg.set(Bg,0,-y):Dg.set(Bg,0,m)):f>_&&(f=_,m>y?Dg.set(Eg,0,y):Dg.set(Eg,0,-m))}return n&&Dg.copy(n,p?Eg:Bg),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))}Og.x=Pg.x=n.x,Og.y=Rg.y=n.y,Lg.x=Rg.x=n.x+n.width,Lg.y=Pg.y=n.y+n.height,Og.transform(r),Rg.transform(r),Lg.transform(r),Pg.transform(r),e.x=Ig(Og.x,Lg.x,Pg.x,Rg.x),e.y=Ig(Og.y,Lg.y,Pg.y,Rg.y);var l=Ag(Og.x,Lg.x,Pg.x,Rg.x),u=Ag(Og.y,Lg.y,Pg.y,Rg.y);e.width=l-e.x,e.height=u-e.y},t}(),zg="silent",Fg=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}(vg),Vg=function(){function t(t,e){this.x=t,this.y=e}return t}(),Hg=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wg=new Ng(0,0,0,0),Gg=function(t){function n(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new Vg(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Fg,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new gg(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(v(Hg,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=Ze(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 Vg(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 Vg(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=Xe(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){var r=this.storage.getDisplayList(),i=new Vg(t,e);if(je(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Ng(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var h=r[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Wg.copy(h.getBoundingRect()),h.transform&&Wg.applyTransform(h.transform),Wg.intersect(l)&&o.push(h))}if(o.length)for(var c=4,p=Math.PI/12,f=2*Math.PI,d=0;s>d;d+=c)for(var g=0;f>g;g+=p){var v=t+d*Math.cos(g),y=e+d*Math.sin(g);if(je(o,i,v,y,n),i.target)return i}}return i},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Tg);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 Vg;o.target=r.target,this.dispatchToElement(o,i,r.event)}},n}(vg);v(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Gg.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Ze(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||cg(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Ug,Xg=32,Yg=7,qg=1,jg=2,Zg=4,Kg=!1,$g=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=an}return t.prototype.traverse=function(t,e){for(var n=0;nr;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,rn(n,an)},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;s0&&(u.__clipPaths=[]),isNaN(u.z)&&(on(),u.z=0),isNaN(u.z2)&&(on(),u.z2=0),isNaN(u.zlevel)&&(on(),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}();Ug=Rd.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Qg=Ug,Jg={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-Jg.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*Jg.bounceIn(2*t):.5*Jg.bounceOut(2*t-1)+.5}},tv=Math.pow,ev=Math.sqrt,nv=1e-8,rv=1e-4,iv=ev(3),ov=1/3,av=J(),sv=J(),lv=J(),uv=/cubic-bezier\(([0-9,\.e ]+)\)/,hv=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Q,this.ondestroy=t.ondestroy||Q,this.onrestart=t.onrestart||Q,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;0>i&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=T(t)?t:Jg[t]||Sn(t)},t}(),cv=function(){function t(t){this.value=t}return t}(),pv=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new cv(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}(),fv=function(){function t(t){this._list=new pv,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 cv(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}(),dv={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]},gv=new fv(20),vv=null,yv=Fn,mv=Vn,_v=(Object.freeze||Object)({parse:Rn,lift:Nn,toHex:zn,fastLerp:Fn,fastMapToColor:yv,lerp:Vn,mapToColor:mv,modifyHSL:Hn,modifyAlpha:Wn,stringify:Gn,lum:Un,random:Xn}),xv=(function(){return Rd.hasGlobalWindow&&T(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(){return null}}(),Array.prototype.slice),wv=0,bv=1,Sv=2,Mv=3,Tv=4,Cv=5,kv=6,Dv=[0,0,0,0],Iv=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=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.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=kv,s=e;if(g(e)){var l=rr(e);a=l,(1===l&&!D(e[0])||2===l&&!D(e[0][0]))&&(o=!0)}else if(D(e)&&!B(e))a=wv;else if(C(e))if(isNaN(+e)){var u=Rn(e);u&&(s=u,a=Mv)}else a=wv;else if(P(e)){var c=h({},s);c.colorStops=y(e.colorStops,function(t){return{offset:t.offset,color:Rn(t.color)}}),Yn(e)?a=Tv:qn(e)&&(a=Cv),s=c}0===i?this.valType=a:(a!==this.valType||a===kv)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=T(n)?n:Jg[n]||Sn(n)),r.push(p),p},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=or(r),l=ir(r),u=0;i>u;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==i-1?tr(c,p,r):l&&Jn(c.colorStops,p.colorStops))}if(!a&&r!==Cv&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;for(var f=n[0].value,u=0;i>u;u++)r===wv?n[u].additiveValue=n[u].value-f:r===Mv?n[u].additiveValue=$n([],n[u].value,f,-1):or(r)&&(n[u].additiveValue=r===bv?$n([],n[u].value,f,-1):Qn([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=s===Mv,p=this._lastFr,f=Math.min;if(1===u)r=i=l[0];else{if(0>e)n=0;else if(e=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=p;u>n&&!(l[n].percent>e);n++);n=f(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:f((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var m=o?this._additiveValue:c?Dv:t[h];if(!or(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>v?r.rawValue:i.rawValue;else if(or(s))s===bv?Zn(m,r[a],i[a],v):Kn(m,r[a],i[a],v);else if(ir(s)){var _=r[a],x=i[a],w=s===Tv;t[h]={type:w?"linear":"radial",x:jn(_.x,x.x,v),y:jn(_.y,x.y,v),colorStops:y(_.colorStops,function(t,e){var n=x.colorStops[e];return{offset:jn(t.offset,n.offset,v),color:nr(Zn([],t.color,n.color,v))}}),global:x.global},w?(t[h].x2=jn(_.x2,x.x2,v),t[h].y2=jn(_.y2,x.y2,v)):t[h].r=jn(_.r,x.r,v)}else if(c)Zn(m,r[a],i[a],v),o||(t[h]=nr(m));else{var b=jn(r[a],i[a],v);o?this._additiveValue=b:t[h]=b}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===wv?t[n]=t[n]+r:e===Mv?(Rn(t[n],Dv),$n(Dv,Dv,r,1),t[n]=nr(Dv)):e===bv?$n(t[n],t[n],r,1):e===Sv&&Qn(t[n],t[n],r,1)},t}(),Av=function(){function t(t,e,n,r){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?void a("Can' use additive animation on looped animation."):(this._additiveAnimators=r,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,w(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,er(l),r),this._trackKeys.push(a)}s.addKeyframe(t,er(e[a]),r)}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.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;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._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Ov=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}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=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._head=n,n?n.prev=e:this._tail=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=ar()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(Qg(t),!e._paused&&e.update())}var e=this;this._running=!0,Qg(t)},n.prototype.start=function(){this._running||(this._time=ar(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=ar(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=ar()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new Av(t,e.loop);return this.addAnimator(n),n},n}(vg),Lv=300,Pv=Rd.domSupported,Rv=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}}(),Ev={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Bv=!1,Nv=function(){function t(t,e){this.stopPropagation=Q,this.stopImmediatePropagation=Q,this.preventDefault=Q,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),zv={mousedown:function(t){t=Ae(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ae(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=Ae(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ae(this.dom,t);var e=t.toElement||t.relatedTarget;cr(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Bv=!0,t=Ae(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Bv||(t=Ae(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ae(this.dom,t),ur(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),zv.mousemove.call(this,t),zv.mousedown.call(this,t)},touchmove:function(t){t=Ae(this.dom,t),ur(t),this.handler.processGesture(t,"change"),zv.mousemove.call(this,t)},touchend:function(t){t=Ae(this.dom,t),ur(t),this.handler.processGesture(t,"end"),zv.mouseup.call(this,t),+new Date-+this.__lastTouchMoment1e-10&&Jv(t[3]-1)>1e-10?Math.sqrt(Jv(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){yr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var f=n+a,d=r+s;e[4]=-f*i-c*d*o,e[5]=-d*o-p*f*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=p*i,e[2]=c*o,l&&He(e,e,l),e[4]+=n+u,e[5]+=r+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),ey=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],ny={},ry="__zr_normal__",iy=ey.concat(["ignore"]),oy=m(ey,function(t,e){return t[e]=!0,t},{ignore:!1}),ay={},sy=new Ng(0,0,0,0),ly=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.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=sy;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ay,n,u):Tr(ay,n,u),i.x=ay.x,i.y=ay.y,o=ay.align,a=ay.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=Mr(h[0],u.width),p=Mr(h[1],u.height)),l=!0,i.originX=-i.x+c+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)}}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)),e.__dirty|=qg,s&&e.dirtyStyle(!0)}},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()?Yv:Xv},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&Rn(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,Gn(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;i0},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(ry,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===ry,o=this.hasState();if(o||!i){var s=this.currentStates,l=this.stateTransition;if(!(p(s,t)>=0)||!e&&1!==s.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i)return void a("State "+t+" not exists.");i||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||r);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,f=this._textGuide;return c&&c.useState(t,e,n,h),f&&f.useState(t,e,n,h),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qg),u}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;o>s;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var h=r[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qg)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=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=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){Cr(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Cr(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Cr(this,e,n,r),o=0;o=0&&(n.splice(r,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=p(this._children,t);return n>=0&&this.replaceAt(e,n),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;n0&&(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.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.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;e0&&(this._ux=pm(n/Gv/t)||0,this._uy=pm(n/Gv/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._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(em.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=pm(t-this._xi),r=pm(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(em.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(em.C,t,e,n,r,i,o),this._ctx&&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._drawPendingPt(),this.addData(em.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),vm[0]=r,vm[1]=i,vo(vm,o),r=vm[0],i=vm[1];var a=i-r;return this.addData(em.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=hm(i)*n+t,this._yi=cm(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(em.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(em.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&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.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!gm||(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();gm&&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;at.length&&(this._expandData(),t=this.data);for(var e=0;e0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){im[0]=im[1]=am[0]=am[1]=Number.MAX_VALUE,om[0]=om[1]=sm[0]=sm[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tc;){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 em.M:i=a=t[c++],o=s=t[c++];break;case em.L:var g=t[c++],v=t[c++],y=g-i,m=v-o;(pm(y)>n||pm(m)>r||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=g,o=v);break;case em.C:var _=t[c++],x=t[c++],g=t[c++],v=t[c++],w=t[c++],b=t[c++];d=gn(i,o,_,x,g,v,w,b,10),i=w,o=b;break;case em.Q:var _=t[c++],x=t[c++],g=t[c++],v=t[c++];d=bn(i,o,_,x,g,v,10),i=g,o=v;break;case em.A:var S=t[c++],M=t[c++],T=t[c++],C=t[c++],k=t[c++],D=t[c++],I=D+k;c+=1;{!t[c++]}f&&(a=hm(k)*T+S,s=cm(k)*C+M),d=um(T,C)*lm(dm,Math.abs(D)),i=hm(I)*T+S,o=cm(I)*C+M;break;case em.R:a=i=t[c++],s=o=t[c++];var A=t[c++],O=t[c++];d=2*A+2*O;break;case em.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,p,f=this.data,d=this._ux,g=this._uy,v=this._len,y=1>e,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var w=0;v>w;){var b=f[w++],S=1===w;switch(S&&(i=f[w],o=f[w+1],n=i,r=o),b!==em.L&&x>0&&(t.lineTo(c,p),x=0),b){case em.M:n=i=f[w++],r=o=f[w++],t.moveTo(i,o);break;case em.L:a=f[w++],s=f[w++];var M=pm(a-i),T=pm(s-o);if(M>d||T>g){if(y){var C=l[_++];if(m+C>h){var k=(h-m)/C;t.lineTo(i*(1-k)+a*k,o*(1-k)+s*k);break t}m+=C}t.lineTo(a,s),i=a,o=s,x=0}else{var D=M*M+T*T;D>x&&(c=a,p=s,x=D)}break;case em.C:var I=f[w++],A=f[w++],O=f[w++],L=f[w++],P=f[w++],R=f[w++];if(y){var C=l[_++];if(m+C>h){var k=(h-m)/C;fn(i,I,O,P,k,nm),fn(o,A,L,R,k,rm),t.bezierCurveTo(nm[1],rm[1],nm[2],rm[2],nm[3],rm[3]);break t}m+=C}t.bezierCurveTo(I,A,O,L,P,R),i=P,o=R;break;case em.Q:var I=f[w++],A=f[w++],O=f[w++],L=f[w++];if(y){var C=l[_++];if(m+C>h){var k=(h-m)/C;xn(i,I,O,k,nm),xn(o,A,L,k,rm),t.quadraticCurveTo(nm[1],rm[1],nm[2],rm[2]);break t}m+=C}t.quadraticCurveTo(I,A,O,L),i=O,o=L;break;case em.A:var E=f[w++],B=f[w++],N=f[w++],z=f[w++],F=f[w++],V=f[w++],H=f[w++],W=!f[w++],G=N>z?N:z,U=pm(N-z)>.001,X=F+V,Y=!1;if(y){var C=l[_++];m+C>h&&(X=F+V*(h-m)/C,Y=!0),m+=C}if(U&&t.ellipse?t.ellipse(E,B,N,z,H,F,X,W):t.arc(E,B,G,F,X,W),Y)break t;S&&(n=hm(F)*N+E,r=cm(F)*z+B),i=hm(X)*N+E,o=cm(X)*z+B;break;case em.R:n=i=f[w],r=o=f[w+1],a=f[w++],s=f[w++];var q=f[w++],j=f[w++];if(y){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+lm(Z,q),s),Z-=q,Z>0&&t.lineTo(a+q,s+lm(Z,j)),Z-=j,Z>0&&t.lineTo(a+um(q-Z,0),s+j),Z-=q,Z>0&&t.lineTo(a,s+um(j-Z,0));break t}m+=C}t.rect(a,s,q,j);break;case em.Z:if(y){var C=l[_++];if(m+C>h){var k=(h-m)/C;t.lineTo(i*(1-k)+n*k,o*(1-k)+r*k);break t}m+=C}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=em,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),mm=2*Math.PI,_m=2*Math.PI,xm=ym.CMD,wm=2*Math.PI,bm=1e-4,Sm=[-1,-1,-1],Mm=[-1,-1],Tm=c({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},zy),Cm={style:c({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Fy.style)},km=ey.concat(["invisible","culling","z","z2","zlevel","parent"]),Dm=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.5?Xv:e>.2?qv:Yv}if(t)return Yv}return Xv},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(C(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Un(t,0)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,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&Zg)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}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)),Ao(o,a/s,t,e)))return!0}if(this.hasFill())return Io(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=Zg,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&Zg)},n.prototype.createStyle=function(t){return Z(Tm,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;p0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createStyle=function(t){return Z(Im,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=xr(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}(Wy);Am.prototype.type="tspan";var Om=c({x:0,y:0},zy),Lm={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Fy.style)},Pm=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return Z(Om,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=Oo(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 Lm},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ng(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(Wy);Pm.prototype.type="image";var Rm=Math.round,Em=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Bm={},Nm=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Em},n.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Ro(Bm,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?Lo(t,e):t.rect(n,r,i,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(Dm);Nm.prototype.type="rect";var zm={fill:"#000"},Fm=2,Vm={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},Fy.style)},Hm=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=zm,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),k=i.calculatedLineHeight,D=0;DM&&(D=x[M],!D.align||"left"===D.align);)this._placeToken(D,t,b,g,T,"left",y),S-=D.width,T+=D.width,M++;for(;k>=0&&(D=x[k],"right"===D.align);)this._placeToken(D,t,b,g,C,"right",y),S-=D.width,C-=D.width,k--;for(T+=(r-(T-d)-(v-C)-S)/2;k>=M;)D=x[M],this._placeToken(D,t,b,g,T+D.width/2,"center",y),T+=D.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&&Xo(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=Go(i,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var f=this._getOrCreateChild(Am),d=f.createStyle();f.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=Wo("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=Ho("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||g.autoStroke&&!v?null:(y=Fm,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||Nd,d.opacity=F(s.opacity,e.opacity,1),No(d,s),_&&(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 Ng(wr(d.x,w,d.textAlign),br(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=l&&l.image,p=l&&!c,f=t.borderRadius,d=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(Nm),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=f,a.dirtyShape()}if(p){var v=a.style;v.fill=l||null,v.fillOpacity=z(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(Pm),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&h){var v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=z(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=F(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";return zo(t)&&(e=[t.fontStyle,t.fontWeight,Bo(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&G(e)||t.textFont||t.font},n}(Wy),Wm={left:!0,right:1,center:1},Gm={top:1,bottom:1,middle:1},Um=["fontStyle","fontWeight","fontSize","fontFamily"],Xm=Oi(),Ym=function(t,e,n,r){if(r){var i=Xm(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse(function(r){var i=Xm(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e})}},qm=1,jm={},Zm=Oi(),Km=Oi(),$m=0,Qm=1,Jm=2,t_=["emphasis","blur","select"],e_=["normal","emphasis","blur","select"],n_=10,r_=9,i_="highlight",o_="downplay",a_="select",s_="unselect",l_="toggleSelect",u_=new fv(100),h_=["emphasis","blur","select"],c_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},p_=ym.CMD,f_=[[],[],[]],d_=Math.sqrt,g_=Math.atan2,v_=Math.sqrt,y_=Math.sin,m_=Math.cos,__=Math.PI,x_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,b_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(Dm),S_=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),M_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new S_},n.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(Dm);M_.prototype.type="circle";var T_=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),C_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new T_},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}(Dm);C_.prototype.type="ellipse";var k_=Math.PI,D_=2*k_,I_=Math.sin,A_=Math.cos,O_=Math.acos,L_=Math.atan2,P_=Math.abs,R_=Math.sqrt,E_=Math.max,B_=Math.min,N_=1e-4,z_=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}return t}(),F_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new z_},n.prototype.buildPath=function(t,e){Ja(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(Dm);F_.prototype.type="sector";var V_=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),H_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new V_},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}(Dm);H_.prototype.type="ring";var W_=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),G_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new W_},n.prototype.buildPath=function(t,e){es(t,e,!0)},n}(Dm);G_.prototype.type="polygon";var U_=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),X_=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 U_},n.prototype.buildPath=function(t,e){es(t,e,!1)},n}(Dm);X_.prototype.type="polyline";var Y_={},q_=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),j_=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 q_},n.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Po(Y_,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}(Dm);j_.prototype.type="line";var Z_=[],K_=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}(),$_=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 K_},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&&(xn(n,a,i,h,Z_),a=Z_[1],i=Z_[2],xn(r,s,o,h,Z_),s=Z_[1],o=Z_[2]),t.quadraticCurveTo(a,s,i,o)):(1>h&&(fn(n,a,l,i,h,Z_),a=Z_[1],l=Z_[2],i=Z_[3],fn(r,s,u,o,h,Z_),s=Z_[1],u=Z_[2],o=Z_[3]),t.bezierCurveTo(a,s,l,u,i,o)))},n.prototype.pointAt=function(t){return ns(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=ns(this.shape,t,!0);return pe(e,e)},n}(Dm);$_.prototype.type="bezier-curve";var Q_=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}(),J_=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 Q_},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}(Dm);J_.prototype.type="arc";var tx=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;nn;n++)this._corners[n]=new Dg;for(var n=0;2>n;n++)this._axes[n]=new Dg;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);Dg.sub(r[0],n[1],n[0]),Dg.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 ax.set(1/0,1/0),sx.set(0,0),!this._intersectCheckOneSide(this,t,ax,sx,r,1)&&(n=!1,r)?n:!this._intersectCheckOneSide(t,this,ax,sx,r,-1)&&(n=!1,r)?n:(r||Dg.copy(e,n?ax:sx),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,ix),this._getProjMinMaxOnAxis(s,e._corners,ox),ix[1]ox[1]){if(a=!1,i)return a;var u=Math.abs(ox[0]-ix[1]),h=Math.abs(ix[0]-ox[1]);Math.min(u,h)>r.len()&&(h>u?Dg.scale(r,l,-u*o):Dg.scale(r,l,h*o))}else if(n){var u=Math.abs(ox[0]-ix[1]),h=Math.abs(ix[0]-ox[1]);Math.min(u,h)u?Dg.scale(n,l,u*o):Dg.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-1?Nx:Fx}():Fx;Ws(zx,Ex),Ws(Nx,Bx);var Gx=1e3,Ux=60*Gx,Xx=60*Ux,Yx=24*Xx,qx=365*Yx,jx={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}"},Zx="{yyyy}-{MM}-{dd}",Kx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zx,hour:Zx+" "+jx.hour,minute:Zx+" "+jx.minute,second:Zx+" "+jx.second,millisecond:jx.none},$x=["year","month","day","hour","minute","second","millisecond"],Qx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Jx=H,tw=["a","b","c","d","e","f","g"],ew=function(t,e){return"{"+t+(null==e?"":e)+"}"},nw=v,rw=["left","right","top","bottom","width","height"],iw=[["width","left","right"],["height","top","bottom"]],ow=(S(bl,"vertical"),S(bl,"horizontal"),Oi()),aw=function(t){function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=zs("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=Ml(this),r=n?Cl(t):{},i=e.getTheme();l(t,i.get(this.mainType)),l(t,this.getDefaultOption()),n&&Tl(t,r,n)},n.prototype.mergeOption=function(t){l(this.option,t,!0);var e=Ml(this);e&&Tl(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!Vi(t))return t.defaultOption;var e=ow(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 Ri(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.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(Px);Gi(aw,Px),qi(aw),Fs(aw),Vs(aw,Dl);var sw="";"undefined"!=typeof navigator&&(sw=navigator.platform||"");var lw,uw,hw="rgba(0, 0, 0, 0.2)",cw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:hw,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:hw,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:hw,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:hw,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:hw,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:hw,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sw.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},pw=q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),fw="original",dw="arrayRows",gw="objectRows",vw="keyedColumns",yw="typedArray",mw="unknown",_w="column",xw="row",ww={Must:1,Might:2,Not:3},bw=Oi(),Sw=q(),Mw=Oi(),Tw=(Oi(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=pi(this.get("color",!0)),i=this.get("colorLayer",!0);return Nl(this,Mw,r,i,t,e,n)},t.prototype.clearColorPalette=function(){zl(this,Mw)},t}()),Cw="\x00_ec_inner",kw=1,Dw=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 Px(r),this._locale=new Px(i),this._optionManager=o},n.prototype.setOption=function(t,e,n){var r=Gl(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},n.prototype.resetOption=function(t,e){return this._resetOption(t,Gl(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)):uw(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=El(this,e,pi(t[e])),a=i.get(e),s=a?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",l=vi(a,n,s);Di(l,e,aw),r[e]=null,i.set(e,null),o.set(e,0);var u,p=[],f=[],d=0;v(l,function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=aw.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}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?(p.push(r.option),f.push(r),d++):(p.push(void 0),f.push(void 0))},this),r[e]=p,i.set(e,f),o.set(e,d),"series"===e&&lw(this)}var r=this.option,i=this._componentsMap,o=this._componentsCount,a=[],u=q(),c=e&&e.replaceMergeMainTypeMap;Il(this),v(t,function(t,e){null!=t&&(aw.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){aw.hasClass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),aw.topologicalTravel(a,aw.getAllClassMainTypes(),n,this),this._seriesIndices||lw(this)},n.prototype.getOption=function(){var t=s(this.option);return v(t,function(e,n){if(aw.hasClass(n)){for(var r=pi(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!ki(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t[Cw],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},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;ia;a++)Xl(n[a].query,t,e)&&i.push(a);return!i.length&&r&&(i=[-1]),i.length&&!ql(i,this._currentMediaIndices)&&(o=y(i,function(t){return s(-1===t?r.option:n[t].option)})),this._currentMediaIndices=i,o},t}(),Hw=v,Ww=I,Gw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Uw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Xw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],qw=function(){function t(t){this.data=t.data||(t.sourceFormat===vw?{}:[]),this.sourceFormat=t.sourceFormat||mw,this.seriesLayoutBy=t.seriesLayoutBy||_w,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;no;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[dw+"_"+_w]={pure:!0,appendData:t},e[dw+"_"+xw]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[gw]={pure:!0,appendData:t},e[vw]={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[fw]={appendData:t},e[yw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Lw=e}(),t}(),Zw=function(t,e,n,r){return t[r]},Kw=(Iw={},Iw[dw+"_"+_w]=function(t,e,n,r){return t[r+e]},Iw[dw+"_"+xw]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return Du(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),rb=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;gr?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}(),ob=(q({number:function(t){return parseFloat(t)},time:function(t){return+Jr(t)},trim:function(t){return C(t)?G(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}}),ab=(function(){function t(t,e){if(!D(e)){var n="";hi(n)}this._opFn=ob[t],this._rvalFloat=oi(e)}return t.prototype.evaluate=function(t){return D(t)?this._opFn(t,this._rvalFloat):this._opFn(oi(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=D(t)?t:oi(t),r=D(e)?e:oi(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=C(t),s=C(e);a&&(n=s?t:0),s&&(r=a?e:0)}return r>n?this._resultLT:n>r?-this._resultLT:0},t}(),function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=oi(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=oi(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 Au(t,e)},t}()),sb=q(),lb="undefined",ub=typeof Uint32Array===lb?Array:Uint32Array,hb=typeof Uint16Array===lb?Array:Uint16Array,cb=typeof Int32Array===lb?Array:Int32Array,pb=typeof Float64Array===lb?Array:Float64Array,fb={"float":pb,"int":cb,ordinal:Array,number:Array,time:pb},db=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=Rw[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];Su(r);this._dimensions=y(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new fb[e||"float"](this._rawCount),this._rawExtent[i]=Hu(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=Hu());for(var s=i[t],l=o;a>l;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),r>n&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;i>l;l++){var u=r[l];Gu(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,f=0;i>f;f++){var u=r[f],d=Rw.arrayRows.call(this,t[p]||h,u.property,p,f);n[f][c]=d;var g=o[f];dg[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=y(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=Hu()),Gu(i,u,h.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var c=[],p=t;e>p;p++){c=r.getItem(p,c);for(var f=0;a>f;f++){var d=i[f],g=this._dimValueGetter(c,l[f],p,f);d[p]=g;var v=s[f];gv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&ei;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&er;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.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=r;){var o=(r+i)/2|0;if(e[o]t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,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.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=Vu(this._rawCount);t=new n(this.count());for(var i=0;ic;c++){var p=void 0,f=n.getRawIndex(c);if(0===s)p=e(c);else if(1===s){var d=h[u][f];p=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][f];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=f)}return r>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=w(t),i=r.length;if(!i)return this;var o=e.count(),a=Vu(e._rawCount),s=new a(o),l=0,u=r[0],h=t[u][0],c=t[u][1],p=e._chunks,f=!1;if(!e._indices){var d=0;if(1===i){for(var g=p[r[0]],v=0;n>v;v++){var y=g[v];(y>=h&&c>=y||isNaN(y))&&(s[l++]=d),d++}f=!0}else if(2===i){for(var g=p[r[0]],m=p[r[1]],_=t[r[1]][0],x=t[r[1]][1],v=0;n>v;v++){var y=g[v],b=m[v];(y>=h&&c>=y||isNaN(y))&&(b>=_&&x>=b||isNaN(b))&&(s[l++]=d),d++}f=!0}}if(!f)if(1===i)for(var v=0;o>v;v++){var S=e.getRawIndex(v),y=p[r[0]][S];(y>=h&&c>=y||isNaN(y))&&(s[l++]=S)}else for(var v=0;o>v;v++){for(var M=!0,S=e.getRawIndex(v),T=0;i>T;T++){var C=r[T],y=p[C][S];(yt[C][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(v))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;uh;h++){for(var c=t.getRawIndex(h),p=0;o>p;p++)s[p]=r[e[p]][c];s[o]=h;var f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(i[0]=f,f=i);for(var u=0;uv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Vu(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var f=1;l-1>f;f+=h){for(var d=Math.min(f+h,l-1),g=Math.min(f+2*h,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+h,l),S=f-1,M=s[c];n=-1,i=w;for(var T=-1,C=0,m=w;b>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)?(C++,0>T&&(T=_)):(r=Math.abs((S-v)*(x-M)-(S-m)*(y-M)),r>n&&(n=r,i=_))}C>0&&b-w>C&&(p[u++]=Math.min(T,i),i=Math.max(T,i)),p[u++]=i,c=i}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=i._rawExtent[t]=Hu(),c=new(Vu(this._rawCount))(Math.ceil(u/s)),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,vh[1]&&(h[1]=v),c[p++]=y}return i._count=p,i._indices=c,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();o>i;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];n>s;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Hu();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.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;ir;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Au(t[r],this._dimensions[r])}Rw={arrayRows:t,objectRows:function(t,e,n,r){return Au(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Au(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),gb=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},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(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Xu(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)?yw:fw,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=z(h.seriesLayoutBy,c.seriesLayoutBy)||null,f=z(h.sourceHeader,c.sourceHeader),d=z(h.dimensions,c.dimensions),g=p!==c.seriesLayoutBy||!!f!=!!c.sourceHeader||d;t=g?[gu(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[gu(m,this._getSourceMetaRawOption(),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&&Yu(i)}var o,a=[],s=[];return v(t,function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||Yu(n),a.push(e),s.push(t._getVersionSign())}),n?o=Nu(n,a,{datasetIndex:e.componentIndex}):null!=r&&(o=[yu(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;ethis.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Tw.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){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=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);return("all"===n||n[$u(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[yb])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},n.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){I(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;a>l;l++){var u=e[l],h=$u(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||o===!0){var c=e[a-1],h=$u(t,c);i.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(r={},r[h]=t.getRawIndex(c),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 aw.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(aw);d(mb,nb),d(mb,Tw),Gi(mb,aw);var _b=function(){function t(){this.group=new uy,this.uid=zs("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.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Hi(_b),qi(_b);var xb=Oi(),wb=ah(),bb=function(){function t(){this.group=new uy,this.uid=zs("viewChart"),this.renderTask=Iu({plan:uh,reset:hh}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&lh(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&lh(i,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.prototype.eachRendered=function(t){Ts(this.group,t)},t.markUpdateMethod=function(t,e){xb(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();Hi(bb,["dispose"]),qi(bb);var Sb,Mb={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)}}},Tb=Oi(),Cb={itemStyle:ji(Ax,!0),lineStyle:ji(kx,!0)},kb={lineStyle:"stroke",itemStyle:"fill"},Db={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=ph(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=fh(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||T(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||T(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}},Ib=new Px,Ab={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=ph(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){Ib.option=n[r];var a=i(Ib),s=t.ensureUniqueItemVisual(e,"style");h(s,a),Ib.option.decal&&(t.setItemVisual(e,"decal",Ib.option.decal),Ib.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ob={performRawSeries:!0,overallReset:function(t){var e=q();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),Tb(t).scope=i}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=Tb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=fh(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)}})}})}},Lb=Math.PI,Pb=function(){function t(t,e,n,r){this._stageTaskMap=q(),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=q();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="";W(!(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)||Iu({plan:_h,reset:xh,count:bh}));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=q(),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,Iu({reset:vh,onDirty:mh})));n.context={model:t,overallProgress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||Iu({reset:gh});a.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=q(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1,f="";W(!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:Sh(t)}),t.uid=zs("stageHandler"),e&&(t.visualType=e),t},t}(),Rb=wh(0),Eb={},Bb={};Mh(Eb,Dw),Mh(Bb,Bw),Eb.eachSeriesByType=Eb.eachRawSeriesByType=function(t){Sb=t},Eb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Sb=t.subType)};var Nb=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],zb={color:Nb,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Nb]},Fb="#B9B8CE",Vb="#100C2A",Hb=function(){return{axisLine:{lineStyle:{color:Fb}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Wb=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Gb={darkMode:!0,color:Wb,backgroundColor:Vb,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Fb}},textStyle:{color:Fb},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Fb}},dataZoom:{borderColor:"#71708A",textStyle:{color:Fb},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:Fb}},timeline:{lineStyle:{color:Fb},label:{color:Fb},controlStyle:{color:Fb,borderColor:Fb}},calendar:{itemStyle:{color:Vb},dayLabel:{color:Fb},monthLabel:{color:Fb},yearLabel:{color:Fb}},timeAxis:Hb(),logAxis:Hb(),valueAxis:Hb(),categoryAxis:Hb(),line:{symbol:"circle"},graph:{color:Wb},gauge:{title:{color:Fb},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Fb},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Gb.categoryAxis.splitLine.show=!1;var Ub=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(C(t)){var i=zi(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;l0&&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}(),Xb=["symbol","symbolSize","symbolRotate","symbolOffset"],Yb=Xb.concat(["symbolKeepAspect"]),qb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){for(var r=t.getRawValue(n),i=t.getDataParams(n),a=0;a0&&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.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this[NS]&&!this._disposed){var r,i,o;if(I(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[NS]=!0,!this._model||e){var a=new Vw(this._api),s=this._theme,l=this._model=new Dw;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},yM);var u={seriesTransition:o,optionChanged:!0};if(n)this[zS]={silent:r,updateParams:u},this[NS]=!1,this.getZr().wakeUp();else{try{qS(this),KS.update.call(this,null,u)}catch(h){throw this[zS]=null,this[NS]=!1,h}this._ssr||this._zr.flush(),this[zS]=null,this[NS]=!1,tM.call(this,r),eM.call(this,r)}}},n.prototype.setTheme=function(){},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||Rd.hasGlobalWindow&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(Rd.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;v(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.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return v(r,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(bM[n]){var a=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();v(wM,function(o){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(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=Wd.createCanvas(),y=Er(g,{renderer:e?"svg":"canvas"});if(y.resize({width:f,height:d}),e){var m="";return v(c,function(t){var e=t.left-a,n=t.top-l;m+=''+t.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new Nm({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),v(c,function(t){var e=new Pm({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 $S(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return $S(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Li(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=Li(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?Th(o,a,e):Ch(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;v(fM,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=Xm(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)}),v(gM,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),v(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),Dh(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;var t=this.getDom();t&&Ei(this.getDom(),TM,"");var e=this,n=e._api,r=e._model;v(e._componentsViews,function(t){t.dispose(r,n)}),v(e._chartsViews,function(t){t.dispose(r,n)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete wM[e.id]}},n.prototype.resize=function(t){if(!this[NS]&&!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[zS]&&(null==r&&(r=this[zS].silent),n=!0,this[zS]=null),this[NS]=!0;try{n&&qS(this),KS.update.call(this,{type:"resize",animation:h({duration:0},t&&t.animation)})}catch(i){throw this[NS]=!1,i}this[NS]=!1,tM.call(this,r),eM.call(this,r)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(I(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),xM[t])){var n=xM[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=gM[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(I(e)||(e={silent:!!e}),dM[t.type]&&this._model)){if(this[NS])return void this._pendingActions.push(t);var n=e.silent;JS.call(this,t,n);var r=e.flush;r?this._zr.flush():r!==!1&&Rd.browser.weChat&&this._throttledZrFlush(),tM.call(this,n),eM.call(this,n)}},n.prototype.updateLabelLayout=function(){vS.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},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){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function n(t){var e=[],n=[],r=!1;if(t.eachComponent(function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})}),r){var i,o,a=e.concat(n);rn(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),v(a,function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}function r(t){for(var e=[],n=t.currentStates,r=0;re.get("hoverLayerThreshold")&&!Rd.node&&!Rd.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}function a(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered(function(t){return s(t,n,r,-1/0),!0})}}function s(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(ss(t))return;if(t instanceof Dm&&za(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&r(t)}})}qS=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),jS(t,!0),jS(t,!1),e.plan()},jS=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=zi(t.type),p=e?_b.getClass(c.main,c.sub):bb.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;u1){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;a1&&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&&c>1)this._updateManyToMany&&this._updateManyToMany(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;n1)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;oo;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=HM[l]||"f",u&&(r+=u.uid),r+="$"}var p=this.source,f=[p.seriesLayoutBy,p.startIndex,r].join("$$");return{dimensions:i,hash:f}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;ea;a++){var s=a-r;this._nameList[a]=e[s],o&&EM(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===fw;if(s&&!r.pure)for(var l=[],u=t;e>u;u++){var h=r.getItem(u,l);if(!this.hasItemOption&&gi(h)&&(this.hasItemOption=!0),h){var c=h.name;null==i[u]&&null!=c&&(i[u]=Ti(c,null));var p=h.id;null==o[u]&&null!=p&&(o[u]=Ti(p,null))}}if(this._shouldMakeIdFromName())for(var u=t;e>u;u++)EM(this,u);IM(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(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){GM(t)?h(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=OM(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return AM(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];return r?n.get(r.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];return r?n.getByRawIndex(r.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return M(t)?r.getValues(UM(t,function(t){return n._getStoreDimIndex(t)}),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;r>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],r=n[e];return null==r||isNaN(r)?qM:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){T(t)&&(n=e,e=t,t=[]);var r=n||this,i=UM(LM(t),this._getStoreDimIndex,this);this._store.each(i,r?ng(e,r):e)},t.prototype.filterSelf=function(t,e,n){T(t)&&(n=e,e=t,t=[]);var r=n||this,i=UM(LM(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?ng(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=w(t),i=[];return v(r,function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){T(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=UM(LM(t),this._getStoreDimIndex,this),a=RM(this);return a._store=this._store.map(o,i?ng(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=UM(LM(t),this._getStoreDimIndex,this);this._store.modify(o,i?ng(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=RM(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=RM(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t) },t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Px(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new NM(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return AM(t,e)},function(t){return AM(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||{},GM(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():GM(i)&&(i=h({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,GM(e)?h(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){GM(t)?h(this._layout,t):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&&this.hostModel.seriesIndex;Ym(n,this.dataType,t,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){return e||(e=new t(this._schema?this._schema:UM(this.dimensions,this._getDimInfo,this),this.hostModel)),PM(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];T(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(){IM=function(t){var e=t._invertedIndicesMap;v(e,function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new XM(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),$M=function(){function t(t){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=t}return t}(),QM={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Sy).models[0],o=t.getReferringComponents("yAxis",Sy).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),ip(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),ip(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Sy).models[0];e.coordSysDims=["single"],n.set("single",i),ip(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Sy).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),ip(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),ip(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),ip(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},JM=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[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}();qi(JM);var tT=0,eT=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++tT}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&y(r,dp);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(!C(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=q(this.categories))},t}(),nT=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new eT({})),M(r)&&(r=new eT({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 null==t?0/0:C(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),_p(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),xp(t,this._extent)},n.prototype.scale=function(t){return t=Math.round(wp(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=0&&t=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type="ordinal",n}(JM);JM.registerClass(nT);var rT=Gr,iT=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 _p(t,this._extent)},n.prototype.normalize=function(t){return xp(t,this._extent)},n.prototype.scale=function(t){return wp(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[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=vp(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]a)return[];var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&o.push(t?{value:rT(l+e,i)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;is;){var c=rT(a.value+(s+1)*h);c>r[0]&&ci&&(i=-i,r.reverse());var o=gp(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(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.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=rT(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=rT(Math.ceil(e[1]/i)*i))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type="interval",n}(JM);JM.registerClass(iT);var oT="undefined"!=typeof Float32Array,aT=oT?Float32Array:Array,sT="__ec_stack_",lT=function(t,e,n,r){for(;r>n;){var i=n+r>>>1;t[i][1]n&&(this._approxInterval=n);var o=hT.length,a=Math.min(lT(hT,this._approxInterval,0,o),o-1);this._interval=hT[a][1],this._minLevelUnit=hT[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return D(t)?t:+Jr(t)},n.prototype.contain=function(t){return _p(this.parse(t),this._extent)},n.prototype.normalize=function(t){return xp(this.parse(t),this._extent)},n.prototype.scale=function(t){return wp(t,this._extent)},n.type="time",n}(iT),hT=[["second",Gx],["minute",Ux],["hour",Xx],["quarter-day",6*Xx],["half-day",12*Xx],["day",1.2*Yx],["half-week",3.5*Yx],["week",7*Yx],["month",31*Yx],["quarter",95*Yx],["half-year",qx/2],["year",qx]];JM.registerClass(uT);var cT=JM.prototype,pT=iT.prototype,fT=Gr,dT=Math.floor,gT=Math.ceil,vT=Math.pow,yT=Math.log,mT=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new iT,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=pT.getTicks.call(this,t);return y(i,function(t){var e=t.value,i=Gr(vT(this.base,e));return i=e===n[0]&&this._fixMin?Gp(i,r[0]):i,i=e===n[1]&&this._fixMax?Gp(i,r[1]):i,{value:i}},this)},n.prototype.setExtent=function(t,e){var n=yT(this.base);t=yT(Math.max(0,t))/n,e=yT(Math.max(0,e))/n,pT.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=cT.getExtent.call(this);e[0]=vT(t,e[0]),e[1]=vT(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=Gp(e[0],r[0])),this._fixMax&&(e[1]=Gp(e[1],r[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=yT(t[0])/yT(e),t[1]=yT(t[1])/yT(e),cT.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var r=ti(n),i=t/n*r;for(.5>=i&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[Gr(gT(e[0]/r)*r),Gr(dT(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},n.prototype.calcNiceExtent=function(t){pT.calcNiceExtent.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=yT(t)/yT(this.base),_p(t,this._extent)},n.prototype.normalize=function(t){return t=yT(t)/yT(this.base),xp(t,this._extent)},n.prototype.scale=function(t){return t=wp(t,this._extent),vT(this.base,t)},n.type="log",n}(JM),_T=mT.prototype;_T.getMinorTicks=pT.getMinorTicks,_T.getLabel=pT.getLabel,JM.registerClass(mT);var xT=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]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[bT[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=wT[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),wT={min:"_determinedMin",max:"_determinedMax"},bT={min:"_dataMin",max:"_dataMax"},ST=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),MT={isDimensionStacked:sp,enableDataStack:op,getStackedDimension:lp},TT=(Object.freeze||Object)({createList:tf,getLayoutRect:Sl,dataStack:MT,createScale:ef,mixinAxisModelCommonMethods:nf,getECData:Xm,createTextStyle:rf,createDimensions:Qc,createSymbol:Oh,enableHoverEmphasis:Da}),CT=[],kT={registerPreprocessor:kc,registerProcessor:Dc,registerPostInit:Ic,registerPostUpdate:Ac,registerUpdateLifecycle:Oc,registerAction:Lc,registerCoordinateSystem:Pc,registerLayout:Ec,registerVisual:Bc,registerTransform:DM,registerLoading:zc,registerMap:Vc,registerImpl:gc,PRIORITY:BS,ComponentModel:aw,ComponentView:_b,SeriesModel:mb,ChartView:bb,registerComponentModel:function(t){aw.registerClass(t)},registerComponentView:function(t){_b.registerClass(t)},registerSeriesModel:function(t){mb.registerClass(t)},registerChartView:function(t){bb.registerClass(t)},registerSubTypeDefaulter:function(t,e){aw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Fr(t,e)}},DT=1e-8,IT=[],AT=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),OT=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),LT=function(){function t(t){this.type="linestring",this.points=t}return t}(),PT=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return e(n,t),n.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;rn&&(t=i,n=a)}if(t)return hf(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return v(i,function(e){"polygon"===e.type?uf(e.exterior,n,r,t):v(e.points,function(e){uf(e,n,r,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Ng(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},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++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(sf(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(sf(s[l],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 Ng(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u=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 qr(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())),Hr(t,VT,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=Hr(t,n,VT,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=2*Math.PI,GT=ym.CMD,UT=["top","right","bottom","left"],XT=[],YT=new Dg,qT=new Dg,jT=new Dg,ZT=new Dg,KT=new Dg,$T=[],QT=new Dg,JT=["align","verticalAlign","width","height","fontSize"],tC=new ty,eC=Oi(),nC=Oi(),rC=["x","y","rotation"],iC=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();Ng.applyTransform(u,u,l),l?tC.setLocalTransform(l):(tC.x=tC.y=tC.rotation=tC.originX=tC.originY=0,tC.scaleX=tC.scaleY=1);var h,c=r.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();Ng.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:tC.x,y:tC.y,scaleX:tC.scaleX,scaleY:tC.scaleY,rotation:tC.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=Xm(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)})},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){Hf(t,e)}}for(var n=t.getWidth(),r=t.getHeight(),i=0;i=0&&n.attr(i.oldLayoutSelect),p(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),os(n,l,e,s)}else if(n.attr(l),!bx(n).valueAnimation){var c=z(n.style.opacity,1);n.style.opacity=0,as(n,{style:{opacity:c}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};td(f,l,rC),td(f,n.states.select,rC)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};td(d,l,rC),td(d,n.states.emphasis,rC)}Ns(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){var i=nC(r),o=i.oldLayout,g={points:r.shape.points};o?(r.attr({shape:o}),os(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,as(r,{style:{strokePercent:1}},e)),i.oldLayout=g}},t}(),oC=Oi();of(ed);var aC=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||Gv,"string"==typeof e?o=nd(e,n,r):I(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var a=o.style;return a&&(K(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),i.painter=n,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=nd("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 Ng(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;ug&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){var e=new Ng(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 Ng(0,0,0,0),u=this.__startIndex;uo;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(sC)),r||(r=n.ctx,r.save()),ac(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(sC)},t.prototype.paintOne=function(t,e){oc(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;Qg(function(){s._paintList(t,e,n,r)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(lC).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;a15)break}}n.prevElClipPaths&&l.restore()};if(c)if(0===c.length)m=s.__endIndex;else for(var x=p.dpr,w=0;w0&&t>r[0]){for(s=0;i-1>s&&!(r[s]t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.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;r0?uC: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&qg&&!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;rs;s++){var u=a[s];ac(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),pC=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 gb(this),Uu(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Uu(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:_w},n}(aw),fC=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}(_b);of([od,ad]),of(ed);var dC={average:function(t){for(var e=0,n=0,r=0;re&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;na.length-1&&(s=a.length-1),0>s&&(s=0),a[s]&&(i[o]=n.toGlobalCoord(a[s].coord))}});else{var o=this.getData(),a=o.getLayout("offset"),s=o.getLayout("size"),l=r.getBaseAxis().isHorizontal()?0:1;i[l]+=a+s/2}return i}return[0/0,0/0]},n.type="series.__base_bar__",n.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},n}(mb);mb.registerClass(vC);var yC=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.getInitialData=function(){return cp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},n.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},n.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},n.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},n.type="series.bar",n.dependencies=["grid","polar"],n.defaultOption=Hs(vC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),n}(vC),mC=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}return t}(),_C=function(t){function n(e){var n=t.call(this,e)||this;return n.type="sausage",n}return e(n,t),n.prototype.getDefaultShape=function(){return new mC},n.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?c>u-l:c>l-u;p||(l=u-(h?c:-c));var f=Math.cos(l),d=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(f*i+n,d*i+r),t.arc(f*s+n,d*s+r,a,-Math.PI+l,l,!h)):t.moveTo(f*o+n,d*o+r),t.arc(n,r,o,l,u,!h),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!h),0!==i&&t.arc(n,r,i,u,l,h)},n}(Dm),xC=Math.max,wC=Math.min,bC=function(t){function n(){var e=t.call(this)||this;return e.type=n.type,e._isFirstFrame=!0,e}return e(n,t),n.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},n.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},n.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},n.prototype.eachRendered=function(t){Ts(this._progressiveEls||this.group,t)},n.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},n.prototype._renderNormal=function(t,e,n,r){function i(t){var e=DC[u.type](s,t),n=Id(u,o,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===u.type&&n.setShape("r",m),_[t]=n,n}var o,a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();"cartesian2d"===u.type?o=h.isHorizontal():"polar"===u.type&&(o="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,p=_d(t,u);p&&this._enableRealtimeSort(p,s,n);var f=t.get("clip",!0)||p,d=md(u,s);a.removeClipPath();var g=t.get("roundCap",!0),v=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),m=y.get("borderRadius")||0,_=[],x=this._backgroundEls,w=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;s.diff(l).add(function(e){var n=s.getItemModel(e),r=DC[u.type](s,e,n);if(v&&i(e),s.hasValue(e)&&kC[u.type](r)){var l=!1;f&&(l=SC[u.type](d,r));var y=MC[u.type](t,s,e,r,o,c,h.model,!1,g);p&&(y.forceLabelAnimation=!0),Md(y,s,e,n,r,t,o,"polar"===u.type),w?y.attr({shape:r}):p?xd(p,c,y,r,e,o,!1,!1):as(y,{shape:r},t,e),s.setItemGraphicEl(e,y),a.add(y),y.ignore=l}}).update(function(e,n){var r=s.getItemModel(e),S=DC[u.type](s,e,r);if(v){var M=void 0;0===x.length?M=i(n):(M=x[n],M.useStyle(y.getItemStyle()),"cartesian2d"===u.type&&M.setShape("r",m),_[e]=M);var T=DC[u.type](s,e),C=Dd(o,T,u);os(M,{shape:C},c,e)}var k=l.getItemGraphicEl(n);if(!s.hasValue(e)||!kC[u.type](S))return void a.remove(k);var D=!1;if(f&&(D=SC[u.type](d,S),D&&a.remove(k)),k?cs(k):k=MC[u.type](t,s,e,S,o,c,h.model,!!k,g),p&&(k.forceLabelAnimation=!0),b){var I=k.getTextContent();if(I){var A=bx(I);null!=A.prevValue&&(A.prevValue=A.value)}}else Md(k,s,e,r,S,t,o,"polar"===u.type);w?k.attr({shape:S}):p?xd(p,c,k,S,e,o,!0,b):os(k,{shape:S},t,e,null),s.setItemGraphicEl(e,k),k.ignore=D,a.add(k)}).remove(function(e){var n=l.getItemGraphicEl(e);n&&hs(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new uy);S.removeAll();for(var M=0;M<_.length;++M)S.add(_[M]);a.add(S),this._backgroundEls=_,this._data=s},n.prototype._renderLarge=function(t){this._clear(),Cd(t,this.group),this._updateLargeClip(t)},n.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),Cd(e,this.group,this._progressiveEls,!0)},n.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&hd(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},n.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},n.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),function(t,e){var i=n(e);i=null==i?0/0:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})}),r.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:y(r,function(t){return t.ordinalNumber})}},n.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;s>a;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=0>l?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},n.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);o>=i;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},n.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},n.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},n.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},n.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},n.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},n.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){hs(e,t,Xm(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},n.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},n.type="bar",n}(bb),SC={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;0>n&&(e.x+=e.width,e.width=-e.width),0>r&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=xC(e.x,t.x),s=wC(e.x+e.width,i),l=xC(e.y,t.y),u=wC(e.y+e.height,o),h=a>s,c=l>u;return e.x=h&&a>i?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,0>n&&(e.x+=e.width,e.width=-e.width),0>r&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(0>n){var r=e.r;e.r=e.r0,e.r0=r}var i=wC(e.r,t.r),o=xC(e.r0,t.r0);e.r=i,e.r0=o;var a=0>i-o;if(0>n){var r=e.r;e.r=e.r0,e.r0=r}return a}},MC={cartesian2d:function(t,e,n,r,i,o){var a=new Nm({shape:h({},r),z2:1});if(a.__dataIndex=n,a.name="item",o){var s=a.shape,l=i?"height":"width";s[l]=0}return a},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?_C:F_,h=new u({shape:r,z2:1});h.name="item";var c=Sd(i);if(h.calculateTextPosition=dd(c,{isRoundCap:u===_C}),o){var p=h.shape,f=i?"r":"endAngle",d={};p[f]=i?0:r.startAngle,d[f]=r[f],(s?os:as)(h,{shape:d},o)}return h}},TC=["x","y","width","height"],CC=["cx","cy","r","startAngle","endAngle"],kC={cartesian2d:function(t){return!wd(t,TC)},polar:function(t){return!wd(t,CC)}},DC={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?Td(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}},IC=function(){function t(){}return t}(),AC=function(t){function n(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return e(n,t),n.prototype.getDefaultShape=function(){return new IC},n.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null},30,!1);of(Ad),t.version=mS,t.dependencies=_S,t.PRIORITY=BS,t.init=xc,t.connect=wc,t.disConnect=bc,t.disconnect=CM,t.dispose=Sc,t.getInstanceByDom=Mc,t.getInstanceById=Tc,t.registerTheme=Cc,t.registerPreprocessor=kc,t.registerProcessor=Dc,t.registerPostInit=Ic,t.registerPostUpdate=Ac,t.registerUpdateLifecycle=Oc,t.registerAction=Lc,t.registerCoordinateSystem=Pc,t.getCoordinateSystemDimensions=Rc,t.registerLayout=Ec,t.registerVisual=Bc,t.registerLoading=zc,t.setCanvasCreator=Fc,t.registerMap=Vc,t.getMap=Hc,t.registerTransform=DM,t.dataTool=BM,t.registerLocale=Ws,t.zrender=dy,t.matrix=kg,t.vector=fg,t.zrUtil=lg,t.color=_v,t.helper=TT,t.number=RT,t.time=ET,t.graphic=BT,t.format=NT,t.util=zT,t.List=KM,t.ComponentModel=aw,t.ComponentView=_b,t.SeriesModel=mb,t.ChartView=bb,t.extendComponentModel=Of,t.extendComponentView=Lf,t.extendSeriesModel=Pf,t.extendChartView=Rf,t.throttle=ch,t.use=of,t.setPlatformAPI=i,t.parseGeoJSON=df,t.parseGeoJson=df,t.env=Rd,t.Model=Px,t.Axis=HT,t.innerDrawElementOnCanvas=oc});