(window.webpackJsonp=window.webpackJsonp||[]).push([["npm.zrender"],{"04f6":function(t,e,r){"use strict";r.d(e,"a",(function(){return h}));function i(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n=0;)n++;return n-e}function n(t,e,r,i,n){for(i===e&&i++;i>>1])<0?h=o:s=o+1;var u=i-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 o(t,e,r,i,n,o){var a=0,s=0,h=1;if(o(t,e[r+n])>0){for(s=i-n;h0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s),a+=n,h+=n}else{for(s=n+1;hs&&(h=s);var u=a;a=n-h,h=n-u}for(a++;a>>1);o(t,e[r+l])>0?a=l+1:h=l}return h}function a(t,e,r,i,n,o){var a=0,s=0,h=1;if(o(t,e[r+n])<0){for(s=n+1;hs&&(h=s);var u=a;a=n-h,h=n-u}else{for(s=i-n;h=0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s),a+=n,h+=n}for(a++;a>>1);o(t,e[r+l])<0?h=l:a=l+1}return h}function s(t,e){var r,i,n,s=7,h=0;r=t.length;var u=[];function l(r){var l=i[r],c=n[r],f=i[r+1],p=n[r+1];n[r]=c+p,r===h-3&&(i[r+1]=i[r+2],n[r+1]=n[r+2]),h--;var d=a(t[f],t,l,c,0,e);l+=d,0!==(c-=d)&&0!==(p=o(t[l+c-1],t,f,p,p-1,e))&&(c<=p?function(r,i,n,h){var l=0;for(l=0;l=7||v>=7);if(y)break;g<0&&(g=0),g+=2}if((s=g)<1&&(s=1),1===i){for(l=0;l=0;l--)t[v+l]=t[d+l];return void(t[p]=u[f])}var y=s;for(;;){var g=0,_=0,m=!1;do{if(e(u[f],t[c])<0){if(t[p--]=t[c--],g++,_=0,0==--i){m=!0;break}}else if(t[p--]=u[f--],_++,g=0,1==--h){m=!0;break}}while((g|_)=0;l--)t[v+l]=t[d+l];if(0===i){m=!0;break}}if(t[p--]=u[f--],1==--h){m=!0;break}if(0!==(_=h-o(t[c],u,0,h,h-1,e))){for(h-=_,v=(p-=_)+1,d=(f-=_)+1,l=0;l<_;l++)t[v+l]=u[d+l];if(h<=1){m=!0;break}}if(t[p--]=t[c--],0==--i){m=!0;break}y--}while(g>=7||_>=7);if(m)break;y<0&&(y=0),y+=2}(s=y)<1&&(s=1);if(1===h){for(v=(p-=i)+1,d=(c-=i)+1,l=i-1;l>=0;l--)t[v+l]=t[d+l];t[p]=u[f]}else{if(0===h)throw new Error;for(d=p-(h-1),l=0;l1;){var t=h-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]n[t+1])break;l(t)}},forceMergeRuns:function(){for(;h>1;){var t=h-2;t>0&&n[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((h=i(t,r,o,e))l&&(c=l),n(t,r,r+c,r+h,e),h=c}u.pushRun(r,h),u.mergeRuns(),a-=h,r+=h}while(0!==a);u.forceMergeRuns()}}}},"0655":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var i=r("8728");function n(t,e){return Math.abs(t-e)<1e-8}function o(t,e,r){var o=0,a=t[0];if(!a)return!1;for(var s=1;s=a)}}for(var f=this.__startIndex;f15)break}r.prevElClipPaths&&h.restore()};if(u)if(0===u.length)f=s.__endIndex;else for(var b=p.dpr,x=0;x0&&t>i[0]){for(h=0;ht);h++);s=r[i[h]]}if(i.splice(h+1,0,t),r[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(e.dom,u.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}else n.G("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var r=this._zlevelList,i=0;i0?.01:0),this._needsManuallyCompositing),c.__builtin__||n.G("ZLevel "+l+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,e(o),a=c),u.__dirty&s.a.REDARAW_BIT&&!u.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!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,n.k(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var r=this._layerConfig;r[t]?n.I(r[t],e,!0):r[t]=e;for(var i=0;ia)i.length=a;else for(var s=o;s=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var r=this.keyframes,i=r.length;if(this.interpolable)if(Object(s.u)(e)){var n=function(t){return Object(s.u)(t&&t[0])?2:1}(e);if(i>0&&this.arrDim!==n)return void(this.interpolable=!1);if(1===n&&"number"!=typeof e[0]||2===n&&"number"!=typeof e[0][0])return void(this.interpolable=!1);if(i>0){var o=r[i-1];this._isAllValueEqual&&(1===n&&d(e,o.value)||(this._isAllValueEqual=!1))}this.arrDim=n}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof e){var h=a.f(e);h?(e=h,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e)return void(this.interpolable=!1);if(this._isAllValueEqual&&i>0){o=r[i-1];(this.isValueColor&&!d(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1)}}var u={time:t,value:e,percent:0};return this.keyframes.push(u),u},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort((function(t,e){return t.time-e.time}));for(var r=this.arrDim,i=e.length,n=e[i-1],o=0;o0&&o!==i-1&&p(e[o].value,n.value,r);if(t&&this.needsAnimate()&&t.needsAnimate()&&r===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var a=e[0].value;for(o=0;o=0&&!(o[r].percent<=e);r--);r=Math.min(r,a-2)}else{for(r=this._lastFrame;re);r++);r=Math.min(r-1,a-2)}var f=o[r+1],p=o[r];if(p&&f){this._lastFrame=r,this._lastFramePercent=e;var d=f.percent-p.percent;if(0!==d){var g=(e-p.percent)/d,b=i?this._additiveValue:c?m:t[s];if((h>0||c)&&!b&&(b=this._additiveValue=[]),this.useSpline){var x=o[r][n],w=o[0===r?r:r-1][n],k=o[r>a-2?a-1:r+1][n],S=o[r>a-3?a-1:r+2][n];if(h>0)1===h?y(b,w,x,k,S,g,g*g,g*g*g):function(t,e,r,i,n,o,a,s){for(var h=e.length,u=e[0].length,l=0;l0)1===h?l(b,p[n],f[n],g):function(t,e,r,i){for(var n=e.length,o=n&&e[0].length,a=0;a.5?e:t}(p[n],f[n],g),i?this._additiveValue=O:t[s]=O}i&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,r=this.propName,i=this._additiveValue;0===e?this.isValueColor?(a.f(t[r],m),c(m,m,i,1),t[r]=_(m)):t[r]=t[r]+i:1===e?c(t[r],t[r],i,1):2===e&&f(t[r],t[r],i,1)},t}(),x=function(){function t(t,e,r){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(s.G)("Can' use additive animation on looped animation."):this._additiveAnimators=r}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,Object(s.F)(e))},t.prototype.whenWithKeys=function(t,e,r){for(var i=this._tracks,n=0;n0)){this._started=1;for(var r=this,i=[],n=0;n1){var a=o.pop();n.addKeyframe(a.time,t[i]),n.prepare(n.getAdditiveTrack())}}}},t}();e.b=x},"0da8":function(t,e,r){"use strict";var i=r("21a1"),n=r("19eb"),o=r("9850"),a=r("6d8b"),s=Object(a.j)({x:0,y:0},n.b),h={style:Object(a.j)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},n.a.style)};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.a)(e,t),e.prototype.createStyle=function(t){return Object(a.h)(s,t)},e.prototype._getSize=function(t){var e=this.style,r=e[t];if(null!=r)return r;var i,n=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!n)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?n[t]:n[t]/n[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return h},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.a(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(n.c);u.prototype.type="image",e.a=u},"0e50":function(t,e,r){"use strict";r.d(e,"d",(function(){return x})),r.d(e,"b",(function(){return O})),r.d(e,"c",(function(){return T})),r.d(e,"a",(function(){return C})),r.d(e,"e",(function(){return L}));var i=r("20c8"),n=r("4a3f"),o=r("6d8b"),a=r("401b"),s=r("c7a2"),h=r("4aa2"),u=i.a.CMD,l=2*Math.PI,c=["x","y"],f=["width","height"],p=[];function d(t,e){return Math.abs(t-e)<1e-5}function v(t){var e,r,i,n,o,a=t.data,s=t.len(),h=[],l=0,c=0,f=0,p=0;function v(t,r){e&&e.length>2&&h.push(e),e=[t,r]}function y(t,r,i,n){d(t,i)&&d(r,n)||e.push(t,r,i,n,i,n)}function g(t,r,i,n,o,a){var s=Math.abs(r-t),h=4*Math.tan(s/4)/3,u=rT:j2&&h.push(e),h}function y(t,e){var r=t.length,i=e.length;if(r===i)return[t,e];for(var o=r0)for(var S=i/r,O=-i/2;O<=i/2;O+=S){var T=Math.sin(O),C=Math.cos(O),A=0;for(w=0;wy.width?1:0,n=f[i],o=c[i],a=y[n]/e,u=y[o],p=0;p=w?n=r+w:e&&r-n>=w?n=r-w:!e&&r>n?n=r+(w-O(r-n)):e&&r0&&(this._ux=b(r/o.e/t)||0,this._uy=b(r/o.e/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this.addData(h.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 r=b(t-this._xi)>this._ux||b(e-this._yi)>this._uy||this._len<5;return this.addData(h.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},t.prototype.bezierCurveTo=function(t,e,r,i,n,o){return this.addData(h.C,t,e,r,i,n,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,r,i,n,o):this._ctx.bezierCurveTo(t,e,r,i,n,o)),this._xi=n,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,r,i){return this.addData(h.Q,t,e,r,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,r,i):this._ctx.quadraticCurveTo(t,e,r,i)),this._xi=r,this._yi=i,this},t.prototype.arc=function(t,e,r,i,n,o){S[0]=i,S[1]=n,T(S,o),i=S[0];var a=(n=S[1])-i;return this.addData(h.A,t,e,r,r,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,r,i,n,o),this._xi=g(n)*r+t,this._yi=_(n)*r+e,this},t.prototype.arcTo=function(t,e,r,i,n){return this._ctx&&this._ctx.arcTo(t,e,r,i,n),this},t.prototype.rect=function(t,e,r,i){return this._ctx&&this._ctx.rect(t,e,r,i),this.addData(h.R,t,e,r,i),this},t.prototype.closePath=function(){this.addData(h.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},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,r=0;ru.length&&(this._expandData(),u=this.data);for(var l=0;l0&&p<=t||l<0&&p>=t||0===l&&(c>0&&d<=e||c<0&&d>=e);)p+=l*(r=o[i=this._dashIdx]),d+=c*r,this._dashIdx=(i+1)%g,l>0&&ph||c>0&&du||a[i%2?"moveTo":"lineTo"](l>=0?v(p,t):y(p,t),c>=0?v(d,e):y(d,e));l=p-t,c=d-e,this._dashOffset=-m(l*l+c*c)},t.prototype._dashedBezierTo=function(t,e,r,i,n,o){var a,h,u,l,c,f=this._ctx,p=this._dashSum,d=this._dashOffset,v=this._lineDash,y=this._xi,g=this._yi,_=0,b=this._dashIdx,x=v.length,w=0;for(d<0&&(d=p+d),d%=p,a=0;a<1;a+=.1)h=Object(s.a)(y,t,r,n,a+.1)-Object(s.a)(y,t,r,n,a),u=Object(s.a)(g,e,i,o,a+.1)-Object(s.a)(g,e,i,o,a),_+=m(h*h+u*u);for(;bd);b++);for(a=(w-d)/_;a<=1;)l=Object(s.a)(y,t,r,n,a),c=Object(s.a)(g,e,i,o,a),b%2?f.moveTo(l,c):f.lineTo(l,c),a+=v[b]/_,b=(b+1)%x;b%2!=0&&f.lineTo(n,o),h=n-l,u=o-c,this._dashOffset=-m(h*h+u*u)},t.prototype._dashedQuadraticTo=function(t,e,r,i){var n=r,o=i;r=(r+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,r,i,n,o)},t.prototype.toStatic=function(){if(this._saveData){var t=this.data;t instanceof Array&&(t.length=this._len,k&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){c[0]=c[1]=p[0]=p[1]=Number.MAX_VALUE,f[0]=f[1]=d[0]=d[1]=-Number.MAX_VALUE;var t,e=this.data,r=0,o=0,s=0,u=0;for(t=0;tr||b(S)>i||p===e-1)&&(x=Math.sqrt(B*B+S*S),n=k,o=C);break;case h.C:var O=t[p++],T=t[p++],C=(k=t[p++],t[p++]),A=t[p++],j=t[p++];x=Object(s.d)(n,o,O,T,k,C,A,j,10),n=A,o=j;break;case h.Q:O=t[p++],T=t[p++],k=t[p++],C=t[p++];x=Object(s.k)(n,o,O,T,k,C,10),n=k,o=C;break;case h.A:var P=t[p++],D=t[p++],M=t[p++],L=t[p++],R=t[p++],I=t[p++],z=I+R;p+=1;t[p++];m&&(a=g(R)*M+P,u=_(R)*L+D),x=y(M,L)*v(w,Math.abs(I)),n=g(z)*M+P,o=_(z)*L+D;break;case h.R:a=n=t[p++],u=o=t[p++],x=2*t[p++]+2*t[p++];break;case h.Z:var B=a-n;S=u-o;x=Math.sqrt(B*B+S*S),n=a,o=u}x>=0&&(l[f++]=x,c+=x)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var r,i,n,o,a,c,f,p,d=this.data,m=this._ux,x=this._uy,w=this._len,k=e<1,S=0,O=0;if(!k||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,p=e*this._pathLen))t:for(var T=0;Tm||b(c-o)>x||T===w-1){if(k){if(S+(Q=f[O++])>p){var j=(p-S)/Q;t.lineTo(n*(1-j)+a*j,o*(1-j)+c*j);break t}S+=Q}t.lineTo(a,c),n=a,o=c}break;case h.C:var P=d[T++],D=d[T++],M=d[T++],L=d[T++],R=d[T++],I=d[T++];if(k){if(S+(Q=f[O++])>p){j=(p-S)/Q;Object(s.g)(n,P,M,R,j,u),Object(s.g)(o,D,L,I,j,l),t.bezierCurveTo(u[1],l[1],u[2],l[2],u[3],l[3]);break t}S+=Q}t.bezierCurveTo(P,D,M,L,R,I),n=R,o=I;break;case h.Q:P=d[T++],D=d[T++],M=d[T++],L=d[T++];if(k){if(S+(Q=f[O++])>p){j=(p-S)/Q;Object(s.n)(n,P,M,j,u),Object(s.n)(o,D,L,j,l),t.quadraticCurveTo(u[1],l[1],u[2],l[2]);break t}S+=Q}t.quadraticCurveTo(P,D,M,L),n=M,o=L;break;case h.A:var z=d[T++],B=d[T++],F=d[T++],E=d[T++],H=d[T++],N=d[T++],W=d[T++],X=!d[T++],G=F>E?F:E,Y=b(F-E)>.001,q=H+N,U=!1;if(k)S+(Q=f[O++])>p&&(q=H+N*(p-S)/Q,U=!0),S+=Q;if(Y&&t.ellipse?t.ellipse(z,B,F,E,W,H,q,X):t.arc(z,B,G,H,q,X),U)break t;A&&(r=g(H)*F+z,i=_(H)*E+B),n=g(q)*F+z,o=_(q)*E+B;break;case h.R:r=n=d[T],i=o=d[T+1],a=d[T++],c=d[T++];var Z=d[T++],V=d[T++];if(k){if(S+(Q=f[O++])>p){var K=p-S;t.moveTo(a,c),t.lineTo(a+v(K,Z),c),(K-=Z)>0&&t.lineTo(a+Z,c+v(K,V)),(K-=V)>0&&t.lineTo(a+y(Z-K,0),c+V),(K-=Z)>0&&t.lineTo(a,c+y(V-K,0));break t}S+=Q}t.rect(a,c,Z,V);break;case h.Z:if(k){var Q;if(S+(Q=f[O++])>p){j=(p-S)/Q;t.lineTo(n*(1-j)+r*j,o*(1-j)+i*j);break t}S+=Q}t.closePath(),n=r,o=i}}},t.CMD=h,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,void(e._uy=0)),t}();e.a=C},"21a1":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function n(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}Object.create;Object.create},"22d1":function(t,e,r){"use strict";var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},n=new function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(n.wxa=!0,n.canvasSupported=!0,n.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(n.worker=!0,n.canvasSupported=!0):"undefined"==typeof navigator?(n.node=!0,n.canvasSupported=!0,n.svgSupported=!0):function(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]);n&&(r.ie=!0,r.version=n[1]);o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18);a&&(r.weChat=!0);e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported="undefined"!=typeof document}(navigator.userAgent,n),e.a=n},"2cf4c":function(t,e,r){"use strict";r.d(e,"e",(function(){return n})),r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"c",(function(){return h}));var i=1;"undefined"!=typeof window&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var n=i,o=.4,a="#333",s="#ccc",h="#eee"},"2dc5":function(t,e,r){"use strict";var i=r("21a1"),n=r("6d8b"),o=r("d5b7"),a=r("9850"),s=function(t){function e(e){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(e),r}return Object(i.a)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,r=0;r=0&&(r.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replaceAt=function(t,e){var r=this._children,i=r[e];if(t&&t!==this&&t.parent!==this&&t!==i){r[e]=t,i.parent=null;var n=this.__zr;n&&i.removeSelfFromZr(n),this._doAdd(t)}return this},e.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()},e.prototype.remove=function(t){var e=this.__zr,r=this._children,i=n.r(r,t);return i<0||(r.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,r=0;r=4&&(u={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(u&&null!=a&&null!=h&&(l=P(u,a,h),!e.ignoreViewBox)){var p=i;(i=new n.a).add(p),p.scaleX=p.scaleY=l.scale,p.x=l.x,p.y=l.y}return e.ignoreRootClip||null==a||null==h||i.setClipPath(new s.a({shape:{x:0,y:0,width:a,height:h}})),{root:i,width:a,height:h,viewBoxRect:u,viewBoxTransform:l}},t.prototype._parseNode=function(t,e){var r,n,o=t.nodeName.toLowerCase();if("defs"===o?this._isDefine=!0:"text"===o&&(this._isText=!0),this._isDefine){if(n=x[o]){var a=n.call(this,t),s=t.getAttribute("id");s&&(this._defs[s]=a)}}else(n=i[o])&&(r=n.call(this,t,e),e.add(r));if(r)for(var h=t.firstChild;h;)1===h.nodeType&&this._parseNode(h,r),3===h.nodeType&&this._isText&&this._parseText(h,r),h=h.nextSibling;"defs"===o?this._isDefine=!1:"text"===o&&(this._isText=!1)},t.prototype._parseText=function(t,e){if(1===t.nodeType){var r=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(r),this._textY+=parseFloat(i)}var n=new g.a({style:{text:t.textContent},x:this._textX||0,y:this._textY||0});w(e,n),O(t,n,this._defs);var o=n.style,a=o.fontSize;a&&a<9&&(o.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var s=(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ");o.font=s;var h=n.getBoundingRect();return this._textX+=h.width,e.add(n),n},t.internalField=void(i={g:function(t,e){var r=new n.a;return w(e,r),O(t,r,this._defs),r},rect:function(t,e){var r=new s.a;return w(e,r),O(t,r,this._defs),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r},circle:function(t,e){var r=new a.a;return w(e,r),O(t,r,this._defs),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r},line:function(t,e){var r=new u.a;return w(e,r),O(t,r,this._defs),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r},ellipse:function(t,e){var r=new h.a;return w(e,r),O(t,r,this._defs),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r},polygon:function(t,e){var r,i=t.getAttribute("points");i&&(r=k(i));var n=new c.a({shape:{points:r||[]}});return w(e,n),O(t,n,this._defs),n},polyline:function(t,e){var r=new l.b;w(e,r),O(t,r,this._defs);var i,n=t.getAttribute("points");return n&&(i=k(n)),new f.a({shape:{points:i||[]}})},image:function(t,e){var r=new o.a;return w(e,r),O(t,r,this._defs),r.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r},text:function(t,e){var r=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new n.a;return w(e,s),O(t,s,this._defs),s},tspan:function(t,e){var r=t.getAttribute("x"),i=t.getAttribute("y");null!=r&&(this._textX=parseFloat(r)),null!=i&&(this._textY=parseFloat(i));var o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0,s=new n.a;return w(e,s),O(t,s,this._defs),this._textX+=o,this._textY+=a,s},path:function(t,e){var r=t.getAttribute("d")||"",i=Object(d.a)(r);return w(e,i),O(t,i,this._defs),i}}),t}(),x={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),r=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),n=parseInt(t.getAttribute("y2")||"0",10),o=new y.a(e,r,i,n);return function(t,e){var r=t.firstChild;for(;r;){if(1===r.nodeType){var i=r.getAttribute("offset"),n=void 0;n=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o=r.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}r=r.nextSibling}}(t,o),o}};function w(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(v.j)(e.__inheritedStyle,t.__inheritedStyle))}function k(t){for(var e=Object(v.T)(t).split(m),r=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],h=void 0;switch(n=n||p.c(),s){case"translate":h=Object(v.T)(a).split(m),p.i(n,n,[parseFloat(h[0]),parseFloat(h[1]||"0")]);break;case"scale":h=Object(v.T)(a).split(m),p.h(n,n,[parseFloat(h[0]),parseFloat(h[1]||h[0])]);break;case"rotate":h=Object(v.T)(a).split(m),p.g(n,n,parseFloat(h[0]));break;case"skew":h=Object(v.T)(a).split(m),console.warn("Skew transform is not supported yet");break;case"matrix":h=Object(v.T)(a).split(m),n[0]=parseFloat(h[0]),n[1]=parseFloat(h[1]),n[2]=parseFloat(h[2]),n[3]=parseFloat(h[3]),n[4]=parseFloat(h[4]),n[5]=parseFloat(h[5])}}e.setLocalTransform(n)}}(t,e),Object(v.m)(o,function(t){var e=t.getAttribute("style"),r={};if(!e)return r;var i,n={};j.lastIndex=0;for(;null!=(i=j.exec(e));)n[i[1]]=i[2];for(var o in S)S.hasOwnProperty(o)&&null!=n[o]&&(r[S[o]]=n[o]);return r}(t)),!i))for(var a in S)if(S.hasOwnProperty(a)){var s=t.getAttribute(a);null!=s&&(o[S[a]]=s)}n.style=n.style||{},null!=o.fill&&(n.style.fill=C(o.fill,r)),null!=o.stroke&&(n.style.stroke=C(o.stroke,r)),Object(v.k)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=o[t]&&(n.style[t]=parseFloat(o[t]))})),o.textBaseline&&"auto"!==o.textBaseline||(o.textBaseline="alphabetic"),"alphabetic"===o.textBaseline&&(o.textBaseline="bottom"),"start"===o.textAlign&&(o.textAlign="left"),"end"===o.textAlign&&(o.textAlign="right"),Object(v.k)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=o[t]&&(n.style[t]=o[t])})),o.lineDash&&(n.style.lineDash=Object(v.H)(Object(v.T)(o.lineDash).split(m),(function(t){return parseFloat(t)}))),n.__inheritedStyle=o}var T=/url\(\s*#(.*?)\)/;function C(t,e){var r=e&&t&&t.match(T);return r?e[Object(v.T)(r[1])]:t}var A=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function P(t,e,r){var i=e/t.width,n=r/t.height,o=Math.min(i,n);return{scale:o,x:-(t.x+t.width/2)*o+e/2,y:-(t.y+t.height/2)*o+r/2}}function D(t,e){return(new b).parse(t,e)}},"342d":function(t,e,r){"use strict";r.d(e,"a",(function(){return O})),r.d(e,"b",(function(){return T})),r.d(e,"c",(function(){return C}));var i=r("21a1"),n=r("cbe5"),o=r("20c8"),a=r("401b"),s=o.a.CMD,h=[[],[],[]],u=Math.sqrt,l=Math.atan2;var c=r("6d8b"),f=Math.sqrt,p=Math.sin,d=Math.cos,v=Math.PI;function y(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function g(t,e){return(t[0]*e[0]+t[1]*e[1])/(y(t)*y(e))}function _(t,e){return(t[0]*e[1]1&&(a*=f(b),s*=f(b));var x=(n===o?-1:1)*f((a*a*(s*s)-a*a*(m*m)-s*s*(y*y))/(a*a*(m*m)+s*s*(y*y)))||0,w=x*a*m/s,k=x*-s*y/a,S=(t+r)/2+d(c)*w-p(c)*k,O=(e+i)/2+p(c)*w+d(c)*k,T=_([1,0],[(y-w)/a,(m-k)/s]),C=[(y-w)/a,(m-k)/s],A=[(-1*y-w)/a,(-1*m-k)/s],j=_(C,A);if(g(C,A)<=-1&&(j=v),g(C,A)>=1&&(j=0),j<0){var P=Math.round(j/v*1e6)/1e6;j=2*v+P%2*v}l.addData(u,S,O,a,s,T,j,c,o)}var b=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,x=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.a)(e,t),e.prototype.applyTransform=function(t){},e}(n.b);function k(t){return null!=t.setData}function S(t,e){var r=function(t){var e=new o.a;if(!t)return e;var r,i=0,n=0,a=i,s=n,h=o.a.CMD,u=t.match(b);if(!u)return e;for(var l=0;l255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function h(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(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 l(t,e,r){return t+(e-t)*r}function c(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i.a(20),d=null;function v(t,e){d&&f(d,e),d=p.put(t,d||e.slice())}function y(t,e){if(t){e=e||[];var r=p.get(t);if(r)return f(e,r);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in n)return f(e,n[i]),v(t,e),e;var o,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(c(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(i.slice(4),16)/15:1),v(t,e),e):void c(e,0,0,0,1):7===a||9===a?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(c(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(i.slice(7),16)/255:1),v(t,e),e):void c(e,0,0,0,1):void 0;var u=i.indexOf("("),l=i.indexOf(")");if(-1!==u&&l+1===a){var d=i.substr(0,u),y=i.substr(u+1,l-(u+1)).split(","),_=1;switch(d){case"rgba":if(4!==y.length)return 3===y.length?c(e,+y[0],+y[1],+y[2],1):c(e,0,0,0,1);_=h(y.pop());case"rgb":return 3!==y.length?void c(e,0,0,0,1):(c(e,s(y[0]),s(y[1]),s(y[2]),_),v(t,e),e);case"hsla":return 4!==y.length?void c(e,0,0,0,1):(y[3]=h(y[3]),g(y,e),v(t,e),e);case"hsl":return 3!==y.length?void c(e,0,0,0,1):(g(y,e),v(t,e),e);default:return}}c(e,0,0,0,1)}}function g(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=h(t[1]),n=h(t[2]),a=n<=.5?n*(i+1):n+i-n*i,s=2*n-a;return c(e=e||[],o(255*u(s,a,r+1/3)),o(255*u(s,a,r)),o(255*u(s,a,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t,e){var r=y(t);if(r){for(var i=0;i<3;i++)r[i]=e<0?r[i]*(1-e)|0:(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return k(r,4===r.length?"rgba":"rgb")}}function m(t){var e=y(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function b(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var i=t*(e.length-1),n=Math.floor(i),s=Math.ceil(i),h=e[n],u=e[s],c=i-n;return r[0]=o(l(h[0],u[0],c)),r[1]=o(l(h[1],u[1],c)),r[2]=o(l(h[2],u[2],c)),r[3]=a(l(h[3],u[3],c)),r}}function x(t,e,r,i){var n,o=y(t);if(t)return o=function(t){if(t){var e,r,i=t[0]/255,n=t[1]/255,o=t[2]/255,a=Math.min(i,n,o),s=Math.max(i,n,o),h=s-a,u=(s+a)/2;if(0===h)e=0,r=0;else{r=u<.5?h/(s+a):h/(2-s-a);var l=((s-i)/6+h/2)/h,c=((s-n)/6+h/2)/h,f=((s-o)/6+h/2)/h;i===s?e=f-c:n===s?e=1/3+l-f:o===s&&(e=2/3+c-l),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,r,u];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(n=e,(n=Math.round(n))<0?0:n>360?360:n)),null!=r&&(o[1]=h(r)),null!=i&&(o[2]=h(i)),k(g(o),"rgba")}function w(t,e){var r=y(t);if(r&&null!=e)return r[3]=a(e),k(r,"rgba")}function k(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+")"}}function S(t,e){var r=y(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}},"42e5":function(t,e,r){"use strict";var i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();e.a=i},4573:function(t,e,r){"use strict";var i=r("21a1"),n=r("cbe5"),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(i.a)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var r=e.cx,i=e.cy,n=2*Math.PI;t.moveTo(r+e.r,i),t.arc(r,i,e.r,0,n,!1),t.moveTo(r+e.r0,i),t.arc(r,i,e.r0,0,n,!0)},e}(n.b);a.prototype.type="ring",e.a=a},4755:function(t,e,r){"use strict";var i=Math.round(9*Math.random()),n=function(){function t(){this._id="__ec_inner_"+i++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var r=this._guard(t);return"function"==typeof Object.defineProperty?Object.defineProperty(r,this._id,{value:e,enumerable:!1,configurable:!0}):r[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();e.a=n},"48a9":function(t,e,r){"use strict";var i=r("21a1"),n=function(t){function e(e,r,i,n,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==r?0:r,s.x2=null==i?1:i,s.y2=null==n?0:n,s.type="linear",s.global=a||!1,s}return Object(i.a)(e,t),e}(r("42e5").a);e.a=n},"4a3f":function(t,e,r){"use strict";r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return p})),r.d(e,"f",(function(){return d})),r.d(e,"c",(function(){return v})),r.d(e,"g",(function(){return y})),r.d(e,"e",(function(){return g})),r.d(e,"d",(function(){return _})),r.d(e,"h",(function(){return m})),r.d(e,"i",(function(){return b})),r.d(e,"m",(function(){return x})),r.d(e,"j",(function(){return w})),r.d(e,"n",(function(){return k})),r.d(e,"l",(function(){return S})),r.d(e,"k",(function(){return O}));var i=r("401b"),n=Math.pow,o=Math.sqrt,a=o(3),s=Object(i.e)(),h=Object(i.e)(),u=Object(i.e)();function l(t){return t>-1e-8&&t<1e-8}function c(t){return t>1e-8||t<-1e-8}function f(t,e,r,i,n){var o=1-n;return o*o*(o*t+3*n*e)+n*n*(n*i+3*o*r)}function p(t,e,r,i,n){var o=1-n;return 3*(((e-t)*o+2*(r-e)*n)*o+(i-r)*n*n)}function d(t,e,r,i,s,h){var u=i+3*(e-r)-t,c=3*(r-2*e+t),f=3*(e-t),p=t-s,d=c*c-3*u*f,v=c*f-9*u*p,y=f*f-3*c*p,g=0;if(l(d)&&l(v)){if(l(c))h[0]=0;else(A=-f/c)>=0&&A<=1&&(h[g++]=A)}else{var _=v*v-4*d*y;if(l(_)){var m=v/d,b=-m/2;(A=-c/u+m)>=0&&A<=1&&(h[g++]=A),b>=0&&b<=1&&(h[g++]=b)}else if(_>0){var x=o(_),w=d*c+1.5*u*(-v+x),k=d*c+1.5*u*(-v-x);(A=(-c-((w=w<0?-n(-w,1/3):n(w,1/3))+(k=k<0?-n(-k,1/3):n(k,1/3))))/(3*u))>=0&&A<=1&&(h[g++]=A)}else{var S=(2*d*c-3*u*v)/(2*o(d*d*d)),O=Math.acos(S)/3,T=o(d),C=Math.cos(O),A=(-c-2*T*C)/(3*u),j=(b=(-c+T*(C+a*Math.sin(O)))/(3*u),(-c+T*(C-a*Math.sin(O)))/(3*u));A>=0&&A<=1&&(h[g++]=A),b>=0&&b<=1&&(h[g++]=b),j>=0&&j<=1&&(h[g++]=j)}}return g}function v(t,e,r,i,n){var a=6*r-12*e+6*t,s=9*e+3*i-3*t-9*r,h=3*e-3*t,u=0;if(l(s)){if(c(a))(p=-h/a)>=0&&p<=1&&(n[u++]=p)}else{var f=a*a-4*s*h;if(l(f))n[0]=-a/(2*s);else if(f>0){var p,d=o(f),v=(-a-d)/(2*s);(p=(-a+d)/(2*s))>=0&&p<=1&&(n[u++]=p),v>=0&&v<=1&&(n[u++]=v)}}return u}function y(t,e,r,i,n,o){var a=(e-t)*n+t,s=(r-e)*n+e,h=(i-r)*n+r,u=(s-a)*n+a,l=(h-s)*n+s,c=(l-u)*n+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=l,o[6]=h,o[7]=i}function g(t,e,r,n,a,l,c,p,d,v,y){var g,_,m,b,x,w=.005,k=1/0;s[0]=d,s[1]=v;for(var S=0;S<1;S+=.05)h[0]=f(t,r,a,c,S),h[1]=f(e,n,l,p,S),(b=Object(i.g)(s,h))=0&&b=0&&p<=1&&(n[u++]=p)}else{var f=s*s-4*a*h;if(l(f))(p=-s/(2*a))>=0&&p<=1&&(n[u++]=p);else if(f>0){var p,d=o(f),v=(-s-d)/(2*a);(p=(-s+d)/(2*a))>=0&&p<=1&&(n[u++]=p),v>=0&&v<=1&&(n[u++]=v)}}return u}function w(t,e,r){var i=t+r-2*e;return 0===i?.5:(t-e)/i}function k(t,e,r,i,n){var o=(e-t)*i+t,a=(r-e)*i+e,s=(a-o)*i+o;n[0]=t,n[1]=o,n[2]=s,n[3]=s,n[4]=a,n[5]=r}function S(t,e,r,n,a,l,c,f,p){var d,v=.005,y=1/0;s[0]=c,s[1]=f;for(var g=0;g<1;g+=.05){h[0]=m(t,r,a,g),h[1]=m(e,n,l,g),(w=Object(i.g)(s,h))=0&&wM*M+L*L&&(T=A,C=j),{cx:T,cy:C,x01:-l,y01:-c,x11:T*(n/k-1),y11:C*(n/k-1)}}function _(t,e){var r=d(e.r,0),i=d(e.r0||0,0),n=r>0;if(n||i>0){if(n||(r=i,i=0),i>r){var _=r;r=i,i=_}var m,b=!!e.clockwise,x=e.startAngle,w=e.endAngle;if(x===w)m=0;else{var k=[x,w];Object(o.b)(k,!b),m=f(k[0]-k[1])}var S=e.cx,O=e.cy,T=e.cornerRadius||0,C=e.innerCornerRadius||0;if(r>y)if(m>s-y)t.moveTo(S+r*u(x),O+r*h(x)),t.arc(S,O,r,x,w,!b),i>y&&(t.moveTo(S+i*u(w),O+i*h(w)),t.arc(S,O,i,w,x,b));else{var A=f(r-i)/2,j=v(A,T),P=v(A,C),D=P,M=j,L=r*u(x),R=r*h(x),I=i*u(w),z=i*h(w),B=void 0,F=void 0,E=void 0,H=void 0;if((j>y||P>y)&&(B=r*u(w),F=r*h(w),E=i*u(x),H=i*h(x),my)if(M>y){var Z=g(E,H,L,R,r,M,b),V=g(B,F,I,z,r,M,b);t.moveTo(S+Z.cx+Z.x01,O+Z.cy+Z.y01),My&&m>y)if(D>y){Z=g(I,z,B,F,i,-D,b),V=g(L,R,E,H,i,-D,b);t.lineTo(S+Z.cx+Z.x01,O+Z.cy+Z.y01),D=2){if(o&&"spline"!==o){var s=function(t,e,r,n){var o,a,s,h,u=[],l=[],c=[],f=[];if(n){s=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,d=t.length;pr-2?r-1:l+1],v=t[l>r-3?r-1:l+2]);var y=c*c,g=c*y;o.push([n(f[0],p[0],d[0],v[0],c,y,g),n(f[1],p[1],d[1],v[1],c,y,g)])}return o}(a,r)),t.moveTo(a[0][0],a[0][1]);u=1;for(var p=a.length;u0))}function g(t){var e=t.fill;return null!=e&&"none"!==e}function _(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function m(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function b(t,e,r){var i=Object(o.a)(e.image,e.__image,r);if(Object(o.c)(i)){var n=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix){var a=new DOMMatrix;a.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),a.scaleSelf(e.scaleX||1,e.scaleY||1),a.translateSelf(e.x||0,e.y||0),n.setTransform(a)}return n}}var x=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k(t,e,r,n,o){var a=!1;if(!n&&e===(r=r||{}))return!1;(n||e.opacity!==r.opacity)&&(a||(T(t,o),a=!0),t.globalAlpha=null==e.opacity?i.b.opacity:e.opacity),(n||e.blend!==r.blend)&&(a||(T(t,o),a=!0),t.globalCompositeOperation=e.blend||i.b.blend);for(var s=0;s0&&Object(f.a)(r.lineDash,r.lineWidth),M=r.lineDashOffset,L=!!t.setLineDash,R=e.getGlobalScale();if(p.setScale(R[0],R[1],e.segmentIgnoreThreshold),D){var I=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;I&&1!==I&&(D=Object(c.H)(D,(function(t){return t/I})),M/=I)}var z=!0;(l||e.__dirty&s.b.SHAPE_CHANGED_BIT||D&&!L&&n)&&(p.setDPR(t.dpr),u?p.setContext(null):(p.setContext(t),z=!1),p.reset(),D&&!L&&(p.setLineDash(D),p.setLineDashOffset(M)),e.buildPath(p,e.shape,i),p.toStatic(),e.pathUpdated()),z&&p.rebuildPath(t,u?h:1),D&&L&&(t.setLineDash(D),t.lineDashOffset=M),i||(r.strokeFirst?(n&&m(t,r),o&&_(t,r)):(o&&_(t,r),n&&m(t,r))),D&&L&&t.setLineDash([])}(t,e,I,R),R&&(r.batchFill=I.fill||"",r.batchStroke=I.stroke||"")):e instanceof u.a?(3!==r.lastDrawType&&(P=!0,r.lastDrawType=3),S(t,e,D,P,r),function(t,e,r){var i=r.text;if(null!=i&&(i+=""),i){t.font=r.font||l.a,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var n=void 0;if(t.setLineDash){var o=r.lineDash&&r.lineWidth>0&&Object(f.a)(r.lineDash,r.lineWidth),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=Object(c.H)(o,(function(t){return t/s})),a/=s),t.setLineDash(o),t.lineDashOffset=a,n=!0}}r.strokeFirst?(y(r)&&t.strokeText(i,r.x,r.y),g(r)&&t.fillText(i,r.x,r.y)):(g(r)&&t.fillText(i,r.x,r.y),y(r)&&t.strokeText(i,r.x,r.y)),n&&t.setLineDash([])}}(t,e,I)):e instanceof h.a?(2!==r.lastDrawType&&(P=!0,r.lastDrawType=2),function(t,e,r,i,n){k(t,C(e,n.inHover),r&&C(r,n.inHover),i,n)}(t,e,D,P,r),function(t,e,r){var i=e.__image=Object(o.a)(r.image,e.__image,e,e.onload);if(i&&Object(o.c)(i)){var n=r.x||0,a=r.y||0,s=e.getWidth(),h=e.getHeight(),u=i.width/i.height;if(null==s&&null!=h?s=h*u:null==h&&null!=s?h=s/u:null==s&&null==h&&(s=i.width,h=i.height),r.sWidth&&r.sHeight){var l=r.sx||0,c=r.sy||0;t.drawImage(i,l,c,r.sWidth,r.sHeight,n,a,s,h)}else if(r.sx&&r.sy){var f=s-(l=r.sx),p=h-(c=r.sy);t.drawImage(i,l,c,f,p,n,a,s,h)}else t.drawImage(i,n,a,s,h)}}(t,e,I)):e instanceof d.a&&(4!==r.lastDrawType&&(P=!0,r.lastDrawType=4),function(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(o=e.getCursor(),a=i.length;o=0){var n="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];n&&h(t,n,e,r)}else{h(t,e,e,r);var o=function(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(null==r||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(r))*(i>0?-1:i<0?1:r>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&a.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function f(t,e,r,i){o?t.addEventListener(e,r,i):t.attachEvent("on"+e,r)}function p(t,e,r,i){o?t.removeEventListener(e,r,i):t.detachEvent("on"+e,r)}var d=o?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function v(t){return 2===t.which||3===t.which}},"608a":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var i=r("6d8b");function n(t,e){return t&&"solid"!==t&&e>0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(i.y)(t)?[t]:Object(i.t)(t)?t:null):null}},"65ed":function(t,e,r){"use strict";r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return l}));var i=r("22d1"),n=Math.log(2);function o(t,e,r,i,a,s){var h=i+"-"+a,u=t.length;if(s.hasOwnProperty(h))return s[h];if(1===e){var l=Math.round(Math.log((1<>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[h]+":0",n[u]+":0",i[1-h]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(a),r.push(a)}return r}(e,s),s,o);if(h)return h(t,r,n),!0}return!1}function l(t){return"CANVAS"===t.nodeName.toUpperCase()}},"68ab":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var i=r("4a3f");function n(t,e,r,n,o,a,s,h,u){if(0===s)return!1;var l=s;return!(u>e+l&&u>n+l&&u>a+l||ut+l&&h>r+l&&h>o+l||h1&&n&&n.length>1){var a=f(n)/f(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=n)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function d(){l.g(this.event)}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Object(o.a)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(u.a),y=function(t,e){this.x=t,this.y=e},g=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_=function(t){function e(e,r,i,n){var o=t.call(this)||this;return o._hovered=new y(0,0),o.storage=e,o.painter=r,o.painterRoot=n,i=i||new v,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new h(o),o}return Object(o.a)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(n.k(g,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,r=t.zrY,i=b(this,e,r),n=this._hovered,o=n.target;o&&!o.__zr&&(o=(n=this.findHover(n.x,n.y)).target);var a=this._hovered=i?new y(e,r):this.findHover(e,r),s=a.target,h=this.proxy;h.setCursor&&h.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.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})},e.prototype.resize=function(){this._hovered=new y(0,0)},e.prototype.dispatch=function(t,e){var r=this[t];r&&r.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,r){var i=(t=t||{}).target;if(!i||!i.silent){for(var n="on"+e,o=function(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:d}}(e,t,r);i&&(i[n]&&(o.cancelBubble=!!i[n].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[n]&&t[n].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,r){for(var i=this.storage.getDisplayList(),n=new y(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==r&&!i[o].ignore&&(a=m(i[o],t,e))&&(!n.topTarget&&(n.topTarget=i[o]),"silent"!==a)){n.target=i[o];break}}return n},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new c);var r=this._gestureMgr;"start"===e&&r.clear();var i=r.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&r.clear(),i){var n=i.type;t.gestureEvent=n;var o=new y;o.target=i.target,this.dispatchToElement(o,n,i.event)}},e}(u.a);function m(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,r))return!1;i.silent&&(n=!0)}var s=i.__hostTarget;i=s||i.parent}return!n||"silent"}return!1}function b(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}n.k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){_.prototype[t]=function(e){var r,i,n=e.zrX,o=e.zrY,s=b(this,n,o);if("mouseup"===t&&s||(i=(r=this.findHover(n,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.f(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,t,e)}}));var x=_,w=r("d5b7"),k=r("04f6"),S=!1;function O(){S||(S=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function T(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var C,A,j=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=T}return t.prototype.traverse=function(t,e){for(var r=0;r0&&(u.__clipPaths=[]),isNaN(u.z)&&(O(),u.z=0),isNaN(u.z2)&&(O(),u.z2=0),isNaN(u.zlevel)&&(O(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var l=t.getDecalElement&&t.getDecalElement();l&&this._updateAndAddDisplayable(l,e,r);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,r);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,r)}},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,r=t.length;e=0&&this._roots.splice(i,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}(),P=r("98b7"),D=r("06ad"),M=function(t){function e(e){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,e=e||{},r.stage=e.stage||{},r.onframe=e.onframe||function(){},r}return Object(o.a)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,r=t.next;e?e.next=r:this._clipsHead=r,r?r.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,r=e-this._time,i=this._clipsHead;i;){var n=i.next;i.step(e,r)?(i.ondestroy&&i.ondestroy(),this.removeClip(i),i=n):i=n}this._time=e,t||(this.onframe(r),this.trigger("frame",r),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Object(P.a)((function e(){t._running&&(Object(P.a)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return null==this._clipsHead},e.prototype.animate=function(t,e){e=e||{},this.start();var r=new D.b(t,e.loop);return this.addAnimator(r),r},e}(u.a),L=i.a.domSupported,R=(A={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:C=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:n.H(C,(function(t){var e=t.replace("mouse","pointer");return A.hasOwnProperty(e)?e:t}))}),I=["mousemove","mouseup"],z=["pointermove","pointerup"],B=!1;function F(t){var e=t.pointerType;return"pen"===e||"touch"===e}function E(t){t&&(t.zrByTouch=!0)}function H(t,e){for(var r=e,i=!1;r&&9!==r.nodeType&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var N=function(t,e){this.stopPropagation=n.L,this.stopImmediatePropagation=n.L,this.preventDefault=n.L,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},W={mousedown:function(t){t=Object(l.e)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Object(l.e)(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=Object(l.e)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){H(this,(t=Object(l.e)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){B=!0,t=Object(l.e)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){B||(t=Object(l.e)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){E(t=Object(l.e)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),W.mousemove.call(this,t),W.mousedown.call(this,t)},touchmove:function(t){E(t=Object(l.e)(this.dom,t)),this.handler.processGesture(t,"change"),W.mousemove.call(this,t)},touchend:function(t){E(t=Object(l.e)(this.dom,t)),this.handler.processGesture(t,"end"),W.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&W.click.call(this,t)},pointerdown:function(t){W.mousedown.call(this,t)},pointermove:function(t){F(t)||W.mousemove.call(this,t)},pointerup:function(t){W.mouseup.call(this,t)},pointerout:function(t){F(t)||W.mouseout.call(this,t)}};n.k(["click","dblclick","contextmenu"],(function(t){W[t]=function(e){e=Object(l.e)(this.dom,e),this.trigger(t,e)}}));var X={pointermove:function(t){F(t)||X.mousemove.call(this,t)},pointerup:function(t){X.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function G(t,e){var r=e.domHandlers;i.a.pointerEventsSupported?n.k(R.pointer,(function(i){q(e,i,(function(e){r[i].call(t,e)}))})):(i.a.touchEventsSupported&&n.k(R.touch,(function(i){q(e,i,(function(n){r[i].call(t,n),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),n.k(R.mouse,(function(i){q(e,i,(function(n){n=Object(l.c)(n),e.touching||r[i].call(t,n)}))})))}function Y(t,e){function r(r){q(e,r,(function(i){i=Object(l.c)(i),H(t,i.target)||(i=function(t,e){return Object(l.e)(t.dom,new N(t,e),!0)}(t,i),e.domHandlers[r].call(t,i))}),{capture:!0})}i.a.pointerEventsSupported?n.k(z,r):i.a.touchEventsSupported||n.k(I,r)}function q(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,Object(l.a)(t.domTarget,e,r,i)}function U(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&Object(l.f)(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Z=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},V=function(t){function e(e,r){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=r,i._localHandlerScope=new Z(e,W),L&&(i._globalHandlerScope=new Z(document,X)),G(i,i._localHandlerScope),i}return Object(o.a)(e,t),e.prototype.dispose=function(){U(this._localHandlerScope),L&&U(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,L&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Y(this,e):U(e)}},e}(u.a),K=r("41ef"),Q=r("2cf4c"),$=r("2dc5"),J=!i.a.canvasSupported,tt={},et={};var rt=function(){function t(t,e,r){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=e,this.id=t;var a=new j,s=r.renderer||"canvas";if(J)throw new Error("IE8 support has been dropped since 5.0");if(tt[s]||(s=n.F(tt)[0]),!tt[s])throw new Error("Renderer '"+s+"' is not imported. Please import it first.");r.useDirtyRect=null!=r.useDirtyRect&&r.useDirtyRect;var h=new tt[s](e,a,r,t);this.storage=a,this.painter=h;var u=i.a.node||i.a.worker?null:new V(h.getViewportRoot(),h.root);this.handler=new x(a,h,u,h.root),this.animation=new M({stage:{update:function(){return o._flush(!0)}}}),this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Object(K.c)(t,1)0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(t){},t.prototype.removeHover=function(t){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},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,r){return this.handler.on(t,e,r),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,R=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=a.calculatedLineHeight,z=0;z=0&&"right"===(M=S[D]).align;)this._placeToken(M,t,T,g,P,"right",m),C-=M.width,P-=M.width,D--;for(j+=(i-(j-y)-(_-P)-C)/2;A<=D;)M=S[A],this._placeToken(M,t,T,g,j+M.width/2,"center",m),j+=M.width,A++;g+=T}},e.prototype._placeToken=function(t,e,r,i,n,h,u){var c=e.rich[t.styleName]||{};c.text=t.text;var f=t.verticalAlign,p=i+r/2;"top"===f?p=i+t.height/2:"bottom"===f&&(p=i+r-t.height/2),!t.isLineHolder&&w(c)&&this._renderBackground(c,e,"right"===h?n-t.width:"center"===h?n-t.width/2:n,p-t.height/2,t.width,t.height);var d=!!c.backgroundColor,v=t.textPadding;v&&(n=b(n,h,v),p-=t.height/2-v[0]-t.innerHeight/2);var y=this._getOrCreateChild(o.a),g=y.createStyle();y.useStyle(g);var _=this._defaultStyle,x=!1,k=0,S=m("fill"in c?c.fill:"fill"in e?e.fill:(x=!0,_.fill)),O=m("stroke"in c?c.stroke:"stroke"in e?e.stroke:d||u||_.autoStroke&&!x?null:(k=2,_.stroke)),T=c.textShadowBlur>0||e.textShadowBlur>0;g.text=t.text,g.x=n,g.y=p,T&&(g.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,g.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",g.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,g.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),g.textAlign=h,g.textBaseline="middle",g.font=t.font||s.a,g.opacity=Object(a.Q)(c.opacity,e.opacity,1),O&&(g.lineWidth=Object(a.Q)(c.lineWidth,e.lineWidth,k),g.lineDash=Object(a.P)(c.lineDash,e.lineDash),g.lineDashOffset=e.lineDashOffset||0,g.stroke=O),S&&(g.fill=S);var C=t.contentWidth,A=t.contentHeight;y.setBoundingRect(new l.a(Object(s.b)(g.x,C,g.textAlign),Object(s.c)(g.y,A,g.textBaseline),C,A))},e.prototype._renderBackground=function(t,e,r,i,n,o){var s,l,c,f=t.backgroundColor,p=t.borderWidth,d=t.borderColor,v=Object(a.C)(f),y=t.borderRadius,g=this;if(v||p&&d){(s=this._getOrCreateChild(u.a)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=r,_.y=i,_.width=n,_.height=o,_.r=y,s.dirtyShape()}if(v)(c=s.style).fill=f||null,c.fillOpacity=Object(a.P)(t.fillOpacity,1);else if(f&&f.image){(l=this._getOrCreateChild(h.a)).onload=function(){g.dirtyStyle()};var m=l.style;m.image=f.image,m.x=r,m.y=i,m.width=n,m.height=o}p&&d&&((c=s.style).lineWidth=p,c.stroke=d,c.strokeOpacity=Object(a.P)(t.strokeOpacity,1),c.lineDash=t.borderDash,c.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2));var b=(s||l).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Object(a.Q)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var r="";r="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,r,t.fontFamily||"sans-serif"].join(" ")}return e&&Object(a.T)(e)||t.textFont||t.font},e}(f.c),y={left:!0,right:1,center:1},g={top:1,bottom:1,middle:1};function _(t){if(t){t.font=v.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||y[e]?e:"left";var r=t.verticalAlign;"center"===r&&(r="middle"),t.verticalAlign=null==r||g[r]?r:"top",t.padding&&(t.padding=Object(a.M)(t.padding))}}function m(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function b(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}function x(t){var e=t.text;return null!=e&&(e+=""),e}function w(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}e.a=v},"857d":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var i=2*Math.PI;function n(t){return(t%=i)<0&&(t+=i),t}},8582:function(t,e,r){"use strict";var i=r("1687"),n=r("401b"),o=i.d;function a(t){return t>5e-5||t<-5e-5}var s=[],h=[],u=i.c(),l=Math.abs,c=function(){function t(){}var e;return t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return a(this.rotation)||a(this.x)||a(this.y)||a(this.scaleX-1)||a(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,r=this.needLocalTransform(),n=this.transform;r||e?(n=n||i.c(),r?this.getLocalTransform(n):o(n),e&&(r?i.f(n,t.transform,n):i.b(n,t.transform)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(s);var r=s[0]<0?-1:1,n=s[1]<0?-1:1,o=((s[0]-r)*e+r)/s[0]||0,a=((s[1]-n)*e+n)/s[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.c(),i.e(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3];a(e-1)&&(e=Math.sqrt(e)),a(r-1)&&(r=Math.sqrt(r)),t[0]<0&&(e=-e),t[3]<0&&(r=-r),this.rotation=Math.atan2(-t[1]/r,t[0]/e),e<0&&r<0&&(this.rotation+=Math.PI,e=-e,r=-r),this.x=t[4],this.y=t[5],this.scaleX=e,this.scaleY=r}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.f(h,t.invTransform,e),e=h);var r=this.originX,n=this.originY;(r||n)&&(u[4]=r,u[5]=n,i.f(h,e,u),h[4]-=r,h[5]-=n,e=h),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var r=[t,e],i=this.invTransform;return i&&n.b(r,r,i),r},t.prototype.transformCoordToGlobal=function(t,e){var r=[t,e],i=this.transform;return i&&n.b(r,r,i),r},t.prototype.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},t.getLocalTransform=function(t,e){o(e=e||[]);var r=t.originX||0,n=t.originY||0,a=t.scaleX,s=t.scaleY,h=t.rotation||0,u=t.x,l=t.y;return e[4]-=r,e[5]-=n,e[0]*=a,e[1]*=s,e[2]*=a,e[3]*=s,e[4]*=a,e[5]*=s,h&&i.g(e,e,h),e[4]+=r,e[5]+=n,e[4]+=u,e[5]+=l,e},t.initDefaultProps=((e=t.prototype).x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.rotation=0,void(e.globalScaleRatio=1)),t}();e.a=c},8728:function(t,e,r){"use strict";function i(t,e,r,i,n,o){if(o>e&&o>i||on?s:0}r.d(e,"a",(function(){return i}))},"87b1":function(t,e,r){"use strict";var i=r("21a1"),n=r("cbe5"),o=r("4fac"),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return Object(i.a)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.a(t,e,!0)},e}(n.b);s.prototype.type="polygon",e.a=s},"8d32":function(t,e,r){"use strict";var i=r("21a1"),n=r("cbe5"),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return Object(i.a)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var r=e.cx,i=e.cy,n=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,h=Math.cos(o),u=Math.sin(o);t.moveTo(h*n+r,u*n+i),t.arc(r,i,n,o,a,!s)},e}(n.b);a.prototype.type="arc",e.a=a},9680:function(t,e,r){"use strict";function i(t,e,r,i,n,o,a){if(0===n)return!1;var s=n,h=0;if(a>e+s&&a>i+s||at+s&&o>r+s||og&&(g=w,_g&&(g=k,b=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.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,r,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],c=i[3],f=i[4],p=i[5];return e.x=r.x*n+f,e.y=r.y*c+p,e.width=r.width*n,e.height=r.height*c,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=u.x=r.x,s.y=l.y=r.y,h.x=l.x=r.x+r.width,h.y=u.y=r.y+r.height,s.transform(i),l.transform(i),h.transform(i),u.transform(i),e.x=o(s.x,h.x,u.x,l.x),e.y=o(s.y,h.y,u.y,l.y);var d=a(s.x,h.x,u.x,l.x),v=a(s.y,h.y,u.y,l.y);e.width=d-e.x,e.height=v-e.y}else e!==r&&t.copy(e,r)},t}();e.a=p},"98b7":function(t,e,r){"use strict";var i;i="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e.a=i},"9cf9":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return a}));var i=Math.round;function n(t,e,r){if(e){var n=e.x1,o=e.x2,s=e.y1,h=e.y2;t.x1=n,t.x2=o,t.y1=s,t.y2=h;var u=r&&r.lineWidth;return u?(i(2*n)===i(2*o)&&(t.x1=t.x2=a(n,u,!0)),i(2*s)===i(2*h)&&(t.y1=t.y2=a(s,u,!0)),t):t}}function o(t,e,r){if(e){var i=e.x,n=e.y,o=e.width,s=e.height;t.x=i,t.y=n,t.width=o,t.height=s;var h=r&&r.lineWidth;return h?(t.x=a(i,h,!0),t.y=a(n,h,!0),t.width=Math.max(a(i+o,h,!1)-t.x,0===o?0:1),t.height=Math.max(a(n+s,h,!1)-t.y,0===s?0:1),t):t}}function a(t,e,r){if(!e)return t;var n=i(2*t);return(n+i(e))%2==0?n/2:(n+(r?1:-1))/2}},ac0f:function(t,e,r){"use strict";var i=r("21a1"),n=r("cbe5"),o=r("401b"),a=r("4a3f"),s=[],h=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u(t,e,r){var i=t.cpx2,n=t.cpy2;return null===i||null===n?[(r?a.b:a.a)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?a.b:a.a)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?a.i:a.h)(t.x1,t.cpx1,t.x2,e),(r?a.i:a.h)(t.y1,t.cpy1,t.y2,e)]}var l=function(t){function e(e){return t.call(this,e)||this}return Object(i.a)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new h},e.prototype.buildPath=function(t,e){var r=e.x1,i=e.y1,n=e.x2,o=e.y2,h=e.cpx1,u=e.cpy1,l=e.cpx2,c=e.cpy2,f=e.percent;0!==f&&(t.moveTo(r,i),null==l||null==c?(f<1&&(Object(a.n)(r,h,n,f,s),h=s[1],n=s[2],Object(a.n)(i,u,o,f,s),u=s[1],o=s[2]),t.quadraticCurveTo(h,u,n,o)):(f<1&&(Object(a.g)(r,h,l,n,f,s),h=s[1],l=s[2],n=s[3],Object(a.g)(i,u,c,o,f,s),u=s[1],c=s[2],o=s[3]),t.bezierCurveTo(h,u,l,c,n,o)))},e.prototype.pointAt=function(t){return u(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=u(this.shape,t,!0);return o.m(e,e)},e}(n.b);l.prototype.type="bezier-curve",e.a=l},ae69:function(t,e,r){"use strict";var i=r("21a1"),n=r("cbe5"),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(i.a)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var r=.5522848,i=e.cx,n=e.cy,o=e.rx,a=e.ry,s=o*r,h=a*r;t.moveTo(i-o,n),t.bezierCurveTo(i-o,n-h,i-s,n-a,i,n-a),t.bezierCurveTo(i+s,n-a,i+o,n-h,i+o,n),t.bezierCurveTo(i+o,n+h,i+s,n+a,i,n+a),t.bezierCurveTo(i-s,n+a,i-o,n+h,i-o,n),t.closePath()},e}(n.b);a.prototype.type="ellipse",e.a=a},c7a2:function(t,e,r){"use strict";var i=r("21a1"),n=r("cbe5");var o=r("9cf9"),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},h=function(t){function e(e){return t.call(this,e)||this}return Object(i.a)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var r,i,n,a;if(this.subPixelOptimize){var h=Object(o.c)(s,e,this.style);r=h.x,i=h.y,n=h.width,a=h.height,h.r=e.r,e=h}else r=e.x,i=e.y,n=e.width,a=e.height;e.r?function(t,e){var r,i,n,o,a,s=e.x,h=e.y,u=e.width,l=e.height,c=e.r;u<0&&(s+=u,u=-u),l<0&&(h+=l,l=-l),"number"==typeof c?r=i=n=o=c:c instanceof Array?1===c.length?r=i=n=o=c[0]:2===c.length?(r=n=c[0],i=o=c[1]):3===c.length?(r=c[0],i=o=c[1],n=c[2]):(r=c[0],i=c[1],n=c[2],o=c[3]):r=i=n=o=0,r+i>u&&(r*=u/(a=r+i),i*=u/a),n+o>u&&(n*=u/(a=n+o),o*=u/a),i+n>l&&(i*=l/(a=i+n),n*=l/a),r+o>l&&(r*=l/(a=r+o),o*=l/a),t.moveTo(s+r,h),t.lineTo(s+u-i,h),0!==i&&t.arc(s+u-i,h+i,i,-Math.PI/2,0),t.lineTo(s+u,h+l-n),0!==n&&t.arc(s+u-n,h+l-n,n,0,Math.PI/2),t.lineTo(s+o,h+l),0!==o&&t.arc(s+o,h+l-o,o,Math.PI/2,Math.PI),t.lineTo(s,h+r),0!==r&&t.arc(s+r,h+r,r,Math.PI,1.5*Math.PI)}(t,e):t.rect(r,i,n,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(n.b);h.prototype.type="rect";e.a=h},ca80:function(t,e,r){"use strict";var i=r("dce8"),n=[0,0],o=[0,0],a=new i.a,s=new i.a,h=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new i.a;for(r=0;r<2;r++)this._axes[r]=new i.a;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var r=this._corners,n=this._axes,o=t.x,a=t.y,s=o+t.width,h=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,h),r[3].set(o,h),e)for(var u=0;u<4;u++)r[u].transform(e);i.a.sub(n[0],r[1],r[0]),i.a.sub(n[1],r[3],r[0]),n[0].normalize(),n[1].normalize();for(u=0;u<2;u++)this._origin[u]=n[u].dot(r[0])},t.prototype.intersect=function(t,e){var r=!0,n=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,n,1)&&(r=!1,n)||!this._intersectCheckOneSide(t,this,a,s,n,-1)&&(r=!1,n)||n||i.a.copy(e,r?a:s),r},t.prototype._intersectCheckOneSide=function(t,e,r,a,s,h){for(var u=!0,l=0;l<2;l++){var c=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,n),this._getProjMinMaxOnAxis(l,e._corners,o),n[1]o[1]){if(u=!1,s)return u;var f=Math.abs(o[0]-n[1]),p=Math.abs(n[0]-o[1]);Math.min(f,p)>a.len()&&(fe+f&&c>i+f&&c>o+f&&c>s+f||ct+f&&l>r+f&&l>n+f&&l>a+f||lr||l+un&&(n+=f);var d=Math.atan2(h,s);return d<0&&(d+=f),d>=i&&d<=n||d+f>=i&&d+f<=n}var d=r("8728"),v=a.a.CMD,y=2*Math.PI;var g=[-1,-1,-1],_=[-1,-1];function m(t,e,r,i,n,o,a,s,u,l){if(l>e&&l>i&&l>o&&l>s||l1&&(c=void 0,c=_[0],_[0]=_[1],_[1]=c),v=h.a(e,i,o,s,_[0]),d>1&&(y=h.a(e,i,o,s,_[1]))),2===d?b<_[0]?p+=ve&&s>i&&s>o||s=0&&l<=1){for(var c=0,f=h.h(e,i,o,l),p=0;pr||s<-r)return 0;var h=Math.sqrt(r*r-s*s);g[0]=-h,g[1]=h;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=y-1e-4){i=0,n=y;var l=o?1:-1;return a>=g[0]+t&&a<=g[1]+t?l:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=y,n+=y);for(var f=0,p=0;p<2;p++){var d=g[p];if(d+t>a){var v=Math.atan2(s,d);l=o?1:-1;v<0&&(v=y+v),(v>=i&&v<=n||v+y>=i&&v+y<=n)&&(v>Math.PI/2&&v<1.5*Math.PI&&(l=-l),f+=l)}}return f}function w(t,e,r,i,n){for(var o,a,h,c,f=t.data,y=t.len(),g=0,_=0,w=0,k=0,S=0,O=0;O1&&(r||(g+=Object(d.a)(_,w,k,S,i,n))),C&&(k=_=f[O],S=w=f[O+1]),T){case v.M:_=k=f[O++],w=S=f[O++];break;case v.L:if(r){if(s.a(_,w,f[O],f[O+1],e,i,n))return!0}else g+=Object(d.a)(_,w,f[O],f[O+1],i,n)||0;_=f[O++],w=f[O++];break;case v.C:if(r){if(u(_,w,f[O++],f[O++],f[O++],f[O++],f[O],f[O+1],e,i,n))return!0}else g+=m(_,w,f[O++],f[O++],f[O++],f[O++],f[O],f[O+1],i,n)||0;_=f[O++],w=f[O++];break;case v.Q:if(r){if(l.a(_,w,f[O++],f[O++],f[O],f[O+1],e,i,n))return!0}else g+=b(_,w,f[O++],f[O++],f[O],f[O+1],i,n)||0;_=f[O++],w=f[O++];break;case v.A:var A=f[O++],j=f[O++],P=f[O++],D=f[O++],M=f[O++],L=f[O++];O+=1;var R=!!(1-f[O++]);o=Math.cos(M)*P+A,a=Math.sin(M)*D+j,C?(k=o,S=a):g+=Object(d.a)(_,w,o,a,i,n);var I=(i-A)*D/P+A;if(r){if(p(A,j,D,M,M+L,R,e,I,n))return!0}else g+=x(A,j,D,M,M+L,R,I,n);_=Math.cos(M+L)*P+A,w=Math.sin(M+L)*D+j;break;case v.R:if(k=_=f[O++],S=w=f[O++],o=k+f[O++],a=S+f[O++],r){if(s.a(k,S,o,S,e,i,n)||s.a(o,S,o,a,e,i,n)||s.a(o,a,k,a,e,i,n)||s.a(k,a,k,S,e,i,n))return!0}else g+=Object(d.a)(o,S,o,a,i,n),g+=Object(d.a)(k,a,k,S,i,n);break;case v.Z:if(r){if(s.a(_,w,k,S,e,i,n))return!0}else g+=Object(d.a)(_,w,k,S,i,n);_=k,w=S}}return r||(h=w,c=S,Math.abs(h-c)<1e-4)||(g+=Object(d.a)(_,w,k,S,i,n)||0),0!==g}var k=r("6d8b"),S=r("41ef"),O=r("2cf4c"),T=Object(k.j)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},n.b),C={style:Object(k.j)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},n.a.style)},A=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],j=function(t){function e(e){return t.call(this,e)||this}var r;return Object(i.a)(e,t),e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(t){r.buildPath(t,r.shape)}),n.silent=!0;var a=n.style;for(var s in i)a[s]!==i[s]&&(a[s]=i[s]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var h=0;h.5?O.a:e>.2?O.c:O.d}if(t)return O.d}return O.a},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(k.C)(e)){var r=this.__zr;if(!(!r||!r.isDarkMode())===Object(S.c)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&e.SHAPE_CHANGED_BIT)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var s=r.strokeNoScale?this.getLineScale():1,h=r.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;h=Math.max(h,null==u?4:u)}s>1e-10&&(a.width+=h/s,a.height+=h/s,a.x-=h/s/2,a.y-=h/s/2)}return a}return t},e.prototype.contain=function(t,e){var r=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),n=this.style;if(t=r[0],e=r[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=n.lineWidth,s=n.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,r,i){return w(t,e,!0,r,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,r){return w(t,0,!1,e,r)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=e.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,r){"shape"===e?this.setShape(r):t.prototype.attrKV.call(this,e,r)},e.prototype.setShape=function(t,e){var r=this.shape;return r||(r=this.shape={}),"string"==typeof t?r[t]=e:Object(k.m)(r,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&e.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return Object(k.h)(T,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.shape&&!r.shape&&(r.shape=Object(k.m)({},this.shape))},e.prototype._applyStateObj=function(e,r,i,n,o,a){t.prototype._applyStateObj.call(this,e,r,i,n,o,a);var s,h=!(r&&n);if(r&&r.shape?o?n?s=r.shape:(s=Object(k.m)({},i.shape),Object(k.m)(s,r.shape)):(s=Object(k.m)({},n?this.shape:i.shape),Object(k.m)(s,r.shape)):h&&(s=i.shape),s)if(o){this.shape=Object(k.m)({},this.shape);for(var u={},l=Object(k.F)(s),c=0;c=h;l++)u-=h;var c=Object(o.g)(r,e);return c>u&&(r="",c=0),u=t-c,a.ellipsis=r,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function u(t,e){var r=e.containerWidth,i=e.font,n=e.contentWidth;if(!r)return"";var a=Object(o.g)(t,i);if(a<=r)return t;for(var s=0;;s++){if(a<=n||s>=e.maxIterations){t+=e.ellipsis;break}var h=0===s?l(t,n,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*n/a):0;t=t.substr(0,h),a=Object(o.g)(t,i)}return""===t&&(t=e.placeholder),t}function l(t,e,r,i){for(var n=0,o=0,a=t.length;oy&&p){var g=Math.floor(y/f);r=r.slice(0,g)}var _=y,b=d;if(a&&(_+=a[0]+a[2],null!=b&&(b+=a[1]+a[3])),t&&l&&null!=b)for(var x=h(d,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w=0;wp&&y(r,t.substring(p,v),e,f),y(r,h[2],e,f,h[1]),p=a.lastIndex}pl){A>0?(O.tokens=O.tokens.slice(0,A),k(O,C,T),r.lines=r.lines.slice(0,S+1)):r.lines=r.lines.slice(0,S);break t}var R=j.width,I=null==R||"auto"===R;if("string"==typeof R&&"%"===R.charAt(R.length-1))E.percentWidth=R,g.push(E),E.contentWidth=Object(o.g)(E.text,M);else{if(I){var z=j.backgroundColor,B=z&&z.image;B&&(B=i.b(B),i.c(B)&&(E.width=Math.max(E.width,B.width*L/B.height)))}var F=x&&null!=u?u-C:null;null!=F&&F=0?parseFloat(t)/100*e:parseFloat(t);return t}(u.width,i.width)+y;l.length>0&&g+i.accumWidth>i.width&&(a=e.split("\n"),d=!0),i.accumWidth=g}else{var _=m(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=_.accumWidth+y,s=_.linesWidths,a=_.lines}}else a=e.split("\n");for(var b=0;b=33&&e<=255}(t)||!!g[t]}function m(t,e,r,i,n){for(var a=[],s=[],h="",u="",l=0,c=0,f=0;fr:n+c+d>r)?c?(h||u)&&(v?(h||(h=u,u="",c=l=0),a.push(h),s.push(c-l),u+=p,h="",c=l+=d):(u&&(h+=u,c+=l,u="",l=0),a.push(h),s.push(c),h=p,c=d)):v?(a.push(u),s.push(l),u=p,l=d):(a.push(p),s.push(d)):(c+=d,v?(u+=p,l+=d):(u&&(h+=u,u="",l=0),h+=p))}else u&&(h+=u,c+=l),a.push(h),s.push(c),h="",u="",l=0,c=0}return a.length||h||(h=t,u="",l=0),u&&(h+=u),h&&(a.push(h),s.push(c)),1===a.length&&(c+=n),{accumWidth:c,lines:a,linesWidths:s}}},d498:function(t,e,r){"use strict";var i=r("21a1"),n=r("cbe5"),o=r("4fac"),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return Object(i.a)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.a(t,e,!1)},e}(n.b);s.prototype.type="polyline",e.a=s},d4c6:function(t,e,r){"use strict";var i=r("21a1"),n=r("cbe5"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Object(i.a)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),r=0;r=this._maxSize&&a>0){var h=r.head;r.remove(h),delete n[h.key],o=h.value,this._lastRemovedEntry=h}s?s.value=e:s=new i(e),s.key=t,r.insertEntry(s),n[t]=s}return o},t.prototype.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},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.a=o},d5b7:function(t,e,r){"use strict";var i=r("8582"),n=r("06ad"),o=r("9850"),a=r("6fd3"),s=r("e86a"),h=r("6d8b"),u=r("2cf4c"),l=r("41ef"),c=r("22d1"),f=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],p={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},d={},v=new o.a(0,0,0,0),y=function(){function t(t){this.id=Object(h.p)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,r){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.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 r=this.textConfig,i=r.local,n=e.attachedTransform,o=void 0,a=void 0,h=!1;n.parent=i?this:null;var u=!1;if(n.x=e.x,n.y=e.y,n.originX=e.originX,n.originY=e.originY,n.rotation=e.rotation,n.scaleX=e.scaleX,n.scaleY=e.scaleY,null!=r.position){var l=v;r.layoutRect?l.copy(r.layoutRect):l.copy(this.getBoundingRect()),i||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(d,r,l):Object(s.d)(d,r,l),n.x=d.x,n.y=d.y,o=d.align,a=d.verticalAlign;var c=r.origin;if(c&&null!=r.rotation){var f=void 0,p=void 0;"center"===c?(f=.5*l.width,p=.5*l.height):(f=Object(s.h)(c[0],l.width),p=Object(s.h)(c[1],l.height)),u=!0,n.originX=-n.x+f+(i?0:l.x),n.originY=-n.y+p+(i?0:l.y)}}null!=r.rotation&&(n.rotation=r.rotation);var y=r.offset;y&&(n.x+=y[0],n.y+=y[1],u||(n.originX=-y[0],n.originY=-y[1]));var g=null==r.inside?"string"==typeof r.position&&r.position.indexOf("inside")>=0:r.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,b=void 0,x=void 0;g&&this.canBeInsideText()?(m=r.insideFill,b=r.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(m),x=!0)):(m=r.outsideFill,b=r.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(m),x=!0)),(m=m||"#000")===_.fill&&b===_.stroke&&x===_.autoStroke&&o===_.align&&a===_.verticalAlign||(h=!0,_.fill=m,_.stroke=b,_.autoStroke=x,_.align=o,_.verticalAlign=a,e.setDefaultTextStyle(_)),h&&e.dirtyStyle(),e.markRedraw()}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u.d:u.a},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),r="string"==typeof e&&Object(l.f)(e);r||(r=[255,255,255,1]);for(var i=r[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(n?0:255)*(1-i);return r[3]=1,Object(l.g)(r,"rgba")},t.prototype.traverse=function(t,e){},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||{},Object(h.m)(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(Object(h.z)(t))for(var r=t,i=Object(h.F)(r),n=0;n0},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("__zr_normal__",!1,t)},t.prototype.useState=function(e,r,i){var n="__zr_normal__"===e;if(this.hasState()||!n){var o=this.currentStates,a=this.stateTransition;if(!(Object(h.r)(o,e)>=0)||!r&&1!==o.length){var s;if(this.stateProxy&&!n&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||n){n||this.saveCurrentToNormalState(s);var u=!(!s||!s.hoverLayer);return u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,r,!i&&!this.__inHover&&a&&a.duration>0,a),this._textContent&&this._textContent.useState(e,r),this._textGuide&&this._textGuide.useState(e,r),n?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~t.REDARAW_BIT),s}Object(h.G)("State "+e+" not exists.")}}},t.prototype.useStates=function(e,r){if(e.length){var i=[],n=this.currentStates,o=e.length,a=o===n.length;if(a)for(var s=0;s0,f),this._textContent&&this._textContent.useStates(e),this._textGuide&&this._textGuide.useStates(e),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~t.REDARAW_BIT)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(e,1),this.useStates(r)}},t.prototype.replaceState=function(t,e,r){var i=this.currentStates.slice(),n=Object(h.r)(i,t),o=Object(h.r)(i,e)>=0;n>=0?o?i.splice(n,1):i[n]=e:r&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,r={},i=0;i=0&&e.splice(r,1)})),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var r=this.animators,i=r.length,n=[],o=0;o8)&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function g(t,e,r,i,o){var a=[];!function t(e,r,i,o,a,s,u,l){for(var c=[],f=[],p=Object(h.F)(o),d=a.duration,v=a.delay,y=a.additive,g=a.setToFinal,_=!Object(h.z)(s),b=0;b0||a.force&&!u.length){for(var k=e.animators,S=[],O=0;O0&&r.during&&a[0].during((function(t,e){r.during(e)}));for(var d=0;d=i&&c+1>=n){for(var f=[],p=0;p=i&&d+1>=n)return l(c.components);s[a]=c}else s[a]=void 0}var g;o++}for(;o<=a;){var v=d();if(v)return v}}(t,e,r)}var f=r("21a1"),p=r("e86a"),d=r("608a"),v=Math.round,y=Math.sin,g=Math.cos,_=Math.PI,m=2*Math.PI,b=180/_;function x(t){return v(1e3*t)/1e3}function w(t){return v(1e4*t)/1e4}function k(t){return t<1e-4&&t>-1e-4}function S(t,e){e&&O(t,"transform","matrix("+x(e[0])+","+x(e[1])+","+x(e[2])+","+x(e[3])+","+w(e[4])+","+w(e[5])+")")}function O(t,e,r){(!r||"linear"!==r.type&&"radial"!==r.type)&&t.setAttribute(e,r)}function T(t,e,r){var i=null==e.opacity?1:e.opacity;if(r instanceof a.a)t.style.opacity=i+"";else{if(function(t){var e=t.fill;return null!=e&&"none"!==e}(e)){var o=e.fill;O(t,"fill",o="transparent"===o?"none":o),O(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*i:i)+"")}else O(t,"fill","none");if(function(t){var e=t.stroke;return null!=e&&"none"!==e}(e)){var s=e.stroke;O(t,"stroke",s="transparent"===s?"none":s);var h=e.lineWidth,u=e.strokeNoScale?r.getLineScale():1;O(t,"stroke-width",(u?h/u:0)+""),O(t,"paint-order",e.strokeFirst?"stroke":"fill"),O(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*i:i)+"");var l=e.lineDash&&h>0&&Object(d.a)(e.lineDash,h);if(l){var c=e.lineDashOffset;u&&1!==u&&(l=Object(n.H)(l,(function(t){return t/u})),c&&(c=v(c/=u))),O(t,"stroke-dasharray",l.join(",")),O(t,"stroke-dashoffset",(c||0)+"")}else O(t,"stroke-dasharray","");e.lineCap&&O(t,"stroke-linecap",e.lineCap),e.lineJoin&&O(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&O(t,"stroke-miterlimit",e.miterLimit+"")}else O(t,"stroke","none")}}var C=function(){function t(){}return t.prototype.reset=function(){this._d=[],this._str=""},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,r,i,n,o){this._add("C",t,e,r,i,n,o)},t.prototype.quadraticCurveTo=function(t,e,r,i){this._add("Q",t,e,r,i)},t.prototype.arc=function(t,e,r,i,n,o){this.ellipse(t,e,r,r,0,i,n,o)},t.prototype.ellipse=function(t,e,r,i,n,o,a,s){var h=0===this._d.length,u=a-o,l=!s,c=Math.abs(u),f=k(c-m)||(l?u>=m:-u>=m),p=u>0?u%m:u%m+m,d=!1;d=!!f||!k(c)&&p>=_==!!l;var x=w(t+r*g(o)),S=w(e+i*y(o));f&&(u=l?m-1e-4:1e-4-m,d=!0,h&&this._d.push("M",x,S));var O=w(t+r*g(o+u)),T=w(e+i*y(o+u));if(isNaN(x)||isNaN(S)||isNaN(r)||isNaN(i)||isNaN(n)||isNaN(b)||isNaN(O)||isNaN(T))return"";this._d.push("A",w(r),w(i),v(n*b),+d,+l,O,T)},t.prototype.rect=function(t,e,r,i){this._add("M",t,e),this._add("L",t+r,e),this._add("L",t+r,e+i),this._add("L",t,e+i),this._add("L",t,e)},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,r,i,n,o,a,s,h){this._d.push(t);for(var u=1;u=0;--r)if(e[r]===t)return!0;return!1}),i}return null}return r[0]},t.prototype.doUpdate=function(t,e){if(t){var r=this.getDefs(!1);if(t[this._domName]&&r.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},t.prototype.add=function(t){return null},t.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},t.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},t.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return n.k(this._tagNames,(function(r){for(var i=t.getElementsByTagName(r),n=0;n-1){var h=L.f(s)[3],u=L.h(s);a.setAttribute("stop-color","#"+u),a.setAttribute("stop-opacity",h+"")}else a.setAttribute("stop-color",r[i].color);e.appendChild(a)}t.__dom=e},e.prototype.markUsed=function(e){if(e.style){var r=e.style.fill;r&&r.__dom&&t.prototype.markDomUsed.call(this,r.__dom),(r=e.style.stroke)&&r.__dom&&t.prototype.markDomUsed.call(this,r.__dom)}},e}(M),F=r("5e76");function E(t){return t&&(!!t.image||!!t.svgElement)}var H=new(r("4755").a),N=function(t){function e(e,r){return t.call(this,e,r,["pattern"],"__pattern_in_use__")||this}return Object(f.a)(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var r=this;n.k(["fill","stroke"],(function(i){var n=e.style[i];if(E(n)){var o=r.getDefs(!0),a=H.get(n);a?o.contains(a)||r.addDom(a):a=r.add(n),r.markUsed(e);var s=a.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}}))}},e.prototype.add=function(t){if(E(t)){var e=this.createElement("pattern");return t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e}},e.prototype.update=function(t){if(E(t)){var e=this;this.doUpdate(t,(function(){var r=H.get(t);e.updateDom(t,r)}))}},e.prototype.updateDom=function(t,e){var r=t.svgElement;if(r instanceof SVGElement)r.parentNode!==e&&(e.innerHTML="",e.appendChild(r),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var i=void 0,n=e.getElementsByTagName("image");if(n.length){if(!t.image)return void e.removeChild(n[0]);i=n[0]}else t.image&&(i=this.createElement("image"));if(i){var o=void 0;if("string"==typeof t.image?o=t.image:t.image instanceof HTMLImageElement?o=t.image.src:t.image instanceof HTMLCanvasElement&&(o=t.image.toDataURL()),o){i.setAttribute("href",o),i.setAttribute("x","0"),i.setAttribute("y","0");var a=Object(F.a)(o,i,{dirty:function(){}},(function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")}));a&&a.width&&a.height&&(e.setAttribute("width",a.width+""),e.setAttribute("height",a.height+"")),e.appendChild(i)}}}var s="translate("+(t.x||0)+", "+(t.y||0)+") rotate("+(t.rotation||0)/Math.PI*180+") scale("+(t.scaleX||1)+", "+(t.scaleY||1)+")";e.setAttribute("patternTransform",s),H.set(t,e)},e.prototype.markUsed=function(e){e.style&&(E(e.style.fill)&&t.prototype.markDomUsed.call(this,H.get(e.style.fill)),E(e.style.stroke)&&t.prototype.markDomUsed.call(this,H.get(e.style.stroke)))},e}(M),W=r("3437");function X(t){var e=t.__clipPaths;return e&&e.length>0}var G=function(t){function e(e,r){var i=t.call(this,e,r,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return Object(f.a)(e,t),e.prototype.markAllUnused=function(){for(var e in t.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[e]);this._keyDuplicateCount={}},e.prototype._getClipPathGroup=function(t,e){if(X(t)){var r=t.__clipPaths,i=this._keyDuplicateCount,n=function(t){var e=[];if(t)for(var r=0;r0){var r=this.getDefs(!0),i=e[0],n=void 0,o=void 0;i._dom?(o=i._dom.getAttribute("id"),n=i._dom,r.contains(n)||r.appendChild(n)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",o),r.appendChild(n),i._dom=n),this.getSvgProxy(i).brush(i);var a=this.getSvgElement(i);n.innerHTML="",n.appendChild(a),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(n,e.slice(1))}else t&&t.setAttribute("clip-path","none")},e.prototype.markUsed=function(e){var r=this;e.__clipPaths&&n.k(e.__clipPaths,(function(e){e._dom&&t.prototype.markDomUsed.call(r,e._dom)}))},e.prototype.removeUnused=function(){t.prototype.removeUnused.call(this);var e={};for(var r in this._refGroups){var i=this._refGroups[r];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):e[r]=i}this._refGroups=e},e}(M),Y=function(t){function e(e,r){var i=t.call(this,e,r,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return Object(f.a)(e,t),e.prototype._getFromPool=function(){var t=this._shadowDomPool.pop();if(!t){(t=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var e=this.createElement("feDropShadow");t.appendChild(e),this.addDom(t)}return t},e.prototype.update=function(t,e){if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(e.style)){var r=function(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}(e),i=e._shadowDom=this._shadowDomMap[r];i||(i=this._getFromPool(),this._shadowDomMap[r]=i),this.updateDom(t,e,i)}else this.remove(t,e)},e.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.style.filter="")},e.prototype.updateDom=function(t,e,r){var i=r.children[0],n=e.style,o=e.getGlobalScale(),a=o[0],s=o[1];if(a&&s){var h=n.shadowOffsetX||0,u=n.shadowOffsetY||0,l=n.shadowBlur,c=n.shadowColor;i.setAttribute("dx",h/a+""),i.setAttribute("dy",u/s+""),i.setAttribute("flood-color",c);var f=l/2/a+" "+l/2/s;i.setAttribute("stdDeviation",f),r.setAttribute("x","-100%"),r.setAttribute("y","-100%"),r.setAttribute("width","300%"),r.setAttribute("height","300%"),e._shadowDom=r;var p=r.getAttribute("id");t.style.filter="url(#"+p+")"}},e.prototype.removeUnused=function(){if(this.getDefs(!1)){var t=this._shadowDomPool;for(var e in this._shadowDomMap){var r=this._shadowDomMap[e];t.push(r)}this._shadowDomMap={}}},e}(M);function q(t){return parseInt(t,10)}function U(t){return t instanceof o.b?A:t instanceof a.a?j:t instanceof s.a?D:A}function Z(t,e){return e&&t&&e.parentNode!==t}function V(t,e,r){if(Z(t,e)&&r){var i=r.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function K(t,e){if(Z(t,e)){var r=t.firstChild;r?t.insertBefore(e,r):t.appendChild(e)}}function Q(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function $(t){return t.__svgEl}var J=function(){function t(t,e,r,o){this.type="svg",this.refreshHover=tt("refreshHover"),this.pathToImage=tt("pathToImage"),this.configLayer=tt("configLayer"),this.root=t,this.storage=e,this._opts=r=n.m({},r||{});var a=i("svg");a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=i("g");a.appendChild(s);var h=i("g");a.appendChild(h),this._gradientManager=new B(o,h),this._patternManager=new N(o,h),this._clipPathManager=new G(o,h),this._shadowManager=new Y(o,h);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=h,this._backgroundRoot=s,this._viewport=u,t.appendChild(u),u.appendChild(a),this.resize(r.width,r.height),this._visibleList=[]}return t.prototype.getType=function(){return"svg"},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.getSvgRoot=function(){return this._svgRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},t.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=i("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},t.prototype.createSVGElement=function(t){return i(t)},t.prototype.paintOne=function(t){var e=U(t);return e&&e.brush(t),$(t)},t.prototype._paintList=function(t){var e=this._gradientManager,r=this._patternManager,i=this._clipPathManager,n=this._shadowManager;e.markAllUnused(),r.markAllUnused(),i.markAllUnused(),n.markAllUnused();for(var o=this._svgRoot,a=this._visibleList,s=t.length,h=[],u=0;u=0;--r)if(e[r]===t)return!0;return!1}),n}return null}return r[0]},t.prototype.resize=function(t,e){var r=this._viewport;r.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),r.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var n=r.style;n.width=t+"px",n.height=e+"px";var o=this._svgDom;o.setAttribute("width",t+""),o.setAttribute("height",e+"")}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,r=["width","height"][t],i=["clientWidth","clientHeight"][t],n=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[r]&&"auto"!==e[r])return parseFloat(e[r]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||q(s[r])||q(a.style[r]))-(q(s[n])||0)-(q(s[o])||0)|0},t.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},t.prototype.clear=function(){var t=this._viewport;t&&t.parentNode&&t.parentNode.removeChild(t)},t.prototype.toDataURL=function(){this.refresh();var t=this._svgDom,e=t.outerHTML||(t.parentNode&&t.parentNode).innerHTML;return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e.replace(/>\n\r<"))},t}();function tt(t){return function(){n.G('In SVG mode painter not support method "'+t+'"')}}e.a=J},dce8:function(t,e,r){"use strict";var i=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,r=this.y-t.y;return Math.sqrt(e*e+r*r)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,r=this.y-t.y;return e*e+r*r},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,r=this.y;return this.x=t[0]*e+t[2]*r+t[4],this.y=t[1]*e+t[3]*r+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,r){t.x=e,t.y=r},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,r){t.x=e.x+r.x,t.y=e.y+r.y},t.sub=function(t,e,r){t.x=e.x-r.x,t.y=e.y-r.y},t.scale=function(t,e,r){t.x=e.x*r,t.y=e.y*r},t.scaleAndAdd=function(t,e,r,i){t.x=e.x+r.x*i,t.y=e.y+r.y*i},t.lerp=function(t,e,r,i){var n=1-i;t.x=n*e.x+i*r.x,t.y=n*e.y+i*r.y},t}();e.a=i},dd4f:function(t,e,r){"use strict";var i=r("21a1"),n=r("19eb"),o=r("e86a"),a=r("cbe5"),s=r("6d8b"),h=Object(s.j)({strokeFirst:!0,font:o.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.a),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.a)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(s.h)(h,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var r=Object(o.e)(e,t.font,t.textAlign,t.textBaseline);if(r.x+=t.x||0,r.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;r.x-=i/2,r.y-=i/2,r.width+=i,r.height+=i}this._rect=r}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(n.c);u.prototype.type="tspan",e.a=u},dded:function(t,e,r){"use strict";var i=r("21a1"),n=function(t){function e(e,r,i,n,o){var a=t.call(this,n)||this;return a.x=null==e?.5:e,a.y=null==r?.5:r,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return Object(i.a)(e,t),e}(r("42e5").a);e.a=n},e263:function(t,e,r){"use strict";r.d(e,"d",(function(){return p})),r.d(e,"c",(function(){return d})),r.d(e,"b",(function(){return g})),r.d(e,"e",(function(){return _})),r.d(e,"a",(function(){return m}));var i=r("401b"),n=r("4a3f"),o=Math.min,a=Math.max,s=Math.sin,h=Math.cos,u=2*Math.PI,l=i.e(),c=i.e(),f=i.e();function p(t,e,r){if(0!==t.length){for(var i=t[0],n=i[0],s=i[0],h=i[1],u=i[1],l=1;l1e-4)return d[0]=t-r,d[1]=e-n,v[0]=t+r,void(v[1]=e+n);if(l[0]=h(o)*r+t,l[1]=s(o)*n+e,c[0]=h(a)*r+t,c[1]=s(a)*n+e,y(d,l,c),g(v,l,c),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!p?a+=u:oo&&(f[0]=h(b)*r+t,f[1]=s(b)*n+e,y(d,f,d),g(v,f,v))}},e86a:function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),r.d(e,"g",(function(){return c})),r.d(e,"e",(function(){return p})),r.d(e,"b",(function(){return d})),r.d(e,"c",(function(){return v})),r.d(e,"f",(function(){return y})),r.d(e,"h",(function(){return g})),r.d(e,"d",(function(){return _}));var i,n,o=r("9850"),a=r("6d8b"),s=r("d51b"),h={},u="12px sans-serif";var l={measureText:function(t,e){return i||(i=Object(a.f)().getContext("2d")),n!==e&&(n=i.font=e||u),i.measureText(t)}};function c(t,e){var r=h[e=e||u];r||(r=h[e]=new s.a(500));var i=r.get(t);return null==i&&(i=l.measureText(t,e).width,r.put(t,i)),i}function f(t,e,r,i){var n=c(t,e),a=y(e),s=d(0,n,r),h=v(0,a,i);return new o.a(s,h,n,a)}function p(t,e,r,i){var n=((t||"")+"").split("\n");if(1===n.length)return f(n[0],e,r,i);for(var a=new o.a(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function _(t,e,r){var i=e.position||"inside",n=null!=e.distance?e.distance:5,o=r.height,a=r.width,s=o/2,h=r.x,u=r.y,l="left",c="top";if(i instanceof Array)h+=g(i[0],r.width),u+=g(i[1],r.height),l=null,c=null;else switch(i){case"left":h-=n,u+=s,l="right",c="middle";break;case"right":h+=n+a,u+=s,c="middle";break;case"top":h+=a/2,u-=n,l="center",c="bottom";break;case"bottom":h+=a/2,u+=o+n,l="center";break;case"inside":h+=a/2,u+=s,l="center",c="middle";break;case"insideLeft":h+=n,u+=s,c="middle";break;case"insideRight":h+=a-n,u+=s,l="right",c="middle";break;case"insideTop":h+=a/2,u+=n,l="center";break;case"insideBottom":h+=a/2,u+=o-n,l="center",c="bottom";break;case"insideTopLeft":h+=n,u+=n;break;case"insideTopRight":h+=a-n,u+=n,l="right";break;case"insideBottomLeft":h+=n,u+=o-n,c="bottom";break;case"insideBottomRight":h+=a-n,u+=o-n,l="right",c="bottom"}return(t=t||{}).x=h,t.y=u,t.align=l,t.verticalAlign=c,t}}}]);