!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("echarts")):"function"==typeof define&&define.amd?define(["echarts"],e):"object"==typeof exports?exports["echarts-liquidfill"]=e(require("echarts")):t["echarts-liquidfill"]=e(t.echarts)}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=29)}([function(t,e){var r={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},i=Object.prototype.toString,a=Array.prototype,o=a.forEach,s=a.filter,l=a.slice,h=a.map,u=a.reduce,c={};function f(t){if(null==t||"object"!=typeof t)return t;var e=t,a=i.call(t);if("[object Array]"===a){if(!S(t)){e=[];for(var o=0,s=t.length;o1e-10&&(i.width+=o/s,i.height+=o/s,i.x-=o/s/2,i.y-=o/s/2)}return i}return t},contain:function(t,e){var r=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),i=this.style;if(t=r[0],e=r[1],n.contain(t,e)){var a=this.path.data;if(i.hasStroke()){var s=i.lineWidth,l=i.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(i.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(i.hasFill())return o.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var r=this.shape;if(r){if(i.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);else r[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},u.extend=function(t){var e=function(e){u.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var r=t.shape;if(r){this.shape=this.shape||{};var n=this.shape;for(var i in r)!n.hasOwnProperty(i)&&r.hasOwnProperty(i)&&(n[i]=r[i])}t.init&&t.init.call(this,e)};for(var r in i.inherits(e,u),t)"style"!==r&&"shape"!==r&&(e.prototype[r]=t[r]);return e},i.inherits(u,n);var c=u;t.exports=c},function(t,e){var r="undefined"==typeof Float32Array?Array:Float32Array;function n(t){return Math.sqrt(a(t))}var i=n;function a(t){return t[0]*t[0]+t[1]*t[1]}var o=a;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function h(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var u=h;e.create=function(t,e){var n=new r(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new r(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,r){return t[0]=e,t[1]=r,t},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},e.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},e.sub=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t},e.len=n,e.length=i,e.lenSquare=a,e.lengthSquare=o,e.mul=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t},e.div=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},e.normalize=function(t,e){var r=n(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t},e.distance=s,e.dist=l,e.distanceSquare=h,e.distSquare=u,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.lerp=function(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t},e.applyTransform=function(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t},e.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},e.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}},function(t,e,r){var n,i,a,o,s=r(2),l=r(10),h=s.applyTransform,u=Math.min,c=Math.max;function f(t,e,r,n){r<0&&(t+=r,r=-r),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=r,this.height=n}f.prototype={constructor:f,union:function(t){var e=u(t.x,this.x),r=u(t.y,this.y);this.width=c(t.x+t.width,this.x+this.width)-e,this.height=c(t.y+t.height,this.y+this.height)-r,this.x=e,this.y=r},applyTransform:(n=[],i=[],a=[],o=[],function(t){if(t){n[0]=a[0]=this.x,n[1]=o[1]=this.y,i[0]=o[0]=this.x+this.width,i[1]=a[1]=this.y+this.height,h(n,n,t),h(i,i,t),h(a,a,t),h(o,o,t),this.x=u(n[0],i[0],a[0],o[0]),this.y=u(n[1],i[1],a[1],o[1]);var e=c(n[0],i[0],a[0],o[0]),r=c(n[1],i[1],a[1],o[1]);this.width=e-this.x,this.height=r-this.y}}),calculateTransform:function(t){var e=this,r=t.width/e.width,n=t.height/e.height,i=l.create();return l.translate(i,i,[-e.x,-e.y]),l.scale(i,i,[r,n]),l.translate(i,i,[t.x,t.y]),i},intersect:function(t){if(!t)return!1;t instanceof f||(t=f.create(t));var e=this,r=e.x,n=e.x+e.width,i=e.y,a=e.y+e.height,o=t.x,s=t.x+t.width,l=t.y,h=t.y+t.height;return!(n=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new f(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},f.create=function(t){return new f(t.x,t.y,t.width,t.height)};var d=f;t.exports=d},function(t,e,r){var n=r(2),i=n.create,a=n.distSquare,o=Math.pow,s=Math.sqrt,l=s(3),h=i(),u=i(),c=i();function f(t){return t>-1e-8&&t<1e-8}function d(t){return t>1e-8||t<-1e-8}function p(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function v(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}e.cubicAt=p,e.cubicDerivativeAt=function(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)},e.cubicRootAt=function(t,e,r,n,i,a){var h=n+3*(e-r)-t,u=3*(r-2*e+t),c=3*(e-t),d=t-i,p=u*u-3*h*c,v=u*c-9*h*d,g=c*c-3*u*d,y=0;if(f(p)&&f(v)){if(f(u))a[0]=0;else(k=-c/u)>=0&&k<=1&&(a[y++]=k)}else{var m=v*v-4*p*g;if(f(m)){var x=v/p,_=-x/2;(k=-u/h+x)>=0&&k<=1&&(a[y++]=k),_>=0&&_<=1&&(a[y++]=_)}else if(m>0){var b=s(m),w=p*u+1.5*h*(-v+b),S=p*u+1.5*h*(-v-b);(k=(-u-((w=w<0?-o(-w,1/3):o(w,1/3))+(S=S<0?-o(-S,1/3):o(S,1/3))))/(3*h))>=0&&k<=1&&(a[y++]=k)}else{var T=(2*p*u-3*h*v)/(2*s(p*p*p)),P=Math.acos(T)/3,M=s(p),O=Math.cos(P),k=(-u-2*M*O)/(3*h),C=(_=(-u+M*(O+l*Math.sin(P)))/(3*h),(-u+M*(O-l*Math.sin(P)))/(3*h));k>=0&&k<=1&&(a[y++]=k),_>=0&&_<=1&&(a[y++]=_),C>=0&&C<=1&&(a[y++]=C)}}return y},e.cubicExtrema=function(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,l=3*e-3*t,h=0;if(f(o)){if(d(a))(c=-l/a)>=0&&c<=1&&(i[h++]=c)}else{var u=a*a-4*o*l;if(f(u))i[0]=-a/(2*o);else if(u>0){var c,p=s(u),v=(-a-p)/(2*o);(c=(-a+p)/(2*o))>=0&&c<=1&&(i[h++]=c),v>=0&&v<=1&&(i[h++]=v)}}return h},e.cubicSubdivide=function(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,h=(s-o)*i+o,u=(l-s)*i+s,c=(u-h)*i+h;a[0]=t,a[1]=o,a[2]=h,a[3]=c,a[4]=c,a[5]=u,a[6]=l,a[7]=n},e.cubicProjectPoint=function(t,e,r,n,i,o,l,f,d,v,g){var y,m,x,_,b,w=.005,S=1/0;h[0]=d,h[1]=v;for(var T=0;T<1;T+=.05)u[0]=p(t,r,i,l,T),u[1]=p(e,n,o,f,T),(_=a(h,u))=0&&_=0&&c<=1&&(i[h++]=c)}else{var u=o*o-4*a*l;if(f(u))(c=-o/(2*a))>=0&&c<=1&&(i[h++]=c);else if(u>0){var c,p=s(u),v=(-o-p)/(2*a);(c=(-o+p)/(2*a))>=0&&c<=1&&(i[h++]=c),v>=0&&v<=1&&(i[h++]=v)}}return h},e.quadraticExtremum=function(t,e,r){var n=t+r-2*e;return 0===n?.5:(t-e)/n},e.quadraticSubdivide=function(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r},e.quadraticProjectPoint=function(t,e,r,n,i,o,l,f,d){var p,g=.005,y=1/0;h[0]=l,h[1]=f;for(var m=0;m<1;m+=.05){u[0]=v(t,r,i,m),u[1]=v(e,n,o,m),(w=a(h,u))=0&&wthis._ux||m(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&r&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,r,n,i,a){return this.addData(l.C,t,e,r,n,i,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,r,n,i,a):this._ctx.bezierCurveTo(t,e,r,n,i,a)),this._xi=i,this._yi=a,this},quadraticCurveTo:function(t,e,r,n){return this.addData(l.Q,t,e,r,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,r,n):this._ctx.quadraticCurveTo(t,e,r,n)),this._xi=r,this._yi=n,this},arc:function(t,e,r,n,i,a){return this.addData(l.A,t,e,r,r,n,i-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,r,n,i,a),this._xi=v(i)*r+t,this._yi=g(i)*r+e,this},arcTo:function(t,e,r,n,i){return this._ctx&&this._ctx.arcTo(t,e,r,n,i),this},rect:function(t,e,r,n){return this._ctx&&this._ctx.rect(t,e,r,n),this.addData(l.R,t,e,r,n),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,r),t.closePath()),this._xi=e,this._yi=r,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,r=0;re.length&&(this._expandData(),e=this.data);for(var r=0;r0&&v<=t||u<0&&v>=t||0===u&&(c>0&&g<=e||c<0&&g>=e);)v+=u*(r=o[n=this._dashIdx]),g+=c*r,this._dashIdx=(n+1)%m,u>0&&vl||c>0&&gh||s[n%2?"moveTo":"lineTo"](u>=0?d(v,t):p(v,t),c>=0?d(g,e):p(g,e));u=v-t,c=g-e,this._dashOffset=-y(u*u+c*c)},_dashedBezierTo:function(t,e,r,i,a,o){var s,l,h,u,c,f=this._dashSum,d=this._dashOffset,p=this._lineDash,v=this._ctx,g=this._xi,m=this._yi,x=n.cubicAt,_=0,b=this._dashIdx,w=p.length,S=0;for(d<0&&(d=f+d),d%=f,s=0;s<1;s+=.1)l=x(g,t,r,a,s+.1)-x(g,t,r,a,s),h=x(m,e,i,o,s+.1)-x(m,e,i,o,s),_+=y(l*l+h*h);for(;bd);b++);for(s=(S-d)/_;s<=1;)u=x(g,t,r,a,s),c=x(m,e,i,o,s),b%2?v.moveTo(u,c):v.lineTo(u,c),s+=p[b]/_,b=(b+1)%w;b%2!=0&&v.lineTo(a,o),l=a-u,h=o-c,this._dashOffset=-y(l*l+h*h)},_dashedQuadraticTo:function(t,e,r,n){var i=r,a=n;r=(r+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,r,n,i,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){h[0]=h[1]=c[0]=c[1]=Number.MAX_VALUE,u[0]=u[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,r=0,n=0,s=0,d=0;dh||m(o-i)>u||f===c-1)&&(t.lineTo(a,o),n=a,i=o);break;case l.C:t.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),n=s[f-2],i=s[f-1];break;case l.Q:t.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),n=s[f-2],i=s[f-1];break;case l.A:var p=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++],S=s[f++],T=s[f++],P=x>_?x:_,M=x>_?1:x/_,O=x>_?_/x:1,k=b+w;Math.abs(x-_)>.001?(t.translate(p,y),t.rotate(S),t.scale(M,O),t.arc(0,0,P,b,k,1-T),t.scale(1/M,1/O),t.rotate(-S),t.translate(-p,-y)):t.arc(p,y,P,b,k,1-T),1===f&&(e=v(b)*x+p,r=g(b)*_+y),n=v(k)*x+p,i=g(k)*_+y;break;case l.R:e=n=s[f],r=i=s[f+1],t.rect(s[f++],s[f++],s[f++],s[f++]);break;case l.Z:t.closePath(),n=e,i=r}}}},_.CMD=l;var b=_;t.exports=b},function(t,e,r){(function(t){var r;"undefined"!=typeof window?r=window.__DEV__:void 0!==t&&(r=t.__DEV__),void 0===r&&(r=!0);var n=r;e.__DEV__=n}).call(this,r(34))},function(t,e){var r="undefined"==typeof Float32Array?Array:Float32Array;function n(){var t=new r(6);return i(t),t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(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}e.create=n,e.identity=i,e.copy=a,e.mul=function(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},e.translate=function(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t},e.rotate=function(t,e,r){var n=e[0],i=e[2],a=e[4],o=e[1],s=e[3],l=e[5],h=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*h,t[1]=-n*h+o*u,t[2]=i*u+s*h,t[3]=-i*h+u*s,t[4]=u*a+h*l,t[5]=u*l-h*a,t},e.scale=function(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t},e.invert=function(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null},e.clone=function(t){var e=n();return a(e,t),e}},function(t,e,r){var n=r(3),i=r(12),a=r(0),o=a.getContext,s=a.extend,l=a.retrieve2,h=a.retrieve3,u=a.trim,c={},f=0,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,p={};function v(t,e){var r=t+":"+(e=e||"12px sans-serif");if(c[r])return c[r];for(var n=(t+"").split("\n"),i=0,a=0,o=n.length;a5e3&&(f=0,c={}),f++,c[r]=i,i}function g(t,e,r){return"right"===r?t-=e:"center"===r&&(t-=e/2),t}function y(t,e,r){return"middle"===r?t-=e/2:"bottom"===r&&(t-=e),t}function m(t,e,r){var n=e.textPosition,i=e.textDistance,a=r.x,o=r.y;i=i||0;var s=r.height,l=r.width,h=s/2,u="left",c="top";switch(n){case"left":a-=i,o+=h,u="right",c="middle";break;case"right":a+=i+l,o+=h,c="middle";break;case"top":a+=l/2,o-=i,u="center",c="bottom";break;case"bottom":a+=l/2,o+=s+i,u="center";break;case"inside":a+=l/2,o+=h,u="center",c="middle";break;case"insideLeft":a+=i,o+=h,c="middle";break;case"insideRight":a+=l-i,o+=h,u="right",c="middle";break;case"insideTop":a+=l/2,o+=i,u="center";break;case"insideBottom":a+=l/2,o+=s-i,u="center",c="bottom";break;case"insideTopLeft":a+=i,o+=i;break;case"insideTopRight":a+=l-i,o+=i,u="right";break;case"insideBottomLeft":a+=i,o+=s-i,c="bottom";break;case"insideBottomRight":a+=l-i,o+=s-i,u="right",c="bottom"}return(t=t||{}).x=a,t.y=o,t.textAlign=u,t.textVerticalAlign=c,t}function x(t,e,r,n,i){if(!e)return"";var a=(t+"").split("\n");i=_(e,r,n,i);for(var o=0,s=a.length;o=a;h++)o-=a;var u=v(r,e);return u>o&&(r="",u=0),o=t-u,n.ellipsis=r,n.ellipsisWidth=u,n.contentWidth=o,n.containerWidth=t,n}function b(t,e){var r=e.containerWidth,n=e.font,i=e.contentWidth;if(!r)return"";var a=v(t,n);if(a<=r)return t;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?w(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;a=v(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function w(t,e,r,n){for(var i=0,a=0,o=t.length;ac)t="",o=[];else if(null!=f)for(var d=_(f-(r?r[1]+r[3]:0),e,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),p=0,v=o.length;pa&&O(r,t.substring(a,o)),O(r,n[2],n[1]),a=d.lastIndex}am)return{lines:[],width:0,height:0};E.textWidth=v(E.text,C);var D=M.textWidth,I=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))E.percentWidth=D,f.push(E),D=0;else{if(I){D=E.textWidth;var L=M.textBackgroundColor,R=L&&L.image;R&&(R=i.findExistImage(R),i.isImageReady(R)&&(D=Math.max(D,R.width*A/R.height)))}var B=k?k[1]+k[3]:0;D+=B;var F=null!=y?y-T:null;null!=F&&F=r.length&&r.push({option:t})}})),r},e.makeIdAndName=function(t){var e=n.createHashMap();a(t,(function(t,r){var n=t.exist;n&&e.set(n.id,t)})),a(t,(function(t,r){var i=t.option;n.assert(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})})),a(t,(function(t,r){var n=t.exist,i=t.option,a=t.keyInfo;if(o(i)){if(a.name=null!=i.name?i.name+"":n?n.name:"series\0"+r,n)a.id=n.id;else if(null!=i.id)a.id=i.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(e.get(a.id))}e.set(a.id,t)}}))},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf("series\0"))},e.isIdInner=h,e.compressBatches=function(t,e){var r={},n={};return i(t||[],r),i(e||[],n,r),[a(r),a(n)];function i(t,e,r){for(var n=0,i=t.length;n=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent);t.exports=r},function(t,e,r){var n=r(0),i=n.createHashMap,a=n.isTypedArray,o=r(35).enableClassCheck,s=r(17),l=s.SOURCE_FORMAT_ORIGINAL,h=s.SERIES_LAYOUT_BY_COLUMN,u=s.SOURCE_FORMAT_UNKNOWN,c=s.SOURCE_FORMAT_TYPED_ARRAY,f=s.SOURCE_FORMAT_KEYED_COLUMNS;function d(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===f?{}:[]),this.sourceFormat=t.sourceFormat||u,this.seriesLayoutBy=t.seriesLayoutBy||h,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&i(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}d.seriesDataToSource=function(t){return new d({data:t,sourceFormat:a(t)?c:l,fromDataset:!1})},o(d);var p=d;t.exports=p},function(t,e){e.SOURCE_FORMAT_ORIGINAL="original",e.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",e.SOURCE_FORMAT_OBJECT_ROWS="objectRows",e.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",e.SOURCE_FORMAT_UNKNOWN="unknown",e.SOURCE_FORMAT_TYPED_ARRAY="typedArray",e.SERIES_LAYOUT_BY_COLUMN="column",e.SERIES_LAYOUT_BY_ROW="row"},function(t,e){var r={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};t.exports=function(t,e,n){return r.hasOwnProperty(e)?n*t.dpr:n}},function(t,e,r){var n=r(43),i=r(44),a=r(20),o=r(45),s=r(0),l=function(t){a.call(this,t),i.call(this,t),o.call(this,t),this.id=t.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var r=this[t];r||(r=this[t]=[]),r[0]=e[0],r[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var r in t)t.hasOwnProperty(r)&&this.attrKV(r,t[r]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var r=0;r5e-5||t<-5e-5}var s=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=s.prototype;l.transform=null,l.needLocalTransform=function(){return o(this.rotation)||o(this.position[0])||o(this.position[1])||o(this.scale[0]-1)||o(this.scale[1]-1)};var h=[];l.updateTransform=function(){var t=this.parent,e=t&&t.transform,r=this.needLocalTransform(),i=this.transform;if(r||e){i=i||n.create(),r?this.getLocalTransform(i):a(i),e&&(r?n.mul(i,t.transform,i):n.copy(i,t.transform)),this.transform=i;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(h);var s=h[0]<0?-1:1,l=h[1]<0?-1:1,u=((h[0]-s)*o+s)/h[0]||0,c=((h[1]-l)*o+l)/h[1]||0;i[0]*=u,i[1]*=u,i[2]*=c,i[3]*=c}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,i)}else i&&a(i)},l.getLocalTransform=function(t){return s.getLocalTransform(this,t)},l.setTransform=function(t){var e=this.transform,r=t.dpr||1;e?t.setTransform(r*e[0],r*e[1],r*e[2],r*e[3],r*e[4],r*e[5]):t.setTransform(r,0,0,r,0,0)},l.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var u=[],c=n.create();l.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],n=this.position,i=this.scale;o(e-1)&&(e=Math.sqrt(e)),o(r-1)&&(r=Math.sqrt(r)),t[0]<0&&(e=-e),t[3]<0&&(r=-r),n[0]=t[4],n[1]=t[5],i[0]=e,i[1]=r,this.rotation=Math.atan2(-t[1]/r,t[0]/e)}},l.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(n.mul(u,t.invTransform,e),e=u);var r=this.origin;r&&(r[0]||r[1])&&(c[4]=r[0],c[5]=r[1],n.mul(u,e,c),u[4]-=r[0],u[5]-=r[1],e=u),this.setLocalTransform(e)}},l.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},l.transformCoordToLocal=function(t,e){var r=[t,e],n=this.invTransform;return n&&i.applyTransform(r,r,n),r},l.transformCoordToGlobal=function(t,e){var r=[t,e],n=this.transform;return n&&i.applyTransform(r,r,n),r},s.getLocalTransform=function(t,e){a(e=e||[]);var r=t.origin,i=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return r&&(e[4]-=r[0],e[5]-=r[1]),n.scale(e,e,i),o&&n.rotate(e,e,o),r&&(e[4]+=r[0],e[5]+=r[1]),e[4]+=s[0],e[5]+=s[1],e};var f=s;t.exports=f},function(t,e,r){var n=r(22),i={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]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function o(t){return t<0?0:t>1?1:t}function s(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function h(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function u(t,e,r){return t+(e-t)*r}function c(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var d=new n(20),p=null;function v(t,e){p&&f(p,e),p=d.put(t,p||e.slice())}function g(t,e){if(t){e=e||[];var r=d.get(t);if(r)return f(e,r);var n,a=(t+="").replace(/ /g,"").toLowerCase();if(a in i)return f(e,i[a]),v(t,e),e;if("#"===a.charAt(0))return 4===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=4095?(c(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),v(t,e),e):void c(e,0,0,0,1):7===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=16777215?(c(e,(16711680&n)>>16,(65280&n)>>8,255&n,1),v(t,e),e):void c(e,0,0,0,1):void 0;var o=a.indexOf("("),h=a.indexOf(")");if(-1!==o&&h+1===a.length){var u=a.substr(0,o),p=a.substr(o+1,h-(o+1)).split(","),g=1;switch(u){case"rgba":if(4!==p.length)return void c(e,0,0,0,1);g=l(p.pop());case"rgb":return 3!==p.length?void c(e,0,0,0,1):(c(e,s(p[0]),s(p[1]),s(p[2]),g),v(t,e),e);case"hsla":return 4!==p.length?void c(e,0,0,0,1):(p[3]=l(p[3]),y(p,e),v(t,e),e);case"hsl":return 3!==p.length?void c(e,0,0,0,1):(y(p,e),v(t,e),e);default:return}}c(e,0,0,0,1)}}function y(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=l(t[1]),i=l(t[2]),o=i<=.5?i*(n+1):i+n-i*n,s=2*i-o;return c(e=e||[],a(255*h(s,o,r+1/3)),a(255*h(s,o,r)),a(255*h(s,o,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function m(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var n=t*(e.length-1),i=Math.floor(n),s=Math.ceil(n),l=e[i],h=e[s],c=n-i;return r[0]=a(u(l[0],h[0],c)),r[1]=a(u(l[1],h[1],c)),r[2]=a(u(l[2],h[2],c)),r[3]=o(u(l[3],h[3],c)),r}}var x=m;function _(t,e,r){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),i=Math.floor(n),s=Math.ceil(n),l=g(e[i]),h=g(e[s]),c=n-i,f=w([a(u(l[0],h[0],c)),a(u(l[1],h[1],c)),a(u(l[2],h[2],c)),o(u(l[3],h[3],c))],"rgba");return r?{color:f,leftIndex:i,rightIndex:s,value:n}:f}}var b=_;function w(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(r+=","+t[3]),e+"("+r+")"}}e.parse=g,e.lift=function(t,e){var r=g(t);if(r){for(var n=0;n<3;n++)r[n]=e<0?r[n]*(1-e)|0:(255-r[n])*e+r[n]|0,r[n]>255?r[n]=255:t[n]<0&&(r[n]=0);return w(r,4===r.length?"rgba":"rgb")}},e.toHex=function(t){var e=g(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=m,e.fastMapToColor=x,e.lerp=_,e.mapToColor=b,e.modifyHSL=function(t,e,r,n){if(t=g(t))return t=function(t){if(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o,h=(s+o)/2;if(0===l)e=0,r=0;else{r=h<.5?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,c=((s-i)/6+l/2)/l,f=((s-a)/6+l/2)/l;n===s?e=f-c:i===s?e=1/3+u-f:a===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,r,h];return null!=t[3]&&d.push(t[3]),d}}(t),null!=e&&(t[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=r&&(t[1]=l(r)),null!=n&&(t[2]=l(n)),w(y(t),"rgba");var i},e.modifyAlpha=function(t,e){if((t=g(t))&&null!=e)return t[3]=o(e),w(t,"rgba")},e.stringify=w},function(t,e){var r=function(){this.head=null,this.tail=null,this._len=0},n=r.prototype;n.insert=function(t){var e=new i(t);return this.insertEntry(e),e},n.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++},n.remove=function(t){var e=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var i=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=new r,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},o=a.prototype;o.put=function(t,e){var r=this._list,n=this._map,a=null;if(null==n[t]){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,r.insertEntry(s),n[t]=s}return a},o.get=function(t){var e=this._map[t],r=this._list;if(null!=e)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};var s=a;t.exports=s},function(t,e){var r=1;"undefined"!=typeof window&&(r=Math.max(window.devicePixelRatio||1,1));var n=r;e.debugMode=0,e.devicePixelRatio=n},function(t,e,r){var n=r(0),i=n.retrieve2,a=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,h=n.isObject,u=r(11),c=r(25),f=r(12),d=r(18),p=r(7),v=p.ContextCachedBy,g=p.WILL_BE_RESTORED,y=u.DEFAULT_FONT,m={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(t){if(t){t.font=u.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||m[e]?e:"left";var r=t.textVerticalAlign||t.textBaseline;"center"===r&&(r="middle"),t.textVerticalAlign=null==r||x[r]?r:"top",t.textPadding&&(t.textPadding=s(t.textPadding))}}function T(t,e,r,n,i){if(r&&e.textRotation){var a=e.textOrigin;"center"===a?(n=r.width/2+r.x,i=r.height/2+r.y):a&&(n=a[0]+r.x,i=a[1]+r.y),t.translate(n,i),t.rotate(-e.textRotation),t.translate(-n,-i)}}function P(t,e,r,n,o,s,l,h){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.textVerticalAlign,f=s+o/2;"top"===c?f=s+r.height/2:"bottom"===c&&(f=s+o-r.height/2),!r.isLineHolder&&M(u)&&O(t,e,u,"right"===h?l-r.width:"center"===h?l-r.width/2:l,f-r.height/2,r.width,r.height);var d=r.textPadding;d&&(l=R(l,h,d),f-=r.height/2-d[2]-r.textHeight/2),A(e,"shadowBlur",a(u.textShadowBlur,n.textShadowBlur,0)),A(e,"shadowColor",u.textShadowColor||n.textShadowColor||"transparent"),A(e,"shadowOffsetX",a(u.textShadowOffsetX,n.textShadowOffsetX,0)),A(e,"shadowOffsetY",a(u.textShadowOffsetY,n.textShadowOffsetY,0)),A(e,"textAlign",h),A(e,"textBaseline","middle"),A(e,"font",r.font||y);var p=D(u.textStroke||n.textStroke,g),v=I(u.textFill||n.textFill),g=i(u.textStrokeWidth,n.textStrokeWidth);p&&(A(e,"lineWidth",g),A(e,"strokeStyle",p),e.strokeText(r.text,l,f)),v&&(A(e,"fillStyle",v),e.fillText(r.text,l,f))}function M(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function O(t,e,r,n,i,a,o){var s=r.textBackgroundColor,u=r.textBorderWidth,d=r.textBorderColor,p=l(s);if(A(e,"shadowBlur",r.textBoxShadowBlur||0),A(e,"shadowColor",r.textBoxShadowColor||"transparent"),A(e,"shadowOffsetX",r.textBoxShadowOffsetX||0),A(e,"shadowOffsetY",r.textBoxShadowOffsetY||0),p||u&&d){e.beginPath();var v=r.textBorderRadius;v?c.buildPath(e,{x:n,y:i,width:a,height:o,r:v}):e.rect(n,i,a,o),e.closePath()}if(p)if(A(e,"fillStyle",s),null!=r.fillOpacity){var g=e.globalAlpha;e.globalAlpha=r.fillOpacity*r.opacity,e.fill(),e.globalAlpha=g}else e.fill();else if(h(s)){var y=s.image;(y=f.createOrUpdateImage(y,null,t,k,s))&&f.isImageReady(y)&&e.drawImage(y,n,i,a,o)}if(u&&d)if(A(e,"lineWidth",u),A(e,"strokeStyle",d),null!=r.strokeOpacity){g=e.globalAlpha;e.globalAlpha=r.strokeOpacity*r.opacity,e.stroke(),e.globalAlpha=g}else e.stroke()}function k(t,e){e.image=t}function C(t,e,r,n){var i=r.x||0,a=r.y||0,o=r.textAlign,s=r.textVerticalAlign;if(n){var l=r.textPosition;if(l instanceof Array)i=n.x+L(l[0],n.width),a=n.y+L(l[1],n.height);else{var h=e&&e.calculateTextPosition?e.calculateTextPosition(b,r,n):u.calculateTextPosition(b,r,n);i=h.x,a=h.y,o=o||h.textAlign,s=s||h.textVerticalAlign}var c=r.textOffset;c&&(i+=c[0],a+=c[1])}return(t=t||{}).baseX=i,t.baseY=a,t.textAlign=o,t.textVerticalAlign=s,t}function A(t,e,r){return t[e]=d(t,e,r),t[e]}function D(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function I(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function L(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function R(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}e.normalizeTextStyle=function(t){return S(t),o(t.rich,S),t},e.renderText=function(t,e,r,n,i,a){n.rich?function(t,e,r,n,i,a){a!==g&&(e.__attrCachedBy=v.NONE);var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=u.parseRichText(r,n));!function(t,e,r,n,i){var a=r.width,o=r.outerWidth,s=r.outerHeight,l=n.textPadding,h=C(w,t,n,i),c=h.baseX,f=h.baseY,d=h.textAlign,p=h.textVerticalAlign;T(e,n,i,c,f);var v=u.adjustTextX(c,o,d),g=u.adjustTextY(f,s,p),y=v,m=g;l&&(y+=l[3],m+=l[0]);var x=y+a;M(n)&&O(t,e,n,v,g,o,s);for(var _=0;_=0&&"right"===(b=k[F]).textAlign;)P(t,e,b,n,D,m,B,"right"),I-=b.width,B-=b.width,F--;for(R+=(a-(R-y)-(x-B)-I)/2;L<=F;)b=k[L],P(t,e,b,n,D,m,R+b.width/2,"center"),R+=b.width,L++;m+=D}}(t,e,o,n,i)}(t,e,r,n,i,a):function(t,e,r,n,i,a){"use strict";var o,s=M(n),l=!1,h=e.__attrCachedBy===v.PLAIN_TEXT;a!==g?(a&&(o=a.style,l=!s&&h&&o),e.__attrCachedBy=s?v.NONE:v.PLAIN_TEXT):h&&(e.__attrCachedBy=v.NONE);var c=n.font||y;l&&c===(o.font||y)||(e.font=c);var f=t.__computedFont;t.__styleFont!==c&&(t.__styleFont=c,f=t.__computedFont=e.font);var p=n.textPadding,m=n.textLineHeight,x=t.__textCotentBlock;x&&!t.__dirtyText||(x=t.__textCotentBlock=u.parsePlainText(r,f,p,m,n.truncate));var b=x.outerHeight,S=x.lines,P=x.lineHeight,k=C(w,t,n,i),A=k.baseX,L=k.baseY,B=k.textAlign||"left",F=k.textVerticalAlign;T(e,n,i,A,L);var E=u.adjustTextY(L,b,F),N=A,z=E;if(s||p){var W=u.getWidth(r,f);p&&(W+=p[1]+p[3]);var q=u.adjustTextX(A,W,B);s&&O(t,e,n,q,E,W,b),p&&(N=R(A,B,p),z+=p[0])}e.textAlign=B,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var H=0;H<_.length;H++){var j=_[H],Y=j[0],U=j[1],V=n[Y];l&&V===o[Y]||(e[U]=d(e,U,V||j[2]))}z+=P/2;var G=n.textStrokeWidth,X=l?o.textStrokeWidth:null,Z=!l||G!==X,Q=!l||Z||n.textStroke!==o.textStroke,$=D(n.textStroke,G),K=I(n.textFill);$&&(Z&&(e.lineWidth=G),Q&&(e.strokeStyle=$));K&&(l&&n.textFill===o.textFill||(e.fillStyle=K));if(1===S.length)$&&e.strokeText(S[0],N,z),K&&e.fillText(S[0],N,z);else for(H=0;Hh&&(r*=h/(o=r+n),n*=h/o),i+a>h&&(i*=h/(o=i+a),a*=h/o),n+i>u&&(n*=u/(o=n+i),i*=u/o),r+a>u&&(r*=u/(o=r+a),a*=u/o),t.moveTo(s+r,l),t.lineTo(s+h-n,l),0!==n&&t.arc(s+h-n,l+n,n,-Math.PI/2,0),t.lineTo(s+h,l+u-i),0!==i&&t.arc(s+h-i,l+u-i,i,0,Math.PI/2),t.lineTo(s+a,l+u),0!==a&&t.arc(s+a,l+u-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+r),0!==r&&t.arc(s+r,l+r,r,Math.PI,1.5*Math.PI)}},function(t,e){var r=2*Math.PI;e.normalizeRadian=function(t){return(t%=r)<0&&(t+=r),t}},function(t,e,r){var n=r(68),i=r(69);e.buildPath=function(t,e,r){var a=e.points,o=e.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=i(a,o,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a.length,h=0;h<(r?l:l-1);h++){var u=s[2*h],c=s[2*h+1],f=a[(h+1)%l];t.bezierCurveTo(u[0],u[1],c[0],c[1],f[0],f[1])}}else{"spline"===o&&(a=n(a,r)),t.moveTo(a[0][0],a[0][1]);h=1;for(var d=a.length;hs?(s*=2*t/o,o=2*t):(o*=2*t/s,s=2*t);var l=e?0:b-o/2,h=e?0:w-s/2;return r=n.graphic.makePath(T.slice(7),{},new n.graphic.BoundingRect(l,h,o,s)),e&&(r.position=[-o/2,-s/2]),r}if(S){var u=e?-t[0]:b-t[0],c=e?-t[1]:w-t[1];return a.createSymbol("rect",u,c,2*t[0],2*t[1])}u=e?-t:b-t,c=e?-t:w-t;return"pin"===T?c+=t:"arrow"===T&&(c-=t),a.createSymbol(T,u,c,2*t,2*t)}return new n.graphic.Circle({shape:{cx:e?0:b,cy:e?0:w,r:t}})}function D(){var e=A(m);return e.style.fill=null,e.setStyle(t.getModel("outline.itemStyle").getItemStyle()),e}function I(e,r,i){var a=S?c[0]:c,h=S?d/2:c,u=l.getItemModel(e),f=u.getModel("itemStyle"),p=u.get("phase"),v=o(u.get("amplitude"),2*h),g=o(u.get("waveLength"),2*a),y=h-l.get("value",e)*h*2;p=i?i.shape.phase:"auto"===p?e*Math.PI/4:p;var m=f.getItemStyle();if(!m.fill){var x=t.get("color"),_=e%x.length;m.fill=x[_]}var T=new s({shape:{waveLength:g,radius:a,radiusY:h,cx:2*a,cy:0,waterLevel:y,amplitude:v,phase:p,inverse:r},style:m,position:[b,w]});T.shape._waterLevel=y;var P=u.getModel("emphasis.itemStyle").getItemStyle();P.lineWidth=0,n.graphic.setHoverStyle(T,P);var M=A(c,!0);return M.setStyle({fill:"white"}),T.setClipPath(M),T}function L(t,e,r){var n=l.getItemModel(t),i=n.get("period"),a=n.get("direction"),o=l.get("value",t),s=n.get("phase");s=r?r.shape.phase:"auto"===s?t*Math.PI/4:s;var h=0;h="auto"===i?function(e){var r=l.count();return 0===r?e:e*(.2+(r-t)/r*.8)}(5e3):"function"==typeof i?i(o,t):i;var u=0;"right"===a||null==a?u=Math.PI:"left"===a?u=-Math.PI:"none"===a?u=0:console.error("Illegal direction value for liquid fill."),"none"!==a&&n.get("waveAnimation")&&e.animate("shape",!0).when(0,{phase:s}).when(h/2,{phase:u+s}).when(h,{phase:2*u+s}).during((function(){O&&O.dirty(!0)})).start()}l.diff(k).add((function(e){var r=I(e,!1),a=r.shape.waterLevel;r.shape.waterLevel=S?d/2:c,n.graphic.initProps(r,{shape:{waterLevel:a}},t),r.z2=2,L(e,r,null),i.add(r),l.setItemGraphicEl(e,r),C.push(r)})).update((function(e,r){for(var a=k.getItemGraphicEl(r),o=I(e,!1,a),s={},h=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],u=0;u=0),l=!s&&null!=i;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=i,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=i)}t.insideRollback=e}function at(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function ot(t,e,r,n,i,a){if("function"==typeof i&&(a=i,i=null),n&&n.isAnimationEnabled()){var o=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),h=n.getShallow("animationDelay"+o);"function"==typeof h&&(h=h(i,n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null)),"function"==typeof s&&(s=s(i)),s>0?e.animateTo(r,s,h||0,l,a,!!a):(e.stopAnimation(),e.attr(r),a&&a())}else e.stopAnimation(),e.attr(r),a&&a()}function st(t,e,r,n,i){ot(!0,t,e,r,n,i)}function lt(t,e,r){return e&&!n.isArrayLike(e)&&(e=h.getLocalTransform(e)),r&&(e=o.invert([],e)),s.applyTransform([],t,e)}function ht(t,e,r,n,i,a,o,s){var l,h=r-t,u=n-e,c=o-i,f=s-a,d=ut(c,f,h,u);if((l=d)<=1e-6&&l>=-1e-6)return!1;var p=t-i,v=e-a,g=ut(p,v,h,u)/d;if(g<0||g>1)return!1;var y=ut(p,v,c,f)/d;return!(y<0||y>1)}function ut(t,e,r,n){return t*n-r*e}R("circle",d),R("sector",p),R("ring",v),R("polygon",g),R("polyline",y),R("rect",m),R("line",x),R("bezierCurve",_),R("arc",b),e.Z2_EMPHASIS_LIFT=1,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return l.extend(t)},e.extendPath=function(t,e){return i.extendFromString(t,e)},e.registerShape=R,e.getShapeClass=function(t){if(L.hasOwnProperty(t))return L[t]},e.makePath=B,e.makeImage=function(t,e,r){var n=new u({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===r){var i={width:t.width,height:t.height};n.setStyle(F(e,i))}}});return n},e.mergePath=E,e.resizePath=N,e.subPixelOptimizeLine=function(t){return O.subPixelOptimizeLine(t.shape,t.shape,t.style),t},e.subPixelOptimizeRect=function(t){return O.subPixelOptimizeRect(t.shape,t.shape,t.style),t},e.subPixelOptimize=z,e.setElementHoverStyle=G,e.setHoverStyle=function(t,e){J(t,!0),V(t,G,e)},e.setAsHighDownDispatcher=J,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=I[t];return null==e&&D<=32&&(e=I[t]=D++),e},e.setLabelStyle=function(t,e,r,i,a,o,s){var l,h=(a=a||A).labelFetcher,u=a.labelDataIndex,c=a.labelDimIndex,f=a.labelProp,d=r.getShallow("show"),p=i.getShallow("show");(d||p)&&(h&&(l=h.getFormattedLabel(u,"normal",null,c,f)),null==l&&(l=n.isFunction(a.defaultText)?a.defaultText(u,a):a.defaultText));var v=d?l:null,g=p?n.retrieve2(h?h.getFormattedLabel(u,"emphasis",null,c,f):null,l):null;null==v&&null==g||(tt(t,r,o,a),tt(e,i,s,a,!0)),t.text=v,e.text=g},e.modifyLabelStyle=function(t,e,r){var i=t.style;e&&(at(i),t.setStyle(e),it(i)),i=t.__hoverStl,r&&i&&(at(i),n.extend(i,r),it(i))},e.setTextStyle=tt,e.setText=function(t,e,r){var n,i={isRectText:!0};!1===r?n=!0:i.autoColor=r,et(t,e,i,n)},e.getFont=function(t,e){var r=e&&e.getModel("textStyle");return n.trim([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))},e.updateProps=st,e.initProps=function(t,e,r,n,i){ot(!1,t,e,r,n,i)},e.getTransform=function(t,e){for(var r=o.identity([]);t&&t!==e;)o.mul(r,t.getLocalTransform(),r),t=t.parent;return r},e.applyTransform=lt,e.transformDirection=function(t,e,r){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-i:"bottom"===t?i:0];return a=lt(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},e.groupTransition=function(t,e,r,i){if(t&&e){var a,o=(a={},t.traverse((function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)})),a);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var n=l(t);t.attr(l(e)),st(t,n,r,t.dataIndex)}}}))}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=n.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return n.map(t,(function(t){var r=t[0];r=k(r,e.x),r=C(r,e.x+e.width);var n=t[1];return n=k(n,e.y),[r,n=C(n,e.y+e.height)]}))},e.clipRectByRect=function(t,e){var r=k(t.x,e.x),n=C(t.x+t.width,e.x+e.width),i=k(t.y,e.y),a=C(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}},e.createIcon=function(t,e,r){var i=(e=n.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),n.defaults(i,r),new u(e)):B(t.replace("path://",""),e,r,"center")},e.linePolygonIntersect=function(t,e,r,n,i){for(var a=0,o=i[i.length-1];a1&&(u*=o(_),d*=o(_));var b=(i===a?-1:1)*o((u*u*(d*d)-u*u*(x*x)-d*d*(m*m))/(u*u*(x*x)+d*d*(m*m)))||0,w=b*u*x/d,S=b*-d*m/u,T=(t+r)/2+l(y)*w-s(y)*S,P=(e+n)/2+s(y)*w+l(y)*S,M=f([1,0],[(m-w)/u,(x-S)/d]),O=[(m-w)/u,(x-S)/d],k=[(-1*m-w)/u,(-1*x-S)/d],C=f(O,k);c(O,k)<=-1&&(C=h),c(O,k)>=1&&(C=0),0===a&&C>0&&(C-=2*h),1===a&&C<0&&(C+=2*h),g.addData(v,T,P,u,d,M,C,y,a)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,v=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g(t,e){var r=function(t){if(!t)return new i;for(var e,r=0,n=0,a=r,o=n,s=new i,l=i.CMD,h=t.match(p),u=0;u0},extendFrom:function(t,e){if(t)for(var r in t)!t.hasOwnProperty(r)||!0!==e&&(!1===e?this.hasOwnProperty(r):null==t[r])||(this[r]=t[r])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,r){for(var n=("radial"===e.type?l:s)(t,e,r),i=e.colorStops,a=0;a3&&(i=r.call(i,1));for(var o=e.length,s=0;s4&&(i=r.call(i,1,i.length-1));for(var o=i[i.length-1],s=e.length,l=0;l0&&e.animate(r,!1).when(null==a?500:a,u).delay(o||0)}(t,"",t,e,r,n,c);var f=t.animators.slice(),p=f.length;function v(){--p||a&&a()}p||a&&a();for(var g=0;g.5?e:t}function c(t,e,r,n,i){var a=t.length;if(1===i)for(var o=0;oi)t.length=i;else for(var a=n;a=0&&!(O[r]<=e);r--);r=Math.min(r,_-2)}else{for(r=W;r<_&&!(O[r]>e);r++);r=Math.min(r-1,_-2)}W=r,q=e;var n=O[r+1]-O[r];if(0!==n)if(B=(e-O[r])/n,x)if(E=k[r],F=k[0===r?r:r-1],N=k[r>_-2?_-1:r+1],z=k[r>_-3?_-1:r+2],S)p(F,E,N,z,B,B*B,B*B*B,g(t,s),M);else{if(T)i=p(F,E,N,z,B,B*B,B*B*B,H,1),i=y(H);else{if(P)return u(E,N,B);i=v(F,E,N,z,B,B*B,B*B*B)}m(t,s,i)}else if(S)c(k[r],k[r+1],B,g(t,s),M);else{var i;if(T)c(k[r],k[r+1],B,H,1),i=y(H);else{if(P)return u(k[r],k[r+1],B);i=h(k[r],k[r+1],B)}m(t,s,i)}},ondestroy:r});return e&&"spline"!==e&&(j.easing=e),j}}}var x=function(t,e,r,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=r||s,this._setter=n||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};x.prototype={when:function(t,e){var r=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!r[n]){r[n]=[];var i=this._getter(this._target,n);if(null==i)continue;0!==t&&r[n].push({time:0,value:g(i)})}r[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t1e-4)return p[0]=t-r,p[1]=e-i,v[0]=t+r,void(v[1]=e+i);if(u[0]=l(a)*r+t,u[1]=s(a)*i+e,c[0]=l(o)*r+t,c[1]=s(o)*i+e,g(p,u,c),y(v,u,c),(a%=h)<0&&(a+=h),(o%=h)<0&&(o+=h),a>o&&!d?o+=h:aa&&(f[0]=l(_)*r+t,f[1]=s(_)*i+e,g(p,f,p),y(v,f,v))}},function(t,e,r){var n=r(8),i=r(53),a=r(54),o=r(55),s=r(56),l=r(26).normalizeRadian,h=r(4),u=r(57),c=n.CMD,f=2*Math.PI;var d=[-1,-1,-1],p=[-1,-1];function v(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u1&&(c=void 0,c=p[0],p[0]=p[1],p[1]=c),v=h.cubicAt(e,n,a,s,p[0]),m>1&&(g=h.cubicAt(e,n,a,s,p[1]))),2===m?_e&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=h.quadraticAt(e,n,a,u),p=0;pr||s<-r)return 0;var h=Math.sqrt(r*r-s*s);d[0]=-h,d[1]=h;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u%f<1e-4){n=0,i=f;var c=a?1:-1;return o>=d[0]+t&&o<=d[1]+t?c:0}if(a){h=n;n=l(i),i=l(h)}else n=l(n),i=l(i);n>i&&(i+=f);for(var p=0,v=0;v<2;v++){var g=d[v];if(g+t>o){var y=Math.atan2(s,g);c=a?1:-1;y<0&&(y=f+y),(y>=n&&y<=i||y+f>=n&&y+f<=i)&&(y>Math.PI/2&&y<1.5*Math.PI&&(c=-c),p+=c)}}return p}function m(t,e,r,n,l){for(var h,f,d=0,p=0,m=0,x=0,_=0,b=0;b1&&(r||(d+=u(p,m,x,_,n,l))),1===b&&(x=p=t[b],_=m=t[b+1]),w){case c.M:p=x=t[b++],m=_=t[b++];break;case c.L:if(r){if(i.containStroke(p,m,t[b],t[b+1],e,n,l))return!0}else d+=u(p,m,t[b],t[b+1],n,l)||0;p=t[b++],m=t[b++];break;case c.C:if(r){if(a.containStroke(p,m,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],e,n,l))return!0}else d+=v(p,m,t[b++],t[b++],t[b++],t[b++],t[b],t[b+1],n,l)||0;p=t[b++],m=t[b++];break;case c.Q:if(r){if(o.containStroke(p,m,t[b++],t[b++],t[b],t[b+1],e,n,l))return!0}else d+=g(p,m,t[b++],t[b++],t[b],t[b+1],n,l)||0;p=t[b++],m=t[b++];break;case c.A:var S=t[b++],T=t[b++],P=t[b++],M=t[b++],O=t[b++],k=t[b++];b+=1;var C=1-t[b++],A=Math.cos(O)*P+S,D=Math.sin(O)*M+T;b>1?d+=u(p,m,A,D,n,l):(x=A,_=D);var I=(n-S)*M/P+S;if(r){if(s.containStroke(S,T,M,O,O+k,C,e,I,l))return!0}else d+=y(S,T,M,O,O+k,C,I,l);p=Math.cos(O+k)*P+S,m=Math.sin(O+k)*M+T;break;case c.R:x=p=t[b++],_=m=t[b++];A=x+t[b++],D=_+t[b++];if(r){if(i.containStroke(x,_,A,_,e,n,l)||i.containStroke(A,_,A,D,e,n,l)||i.containStroke(A,D,x,D,e,n,l)||i.containStroke(x,D,x,_,e,n,l))return!0}else d+=u(A,_,A,D,n,l),d+=u(x,D,x,_,n,l);break;case c.Z:if(r){if(i.containStroke(p,m,x,_,e,n,l))return!0}else d+=u(p,m,x,_,n,l);p=x,m=_}}return r||(h=m,f=_,Math.abs(h-f)<1e-4)||(d+=u(p,m,x,_,n,l)||0),0!==d}e.contain=function(t,e,r){return m(t,0,!1,e,r)},e.containStroke=function(t,e,r,n){return m(t,e,!0,r,n)}},function(t,e){e.containStroke=function(t,e,r,n,i,a,o){if(0===i)return!1;var s=i,l=0;if(o>e+s&&o>n+s||ot+s&&a>r+s||ae+f&&c>i+f&&c>o+f&&c>l+f||ct+f&&u>r+f&&u>a+f&&u>s+f||ue+u&&h>i+u&&h>o+u||ht+u&&l>r+u&&l>a+u||lr||f+co&&(o+=i);var p=Math.atan2(u,h);return p<0&&(p+=i),p>=a&&p<=o||p+i>=a&&p+i<=o}},function(t,e){t.exports=function(t,e,r,n,i,a){if(a>e&&a>n||ai?o:0}},function(t,e){var r=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};r.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var n=r;t.exports=n},function(t,e,r){var n=r(8),i=r(2).applyTransform,a=n.CMD,o=[[],[],[]],s=Math.sqrt,l=Math.atan2;t.exports=function(t,e){var r,n,h,u,c,f=t.data,d=a.M,p=a.C,v=a.L,g=a.R,y=a.A,m=a.Q;for(h=0,u=0;h=0&&(r.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,r=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),r&&r.refresh()},remove:function(t){var e=this.__zr,r=this.__storage,i=this._children,a=n.indexOf(i,t);return a<0||(i.splice(a,1),t.parent=null,r&&(r.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(r)),e&&e.refresh()),this},removeAll:function(){var t,e,r=this._children,n=this.__storage;for(e=0;e=11?function(){var e,r=this.__clipPaths,n=this.style;if(r)for(var a=0;ar-2?r-1:d+1],c=t[d>r-3?r-1:d+2]);var g=p*p,y=p*g;a.push([i(h[0],v[0],u[0],c[0],p,g,y),i(h[1],v[1],u[1],c[1],p,g,y)])}return a}},function(t,e,r){var n=r(2),i=n.min,a=n.max,o=n.scale,s=n.distance,l=n.add,h=n.clone,u=n.sub;t.exports=function(t,e,r,n){var c,f,d,p,v=[],g=[],y=[],m=[];if(n){d=[1/0,1/0],p=[-1/0,-1/0];for(var x=0,_=t.length;x<_;x++)i(d,d,t[x]),a(p,p,t[x]);i(d,d,n[0]),a(p,p,n[1])}for(x=0,_=t.length;x<_;x++){var b=t[x];if(r)c=t[x?x-1:_-1],f=t[(x+1)%_];else{if(0===x||x===_-1){v.push(h(t[x]));continue}c=t[x-1],f=t[x+1]}u(g,f,c),o(g,g,e);var w=s(b,c),S=s(b,f),T=w+S;0!==T&&(w/=T,S/=T),o(y,g,-w),o(m,g,S);var P=l([],b,y),M=l([],b,m);n&&(a(P,P,d),i(P,P,p),a(M,M,d),i(M,M,p)),v.push(P),v.push(M)}return r&&v.push(v.shift()),v}},function(t,e,r){var n=r(1),i=r(27),a=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){i.buildPath(t,e,!1)}});t.exports=a},function(t,e,r){var n=r(1),i=r(25),a=r(13).subPixelOptimizeRect,o={},s=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var r,n,s,l;this.subPixelOptimize?(a(o,e,this.style),r=o.x,n=o.y,s=o.width,l=o.height,o.r=e.r,e=o):(r=e.x,n=e.y,s=e.width,l=e.height),e.r?i.buildPath(t,e):t.rect(r,n,s,l),t.closePath()}});t.exports=s},function(t,e,r){var n=r(1),i=r(13).subPixelOptimizeLine,a={},o=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r,n,o,s;this.subPixelOptimize?(i(a,e,this.style),r=a.x1,n=a.y1,o=a.x2,s=a.y2):(r=e.x1,n=e.y1,o=e.x2,s=e.y2);var l=e.percent;0!==l&&(t.moveTo(r,n),l<1&&(o=r*(1-l)+o*l,s=n*(1-l)+s*l),t.lineTo(o,s))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=o},function(t,e,r){var n=r(1),i=r(2),a=r(4),o=a.quadraticSubdivide,s=a.cubicSubdivide,l=a.quadraticAt,h=a.cubicAt,u=a.quadraticDerivativeAt,c=a.cubicDerivativeAt,f=[];function d(t,e,r){var n=t.cpx2,i=t.cpy2;return null===n||null===i?[(r?c:h)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?c:h)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?u:l)(t.x1,t.cpx1,t.x2,e),(r?u:l)(t.y1,t.cpy1,t.y2,e)]}var p=n.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.x1,n=e.y1,i=e.x2,a=e.y2,l=e.cpx1,h=e.cpy1,u=e.cpx2,c=e.cpy2,d=e.percent;0!==d&&(t.moveTo(r,n),null==u||null==c?(d<1&&(o(r,l,i,d,f),l=f[1],i=f[2],o(n,h,a,d,f),h=f[1],a=f[2]),t.quadraticCurveTo(l,h,i,a)):(d<1&&(s(r,l,u,i,d,f),l=f[1],u=f[2],i=f[3],s(n,h,c,a,d,f),h=f[1],c=f[2],a=f[3]),t.bezierCurveTo(l,h,u,c,i,a)))},pointAt:function(t){return d(this.shape,t,!1)},tangentAt:function(t){var e=d(this.shape,t,!0);return i.normalize(e,e)}});t.exports=p},function(t,e,r){var n=r(1).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.cx,n=e.cy,i=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),h=Math.sin(a);t.moveTo(l*i+r,h*i+n),t.arc(r,n,i,a,o,!s)}});t.exports=n},function(t,e,r){var n=r(1),i=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,r=0;r0;)e.phase-=2*Math.PI;var n=e.phase/Math.PI/2*e.waveLength,a=e.cx-e.radius+n-2*e.radius;t.moveTo(a,e.waterLevel);for(var o=0,s=0;s