!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],e):"object"==typeof exports?exports.charts=e(require("React"),require("ReactDOM")):t.charts=e(t.React,t.ReactDOM)}(window,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=712)}([function(t,e,n){"use strict";n.r(e),n.d(e,"contains",(function(){return i})),n.d(e,"includes",(function(){return i})),n.d(e,"difference",(function(){return o})),n.d(e,"find",(function(){return m})),n.d(e,"findIndex",(function(){return b})),n.d(e,"firstValue",(function(){return x})),n.d(e,"flatten",(function(){return O})),n.d(e,"flattenDeep",(function(){return j})),n.d(e,"getRange",(function(){return C})),n.d(e,"pull",(function(){return E})),n.d(e,"pullAt",(function(){return F})),n.d(e,"reduce",(function(){return B})),n.d(e,"remove",(function(){return I})),n.d(e,"sortBy",(function(){return L})),n.d(e,"union",(function(){return R})),n.d(e,"uniq",(function(){return D})),n.d(e,"valuesOfKey",(function(){return _})),n.d(e,"head",(function(){return N})),n.d(e,"last",(function(){return z})),n.d(e,"startsWith",(function(){return Y})),n.d(e,"endsWith",(function(){return G})),n.d(e,"filter",(function(){return a})),n.d(e,"every",(function(){return X})),n.d(e,"some",(function(){return V})),n.d(e,"group",(function(){return $})),n.d(e,"groupBy",(function(){return W})),n.d(e,"groupToMap",(function(){return q})),n.d(e,"getWrapBehavior",(function(){return U})),n.d(e,"wrapBehavior",(function(){return Z})),n.d(e,"number2color",(function(){return Q})),n.d(e,"parseRadius",(function(){return J})),n.d(e,"clamp",(function(){return tt})),n.d(e,"fixedBase",(function(){return et})),n.d(e,"isDecimal",(function(){return rt})),n.d(e,"isEven",(function(){return it})),n.d(e,"isInteger",(function(){return at})),n.d(e,"isNegative",(function(){return ot})),n.d(e,"isNumberEqual",(function(){return st})),n.d(e,"isOdd",(function(){return ct})),n.d(e,"isPositive",(function(){return ut})),n.d(e,"max",(function(){return w})),n.d(e,"maxBy",(function(){return lt})),n.d(e,"min",(function(){return M})),n.d(e,"minBy",(function(){return ht})),n.d(e,"mod",(function(){return ft})),n.d(e,"toDegree",(function(){return dt})),n.d(e,"toInteger",(function(){return gt})),n.d(e,"toRadian",(function(){return yt})),n.d(e,"forIn",(function(){return mt})),n.d(e,"has",(function(){return bt})),n.d(e,"hasKey",(function(){return xt})),n.d(e,"hasValue",(function(){return jt})),n.d(e,"keys",(function(){return d})),n.d(e,"isMatch",(function(){return g})),n.d(e,"values",(function(){return Ot})),n.d(e,"lowerCase",(function(){return Mt})),n.d(e,"lowerFirst",(function(){return Ct})),n.d(e,"substitute",(function(){return St})),n.d(e,"upperCase",(function(){return At})),n.d(e,"upperFirst",(function(){return kt})),n.d(e,"getType",(function(){return Tt})),n.d(e,"isArguments",(function(){return Ft})),n.d(e,"isArray",(function(){return h})),n.d(e,"isArrayLike",(function(){return r})),n.d(e,"isBoolean",(function(){return Bt})),n.d(e,"isDate",(function(){return It})),n.d(e,"isError",(function(){return Pt})),n.d(e,"isFunction",(function(){return u})),n.d(e,"isFinite",(function(){return Lt})),n.d(e,"isNil",(function(){return l})),n.d(e,"isNull",(function(){return Dt})),n.d(e,"isNumber",(function(){return nt})),n.d(e,"isObject",(function(){return f})),n.d(e,"isObjectLike",(function(){return v})),n.d(e,"isPlainObject",(function(){return y})),n.d(e,"isPrototype",(function(){return _t})),n.d(e,"isRegExp",(function(){return Nt})),n.d(e,"isString",(function(){return P})),n.d(e,"isType",(function(){return c})),n.d(e,"isUndefined",(function(){return zt})),n.d(e,"isElement",(function(){return Yt})),n.d(e,"requestAnimationFrame",(function(){return Gt})),n.d(e,"clearAnimationFrame",(function(){return Xt})),n.d(e,"augment",(function(){return Wt})),n.d(e,"clone",(function(){return qt})),n.d(e,"debounce",(function(){return $t})),n.d(e,"memoize",(function(){return Ut})),n.d(e,"deepMix",(function(){return Kt})),n.d(e,"each",(function(){return p})),n.d(e,"extend",(function(){return Qt})),n.d(e,"indexOf",(function(){return Jt})),n.d(e,"isEmpty",(function(){return ee})),n.d(e,"isEqual",(function(){return ne})),n.d(e,"isEqualWith",(function(){return re})),n.d(e,"map",(function(){return ie})),n.d(e,"mapValues",(function(){return oe})),n.d(e,"mix",(function(){return Ht})),n.d(e,"assign",(function(){return Ht})),n.d(e,"get",(function(){return se})),n.d(e,"set",(function(){return ce})),n.d(e,"pick",(function(){return le})),n.d(e,"omit",(function(){return he})),n.d(e,"throttle",(function(){return fe})),n.d(e,"toArray",(function(){return pe})),n.d(e,"toString",(function(){return wt})),n.d(e,"uniqueId",(function(){return ge})),n.d(e,"noop",(function(){return ve})),n.d(e,"identity",(function(){return ye})),n.d(e,"size",(function(){return me})),n.d(e,"Cache",(function(){return be}));var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},i=function(t,e){return!!r(t)&&t.indexOf(e)>-1},a=function(t,e){if(!r(t))return t;for(var n=[],i=0;i-1;)A.call(t,a,1);return t},T=Array.prototype.splice,F=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var a=void 0,o=e[n];n!==i&&o===a||(a=o,T.call(t,o,1))}return t},B=function(t,e,n){if(!h(t)&&!y(t))return t;var r=n;return p(t,(function(t,n){r=e(r,t,n)})),r},I=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,a=[],o=t.length;++ie[i])return 1;if(t[i]n?n:t},et=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},nt=function(t){return c(t,"Number")},rt=function(t){return nt(t)&&t%1!=0},it=function(t){return nt(t)&&t%2==0},at=Number.isInteger?Number.isInteger:function(t){return nt(t)&&t%1==0},ot=function(t){return nt(t)&&t<0};function st(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)0},lt=function(t,e){if(h(t)){var n,r,i=t[0];return n=u(e)?e(t[0]):t[0][e],p(t,(function(t){(r=u(e)?e(t):t[e])>n&&(i=t,n=r)})),i}},ht=function(t,e){if(h(t)){var n,r,i=t[0];return n=u(e)?e(t[0]):t[0][e],p(t,(function(t){(r=u(e)?e(t):t[e])e?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(c,l)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u},pe=function(t){return r(t)?Array.prototype.slice.call(t):[]},de={},ge=function(t){return de[t=t||"g"]?de[t]+=1:de[t]=1,t+de[t]},ve=function(){},ye=function(t){return t};function me(t){return l(t)?0:r(t)?t.length:Object.keys(t).length}var be=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"f",(function(){return l})); /*! ***************************************************************************** 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 r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0?(n[0]=2*(c*o+h*r+u*a-l*i)/f,n[1]=2*(u*o+h*i+l*r-c*a)/f,n[2]=2*(l*o+h*a+c*i-u*r)/f):(n[0]=2*(c*o+h*r+u*a-l*i),n[1]=2*(u*o+h*i+l*r-c*a),n[2]=2*(l*o+h*a+c*i-u*r)),ut(t,e,n),t}function ht(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function ft(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],c=e[8],u=e[9],l=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(c,u,l),t}function pt(t,e){var n=new s.a(3);ft(n,e);var r=1/n[0],i=1/n[1],a=1/n[2],o=e[0]*r,c=e[1]*i,u=e[2]*a,l=e[4]*r,h=e[5]*i,f=e[6]*a,p=e[8]*r,d=e[9]*i,g=e[10]*a,v=o+h+g,y=0;return v>0?(y=2*Math.sqrt(v+1),t[3]=.25*y,t[0]=(f-d)/y,t[1]=(p-u)/y,t[2]=(c-l)/y):o>h&&o>g?(y=2*Math.sqrt(1+o-h-g),t[3]=(f-d)/y,t[0]=.25*y,t[1]=(c+l)/y,t[2]=(p+u)/y):h>g?(y=2*Math.sqrt(1+h-o-g),t[3]=(p-u)/y,t[0]=(c+l)/y,t[1]=.25*y,t[2]=(f+d)/y):(y=2*Math.sqrt(1+g-o-h),t[3]=(c-l)/y,t[0]=(p+u)/y,t[1]=(f+d)/y,t[2]=.25*y),t}function dt(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=i+i,u=a+a,l=o+o,h=i*c,f=i*u,p=i*l,d=a*u,g=a*l,v=o*l,y=s*c,m=s*u,b=s*l,x=r[0],O=r[1],j=r[2];return t[0]=(1-(d+v))*x,t[1]=(f+b)*x,t[2]=(p-m)*x,t[3]=0,t[4]=(f-b)*O,t[5]=(1-(h+v))*O,t[6]=(g+y)*O,t[7]=0,t[8]=(p+m)*j,t[9]=(g-y)*j,t[10]=(1-(h+d))*j,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function gt(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],c=e[3],u=a+a,l=o+o,h=s+s,f=a*u,p=a*l,d=a*h,g=o*l,v=o*h,y=s*h,m=c*u,b=c*l,x=c*h,O=r[0],j=r[1],w=r[2],M=i[0],C=i[1],S=i[2],A=(1-(g+y))*O,k=(p+x)*O,E=(d-b)*O,T=(p-x)*j,F=(1-(f+y))*j,B=(v+m)*j,I=(d+b)*w,P=(v-m)*w,L=(1-(f+g))*w;return t[0]=A,t[1]=k,t[2]=E,t[3]=0,t[4]=T,t[5]=F,t[6]=B,t[7]=0,t[8]=I,t[9]=P,t[10]=L,t[11]=0,t[12]=n[0]+M-(A*M+T*C+I*S),t[13]=n[1]+C-(k*M+F*C+P*S),t[14]=n[2]+S-(E*M+B*C+L*S),t[15]=1,t}function vt(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,c=i+i,u=n*o,l=r*o,h=r*s,f=i*o,p=i*s,d=i*c,g=a*o,v=a*s,y=a*c;return t[0]=1-h-d,t[1]=l+y,t[2]=f-v,t[3]=0,t[4]=l-y,t[5]=1-u-d,t[6]=p+g,t[7]=0,t[8]=f+v,t[9]=p-g,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function yt(t,e,n,r,i,a,o){var s=1/(n-e),c=1/(i-r),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*c,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*c,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t}function mt(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t}function bt(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+s),u=2/(i+a);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*c*.5,t[9]=(i-a)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function xt(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=(o+a)*u,t[15]=1,t}function Ot(t,e,n,r){var i,a,o,c,u,l,h,f,p,d,g=e[0],v=e[1],y=e[2],m=r[0],b=r[1],x=r[2],O=n[0],j=n[1],w=n[2];return Math.abs(g-O)0&&(l*=p=1/Math.sqrt(p),h*=p,f*=p);var d=c*f-u*h,g=u*l-s*f,v=s*h-c*l;return(p=d*d+g*g+v*v)>0&&(d*=p=1/Math.sqrt(p),g*=p,v*=p),t[0]=d,t[1]=g,t[2]=v,t[3]=0,t[4]=h*v-f*g,t[5]=f*d-l*v,t[6]=l*g-h*d,t[7]=0,t[8]=l,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function wt(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Mt(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Ct(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function St(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function At(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function kt(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function Et(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function Tt(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],c=t[5],u=t[6],l=t[7],h=t[8],f=t[9],p=t[10],d=t[11],g=t[12],v=t[13],y=t[14],m=t[15],b=e[0],x=e[1],O=e[2],j=e[3],w=e[4],M=e[5],C=e[6],S=e[7],A=e[8],k=e[9],E=e[10],T=e[11],F=e[12],B=e[13],I=e[14],P=e[15];return Math.abs(n-b)<=s.b*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-x)<=s.b*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(i-O)<=s.b*Math.max(1,Math.abs(i),Math.abs(O))&&Math.abs(a-j)<=s.b*Math.max(1,Math.abs(a),Math.abs(j))&&Math.abs(o-w)<=s.b*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(c-M)<=s.b*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(u-C)<=s.b*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(l-S)<=s.b*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(h-A)<=s.b*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(f-k)<=s.b*Math.max(1,Math.abs(f),Math.abs(k))&&Math.abs(p-E)<=s.b*Math.max(1,Math.abs(p),Math.abs(E))&&Math.abs(d-T)<=s.b*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(g-F)<=s.b*Math.max(1,Math.abs(g),Math.abs(F))&&Math.abs(v-B)<=s.b*Math.max(1,Math.abs(v),Math.abs(B))&&Math.abs(y-I)<=s.b*Math.max(1,Math.abs(y),Math.abs(I))&&Math.abs(m-P)<=s.b*Math.max(1,Math.abs(m),Math.abs(P))}var Ft=Z,Bt=St,It=n(50);function Pt(){var t=new s.a(4);return s.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Lt(t){var e=new s.a(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function Dt(t,e,n,r){var i=new s.a(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function Rt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function _t(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Nt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function zt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function Yt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function Gt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function Xt(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function Vt(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function Ht(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function Wt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function qt(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function $t(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function Ut(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}function Zt(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.hypot(n,r,i,a)}function Kt(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function Qt(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function Jt(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function te(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function ee(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function ne(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function re(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function ie(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],a=n[0]*r[2]-n[2]*r[0],o=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],c=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],l=e[0],h=e[1],f=e[2],p=e[3];return t[0]=h*u-f*c+p*s,t[1]=-l*u+f*o-p*a,t[2]=l*c-h*o+p*i,t[3]=-l*s+h*a-f*i,t}function ae(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t}function oe(t,e){var n,r,i,a,o,c;e=e||1;do{o=(n=2*s.c()-1)*n+(r=2*s.c()-1)*r}while(o>=1);do{c=(i=2*s.c()-1)*i+(a=2*s.c()-1)*a}while(c>=1);var u=Math.sqrt((1-o)/c);return t[0]=e*n,t[1]=e*r,t[2]=e*i*u,t[3]=e*a*u,t}function se(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}function ce(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],c=n[2],u=n[3],l=u*r+s*a-c*i,h=u*i+c*r-o*a,f=u*a+o*i-s*r,p=-o*r-s*i-c*a;return t[0]=l*u+p*-o+h*-c-f*-s,t[1]=h*u+p*-s+f*-o-l*-c,t[2]=f*u+p*-c+l*-s-h*-o,t[3]=e[3],t}function ue(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function le(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function he(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function fe(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=e[0],c=e[1],u=e[2],l=e[3];return Math.abs(n-o)<=s.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-c)<=s.b*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(i-u)<=s.b*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=s.b*Math.max(1,Math.abs(a),Math.abs(l))}var pe,de=zt,ge=Yt,ve=Gt,ye=Zt,me=Kt,be=Qt,xe=Jt,Oe=(pe=Pt(),function(t,e,n,r,i,a){var o,s;for(e||(e=4),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,o=n;os.b?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function Se(t,e){var n=en(t,e);return Math.acos(2*n*n-1)}function Ae(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],c=n[1],u=n[2],l=n[3];return t[0]=r*l+o*s+i*u-a*c,t[1]=i*l+o*c+a*s-r*u,t[2]=a*l+o*u+r*c-i*s,t[3]=o*l-r*s-i*c-a*u,t}function ke(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*s,t[1]=i*c+a*s,t[2]=a*c-i*s,t[3]=o*c-r*s,t}function Ee(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c-a*s,t[1]=i*c+o*s,t[2]=a*c+r*s,t[3]=o*c-i*s,t}function Te(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+i*s,t[1]=i*c-r*s,t[2]=a*c+o*s,t[3]=o*c-a*s,t}function Fe(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function Be(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),c=o>0?s*Math.sin(o)/o:0;return t[0]=n*c,t[1]=r*c,t[2]=i*c,t[3]=s*Math.cos(o),t}function Ie(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function Pe(t,e,n){return Ie(t,e),tn(t,t,n),Be(t,t),t}function Le(t,e,n,r){var i,a,o,c,u,l=e[0],h=e[1],f=e[2],p=e[3],d=n[0],g=n[1],v=n[2],y=n[3];return(a=l*d+h*g+f*v+p*y)<0&&(a=-a,d=-d,g=-g,v=-v,y=-y),1-a>s.b?(i=Math.acos(a),o=Math.sin(i),c=Math.sin((1-r)*i)/o,u=Math.sin(r*i)/o):(c=1-r,u=r),t[0]=c*l+u*d,t[1]=c*h+u*g,t[2]=c*f+u*v,t[3]=c*p+u*y,t}function De(t){var e=s.c(),n=s.c(),r=s.c(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t}function Re(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function _e(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function Ne(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+i]+e[3*i+a])*n,t[o]=(e[3*o+i]+e[3*i+o])*n}return t}function ze(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),u=Math.sin(r),l=Math.cos(r);return t[0]=a*c*l-o*s*u,t[1]=o*s*l+a*c*u,t[2]=o*c*u-a*s*l,t[3]=o*c*l+a*s*u,t}function Ye(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var Ge,Xe,Ve,He,We,qe,$e=Lt,Ue=Dt,Ze=Rt,Ke=_t,Qe=Nt,Je=Ae,tn=$t,en=re,nn=ae,rn=Qt,an=rn,on=Jt,sn=on,cn=ne,un=he,ln=fe,hn=(Ge=It.create(),Xe=It.fromValues(1,0,0),Ve=It.fromValues(0,1,0),function(t,e,n){var r=It.dot(e,n);return r<-.999999?(It.cross(Ge,Xe,e),It.len(Ge)<1e-6&&It.cross(Ge,Ve,e),It.normalize(Ge,Ge),Me(t,Ge,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(It.cross(Ge,e,n),t[0]=Ge[0],t[1]=Ge[1],t[2]=Ge[2],t[3]=1+r,cn(t,t))}),fn=(He=je(),We=je(),function(t,e,n,r,i,a){return Le(He,e,i,a),Le(We,n,r,a),Le(t,He,We,2*a*(1-a)),t}),pn=(qe=c(),function(t,e,n,r){return qe[0]=n[0],qe[3]=n[1],qe[6]=n[2],qe[1]=r[0],qe[4]=r[1],qe[7]=r[2],qe[2]=-e[0],qe[5]=-e[1],qe[8]=-e[2],cn(t,Ne(t,qe))}),dn=n(82)},,function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"k",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return l})),n.d(e,"j",(function(){return h})),n.d(e,"i",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"g",(function(){return d})),n.d(e,"f",(function(){return g})),n.d(e,"b",(function(){return v})),n.d(e,"e",(function(){return y}));var r=n(1),i=n(0),a=n(92),o=n(3);function s(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,a=n.seriesField;return!1===r?e.legend(!1):(i||a)&&e.legend(i||a,r),t}function c(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t}function u(t){var e=t.chart,n=t.options.interactions;return Object(i.each)(n,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function l(t){var e=t.chart,n=t.options.animation;return"boolean"==typeof n?e.animate(n):e.animate(!0),Object(i.each)(e.geometries,(function(t){t.animate(n)})),t}function h(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t}function f(t){var e=t.chart,n=t.options.state;return n&&Object(i.each)(e.geometries,(function(t){t.state(n)})),t}function p(t){var e=t.chart,n=t.options.slider;return e.option("slider",n),t}function d(t){var e=t.chart,n=t.options.scrollbar;return e.option("scrollbar",n),t}function g(t,e){return function(n){var r=n.chart,s=n.options,c={};return Object(i.each)(t,(function(t,e){c[e]=Object(o.p)(t,a.a)})),c=Object(o.b)({},e,s.meta,c),r.scale(c),n}}function v(t){return function(e){var n=e.chart,a=e.options,o=n.getController("annotation");return Object(i.each)(Object(r.g)(a.annotations||[],t||[]),(function(t){o.annotation(t)})),e}}function y(t){var e=t.chart,n=t.options,r=n.yAxis,a=n.limitInPlot,s=a;return Object(i.isObject)(r)&&Object(i.isNil)(a)&&(s=!!Object.values(Object(o.p)(r,["min","max","minLimit","maxLimit"])).some((function(t){return!Object(i.isNil)(t)}))),e.limitInPlot=s,t}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return a}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,a=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";n.d(e,"b",(function(){return i.a})),n.d(e,"c",(function(){return i.d})),n.d(e,"d",(function(){return i.e})),n.d(e,"a",(function(){return r}));var r={};n.r(r),n.d(r,"leftTranslate",(function(){return a})),n.d(r,"leftRotate",(function(){return o})),n.d(r,"leftScale",(function(){return s})),n.d(r,"transform",(function(){return c})),n.d(r,"direction",(function(){return u})),n.d(r,"angleTo",(function(){return l})),n.d(r,"vertical",(function(){return h}));var i=n(4);function a(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromTranslation(r,n),i.a.multiply(t,r,e)}function o(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromRotation(r,n),i.a.multiply(t,r,e)}function s(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromScaling(r,n),i.a.multiply(t,r,e)}function c(t,e){for(var n,r,c,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],l=0,h=e.length;l=0;return n?a?2*Math.PI-r:r:a?r:2*Math.PI-r}function h(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"VIEW_LIFE_CIRCLE",(function(){return c})),n.d(e,"VERSION",(function(){return $n})),n.d(e,"Chart",(function(){return an})),n.d(e,"View",(function(){return rn})),n.d(e,"Event",(function(){return Ue})),n.d(e,"ComponentController",(function(){return on})),n.d(e,"TooltipController",(function(){return sn})),n.d(e,"Geometry",(function(){return Fn})),n.d(e,"Element",(function(){return vn})),n.d(e,"GeometryLabel",(function(){return zn})),n.d(e,"Interaction",(function(){return he})),n.d(e,"Action",(function(){return Tt})),n.d(e,"Facet",(function(){return St})),n.d(e,"InteractionAction",(function(){return Tt})),n.d(e,"registerComponentController",(function(){return qe})),n.d(e,"registerGeometry",(function(){return nn})),n.d(e,"registerShape",(function(){return An})),n.d(e,"registerShapeFactory",(function(){return Sn})),n.d(e,"getShapeFactory",(function(){return kn})),n.d(e,"registerGeometryLabel",(function(){return xn})),n.d(e,"registerGeometryLabelLayout",(function(){return jn})),n.d(e,"getGeometryLabel",(function(){return bn})),n.d(e,"getGeometryLabelLayout",(function(){return On})),n.d(e,"getInteraction",(function(){return Oe})),n.d(e,"registerInteraction",(function(){return je})),n.d(e,"registerAction",(function(){return Pt})),n.d(e,"getActionClass",(function(){return It})),n.d(e,"getFacet",(function(){return kt})),n.d(e,"registerFacet",(function(){return Et})),n.d(e,"getTheme",(function(){return Re})),n.d(e,"registerTheme",(function(){return _e})),n.d(e,"registerEngine",(function(){return m})),n.d(e,"getEngine",(function(){return y})),n.d(e,"registerAnimation",(function(){return ln})),n.d(e,"getAnimation",(function(){return un})),n.d(e,"LAYER",(function(){return r})),n.d(e,"DIRECTION",(function(){return i})),n.d(e,"Coordinate",(function(){return N})),n.d(e,"Scale",(function(){return P.c})),n.d(e,"Util",(function(){return Un}));var r,i,a,o=n(1),s=n(0);!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(r||(r={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(i||(i={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(a||(a={}));var c,u,l,h,f=3,p=2,d=1;!function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(c||(c={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate"}(u||(u={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(l||(l={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(h||(h={}));var g=["color","shape","size"],v={};function y(t){var e=v[t];if(!e)throw new Error("G engine '"+t+"' is not exist, please register it at first.");return e}function m(t,e){v[t]=e}var b=n(15);function x(t){return"number"==typeof t&&!isNaN(t)}function O(t,e,n,r){var i=n,a=r;if(e){var o=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);i=o.width?o.width:i,a=o.height?o.height:a}return{width:Math.max(x(i)?i:1,1),height:Math.max(x(a)?a:1,1)}}var j=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return Object(o.c)(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(n(81).a),w=n(25),M=n(151),C=function(t,e){return Object(s.isString)(e)?e:t.invert(t.scale(e))},S=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),a=this.a*i,o=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=_.c.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=_.a.angleTo(r,[1,0],!0),a=i*this.a;_.c.length(r)this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*e*r,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,a=this.endAngle;this.isReflect("x")&&(i=(e=[a,i])[0],a=e[1]);var o=[1,0,0,0,1,0,0,0,1];_.a.leftRotate(o,o,i);var c=[1,0,0];_.d.transformMat3(c,c,o);var u=[c[0],c[1]],l=_.a.angleTo(u,r,a0?f:-f;var p=this.invertDim(h,"y"),d={x:0,y:0};return d.x=this.isTransposed?p:f,d.y=this.isTransposed?f:p,d},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);it.x?t.x:e,n=nt.y?t.y:r,i=i=r&&t<=i}function at(t,e){return e.forEach((function(e){delete t[e]})),t}function ot(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});for(var r=0,i=t;r=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;et.minX&&this.minYt.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function ct(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ut(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function lt(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=it(e.x,r.x,i.x)&&it(e.y,r.y,i.y)}else{var a=t.invert(e);n=it(a.x,0,1)&&it(a.y,0,1)}return n}function ht(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function ft(t,e){void 0===e&&(e=0);var n,r=t.start,i=t.end,a=t.getWidth(),o=t.getHeight();if(t.isPolar){var s=t.startAngle,c=t.endAngle,u=t.getCenter(),l=t.getRadius();return{type:"path",startState:{path:tt(u.x,u.y,l+e,s,s)},endState:function(t){var n=(c-s)*t+s;return{path:tt(u.x,u.y,l+e,s,n)}},attrs:{path:tt(u.x,u.y,l+e,s,c)}}}return n=t.isTransposed?{height:o+2*e}:{width:a+2*e},{type:"rect",startState:{x:r.x-e,y:i.y-e,width:t.isTransposed?a+2*e:0,height:t.isTransposed?0:o+2*e},endState:n,attrs:{x:r.x-e,y:i.y-e,width:a+2*e,height:o+2*e}}}var pt=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function dt(t,e,n){var r=e||[];if(Object(s.isNumber)(t)||Object(s.isNil)(Object(s.firstValue)(r,t))&&Object(s.isEmpty)(n))return new(Object(P.d)("identity"))({field:t.toString(),values:[t]});var i=Object(s.valuesOfKey)(r,t),a=Object(s.get)(n,"type",function(t){var e="linear";return pt.test(t)?e="timeCat":Object(s.isString)(t)&&(e="cat"),e}(i[0]));return new(Object(P.d)(a))(Object(o.a)({field:t,values:i},n))}function gt(t){return t.alias||t.field}function vt(t,e,n){var r,i=t.values.length;if(1===i)r=[.5,1];else{var a=0;r=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1}(e)?e.isTransposed?[(a=1/i*Object(s.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-a/2]:[0,1-1/i]:[a=1/i/2,1-a]}return r}function yt(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=function(t){var e,n;switch(t){case i.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}(e):t.isPolar&&(n=function(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}(t));var r=n.start,a=n.end;return{start:t.convert(r),end:t.convert(a)}}function mt(t){var e=t.start,n=t.end;return e.x===n.x}function bt(t,e){var n=t.start,r=t.end;return mt(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function xt(t,e){var n=Object(s.get)(t,["components","axis"],{});return Object(s.deepMix)({},Object(s.get)(n,["common"],{}),Object(s.deepMix)({},Object(s.get)(n,[e],{})))}function Ot(t,e,n){var r=Object(s.get)(t,["components","axis"],{});return Object(s.deepMix)({},Object(s.get)(r,["common","title"],{}),Object(s.deepMix)({},Object(s.get)(r,[e,"title"],{})),n)}function jt(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),o=[a.x-r.x,a.y-r.y],s=[1,0],c=a.y>r.y?_.c.angle(o,s):-1*_.c.angle(o,s),u=c+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:c,endAngle:u}}function wt(t,e){return Object(s.isBoolean)(t)?!1!==t&&{}:Object(s.get)(t,[e])}function Mt(t,e){return Object(s.get)(t,"position",e)}function Ct(t,e){return Object(s.get)(e,["title","text"],gt(t))}var St=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(s.deepMix)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,a=this.view.createView({region:e,padding:i});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){return this.view.getLayer(r.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(s.each)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Object(s.each)(t,(function(t){var i=t[e];Object(s.isNil)(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=1/(0===e?1:e),a=1/(0===t?1:t);return{start:{x:i*n,y:a*r},end:{x:i*(n+1),y:a*(r+1)}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries;if("rect"===Object(s.get)(r,"type","rect")&&i.length){Object(s.isNil)(n.axes)&&(n.axes={});var a=n.axes,o=i[0].getXYFields(),c=o[0],u=o[1],l=wt(a,c),h=wt(a,u);!1!==l&&(n.axes[c]=this.getXAxisOption(c,a,l,e)),!1!==h&&(n.axes[u]=this.getYAxisOption(u,a,h,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(s.every)(t,(function(t){var n=t.field,r=t.value;return!(!Object(s.isNil)(r)&&n)||e[n]===r}))}},t}(),At={},kt=function(t){return At[Object(s.lowerCase)(t)]},Et=function(t,e){At[Object(s.lowerCase)(t)]=e},Tt=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(s.assign)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(Tt),Bt={};function It(t){var e=Bt[t];return Object(s.get)(e,"ActionClass")}function Pt(t,e,n){Bt[t]={ActionClass:e,cfg:n}}function Lt(t,e){var n=new Ft(e);return n.callback=t,n.name="callback",n}function Dt(t,e){for(var n=[t[0]],r=1,i=t.length;r=o[u]?1:0,f=l>Math.PI?1:0,p=n.convert(s),d=ut(n,p);if(d>=.5)if(l===2*Math.PI){var g={x:(s.x+o.x)/2,y:(s.y+o.y)/2},v=n.convert(g);c.push(["A",d,d,0,f,h,v.x,v.y]),c.push(["A",d,d,0,f,h,p.x,p.y])}else c.push(["A",d,d,0,f,h,p.x,p.y]);return c}(n,r,t)):a.push(Dt(o,t));break;case"a":a.push(Rt(o,t));break;case"z":default:a.push(o)}})),function(t){Object(s.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(a),a}var Gt=n(48);function Xt(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function Vt(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function Ht(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function Wt(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function qt(t){return t&&t.component&&t.component.isList()}function $t(t){return t&&t.component&&t.component.isSlider()}function Ut(t){var e=t.event.target;return e&&"mask"===e.get("name")}function Zt(t,e){var n,r,i,a;if("path"===t.event.target.get("type")){var o=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!o)return;return n=t.view,r=o,i=Qt(n),a=ne(r),i.filter((function(t){var e,n,r=t.shape;if("path"===r.get("type"))e=ne(r.attr("path"));else{var i=r.getCanvasBBox();e=[[(n=i).minX,n.minY],[n.maxX,n.minY],[n.maxX,n.maxY],[n.minX,n.maxY]]}return Object(Gt.b)(a,e)}))}var s=Xt(t,e);return s?ee(t.view,s):null}function Kt(t,e,n){var r=Xt(t,n);if(!r)return null;var i=t.view,a=se(i,e,{x:r.x,y:r.y}),o=se(i,e,{x:r.maxX,y:r.maxY});return ee(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})}function Qt(t){var e=t.geometries,n=[];return Object(s.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(s.each)(t.views,(function(t){n=n.concat(Qt(t))})),n}function Jt(t,e){var n=t.geometries,r=[];return Object(s.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function te(t,e){var n=t.getModel().data;return Object(s.isArray)(n)?n[0][e]:n[e]}function ee(t,e){var n=Qt(t),r=[];return Object(s.each)(n,(function(t){var n,i,a=t.shape.getCanvasBBox();n=e,(i=a).minX>n.maxX||i.maxXn.maxY||i.maxY=e.x&&t.y<=e.y&&t.maxY>e.y}function oe(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function se(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function ce(t,e,n,r){var i=!1;return Object(s.each)(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function ue(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(s.each)(t.views,(function(t){if(n=ue(t,e))return!1})),n}var le=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return Object(s.get)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=re(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&ae(r,n):ae(r,n)}))},t.prototype.destroy=function(){this.view=null,this.event=null,Object(s.each)(this.actions.slice(),(function(t){t.destroy()})),this.actions=null,this.cacheMap=null},t}(),he=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();function fe(t,e,n){var r=t.split(":"),i=r[0],a=e.getAction(i)||function(t,e){var n=Bt[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r}(i,e);if(!a)throw new Error("There is no action named "+i);return{action:a,methodName:r[1],arg:n}}function pe(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n](r)}var de="start",ge="showEnable",ve="end",ye="rollback",me="processing",be=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return Object(o.c)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(s.each)(this.steps,(function(e,n){Object(s.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Object(s.each)(this.steps,(function(e,n){Object(s.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new le(t);this.context=e;var n=this.steps;Object(s.each)(n,(function(t){Object(s.each)(t,(function(t){if(Object(s.isFunction)(t.action))t.actionObject={action:Lt(t.action,e),methodName:"execute"};else if(Object(s.isString)(t.action))t.actionObject=fe(t.action,e,t.arg);else if(Object(s.isArray)(t.action)){var n=t.action,r=Object(s.isArray)(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(s.each)(n,(function(n,i){t.actionObject.push(fe(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===ge)return!0;if(t===me)return e===de;if(t===de)return e!==me;if(t===ve)return e===me||e===de;if(t===ye){if(n[ve])return e===ve;if(e===de)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==ge&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,i=this.callbackCaches,a=e.actionObject;if(e.action&&a){var o=this.getKey(t,e);if(!i[o]){var c=function(i){r.event=i,n.isAllowExecute(t,e)?(Object(s.isArray)(a)?Object(s.each)(a,(function(t){r.event=i,pe(t)})):(r.event=i,pe(a)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[o]=Object(s.debounce)(c,e.debounce.wait,e.debounce.immediate):e.throttle?i[o]=Object(s.throttle)(c,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[o]=c}return i[o]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(he),xe={};function Oe(t){return xe[Object(s.lowerCase)(t)]}function je(t,e){xe[Object(s.lowerCase)(t)]=e}function we(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},r=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),i=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=nt(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,a=7.5*Math.cos(i),o=7.5*Math.sin(i);return{matrix:_.a.transform(null,[["t",a,o]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:Object(o.a)(Object(o.a)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(o.a)(Object(o.a)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(o.a)(Object(o.a)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(o.a)(Object(o.a)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(o.a)(Object(o.a)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(o.a)(Object(o.a)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(o.a)(Object(o.a)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(o.a)(Object(o.a)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(s.deepMix)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(s.deepMix)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e[""+H.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+H.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},e[""+H.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},e[""+H.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+H.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+H.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var Me="#000",Ce="#595959",Se="#8C8C8C",Ae="#BFBFBF",ke="#D9D9D9",Ee="#F0F0F0",Te="#FFFFFF",Fe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Be=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Ie=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Pe=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"transparent":e,r=t.subColor,i=void 0===r?"rgba(0,0,0,0.05)":r,a=t.paletteQualitative10,o=void 0===a?Fe:a,s=t.paletteQualitative20,c=void 0===s?Be:s,u=t.paletteSemanticRed,l=void 0===u?"#F4664A":u,h=t.paletteSemanticGreen,f=void 0===h?"#30BF78":h,p=t.paletteSemanticYellow,d=void 0===p?"#FAAD14":p,g=t.paletteSequence,v=void 0===g?Ie:g,y=t.fontFamily,m=void 0===y?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':y,b=t.brandColor,x=void 0===b?o[0]:b;return{backgroundColor:n,brandColor:x,subColor:i,paletteQualitative10:o,paletteQualitative20:c,paletteSemanticRed:l,paletteSemanticGreen:f,paletteSemanticYellow:d,paletteSequence:v,fontFamily:m,axisLineBorderColor:Ae,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Ce,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:Ae,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:ke,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Se,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:ke,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Se,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:x,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Ce,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Me,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Me,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Se,legendPageNavigatorTextFontSize:12,sliderRailFillColor:ke,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Se,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Ee,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Ae,annotationArcBorderColor:ke,annotationArcBorder:1,annotationLineBorderColor:Ae,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Ce,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Me,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ae,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Ce,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Ce,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Te,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Ce,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Te,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ae,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:x,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Te,pointBorderOpacity:1,pointActiveBorderColor:Me,pointSelectedBorder:2,pointSelectedBorderColor:Me,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:x,hollowPointBorderOpacity:.95,hollowPointFillColor:Te,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Me,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Me,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:x,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:x,areaFillOpacity:.25,areaActiveFillColor:x,areaActiveFillOpacity:.5,areaSelectedFillColor:x,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:x,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Me,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Me,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:x,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Me,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Me,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:x,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Te,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Me,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Me,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};Pe();function Le(t){var e=t.styleSheet,n=void 0===e?{}:e,r=Object(o.e)(t,["styleSheet"]),i=Pe(n);return Object(s.deepMix)({},we(i),r)}var De={default:Le({})};function Re(t){return Object(s.get)(De,Object(s.lowerCase)(t),De.default)}function _e(t,e){De[Object(s.lowerCase)(t)]=Le(e)}function Ne(t,e,n){var r=n.translate(t),i=n.translate(e);return Object(s.isNumberEqual)(r,i)}function ze(t,e,n){var r=n.coordinate,i=n.getYScale(),a=i.field,o=r.invert(e),c=i.invert(o.y);return Object(s.find)(t,(function(t){var e=t._origin;return e[a][0]<=c&&e[a][1]>=c}))||t[t.length-1]}var Ye=Object(s.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,a=0;ai&&(i=s)}return(i-r)/(n-1)}));function Ge(t){for(var e,n=0,r=function(t){var e=Object(s.values)(t.attributes);return Object(s.filter)(e,(function(t){return Object(s.contains)(g,t.type)}))}(t);n(1+a)/2&&(s=o),r.translate(r.invert(s))}(t,n),O=m._origin[o],j=m._origin[c],w=b._origin[o],M=a.isLinear&&Object(s.isArray)(j);if(Object(s.isArray)(O)){for(d=0;d=x){if(!M){u=T;break}Object(s.isArray)(u)||(u=[]),u.push(T)}}Object(s.isArray)(u)&&(u=ze(u,t,n))}else{var C=void 0;if(i.isLinear||"timeCat"===i.type){if((x>i.translate(w)||xi.max||xMath.abs(i.translate(C._origin[o])-x)&&(b=C)}var F=Ye(n.getXScale());return!u&&Math.abs(i.translate(b._origin[o])-x)<=F/2&&(u=b),u}function Ve(t,e,n,r){void 0===n&&(n=""),void 0===r&&(r=!1);var i,a=t._origin,c=function(t,e,n){var r=e.getAttribute("position").getFields(),i=e.scales,a=Object(s.isFunction)(n)||!n?r[0]:n,o=i[a],c=o?o.getText(t[a]):t[a]||a;return Object(s.isFunction)(n)?n(c,t):c}(a,e,n),u=e.tooltipOption,l=e.theme.defaultColor,h=[];function f(e,n){if(r||!Object(s.isNil)(n)&&""!==n){var i={title:c,data:a,mappingData:t,name:e,value:n,color:t.color||l,marker:!0};h.push(i)}}if(Object(s.isObject)(u)){var p=u.fields,d=u.callback;if(d){var g=p.map((function(e){return t._origin[e]})),v=d.apply(void 0,g),y=Object(o.a)({data:t._origin,mappingData:t,title:c,color:t.color||l,marker:!0},v);h.push(y)}else for(var m=e.scales,b=0,x=p;b');I.appendChild(P);var L=O(I,u,i,a),D=new(y(v).Canvas)(Object(o.a)({container:P,pixelRatio:m,localRefresh:j,supportCSSTransform:S},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:d}),middleGroup:D.addGroup({zIndex:p}),foregroundGroup:D.addGroup({zIndex:f}),padding:l,appendPadding:h,visible:M,options:E,limitInPlot:T,theme:F,syncViewPadding:B})||this).onResize=Object(s.debounce)((function(){n.forceFit()}),300),n.ele=I,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=u,n.localRefresh=j,n.renderer=v,n.wrapperElement=P,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(k),n}return Object(o.c)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(s.each)(t,(function(t){e.interaction(t)}))},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(c.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(c.AFTER_CHANGE_SIZE)),this},e.prototype.destroy=function(){var e,n;t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),e=this.wrapperElement,(n=e.parentNode)&&n.removeChild(e),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=O(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(b.e)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(rn),on=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(s.each)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();var sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(o.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Ue.fromData(e,"tooltip:show",Object(o.a)({items:n,title:r},t)));var a=this.getTooltipCfg(),c=a.follow,u=a.showMarkers,l=a.showCrosshairs,h=a.showContent,f=a.marker,p=this.items,d=this.title;if(Object(s.isEqual)(d,r)&&Object(s.isEqual)(p,n)?(this.tooltip&&c&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",Ue.fromData(e,"tooltip:change",Object(o.a)({items:n,title:r},t))),(Object(s.isFunction)(h)?h(n):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(s.mix)({},a,{items:this.getItemsAfterProcess(n),title:r},c?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(n,f)),this.items=n,this.title=r,l){var g=Object(s.get)(a,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:i,a)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",Ue.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),this.reset()},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var n=0,r=e=Object(s.flatten)(e);n1){for(var h=e[0],f=Math.abs(t.y-h[0].y),p=0,d=e;p'+r+"":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),r=new Q(Object(o.a)(Object(o.a)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),r=0,i=t;r-1)return;r.push(t),"active"!==t&&"selected"!==t||o.toFront()}else{if(-1===c)return;r.splice(c,1),"active"!==t&&"selected"!==t||o.toBack()}var u=i.drawShape(s,a,this.getOffscreenGroup());r.length?this.syncShapeStyle(o,u,r,null):this.syncShapeStyle(o,u,["reset"],null),u.remove(!0);var l={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",l),Object(H.propagationDelegate)(this.shape,"statechange",l)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(s.each)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,i=n.defaultShapeType,a=n.theme[t]||n.theme[i];this.statesStyle=Object(s.deepMix)({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(s.get)(n,[t,"style"],{}),i=r[e]||r;return Object(s.isFunction)(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?Object(o.a)(Object(o.a)({},r),{callback:function(){var t;Object(s.isFunction)(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this.shapeFactory,i=this.container,a=this.shapeType;if(this.shape=r.drawShape(a,t,i),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?Object(s.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",h=this.getAnimateCfg(l);h&&(null===(n=this.geometry)||void 0===n||n.emit(u.BEFORE_DRAW_ANIMATE),gn(this.shape,h,{coordinate:r.coordinate,toAttrs:Object(o.a)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,i){var a,o=this;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var c=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(c,l,n,r),t.isGroup())for(var h=t.get("children"),f=e.get("children"),p=0;p=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(s.isNil)(e)||Object(s.isObject)(e))Object(s.isObject)(e)&&Object(s.isEqual)(Object.keys(e),["values"])?Object(s.set)(this.attributeOption,t,{fields:e.values}):Object(s.set)(this.attributeOption,t,e);else{var r={};Object(s.isNumber)(e)?r.values=[e]:r.fields=Tn(e),n&&(Object(s.isFunction)(n)?r.callback=n:r.values=n),Object(s.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,r=this.theme,i=this.shapeType;this.groupScales=[];var a={},s=function(s){if(n.hasOwnProperty(s)){var c=n[s];if(!c)return{value:void 0};var u=Object(o.a)({},c),l=u.callback,h=u.values,f=u.fields,p=(void 0===f?[]:f).map((function(e){var n=t.scales[e];return n.isCategory&&!a[e]&&g.includes(s)&&(t.groupScales.push(n),a[e]=!0),n}));u.scales=p,"position"!==s&&1===p.length&&"identity"===p[0].type?u.values=p[0].values:l||h||("size"===s?u.values=r.sizes:"shape"===s?u.values=r.shapes[i]||[]:"color"===s&&(p.length?u.values=p[0].values.length<=10?r.colors10:r.colors20:u.values=r.colors10));var d=D(s);e[s]=new d(u)}};for(var c in n){var u=s(c);if("object"==typeof u)return u.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),n=this.groupData(t),r=[],i=0,a=n.length;ia&&(a=l)}var h=this.scaleDefs,f={};it.max&&!Object(s.get)(h,[r,"max"])&&(f.max=a),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n1)for(var h=0;h0}))}var _n=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var r=this;void 0===n&&(n=!1),this.shapesMap={};var i=this.container,a=this.createOffscreenGroup();if(t.length){for(var c=0,u=t;c=e.getCount()&&(t.destroyed||e.add(t))}))}(p,f[e],{data:a,origin:c,animateCfg:l,coordinate:u}),r.shapesMap[e]=p}else{i.add(t);var d=Object(s.get)(t.get("animateCfg"),n?"enter":"appear");d&&gn(t,d,{toAttrs:Object(o.a)({},t.attr()),coordinate:t.get("coordinate")})}delete h[e]}})),Object(s.each)(h,(function(t){var e=Object(s.get)(t.get("animateCfg"),"leave");e?gn(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=f,a.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var n,r=t.id,i=t.elementId,a=t.data,c=t.mappingData,u=t.coordinate,l=t.animate,h=t.content,f={id:r,elementId:i,data:a,origin:Object(o.a)(Object(o.a)({},c),{data:c._origin}),coordinate:u},p=e.addGroup(Object(o.a)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&Object(s.deepMix)({},this.animate,l)},f));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var d=h.getCanvasBBox(),g=d.width,v=d.height,y=Object(s.get)(t,"textAlign","left"),m=t.x;"center"===y?m-=g/2:"right"!==y&&"end"!==y||(m-=g),In(h,m,t.y-v/2),n=h,p.add(h)}else{var b=Object(s.get)(t,["style","fill"]);n=p.addShape("text",Object(o.a)({attrs:Object(o.a)(Object(o.a)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(s.get)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(s.isNull)(b)?t.color:b})},f))}t.rotate&&Pn(n,t.rotate),this.shapesMap[r]=p},t.prototype.doLayout=function(t,e){var n=this;if(this.layout){var r=Object(s.isArray)(this.layout)?this.layout:[this.layout];Object(s.each)(r,(function(r){var i=On(Object(s.get)(r,"type",""));if(i){var a=[],o=[];Object(s.each)(n.shapesMap,(function(t,n){a.push(t),o.push(e[t.get("elementId")])})),i(t,a,o,n.region,r.cfg)}}))}},t.prototype.renderLabelLine=function(t){var e=this;Object(s.each)(t,(function(t){var n=Object(s.get)(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var a=Object(s.get)(t,"labelLine",{}),c=t.id,u=a.path;if(!u){var l=J(r.x,r.y,i,t.angle);u=[["M",l.x,l.y],["L",t.x,t.y]]}var h=e.shapesMap[c];h.destroyed||h.addShape("path",{capture:!1,attrs:Object(o.a)({path:u,stroke:t.color?t.color:Object(s.get)(t,["style","fill"],"#000"),fill:null},a.style),id:c,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t){var e=this;Object(s.each)(t,(function(t){var n=Object(s.get)(t,"coordinate"),r=Object(s.get)(t,"background");if(r&&n){var i=t.id,a=e.shapesMap[i];if(!a.destroyed){var c=a.getChildren()[0];if(c){var u=Dn(a,t,r.padding),l=u.rotation,h=Object(o.e)(u,["rotation"]),f=a.addShape("rect",{attrs:Object(o.a)(Object(o.a)({},h),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(f.setZIndex(-1),l){var p=c.getMatrix();f.setMatrix(p)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t){var e=this;Object(s.each)(t,(function(t){if(t){var n=t.id,r=e.shapesMap[n];if(!r.destroyed){var i=r.findAll((function(t){return"path"!==t.get("type")}));Object(s.each)(i,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();function Nn(t){var e=0;return Object(s.each)(t,(function(t){e+=t})),e/t.length}var zn=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return Object(s.each)(t,(function(t,i){var a=r[i];if(!a||Object(s.isNil)(t.x)||Object(s.isNil)(t.y))n.push(null);else{var c=Object(s.isArray)(a.content)?a.content:[a.content];a.content=c;var u=c.length;Object(s.each)(c,(function(r,i){if(Object(s.isNil)(r)||""===r)n.push(null);else{var c=Object(o.a)(Object(o.a)({},a),e.getLabelPoint(a,t,i));c.textAlign||(c.textAlign=e.getLabelAlign(c,i,u)),c.offset<=0&&(c.labelLine=null),n.push(c)}}))}})),n},t.prototype.render=function(t,e){void 0===e&&(e=!1);var n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes();r.render(n,i,e)},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(s.get)(i,"innerLabels",{}):Object(s.get)(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,i=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(s.deepMix)({},n,i.innerLabels,t):Object(s.deepMix)({},n,i.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*o:r*o*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function a(e,n,r){void 0===r&&(r=!1);var i=e;return Object(s.isArray)(i)&&(i=1===t.content.length?r?Nn(i):i.length<=2?i[e.length-1]:Nn(i):i[n]),i}var o={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(s.isArray)(e.shape)?e.shape[0]:e.shape,u="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var l=function(t,e){if(Object(s.isNumber)(t)&&Object(s.isNumber)(e))return[t,e];for(var n,r,i=-1,a=0,o=0,c=t.length-1,u=0;++i1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),a=t._origin,o=e.getElementId(t);return"line"===n||"area"===n?o+=" "+a[r.field]:"path"===n&&(o+=" "+a[r.field]+"-"+a[i.field]),o},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,a=this.geometry.coordinate,o=this.labelsRenderer;return o||(o=new _n({container:e,layout:Object(s.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=o),o.region=r,o.animate=!!i&&dn("label",a),o},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,a=n.coordinate,c=r,u=c.fields,l=c.callback,h=c.cfg,f=u.map((function(t){return i[t]})),p=[];return Object(s.each)(t,(function(t,n){var r,i=t._origin,c=e.getLabelText(i,f);if(l){var d=u.map((function(t){return i[t]}));if(r=l.apply(void 0,d),Object(s.isNil)(r))return void p.push(null)}var g=Object(o.a)(Object(o.a)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:i,mappingData:t,coordinate:a},h),r);Object(s.isFunction)(g.position)&&(g.position=g.position(i,t,n));var v=e.getLabelOffset(g.offset||0),y=e.getDefaultLabelCfg(v,g.position);(g=Object(s.deepMix)({},y,g)).offset=e.getLabelOffset(g.offset||0);var m=g.content;Object(s.isFunction)(m)?g.content=m(i,t,n):Object(s.isUndefined)(m)&&(g.content=c[0]),p.push(g)})),p},t.prototype.getLabelText=function(t,e){var n=[];return Object(s.each)(e,(function(e){var r=t[e.field];r=Object(s.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(s.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(s.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(s.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(s.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();n(448);function Yn(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,Object(o.g)([e],i)).join("")}else r=t.mapping(e).join("");return r||n}var Gn={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},Xn=["line","cross","tick","plus","hyphen"];function Vn(t){var e=t.symbol;Object(s.isString)(e)&&Gn[e]&&(t.symbol=Gn[e])}function Hn(t){return t.startsWith(i.LEFT)||t.startsWith(i.RIGHT)?"vertical":"horizontal"}function Wn(t,e,n,r,i){var a=n.getScale(n.type);if(a.isCategory){var c=a.field,u=e.getAttribute("color"),l=e.getAttribute("shape"),h=t.getTheme().defaultColor,f=e.coordinate.isPolar;return a.getTicks().map((function(n){var p,d=n.text,g=n.value,v=d,y=a.invert(g),m=0===t.filterFieldData(c,[(p={},p[c]=y,p)]).length;Object(s.each)(t.views,(function(t){var e;t.filterFieldData(c,[(e={},e[c]=y,e)]).length||(m=!0)}));var b,x,O=Yn(u,y,h),j=Yn(l,y,"point"),w=e.getShapeMarker(j,{color:O,isInPolar:f});return function(t,e){var n=t.symbol;if(Object(s.isString)(n)&&-1!==Xn.indexOf(n)){var r=Object(s.get)(t,"style",{}),i=Object(s.get)(r,"lineWidth",1),a=r.stroke||r.fill||e;t.style=Object(s.deepMix)({},t.style,{lineWidth:i,stroke:a,fill:null})}}(w=Object(s.deepMix)({},r,w,at(Object(o.a)({},i),["style"])),O),i&&i.style&&(w.style=(b=w.style,x=i.style,Object(s.isFunction)(x)?x(b):Object(s.deepMix)({},b,x))),Vn(w),{id:y,name:v,value:y,marker:w,unchecked:m}}))}return[]}function qn(t,e){var n=Object(s.get)(t,["components","legend"],{});return Object(s.deepMix)({},Object(s.get)(n,["common"],{}),Object(s.deepMix)({},Object(s.get)(n,[e],{})))}var $n="4.1.17",Un={getLegendItems:Wn,translate:In,rotate:Pn,zoom:function(t,e){var n=t.getBBox(),r=(n.minX+n.maxX)/2,i=(n.minY+n.maxY)/2;t.applyToMatrix([r,i,1]);var a=Bn(t.getMatrix(),[["t",-r,-i],["s",e,e],["t",r,i]]);t.setMatrix(a)},transform:Bn,getAngle:nt,getSectorPath:tt,polarToCartesian:J,getDelegationObject:Ht,getTooltipItems:Ve},Zn="#000",Kn="#BFBFBF",Qn="#F0F0F0",Jn="#FFFFFF",tr="#A6A6A6",er="#737373",nr="#404040",rr="#262626",ir=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ar=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],or=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],sr=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"#141414":e,r=t.subColor,i=void 0===r?"rgba(255,255,255,0.05)":r,a=t.paletteQualitative10,o=void 0===a?ir:a,s=t.paletteQualitative20,c=void 0===s?ar:s,u=t.paletteSemanticRed,l=void 0===u?"#F4664A":u,h=t.paletteSemanticGreen,f=void 0===h?"#30BF78":h,p=t.paletteSemanticYellow,d=void 0===p?"#FAAD14":p,g=t.paletteSequence,v=void 0===g?or:g,y=t.fontFamily,m=void 0===y?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':y,b=t.brandColor;return{backgroundColor:n,brandColor:void 0===b?o[0]:b,subColor:i,paletteQualitative10:o,paletteQualitative20:c,paletteSemanticRed:l,paletteSemanticGreen:f,paletteSemanticYellow:d,paletteSequence:v,fontFamily:m,axisLineBorderColor:nr,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:tr,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:nr,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:rr,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:er,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:rr,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:er,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:ir[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:tr,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:er,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:er,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:tr,legendPageNavigatorTextFontSize:12,sliderRailFillColor:rr,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:er,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Qn,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Kn,annotationArcBorderColor:rr,annotationArcBorder:1,annotationLineBorderColor:nr,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:tr,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Jn,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:nr,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:tr,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:tr,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Zn,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:tr,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Zn,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:nr,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:ir[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Zn,pointBorderOpacity:1,pointActiveBorderColor:Jn,pointSelectedBorder:2,pointSelectedBorderColor:Jn,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:ir[0],hollowPointBorderOpacity:.95,hollowPointFillColor:Zn,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Jn,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Jn,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:ir[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:ir[0],areaFillOpacity:.25,areaActiveFillColor:ir[0],areaActiveFillOpacity:.5,areaSelectedFillColor:ir[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:ir[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Jn,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Jn,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:ir[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Jn,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Jn,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:ir[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Zn,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Jn,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Jn,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}}(),cr=n(70),ur=n(99);function lr(t){return!t&&(null==t||isNaN(t))}function hr(t){if(Object(s.isArray)(t))return lr(t[1].y);var e=t.y;return Object(s.isArray)(e)?lr(e[0]):lr(e)}function fr(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,a=t.length;i0&&(u[0][0]="L")),a=a.concat(u)})),a.push(["Z"])}return a}function Mr(t,e,n,r,i){for(var a=gr(t,e,!e,"lineWidth"),o=t.connectNulls,s=t.isInCircle,c=fr(t.points,o,t.showSinglePoint),u=[],l=0,h=c.length;lr&&(r=i),i=e[0]})));for(var h=this.scales[u],f=0,p=t;fe&&(r=e-(n=n?e/(1+r/n):0)),i+a>e&&(a=e-(i=i?e/(1+a/i):0)),[n||0,r||0,i||0,a||0]}function Br(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},a=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},o=Object(s.get)(t,["background","style","radius"]);if(o){var c=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,u=n.isTransposed?n.getWidth():n.getHeight(),l=Fr(o,Math.min(c,u)),h=l[0],f=l[1],p=l[2],d=l[3];r.push(["M",i.x,a.y+h]),0!==h&&r.push(["A",h,h,0,0,1,i.x+h,a.y]),r.push(["L",a.x-f,a.y]),0!==f&&r.push(["A",f,f,0,0,1,a.x,a.y+f]),r.push(["L",a.x,i.y-p]),0!==p&&r.push(["A",p,p,0,0,1,a.x-p,i.y]),r.push(["L",i.x+d,i.y]),0!==d&&r.push(["A",d,d,0,0,1,i.x,i.y-d])}else r.push(["M",i.x,i.y]),r.push(["L",a.x,i.y]),r.push(["L",a.x,a.y]),r.push(["L",i.x,a.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var g=n.getCenter(),v=nt(t,n),y=v.startAngle,m=v.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)};h=Math.sqrt(b(g.x-e[0].x)+b(g.y-e[0].y)),f=Math.sqrt(b(g.x-e[2].x)+b(g.y-e[2].y));r=tt(g.x,g.y,h,n.startAngle,n.endAngle,f)}else r=tt(g.x,g.y,n.getRadius(),y,m)}return r}function Ir(t,e,n){var r=[];return Object(s.isNil)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[2].x,t[2].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}Sn("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Er(t)}});An("interval","rect",{draw:function(t,e){var n,r=gr(t,!1,!0),i=e,a=null==t?void 0:t.background;if(a){i=e.addGroup();var s=vr(t),c=Br(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(o.a)(Object(o.a)({},s),{path:c}),zIndex:-1,name:"element-background"})}n=r.radius&&this.coordinate.isRect?function(t,e,n){var r,i,a,o,s=t[0],c=t[1],u=t[2],l=t[3],h=[0,0,0,0],f=h[0],p=h[1],d=h[2],g=h[3];s.yt[1].x?(l=t[0],s=t[1],c=t[2],u=t[3],f=(a=Fr(n,Math.min(l.x-s.x,s.y-c.y)))[0],g=a[1],d=a[2],p=a[3]):(p=(o=Fr(n,Math.min(l.x-s.x,s.y-c.y)))[0],d=o[1],g=o[2],f=o[3]));var v=[];return v.push(["M",c.x,c.y+f]),0!==f&&v.push(["A",f,f,0,0,1,c.x+f,c.y]),v.push(["L",u.x-p,u.y]),0!==p&&v.push(["A",p,p,0,0,1,u.x,u.y+p]),v.push(["L",l.x,l.y-d]),0!==d&&v.push(["A",d,d,0,0,1,l.x-d,l.y]),v.push(["L",s.x+g,s.y]),0!==g&&v.push(["A",g,g,0,0,1,s.x,s.y-g]),v.push(["L",c.x,c.y+f]),v.push(["z"]),v}(this.parsePoints(t.points),this.coordinate,r.radius):this.parsePath(function(t,e,n){var r=n.getWidth(),i=n.getHeight(),a="rect"===n.type,o=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*i/r:s*r/i;return"round"===e?(a?(o.push(["M",t[0].x,t[0].y+c]),o.push(["L",t[1].x,t[1].y-c]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),o.push(["L",t[3].x,t[3].y+c]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(o.push(["M",t[0].x,t[0].y]),o.push(["L",t[1].x,t[1].y]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y]),o.push(["L",t[3].x,t[3].y]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y])),o.push(["z"])):o=Tr(t),o}(t.points,r.lineCap,this.coordinate));var u=i.addShape("path",{attrs:Object(o.a)(Object(o.a)({},r),{path:n}),name:"interval"});return a?i:u},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function Pr(t){var e=t.theme,n=t.coordinate,r=t.getXScale(),i=r.values,a=t.beforeMappingData,o=i.length,c=ct(t.coordinate),u=t.intervalPadding,l=t.dodgePadding,h=t.maxColumnWidth||e.maxColumnWidth,f=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var v=function(t,e){var n=t.length,r=t;Object(s.isString)(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],a=2;ao&&(i=o)}return i}(i,r);o=(r.max-r.min)/v,i.length>o&&(o=i.length)}var y=r.range,m=1/o,b=1;(n.isPolar?b=n.isTransposed&&o>1?d:g:(r.isLinear&&(m*=y[1]-y[0]),b=p),!Object(s.isNil)(u)&&u>=0)?m=(1-(o-1)*(u/c))/o:m*=b;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(s.flatten)(t);return Object(s.valuesOfKey)(n,e).length}return t.length}(a,t.getAdjust("dodge").dodgeBy);if(!Object(s.isNil)(l)&&l>=0)m=(m-l/c*(x-1))/x;else!Object(s.isNil)(u)&&u>=0?(m*=b,m/=x):m/=x;m=m>=0?m:0}if(!Object(s.isNil)(h)&&h>=0){var O=h/c;m>O&&(m=O)}if(!Object(s.isNil)(f)&&f>=0){var j=f/c;m0&&!Object(s.get)(i,[a,"min"])&&r.change({min:0}),u<=0&&!Object(s.get)(i,[a,"max"])&&r.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(Fn),Dr=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return Object(o.c)(e,t),e}(jr),Rr=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function _r(t,e,n,r,i){var a=gr(e,i,!i,"r"),s=t.parsePoints(e.points),c=s[0];if(e.isStack)c=s[1];else if(s.length>1){for(var u=n.addGroup(),l=0,h=s;l2?"weight":"normal";if(t.isInCircle){var s={x:0,y:1};return"normal"===a?n=function(t,e,n){var r=Vr(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(i[0],i[1],s):(r.fill=r.stroke,n=function(t,e){var n=Vr(t[1],e),r=Vr(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(i,s)),n=this.parsePath(n),e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},r),{path:n})})}if("normal"===a)return n=et(((i=this.parsePoints(i))[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},r),{path:n})});var c=Xr(i[1],i[3]),u=Xr(i[2],i[0]);return n=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],c,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],u,["Z"]],n=this.parsePath(n),r.fill=r.stroke,e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},r),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),An("edge","smooth",{draw:function(t,e){var n=gr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=Xr(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(r[0],r[1]));return e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});An("edge","vhv",{draw:function(t,e){var n=gr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return Object(s.each)(n,(function(t){r.push(["L",t.x,t.y])})),r}(r[0],r[1]));return e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),An("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Er(t)},draw:function(t,e){var n=gr(t,!1,!0),r=this.parsePath(Ir(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),An("interval","hollow-rect",{draw:function(t,e){var n=gr(t,!0,!1),r=e,i=null==t?void 0:t.background;if(i){r=e.addGroup();var a=vr(t),s=Br(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(o.a)(Object(o.a)({},a),{path:s}),zIndex:-1,name:"element-background"})}var c=this.parsePath(Tr(t.points)),u=r.addShape("path",{attrs:Object(o.a)(Object(o.a)({},n),{path:c}),name:"interval"});return i?r:u},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),An("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,i=e.y0,Object(s.isArray)(r)?r.map((function(t,e){return{x:Object(s.isArray)(n)?n[e]:n,y:t}})):[{x:n,y:i},{x:n,y:r}];var e,n,r,i},draw:function(t,e){var n=gr(t,!0,!1,"lineWidth"),r=at(Object(o.a)({},n),["fill"]),i=this.parsePath(Tr(t.points,!1));return e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),An("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Er(t,!0)},draw:function(t,e){var n=gr(t,!1,!0),r=this.parsePath(Ir(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),An("interval","tick",{getPoints:function(t){return function(t){var e,n,r=t.x,i=t.y,a=t.y0,o=t.size;Object(s.isArray)(i)?(e=i[0],n=i[1]):(e=a,n=i);var c=r+o/2,u=r-o/2;return[{x:r,y:e},{x:r,y:n},{x:u,y:e},{x:c,y:e},{x:u,y:n},{x:c,y:n}]}(t)},draw:function(t,e){var n,r=gr(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:Object(o.a)(Object(o.a)({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}});function Hr(t,e){var n=fr(t.points,t.connectNulls,t.showSinglePoint),r=[];return Object(s.each)(n,(function(t){var n=function(t,e){var n=[];return Object(s.each)(t,(function(r,i){var a=t[i+1];if(n.push(r),a){var o=function(t,e,n){var r,i=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":r=[{x:o,y:a}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var c=(o+i)/2;r=[{x:c,y:a},{x:c,y:s}];break;case"vhv":var u=(a+s)/2;r=[{x:i,y:u},{x:o,y:u}]}return r}(r,a,e);n=n.concat(o)}})),n}(t,e);r=r.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),Object(o.a)(Object(o.a)({},gr(t,!0,!1,"lineWidth")),{path:r})}function Wr(t){var e=Object(s.isArray)(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n;return{min:n,max:r,min1:i,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:i}}function qr(t,e,n){var r,i=n/2;if(Object(s.isArray)(e)){var a=Wr(e),o=a.min,c=a.max,u=a.median,l=a.min1,h=t-i,f=t+i;r=[[h,c],[f,c],[t,c],[t,p=a.max1],[h,l],[h,p],[f,p],[f,l],[t,l],[t,o],[h,o],[f,o],[h,u],[f,u]]}else{e=Object(s.isNil)(e)?.5:e;var p,d=Wr(t),g=(o=d.min,c=d.max,u=d.median,e-i),v=e+i;r=[[o,g],[o,v],[o,e],[l=d.min1,e],[l,g],[l,v],[p=d.max1,v],[p,g],[p,e],[c,e],[c,g],[c,v],[u,g],[u,v]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}function $r(t){var e=(Object(s.isArray)(t)?t:[t]).sort((function(t,e){return e-t}));return function(t,e,n){if(Object(s.isString)(t))return t.padEnd(e,n);if(Object(s.isArray)(t)){var r=t.length;if(r1){for(var a=e.addGroup(),o=0,s=r;o0?"left":"right");break;case"left":t.x=c,t.y=(i+o)/2,t.textAlign=Object(s.get)(t,"textAlign",d>0?"left":"right");break;case"bottom":l&&(t.x=(a+c)/2),t.y=o,t.textAlign=Object(s.get)(t,"textAlign","center"),t.textBaseline=Object(s.get)(t,"textBaseline",d>0?"bottom":"top");break;case"middle":l&&(t.x=(a+c)/2),t.y=(i+o)/2,t.textAlign=Object(s.get)(t,"textAlign","center"),t.textBaseline=Object(s.get)(t,"textBaseline","middle");break;case"top":l&&(t.x=(a+c)/2),t.y=i,t.textAlign=Object(s.get)(t,"textAlign","center"),t.textBaseline=Object(s.get)(t,"textBaseline",d>0?"bottom":"top")}},e}(zn),Qr=Math.PI/2,Jr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(s.isNumber)(t))n=t;else if(Object(s.isString)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),r=this.geometry.getYScale();return Object(s.map)(n,(function(t){if(t&&r){var e=r.scale(Object(s.get)(t.data,r.field));return Object(o.a)(Object(o.a)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,a=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var o=t.offset*i,s=this.getPointAngle(r),c=t.labelEmit,u=this.getCirclePoint(s,o,r,c);return 0===u.r?u.content="":(u.content=a,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,o,c):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(s.isArray)(t.x)||Object(s.isArray)(t.y)?{x:Object(s.isArray)(t.x)?t.x[e]:t.x,y:Object(s.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return ht(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),a=i.getCenter(),s=ut(i,n);if(0===s)return Object(o.a)(Object(o.a)({},a),{r:s});var c=t;i.isTransposed&&s>e&&!r?c=t+2*Math.asin(e/(2*s)):s+=e;return{x:a.x+s*Math.cos(c),y:a.y+s*Math.sin(c),r:s}},e.prototype.getLabelRotate=function(t,e,n){var r=t+Qr;return n&&(r-=Qr),r&&(r>Qr?r-=Math.PI:r<-Qr&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(s.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(zn),ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(o.c)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(s.deepMix)({},r,Object(s.get)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:Object(s.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},i={x:Object(s.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},a=ht(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=a;else{var o=ht(n,i);a>=o&&(o+=2*Math.PI),e=a+(o-a)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return Object(o.a)(Object(o.a)({},J(r.x,r.y,i,t)),{angle:t,r:i})},e}(Jr);function ei(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,a=!0,o=n.minY,s=n.maxY,c=Math.abs(o-s),u=0,l=Number.MIN_VALUE,h=r.map((function(t){return t.y>u&&(u=t.y),t.yc&&(c=u-o);a;)for(h.forEach((function(t){var e=(Math.min.apply(l,t.targets)+Math.max.apply(l,t.targets))/2;t.pos=Math.min(Math.max(l,e-t.size/2),c-t.size),t.pos=Math.max(0,t.pos)})),a=!1,i=h.length;i--;)if(i>0){var f=h[i-1],p=h[i];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>c&&(f.pos=c-f.size),h.splice(i,1),a=!0)}i=0,h.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}var ni=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var c=a;c<=o;c++)if(n[s][c]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=r;o+=1)e[o]||(e[o]={});for(o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=i;o<=a;o+=1)e[n][o]=!0,e[r][o]=!0;if(1!==this.xGap)for(o=n;o<=r;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function ri(t,e,n,r){var i=t.getCanvasBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}var ii=_.c.dot;function ai(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function oi(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function si(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[oi(e[0],n,e[0]),oi(e[1],n,e[0]),oi(e[2],n,e[0]),oi(e[3],n,e[0])]:e}function ci(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(ii([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function ui(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height=a.height:o.width>=a.width}(t,e,i)}))}function di(t,e,n){return t.some((function(t){return n(t,e)}))}function gi(t,e){return di(t,e,(function(t,e){var n,r,i,a=Ln(t),o=Ln(e);return n=a.getCanvasBBox(),r=o.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function vi(t,e,n){return t.some((function(t){return n(t,e)}))}function yi(t,e){return vi(t,e,(function(t,e){var n,r,i,a=Ln(t),o=Ln(e);return n=a.getCanvasBBox(),r=o.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}var mi=Object(s.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,a=e.fontStyle,o=e.fontVariant,c=(hi||(hi=document.createElement("canvas").getContext("2d")),hi);return c.font=[a,o,i,n+"px",r].join(" "),c.measureText(Object(s.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(o.g)([t],Object(s.values)(e)).join("")}));function bi(t,e,n,r,i){var a,o,s=n.start,c=n.end,u=n.getWidth(),l=n.getHeight();"y"===i?(a=s.x+u/2,o=r.ys.x?r.x:s.x,o=s.y+l/2):"xy"===i&&(n.isPolar?(a=n.getCenter().x,o=n.getCenter().y):(a=(s.x+c.x)/2,o=(s.y+c.y)/2));var h=function(t,e,n){var r,i=e[0],a=e[1];return t.applyToMatrix([i,a,1]),"x"===n?(t.setMatrix(_.a.transform(t.getMatrix(),[["t",-i,-a],["s",.01,1],["t",i,a]])),r=_.a.transform(t.getMatrix(),[["t",-i,-a],["s",100,1],["t",i,a]])):"y"===n?(t.setMatrix(_.a.transform(t.getMatrix(),[["t",-i,-a],["s",1,.01],["t",i,a]])),r=_.a.transform(t.getMatrix(),[["t",-i,-a],["s",1,100],["t",i,a]])):"xy"===n&&(t.setMatrix(_.a.transform(t.getMatrix(),[["t",-i,-a],["s",.01,.01],["t",i,a]])),r=_.a.transform(t.getMatrix(),[["t",-i,-a],["s",100,100],["t",i,a]])),r}(t,[a,o],i);t.animate({matrix:h},e)}function xi(t,e){var n,r=Object(cr.getArcParams)(t,e),i=r.startAngle,a=r.endAngle;return!Object(s.isNumberEqual)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!Object(s.isNumberEqual)(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),0===e[5]&&(i=(n=[a,i])[0],a=n[1]),Object(s.isNumberEqual)(i,1.5*Math.PI)&&(i=-.5*Math.PI),Object(s.isNumberEqual)(a,-.5*Math.PI)&&(a=1.5*Math.PI),{startAngle:i,endAngle:a}}function Oi(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function ji(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=i[0],o=i.length>1?i[1]:i[0],c=t.indexOf(a),u=t.indexOf(o),l=Oi(t[c-1]),h=Oi(t[u-1]),f=xi(l,a),p=f.startAngle,d=f.endAngle,g=xi(h,o),v=g.startAngle,y=g.endAngle;Object(s.isNumberEqual)(p,v)&&Object(s.isNumberEqual)(d,y)?(n=p,r=d):(n=Math.min(p,v),r=Math.max(d,y));var m=a[1],b=i[i.length-1][1];return m=0;i--)for(var a=0,o=this.getFacetsByLevel(t,i);a=n){var i=r.parsePosition([t[c],t[o.field]]);i&&f.push(i)}if(t[c]===h)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,a=r.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:r.getWidth()*e+o,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+r,maxY:a.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),a=this.view.getCanvas(),c={};if(Object(s.isNil)(e))return null;if("arc"===t){var u=e,l=u.start,h=u.end,f=this.parsePosition(l),p=this.parsePosition(h),d=ht(i,f),g=ht(i,p);d>g&&(g=2*Math.PI+g),c={center:i.getCenter(),radius:ut(i,f),startAngle:d,endAngle:g}}else if("image"===t){var v=e;l=v.start,h=v.end;c={start:this.parsePosition(l),end:this.parsePosition(h),src:e.src}}else if("line"===t){var y=e;l=y.start,h=y.end;c={start:this.parsePosition(l),end:this.parsePosition(h),text:Object(s.get)(e,"text",null)}}else if("region"===t){var m=e;l=m.start,h=m.end;c={start:this.parsePosition(l),end:this.parsePosition(h)}}else if("text"===t){var b=this.view.getData(),x=e,O=x.position,j=x.content,w=Object(o.e)(x,["position","content"]),M=j;Object(s.isFunction)(j)&&(M=j(b)),c=Object(o.a)(Object(o.a)(Object(o.a)({},this.parsePosition(O)),w),{content:M})}else if("dataMarker"===t){var C=e,S=(O=C.position,C.point),A=C.line,k=C.text,E=C.autoAdjust,T=C.direction;c=Object(o.a)(Object(o.a)({},this.parsePosition(O)),{coordinateBBox:this.getCoordinateBBox(),point:S,line:A,text:k,autoAdjust:E,direction:T})}else if("dataRegion"===t){var F=e,B=(l=F.start,h=F.end,F.region),I=(k=F.text,F.lineLength);c={points:this.getRegionPoints(l,h),region:B,text:k,lineLength:I}}else if("regionFilter"===t){var P=e,L=(l=P.start,h=P.end,P.apply),D=P.color,R=this.view.geometries,_=[],N=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):_.push(e))};Object(s.each)(R,(function(t){L?Object(s.contains)(L,t.type)&&Object(s.each)(t.elements,(function(t){N(t.shape)})):Object(s.each)(t.elements,(function(t){N(t.shape)}))})),c={color:D,shapes:_,start:this.parsePosition(l),end:this.parsePosition(h)}}else if("shape"===t){var z=e,Y=z.render,G=Object(o.e)(z,["render"]);c=Object(o.a)(Object(o.a)({},G),{render:function(t){if(Object(s.isFunction)(e.render))return Y(t,r.view,{parsePosition:r.parsePosition.bind(r)})}})}else if("html"===t){var X=e,V=X.html;O=X.position,G=Object(o.e)(X,["html","position"]);c=Object(o.a)(Object(o.a)(Object(o.a)({},G),this.parsePosition(O)),{parent:a.get("el").parentNode,html:function(t){return Object(s.isFunction)(V)?V(t,r.view):V}})}var H=Object(s.deepMix)({},n,Object(o.a)(Object(o.a)({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(H.container=this.getComponentContainer(H)),H.animate=this.view.getOptions().animate&&H.animate&&Object(s.get)(e,"animate",H.animate),H.animateOption=Object(s.deepMix)({},hn,H.animateOption,e.animateOption),H},e.prototype.isTop=function(t){return Object(s.get)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(s.get)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,t,r);at(i,["container"]),e.component.update(i),Object(s.includes)(Pi,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(s.includes)(Pi,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){Object(s.find)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(on);function Di(t,e){var n=Object(s.deepMix)({},Object(s.get)(t,["components","axis","common"]),Object(s.get)(t,["components","axis",e]));return Object(s.get)(n,["grid"],{})}function Ri(t,e,n,r){var i=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var c=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]})}return a}),a[0]),i}function _i(t,e,n,r,i){var a=e.values.length,o=[],c=n.getTicks();return c.reduce((function(e,n){var c=e?e.value:n.value,u=n.value,l=(c+u)/2;return"x"===i?o.push({points:[t.convert({x:r?u:l,y:0}),t.convert({x:r?u:l,y:1})]}):o.push({points:Object(s.map)(Array(a+1),(function(e,n){return t.convert({x:n/a,y:r?u:l})}))}),n}),c[0]),o}function Ni(t,e){var n=Object(s.get)(e,"grid");if(null===n)return!1;var r=Object(s.get)(t,"grid");return!(void 0===n&&null===r)}var zi=["container"],Yi=Object(o.a)(Object(o.a)({},hn),{appear:null}),Gi=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(r.BG).addGroup(),n.gridForeContainer=n.view.getLayer(r.FORE).addGroup(),n.axisContainer=n.view.getLayer(r.BG).addGroup(),n.axisForeContainer=n.view.getLayer(r.FORE).addGroup(),n}return Object(o.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Object(s.each)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,c=n.extra,u=c.dim,l=c.scale,h=c.alignTick;if(s===a.AXIS)e.isPolar?"x"===u?r=e.isTransposed?yt(e,o):jt(e):"y"===u&&(r=e.isTransposed?jt(e):yt(e,o)):r=yt(e,o);else if(s===a.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===u?_i(e,t.view.getYScales()[0],l,h,u):Ri(e,l,u,h):"x"===u?Ri(e,l,u,h):_i(e,t.view.getXScale(),l,h,u),center:t.view.getCoordinate().getCenter()}}else r={items:Ri(e,l,u,h)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=wt(this.option,e.field);if(!1!==n){var a=Mt(n,i.BOTTOM),o=r.BG,c=this.view.getCoordinate(),u=this.getId("axis",e.field),l=this.getId("grid",e.field);if(c.isRect){if(h=this.cache.get(u))at(p=this.getLineAxisCfg(e,n,a),zi),h.component.update(p),t.set(u,h);else h=this.createLineAxis(e,n,o,a,"x"),this.cache.set(u,h),t.set(u,h);if(f=this.cache.get(l))at(p=this.getLineGridCfg(e,n,a,"x"),zi),f.component.update(p),t.set(l,f);else(f=this.createLineGrid(e,n,o,a,"x"))&&(this.cache.set(l,f),t.set(l,f))}else if(c.isPolar){var h,f;if(h=this.cache.get(u)){at(p=c.isTransposed?this.getLineAxisCfg(e,n,i.RADIUS):this.getCircleAxisCfg(e,n,a),zi),h.component.update(p),t.set(u,h)}else{if(c.isTransposed){if(Object(s.isUndefined)(n))return;h=this.createLineAxis(e,n,o,i.RADIUS,"x")}else h=this.createCircleAxis(e,n,o,a,"x");this.cache.set(u,h),t.set(u,h)}if(f=this.cache.get(l)){var p;at(p=c.isTransposed?this.getCircleGridCfg(e,n,i.RADIUS,"x"):this.getLineGridCfg(e,n,i.CIRCLE,"x"),zi),f.component.update(p),t.set(l,f)}else{if(c.isTransposed){if(Object(s.isUndefined)(n))return;f=this.createCircleGrid(e,n,o,i.RADIUS,"x")}else f=this.createLineGrid(e,n,o,i.CIRCLE,"x");f&&(this.cache.set(l,f),t.set(l,f))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(s.each)(n,(function(n,a){if(n&&!n.isIdentity){var o=n.field,c=wt(e.option,o);if(!1!==c){var u=r.BG,l=e.getId("axis",o),h=e.getId("grid",o),f=e.view.getCoordinate();if(f.isRect){var p=Mt(c,0===a?i.LEFT:i.RIGHT);if(d=e.cache.get(l))at(v=e.getLineAxisCfg(n,c,p),zi),d.component.update(v),t.set(l,d);else d=e.createLineAxis(n,c,u,p,"y"),e.cache.set(l,d),t.set(l,d);if(g=e.cache.get(h))at(v=e.getLineGridCfg(n,c,p,"y"),zi),g.component.update(v),t.set(h,g);else(g=e.createLineGrid(n,c,u,p,"y"))&&(e.cache.set(h,g),t.set(h,g))}else if(f.isPolar){var d,g;if(d=e.cache.get(l)){at(v=f.isTransposed?e.getCircleAxisCfg(n,c,i.CIRCLE):e.getLineAxisCfg(n,c,i.RADIUS),zi),d.component.update(v),t.set(l,d)}else{if(f.isTransposed){if(Object(s.isUndefined)(c))return;d=e.createCircleAxis(n,c,u,i.CIRCLE,"y")}else d=e.createLineAxis(n,c,u,i.RADIUS,"y");e.cache.set(l,d),t.set(l,d)}if(g=e.cache.get(h)){var v;at(v=f.isTransposed?e.getLineGridCfg(n,c,i.CIRCLE,"y"):e.getCircleGridCfg(n,c,i.RADIUS,"y"),zi),g.component.update(v),t.set(h,g)}else{if(f.isTransposed){if(Object(s.isUndefined)(c))return;g=e.createLineGrid(n,c,u,i.CIRCLE,"y")}else g=e.createCircleGrid(n,c,u,i.RADIUS,"y");g&&(e.cache.set(h,g),t.set(h,g))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,o){var s={component:new W(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===i.RADIUS?i.NONE:r,type:a.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,o){var c=this.getLineGridCfg(t,e,r,o);if(c){var u={component:new $(c),layer:n,direction:i.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(s.get)(c,"alignTick",!0)}};return u.component.init(),u}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new q(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:a.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,o){var c=this.getCircleGridCfg(t,e,r,o);if(c){var u={component:new U(c),layer:n,direction:i.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(s.get)(c,"alignTick",!0)}};return u.component.init(),u}},e.prototype.getLineAxisCfg=function(t,e,n){var r=Object(s.get)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),a=yt(i,n),c=Ct(t,e),u=xt(this.view.getTheme(),n),l=Object(s.get)(e,["title"])?Object(s.deepMix)({title:{style:{text:c}}},{title:Ot(this.view.getTheme(),n,e.title)},e):e,h=Object(s.deepMix)(Object(o.a)(Object(o.a)({container:r},a),{ticks:t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*bt(a,i.getCenter()):bt(a,i.getCenter()),theme:u}),u,l),f=this.getAnimateCfg(h),p=f.animate,d=f.animateOption;h.animateOption=d,h.animate=p;var g=mt(a),v=Object(s.get)(h,"verticalLimitLength",g?1/3:.5);if(v<=1){var y=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=v*(g?y:m)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if(Ni(xt(this.view.getTheme(),n),e)){var i=Di(this.view.getTheme(),n),a=Object(s.deepMix)({container:Object(s.get)(e,["top"])?this.gridForeContainer:this.gridContainer},i,Object(s.get)(e,"grid"),this.getAnimateCfg(e));return a.items=Ri(this.view.getCoordinate(),t,r,Object(s.get)(a,"alignTick",!0)),a}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=Object(s.get)(e,["top"])?this.axisForeContainer:this.axisContainer,a=this.view.getCoordinate(),c=t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}));t.isCategory||Math.abs(a.endAngle-a.startAngle)!==2*Math.PI||c.pop();var u=Ct(t,e),l=xt(this.view.getTheme(),i.CIRCLE),h=Object(s.get)(e,["title"])?Object(s.deepMix)({title:{style:{text:u}}},{title:Ot(this.view.getTheme(),n,e.title)},e):e,f=Object(s.deepMix)(Object(o.a)(Object(o.a)({container:r},jt(this.view.getCoordinate())),{ticks:c,verticalFactor:1,theme:l}),l,h),p=this.getAnimateCfg(f),d=p.animate,g=p.animateOption;return f.animate=d,f.animateOption=g,f},e.prototype.getCircleGridCfg=function(t,e,n,r){if(Ni(xt(this.view.getTheme(),n),e)){var a=Di(this.view.getTheme(),i.RADIUS),o=Object(s.deepMix)({container:Object(s.get)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},a,Object(s.get)(e,"grid"),this.getAnimateCfg(e)),c=Object(s.get)(o,"alignTick",!0),u="x"===r?this.view.getYScales()[0]:this.view.getXScale();return o.items=_i(this.view.getCoordinate(),u,t,c,r),o}},e.prototype.getId=function(t,e){return t+"-"+e+"-"+this.view.getCoordinate().type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(s.get)(t,"animate"),animateOption:t&&t.animateOption?Object(s.deepMix)({},Yi,t.animateOption):Yi}},e}(on);function Xi(t,e,n){return n===i.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===i.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===i.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===i.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===i.TOP_LEFT||n===i.LEFT_TOP?[t.tl.x,t.tl.y]:n===i.TOP_RIGHT||n===i.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===i.BOTTOM_LEFT||n===i.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===i.BOTTOM_RIGHT||n===i.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function Vi(t,e){return Object(s.isBoolean)(t)?!1!==t&&{}:Object(s.get)(t,[e],t)}function Hi(t){return Object(s.get)(t,"position",i.BOTTOM)}var Wi=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(r.FORE).addGroup(),n}return Object(o.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,Object(s.each)(this.components,(function(e){var n=e.component,r=e.direction,i=Hn(r),a=t.getCategoryLegendSizeCfg(i),o=n.get("maxWidth"),s=n.get("maxHeight");n.update({maxWidth:Math.min(a.maxWidth,o||0),maxHeight:Math.min(a.maxHeight,s||0)});var c=n.get("padding"),u=n.getLayoutBBox(),l=new st(u.x,u.y,u.width,u.height).expand(c),h=Xi(t.view.viewBBox,l,r),f=h[0],p=h[1],d=Xi(t.layoutBBox,l,r),g=d[0],v=d[1],y=0,m=0;r.startsWith("top")||r.startsWith("bottom")?(y=f,m=v):(y=g,m=p),n.setLocation({x:y+c[3],y:m+c[0]}),t.layoutBBox=t.layoutBBox.cut(l,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Object(s.get)(this.option,"custom")){var n="global-custom",i=this.getComponentById(n);if(i){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);at(o,["container"]),i.component.update(o),e[n]=!0}else{var c=this.createCustomLegend(void 0,void 0,void 0,this.option);if(c){c.init();var u=r.FORE,l=Hi(this.option);this.components.push({id:n,component:c,layer:u,direction:l,type:a.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,i){var a=t.getId(i.field),o=t.getComponentById(a);if(o){var c=void 0,u=Vi(t.option,i.field);!1!==u&&(Object(s.get)(u,"custom")?c=t.getCategoryCfg(n,r,i,u,!0):i.isLinear?c=t.getContinuousCfg(n,r,i,u):i.isCategory&&(c=t.getCategoryCfg(n,r,i,u))),c&&(at(c,["container"]),o.direction=Hi(u),o.component.update(c),e[a]=!0)}else{var l=t.createFieldLegend(n,r,i);l&&(l.component.init(),t.components.push(l),e[a]=!0)}}));var h=[];Object(s.each)(this.getComponents(),(function(t){e[t.id]?h.push(t):t.component.destroy()})),this.components=h},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(s.each)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};Object(s.each)(e,(function(e){var r=e.getGroupAttributes();Object(s.each)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var i,o=Vi(this.option,n.field),c=r.FORE,u=Hi(o);if(!1!==o&&(Object(s.get)(o,"custom")?i=this.createCustomLegend(t,e,n,o):n.isLinear?i=this.createContinuousLegend(t,e,n,o):n.isCategory&&(i=this.createCategoryLegend(t,e,n,o))),i)return i.set("field",n.field),{id:this.getId(n.field),component:i,layer:c,direction:u,type:a.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new Z(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,r);return new K(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new Z(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),a=Object(s.find)(i,(function(t){return 0===t.value})),o=Object(s.find)(i,(function(t){return 1===t.value})),c=i.map((function(t){var r=t.value,i=t.tickValue,a=e.mapping(n.invert(r)).join("");return{value:i,attrValue:a,color:a,scaleValue:r}}));a||c.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),o||c.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),c.sort((function(t,e){return t.value-e.value}));var u={min:Object(s.head)(c).value,max:Object(s.last)(c).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(u.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(u.colors=c.map((function(t){return t.attrValue})));var l=this.container,h=Hn(Hi(r)),f=Object(s.get)(r,"title");return f&&(f=Object(s.deepMix)({text:gt(n)},f)),u.container=l,u.layout=h,u.title=f,u.animateOption=hn,this.mergeLegendCfg(u,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,a){var o=this.container,c=Object(s.get)(r,"position",i.BOTTOM),u=qn(this.view.getTheme(),c),l=Object(s.get)(u,["marker"]),h=Object(s.get)(r,"marker"),f=Hn(c),p=Object(s.get)(u,["pageNavigator"]),d=Object(s.get)(r,"pageNavigator"),g=a?function(t,e,n){return n.map((function(n){var r=Object(s.deepMix)({},t,e,n.marker);return Vn(r),n.marker=r,n}))}(l,h,r.items):Wn(this.view,t,e,l,h),v=Object(s.get)(r,"title");v&&(v=Object(s.deepMix)({text:n?gt(n):""},v));var y=this.getCategoryLegendSizeCfg(f);y.container=o,y.layout=f,y.items=g,y.title=v,y.animateOption=hn,y.pageNavigator=Object(s.deepMix)({},p,d);var m=this.mergeLegendCfg(y,r,c);m.reversed&&m.items.reverse();var b=Object(s.get)(m,"maxItemWidth");return b&&b<=1&&(m.maxItemWidth=this.view.viewBBox.width*b),m},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=qn(this.view.getTheme(),r);return Object(s.deepMix)({},i,t,e)},e.prototype.getId=function(t){return this.name+"-"+t},e.prototype.getComponentById=function(t){return Object(s.find)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t){var e=this.view.viewBBox,n=e.width,r=e.height;return"vertical"===t?{maxWidth:.25*n,maxHeight:r}:{maxWidth:n,maxHeight:.25*r}},e}(on),qi=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t[0],r=t[1];n.start=e,n.end=r,n.changeViewData(e,r)},n.container=n.view.getLayer(r.FORE).addGroup(),n.onChangeFn=Object(s.throttle)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(c.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(c.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(o.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(c.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(c.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;Object(s.isNil)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Object(s.isEmpty)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),r=n[0],a=(n[1],n[2],n[3]),s=this.slider.component.getLayoutBBox(),c=new st(s.x,s.y,Math.min(s.width,e),s.height).expand(n),u=this.getMinMaxText(this.start,this.end),l=u.minText,h=u.maxText,f=Xi(this.view.viewBBox,c,i.BOTTOM),p=(f[0],f[1]),d=Xi(this.view.coordinateBBox,c,i.BOTTOM),g=d[0];d[1];this.slider.component.update(Object(o.a)(Object(o.a)({},this.getSliderCfg()),{x:g+a,y:p+r,width:this.width,start:this.start,end:this.end,minText:l,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(c,i.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new H.Slider(Object(o.a)({container:this.container},t));return e.init(),{component:e,layer:r.FORE,direction:i.BOTTOM,type:a.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=Object(o.a)(Object(o.a)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Object(s.isObject)(this.option)){var e=Object(o.a)({data:this.getData()},Object(s.get)(this.option,"trendCfg",{}));t=Object(s.deepMix)({},t,this.getThemeOptions(),this.option),t=Object(o.a)(Object(o.a)({},t),{trendCfg:e})}return t.start=Object(s.clamp)(Math.min(Object(s.isNil)(t.start)?0:t.start,Object(s.isNil)(t.end)?1:t.end),0,1),t.end=Object(s.clamp)(Math.max(Object(s.isNil)(t.start)?0:t.start,Object(s.isNil)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var r=n[0],i=r.field,a=r.ticks;return t.reduce((function(t,n){return n[i]===a[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(s.get)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(s.valuesOfKey)(n,r.field),a=i,o=Object(s.size)(n);if(!r||!o)return{};var c=Object(s.size)(a),u=Math.floor(t*(c-1)),l=Math.floor(e*(c-1)),h=Object(s.get)(a,[u]),f=Object(s.get)(a,[l]),p=this.getSliderCfg().formatter;return p&&(h=p(h,n[u],u),f=p(f,n[l],l)),{minText:h,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(s.size)(n);if(r&&i){var a=Object(s.valuesOfKey)(n,r.field),o=a,c=Object(s.size)(o),u=Math.floor(t*(c-1)),l=Math.floor(e*(c-1));this.view.filter(r.field,(function(t,e){var n=o.indexOf(t);return!(n>-1)||it(n,u,l)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(on),$i=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(s.clamp)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(r.FORE).addGroup(),n.onChangeFn=Object(s.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(c.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(c.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(o.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(c.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(c.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),r=this.scrollbar.component.getLayoutBBox(),a=new st(r.x,r.y,Math.min(r.width,e),r.height).expand(n),s=this.getScrollbarComponentCfg(),c=void 0,u=void 0;if(s.isHorizontal){var l=Xi(this.view.viewBBox,a,i.BOTTOM),h=(l[0],l[1]),f=Xi(this.view.coordinateBBox,a,i.BOTTOM),p=f[0];f[1];c=p,u=h}else{var d=Xi(this.view.viewBBox,a,i.RIGHT),g=(d[0],h=d[1],Xi(this.view.viewBBox,a,i.RIGHT));p=g[0],g[1];c=p,u=h}c+=n[3],u+=n[0],this.trackLen?this.scrollbar.component.update(Object(o.a)(Object(o.a)({},s),{x:c,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(o.a)(Object(o.a)({},s),{x:c,y:u})),this.view.viewBBox=this.view.viewBBox.cut(a,s.isHorizontal?i.BOTTOM:i.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(s.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(s.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=Object(o.e)(n,["thumbHighlightColor"]);return{default:Object(s.deepMix)({},Object(s.get)(e,["default","style"],{}),i),hover:Object(s.deepMix)({},Object(s.get)(e,["hover","style"],{}),{thumbColor:r})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.view.getOptions().data,this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(s.clamp)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=t[0],i=t[1],a="vertical"!==this.getValidScrollbarCfg().type,o=Object(s.valuesOfKey)(this.data,this.xScaleCfg.field),c=a?o:o.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=c.indexOf(t);return!(e>-1)||it(e,r,i)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new H.Scrollbar(Object(o.a)(Object(o.a)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:r.FORE,direction:t?i.BOTTOM:i.RIGHT,type:a.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(o.a)(Object(o.a)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(o.a)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.view.getOptions().data,n=Object(s.valuesOfKey)(e,t.field);return Object(s.size)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,a=r.padding,c=r.width,u=r.height,l=r.style,h="vertical"!==i,f=a[0],p=a[1],d=a[2],g=a[3],v=h?{x:e.minX+g,y:n.maxY-u-d}:{x:n.maxX-c-p,y:e.minY+f},y=this.getStep(),m=this.getCnt(),b=h?e.width-g-p:e.height-f-d,x=Math.max(b*Object(s.clamp)(y/m,0,1),20);return Object(o.a)(Object(o.a)({},this.getThemeOptions()),{x:v.x,y:v.y,size:h?u:c,isHorizontal:h,trackLen:b,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(l)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Object(s.isObject)(this.option)&&(t=Object(o.a)(Object(o.a)({},t),this.option)),Object(s.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e}(on),Ui={fill:"#CCD6EC",opacity:.3},Zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getTooltipItems({x:n.x,y:n.y});if(!Object(s.isEqual)(r,this.items)&&(this.items=r,r.length)){var i=e.getXScale().field,a=r[0].data[i],c=[],u=e.geometries;if(Object(s.each)(u,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[i]===a}));c=c.concat(e)}})),c.length){var l=e.getCoordinate(),h=c[0].shape.getCanvasBBox(),f=c[0].shape.getCanvasBBox(),p=h;Object(s.each)(c,(function(t){var e=t.shape.getCanvasBBox();l.isTransposed?(e.minYf.maxY&&(f=e)):(e.minXf.maxX&&(f=e)),p.x=Math.min(e.minX,p.minX),p.y=Math.min(e.minY,p.minY),p.width=Math.max(e.maxX,p.maxX)-p.x,p.height=Math.max(e.maxY,p.maxY)-p.y}));var d=e.backgroundGroup,g=e.coordinateBBox,v=void 0;if(l.isRect){var y=e.getXScale().isLinear?0:.25,m=void 0,b=void 0,x=void 0,O=void 0;l.isTransposed?(m=g.minX,b=Math.min(f.minY,h.minY)-y*f.height,x=g.width,O=p.height+2*y*f.height):(m=Math.min(h.minX,f.minX)-y*h.width,b=Math.min(g.minY,h.minY),x=p.width+2*y*h.width,O=g.height),v=[["M",m,b],["L",m+x,b],["L",m+x,b+O],["L",m,b+O],["Z"]]}else{var j=Object(s.head)(c),w=Object(s.last)(c),M=nt(j.getModel(),l).startAngle,C=nt(w.getModel(),l).endAngle,S=l.getCenter(),A=l.getRadius(),k=l.innerRadius*A;v=tt(S.x,S.y,A,M,C,k)}if(this.regionPath)this.regionPath.attr("path",v),this.regionPath.show();else{var E=Object(s.get)(t,"style",Ui);this.regionPath=d.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(o.a)(Object(o.a)({},E),{path:v})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(Tt),Ki=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o.c)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,i=+new Date;if(i-r>Object(s.get)(t.view.getOptions(),"tooltip.showDelay",16)){var a=this.location,o={x:e.x,y:e.y};a&&Object(s.isEqual)(a,o)||this.showTooltip(n,o),this.timeStamp=i,this.location=o}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Tt),Qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.showTooltip=function(t,e){var n=oe(t);Object(s.each)(n,(function(n){var r=se(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=oe(t);Object(s.each)(e,(function(t){t.hideTooltip()}))},e}(Ki),Ji=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o.c)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,i={x:t.x,y:t.y};r&&Object(s.isEqual)(r,i)||this.showTooltip(i),this.timeStamp=n,this.location=i}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(Object(o.a)({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),a=Object(s.get)(i,["components","tooltip","domStyles"],{}),c=new Q({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:Object(o.a)({},Object(s.deepMix)({},a,(t={},t[H.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[H.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(Tt),ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(o.c)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=Jt(t,this.stateName);Object(s.each)(n,(function(t){e.setElementState(t,!1)}))},e}(Tt);function ea(t){return Object(s.get)(t.get("delegateObject"),"item")}var na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(o.c)(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),a=Qt(r);this.setElementsStateByItem(a,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=ue(this.context.view,e),i=te(t,e);return!Object(s.isNil)(i)&&n.name===r.getText(i)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;Object(s.each)(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=Vt(this.context);if(e)Wt(this.context)&&this.setStateByElement(e,t);else{var n=Ht(this.context);if(qt(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var a=this.context.event.gEvent;if(a&&a.fromShape&&a.toShape&&ea(a.fromShape)===ea(a.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=Vt(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(ta),ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o.c)(e,t),e.prototype.active=function(){this.setState()},e}(na),ia=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(o.c)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n){t.addShape({type:"path",attrs:{opacity:.4,fill:e.shape.attr("fill"),path:this.getLinkPath(e,n)}})},e.prototype.linkByElement=function(t){var e=this,n=this.context.view,r=this.getColorScale(n,t);if(r){var i=te(t,r.field);if(!this.cache[i]){var a=function(t,e,n){return Qt(t).filter((function(t){return te(t,e)===n}))}(n,r.field,i),o=this.linkGroup.addGroup();this.cache[i]=o;var c=a.length;Object(s.each)(a,(function(t,n){if(n=0}),e)},e}(aa),ya=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o.c)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){la(Qt(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){ua(this.context.view)},e}(sa),ma=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o.c)(e,t),e.prototype.selected=function(){this.setState()},e}(aa),ba=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o.c)(e,t),e.prototype.selected=function(){this.setState()},e}(na),xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o.c)(e,t),e.prototype.selected=function(){this.setState()},e}(sa),Oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(o.c)(e,t),e.prototype.getTriggerListInfo=function(){var t=Ht(this.context),e=null;return qt(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=re(this.context.view),n=[];return Object(s.each)(e,(function(e){e.isList()&&t.allowSetStateByElement(e)&&n.push(e)})),n},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(s.each)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=ue(this.context.view,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=ue(this.context.view,r),a=te(e,r),o=i.getText(a);this.setItemsState(t,o,n)},e.prototype.setStateEnable=function(t){var e=this,n=Vt(this.context);if(n){var r=this.getAllowComponents();Object(s.each)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var i=Ht(this.context);if(qt(i)){var a=i.item,o=i.component;this.allowSetStateByElement(o)&&this.allowSetStateByItem(a,o)&&this.setItemState(o,a,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,i=t.getItems();Object(s.each)(i,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Tt),ja=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o.c)(e,t),e.prototype.active=function(){this.setState()},e}(Oa);var wa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(o.c)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Object(s.each)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var i=t.getItemsByState("active"),a=!0;Object(s.each)(i,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(s.each)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t,e,n=this.getTriggerListInfo();if(n)t=n.list,e=t.getItems(),Object(s.each)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}));else{var r=this.getAllowComponents();Object(s.each)(r,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(Oa),Ma=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Oa),Ca=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(o.c)(e,t),e.prototype.unchecked=function(){this.setState()},e}(Oa),Sa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return Object(o.c)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&Object(s.each)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!Object(s.some)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(s.each)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(Oa),Aa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return Object(o.c)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:"+t,n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(o.a)({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.points;Object(s.each)(i,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(){var t=this.getMaskAttrs();this.maskShape.attr(t)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(Tt),ka=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(o.c)(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(s.last)(this.points),n=0,r=0,i=0;if(t.length){var a=t[0];n=ie(a,e)/2,r=(e.x+a.x)/2,i=(e.y+a.y)/2}return{x:r,y:i,r:n}},e}(Aa),Ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(o.c)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(s.head)(t),end:Object(s.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(Aa);function Ta(t){t.x=Object(s.clamp)(t.x,0,1),t.y=Object(s.clamp)(t.y,0,1)}var Fa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(o.c)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,i=this.context.view.getCoordinate(),a=i.invert(Object(s.head)(n)),o=i.invert(Object(s.last)(n));return this.inPlot&&(Ta(a),Ta(o)),"x"===r?(t=i.convert({x:a.x,y:0}),e=i.convert({x:o.x,y:1})):(t=i.convert({x:0,y:a.y}),e=i.convert({x:1,y:o.y})),{start:t,end:e}},e}(Ea),Ba=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(s.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(Aa),Ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.getMaskPath=function(){return function(t,e){if(t.length<=2)return Nt(t,!1);var n=t[0],r=[];Object(s.each)(t,(function(t){r.push(t.x),r.push(t.y)}));var i=_t(r,e,null);return i.unshift(["M",n.x,n.y]),i}(this.points,!0)},e}(Ba),Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(Tt),La=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(s.each)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Ht(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(qt(t)){if(r){var i=n.getItemsByState("unchecked"),a=ue(e,r),o=i.map((function(t){return t.name}));o.length?this.filterView(e,r,(function(t){var e=a.getText(t);return!o.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if($t(t)){var s=n.getValue(),c=s[0],u=s[1];this.filterView(e,r,(function(t){return t>=c&&t<=u})),e.render(!0)}}},e}(Tt);function Da(t,e,n,r){var i=Math.min(n[e],r[e]),a=Math.max(n[e],r[e]),o=t.range,s=o[0],c=o[1];if(ic&&(a=c),i===c&&a===c)return null;var u=t.invert(i),l=t.invert(a);if(t.isCategory){var h=t.values.indexOf(u),f=t.values.indexOf(l),p=t.values.slice(h,f+1);return function(t){return p.includes(t)}}return function(t){return t>=u&&t<=l}}var Ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return Object(o.c)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(Ut(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context.view,i=r.getCoordinate(),a=i.invert(e),o=i.invert(t);if(this.hasDim("x")){var s=r.getXScale(),c=Da(s,"x",a,o);this.filterView(r,s.field,c)}if(this.hasDim("y")){var u=r.getYScales()[0];c=Da(u,"y",a,o);this.filterView(r,u.field,c)}this.reRender(r)}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t)},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t){t.render(!0)},e}(Tt),_a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.filterView=function(t,e,n){var r=oe(t);Object(s.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=oe(t);Object(s.each)(e,(function(t){t.render(!0)}))},e}(Ra),Na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.c)(e,t),e.prototype.filter=function(){var t=Ht(this.context),e=this.context.view,n=Qt(e);if(Ut(this.context)){var r=Zt(this.context,10);r&&Object(s.each)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,a=i.get("field");if(qt(t)){if(a){var o=i.getItemsByState("unchecked"),c=ue(e,a),u=o.map((function(t){return t.name}));Object(s.each)(n,(function(t){var e=te(t,a),n=c.getText(e);u.indexOf(n)>=0?t.hide():t.show()}))}}else if($t(t)){var l=i.getValue(),h=l[0],f=l[1];Object(s.each)(n,(function(t){var e=te(t,a);e>=h&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=Qt(this.context.view);Object(s.each)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Tt),za=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(o.c)(e,t),e.prototype.filter=function(){Ut(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Zt(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data})),a=oe(t);Object(s.each)(a,(function(t){var e=Qt(t);Object(s.each)(e,(function(t){var e=t.getModel().data;ce(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=oe(this.context.view);Object(s.each)(e,(function(e){var n=Kt(t.context,e,10),r=Qt(e);n&&Object(s.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=oe(this.context.view);Object(s.each)(t,(function(t){var e=Qt(t);Object(s.each)(e,(function(t){t.show()}))}))},e}(Tt),Ya=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return Object(o.c)(e,t),e.prototype.getButtonCfg=function(){return Object(s.deepMix)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Object(o.a)({text:t.text},t.textStyle)}).getBBox(),r=He(t.padding),i=e.addShape({type:"rect",name:"button-rect",attrs:Object(o.a)({x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style)});i.toBack(),e.on("mouseenter",(function(){i.attr(t.activeStyle)})),e.on("mouseleave",(function(){i.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=_.a.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Tt),Ga=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(o.c)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):ie(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(Tt),Xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return Object(o.c)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(ie(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=_.a.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Tt),Va=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(o.c)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(Tt),Ha=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(o.c)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(s.each)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,a=n.values;t.startCache[e]={min:r,max:i,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),i=n.invert(e),a=n.invert(r),o=a.x-i.x,c=a.y-i.y,u=this.context.view,l=this.dims;Object(s.each)(l,(function(e){t.translateDim(e,{x:-1*o,y:-1*c})})),u.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=o-a,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+c,max:o+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Va),Wa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(o.c)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(s.each)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],a=i.max-i.min,o=e.min,s=e.max,c=n*a,u=o-c,l=s+c,h=(l-u)/a;l>u&&h<100&&h>.01&&r.scale(e.field,{nice:!1,min:o-c,max:s+c})},e}(Va);function qa(t){return t.isInPlot()}function $a(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}_e("dark",we(sr)),m("canvas",cr),m("svg",ur),nn("Polygon",zr),nn("Interval",Lr),nn("Schema",Yr),nn("Path",jr),nn("Point",Nr),nn("Line",Dr),nn("Area",Sr),nn("Edge",Ar),nn("Heatmap",kr),nn("Violin",Gr),xn("base",zn),xn("interval",Kr),xn("pie",ti),xn("polar",Jr),jn("overlap",(function(t,e,n,r){var i=new ni;Object(s.each)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,a=n.y,o=!1,s=0;s<=8;s++){var c=ri(e,r,a,s);if(i.hasGap(c)){i.fillGap(c),o=!0;break}}o||t.remove(!0)})),i.destroy()})),jn("distribute",(function(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,a=e[0].get("coordinate"),o=a.getRadius(),c=a.getCenter();if(i>0){var u=2*(o+i)+28,l={start:a.start,end:a.end},h=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?h[0].push(t):h[1].push(t))})),h.forEach((function(t,n){var r=u/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,r,i,a){var o,c=!0,u=r.start,l=r.end,h=Math.min(u.y,l.y),f=Math.abs(u.y-l.y),p=0,d=Number.MIN_VALUE,g=e.map((function(t){return t.y>p&&(p=t.y),t.yf&&(f=p-h);c;)for(g.forEach((function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),f-t.size)})),c=!1,o=g.length;o--;)if(o>0){var v=g[o-1],y=g[o];v.pos+v.size>y.pos&&(v.size+=y.size,v.targets=v.targets.concat(y.targets),v.pos+v.size>f&&(v.pos=f-v.size),g.splice(o,1),c=!0)}o=0,g.forEach((function(t){var r=h+n/2;t.targets.forEach((function(){e[o].y=t.pos+r,r+=n,o++}))}));for(var m={},b=0,x=t;bi.maxX||r.maxY>i.maxY)&&t.remove(!0)}))})),jn("limit-in-canvas",(function(t,e,n,r){Object(s.each)(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,a=r.maxY,o=t.getCanvasBBox(),s=o.minX,c=o.minY,u=o.maxX,l=o.maxY,h=o.x,f=o.y,p=o.width,d=o.height,g=h,v=f;(si?g=i-p:u>i&&(g-=u-i),c>a?v=a-d:l>a&&(v-=l-a),g===h&&v===f||In(t,g-h,v-f)}))})),jn("limit-in-plot",(function(t,e,n,r,i){if(!(e.length<=0)){var a=(null==i?void 0:i.direction)||["top","right","bottom","left"],o=(null==i?void 0:i.action)||"translate",c=(null==i?void 0:i.margin)||0,u=e[0].get("coordinate");if(u){var l=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),a=t.getHeight(),o=Math.min(n.x,r.x),s=Math.min(n.y,r.y);return st.fromRange(o-e,s-e,o+i+e,s+a+e)}(u,c),h=l.minX,f=l.minY,p=l.maxX,d=l.maxY;Object(s.each)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,c=e.maxY,u=e.x,l=e.y,g=e.width,v=e.height,y=u,m=l;if(a.indexOf("left")>=0&&(n=0&&(r=0&&(n>p?y=p-g:i>p&&(y-=i-p)),a.indexOf("bottom")>=0&&(r>d?m=d-v:c>d&&(m-=c-d)),y!==u||m!==l){var b=y-u;if("translate"===o)In(t,b,m-l);else if("ellipsis"===o){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=Object(s.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=function(t,e,n){var r,i=mi("...",n);r=Object(s.isString)(t)?t:Object(s.toString)(t);var a,o,c=e,u=[];if(mi(t,n)<=e)return t;for(;a=r.substr(0,16),!((o=mi(a,n))+i>c&&o>c);)if(u.push(a),c-=o,!(r=r.substr(16)))return u.join("");for(;a=r.substr(0,1),!((o=mi(a,n))+i>c);)if(u.push(a),c-=o,!(r=r.substr(1)))return u.join("");return u.join("")+"..."}(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",r)}))}else t.hide()}}))}}})),jn("pie-outer",(function(t,e,n,r){var i=Object(s.filter)(t,(function(t){return!Object(s.isNil)(t)})),a=e[0]&&e[0].get("coordinate");if(a){for(var o=a.getCenter(),c=a.getRadius(),u={},l=0,h=e;ln&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s.each)(t,(function(t,e){e+1>n&&(u[t.id].set("visible",!1),t.invisible=!0)}))),ei(t,p,x)})),Object(s.each)(g,(function(t,e){Object(s.each)(t,(function(t){var n="right"===e,r=u[t.id].getChildByIndex(0);if(r){var i=c+d,l=t.y-o.y,h=Math.pow(i,2),f=Math.pow(l,2),p=h-f>0?h-f:0,g=Math.sqrt(p),v=Math.abs(Math.cos(t.angle)*i);t.x=n?o.x+Math.max(g,v):o.x-Math.max(g,v)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,a=t.offset,o=J(n.x,n.y,r,i),c=t.x+Object(s.get)(t,"offsetX",0)*(Math.cos(i)>0?1:-1),u=t.y+Object(s.get)(t,"offsetY",0)*(Math.sin(i)>0?1:-1),l={x:c-4*Math.cos(i),y:u-4*Math.sin(i)},h=t.labelLine.smooth,f=[],p=l.x-n.x,d=l.y-n.y,g=Math.atan(d/p);if(p<0&&(g+=Math.PI),!1===h){Object(s.isObject)(t.labelLine)||(t.labelLine={});var v=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&l.y>o.y&&(v=1),i>=0&&io.y&&(v=1),i>=Math.PI/2&&il.y&&(v=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&o.y>l.y&&(v=1);var y=a/2>4?4:Math.max(a/2-1,0),m=J(n.x,n.y,r+y,i),b=J(n.x,n.y,r+a/2,g);f.push("M "+o.x+" "+o.y),f.push("L "+m.x+" "+m.y),f.push("A "+n.x+" "+n.y+" 0 0 "+v+" "+b.x+" "+b.y),f.push("L "+l.x+" "+l.y)}else{m=J(n.x,n.y,r+(a/2>4?4:Math.max(a/2-1,0)),i);var x=o.xMath.pow(Math.E,-16)&&f.push.apply(f,["C",l.x+4*x,l.y,2*m.x-o.x,2*m.y-o.y,o.x,o.y]),f.push("L "+o.x+" "+o.y)}t.labelLine.path=f.join(" ")}}(t,a)}))}))}}})),jn("adjust-color",(function(t,e,n){if(0!==n.length){var r=n[0].get("element").geometry.theme,i=r.labels||{},a=i.fillColorLight,o=i.fillColorDark;n.forEach((function(t,n){var i=e[n].find((function(t){return"text"===t.get("type")})),s=st.fromObject(t.getBBox()),c=st.fromObject(i.getCanvasBBox()),u=!s.contains(c),l=function(t){var e=k.a.toRGB(t).toUpperCase();if(fi[e])return fi[e];var n=k.a.rgb2arr(e);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}(t.attr("fill"));u?i.attr(r.overflowLabels.style):l?a&&i.attr("fill",a):o&&i.attr("fill",o)}))}})),jn("interval-adjust-position",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),a=null==i?void 0:i.geometry;if(a&&"interval"===a.type)pi(a,e,n)&&n.forEach((function(t,n){var r=e[n];!function(t,e,n){var r=t.coordinate,i=st.fromObject(n.getBBox()),a=Ln(e);r.isTransposed?a.attr({x:i.minX+i.width/2,textAlign:"center"}):a.attr({y:i.minY+i.height/2,textBaseline:"middle"})}(a,r,t)}))}})),jn("interval-hide-overlap",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),a=null==i?void 0:i.geometry;if(a&&"interval"===a.type){var o,c=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return Object(s.each)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),u=a.getXYFields()[0],l=[],h=[],f=Object(s.groupBy)(c,(function(t){return t.get("data")[u]})),p=Object(s.uniq)(Object(s.map)(c,(function(t){return t.get("data")[u]})));c.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&h.push(t.pop()),h.push.apply(h,t))};for(Object(s.size)(p)>0&&(o=p.shift(),d(f[o])),Object(s.size)(p)>0&&(o=p.pop(),d(f[o])),Object(s.each)(p.reverse(),(function(t){d(f[t])}));h.length>0;){var g=h.shift();g.get("visible")&&(Rn(g,l)?g.set("visible",!1):l.push(g))}}}})),jn("point-adjust-position",(function(t,e,n,r,i){var a,o;if(0!==n.length){var c=null===(a=n[0])||void 0===a?void 0:a.get("element"),u=null==c?void 0:c.geometry;if(u&&"point"===u.type){var l=u.getXYFields(),h=l[0],f=l[1],p=Object(s.groupBy)(e,(function(t){return t.get("data")[h]})),d=[],g=i&&i.offset||(null===(o=t[0])||void 0===o?void 0:o.offset)||12;Object(s.map)(Object(s.keys)(p).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(u,p[t]);e.length;){var n=e.shift(),r=Ln(n);if(di(d,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;gi(d,n)&&(r.attr("y",r.attr("y")+2*g),i=gi(d,n)),i?r.set("visible",!1):d.push(n)}}}))}}})),jn("pie-spider",(function(t,e,n,r){var i=e[0]&&e[0].get("coordinate");if(i){for(var a=i.getCenter(),o=i.getRadius(),c={},u=0,l=e;ua.x||t.x===a.x&&t.y>a.y,n=Object(s.isNil)(t.offsetX)?4:t.offsetX,r=J(a.x,a.y,o+4,t.angle),i=p+n;t.x=a.x+(e?1:-1)*(o+i),t.y=r.y}}));var d=i.start,g=i.end,v=Object(s.groupBy)(t,(function(t){return t.xy&&(y=Math.min(e,Math.abs(d.y-g.y)))}));var m={minX:d.x,maxX:g.x,minY:a.y-y/2,maxY:a.y+y/2};Object(s.each)(v,(function(t,e){var n=y/f;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s.each)(t,(function(t,e){e>n&&(c[t.id].set("visible",!1),t.invisible=!0)}))),ei(t,f,m)}));var b=m.minY,x=m.maxY;Object(s.each)(v,(function(t,e){var n="right"===e;Object(s.each)(t,(function(t){var e=Object(s.get)(c,t&&[t.id]);if(e)if(t.yx)e.set("visible",!1);else{var r=e.getChildByIndex(0),a=r.getCanvasBBox(),o=n?a.x:a.maxX,u=a.y+a.height/2;In(r,t.x-o,t.y-u),t.labelLine&&function(t,e,n){var r,i=e.getCenter(),a=e.getRadius(),o={x:t.x-(n?4:-4),y:t.y},c=J(i.x,i.y,a+4,t.angle),u={x:o.x,y:o.y},l={x:c.x,y:c.y},h=J(i.x,i.y,a,t.angle);if(o.y!==c.y){var f=n?4:-4;u.y=o.y,t.angle<0&&t.angle>=-Math.PI/2&&(u.x=Math.max(c.x,o.x-f),o.y0&&t.anglec.y?l.y=u.y:(l.y=c.y,l.x=Math.max(l.x,u.x-f))),t.angle>Math.PI/2&&(u.x=Math.min(c.x,o.x-f),o.y>c.y?l.y=u.y:(l.y=c.y,l.x=Math.min(l.x,u.x-f))),t.angle<-Math.PI/2&&(u.x=Math.min(c.x,o.x-f),o.y0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,i),r}(u,p[t]);e.length;){var n=e.shift(),r=Ln(n);if(vi(d,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;yi(d,n)&&(r.attr("y",r.attr("y")+2*g),i=yi(d,n)),i?r.set("visible",!1):d.push(n)}}}))}}})),ln("fade-in",(function(t,e,n){var r={fillOpacity:Object(s.isNil)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(s.isNil)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(s.isNil)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)})),ln("fade-out",(function(t,e,n){var r=e.easing,i=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),a)})),ln("grow-in-x",(function(t,e,n){bi(t,e,n.coordinate,n.minYPoint,"x")})),ln("grow-in-xy",(function(t,e,n){bi(t,e,n.coordinate,n.minYPoint,"xy")})),ln("grow-in-y",(function(t,e,n){bi(t,e,n.coordinate,n.minYPoint,"y")})),ln("scale-in-x",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData.points,a=i[0].y-i[1].y>0?r.maxX:r.minX,o=(r.minY+r.maxY)/2;t.applyToMatrix([a,o,1]);var s=_.a.transform(t.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]]);t.setMatrix(s),t.animate({matrix:_.a.transform(t.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])},e)})),ln("scale-in-y",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,a=(r.minX+r.maxX)/2,o=i.points,s=o[0].y-o[1].y<=0?r.maxY:r.minY;t.applyToMatrix([a,s,1]);var c=_.a.transform(t.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);t.setMatrix(c),t.animate({matrix:_.a.transform(t.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},e)})),ln("wave-in",(function(t,e,n){var r=ft(n.coordinate,20),i=r.type,a=r.startState,s=r.endState,c=t.setClip({type:i,attrs:a});c.animate(s,Object(o.a)(Object(o.a)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),c.remove(!0)}}))})),ln("zoom-in",(function(t,e,n){wi(t,e,"zoomIn")})),ln("zoom-out",(function(t,e,n){wi(t,e,"zoomOut")})),ln("position-update",(function(t,e,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:a},e)})),ln("sector-path-update",(function(t,e,n){var r=n.toAttrs,i=n.coordinate,a=r.path||[],c=a.map((function(t){return t[0]}));if(!(a.length<1)){var u=ji(a),l=u.startAngle,h=u.endAngle,f=u.radius,p=u.innerRadius,d=ji(t.attr("path")),g=d.startAngle,v=d.endAngle,y=i.getCenter(),m=l-g,b=h-v;0!==m||0!==b?t.animate((function(t){var e=g+t*m,n=v+t*b;return Object(o.a)(Object(o.a)({},r),{path:Object(s.isEqual)(c,["M","A","A","Z"])?et(y.x,y.y,f,e,n):tt(y.x,y.y,f,e,n,p)})}),Object(o.a)(Object(o.a)({},e),{callback:function(){t.attr("path",a)}})):t.attr("path",a)}})),ln("path-in",(function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)})),Et("rect",Ti),Et("mirror",Ei),Et("list",Ai),Et("matrix",ki),Et("circle",Si),Et("tree",Fi),qe("axis",Gi),qe("legend",Wi),qe("tooltip",sn),qe("annotation",Li),qe("slider",qi),qe("scrollbar",$i),Pt("tooltip",Ki),Pt("sibling-tooltip",Qi),Pt("ellipsis-text",Ji),Pt("element-active",ra),Pt("element-single-active",ca),Pt("element-range-active",oa),Pt("element-highlight",pa),Pt("element-highlight-by-x",ga),Pt("element-highlight-by-color",da),Pt("element-single-highlight",ya),Pt("element-range-highlight",va),Pt("element-sibling-highlight",va,{effectSiblings:!0,effectByRecord:!0}),Pt("element-selected",ba),Pt("element-single-selected",xa),Pt("element-range-selected",ma),Pt("element-link-by-color",ia),Pt("active-region",Zi),Pt("list-active",ja),Pt("list-selected",Ma),Pt("list-highlight",wa),Pt("list-unchecked",Ca),Pt("list-checked",Sa),Pt("legend-item-highlight",wa,{componentNames:["legend"]}),Pt("axis-label-highlight",wa,{componentNames:["axis"]}),Pt("rect-mask",Ea),Pt("x-rect-mask",Fa,{dim:"x"}),Pt("y-rect-mask",Fa,{dim:"y"}),Pt("circle-mask",ka),Pt("path-mask",Ba),Pt("smooth-path-mask",Ia),Pt("cursor",Pa),Pt("data-filter",La),Pt("brush",Ra),Pt("brush-x",Ra,{dims:["x"]}),Pt("brush-y",Ra,{dims:["y"]}),Pt("sibling-filter",_a),Pt("sibling-x-filter",_a),Pt("sibling-y-filter",_a),Pt("element-filter",Na),Pt("element-sibling-filter",za),Pt("element-sibling-filter-record",za,{byRecord:!0}),Pt("view-drag",Ga),Pt("view-move",Xa),Pt("scale-translate",Ha),Pt("scale-zoom",Wa),Pt("reset-button",Ya,{name:"reset-button",text:"reset"}),je("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),je("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),je("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),je("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),je("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),je("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),je("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),je("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),je("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),je("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),je("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),je("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),je("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qa,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:qa,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:qa,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),je("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),je("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qa,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:qa,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:qa,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),je("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qa,action:"path-mask:start"},{trigger:"mousedown",isEnable:qa,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),je("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),je("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),je("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),je("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),je("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),je("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),je("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return $a(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!$a(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),je("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]})},function(t,e,n){t.exports=n(265)},function(t,e,n){"use strict";function r(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var i,a,o,s;function c(t){i||(i=document.createElement("table"),a=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:a,th:a,"*":document.createElement("div")});var e=o.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}function u(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}function l(t,e){var n=function(t,e){var n=u(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}(t,e),r=parseFloat(u(t,"borderTopWidth"))||0,i=parseFloat(u(t,"paddingTop"))||0,a=parseFloat(u(t,"paddingBottom"))||0;return n+r+(parseFloat(u(t,"borderBottomWidth"))||0)+i+a+(parseFloat(u(t,"marginTop"))||0)+(parseFloat(u(t,"marginBottom"))||0)}function h(t,e){var n=function(t,e){var n=u(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}(t,e),r=parseFloat(u(t,"borderLeftWidth"))||0,i=parseFloat(u(t,"paddingLeft"))||0,a=parseFloat(u(t,"paddingRight"))||0,o=parseFloat(u(t,"borderRightWidth"))||0,s=parseFloat(u(t,"marginRight"))||0;return n+r+o+i+a+(parseFloat(u(t,"marginLeft"))||0)+s}function f(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return f}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"}},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"l",(function(){return c})),n.d(e,"j",(function(){return u}));var r=n(0);function i(){return window?window.devicePixelRatio:1}function a(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function o(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function s(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY(n-t)*(n-t)+(r-e)*(r-e)?o(n,r,i,a):this.pointToLine(t,e,n,r,i,a)},pointToLine:function(t,e,n,r,i,a){var o=[n-t,r-e];if(h.exactEquals(o,[0,0]))return Math.sqrt((i-t)*(i-t)+(a-e)*(a-e));var s=[-o[1],o[0]];h.normalize(s,s);var c=[i-t,a-e];return Math.abs(h.dot(c,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function p(t,e,n,r,i,a){var s,c=1/0,u=[n,r],l=20;a&&a>200&&(l=a/10);for(var h=1/l,f=h/10,p=0;p<=l;p++){var d=p*h,g=[i.apply(null,t.concat([d])),i.apply(null,e.concat([d]))];(b=o(u[0],u[1],g[0],g[1]))=0&&b=0?[i]:[]}function v(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function y(t,e,n,r,i,a,o){var s=d(t,n,i,o),c=d(e,r,a,o),u=f.pointAt(t,e,n,r,o),l=f.pointAt(n,r,i,a,o);return[[t,e,u.x,u.y,s,c],[s,c,l.x,l.y,i,a]]}var m={box:function(t,e,n,r,i,a){var o=g(t,n,i)[0],s=g(e,r,a)[0],u=[t,i],l=[e,a];return void 0!==o&&u.push(d(t,n,i,o)),void 0!==s&&l.push(d(e,r,a,s)),c(u,l)},length:function(t,e,n,r,i,a){return function t(e,n,r,i,a,s,c){if(0===c)return(o(e,n,r,i)+o(r,i,a,s)+o(e,n,a,s))/2;var u=y(e,n,r,i,a,s,.5),l=u[0],h=u[1];return l.push(c-1),h.push(c-1),t.apply(null,l)+t.apply(null,h)}(t,e,n,r,i,a,3)},nearestPoint:function(t,e,n,r,i,a,o,s){return p([t,n,i],[e,r,a],o,s,d)},pointDistance:function(t,e,n,r,i,a,s,c){var u=this.nearestPoint(t,e,n,r,i,a,s,c);return o(u.x,u.y,s,c)},interpolationAt:d,pointAt:function(t,e,n,r,i,a,o){return{x:d(t,n,i,o),y:d(e,r,a,o)}},divide:function(t,e,n,r,i,a,o){return y(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,i,a,o){var s=v(t,n,i,o),c=v(e,r,a,o);return l(Math.atan2(c,s))}};function b(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function x(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function O(t,e,n,r){var i,a,o,c=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,l=3*e-3*t,h=[];if(s(c,0))s(u,0)||(i=-l/u)>=0&&i<=1&&h.push(i);else{var f=u*u-4*c*l;s(f,0)?h.push(-u/(2*c)):f>0&&(a=(-u-(o=Math.sqrt(f)))/(2*c),(i=(-u+o)/(2*c))>=0&&i<=1&&h.push(i),a>=0&&a<=1&&h.push(a))}return h}function j(t,e,n,r,i,a,o,s,c){var u=b(t,n,i,o,c),l=b(e,r,a,s,c),h=f.pointAt(t,e,n,r,c),p=f.pointAt(n,r,i,a,c),d=f.pointAt(i,a,o,s,c),g=f.pointAt(h.x,h.y,p.x,p.y,c),v=f.pointAt(p.x,p.y,d.x,d.y,c);return[[t,e,h.x,h.y,g.x,g.y,u,l],[u,l,v.x,v.y,d.x,d.y,o,s]]}function w(t,e,n,r,i,a,s,c,u){if(0===u)return function(t,e){for(var n=0,r=t.length,i=0;i0?n:-1*n}var S=function(t,e,n,r,i,a){var o=n,s=r;if(0===o||0===s)return{x:t,y:e};for(var c,u,l=i-t,h=a-e,f=Math.abs(l),p=Math.abs(h),d=o*o,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=o*Math.cos(v),u=s*Math.sin(v);var m=(d-g)*Math.pow(Math.cos(v),3)/o,b=(g-d)*Math.pow(Math.sin(v),3)/s,x=c-m,O=u-b,j=f-m,w=p-b,M=Math.hypot(O,x),S=Math.hypot(w,j);v+=M*Math.asin((x*w-O*j)/(M*S))/Math.sqrt(d+g-c*c-u*u),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+C(c,l),y:e+C(u,h)}};function A(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function k(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function E(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function T(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var F={box:function(t,e,n,r,i,a,o){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,u=-1/0,l=[a,o],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;au&&(u=p)}var d=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),g=1/0,v=-1/0,y=[a,o];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=d+h;av&&(v=b)}return{x:c,y:g,width:u-c,height:v-g}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,a,o,s,c){var u=T(s-t,c-e,-i),l=u[0],h=u[1],f=S(0,0,n,r,l,h),p=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,f.x,f.y);po&&(f=E(n,r,o));var d=T(f.x,f.y,i);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,r,i,a,s,c,u){var l=this.nearestPoint(t,e,n,r,c,u);return o(l.x,l.y,c,u)},pointAt:function(t,e,n,r,i,a,o,s){var c=(o-a)*s+a;return{x:A(t,0,n,r,i,c),y:k(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,i,a,o,s){var c=(o-a)*s+a,u=function(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,i,0,0,c),h=function(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,i,0,0,c);return l(Math.atan2(h,u))}};function B(t){for(var e=0,n=[],r=0;r1||e<0||t.length<2)return null;var n=B(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+h){var p=(e-a)/h;o=f.pointAt(u[0],u[1],l[0],l[1],p);break}a+=h}return o}function L(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=B(t),r=n.segments,i=n.totalLength,a=0,o=0,s=0;s=a&&e<=a+h){o=Math.atan2(l[1]-u[1],l[0]-u[0]);break}a+=h}return o}function D(t,e,n){for(var r=1/0,i=0;i=0;n--)t.removeChild(e[n])}function o(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}function c(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}}function u(t,e,n,r){var i=t+n,a=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function l(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var f=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)0?Object(r.each)(g,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=p(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),a=t.applyToMatrix([e.maxX,e.maxY,1]),o=Math.min(n[0],r[0],i[0],a[0]),s=Math.max(n[0],r[0],i[0],a[0]),c=Math.min(n[1],r[1],i[1],a[1]),u=Math.max(n[1],r[1],i[1],a[1]);oh&&(h=s),cd&&(d=u)}})):(l=0,h=0,f=0,d=0),e=u(l,f,h-l,d-f)}else e=t.getBBox();return c?(n=e,i=c,a=Math.max(n.minX,i.minX),o=Math.max(n.minY,i.minY),u(a,o,Math.min(n.maxX,i.maxX)-a,Math.min(n.maxY,i.maxY)-o)):e}function d(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function g(t){return t+"px"}function v(t,e,n,r){var i,a,o,s,c=r/(i=t,o=(a=e).x-i.x,s=a.y-i.y,Math.sqrt(o*o+s*s)),u=0;return"start"===n?u=0-c:"end"===n&&(u=1+c),{x:l(t.x,e.x,u),y:l(t.y,e.y,u)}}},function(t,e,n){"use strict";var r=n(13);n.d(e,"G2",(function(){return r}));n(19),n(302);var i=n(240);n.d(e,"Line",(function(){return i.a}));var a=n(243);n.d(e,"Area",(function(){return a.a}));var o=n(244);n.d(e,"Column",(function(){return o.a}));var s=n(245);n.d(e,"Bar",(function(){return s.a}));var c=n(222);n.d(e,"Pie",(function(){return c.a}));var u=n(433);n.d(e,"Rose",(function(){return u.a}));var l=n(413);n.d(e,"WordCloud",(function(){return l.a}));var h=n(415);n.d(e,"Scatter",(function(){return h.a}));var f=n(420);n.d(e,"Radar",(function(){return f.a}));var p=n(409);n.d(e,"DualAxes",(function(){return p.a}));var d=n(223);n.d(e,"TinyLine",(function(){return d.a}));var g=n(246);n.d(e,"TinyColumn",(function(){return g.a}));var v=n(247);n.d(e,"TinyArea",(function(){return v.a}));var y=n(421);n.d(e,"Histogram",(function(){return y.a}));var m=n(224);n.d(e,"Progress",(function(){return m.a}));var b=n(248);n.d(e,"RingProgress",(function(){return b.a}));var x=n(416);n.d(e,"Heatmap",(function(){return x.a}));var O=n(422);n.d(e,"Box",(function(){return O.a}));var j=n(423);n.d(e,"Stock",(function(){return j.a}));var w=n(288);n.d(e,"Funnel",(function(){return w.a}));var M=n(417);n.d(e,"Liquid",(function(){return M.a}));var C=n(424);n.d(e,"Bullet",(function(){return C.a}));var S=n(418);n.d(e,"Sunburst",(function(){return S.a}));var A=n(241);n.d(e,"Gauge",(function(){return A.a}));var k=n(419);n.d(e,"Waterfall",(function(){return k.a}));var E=n(425);n.d(e,"RadialBar",(function(){return E.a}));var T=n(426);n.d(e,"BidirectionalBar",(function(){return T.a}));n(414);var F=n(406);n.d(e,"Sankey",(function(){return F.a}));n(427),n(311);var B=n(152);n.d(e,"Mix",(function(){return B.a}));n(3),n(27);var I=n(6);n(312),I.f,I.d,I.k,I.b,I.c,I.j,I.a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";e.a={fontFamily:'\n "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return c}));var r=n(0),i=n(16);function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function o(t){var e=i.a[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r}function s(t,e){var n=t.get("el"),i=Object(r.toArray)(n.children).sort(e),a=document.createDocumentFragment();i.forEach((function(t){a.appendChild(t)})),n.appendChild(a)}function c(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(aj?O:j,k=O>j?1:O/j,E=O>j?j/O:1;e.translate(b,x),e.rotate(C),e.scale(k,E),e.arc(0,0,A,w,M,1-S),e.scale(1/k,1/E),e.rotate(-C),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===d)u=l;else{var T=p.length;u=[p[T-2],p[T-1]]}}}}function v(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function y(t){if(!t.length)return null;var e=[],n=[],i=[],a=[];return Object(r.each)(t,(function(t){var r=function(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),a=i&&!(!i.width||!i.height);r&&a?e=Object(o.l)(n,i):r?e=n:a&&(e=i)}return e}(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),a.push(r.maxY))})),{minX:Object(r.min)(e),minY:Object(r.min)(n),maxX:Object(r.max)(i),maxY:Object(r.max)(a)}}function m(t,e){return t&&e&&Object(o.f)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(137);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};function s(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}var c="\t\n\v\f\r   ᠎              \u2028\u2029",u=new RegExp("([a-z])["+c+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+c+"]*,?["+c+"]*)+)","ig"),l=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+c+"]*,?["+c+"]*","ig");function h(t){if(!t)return null;if(Object(r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(u,(function(t,r,i){var a=[],o=r.toLowerCase();if(i.replace(l,(function(t,e){e&&a.push(+e)})),"m"===o&&a.length>2&&(n.push([r].concat(a.splice(0,2))),o="l",r="m"===r?"l":"L"),"o"===o&&1===a.length&&n.push([r,a[0]]),"r"===o)n.push([r].concat(a));else for(;a.length>=e[o]&&(n.push([r].concat(a.splice(0,e[o]))),e[o]););return""})),n}var f=/[a-z]/;function p(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function d(t){var e=h(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var a=[],o=0,s=0,c=0,u=0,l=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(c=o=+d[1],u=s=+d[2],l++,a[0]=["M",o,s]);r=l;for(var g=e.length;r1&&(n*=Math.sqrt(d),i*=Math.sqrt(d));var g=n*n*(p*p)+i*i*(f*f),b=g?Math.sqrt((n*n*(i*i)-g)/g):1;o===s&&(b*=-1),isNaN(b)&&(b=0);var x=i?b*n*p/i:0,O=n?b*-i*f/n:0,j=(c+l)/2+Math.cos(a)*x-Math.sin(a)*O,w=(u+h)/2+Math.sin(a)*x+Math.cos(a)*O,M=[(f-x)/n,(p-O)/i],C=[(-1*f-x)/n,(-1*p-O)/i],S=y([1,0],M),A=y(M,C);return v(M,C)<=-1&&(A=Math.PI),v(M,C)>=1&&(A=0),0===s&&A>0&&(A-=2*Math.PI),1===s&&A<0&&(A+=2*Math.PI),{cx:j,cy:w,rx:m(t,[l,h])?0:n,ry:m(t,[l,h])?0:i,startAngle:S,endAngle:S+A,xRotation:a,arcFlag:o,sweepFlag:s}}function x(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function O(t){for(var e=[],n=null,r=null,i=null,a=0,s=(t=o(t)).length,c=0;c=e&&t<=n};function w(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function M(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function C(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var a=0;a0!=w(s[1]-n)>0&&w(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function S(t){for(var e=[],n=t.length,r=0;r1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function A(t,e){var n=!1;return Object(r.each)(t,(function(t){if(function(t,e,n,r){var i=n.x-t.x,a=n.y-t.y,o=e.x-t.x,s=e.y-t.y,c=r.x-n.x,u=r.y-n.y,l=o*u-s*c,h=null;if(l*l>.001*(o*o+s*s)*(c*c+u*u)){var f=(i*u-a*c)/l,p=(i*s-a*o)/l;j(f,0,1)&&j(p,0,1)&&(h={x:t.x+f*o,y:t.y+f*s})}return h}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function k(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function E(t,e){if(t.length<2||e.length<2)return!1;var n,i,a=k(t),o=k(e);if(n=a,(i=o).minX>n.maxX||i.maxXn.maxY||i.maxY0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=i*c-a*s,t[1]=a*o-r*c,t[2]=r*s-i*o,t}function E(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function T(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,c=o*(a-2)+a,u=o*(a-1),l=o*(3-2*a);return t[0]=e[0]*s+n[0]*c+r[0]*u+i[0]*l,t[1]=e[1]*s+n[1]*c+r[1]*u+i[1]*l,t[2]=e[2]*s+n[2]*c+r[2]*u+i[2]*l,t}function F(t,e,n,r,i,a){var o=1-a,s=o*o,c=a*a,u=s*o,l=3*a*s,h=3*c*o,f=c*a;return t[0]=e[0]*u+n[0]*l+r[0]*h+i[0]*f,t[1]=e[1]*u+n[1]*l+r[1]*h+i[1]*f,t[2]=e[2]*u+n[2]*l+r[2]*h+i[2]*f,t}function B(t,e){e=e||1;var n=2*r.c()*Math.PI,i=2*r.c()-1,a=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=i*e,t}function I(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function P(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function L(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],c=e[1],u=e[2],l=i*u-a*c,h=a*s-r*u,f=r*c-i*s,p=i*f-a*h,d=a*l-r*f,g=r*h-i*l,v=2*o;return l*=v,h*=v,f*=v,p*=2,d*=2,g*=2,t[0]=s+l+p,t[1]=c+h+d,t[2]=u+f+g,t}function D(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function R(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function _(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function N(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2],c=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(a*a+o*o+s*s),u=c&&A(t,e)/c;return Math.acos(Math.min(Math.max(u,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function Y(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function X(t,e){var n=t[0],i=t[1],a=t[2],o=e[0],s=e[1],c=e[2];return Math.abs(n-o)<=r.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-s)<=r.b*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(a-c)<=r.b*Math.max(1,Math.abs(a),Math.abs(c))}var V,H=h,W=f,q=p,$=O,U=j,Z=o,K=w,Q=(V=i(),function(t,e,n,r,i,a){var o,s;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,o=n;o2&&(n.push([i].concat(s.splice(0,2))),c="l",i="m"===i?"l":"L"),"o"===c&&1===s.length&&n.push([i,s[0]]),"r"===c)n.push([i].concat(s));else for(;s.length>=e[c]&&(n.push([i].concat(s.splice(0,e[c]))),e[c]););return t})),n},c=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},u=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),c=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,c,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},l=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,l=0,h=0;"M"===t[0][0]&&(o=i=+t[0][1],l=a=+t[0][2],h++,r[0]=["M",i,a]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,v=t.length;g1&&(r*=j=Math.sqrt(j),i*=j);var w=r*r,M=i*i,C=(o===s?-1:1)*Math.sqrt(Math.abs((w*M-w*O*O-M*x*x)/(w*O*O+M*x*x)));d=C*r*O/i+(e+c)/2,g=C*-i*x/r+(n+u)/2,f=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((u-g)/i).toFixed(9)),f=ep&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var S=p-f;if(Math.abs(S)>v){var A=p,k=c,E=u;p=f+v*(s&&p>f?1:-1),m=t(c=d+r*Math.cos(p),u=g+i*Math.sin(p),r,i,a,0,s,k,E,[p,A,d,g])}S=p-f;var T=Math.cos(f),F=Math.sin(f),B=Math.cos(p),I=Math.sin(p),P=Math.tan(S/4),L=4/3*r*P,D=4/3*i*P,R=[e,n],_=[e+L*F,n-D*T],N=[c+L*I,u-D*B],z=[c,u];if(_[0]=2*R[0]-_[0],_[1]=2*R[1]-_[1],l)return[_,N,z].concat(m);for(var Y=[],G=0,X=(m=[_,N,z].concat(m).join().split(",")).length;G7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(c[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},y=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m1?1:c<0?0:c)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=u*l[p]+u,g=y(d,t,n,i,o),v=y(d,e,r,a,s),m=g*g+v*v;f+=h[p]*Math.sqrt(m)}return u*f},b=function(t,e,n,r,i,a,o,s){for(var c,u,l,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*o,l=3*n-3*t):(u=6*e-12*r+6*a,c=-3*e+9*r-9*a+3*s,l=3*r-3*e),Math.abs(c)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-l/u)>0&&h<1&&f.push(h)}else{var g=u*u-4*l*c,v=Math.sqrt(g);if(!(g<0)){var y=(-u+v)/(2*c);y>0&&y<1&&f.push(y);var m=(-u-v)/(2*c);m>0&&m<1&&f.push(m)}}for(var b,x=f.length,O=x;x--;)b=1-(h=f[x]),p[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*o,p[1][x]=b*b*b*e+3*b*b*h*r+3*b*h*h*a+h*h*h*s;return p[0][O]=t,p[1][O]=e,p[0][O+1]=o,p[1][O+1]=s,p[0].length=p[1].length=O+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var c=(t-n)*(a-s)-(e-r)*(i-o);if(c){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/c,l=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/c,h=+u.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:u,y:l}}}},O=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},j=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a},w=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:j(t,e,n,r),vb:[t,e,n,r].join(" ")}},M=function(t,e,n,i,a,o,s,c){Object(r.isArray)(t)||(t=[t,e,n,i,a,o,s,c]);var u=b.apply(null,t);return w(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},C=function(t,e,n,r,i,a,o,s,c){var u=1-c,l=Math.pow(u,3),h=Math.pow(u,2),f=c*c,p=f*c,d=t+2*c*(n-t)+f*(i-2*n+t),g=e+2*c*(r-e)+f*(a-2*r+e),v=n+2*c*(i-n)+f*(o-2*i+n),y=r+2*c*(a-r)+f*(s-2*a+r);return{x:l*t+3*h*c*n+3*u*c*c*i+p*o,y:l*e+3*h*c*r+3*u*c*c*a+p*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:u*t+c*n,y:u*e+c*r},end:{x:u*i+c*o,y:u*a+c*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},S=function(t,e,n){if(!function(t,e){return t=w(t),e=w(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(M(t),M(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},c=n?0:[],u=0;u=0&&j<=1&&S>=0&&S<=1&&(n?c+=1:c.push({x:b.x,y:b.y,t1:j,t2:S}))}}return c},A=function(t,e){return function(t,e,n){var r,i,a,o,s,c,u,l,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r},T=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;c--)o=a[c].index,"add"===a[c].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var h=i-(r=t.length);if(r0)){t[r]=e[r];break}n=P(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=P(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=P(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},,function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return u})),n.d(e,"Circle",(function(){return l})),n.d(e,"Ellipse",(function(){return f})),n.d(e,"Image",(function(){return d})),n.d(e,"Line",(function(){return m})),n.d(e,"Marker",(function(){return j})),n.d(e,"Path",(function(){return I})),n.d(e,"Polygon",(function(){return L})),n.d(e,"Polyline",(function(){return D})),n.d(e,"Rect",(function(){return _})),n.d(e,"Text",(function(){return N}));var r={};n.r(r),n.d(r,"Base",(function(){return u})),n.d(r,"Circle",(function(){return l})),n.d(r,"Ellipse",(function(){return f})),n.d(r,"Image",(function(){return d})),n.d(r,"Line",(function(){return m})),n.d(r,"Marker",(function(){return j})),n.d(r,"Path",(function(){return I})),n.d(r,"Polygon",(function(){return L})),n.d(r,"Polyline",(function(){return D})),n.d(r,"Rect",(function(){return _})),n.d(r,"Text",(function(){return N}));var i=n(1),a=n(25),o=n(17),s=n(36),c=n(78),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return c.a},e.prototype.onCanvasChange=function(t){Object(s.h)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(a.getBBoxMethod)(t)(this),r=e/2,i=n.x-r,o=n.y-r,s=n.x+n.width+r,c=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:s,maxY:c}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(s.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!Object(o.f)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(s.a)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(o.f)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(Object(o.i)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(o.i)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(a.AbstractShape),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,c=a.y,u=a.r,l=i/2,h=Object(o.b)(s,c,t,e);return r&&n?h<=u+l:r?h<=u:!!n&&(h>=u-l&&h<=u+l)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(u);function h(t,e,n,r){return t/(n*n)+e/(r*r)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),o=i/2,s=a.x,c=a.y,u=a.rx,l=a.ry,f=(t-s)*(t-s),p=(e-c)*(e-c);return r&&n?h(f,p,u+o,l+o)<=1:r?h(f,p,u,l)<=1:!!n&&(h(f,p,u-o,l-o)>=1&&h(f,p,u+o,l+o)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,c=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,c),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(u);function p(t){return t instanceof HTMLElement&&Object(o.k)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(o.k)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):p(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.sx,c=e.sy,u=e.swidth,l=e.sheight,h=e.img;(h instanceof Image||p(h))&&(Object(o.i)(s)||Object(o.i)(c)||Object(o.i)(u)||Object(o.i)(l)?t.drawImage(h,n,r,i,a):t.drawImage(h,s,c,u,l,n,r,i,a))},e}(u),g=n(22);function v(t,e,n,r,i,a,o){var s=Math.min(t,n),c=Math.max(t,n),u=Math.min(e,r),l=Math.max(e,r),h=i/2;return a>=s-h&&a<=c+h&&o>=u-h&&o<=l+h&&g.c.pointToLine(t,e,n,r,a,o)<=i/2}var y=n(41),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&y.b(this,t,r,i,e,n),o&&y.a(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr();return v(a.x1,a.y1,a.x2,a.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,c={dx:0,dy:0},u={dx:0,dy:0};o&&o.d&&(c=y.c(n,r,i,a,e.startArrow.d)),s&&s.d&&(u=y.c(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,r+c.dy),t.lineTo(i-u.dx,a-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return g.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2;return g.c.pointAt(n,r,i,a,t)},e}(u),b=n(0),x=n(48),O={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(b.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,s=r.symbol||"circle",c=this._getR(r);if(Object(o.h)(s))n=(t=s)(i,a,c),n=Object(x.d)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,c)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s.e)(this,t,{path:e},n)},e.Symbols=O,e}(u);function w(t,e,n){var r=Object(a.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}function M(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function C(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function S(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var a=0;a0!=M(s[1]-n)>0&&M(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}var A=n(8),k=n(50);function E(t,e,n,r,i,a,s,c){var u=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(ui)return!1;var l={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return Object(o.b)(l.x,l.y,s,c)<=a/2}var T=A.a.transform;var F=Object(i.a)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,s=e/2,c=0;cx?b:x,S=T(null,[["t",-y,-m],["r",-w],["s",1/(b>x?1:b/x),1/(b>x?x/b:1)]]);k.transformMat3(M,M,S),a=E(0,0,C,O,j,e,M[0],M[1])}if(a)break}}return a}},a.PathUtil);function B(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var a=i[n];if(Object(b.isNil)(a)||Object(b.isNil)(n))return null;var o=a.length,s=i[n+1];return g.b.pointAt(a[o-2],a[o-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",F.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,a=0,o=[],s=this.get("curve");s&&(Object(b.each)(s,(function(t,e){n=s[e+1],r=t.length,n&&(i+=g.b.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?(Object(b.each)(s,(function(c,u){n=s[u+1],r=c.length,n&&((t=[])[0]=a/i,e=g.b.length(c[r-2],c[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),a+=e||0,t[1]=a/i,o.push(t))})),this.set("tCache",o)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(u);function P(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;o=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),g.c.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,a=[];Object(b.each)(t,(function(o,s){t[s+1]&&((n=[])[0]=i/e,r=g.c.length(o[0],o[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u),R=n(114);var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,c=a.y,u=a.width,l=a.height,h=a.radius;if(h){var f=!1;return n&&(f=function(t,e,n,r,i,a,o,s){return v(t+i,e,t+n-i,e,a,o,s)||v(t+n,e+i,t+n,e+r-i,a,o,s)||v(t+n-i,e+r,t+i,e+r,a,o,s)||v(t,e+r-i,t,e+i,a,o,s)||E(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,a,o,s)||E(t+n-i,e+r-i,i,0,.5*Math.PI,a,o,s)||E(t+i,e+r-i,i,.5*Math.PI,Math.PI,a,o,s)||E(t+i,e+i,i,Math.PI,1.5*Math.PI,a,o,s)}(s,c,u,l,h,i,t,e)),!f&&r&&(f=w(this,t,e)),f}var p=i/2;return r&&n?Object(o.e)(s-p,c-p,u+p,l+p,t,e):r?Object(o.e)(s,c,u,l,t,e):n?function(t,e,n,r,i,a,s){var c=i/2;return Object(o.e)(t-c,e-c,n,i,a,s)||Object(o.e)(t+n-c,e-c,i,r,a,s)||Object(o.e)(t+c,e+r-c,n,i,a,s)||Object(o.e)(t-c,e+c,i,r,a,s)}(s,c,u,l,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,o=e.radius;if(t.beginPath(),0===o)t.rect(n,r,i,a);else{var s=Object(R.a)(o),c=s[0],u=s[1],l=s[2],h=s[3];t.moveTo(n+c,r),t.lineTo(n+i-u,r),0!==u&&t.arc(n+i-u,r+u,u,-Math.PI/2,0),t.lineTo(n+i,r+a-l),0!==l&&t.arc(n+i-l,r+a-l,l,0,Math.PI/2),t.lineTo(n+h,r+a),0!==h&&t.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+c),0!==c&&t.arc(n+c,r+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(a.assembleFont)(t)},e.prototype._setText=function(t){var e=null;Object(o.k)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,s=i.textBaseline,c=i.x,u=i.y,l=1*i.fontSize,h=this._getSpaceingY(),f=Object(a.getTextHeight)(i.text,i.fontSize,i.lineHeight);Object(o.c)(e,(function(e,i){r=u+i*(h+l)-f+l,"middle"===s&&(r+=f-l-(f-l)/2),"top"===s&&(r+=f-l),e&&(n?t.fillText(e,c,r):t.strokeText(e,c,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var o=n.text;o&&(e?t.fillText(o,r,i):t.strokeText(o,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(Object(o.i)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(o.i)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(u)},,function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t,e){if(!1===t)return{fields:!1};var n=Object(r.get)(t,"fields"),i=Object(r.get)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var r=n(1),i=n(0),a="x",o="y",s={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(i.get)(e,[0,"data","y"],0)},containerTpl:'
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},c={appendPadding:2,tooltip:Object(r.a)({},s),animation:{}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return H})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return nt}));var r={};n.r(r),n.d(r,"default",(function(){return L})),n.d(r,"assign",(function(){return g})),n.d(r,"format",(function(){return I})),n.d(r,"parse",(function(){return P})),n.d(r,"defaultI18n",(function(){return b})),n.d(r,"setGlobalDateI18n",(function(){return O})),n.d(r,"setGlobalDateMasks",(function(){return B}));var i=n(0),a={};function o(t,e){a[t]=e}var s=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(i.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(i.map)(this.ticks,(function(e,n){return Object(i.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return Object(i.isNil)(r)||!Object(i.isFunction)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(i.assign)(this,this.__cfg__),this.setDomain(),Object(i.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(i.isString)(t)){var n=a[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(i.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Object(i.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),c=n(1),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(c.c)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(s),l=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,h="[^\\s]+",f=/\[([^]*?)\]/gm;function p(t,e){for(var n=[],r=0,i=t.length;r-1?r:null}};function g(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}},x=g({},b),O=function(t){return x=g(x,t)},j=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},w=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+w(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+w(Math.floor(Math.abs(e)/60),2)+":"+w(Math.abs(e)%60,2)}},C=function(t){return+t-1},S=[null,"[1-9]\\d?"],A=[null,h],k=["isPm",h,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],E=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],T={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+h,function(t){return parseInt(t,10)}],M:["month","[1-9]\\d?",C],MM:["month","\\d\\d",C],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:S,dd:S,ddd:A,dddd:A,MMM:["month",h,d("monthNamesShort")],MMMM:["month",h,d("monthNames")],a:k,A:k,ZZ:E,Z:E},F={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},B=function(t){return g(F,t)},I=function(t,e,n){if(void 0===e&&(e=F.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=F[e]||e).replace(f,(function(t,e){return r.push(e),"@@@"}));var i=g(g({},x),n);return(e=e.replace(l,(function(e){return M[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function P(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=F[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],a=[],o=e.replace(f,(function(t,e){return a.push(j(e)),"@@@"})),s={},c={};o=j(o).replace(l,(function(t){var e=T[t],n=e[0],r=e[1],a=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,a&&(c[a]=!0),i.push(e),"("+r+")"})),Object.keys(c).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),o=o.replace(/@@@/g,(function(){return a.shift()}));var u=t.match(new RegExp(o,"i"));if(!u)return null;for(var h=g(g({},x),n),p=1;p0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i.isDate)(t)&&(t=t.getTime()),t}var _=36e5,N=24*_,z=31*N,Y=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",_],["HH",6*_],["HH",12*_],["YYYY-MM-DD",N],["YYYY-MM-DD",4*N],["YYYY-WW",7*N],["YYYY-MM",z],["YYYY-MM",4*z],["YYYY-MM",6*z],["YYYY",380*N]];function G(t,e,n){var r,a=(r=function(t){return t[1]},function(t,e,n,a){for(var o=Object(i.isNil)(n)?0:n,s=Object(i.isNil)(a)?t.length:a;o>>1;r(t[c])>e?s=c:o=c+1}return o})(Y,(e-t)/n)-1,o=Y[a];return a<0?o=Y[0]:a>=Y.length&&(o=Object(i.last)(Y)),o}var X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(c.c)(e,t),e.prototype.translate=function(t){t=R(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.isNumber)(t)&&t-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):D(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(i.each)(e,(function(t,n){e[n]=R(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(u),V=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(c.c)(e,t),e.prototype.scale=function(t){if(Object(i.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(i.head)(e),r=Object(i.last)(e);nthis.max&&(this.max=r),Object(i.isNil)(this.minLimit)||(this.min=n),Object(i.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.getRange)(this.values),e=t.min,n=t.max;Object(i.isNil)(this.min)&&(this.min=e),Object(i.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(i.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(s),H=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(V);function W(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function q(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function $(t,e,n){Object(i.isNil)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i.each)(t,(function(t){t>0&&t1&&(r=1),r}function U(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}var Z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=q(n,this.max),i=this.rangeMin(),a=this.rangeMax()-i,o=this.positiveMin;if(o){if(0===t)return 0;var s=1/(r-(e=q(n,o/n)))*a;if(t=0?1:-1;return Math.pow(a,n)*o},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(W(r,t)-W(r,n))/(W(r,e)-W(r,n))},e}(V),Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(c.c)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):D(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.isString)(n)||Object(i.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return R(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(i.isNil)(e)&&Object(i.isNumber)(e)||(this.min=this.translate(this.min)),Object(i.isNil)(n)&&Object(i.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],a=1/0,o=a,s=0;Object(i.each)(t,(function(t){var e=R(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(o=a,a=e):o>e&&(o=e),s1&&(this.minTickInterval=o-a),Object(i.isNil)(e)&&(this.min=a),Object(i.isNil)(n)&&(this.max=s)}},e}(H),J=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),a=Math.floor(r*(n-1));if(a>=n-1)return Object(i.last)(e);if(a<0)return Object(i.head)(e);var o=e[a],s=a/(n-1);return o+(r-s)/((a+1)/(n-1)-s)*(e[a+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(i.last)(e)!==this.max&&e.push(this.max),Object(i.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(i.last)(e))return 1;var n=0;return Object(i.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(V),tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(c.c)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(J),et={};function nt(t){return et[t]}function rt(t,e){if(nt(t))throw new Error("type '"+t+"' existed.");et[t]=e}var it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(c.c)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(s),at=[1,5,2,2.5,4,3],ot=100*Number.EPSILON;function st(t,e,n,r,a,o){var s=Object(i.size)(e),c=Object(i.indexOf)(e,t),u=0,l=function(t,e){return(t%e+e)%e}(r,o);return(l=0&&(u=1),1-c/(s-1)-n+u}function ct(t,e,n){var r=Object(i.size)(e);return 1-Object(i.indexOf)(e,t)/(r-1)-n+1}function ut(t,e,n,r,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function lt(t,e){return t>=e?2-(t-1)/(e-1):1}function ht(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function ft(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function pt(t,e,n,r,a,o){if(void 0===n&&(n=5),void 0===r&&(r=!0),void 0===a&&(a=at),void 0===o&&(o=[.25,.2,.5,.05]),Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!n)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===n)return{min:t,max:e,ticks:[t]};for(var s={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<1/0;){for(var u=0;ub)g+=1;else{for(var x=m;x<=b;x+=1){var O=x*(v/c),j=O+v*(f-1),w=v,M=st(l,a,c,O,j,w),C=ht(t,e,O,j),S=ut(f,n,t,e,O,j),A=o[0]*M+o[1]*C+o[2]*S+1*o[3];A>s.score&&(!r||O<=t&&j>=e)&&(s.lmin=O,s.lmax=j,s.lstep=w,s.score=A)}g+=1}}f+=1}}c+=1}for(var k,E,T,F,B,I=0,P=new Array(Math.floor((s.lmax-s.lmin)/s.lstep)),L=s.lmin;L<=s.lmax;k=L,E=s.lstep,T=void 0,F=void 0,B=void 0,T=U(k),F=U(E),B=Math.pow(10,Math.max(T,F)),L=(k*B+E*B)/B)P[I]=L,I+=1;return{min:Math.min(t,Object(i.head)(P)),max:Math.max(e,Object(i.last)(P)),ticks:P}}function dt(t){var e=t.values,n=t.tickInterval,r=t.tickCount,a=e;if(Object(i.isNumber)(n))return Object(i.filter)(a,(function(t,e){return e%n==0}));var o=t.min,s=t.max;if(Object(i.isNil)(o)&&(o=0),Object(i.isNil)(s)&&(s=e.length-1),Object(i.isNumber)(r)&&r=o&&t<=s})).map((function(t){return e[t]}))}return e.slice(o,s+1)}var gt=Math.sqrt(50),vt=Math.sqrt(10),yt=Math.sqrt(2),mt=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],c=this._domain[o];return c0?r=bt(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,t):r<0&&(r=bt(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,t)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(c/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(c*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s=0?(a>=gt?10:a>=vt?5:a>=yt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=gt?10:a>=vt?5:a>=yt?2:1)}function xt(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function Ot(t,e,n){var r=xt(t,n,"floor"),a=xt(e,n,"ceil");r=Object(i.fixedBase)(r,n),a=Object(i.fixedBase)(a,n);for(var o=[],s=r;s<=a;s+=n){var c=Object(i.fixedBase)(s,n);o.push(c)}return{min:r,max:a,ticks:o}}function jt(t,e,n){var r,a=t.minLimit,o=t.maxLimit,s=t.min,c=t.max,u=t.tickCount,l=void 0===u?5:u,h=Object(i.isNil)(a)?Object(i.isNil)(e)?s:e:a,f=Object(i.isNil)(o)?Object(i.isNil)(n)?c:n:o;if(h>f&&(f=(r=[h,f])[0],h=r[1]),l<=2)return[h,f];for(var p=(f-h)/(l-1),d=[],g=0;g1&&(i*=Math.ceil(o)),r&&i31536e6)for(var c=Ct(n),u=Math.ceil(a/31536e6),l=s;l<=c+u;l+=u)o.push(St(l));else if(a>z){var h=Math.ceil(a/z),f=At(e),p=function(t,e){var n=Ct(t),r=Ct(e),i=At(t);return 12*(r-n)+(At(e)-i)%12}(e,n);for(l=0;l<=p+h;l+=h)o.push(kt(s,l+f))}else if(a>N){var d=(b=new Date(e)).getFullYear(),g=b.getMonth(),v=b.getDate(),y=Math.ceil(a/N),m=function(t,e){return Math.ceil((e-t)/N)}(e,n);for(l=0;l_){d=(b=new Date(e)).getFullYear(),g=b.getMonth(),y=b.getDate();var b,x=b.getHours(),O=Math.ceil(a/_),j=function(t,e){return Math.ceil((e-t)/_)}(e,n);for(l=0;l<=j+O;l+=O)o.push(new Date(d,g,y,x+l).getTime())}else if(a>6e4){var w=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),M=Math.ceil(a/6e4);for(l=0;l<=w+M;l+=M)o.push(e+6e4*l)}else{var C=a;C<1e3&&(C=1e3);var S=1e3*Math.floor(e/1e3),A=Math.ceil((n-e)/1e3),k=Math.ceil(C/1e3);for(l=0;l=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+a+") is too small, increase the value to solve the problem!"),o})),o("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,a=t.max,o=t.values,s=q(n,a);if(i>0)e=Math.floor(q(n,i));else{var c=$(o,n,a);e=Math.floor(q(n,c))}for(var u=s-e,l=Math.ceil(u/r),h=[],f=e;f=0?1:-1;return Math.pow(t,e)*n}))})),o("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],a=0;a1?e*i+function(t,e){return e?e-t:.14*t}(e,n)*(i-1):e}function o(t,e){var n=Object(i.a)(),a=0;if(Object(r.e)(t)||""===t)return a;if(n.save(),n.font=e,Object(r.h)(t)&&t.includes("\n")){var o=t.split("\n");Object(r.a)(o,(function(t){var e=n.measureText(t).width;a0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),c&&h.setAttribute(u.b.strokeOpacity,c),l&&h.setAttribute(u.b.lineWidth,l))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(u.b[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(u.b[e],"url(#"+i+")")}else r.setAttribute(u.b[e],n);else r.setAttribute(u.b[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,c=r.shadowColor;(i||a||s||c)&&Object(o.b)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Object(o.c)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a.AbstractShape),f=n(0),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):u.b[e]&&r.setAttribute(u.b[e],t)}))},e}(h),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(i.c)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(f.each)(e||n,(function(t,e){u.b[e]&&r.setAttribute(u.b[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var a=r.childNodes,o=a.length-1;o>=0;o--)r.removeChild(a[o]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(h),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):u.b[e]&&r.setAttribute(u.b[e],t)}))},e}(h),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(f.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):u.b[e]&&i.setAttribute(u.b[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(f.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(f.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(h),y=n(22),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var a=Object(f.isObject)(e)?t.addArrow(n,u.b[i]):t.getDefaultArrow(n,u.b[i]);r.setAttribute(u.b[i],"url(#"+a+")")}else r.removeAttribute(u.b[i]);else u.b[i]&&r.setAttribute(u.b[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return y.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2;return y.c.pointAt(n,r,i,a,t)},e}(h),b={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},x={get:function(t){return b[t]},register:function(t,e){b[t]=e},remove:function(t){delete b[t]},getAll:function(){return b}},O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(f.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,a=e.symbol||"circle";return(t=Object(f.isFunction)(a)?a:x.get(a))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=x,e}(h),j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(f.each)(e||r,(function(e,a){if("path"===a&&Object(f.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===a||"endArrow"===a)if(e){var o=Object(f.isObject)(e)?t.addArrow(r,u.b[a]):t.getDefaultArrow(r,u.b[a]);i.setAttribute(u.b[a],"url(#"+o+")")}else i.removeAttribute(u.b[a]);else u.b[a]&&i.setAttribute(u.b[a],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(h),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(t,e){"points"===e&&Object(f.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u.b[e]&&r.setAttribute(u.b[e],t)}))},e}(h),M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(f.each)(e||n,(function(t,e){"points"===e&&Object(f.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):u.b[e]&&r.setAttribute(u.b[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(f.isNil)(e)?(this.set("totalLength",y.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Object(f.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),y.c.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,a=[];Object(f.each)(t,(function(o,s){t[s+1]&&((n=[])[0]=i/e,r=y.c.length(o[0],o[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(h);var C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),a=!1,o=["x","y","width","height","radius"];Object(f.each)(e||r,(function(t,e){-1===o.indexOf(e)||a?-1===o.indexOf(e)&&u.b[e]&&i.setAttribute(u.b[e],t):(i.setAttribute("d",n._assembleRect(r)),a=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var o=function(t){var e=0,n=0,r=0,i=0;return Object(f.isArray)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(a);return Object(f.isArray)(a)?1===a.length?o.r1=o.r2=o.r3=o.r4=a[0]:2===a.length?(o.r1=o.r3=a[0],o.r2=o.r4=a[1]):3===a.length?(o.r1=a[0],o.r2=o.r4=a[1],o.r3=a[2]):(o.r1=a[0],o.r2=a[1],o.r3=a[2],o.r4=a[3]):o.r1=o.r2=o.r3=o.r4=a,[["M "+(e+o.r1)+","+n],["l "+(r-o.r1-o.r2)+",0"],["a "+o.r2+","+o.r2+",0,0,1,"+o.r2+","+o.r2],["l 0,"+(i-o.r2-o.r3)],["a "+o.r3+","+o.r3+",0,0,1,"+-o.r3+","+o.r3],["l "+(o.r3+o.r4-r)+",0"],["a "+o.r4+","+o.r4+",0,0,1,"+-o.r4+","+-o.r4],["l 0,"+(o.r4+o.r1-i)],["a "+o.r1+","+o.r1+",0,0,1,"+o.r1+","+-o.r1],["z"]].join(" ")},e}(h),S=n(97),A={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},k={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},E={left:"left",start:"left",center:"middle",right:"end",end:"end"},T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(i.c)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),Object(f.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(o.c)(n):u.b[e]&&i.setAttribute(u.b[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=Object(S.a)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",k[n]||"alphabetic"):t.setAttribute("alignment-baseline",A[n]||"baseline"),t.setAttribute("text-anchor",E[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,a=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var o=t.split("\n"),s=o.length-1,c="";Object(f.each)(o,(function(t,e){0===e?"alphabetic"===a?c+=''+t+"":"top"===a?c+=''+t+"":"middle"===a?c+=''+t+"":"bottom"===a?c+=''+t+"":"hanging"===a&&(c+=''+t+""):c+=''+t+""})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(h)},function(t,e,n){"use strict";var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function E(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t}function T(t,e){e=e||1;var n=2*r.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function F(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function B(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function L(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t}function D(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+a*a),s=o&&(n*i+r*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function R(t){return t[0]=0,t[1]=0,t}function _(t){return"vec2("+t[0]+", "+t[1]+")"}function N(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=r.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-o)<=r.b*Math.max(1,Math.abs(i),Math.abs(o))}var Y,G=j,X=l,V=h,H=f,W=x,q=O,$=w,U=(Y=i(),function(t,e,n,r,i,a){var o,s;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,o=n;o0&&t.charCodeAt(e)<128?1:2}function a(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.isNil)(e)?"":""+e})),n=0,i=0,a=0;a=19968&&c<=40869?2:1}o>n&&(n=o,i=a)}return t[i].getBBox().width}(t);var e=0;return Object(r.each)(t,(function(t){var n=t.getBBox().width;e=0?function(t,e,n){void 0===n&&(n="tail");var r=t.length,a="";if("tail"===n){for(var o=0,s=0;o=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===o?0:o-1],i=n[o===s-1?s-1:o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.a)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,a={},o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){a[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e}))})),!n&&this.isAdjust("y")){a.y=[i.a,1]}return a},t}();e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n(1),i=n(0),a=n(135),o=n(219);function s(t,e){var n=t.filter((function(t){var n=Object(i.get)(t,[e]);return Object(i.isNumber)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(i.get)(t,[e])>=0})),a=n.every((function(t){return Object(i.get)(t,[e])<=0}));return r?{min:0}:a?{max:0}:{}}function c(t,e,n,i,a){if(void 0===a&&(a=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],c={},u=-1;return t.forEach((function(t){var l=t[e],h=t[n],f=t[i],p=Object(o.a)(t,a);c[l]||(c[l]=Object(r.a)({id:++u,name:l},p)),c[h]||(c[h]=Object(r.a)({id:++u,name:h},p)),s.push(Object(r.a)({source:c[l].id,target:c[h].id,value:f},p))})),{nodes:Object.values(c),links:s}}function u(t,e){var n=Object(i.filter)(t,(function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)}));return Object(a.b)(a.a.WARN,n.length===t.length,"illegal data existed in chart data."),n}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var r=n(1),i=n(0),a=n(122);function o(t,e,n,o){var s=Object(i.reduce)(t,(function(t,r){var i=r[n],o=t.has(i)?t.get(i):0,s=r[e];return o=Object(a.b)(s)?o+s:o,t.set(i,o),t}),new Map);return Object(i.map)(t,(function(t){var i,c=t[e],u=t[n],l=Object(a.b)(c)?c/s.get(u):0;return Object(r.a)(Object(r.a)({},t),((i={})[o]=l,i))}))}function s(t,e,n,r,i){return i?o(t,e,n,r):t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(17);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var y=n*n*(g*g)+i*i*(d*d),m=y?Math.sqrt((n*n*(i*i)-y)/y):1;c===u&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?m*-i*d/n:0,O=(l+f)/2+Math.cos(s)*b-Math.sin(s)*x,j=(h+p)/2+Math.sin(s)*b+Math.cos(s)*x,w=[(d-b)/n,(g-x)/i],M=[(-1*d-b)/n,(-1*g-x)/i],C=o([1,0],w),S=o(w,M);return a(w,M)<=-1&&(S=Math.PI),a(w,M)>=1&&(S=0),0===u&&S>0&&(S-=2*Math.PI),1===u&&S<0&&(S+=2*Math.PI),{cx:O,cy:j,rx:Object(r.j)(t,[f,p])?0:n,ry:Object(r.j)(t,[f,p])?0:i,startAngle:C,endAngle:C+S,xRotation:s,arcFlag:c,sweepFlag:u}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return f}));var r=function(){for(var t=0,e=0,n=arguments.length;e2&&(n.push([i].concat(s.splice(0,2))),c="l",i="m"===i?"l":"L"),"o"===c&&1===s.length&&n.push([i,s[0]]),"r"===c)n.push([i].concat(s));else for(;s.length>=e[c]&&(n.push([i].concat(s.splice(0,e[c]))),e[c]););return t})),n};var c=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(r.each)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function u(t,e,n){var r=null,i=n;return e=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var p=i-(r=t.length);if(r0)){t[r]=e[r];break}n=h(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=h(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=h(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},,,,function(t,e,n){"use strict";var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.a=r},function(t,e,n){"use strict";var r=n(1),i=n(81),a=n(24),o=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(a.i)(r,e),n}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(i.a);e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";var r=n(1),i=n(0),a=n(113),o=n(24),s={};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return c.length>0?(Object(o.a)(c,(function(t){var e=t.getBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(a),e=Object(i.max)(a),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return c.length>0?(Object(o.a)(c,(function(t){var e=t.getCanvasBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(a),e=Object(i.max)(a),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.a)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var s=t[a];if(Object(o.b)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(o.a)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.a)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o.a)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(a.a);e.a=c},function(t,e,n){"use strict";var r=n(1),i=n(0),a=n(8),o=n(24),s=n(49),c=n(110),u=a.a.transform,l=["zIndex","capture","visible","type"],h=["repeat"];function f(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function p(t,e){var n={},r=e.attr();return Object(i.each)(t,(function(t,e){-1!==h.indexOf(e)||Object(i.isEqual)(r[e],t)||(n[e]=t)})),n}function d(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,a=e.duration,o=Object.prototype.hasOwnProperty;return Object(i.each)(t,(function(t){n+rt.delay&&Object(i.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?r=d(r,j):n.addAnimator(this),r.push(j),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(i.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,a=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=a[t],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(o.g)(s,n))return"break";Object(i.isArray)(u)?Object(i.each)(u,(function(t){r.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,u,e)}},c=this,u=0;u=0&&s<.5*Math.PI?(r={x:l.minX,y:l.minY},a={x:l.maxX,y:l.maxY}):.5*Math.PI<=s&&sO){var w=j/y.length,M=Math.max(1,Math.ceil(O/w)-1),C=y.slice(0,M)+"...";x.attr("text",C)}}}}(t,e,n)}var f={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"};Object(s.registerInteraction)(f.hover,{start:[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"]}],end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(s.registerInteraction)(f.click,{start:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"]}],end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var p=n(27),d=n(91),g=n(90);function v(t){var e=t.options,n=e.legend,i=e.seriesField,a=e.isStack;return i?!1!==n&&(n=Object(r.a)({position:a?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function y(t){var e=t.chart,n=t.options,a=n.data,o=n.columnStyle,s=n.color,c=n.columnWidthRatio,u=n.isPercent,l=n.xField,h=n.yField,f=n.seriesField,g=n.tooltip;e.data(Object(d.a)(a,h,l,h,u));var v=u?Object(r.a)({formatter:function(t){return{name:t[f]||t[l],value:(100*Number(t[h])).toFixed(2)+"%"}}},g):g,y=Object(i.b)({},t,{options:{widthRatio:c,tooltip:v,interval:{style:o,color:s}}});return Object(p.c)(y),t}function m(t){var e,n,o=t.options,s=o.xAxis,c=o.yAxis,u=o.xField,l=o.yField,h=o.data,f=o.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(i.e)(Object(a.f)(((e={})[u]=s,e[l]=c,e),((n={})[u]={type:"cat"},n[l]=Object(r.a)(Object(r.a)({},Object(g.a)(h,l)),f),n)))(t)}function b(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function x(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function O(t){var e=t.chart,n=t.options,a=n.label,o=n.yField,s=n.isRange,c=Object(i.c)(e,"interval");if(a){var u=a.callback,l=Object(r.e)(a,["callback"]);c.label({fields:[o],callback:u,cfg:Object(r.a)({layout:(null==l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(i.u)(s?Object(r.a)({content:function(t){var e;return null===(e=t[o])||void 0===e?void 0:e.join("-")}},l):l))})}else c.label(!1);return t}function j(t,e){void 0===e&&(e=!1);var n,r,c,l,p=t.options,d=p.seriesField;return Object(i.e)(v,a.j,a.i,y,m,b,x,a.k,a.h,a.g,O,a.c,a.a,Object(a.b)(),(r=p.yField,void 0===(c=!e)&&(c=!0),void 0===(l=!!d)&&(l=!1),function(t){var e=t.options,n=t.chart,a=e.conversionTag,f=e.theme;return a&&!l&&(n.theme(Object(i.b)({},Object(o.isObject)(f)?f:Object(s.getTheme)(f),{columnWidthRatio:1/3})),n.annotation().shape({render:function(t,e){var i=t.addGroup({id:n.id+"-conversion-tag-group",name:"conversion-tag-group"}),s=Object(o.find)(n.geometries,(function(t){return"interval"===t.type})),l={view:e,geometry:s,group:i,field:r,horizontal:c,options:u(a,c)},f=c?s.elements:s.elements.slice().reverse();Object(o.each)(f,(function(t,e){e>0&&h(l,f[e-1],t)}))}})),t}),(void 0===(n=!p.isStack)&&(n=!1),function(t){var e=t.chart,r=t.options.connectedArea,i=function(){e.removeInteraction(f.hover),e.removeInteraction(f.click)};if(!n&&r){var a=r.trigger||"hover";i(),e.interaction(f[a])}else i();return t}),a.e)(t)}},function(t,e,n){"use strict";var r=n(0),i=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function u(t){return"#"+f(t[0])+f(t[1])+f(t[2])}var l,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},f=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},p=function(t){if("#"===t[0]&&7===t.length)return t;var e;l||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),l=e),l.style.color=t;var n=document.defaultView.getComputedStyle(l,"").getPropertyValue("color");return n=u(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.a={rgb2arr:h,gradient:function(t){var e=Object(r.isString)(t)?t.split("-"):t,n=Object(r.map)(e,(function(t){return h(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,o=t[i],s=i===r?o:t[i+1];return u([c(o,s,a,0),c(o,s,a,1),c(o,s,a,2)])}(n,t)}},toRGB:Object(r.memoize)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(c=a.exec(t))[1]+90;n=c[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var c;e="radial-gradient(",n=(c=o.exec(t))[4]}var u=n.match(s);return Object(r.each)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(o.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(o.a)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(a.isNil)(t)){t=this.createDom();var e=this.get("parent");Object(a.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else Object(a.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(a.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(o.h)(e,n)){var r=t[n];Object(i.e)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(a.each)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(a.each)(r,(function(t){Object(i.e)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.e)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.b)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(a.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(153).a);e.a=s},function(t,e,n){"use strict";function r(t){return"number"==typeof t&&!isNaN(t)}function i(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,u=t.value&&(i-n)/t.value;++s=0;)e+=n[r].value;else e=1;t.value=e}var a=n(138);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Object(a.a)(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}var s=n(14),c=n.n(s),u=c.a.mark(l);function l(){var t,e,n,r,i,a;return c.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=[t=this];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){o.next=8;break}return o.next=5,t;case 5:if(r=t.children)for(i=0,a=r.length;i=0;--a)c.push(r=i[a]=new v(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(g)}function f(t){return t.children}function p(t){return Array.isArray(t)?t[1]:null}function d(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function g(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function v(t){this.data=t,this.depth=this.height=0,this.parent=null}v.prototype=h.prototype=Object(r.a)({constructor:v,count:function(){return this.eachAfter(i)},each:function(t,e){var n,r=-1,i=o(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;t.call(e,a,++r,this)}}catch(t){i.e(t)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,a=this,o=[a],s=[],c=-1;a=o.pop();)if(s.push(a),n=a.children)for(r=0,i=n.length;r=0;--r)a.push(n[r]);return this},find:function(t,e){var n,r=-1,i=o(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(t.call(e,a,++r,this))return a}}catch(t){i.e(t)}finally{i.f()}},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return h(this).eachBefore(d)}},Symbol.iterator,l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o}));var r=0,i=.5,a=.5,o=.05},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s}));var r=n(0),i=n(3);function a(t,e){var n=null;return Object(r.each)(t,(function(t){"number"==typeof t[e]&&(n+=t[e])})),n}function o(t,e){var n;switch(t){case"inner":return n="-30%",Object(r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function s(t,e){return Object(r.every)(Object(i.q)(t,e),(function(t){return 0===t[e]}))}},,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var r,i=n(1);!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(r||(r={}));var a="AntV/G2Plot";function o(t){for(var e=[],n=1;n1?e*i+function(t,e){return e?e-t:.14*t}(e,n)*(i-1):e}function o(t,e){var n=Object(i.a)(),a=0;if(Object(r.e)(t)||""===t)return a;if(n.save(),n.font=e,Object(r.h)(t)&&t.includes("\n")){var o=t.split("\n");Object(r.a)(o,(function(t){var e=n.measureText(t).width;ad&&(d=u),m=f*f*y,(g=Math.max(d/m,m/p))>v){f-=u;break}v=g}b.push(c={value:f,dice:l1?e:1)},n}(a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(66),i=n.n(r),a=n(141);function o(t,e){return!e||"object"!==i()(e)&&"function"!=typeof e?Object(a.a)(t):e}},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return i})),n.d(e,"registerAdjust",(function(){return a}));n(89),n(194);var r={},i=function(t){return r[t.toLowerCase()]},a=function(t,e){if(i(t))throw new Error("Adjust type '"+t+"' existed.");r[t.toLowerCase()]=e}},function(t,e,n){"use strict";function r(t){return null==t?null:i(t)}function i(t){if("function"!=typeof t)throw new Error;return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t,e,n){var i=e+"Style",a=null;return Object(r.each)(n,(function(e,n){t[n]&&e[i]&&(a||(a={}),Object(r.mix)(a,e[i]))})),a}},,,,,,function(t,e,n){"use strict";var r=n(143);n.d(e,"getAdjust",(function(){return r.getAdjust}));n(89);var i=n(436),a=n(437),o=n(438),s=n(439);n(194);Object(r.registerAdjust)("Dodge",i.a),Object(r.registerAdjust)("Jitter",a.a),Object(r.registerAdjust)("Stack",o.a),Object(r.registerAdjust)("Symmetric",s.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r=n(1),i=n(19),a=n(0),o=n(61),s=n(6),c=n(92),u=n(3),l=n(102),h=n(184),f=n(115),p=n(183),d=n(182),g=n(190),v=n(187),y=n(188),m=n(98),b=n(189),x=n(155),O=n(240),j=n(222),w=n(245),M=n(244),C=n(243),S=n(241),A=n(223),k=n(247),E=n(246),T=n(248),F=n(224),B={line:l.a,pie:h.a,column:f.a,bar:p.a,area:d.a,gauge:g.a,"tiny-line":v.a,"tiny-column":y.a,"tiny-area":m.a,"ring-progress":b.a,progress:x.a},I={line:O.a,pie:j.a,column:M.a,bar:w.a,area:C.a,gauge:S.a,"tiny-line":A.a,"tiny-column":E.a,"tiny-area":k.a,"ring-progress":T.a,progress:F.a};function P(t){var e=t.chart,n=t.options,i=n.views,s=n.legend;return Object(a.each)(i,(function(t){var n=t.region,i=t.data,s=t.meta,l=t.axes,h=t.coordinate,f=t.interactions,p=t.annotations,d=t.tooltip,g=t.geometries,v=e.createView({region:n});v.data(i);var y={};l&&Object(a.each)(l,(function(t,e){y[e]=Object(u.p)(t,c.a)})),y=Object(u.b)({},s,y),v.scale(y),l?Object(a.each)(l,(function(t,e){v.axis(e,t)})):v.axis(!1),v.coordinate(h),Object(a.each)(g,(function(t){var e=Object(o.a)({chart:v,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(a.each)(f,(function(t){!1===t.enable?v.removeInteraction(t.type):v.interaction(t.type,t.cfg)})),Object(a.each)(p,(function(t){v.annotation()[t.type](Object(r.a)({},t))})),"boolean"==typeof t.animation?v.animate(!1):(v.animate(!0),Object(a.each)(v.geometries,(function(e){e.animate(t.animation)}))),d&&(v.interaction("tooltip"),v.tooltip(d))})),s?Object(a.each)(s,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function L(t){var e=t.chart,n=t.options.plots;return Object(a.each)(n,(function(t){var n=t.type,a=t.region,o=t.options,s=void 0===o?{}:o,c=s.tooltip,l=e.createView(Object(r.a)({region:a},Object(u.p)(s,i.a)));c&&l.interaction("tooltip"),function(t,e,n){var r=I[t];r?(0,B[t])({chart:e,options:Object(u.b)({},r.getDefaultOptions(),n)}):console.error("could not find "+t+" plot")}(n,l,s)})),t}function D(t){return Object(u.e)(s.a,P,L,s.c,s.a,s.j,s.k)(t)}var R=n(13);var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,i=e||{},o=i.linkField,s=i.dim,c=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var l=r.data.data;Object(a.each)(t,(function(t){var e,n,r=o;if("x"===s?r=t.getXScale().field:"y"===s?r=null===(e=t.getYScales().find((function(t){return t.field===r})))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var i=Object(a.map)(Object(u.f)(t),(function(e){var n=!1,i=!1,o=Object(a.isArray)(l)?Object(a.get)(l[0],r):Object(a.get)(l,r);return function(t,e){var n=t.getModel().data;return Object(a.isArray)(n)?n[0][e]:n[e]}(e,r)===o?n=!0:i=!0,{element:e,view:t,active:n,inactive:i}}));c.push.apply(c,i)}}))}return c},e.prototype.showTooltip=function(t){var e=Object(u.i)(this.context.view),n=this.getAssociationItems(e,t);Object(a.each)(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=Object(u.i)(this.context.view);Object(a.each)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=Object(u.k)(this.context.view),n=this.getAssociationItems(e,t);Object(a.each)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=Object(u.k)(this.context.view),n=this.getAssociationItems(e,t);Object(a.each)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=Object(u.k)(this.context.view),n=this.getAssociationItems(e,t);Object(a.each)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=Object(u.k)(this.context.view);Object(a.each)(t,(function(t){var e,n;e=t,n=Object(u.f)(e),Object(a.each)(n,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}))},e}(R.Action);Object(R.registerAction)("association",_),Object(R.registerInteraction)("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(R.registerInteraction)("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(R.registerInteraction)("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(R.registerInteraction)("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var N=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(r.c)(e,t),e.prototype.getSchemaAdaptor=function(){return D},e}(i.b)},function(t,e,n){"use strict";var r=n(1),i=n(250),a=n(0),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg");Object(a.each)(t,(function(t,r){var i=t;e.get(r)!==t&&(Object(a.isObject)(t)&&n[r]&&(i=Object(a.deepMix)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(a.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),Object(a.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(r.a)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=o[n];return Object(a.each)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(a.each)(e,(function(e,n){var r=t.get(n);if(Object(a.isObject)(r)){var i=Object(a.deepMix)({},e,r);t.set(n,i)}}))},e}(i.Base);e.a=s},,function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(3),a=n(6),o=n(27),s=n(256),c=n(156);function u(t){var e=t.chart,n=t.options,a=n.percent,u=n.progressStyle,l=n.color,h=n.barWidthRatio;e.data(Object(c.a)(a));var f=Object(i.b)({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:h,interval:{style:u,color:Object(r.isString)(l)?[l,s.a[1]]:l},args:{zIndexReversed:!0}}});return Object(o.c)(f),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function l(t){return t.chart.coordinate("rect").transpose(),t}function h(t){return Object(i.e)(u,Object(a.f)({}),l,a.a,a.j,Object(a.b)())(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(122);function a(t){var e=Object(r.clamp)(Object(i.b)(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a}));var r=n(0);function i(t,e){var n=t.field,i=t.fields;if(Object(r.isString)(n))return n;if(Object(r.isArray)(n))return console.warn("Invalid field: it must be a string!"),n[0];if(console.warn("Invalid field: it must be a string! will try to get fields instead."),Object(r.isString)(i))return i;if(Object(r.isArray)(i)&&i.length)return i[0];if(e)return e;throw new TypeError("Invalid field: it must be a string!")}function a(t){var e=[];return t&&t.each?t.each((function(t){e.push(t)})):t&&t.eachNode&&t.eachNode((function(t){e.push(t)})),e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var r=n(0),i=n(55);function a(t){var e;return[(e={},e[i.e]=Object(r.clamp)(t,0,1),e)]}function o(t,e){var n=Object(r.get)(e,["ticks"],[]);return function(t,e){return t.map((function(n,r){var a;return(a={})[i.g]=n-(t[r-1]||0),a[i.f]=""+r,a[i.e]=e,a})).filter((function(t){return!!t[i.g]}))}(Object(r.size)(n)?n:[0,Object(r.clamp)(t,0,1),1],t)}},,,,function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var s=Object(a.c)(e,[t.minX,t.minY]),c=Object(a.c)(e,[t.maxX,t.minY]),u=Object(a.c)(e,[t.minX,t.maxY]),l=Object(a.c)(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],u[0],l[0]),i=Math.max(s[0],c[0],u[0],l[0]),r=Math.min(s[1],c[1],u[1],l[1]),o=Math.max(s[1],c[1],u[1],l[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,y=void 0===v?0:v,m=n-p+g,b=i+p+g,x=r-p+y,O=o+p+y;n=Math.min(n,m),i=Math.max(i,b),r=Math.min(r,x),o=Math.max(o,O)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(i.a);e.a=o},,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=new Map;function i(t,e){r.set(t,e)}function a(t){return r.get(t)}var o=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}},s=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}},c=n(22);function u(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function l(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=u(e,n.getCanvasBBox())),r&&(e=u(e,r.getCanvasBBox())),e}var h=n(71),f=n(48),p=n(0);function d(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),o=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),c=Math.acos((a+o-s)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!c||0===Math.sin(c)||Object(p.isNumberEqual)(c,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),l=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return u=u>Math.PI/2?Math.PI-u:u,l=l>Math.PI/2?Math.PI-l:l,{xExtra:Math.cos(c/2-u)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(l-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0}}i("rect",o),i("image",o),i("circle",s),i("marker",s),i("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i'})),n}var v=function(){function t(t){this.cfg={};var e,n,r,i,a,o,s,u=null,l=Object(h.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=f.exec(t),a=Object(h.mod)(Object(h.toRadian)(parseFloat(i[1])),2*Math.PI),o=i[2];a>=0&&a<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=a&&a';e.innerHTML=n},t}(),x=function(){function t(t,e){this.cfg={};var n=Object(c.b)("marker"),r=Object(h.uniqueId)("marker_");n.setAttribute("id",r);var i=Object(c.b)("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var a=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===a?this._setDefaultPath(e,i):(this.cfg=a,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;Object(h.isArray)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),O=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c.b)("clipPath");this.el=e,this.id=Object(h.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),j=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,w=function(){function t(t){this.cfg={};var e=Object(c.b)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(c.b)("image");e.appendChild(n);var r=Object(h.uniqueId)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=j.exec(t)[2];n.setAttribute("href",i);var a=new Image;function o(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return i.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=i,a.complete?o():(a.onload=o,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),M=function(){function t(t){var e=Object(c.b)("defs"),n=Object(h.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;ig.length?(d=f.parsePathString(a[u]),g=f.parsePathString(i[u]),g=f.fillPathByDiff(g,d),g=f.formatPath(g,d),e.fromAttrs.path=g,e.toAttrs.path=d):e.pathFormatted||(d=f.parsePathString(a[u]),g=f.parsePathString(i[u]),g=f.formatPath(g,d),e.fromAttrs.path=g,e.toAttrs.path=d,e.pathFormatted=!0),r[u]=[];for(var v=0;v0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],d(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),v=n(109),y=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function m(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function b(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&Object(o.g)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var x=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(o.a)(y,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(o.a)(y,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,a){var o=new v.a(t,e);return o.fromShape=i,o.toShape=a,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(r),o},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],a=!1;if(i)i.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,c=n.timeStamp-this.mousedownTimeStamp,u=o.clientX-t.clientX,l=o.clientY-t.clientY;c>120||u*u+l*l>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var o=this._getEventObj(t,e,n,r,i,a);if(r){o.shape=r,m(r,t,o);for(var s=r.getParent();s;)s.emitDelegation(t,o),o.propagationStopped||b(s,t,o),o.propagationPath.push(s),s=s.getParent()}else{m(this.canvas,t,o)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),O=Object(i.a)(),j=O&&"firefox"===O.name,w=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(o.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new x({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new g(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");o.c&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");o.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(j&&!Object(o.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(o.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(a.a);e.a=w},,function(t,e,n){"use strict";var r=n(1),i=n(25);function a(t,e,n){var r=t.getTotalMatrix();if(r){var a=function(t,e){if(e){var n=Object(i.invert)(e);return Object(i.multiplyVec2)(n,t)}return t}([e,n,1],r);return[a[0],a[1]]}return[e,n]}function o(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(i.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=a(t,e,n),o=r[0],s=r[1];if(t.isClipped(o,s))return!1}var c=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=c.minX&&e<=c.maxX&&n>=c.minY&&n<=c.maxY}var s=n(64),c=n(78),u=n(17),l=n(36),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return c.a},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(u.d)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?function t(e,n,r){if(!o(e,n,r))return null;for(var i=null,s=e.getChildren(),c=s.length-1;c>=0;c--){var u=s[c];if(u.isGroup())i=t(u,n,r);else if(o(u,n,r)){var l=u,h=a(u,n,r),f=h[0],p=h[1];l.isInShape(f,p)&&(i=u)}if(i)break}return i}(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=Object(l.f)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=Object(l.g)(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(u.a)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(l.a)(t,this),Object(l.d)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Object(l.a)(t,this),Object(l.b)(this,n,r),Object(l.d)(t,n,r),t.restore()):e.length&&Object(l.c)(e),Object(u.c)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=Object(u.n)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(i.AbstractCanvas);e.a=h},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return u}));var r=n(1),i=n(0),a=n(3);function o(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(i.get)(t,"fill")&&(e.color=t.fill);var r=Object(a.p)(t,n),o=r.shadowColor,s=r.shadowBlur,c=void 0===s?0:s,u=r.shadowOffsetX,l=void 0===u?0:u,h=r.shadowOffsetY,f=void 0===h?0:h;e["text-shadow"]=""+[o,l+"px",f+"px",c+"px"].join(" ");var p=Object(a.p)(t,n),d=p.stroke,g=p.lineWidth,v=void 0===g?0:g;return e["-webkit-text-stroke"]=""+[v+"px",d].join(" "),Object(i.each)(t,(function(t,r){["fontSize"].includes(r)&&Object(i.isNumber)(t)?e[Object(a.n)(r)]=t+"px":r&&!n.includes(r)&&(e[Object(a.n)(r)]=""+t)})),e}function s(t,e){t.style["pointer-events"]="none",Object(i.each)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var c=function(t,e,n){var c=e.statistic,u=e.plotType,l=c.title,h=c.content;[l,h].forEach((function(e,c){if(e){var f="",p="";p=0===c?h?"translate(-50%, -100%)":"translate(-50%, -50%)":l?"translate(-50%, 0)":"translate(-50%, -50%)";var d=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.a)({position:["50%","50%"],html:function(t,a){var c=a.getCoordinate(),l=0;if("pie"===u||"ring-progress"===u)l=c.getRadius()*c.innerRadius*2;else if("liquid"===u){var h=Object(i.get)(a.geometries,[0,"elements",0,"shape"]);if(h)l=h.find((function(t){return"wrap"===t.get("name")})).getCanvasBBox().width}else l||(l=c.getWidth());s(t,Object(r.a)({width:l+"px",transform:p},o(d)));var g=a.getData();return e.customHtml?e.customHtml(t,a,n,g):(e.formatter&&(f=e.formatter(n,g)),f?Object(i.isString)(f)?f:""+f:"
")},key:(0===c?"top":"bottom")+"-statistic"},Object(a.p)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},u=function(t,e,n){var c=e.statistic;[c.title,c.content].forEach((function(e){if(e){var c="",u=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.a)({position:["50%","100%"],html:function(t,a){var l=a.getCoordinate(),h=a.views[0].getCoordinate(),f=h.getCenter(),p=h.getRadius(),d=Math.max(Math.sin(h.startAngle),Math.sin(h.endAngle))*p,g=f.y+d-l.y.start-parseFloat(Object(i.get)(u,"fontSize",0)),v=l.getRadius()*l.innerRadius*2;s(t,Object(r.a)({width:v+"px",transform:"translate(-50%, "+g+"px)"},o(u)));var y=a.getData();return e.customHtml?e.customHtml(t,a,n,y):(e.formatter&&(c=e.formatter(n,y)),c?Object(i.isString)(c)?c:""+c:"
")}},Object(a.p)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(181),i=n(84);function a(t,e){var n,i=e?e.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),s=new Array(i);for(n=0;n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?O(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?O(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new M(e[1],e[2],e[3],1):(e=h.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?O(e[1],e[2],e[3],e[4]):(e=p.exec(t))?O(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?k(e[1],e[2]/100,e[3]/100,1):(e=g.exec(t))?k(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?x(v[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function x(t){return new M(t>>16&255,t>>8&255,255&t,1)}function O(t,e,n,r){return r<=0&&(t=e=n=NaN),new M(t,e,n,r)}function j(t){return t instanceof a||(t=b(t)),t?new M((t=t.rgb()).r,t.g,t.b,t.opacity):new M}function w(t,e,n,r){return 1===arguments.length?j(t):new M(t,e,n,null==r?1:r)}function M(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function C(){return"#"+A(this.r)+A(this.g)+A(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function A(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function k(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new T(t,e,n,r)}function E(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=b(t)),!t)return new T;if(t instanceof T)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,c=o-i,u=(o+i)/2;return c?(s=e===o?(n-r)/c+6*(n0&&u<1?0:s,new T(s,c,u,t.opacity)}function T(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function F(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function B(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}r(a,b,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return E(this).formatHsl()},formatRgb:m,toString:m}),r(M,w,i(a,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatRgb:S,toString:S})),r(T,(function(t,e,n,r){return 1===arguments.length?E(t):new T(t,e,n,null==r?1:r)}),i(a,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new M(F(t>=240?t-240:t+120,i,r),F(t,i,r),F(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var I=function(t){return function(){return t}};function P(t,e){return function(n){return t+n*e}}function L(t){return 1==(t=+t)?D:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):I(isNaN(e)?n:e)}}function D(t,e){var n=e-t;return n?P(t,n):I(isNaN(t)?e:t)}var R=function t(e){var n=L(e);function r(t,e){var r=n((t=w(t)).r,(e=w(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=D(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function _(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Y(n,r)})),a=V.lastIndex;return a1)for(var n=1;n0&&c<=1&&(h=(l=u/((1-c)/c*(o-1)+o))*(1-c)/c);var f=e.addGroup();if(h>0)for(var p=this.coordinate.getCenter(),d=this.coordinate.getRadius(),g=i.Util.getAngle(t,this.coordinate),v=g.startAngle,y=g.endAngle,m=v,b=0;m
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},u={appendPadding:2,tooltip:Object(r.a)({},c),animation:{}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return u},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(o.b)({chart:e,options:n}),e.changeData(Object(a.a)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.a},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(1),i=n(19),a=n(83),o=n(98),s=n(68),c={appendPadding:2,tooltip:Object(r.a)({},s.b),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(o.b)({chart:e,options:n}),e.changeData(Object(a.a)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.a},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(1),i=n(13),a=n(19),o=n(156),s=n(189),c={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"},formatter:function(t){return(100*t.percent).toFixed(2)+"%"}}},animation:{}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Object(o.a)(t)),Object(s.b)({chart:this.chart,options:this.options},!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.a},e}(a.b)},,function(t,e,n){"use strict";n(105),n(294),n(295);var r=n(216);n.d(e,"Event",(function(){return r.a}));var i=n(217);n.d(e,"Base",(function(){return i.a}));n(431),n(296),n(297),n(408),n(136),n(42),n(76),n(218)},function(t,e,n){"use strict";var r=n(1),i=n(0),a=n(252),o=n(42),s={};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return c.length>0?(Object(o.a)(c,(function(t){var e=t.getBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(a),e=Object(i.max)(a),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return c.length>0?(Object(o.a)(c,(function(t){var e=t.getCanvasBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(a),e=Object(i.max)(a),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.a)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var s=t[a];if(Object(o.b)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(o.a)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.a)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o.a)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(a.a);e.a=c},function(t,e,n){"use strict";var r=n(1),i=n(0),a=n(8),o=n(42),s=n(76),c=n(217),u=a.a.transform,l=["zIndex","capture","visible","type"],h=["repeat"];function f(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function p(t,e){var n={},r=e.attr();return Object(i.each)(t,(function(t,e){-1!==h.indexOf(e)||Object(i.isEqual)(r[e],t)||(n[e]=t)})),n}function d(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,a=e.duration,o=Object.prototype.hasOwnProperty;return Object(i.each)(t,(function(t){n+rt.delay&&Object(i.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?r=d(r,j):n.addAnimator(this),r.push(j),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(i.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,a=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=a[t],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(o.g)(s,n))return"break";Object(i.isArray)(u)?Object(i.each)(u,(function(t){r.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,u,e)}},c=this,u=0;u0&&n*n>r*r+i*i}function f(t,e){for(var n=0;n(o*=o)?(r=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x-r*s-a*c,n.y=t.y-r*c+a*s):(r=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-a*c,n.y=e.y+r*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function y(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function m(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function b(t){this._=t,this.next=null,this.previous=null}function x(t){if(!(a=(e=t,t="object"==typeof e&&"length"in e?e:Array.from(e)).length))return 0;var e,n,r,i,a,o,s,u,l,h,f,p;if((n=t[0]).x=0,n.y=0,!(a>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;v(r,n,i=t[2]),n=new b(n),r=new b(r),i=new b(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(u=3;u0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Object(j.b)(e),n):t},n.parentId=function(t){return arguments.length?(e=Object(j.b)(t),n):e},n};function L(t,e){return t.parent===e.parent?1:2}function D(t){var e=t.children;return e?e[0]:t.t}function R(t){var e=t.children;return e?e[e.length-1]:t.t}function _(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function N(t,e,n){return t.a.parent===e.parent?t.a:n}function z(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}z.prototype=Object.create(s.a.prototype);var Y=function(){var t=L,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new z(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new z(r[i],i)),n.parent=e;return(o.parent=new z(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(s);else{var u=i,l=i,h=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>h.depth&&(h=t)}));var f=u===l?1:t(u,l)/2,p=f-u.x,d=e/(l.x+f+p),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,c=a.parent.children[0],u=a.m,l=o.m,h=s.m,f=c.m;s=R(s),a=D(a),s&&a;)c=D(c),(o=R(o)).a=e,(i=s.z+h-a.z-u+t(s._,a._))>0&&(_(N(s,e,r),e,i),u+=i,l+=i),h+=s.m,u+=a.m,f+=c.m,l+=o.m;s&&!R(o)&&(o.t=s,o.m+=h-l),a&&!D(c)&&(c.t=a,c.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},G=n(289),X=function(t,e,n,r,i){var a,o,s=t.children,c=s.length,u=new Array(c+1);for(u[0]=o=a=0;a=n-1){var l=s[e];return l.x0=i,l.y0=a,l.x1=o,void(l.y1=c)}var h=u[e],f=r/2+h,p=e+1,d=n-1;for(;p>>1;u[g]c-a){var m=r?(i*y+o*v)/r:o;t(e,p,v,i,a,m,c),t(p,n,y,m,a,o,c)}else{var b=r?(a*y+c*v)/r:c;t(e,p,v,i,a,o,b),t(p,n,y,i,b,o,c)}}(0,c,t.value,e,n,r,i)},V=n(101),H=n(123),W=function(t,e,n,r,i){(1&t.depth?H.a:V.a)(t,e,n,r,i)},q=n(139),$=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,c,u,l,h=-1,f=o.length,p=t.value;++h1?e:1)},n}(q.b)},,,,,,function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),o=new w(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,o),a}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function h(){}function f(){}function p(){}var d={};d[i]=function(){return this};var g=Object.getPrototypeOf,v=g&&g(g(M([])));v&&v!==e&&n.call(v,i)&&(d=v);var y=p.prototype=h.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var r;this._invoke=function(i,a){function o(){return new e((function(r,o){!function r(i,a,o,s){var c=u(t[i],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(h).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,s)}))}s(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function M(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return I}));var r=n(1),i=n(19),a=n(6),o=n(3),s=n(253),c=n(0),u=n(67),l=n(61);function h(t,e,n){var r=n.yField,i=n.maxSize,a=n.minSize,o=Object(c.maxBy)(e,r)[r],s=Object(c.isNumber)(i)?i:1,u=Object(c.isNumber)(a)?a:0;return Object(c.map)(t,(function(e,n){var i=(e[r]||0)/o;return e.$$percentage$$=i,e.$$mappingValue$$=(s-u)*i+u,e.$$conversion$$=[Object(c.get)(t,[n-1,r]),e[r]],e}))}function f(t){return function(e){var n=e.chart,i=e.options.conversionTag,a=n.getOptions().data;if(i){var o=i.formatter;a.forEach((function(e,s){if(!(s<=0)){var u=t(e,s,a,{top:!0,text:{content:Object(c.isFunction)(o)?o(e,a):o,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:Object(r.a)({textAlign:"start",textBaseline:"middle"},i.style)}});n.annotation().line(u)}}))}return e}}function p(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,a=h(i,i,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return e.data(a),t}function d(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,a=n.color,s=n.tooltip,h=n.label,f=Object(u.a)(s,[r,i]),p=f.fields,d=f.formatter;return Object(l.a)({chart:e,options:{type:"interval",xField:r,yField:"$$mappingValue$$",colorField:r,tooltipFields:Object(c.isArray)(p)&&p.concat(["$$percentage$$","$$conversion$$"]),mapping:{shape:"funnel",tooltip:d,color:a},label:h}}),Object(o.c)(t.chart,"interval").adjust("symmetric"),t}function g(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function v(t){var e=t.options.maxSize;return f((function(t,n,i,a){var o=e-(e-t.$$mappingValue$$)/2;return Object(r.a)(Object(r.a)({},a),{start:[n-.5,o],end:[n-.5,o+.05]})}))(t),t}function y(t){return Object(o.e)(p,d,g,v)(t)}function m(t){var e,n=t.chart,r=t.options,i=r.data,a=void 0===i?[]:i,o=r.yField;return n.data(a),n.scale(((e={})[o]={sync:!0},e)),t}function b(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,a=n.yField,s=n.color,f=n.compareField,p=n.isTransposed,d=n.tooltip,g=n.maxSize,v=n.minSize,y=n.label;return e.facet("mirror",{fields:[f],transpose:!p,padding:p?0:[32,0,0,0],eachView:function(t,e){var n=p?e.rowIndex:e.columnIndex;p||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var m=h(e.data,r,{yField:a,maxSize:g,minSize:v});t.data(m);var b=Object(u.a)(d,[i,a,f]),x=b.fields,O=b.formatter,j=p?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Object(l.a)({chart:t,options:{type:"interval",xField:i,yField:"$$mappingValue$$",colorField:i,tooltipFields:Object(c.isArray)(x)&&x.concat(["$$percentage$$","$$conversion$$"]),mapping:{shape:"funnel",tooltip:O,color:s,style:{lineWidth:1,stroke:"#fff"}},label:!1!==y&&Object(o.b)({},j,y)}})}}),t}function x(t){var e=t.chart,n=t.options,r=n.conversionTag,i=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){f((function(t,n,a,s){var c=0===e?-1:1;return Object(o.b)({},s,{start:[n-.5,t.$$mappingValue$$],end:[n-.5,t.$$mappingValue$$+.05],text:i?{style:{textAlign:"start"}}:{offsetX:!1!==r?c*r.offsetX:0,style:{textAlign:0===e?"end":"start"}}})}))(Object(o.b)({},{chart:t,options:n}))}))})),t}function O(t){var e,n=t.chart,r=t.options,i=r.data,a=void 0===i?[]:i,o=r.yField;return n.data(a),n.scale(((e={})[o]={sync:!0},e)),t}function j(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.isTransposed;return e.facet("rect",{fields:[r],padding:[i?0:32,10,0,10],eachView:function(e,n){y(Object(o.b)({},t,{chart:e,options:{data:n.data}}))}}),t}function w(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,a=n.yField,o=Object(c.reduce)(i,(function(t,e){return t+(e[a]||0)}),0),s=Object(c.maxBy)(i,a)[a],u=Object(c.map)(i,(function(t,e){var n=[],r=[];if(t.$$totalPercentage$$=(t[a]||0)/o,e){var u=i[e-1].$$x$$,l=i[e-1].$$y$$;n[0]=u[3],r[0]=l[3],n[1]=u[2],r[1]=l[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t.$$totalPercentage$$,n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t.$$x$$=n,t.$$y$$=r,t.$$percentage$$=(t[a]||0)/s,t.$$conversion$$=[Object(c.get)(i,[e-1,a]),t[a]],t}));return e.data(u),t}function M(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,a=n.color,o=n.tooltip,s=n.label,h=Object(u.a)(o,[r,i]),f=h.fields,p=h.formatter;return Object(l.a)({chart:e,options:{type:"polygon",xField:"$$x$$",yField:"$$y$$",colorField:r,tooltipFields:Object(c.isArray)(f)&&f.concat(["$$percentage$$","$$conversion$$"]),label:s,mapping:{tooltip:p,color:a}}}),t}function C(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function S(t){return f((function(t,e,n,i){return Object(r.a)(Object(r.a)({},i),{start:[t.$$x$$[1],t.$$y$$[1]],end:[t.$$x$$[1]+.05,t.$$y$$[1]]})}))(t),t}function A(t){var e,n=t.options,r=n.compareField,i=n.xField,a=n.yField,c={minSize:0,maxSize:1,meta:(e={},e.$$mappingValue$$={min:0,max:1,nice:!1},e),label:r?{fields:[i,a,r,"$$percentage$$","$$conversion$$"],style:{fill:"#fff",fontSize:12},formatter:function(t){return""+t[a]}}:{fields:[i,a,"$$percentage$$","$$conversion$$"],offset:0,position:"middle",style:{fill:"#fff",fontSize:12},formatter:function(t){return t[i]+" "+t[a]}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,title:i,formatter:function(t){return{name:t[i],value:t[a]}}},conversionTag:{offsetX:10,offsetY:0,style:{},formatter:function(t){return"转化率: "+s.a.apply(void 0,t.$$conversion$$)}}};return Object(o.b)({options:c},t)}function k(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?function(t){return Object(o.e)(O,j)(t)}(t):n?function(t){return Object(o.e)(m,b,x)(t)}(t):r?function(t){return Object(o.e)(w,M,C,S)(t)}(t):y(t)}function E(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,c=n.yField;return Object(o.e)(Object(a.f)(((e={})[s]=r,e[c]=i,e)))(t)}function T(t){return t.chart.axis(!1),t}function F(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function B(t){return Object(o.e)(A,k,E,T,a.k,a.c,F,a.a,a.j,Object(a.b)())(t)}var I=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return{appendPadding:[0,80]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return B},e}(i.b)},function(t,e,n){"use strict";var r=n(257),i=n(139),a=n(144),o=n(74);e.a=function(){var t=i.a,e=!1,n=1,s=1,c=[0],u=o.a,l=o.a,h=o.a,f=o.a,p=o.a;function d(t){return t.x0=t.y0=0,t.x1=n,t.y1=s,t.eachBefore(g),c=[0],e&&t.eachBefore(r.a),t}function g(e){var n=c[e.depth],r=e.x0+n,i=e.y0+n,a=e.x1-n,o=e.y1-n;a=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var s=Object(a.c)(e,[t.minX,t.minY]),c=Object(a.c)(e,[t.maxX,t.minY]),u=Object(a.c)(e,[t.minX,t.maxY]),l=Object(a.c)(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],u[0],l[0]),i=Math.max(s[0],c[0],u[0],l[0]),r=Math.min(s[1],c[1],u[1],l[1]),o=Math.max(s[1],c[1],u[1],l[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,y=void 0===v?0:v,m=n-p+g,b=i+p+g,x=r-p+y,O=o+p+y;n=Math.min(n,m),i=Math.max(i,b),r=Math.min(r,x),o=Math.max(o,O)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1}}(i.a)},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,a=new Array(i),o=0;or)throw new Error("circular link");i=a,a=new Set}if(e)for(var s=Math.max(d(n,(function(t){return t.depth}))+1,0),c=void 0,u=0;un)throw new Error("circular link");r=i,i=new Set}}(f),function(e){var r=function(t){for(var e=t.nodes,r=Math.max(d(e,(function(t){return t.depth}))+1,0),a=(o-i-c)/(r-1),s=new Array(r).fill(0).map((function(){return[]})),u=0,l=e;u0){var m=(l/h-u.y0)*e;u.y0+=m,u.y1+=m,P(u)}}void 0===n&&o.sort(y),o.length&&F(o,r)}}function T(t,e,r){for(var i=t.length-2;i>=0;--i){for(var a=t[i],o=0,s=a;o0){var v=(u/l-c.y0)*e;c.y0+=v,c.y1+=v,P(c)}}void 0===n&&a.sort(y),a.length&&F(a,r)}}function F(e,n){var r=e.length>>1,i=e[r];I(e,i.y0-t,r-1,n),B(e,i.y1+t,r+1,n),I(e,s,e.length-1,n),B(e,a,0,n)}function B(e,n,r,i){for(;r1e-6&&(a.y0+=o,a.y1+=o),n=a.y1+t}}function I(e,n,r,i){for(;r>=0;--r){var a=e[r],o=(a.y1-n)*i;o>1e-6&&(a.y0-=o,a.y1-=o),n=a.y0-t}}function P(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===r){for(var i=0,a=n;i "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=F(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=Object(o.d)(this.chart,"nodes"),a=Object(o.d)(this.chart,"edges");i.changeData(n),a.changeData(r)},e.prototype.getSchemaAdaptor=function(){return L},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(a.b)},function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return h})),n.d(e,"Text",(function(){return f})),n.d(e,"Arc",(function(){return p})),n.d(e,"Region",(function(){return d})),n.d(e,"Image",(function(){return g})),n.d(e,"DataMarker",(function(){return v})),n.d(e,"DataRegion",(function(){return y})),n.d(e,"RegionFilter",(function(){return m})),n.d(e,"Shape",(function(){return b})),n.d(e,"Html",(function(){return O}));var r=n(1),i=n(0),a=n(40),o=n(86),s=n(57),c=n(28);function u(t,e){var n=e.x,a=e.y,u=e.content,l=e.style,h=e.id,f=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:a}}),x=b.addShape({type:"text",id:h,name:f,attrs:Object(r.a)({x:0,y:0,text:u},l)}),O=Object(c.c)(Object(i.get)(m,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(o.a)(!v,x,j,y)}if(m){var w=Object(i.get)(m,"style",{}),M=x.getCanvasBBox(),C=M.minX,S=M.minY,A=M.width,k=M.height;b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(r.a)({x:C-O[3],y:S-O[0],width:A+O[1]+O[3],height:k+O[0]+O[2]},w)}).toBack()}Object(s.c)(b,n,a),Object(s.b)(b,p,n,a)}var l=n(32),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:l.a.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:l.a.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:l.a.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(r.a)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:Object(i.isString)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(i.isNumber)(n)?n:1)>1||r<0)&&(r=1),{x:Object(c.g)(t.x,e.x,r),y:Object(c.g)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,a=e.content,o=e.style,s=e.offsetX,c=e.offsetY,l=e.autoRotate,h=e.maxLength,f=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(n,r,i),m=y.x+s,b=y.y+c,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:a,style:o,maxLength:h,autoEllipsis:f,ellipsisPosition:p,background:d,isVertical:v};if(l){var O=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(O[1],O[0])}u(t,x)},e}(a.a),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:l.a.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:l.a.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),a=this.get("style");u(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:a,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");Object(s.c)(t,n,r),Object(s.b)(t,i,n,r)}},e}(a.a),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,a=Object(c.e)(e,n,r),o=Object(c.e)(e,n,i),s=i-r>Math.PI?1:0,u=[["M",a.x,a.y]];if(i-r==2*Math.PI){var l=Object(c.e)(e,n,r+Math.PI);u.push(["A",n,n,0,s,1,l.x,l.y]),u.push(["A",n,n,0,s,1,o.x,o.y])}else u.push(["A",n,n,0,s,1,o.x,o.y]);return u},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(r.a)({path:e},n)})},e}(a.a),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:l.a.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style"),a=Object(c.k)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.a)({x:a.x,y:a.y,width:a.width,height:a.height},i)})},e}(a.a),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),i=Object(c.k)({start:t,end:e}),a=this.get("src");return Object(r.a)({x:i.x,y:i.y,img:a,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a.a),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:l.a.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:l.a.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:l.a.fontFamily}}}})},e.prototype.renderInner=function(t){Object(i.get)(this.get("line"),"display")&&this.renderLine(t),Object(i.get)(this.get("text"),"display")&&this.renderText(t),Object(i.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,i=e.y,a=e.text,o=Object(r.e)(e,["x","y","text"]),s=this.get("text"),c=s.background,l=s.maxLength,h=s.autoEllipsis,f=s.isVertival,p=s.ellipsisPosition;u(t,{x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:c,maxLength:l,autoEllipsis:h,isVertival:f,ellipsisPosition:p})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),a=Object(i.get)(this.get("line"),"length",0),o=this.get("coordinateBBox"),c=t.getBBox(),u=c.minX,l=c.maxX,h=c.minY,f=c.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(p){if(n+u<=o.minX){var v=o.minX-(n+u);Object(s.c)(p,p.attr("x")+v,p.attr("y"))}if(n+l>=o.maxX){v=n+l-o.maxX;Object(s.c)(p,p.attr("x")-v,p.attr("y"))}}if("upward"===e&&r+h<=o.minY||"upward"!==e&&r+f>=o.maxY){var y=void 0,m=void 0;"upward"===e&&r+h<=o.minY?(y="top",m=1):(y="bottom",m=-1),d.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,a*m]]),Object(s.c)(p,p.attr("x"),(a+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=Object(i.get)(this.get("line"),"display"),e=Object(i.get)(this.get("point"),"style",{}),n=Object(i.get)(this.get("line"),"style",{}),a=Object(i.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?Object(i.get)(this.get("line"),"length",0):0,c="upward"===o?-1:1;return{point:Object(r.a)({x:0,y:0},e),line:Object(r.a)({path:[["M",0,0],["L",0,s*c]]},n),text:Object(r.a)({x:0,y:(s+2)*c,text:Object(i.get)(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},a)}},e}(a.a),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:l.a.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:l.a.textColor,fontFamily:l.a.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(i.get)(this.get("region"),"style",{}),n=(Object(i.get)(this.get("text"),"style",{}),this.get("lineLength")||0),a=this.get("points");if(a.length){var o=Object(c.j)(a),s=[];s.push(["M",a[0].x,o.minY-n]),a.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",a[a.length-1].x,a[a.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.a)({path:s},e)}),u(t,Object(r.a)({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text")))}},e}(a.a),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),a=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(i.each)(this.get("shapes"),(function(t,n){var r=t.get("type"),o=Object(i.clone)(t.attr());e.adjustShapeAttrs(o),e.addShape(a,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=Object(c.k)({start:n,end:r});a.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(a.a),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"shape",draw:i.noop})},e.prototype.renderInner=function(t){var e=this.get("render");Object(i.isFunction)(e)&&e(t)},e}(a.a),x=n(15),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(c.a)(t);var n=Object(i.isFunction)(e)?e(t):e;Object(i.isElement)(n)?t.appendChild(n):Object(i.isString)(n)&&t.appendChild(Object(x.b)(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),a=this.get("alignY"),o=this.get("offsetX"),s=this.get("offsetY"),c=Object(x.d)(t),u=Object(x.c)(t),l={x:n,y:r};"middle"===i?l.x-=Math.round(c/2):"right"===i&&(l.x-=Math.round(c)),"middle"===a?l.y-=Math.round(u/2):"bottom"===a&&(l.y-=Math.round(u)),o&&(l.x+=o),s&&(l.y+=s),Object(x.e)(t,{position:"absolute",left:l.x+"px",top:l.y+"px",zIndex:this.get("zIndex")})},e}(n(121).a)},function(t,e,n){"use strict";var r=new Map;function i(t,e){r.set(t,e)}var a=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}},o=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}},s=n(22);function c(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function u(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=c(e,n.getCanvasBBox())),r&&(e=c(e,r.getCanvasBBox())),e}var l=n(136),h=n(48),f=n(0);function p(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),o=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),c=Math.acos((a+o-s)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!c||0===Math.sin(c)||Object(f.isNumberEqual)(c,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),l=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return u=u>Math.PI/2?Math.PI-u:u,l=l>Math.PI/2?Math.PI-l:l,{xExtra:Math.cos(c/2-u)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(l-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0}}i("rect",a),i("image",a),i("circle",o),i("marker",o),i("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i-1)||Object(c.l)(e,f,p)})),t.render(!0)}};function M(t){var e,n=t.options,r=n.geometryOptions,a=void 0===r?[]:r,s=n.xField,u=n.yField,l=Object(o.every)(a,(function(t){var e=t.geometry;return e===i.Line||void 0===e}));return Object(c.b)({},{options:{geometryOptions:[],meta:(e={},e[s]={type:"cat",sync:!0,range:l?[0,1]:void 0},e),tooltip:{showMarkers:l,showCrosshairs:l,shared:!0,crosshairs:{type:"x"}},interactions:l?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:m(u,n.yAxis),geometryOptions:[y(0,u[0],a[0]),y(0,u[1],a[1])],annotations:m(u,n.annotations)}})}function C(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,s=n.geometryOptions,u=n.data,h=n.tooltip,f={line:0,column:1};return[Object(a.a)(Object(a.a)({},s[0]),{id:"left-axes-view",data:u[0],yField:i[0]}),Object(a.a)(Object(a.a)({},s[1]),{id:"right-axes-view",data:u[1],yField:i[1]})].sort((function(t,e){return-f[t.geometry]+f[e.geometry]})).forEach((function(t){var n=t.id,i=t.data,s=t.yField,u=v(t)&&t.isPercent,f=u?Object(l.b)(i,s,r,s):i,p=e.createView({id:n}).data(f),d=u?Object(a.a)({formatter:function(e){return{name:e[t.seriesField]||s,value:(100*Number(e[s])).toFixed(2)+"%"}}},h):h;!function(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,s=r.color,u=r.seriesField,l=r.groupField,h=r.isGroup,f=["xField","yField"];if(g(r)){Object(j.d)(Object(c.b)({},t,{options:Object(a.a)(Object(a.a)(Object(a.a)({},Object(c.p)(e,f)),r),{line:{color:r.color,style:r.lineStyle}})})),Object(j.e)(Object(c.b)({},t,{options:Object(a.a)(Object(a.a)(Object(a.a)({},Object(c.p)(e,f)),r),{point:r.point&&Object(a.a)({color:s,shape:"circle"},r.point)})}));var p=[];h&&p.push({type:"dodge",dodgeBy:l||u,customOffset:0}),i&&p.push({type:"stack"}),p.length&&Object(o.each)(n.geometries,(function(t){t.adjust(p)}))}v(r)&&Object(j.c)(Object(c.b)({},t,{options:Object(a.a)(Object(a.a)(Object(a.a)({},Object(c.p)(e,f)),r),{widthRatio:r.columnWidthRatio,interval:Object(a.a)(Object(a.a)({},Object(c.p)(r,["color"])),{style:r.columnStyle})})}))}({chart:p,options:{xField:r,yField:s,tooltip:d,geometryOption:t}})})),t}function S(t){var e,n=t.chart,r=t.options.geometryOptions,i=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],a=0;return n.once("beforepaint",(function(){Object(o.each)(r,(function(t,e){var r=Object(h.a)(n,0===e?"left-axes-view":"right-axes-view");if(!t.color){var s=r.getGroupScales(),c=Object(o.get)(s,[0,"values","length"],1),u=i.slice(a,a+c).concat(0===e?[]:i);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,u):e.color(u[0])})),a+=c}})),n.render(!0)})),t}function A(t){var e,n,r=t.chart,i=t.options,a=i.xAxis,o=i.yAxis,s=i.xField,l=i.yField;return Object(u.f)(((e={})[s]=a,e[l[0]]=o[0],e))(Object(c.b)({},t,{chart:Object(h.a)(r,"left-axes-view")})),Object(u.f)(((n={})[s]=a,n[l[1]]=o[1],n))(Object(c.b)({},t,{chart:Object(h.a)(r,"right-axes-view")})),t}function k(t){var e=t.chart,n=t.options,i=Object(h.a)(e,"left-axes-view"),a=Object(h.a)(e,"right-axes-view"),o=n.xField,s=n.yField,c=n.xAxis,u=n.yAxis;return e.axis(o,!1),e.axis(s[0],!1),e.axis(s[1],!1),i.axis(o,c),i.axis(s[0],b(u[0],r.Left)),a.axis(o,!1),a.axis(s[1],b(u[1],r.Right)),t}function E(t){var e=t.chart,n=t.options.tooltip,r=Object(h.a)(e,"left-axes-view"),i=Object(h.a)(e,"right-axes-view");return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function T(t){var e=t.chart;return Object(u.c)(Object(c.b)({},t,{chart:Object(h.a)(e,"left-axes-view")})),Object(u.c)(Object(c.b)({},t,{chart:Object(h.a)(e,"right-axes-view")})),t}function F(t){var e=t.chart,n=t.options.annotations,r=Object(o.get)(n,[0]),i=Object(o.get)(n,[1]);return Object(u.b)(r)(Object(c.b)({},t,{chart:Object(h.a)(e,"left-axes-view"),options:{annotations:r}})),Object(u.b)(i)(Object(c.b)({},t,{chart:Object(h.a)(e,"right-axes-view"),options:{annotations:i}})),t}function B(t){var e=t.chart;return Object(u.j)(Object(c.b)({},t,{chart:Object(h.a)(e,"left-axes-view")})),Object(u.j)(Object(c.b)({},t,{chart:Object(h.a)(e,"right-axes-view")})),Object(u.j)(t),t}function I(t){var e=t.chart;return Object(u.a)(Object(c.b)({},t,{chart:Object(h.a)(e,"left-axes-view")})),Object(u.a)(Object(c.b)({},t,{chart:Object(h.a)(e,"right-axes-view")})),t}function P(t){var e=t.chart,n=t.options.yAxis;return Object(u.e)(Object(c.b)({},t,{chart:Object(h.a)(e,"left-axes-view"),options:{yAxis:n[0]}})),Object(u.e)(Object(c.b)({},t,{chart:Object(h.a)(e,"right-axes-view"),options:{yAxis:n[1]}})),t}function L(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,a=n.yField,s=n.data,u=Object(h.a)(e,"left-axes-view"),l=Object(h.a)(e,"right-axes-view");return!1===r?e.legend(!1):Object(o.isObject)(r)&&!0===r.custom?e.legend(r):(e.once("beforepaint",(function(){var t=s[0].length?O({view:u,geometryOption:i[0],yField:a[0],legend:r}):[],n=s[1].length?O({view:l,geometryOption:i[1],yField:a[1],legend:r}):[];e.legend(Object(c.b)({},r,{custom:!0,items:t.concat(n)}))})),e.on("legend-item:click",(function(t){var n=Object(o.get)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,s=r.isGeometry,c=r.viewId;if(s){if(Object(o.findIndex)(a,(function(t){return t===i}))>-1){var u=Object(o.get)(Object(h.a)(e,c),"geometries");Object(o.each)(u,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var l=Object(o.get)(e.getController("legend"),"option.items",[]);Object(o.each)(e.views,(function(t){var n=t.getGroupScales();Object(o.each)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){return!Object(o.find)(l,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))),t}function D(t){var e=t.chart,n=t.options.slider,r=Object(h.a)(e,"left-axes-view"),i=Object(h.a)(e,"right-axes-view");return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;Object(o.isEqual)(n,r)||w(i,n)})),e.once("afterpaint",(function(){if(!Object(o.isBoolean)(n)){var t=n.start,e=n.end;(t||e)&&w(i,[t,e])}}))),t}function R(t){return Object(c.e)(M,C,A,k,P,E,T,F,B,I,S,L,D)(t)}var _=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}return Object(a.c)(e,t),e.prototype.getDefaultOptions=function(){return Object(c.b)({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return R},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(c.g)(this.chart);Object(o.each)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(c.g)(this.chart),e=[];return Object(o.each)(t,(function(t){var n=t.getData(),r=t.getStates();Object(o.each)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e}(s.b)},function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return D})),n.d(e,"Circle",(function(){return R})),n.d(e,"Base",(function(){return d}));var r={};n.r(r),n.d(r,"getDefault",(function(){return y})),n.d(r,"ellipsisHead",(function(){return m})),n.d(r,"ellipsisTail",(function(){return b})),n.d(r,"ellipsisMiddle",(function(){return x}));var i={};n.r(i),n.d(i,"getDefault",(function(){return S})),n.d(i,"reserveFirst",(function(){return A})),n.d(i,"reserveLast",(function(){return k})),n.d(i,"reserveBoth",(function(){return E})),n.d(i,"equidistance",(function(){return T})),n.d(i,"equidistanceWithReverseBoth",(function(){return F}));var a={};n.r(a),n.d(a,"getDefault",(function(){return I})),n.d(a,"fixedAngle",(function(){return P})),n.d(a,"unfixedAngle",(function(){return L}));var o={};n.r(o),n.d(o,"autoHide",(function(){return i})),n.d(o,"autoRotate",(function(){return a})),n.d(o,"autoEllipsis",(function(){return r}));var s=n(1),c=n(8),u=n(0),l=n(40),h=n(57),f=n(145),p=n(32),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.a)(Object(s.a)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:p.a.lineColor}},tickLine:{style:{lineWidth:1,stroke:p.a.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:p.a.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:p.a.textColor,fontFamily:p.a.fontFamily,fontWeight:"normal"},offset:10},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:p.a.textColor,textBaseline:"middle",fontFamily:p.a.fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:p.a.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(u.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(u.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(u.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(u.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(u.isNumberEqual)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(u.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(u.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,o=1;return t.length>=2&&(o=t[1].value-t[0].value),Object(u.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-o/2));var s=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var a=0;a0){var n=Object(u.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.rotate,o=r.formatter,s=this.getSidePoint(t.point,i),c=this.getSideVector(i,s),l=o?o(t.name,t,e):t.name,f=r.style;f=Object(u.isFunction)(f)?Object(u.get)(this.get("theme"),["label","style"],{}):f;var p=Object(u.mix)({x:s.x,y:s.y,text:l,textAlign:this.getTextAnchor(c),textBaseline:this.getTextBaseline(c)},f);return a&&(p.matrix=Object(h.e)(s,a)),p},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(u.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=Object(u.get)(this.get("theme"),["label","style"],{}),o=this.get("label"),s=o.style,c=o.formatter;if(Object(u.isFunction)(s)){var l=i.map((function(t){return Object(u.get)(t.get("delegateObject"),"tick")}));Object(u.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=c?c(n.name,n,e):n.name,i=Object(u.mix)({},a,s(r,e,l));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,a=void 0===i?0:i,o=t.autoRotate,s=e.fontSize,l=.5;"start"===n?l=0:"end"===n&&(l=1);var f=this.getTickPoint(l),p=this.getSidePoint(f,r||a+s/2),d=Object(u.mix)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,v=g;if(Object(u.isNil)(g)&&o){var y=this.getAxisVector(f);v=c.a.angleTo(y,[1,0],!0)}if(v){var m=Object(h.e)(p,v);d.matrix=m}return d},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var a=Object(f.a)(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var c=Object(f.a)(t,"tickLine",n);c&&s.attr(c)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=Object(f.a)(t,"label",n);s&&i.attr(s)}if(o){var c=Object(f.a)(t,"tickLine",n);c&&o.attr(c)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(l.a),g=n(86);function v(t,e,n,r){var i=e.getChildren(),a=!1;return Object(u.each)(i,(function(e){var i=Object(g.a)(t,e,n,r);a=a||i})),a}function y(){return b}function m(t,e,n){return v(t,e,n,"head")}function b(t,e,n){return v(t,e,n,"tail")}function x(t,e,n){return v(t,e,n,"middle")}var O=n(28);function j(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?Object(h.d)(t.attr("matrix")):0)%360}function w(t,e,n,r){var i=!1,a=j(e),o=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(a));i=Object(O.i)(c,0,Math.PI/180)?s.width+r>o:s.height/c+r>o}else{c=Math.abs(Math.sin(a));i=Object(O.i)(c,0,Math.PI/180)?s.width+r>o:s.height/c+r>o}return i}function M(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var s=a.length,c=a[0],u=1;u1){f=Math.ceil(f);for(var d=0;d2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),M(t,e,!1,r)&&(a=!0)),s.get("visible")||(s.show(),M(t,e,!0,r)&&(a=!0))}return a}function B(t,e,n,r){var i=e.getChildren();if(!i.length)return!1;if(!t&&i.length<2)return!1;var a=Object(g.b)(i),o=!1;t?o=!!n&&a>n:o=a>Math.abs(i[1].attr("x")-i[0].attr("x"));o&&function(t,e){Object(u.each)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=Object(h.e)({x:n,y:r},e);t.attr("matrix",i)}))}(i,r(n,a));return o}function I(){return P}function P(t,e,n,r){return B(t,e,n,(function(){return Object(u.isNumber)(r)?r:t?p.a.verticalAxisRotate:p.a.horizontalAxisRotate}))}function L(t,e,n){return B(t,e,n,(function(e,n){if(!e)return t?p.a.verticalAxisRotate:p.a.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.a)(Object(s.a)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),a=Math.min(e.y,n.y,r.y),o=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(u.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(u.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=c.c.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return c.c.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=i.offset,c=o,l=0,h=0;a&&(l=a.style.fontSize,h=a.spacing),c&&(c=c-s-h-l);var f=this.get("overlapOrder");if(Object(u.each)(f,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,c)})),a&&Object(u.isNil)(a.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;a.offset=s+d+h+l/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(u.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),s=!1,c=o[t];if(!0===e){this.get("label");s=c.getDefault()(a,n,r)}else if(Object(u.isFunction)(e))s=e(a,n,r);else if(Object(u.isObject)(e)){var l=e;c[l.type]&&(s=c[l.type](a,n,r,l.cfg))}else c[e]&&(s=c[e](a,n,r));if("autoRotate"===t){if(s){var h=n.getChildren(),f=this.get("verticalFactor");Object(u.each)(h,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);Object(u.each)(p,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(d),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.a)(Object(s.a)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var c=this.getCirclePoint(a),u=this.getCirclePoint(o),l=Math.abs(o-a)>Math.PI?1:0,h=a>o?0:1;s=[["M",e,n],["L",c.x,c.y],["A",r,i,0,l,h,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),a=c.c.length(r);return c.c.scale(r,r,i*t/a),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e}(d)},function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return h})),n.d(e,"Circle",(function(){return f})),n.d(e,"Base",(function(){return l})),n.d(e,"Html",(function(){return v}));var r,i=n(1),a=n(28),o=n(0),s=n(40),c=n(57),u=n(32),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:u.a.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:u.a.textColor,textAlign:"center",textBaseline:"middle",fontFamily:u.a.fontFamily}},textBackground:{padding:5,style:{stroke:u.a.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,a=e.content;if(!Object(o.isNil)(a)){var s=this.getTextPoint(),u=null;if(r){var l=this.getRotateAngle();u=Object(c.e)(s,l)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(i.a)(Object(i.a)(Object(i.a)({},s),{text:a,matrix:u}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(i.a)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var o=n.getBBox(),s=Object(a.c)(r.padding),c=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(i.a)({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},c)}).toBack()}},e}(s.a),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return Object(a.f)(e,n,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(l),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,s=r.startAngle,c=r.endAngle,u="start"===e?s:c,l=this.getRotateAngle()-Math.PI,h=Object(a.e)(i,o,u),f=Math.cos(l)*n,p=Math.sin(l)*n;return{x:h.x+f,y:h.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r==2*Math.PI){var s=e.x,c=e.y;o=[["M",s,c-n],["A",n,n,0,1,1,s,c+n],["A",n,n,0,1,1,s,c-n],["Z"]]}else{var u=Object(a.e)(e,n,r),l=Object(a.e)(e,n,i),h=Math.abs(i-r)>Math.PI?1:0,f=r>i?0:1;o=[["M",u.x,u.y],["A",n,n,0,h,f,l.x,l.y]]}return o},e}(l),p=n(15),d=n(121),g=((r={})["g2-crosshair"]={position:"relative"},r["g2-crosshair-line"]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r["g2-crosshair-text"]={position:"absolute",color:u.a.textColor,fontFamily:u.a.fontFamily},r),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:"g2-crosshair",defaultStyles:g,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(p.b)(e);t.appendChild(n),this.applyStyle("g2-crosshair-line",n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return Object(a.f)(e,n,i,o)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=Object(o.substitute)(this.get("textTpl"),t);e=Object(p.b)(i),r.appendChild(e),this.applyStyle("g2-crosshair-text",e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?Object(p.e)(t,{width:"1px",height:Object(a.l)(Math.abs(n.y-e.y))}):Object(p.e)(t,{height:"1px",width:Object(a.l)(Math.abs(n.x-e.x))}),Object(p.e)(t,{top:Object(a.l)(i),left:Object(a.l)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}Object(p.e)(t,{top:Object(a.l)(r.y),left:Object(a.l)(r.x)})}},e.prototype.updateInner=function(e){Object(o.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(d.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n(1),i=n(0),a=n(40),o={opacity:0},s={stroke:"#C5C5C5",strokeOpacity:.85},c={fill:"#CACED4",opacity:.85},u=n(48),l=n(69);function h(t){return function(t){return Object(i.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function f(t,e,n,r){void 0===r&&(r=!0);var a=new l.b({values:t}),o=new l.a({values:Object(i.map)(t,(function(t,e){return e}))}),s=Object(i.map)(t,(function(t,r){return[o.scale(r)*e,n-a.scale(t)*n]}));return r?function(t){if(t.length<=2)return h(t);var e=[];Object(i.each)(t,(function(t){Object(i.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(u.a)(e,!1),r=Object(i.head)(t),a=r[0],o=r[1];return n.unshift(["M",a,o]),n}(s):h(s)}function p(t,e,n,i){var a=Object(r.g)(t),o=function(t,e){var n=new l.b({values:t}),r=Math.max(0,n.min);return e-n.scale(r)*e}(i,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o,lineStyle:s,areaStyle:c})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,a=e.data,o=e.smooth,s=e.isArea,c=e.backgroundStyle,u=e.lineStyle,l=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.a)({x:0,y:0,width:n,height:i},c)});var h=f(a,n,i,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(r.a)({path:h},u)}),s){var d=p(h,n,i,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(r.a)({path:d},l)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a.a),g={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:g})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,a=i.fill,o=i.stroke,s=i.radius,c=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:c,cursor:u}});var l=1/3*n,h=2/3*n,f=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:l,y1:f,x2:l,y2:p,stroke:o,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:p,stroke:o,cursor:u}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(a.a),y={fill:"#416180",opacity:.05},m={fill:"#5B8FF9",opacity:.15,cursor:"move"},b={width:10,height:24},x={textBaseline:"middle",fill:"#000",opacity:.45},O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=Object(i.get)(r,"touches.0.pageX",r.pageX),e.prevY=Object(i.get)(r,"touches.0.pageY",r.pageY);var a=e.getContainerDOM();a.addEventListener("mousemove",e.onMouseMove),a.addEventListener("mouseup",e.onMouseUp),a.addEventListener("mouseleave",e.onMouseUp),a.addEventListener("touchmove",e.onMouseMove),a.addEventListener("touchend",e.onMouseUp),a.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var a=Object(i.get)(t,"touches.0.pageX",t.pageX),o=Object(i.get)(t,"touches.0.pageY",t.pageY),s=a-e.prevX,c=e.adjustOffsetRange(s/n);e.updateStartEnd(c),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=a,e.prevY=o,e.draw(),e.emit("sliderchange",[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(r.c)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),a=Object(i.clamp)(n,t,e),o=Object(i.clamp)(r,t,e);this.get("isInit")||n===a&&r===o||this.setValue([a,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Object(i.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(i.clamp)(t[0],e.min,e.max),end:Object(i.clamp)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:y,foregroundStyle:m,handlerStyle:b,textStyle:x}})},e.prototype.update=function(e){var n=e.start,a=e.end,o=Object(r.a)({},e);Object(i.isNil)(n)||(o.start=Object(i.clamp)(n,0,1)),Object(i.isNil)(a)||(o.end=Object(i.clamp)(a,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",Object(i.clamp)(this.get("start"),0,1)),this.set("end",Object(i.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),a=e.height,o=e.trendCfg,s=void 0===o?{}:o,c=e.minText,u=e.maxText,l=e.backgroundStyle,h=void 0===l?{}:l,f=e.foregroundStyle,p=void 0===f?{}:f,y=e.textStyle,m=void 0===y?{}:y,b=Object(i.deepMix)({},g,this.cfg.handlerStyle);Object(i.size)(Object(i.get)(s,"data"))&&(this.trend=this.addComponent(t,Object(r.a)({component:d,id:this.getElementId("trend"),x:0,y:0,width:n,height:a},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.a)({x:0,y:0,width:n,height:a},h)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(r.a)({y:a/2,textAlign:"right",text:c,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(r.a)({y:a/2,textAlign:"left",text:u,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(r.a)({y:0,height:a},p)});var x=Object(i.get)(b,"width",10),O=Object(i.get)(b,"height",24);this.minHandler=this.addComponent(t,{component:v,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(a-O)/2,width:x,height:O,cursor:"ew-resize",style:b}),this.maxHandler=this.addComponent(t,{component:v,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(a-O)/2,width:x,height:O,cursor:"ew-resize",style:b})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,a=r.start,o=r.end,s=r.width,c=r.minText,u=r.maxText,l=r.handlerStyle,h=r.height,f=a*s,p=o*s;this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",f),t.attr("width",p-f);var d=Object(i.get)(l,"width",10);e.attr("text",c),n.attr("text",u);var g=this._dodgeText([f,p],e,n),v=g[0],y=g[1];this.minHandler&&(this.minHandler.update({x:f-d/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(i.each)(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:p-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(i.each)(y,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"maxHandler":i=0-r,a=1-r;return Math.min(a,Math.max(i,t));case"foreground":i=0-n,a=1-r;return Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,a,o=this.cfg,s=o.handlerStyle,c=o.width,u=Object(i.get)(s,"width",10),l=t[0],h=t[1],f=!1;l>h&&(l=(r=[h,l])[0],h=r[1],e=(a=[n,e])[0],n=a[1],f=!0);var p=e.getBBox(),d=n.getBBox(),g=p.width>l-2?{x:l+u/2+2,textAlign:"left"}:{x:l-u/2-2,textAlign:"right"},v=d.width>c-h-2?{x:h-u/2-2,textAlign:"right"}:{x:h+u/2+2,textAlign:"left"};return f?[v,g]:[g,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(a.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return _}));var r=n(1),i=n(19),a=n(6),o=n(3),s=n(27),c=n(0),u=n(186),l={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function h(t,e){return function(t,e){var n=function(){var t=[256,256],e=d,n=v,r=g,i=y,a=m,o=j,s=Math.random,c=[],u=1/0,l=p,h=g,f=M,A={};function k(e,n,r){for(var i,a,c,u,l,h=n.x,f=n.y,p=Math.sqrt(t[0]*t[0]+t[1]*t[1]),d=o(t),g=s()<.5?1:-1,v=-g;(i=d(v+=g))&&(a=~~i[0],c=~~i[1],!(Math.min(Math.abs(a),Math.abs(c))>=p));)if(n.x=h+a,n.y=f+c,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&x(n,e,t[0])||r&&(l=r,!((u=n).x+u.x1>l[0].x&&u.x+u.x0l[0].y&&u.y+u.y0>5,b=t[0]>>5,O=n.x-(m<<4),j=127&O,w=32-j,M=n.y1-n.y0,C=void 0,S=(n.y+n.y0)*b+(O>>5),A=0;A>>j:0);S+=b}return delete n.sprite,!0}return!1}return A.start=function(){var o=t[0],p=t[1],d=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(f()),g=A.board?A.board:w((t[0]>>5)*t[1]),v=c.length,y=[],m=c.map((function(t,o,s){return t.text=l.call(this,t,o,s),t.font=e.call(this,t,o,s),t.style=h.call(this,t,o,s),t.weight=r.call(this,t,o,s),t.rotate=i.call(this,t,o,s),t.size=~~n.call(this,t,o,s),t.padding=a.call(this,t,o,s),t})).sort((function(t,e){return e.size-t.size})),x=-1,j=A.board?[{x:0,y:0},{x:o,y:p}]:null;return function(){var e=Date.now();for(;Date.now()-e>1,n.y=p*(s()+.5)>>1,b(d,n,m,x),n.hasText&&k(g,n,j)&&(y.push(n),j?A.hasImage||O(j,n):j=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}A._tags=y,A._bounds=j}(),A},A.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var a=r>>5,o=w((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var c=s.getImageData(0,0,r,i).data,u=0;u>5),f=u*r+l<<2,p=c[f]>=250&&c[f+1]>=250&&c[f+2]>=250?1<<31-l%32:0;o[h]|=p}A.board=o,A.hasImage=!0}},A.timeInterval=function(t){u=null==t?1/0:t},A.words=function(t){c=t},A.size=function(e){t=[+e[0],+e[1]]},A.font=function(t){e=C(t)},A.fontWeight=function(t){r=C(t)},A.rotate=function(t){i=C(t)},A.spiral=function(t){o=S[t]||t},A.fontSize=function(t){n=C(t)},A.padding=function(t){a=C(t)},A.random=function(t){s=C(t)},A}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(c.isNil)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r=n.start()._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var i=e.size,a=i[0],o=i[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:a,y:o,opacity:0}),r}(t,e=Object(c.assign)({},l,e))}var f=Math.PI/180;function p(t){return t.text}function d(){return"serif"}function g(){return"normal"}function v(t){return t.value}function y(){return 90*~~(2*Math.random())}function m(){return 1}function b(t,e,n,r){if(!e.sprite){var i=t.context,a=t.ratio;i.clearRect(0,0,2048/a,2048/a);var o=0,s=0,c=0,u=n.length;for(--r;++r>5<<5,h=~~Math.max(Math.abs(v+y),Math.abs(v-y))}else l=l+31>>5<<5;if(h>c&&(c=h),o+l>=2048&&(o=0,s+=c,c=0),s+h>=2048)break;i.translate((o+(l>>1))/a,(s+(h>>1))/a),e.rotate&&i.rotate(e.rotate*f),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=l,e.height=h,e.xoff=o,e.yoff=s,e.x1=l>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=l}for(var b=i.getImageData(0,0,2048/a,2048/a).data,x=[];--r>=0;)if((e=n[r]).hasText){for(var O=(l=e.width)>>5,j=(h=e.y1-e.y0,0);j>5),A=b[2048*(s+C)+(o+j)<<2]?1<<31-j%32:0;x[S]|=A,w|=A}w?M=C:(e.y0++,h--,C--,s++)}e.y1=e.y0+M,e.sprite=x.slice(0,(e.y1-e.y0)*O)}}}function x(t,e,n){n>>=5;for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),s=127&o,c=32-s,u=t.y1-t.y0,l=(t.y+t.y0)*n+(o>>5),h=0;h>>s:0))&e[l+f])return!0;l+=n}return!1}function O(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function j(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function w(t){for(var e=[],n=-1;++n1?this.drawBreadCrumb():this.hideCrumbGroup()}},e.prototype.reset=function(){this.historyCache=null,this.hideCrumbGroup()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(x.Action);Object(x.registerAction)("treemap-drill-down-action",w),Object(x.registerInteraction)("treemap-drill-down",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:pointer"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"element:click",isEnable:function(t){var e=Object(c.get)(t,["event","data","data"],{});return Object(c.isArray)(e.children)&&e.children.length>0&&1===e.depth},action:["treemap-drill-down-action:click"]},{trigger:"afterchangesize",action:["treemap-drill-down-action:resetPosition"]}]});n(309),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}Object(r.c)(e,t),e.prototype.changeData=function(t){var e=this.options,n=e.colorField,r=e.interactions,i=e.hierarchyConfig;this.updateOption({data:t});var a,o,s=d({data:t,colorField:n,enableDrillDown:f(r,"treemap-drill-down"),hierarchyConfig:i});this.chart.changeData(s),a=this.chart,(o=a.interactions["treemap-drill-down"])&&o.context.actions.find((function(t){return"treemap-drill-down-action"===t.name})).reset()},e.prototype.getSchemaAdaptor=function(){return b}}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return L}));var r=n(1),i=n(19),a=n(3),o=n(0),s=n(27),c=n(6);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(t,e,n,r){t=t.filter((function(t,r){var i=e(t,r),a=n(t,r);return null!=i&&isFinite(i)&&null!=a&&isFinite(a)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i,a,o,s=t.length,c=new Float64Array(s),u=new Float64Array(s),l=0,h=0,f=0;fi&&(t.splice(a+1,0,h),r=!0)}return r}}function g(t,e,n,r){var i=r-t*t,a=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-a*t,a]}function v(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var i=0,a=0,o=0,s=0,c=0,l=t?+t[0]:1/0,p=t?+t[1]:-1/0;h(r,e,n,(function(e,n){++i,a+=(e-a)/i,o+=(n-o)/i,s+=(e*n-s)/i,c+=(e*e-c)/i,t||(ep&&(p=e))}));var d=u(g(a,o,s,c),2),v=d[0],y=d[1],m=function(t){return y*t+v},b=[[l,m(l)],[p,m(p)]];return b.a=y,b.b=v,b.predict=m,b.rSquared=f(r,e,n,o,m),b}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r}function y(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1==0?(t[e-1]+t[e])/2:t[Math.floor(e)]}function m(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var r=t[e],i=n[0],a=n[1]+1;if(!(a>=t.length))for(;e>i&&t[a]-r<=r-t[i];)n[0]=++i,n[1]=a,++a}function x(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var i,a,o,s,c=u(l(r,e,n),4),p=c[0],g=c[1],v=c[2],y=c[3],m=p.length,b=0,x=0,O=0,j=0,w=0;for(i=0;iA&&(A=e))}));var k=O-b*b,E=b*k-x*x,T=(w*b-j*x)/E,F=(j*k-w*x)/E,B=-T*b,I=function(t){return T*(t-=v)*t+F*t+B+y},P=d(S,A,I);return P.a=T,P.b=F-2*T*v,P.c=B-F*v+T*v*v+y,P.predict=I,P.rSquared=f(r,e,n,M,I),P}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r}var O={exp:function(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var i=0,a=0,o=0,s=0,c=0,l=0,p=t?+t[0]:1/0,v=t?+t[1]:-1/0;h(r,e,n,(function(e,n){var r=Math.log(n),u=e*n;++i,a+=(n-a)/i,s+=(u-s)/i,l+=(e*u-l)/i,o+=(n*r-o)/i,c+=(u*r-c)/i,t||(ev&&(v=e))}));var y=u(g(s/a,o/a,c/a,l/a),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.exp(b*t)},O=d(p,v,x);return O.a=m,O.b=b,O.predict=x,O.rSquared=f(r,e,n,a,x),O}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},linear:v,loess:function(){var t=function(t){return t[0]},e=function(t){return t[1]},n=.3;function r(r){for(var i=u(l(r,t,e,!0),4),a=i[0],o=i[1],s=i[2],c=i[3],h=a.length,f=Math.max(2,~~(n*h)),p=new Float64Array(h),d=new Float64Array(h),v=new Float64Array(h).fill(1),x=-1;++x<=2;){for(var O=[0,f-1],j=0;ja[C]-w?M:C,A=0,k=0,E=0,T=0,F=0,B=1/Math.abs(a[S]-w||1),I=M;I<=C;++I){var P=a[I],L=o[I],D=m(Math.abs(w-P)*B)*v[I],R=P*D;A+=D,k+=R,E+=L*D,T+=L*R,F+=P*R}var _=u(g(k/A,E/A,T/A,F/A),2),N=_[0],z=_[1];p[j]=N+z*w,d[j]=Math.abs(o[j]-p[j]),b(a,j+1,O)}if(2===x)break;var Y=y(d);if(Math.abs(Y)<1e-12)break;for(var G,X,V=0;V=1?1e-12:(X=1-G*G)*X}return function(t,e,n,r){for(var i,a=t.length,o=[],s=0,c=0,u=[];sv&&(v=e))}));var m=u(g(o,s,c,l),2),b=m[0],x=m[1],O=function(t){return x*Math.log(t)/y+b},j=d(p,v,O);return j.a=x,j.b=b,j.predict=O,j.rSquared=f(i,e,n,s,O),j}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(e=t,i):e},i.y=function(t){return arguments.length?(n=t,i):n},i.base=function(t){return arguments.length?(r=t,i):r},i},poly:function(){var t,e=function(t){return t[0]},n=function(t){return t[1]},r=3;function i(i){if(1===r){var a=v().x(e).y(n).domain(t)(i);return a.coefficients=[a.b,a.a],delete a.a,delete a.b,a}if(2===r){var o=x().x(e).y(n).domain(t)(i);return o.coefficients=[o.c,o.b,o.a],delete o.a,delete o.b,delete o.c,o}var s,c,p,g,y,m=u(l(i,e,n),4),b=m[0],O=m[1],j=m[2],w=m[3],M=b.length,C=[],S=[],A=r+1,k=0,E=0,T=t?+t[0]:1/0,F=t?+t[1]:-1/0;for(h(i,e,n,(function(e,n){++E,k+=(n-k)/E,t||(eF&&(F=e))})),s=0;sMath.abs(t[e][i])&&(i=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=o-1;n>=0;--n){for(a=0,r=n+1;r=0;--i)for(o=e[i],s=1,c[i]+=o,a=1;a<=i;++a)s*=(i+1-a)/a,c[i-a]+=o*Math.pow(n,a)*s;return c[0]+=r,c}(A,B,-j,w),P.predict=I,P.rSquared=f(i,e,n,k,I),P}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(e=t,i):e},i.y=function(t){return arguments.length?(n=t,i):n},i.order=function(t){return arguments.length?(r=t,i):r},i},pow:function(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var i=0,a=0,o=0,s=0,c=0,l=0,p=t?+t[0]:1/0,v=t?+t[1]:-1/0;h(r,e,n,(function(e,n){var r=Math.log(e),u=Math.log(n);++i,a+=(r-a)/i,o+=(u-o)/i,s+=(r*u-s)/i,c+=(r*r-c)/i,l+=(n-l)/i,t||(ev&&(v=e))}));var y=u(g(a,o,s,c),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.pow(t,b)},O=d(p,v,x);return O.a=m,O.b=b,O.predict=x,O.rSquared=f(r,e,n,l,x),O}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},quad:x};var j=function(t){var e,n=t.options,r=n.xField,i=n.yField,s=n.data,c=n.regressionLine,u=c.type,l=void 0===u?"linear":u,h=c.algorithm;h?e=Object(o.isArray)(h)?h:h(s):e=O[l]().x((function(t){return t[r]})).y((function(t){return t[i]}))(s);return function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,s=n.getScaleByField(i),c=n.getScaleByField(o),u=t.map((function(t){return n.getCoordinate().convert({x:s.scale(t[0]),y:c.scale(t[1])})}));return Object(a.j)(u,!1)}(e,t)},w=function(t){var e,n=t.meta,i=void 0===n?{}:n,a=t.xField,s=t.yField,c=t.data,u=c[0][a],l=c[0][s],h=u>0,f=l>0,p=function(t,e,n){var r=Object(o.get)(i,[t,e]);return Object(o.isNumber)(r)?r:"x"===n?{min:h?0:2*u,max:h?2*u:0}[e]:{min:f?0:2*l,max:f?2*l:0}[e]};return Object(r.a)(Object(r.a)({},i),((e={})[a]=Object(r.a)(Object(r.a)({},i[a]),{min:p(a,"min","x"),max:p(a,"max","x")}),e[s]=Object(r.a)(Object(r.a)({},i[s]),{min:p(s,"min","y"),max:p(s,"max","y")}),e))};function M(t){var e=t.data;return 1===(void 0===e?[]:e).length?Object(a.b)({},t,{meta:w(t)}):t}function C(t){var e=t.chart,n=t.options,i=n.data,c=n.type,u=n.color,l=n.shape,h=n.pointStyle,f=n.shapeField,p=n.colorField,d=n.xField,g=n.yField,v=n.sizeField,y=n.size,m=n.tooltip;v&&(y||(y=[2,8]),Object(o.isNumber)(y)&&(y=[y,y])),m&&!m.fields&&(m=Object(r.a)(Object(r.a)({},m),{fields:[d,g,p,v,f]})),e.data(i),Object(s.e)(Object(a.b)({},t,{options:{seriesField:p,point:{color:u,shape:l,size:y,style:h},tooltip:m}}));var b=Object(a.c)(e,"point");return c&&b.adjust(c),t}function S(t){var e,n=t.options,r=n.data,i=n.xAxis,o=n.yAxis,s=n.xField,u=n.yField,l=n;return 1===r.length&&(l=M(Object(a.b)({},n,{meta:w(n)}))),Object(a.e)(Object(c.f)(((e={})[s]=i,e[u]=o,e)))(Object(a.b)({},t,{options:l}))}function A(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return e.axis(a,r),e.axis(o,i),t}function k(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,a=n.shapeField,o=n.sizeField,s=n.shapeLegend,c=n.sizeLegend,u=!1!==r;return i&&e.legend(i,!!u&&r),a&&(s?e.legend(a,s):e.legend(a,!1!==s&&r)),o&&e.legend(o,c||!1),u||s||c||e.legend(!1),t}function E(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=Object(a.c)(e,"point");if(i){var c=i.callback,u=Object(r.e)(i,["callback"]);s.label({fields:[o],callback:c,cfg:Object(a.u)(u)})}else s.label(!1);return t}function T(t){var e=t.options.quadrant,n=[];if(e){var i=e.xBaseline,o=void 0===i?0:i,s=e.yBaseline,u=void 0===s?0:s,l=e.labels,h=e.regionStyle,f=e.lineStyle,p=function(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}(o,u);new Array(4).join(",").split(",").forEach((function(t,e){n.push(Object(r.a)(Object(r.a)({type:"region",top:!1},p.regionStyle[e].position),{style:Object(a.b)({},p.regionStyle[e].style,null==h?void 0:h[e])}),Object(r.a)({type:"text",top:!0},Object(a.b)({},p.labelStyle[e],null==l?void 0:l[e])))})),n.push({type:"line",top:!1,start:["min",u],end:["max",u],style:Object(a.b)({},p.lineStyle,f)},{type:"line",top:!1,start:[o,"min"],end:[o,"max"],style:Object(a.b)({},p.lineStyle,f)})}return Object(a.e)(Object(c.b)(n))(t)}function F(t){var e=t.options,n=t.chart,i=e.regressionLine;if(i){var a=i.style,o=i.top,s=void 0!==o&&o,c={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:s,render:function(t,i){var o=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),s=j({view:i,options:e});o.addShape("path",{name:"regression-line",attrs:Object(r.a)(Object(r.a)({path:s},c),a)})}})}return t}function B(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(n):!1===n&&e.tooltip(!1),t}function I(t){return Object(a.e)(C,S,A,k,B,E,c.c,T,c.a,c.j,F)(t)}var P=Object(a.b)({},i.b.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}}),L=(n(309),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return P},e.prototype.changeData=function(t){this.updateOption(M(Object(a.b)({},this.options,{data:t})));var e=this.options;S({chart:this.chart,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return I},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.b))},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(1),i=n(19),a=n(0),o=n(3),s=n(6);function c(t){var e,n=t.chart,r=t.options,i=r.data,a=r.type,o=r.xField,s=r.yField,c=r.colorField,u=r.sizeField,l=r.sizeRatio,h=r.shape,f=r.color;n.data(i),e="density"===a?n.heatmap().position(o+"*"+s):n.polygon().position(o+"*"+s),c&&e.color(c,f||n.getTheme().sequenceColors.join("-"));var p=1;if((l||0===l)&&(h||u?l<0||l>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):p=l:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),h&&(u||e.shape("",(function(){return[h,1,p]})),u)){var d=i.map((function(t){return t[u]})),g=Math.min.apply(Math,d),v=Math.max.apply(Math,d);e.shape(u,(function(t){return[h,(t-g)/(v-g),p]}))}return t}function u(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,c=n.yField;return Object(o.e)(Object(s.f)(((e={})[a]=r,e[c]=i,e)))(t)}function l(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function h(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return r?e.legend(i,r):e.legend(!1),t}function f(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.colorField,s=n.sizeField,c=n.heatmapStyle,u=e.geometries[0];return c&&u&&(Object(a.isFunction)(c)?u.style(r+"*"+i+"*"+o+"*"+s,c):Object(a.isObject)(c)&&u.style(c)),t}function p(t){var e=t.chart,n=t.options,i=n.label,a=n.colorField,s=n.type,c=Object(o.c)(e,"density"===s?"heatmap":"polygon");if(i){if(a){var u=i.callback,l=Object(r.e)(i,["callback"]);c.label({fields:[a],callback:u,cfg:Object(o.u)(l)})}}else c.label(!1);return t}function d(t){var e=t.chart,n=t.options,r=n.coordinate,i=n.reflect;return r&&e.coordinate({type:r.type||"rect",cfg:r.cfg}),i&&e.coordinate().reflect(i),t}function g(t){return Object(o.e)(s.j,c,u,l,h,s.k,f,p,Object(s.b)(),s.c,s.a,s.i,d)(t)}var v=Object(o.b)({},i.b.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}}),y=n(13);Object(y.registerShape)("polygon","circle",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),l=Math.min(c,u)/2,h=Number(t.shape[1]),f=Number(t.shape[2]),p=l*Math.sqrt(f)*Math.sqrt(h),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:Object(r.a)(Object(r.a)(Object(r.a)({x:a,y:o,r:p},t.defaultStyle),t.style),{fill:d})})}}),Object(y.registerShape)("polygon","square",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),l=Math.min(c,u),h=Number(t.shape[1]),f=Number(t.shape[2]),p=l*Math.sqrt(f)*Math.sqrt(h),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:Object(r.a)(Object(r.a)(Object(r.a)({x:a-p/2,y:o-p/2,width:p,height:p},t.defaultStyle),t.style),{fill:d})})}});var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return v},e.prototype.getSchemaAdaptor=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return M}));var r=n(1),i=n(13),a=n(19),o=n(0),s=n(6),c=n(3),u=n(27);function l(t){return[{percent:t,type:"liquid"}]}function h(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,a=n.radius,o=n.outline,s=n.wave,h=n.shape;e.scale({percent:{min:0,max:1}}),e.data(l(r));var f=n.color||e.getTheme().defaultColor,p=Object(c.b)({},t,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:f,style:i,shape:"liquid-fill-gauge"}}}),d=Object(u.c)(p).ext.geometry,g={radius:a,outline:o,wave:s,shape:h,background:e.getTheme().background};return d.customInfo(g),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function f(t,e){var n=t.chart,r=t.options,i=r.statistic,a=r.percent,s=r.meta;if(n.getController("annotation").clear(!0),i.content&&!i.content.formatter){var u=Object(o.get)(s,["percent","formatter"]);i.content.formatter=function(t){var e=t.percent;return u?u(e):(100*e).toFixed(2)+"%"}}return Object(c.s)(n,{statistic:i,plotType:"liquid"},{percent:a}),e&&n.render(!0),t}function p(t){return Object(c.e)(s.j,h,f,Object(s.f)({}),s.a,s.c)(t)}var d={radius:.9,statistic:{title:!1,content:{formatter:function(t){return(100*t.percent).toFixed(2)+"%"},style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},g=n(185);function v(t,e,n){return t+(e-t)*n}function y(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function m(t,e,n,r,i,a,o){for(var s=4*Math.ceil(2*t/n*4),c=[],u=r;u<2*-Math.PI;)u+=2*Math.PI;for(;u>0;)u-=2*Math.PI;var l=a-t+(u=u/Math.PI/2*n)-2*t;c.push(["M",l,e]);for(var h=0,f=0;f\n \n \n '+i+':\n '+a+"\n \n "})),u.innerHTML=l,u}function v(t){var e=t.chart,n=t.options,i=n.color,o=n.colorField,c=n.sunburstStyle,u=function(t){var e=t.data,n=t.type,i=t.seriesField,a=t.colorField,o=t.hierarchyConfig,s={partition:p,treemap:d.a}[n](e,Object(r.a)(Object(r.a)({},o),{type:"hierarchy."+n,field:i,as:["x","y"]})),c=[];return s.forEach((function(t){var e,n,s,u,l;if(0===t.depth)return null;var h=Object(r.a)(((e={})[i]=t.data[i]||(null===(s=null===(n=t.parent)||void 0===n?void 0:n.data)||void 0===s?void 0:s[i]),e[a]=t.data[a]||(null===(l=null===(u=t.parent)||void 0===u?void 0:u.data)||void 0===l?void 0:l[a]),e),t);h.ext=o,c.push(h)})),c}(n);return e.data(u),Object(a.f)(Object(s.b)({},t,{options:{xField:"x",yField:"y",seriesField:o,polygon:{color:i,style:c}}})),t}function y(t){return t.chart.axis(!1),t}function m(t){return t.chart.legend(!1),t}function b(t){var e=t.chart,n=t.options,i=n.label,a=n.seriesField,o=Object(s.c)(e,"polygon");if(i){var c=i.callback,u=Object(r.e)(i,["callback"]);o.label({fields:[a],callback:c,cfg:Object(s.u)(u)})}else o.label(!1);return t}function x(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,a=n.reflect,o=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return a&&o.reflect(a),t}function O(t){var e=t.chart,n=t.options.meta;return n&&e.scale(n),t}function j(t){var e=t.chart,n=t.options,i=n.tooltip,a=n.seriesField,o=n.colorField;return i&&e.tooltip(Object(r.a)(Object(r.a)({},i),{customContent:i&&i.customContent?i.customContent:function(t,e){return g({value:t,items:e,formatter:i&&(null==i?void 0:i.formatter),fields:i&&i.fields||[a,o]})}})),t}function w(t){return Object(s.e)(v,o.j,y,O,m,x,j,b,o.c,o.a,Object(o.b)())(t)}var M=Object(s.b)({},i.b.getDefaultOptions(),{type:"partition",innerRadius:0,seriesField:"value",tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1}}),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return M},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return w},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n(1),i=n(19),a=n(0),o=n(6),s=n(27),c=n(3),u="$$yField$$",l={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{label:"总计",style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function h(t,e,n,i){return function(t,e,n,i,o){var s,u=[];if(Object(a.reduce)(t,(function(t,e){var o;Object(c.o)(c.a.WARN,Object(a.isNumber)(e[n]),e[n]+" is not a valid number");var s=Object(a.isUndefined)(e[n])?null:e[n];return u.push(Object(r.a)(Object(r.a)({},e),((o={})[i]=[t,t+s],o))),t+s}),0),u.length&&o){var l=Object(a.get)(u,[[t.length-1],i,[1]]);u.push(((s={})[e]=o.label,s[n]=l,s[i]=[0,l],s))}return u}(t,e,n,u,i).map((function(e,n){var i;return Object(a.isObject)(e)?Object(r.a)(Object(r.a)({},e),((i={}).$$absoluteField$$=e[u][1],i.$$diffField$$=e[u][1]-e[u][0],i.$$isTotal$$=n===t.length,i)):e}))}var f=n(13);function p(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,l=n.total,f=n.leaderLine,p=n.columnWidthRatio,d=n.waterfallStyle,g=n.risingFill,v=n.fallingFill,y=n.color;e.data(h(r,i,o,l));var m=y||function(t){return Object(a.get)(t,["$$isTotal$$"])?Object(a.get)(l,["style","fill"],""):Object(a.get)(t,[u,1])-Object(a.get)(t,[u,0])>0?g:v},b=Object(c.b)({},t,{options:{xField:i,yField:u,seriesField:i,rawFields:[o,"$$diffField$$","$$isTotal$$",u],widthRatio:p,interval:{style:d,shape:"waterfall",color:m}}});return Object(s.c)(b).ext.geometry.customInfo({leaderLine:f}),t}function d(t){var e,n,r=t.options,i=r.xAxis,s=r.yAxis,l=r.xField,h=r.yField,f=r.meta,p=Object(c.b)({},{alias:h},Object(a.get)(f,h));return Object(c.e)(Object(o.f)(((e={})[l]=i,e[h]=s,e[u]=s,e),Object(c.b)({},f,((n={})[u]=p,n.$$diffField$$=p,n.$$absoluteField$$=p,n))))(t)}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?(e.axis(o,!1),e.axis(u,!1)):(e.axis(o,i),e.axis(u,i)),t}function v(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,o=n.risingFill,s=n.fallingFill;if(!1===r)e.legend(!1);else{var u=[{name:"增加",value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:"减少",value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];i&&u.push({name:i.label||"",value:"total",marker:{symbol:"square",style:Object(c.b)({},{r:5},Object(a.get)(i,"style"))}}),e.legend(Object(c.b)({},{custom:!0,position:"top",items:u},r)),e.removeInteraction("legend-filter")}return t}function y(t){var e=t.chart,n=t.options,i=n.label,a=n.labelMode,o=n.xField,s=Object(c.c)(e,"interval");if(i){var u=i.callback,l=Object(r.e)(i,["callback"]);s.label({fields:"absolute"===a?["$$absoluteField$$",o]:["$$diffField$$",o],callback:u,cfg:Object(c.u)(l)})}else s.label(!1);return t}function m(t){var e=t.chart,n=t.options,i=n.tooltip,a=n.xField,o=n.yField;if(!1!==i){e.tooltip(Object(r.a)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i));var s=e.geometries[0];(null==i?void 0:i.formatter)?s.tooltip(a+"*"+o,i.formatter):s.tooltip(o)}else e.tooltip(!1);return t}function b(t){return Object(c.e)(p,d,g,v,m,y,o.i,o.j,o.c,o.a,Object(o.b)())(t)}Object(f.registerShape)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,o=t.nextPoints,s=e.addGroup(),u=this.parsePath(function(t){for(var e=[],n=0;n0){var s=this.view.geometries[0],c=s.dataArray,u=o[0].name,l=[];return c.forEach((function(t){t.forEach((function(t){var e=d.Util.getTooltipItems(t,s)[0];if(!i&&e&&e.name===u){var n=Object(g.isNil)(a)?u:a;l.push(Object(r.a)(Object(r.a)({},e),{name:e.title,title:n}))}else if(i&&e){n=Object(g.isNil)(a)?e.name||u:a;l.push(Object(r.a)(Object(r.a)({},e),{name:e.title,title:n}))}}))})),l}return[]},e}(d.TooltipController);Object(d.registerComponentController)("radar-tooltip",v);var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(d.Action);Object(d.registerAction)("radar-tooltip",y),Object(d.registerInteraction)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return Object(r.c)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(a.b)({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return p},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(1),i=n(19),a=n(0);function o(t,e){var n=Math.floor(t/e);return[e*n,e*(n+1)]}function s(t,e,n,r,i){var s=Object(a.clone)(t);Object(a.sortBy)(s,e);var c=Object(a.valuesOfKey)(s,e),u=Object(a.getRange)(c),l=u.max-u.min,h=n;if(!n&&r&&(h=l/r),!n&&!r){var f=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(c);h=l/f}var p={},d=Object(a.groupBy)(s,i);Object(a.isEmpty)(d)?Object(a.each)(s,(function(t){var n=o(t[e],h),r=n[0]+"-"+n[1];Object(a.hasKey)(p,r)||(p[r]={range:n,count:0}),p[r].count+=1})):Object.keys(d).forEach((function(t){Object(a.each)(d[t],(function(n){var r=o(n[e],h),s=r[0]+"-"+r[1]+"-"+t;Object(a.hasKey)(p,s)||(p[s]={range:r,count:0},p[s][i]=t),p[s].count+=1}))}));var g=[];return Object(a.each)(p,(function(t){g.push(t)})),g}var c=n(6),u=n(3),l=n(27);function h(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,a=n.binNumber,o=n.binWidth,c=n.color,h=n.stackField,f=n.legend,p=n.columnStyle,d=s(r,i,o,a,h);e.data(d);var g=Object(u.b)({},t,{options:{xField:"range",yField:"count",seriesField:h,isStack:!0,interval:{color:c,style:p}}});return Object(l.c)(g),f&&h&&e.legend(h,f),t}function f(t){var e=t.options,n=e.xAxis,r=e.yAxis;return Object(u.e)(Object(c.f)({range:n,count:r}))(t)}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis("range",!1):e.axis("range",r),!1===i?e.axis("count",!1):e.axis("count",i),t}function d(t){var e=t.chart,n=t.options.label,i=Object(u.c)(e,"interval");if(n){var a=n.callback,o=Object(r.e)(n,["callback"]);i.label({fields:["count"],callback:a,cfg:Object(u.u)(o)})}else i.label(!1);return t}function g(t){return Object(u.e)(h,f,p,c.j,c.i,d,c.k,c.c,c.a)(t)}var v=Object(u.b)({},i.b.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return v},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,a=e.stackField;this.chart.changeData(s(t,n,i,r,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return g},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r,i=n(1),a=n(19),o=n(0),s=n(6),c=n(3),u=n(92),l=Object(c.b)({},a.b.getDefaultOptions(),{meta:(r={},r.$$range$$={min:0,alias:"low-q1-median-q3-high"},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,showCrosshairs:!0,shared:!0}}),h=function(t,e){var n=t;if(Array.isArray(e)){var r=e[0],i=e[1],a=e[2],s=e[3],c=e[4];n=Object(o.map)(t,(function(t){return t.$$range$$=[t[r],t[i],t[a],t[s],t[c]],t}))}return n};function f(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,a=n.groupField,o=n.color,s=Array.isArray(i)?"$$range$$":i,c=e.schema().position(r+"*"+s).shape("box");return a&&c.color(a,o).adjust("dodge"),e.data(h(n.data,i)),t}function p(t){var e=t.chart,n=t.options,r=n.xField,i=n.data,a=n.outliersField,s=n.outliersStyle,c=n.padding;if(!a)return t;var u=e.createView({padding:c,id:"outliers_view"});u.data(i),u.axis(!1);var l=u.point().position(r+"*"+a).shape("circle");return Object(o.isFunction)(s)?l.style(r+"*"+a,(function(t,e){var n;return s(((n={})[r]=t,n[a]=e,n))})):Object(o.isObject)(s)&&l.style(s),t}function d(t){var e,n,r=t.chart,i=t.options,a=i.meta,o=i.xAxis,s=i.yAxis,l=i.xField,h=i.yField,f=i.outliersField,p=Array.isArray(h)?"$$range$$":h,d={};if(f){(e={})[f]={sync:"$$y_outliers$$",nice:!0},e[p]={sync:"$$y_outliers$$",nice:!0},d=e}var g=Object(c.b)(d,a,((n={})[l]=Object(c.p)(o,u.a),n[p]=Object(c.p)(s,u.a),n));return r.scale(g),t}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField,s=Array.isArray(o)?"$$range$$":o;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis("$$range$$",!1):e.axis(s,i),t}function v(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function y(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,a=n.boxStyle,s=Object(c.c)(e,"schema"),u=Array.isArray(i)?"$$range$$":i;return Object(o.isFunction)(a)?s.style(r+"*"+u,(function(t,e){var n;return a(((n={})[r]=t,n[u]=e,n))})):Object(o.isObject)(a)&&s.style(a),t}function m(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t}function b(t){return Object(c.e)(f,p,d,g,y,v,m,s.c,s.a,s.j)(t)}var x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}return Object(i.c)(e,t),e.getDefaultOptions=function(){return l},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return"outliers_view"===t.id}));n&&n.data(t),this.chart.changeData(h(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return b},e}(a.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(1),i=n(19),a=n(0),o=n(6),s=n(3),c=n(92),u="$$stock-range$$",l=["#ef5350","#26a69a"],h=Object(s.b)({},i.b.getDefaultOptions(),{tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0},itemTpl:'
  • {name}{value}
  • '},interactions:[{type:"tooltip"}],legend:{position:"top-left"}});function f(t,e){return Object(a.map)(t,(function(t){if(Object(a.isArray)(e)){var n=e[0],r=e[1],i=e[2],o=e[3];t.trend=t[n]<=t[r]?"up":"down",t[u]=[t[n],t[r],t[i],t[o]]}return t}))}function p(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,a=n.data;return e.data(f(a,i)),e.schema().position(r+"*"+u).shape("candle").color("trend",l),t}function d(t){var e,n,r=t.chart,i=t.options,a=i.meta,o=i.xAxis,l=i.yAxis,h=i.xField,f=((e={})[h]={type:"timeCat",tickCount:6},e.trend={values:["up","down"]},e),p=Object(s.b)(f,a,((n={})[h]=Object(s.p)(o,c.a),n[u]=Object(s.p)(l,c.a),n));return r.scale(p),t}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(u,!1):e.axis(u,i),t}function v(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.meta,c=void 0===o?{}:o,u=n.tooltip,l=void 0===u?{}:u,h=Object(s.c)(e,"schema"),f=i[0],p=i[1],d=i[2],g=i[3],v=c[f]&&c[f].alias||f,y=c[p]?c[p].alias||f:p,m=c[d]&&c[d].alias||d,b=c[g]&&c[g].alias||g,x={fields:[r,f,p,d,g],callback:function(t,e,n,r,i){return{name:t,value:'\n
    '+v+":"+e+'\n
    '+y+":"+n+'\n
    '+m+":"+r+'\n
    '+b+":"+i+"\n "}}},O={crosshairs:{text:function(t,e,n){var i={position:"end"};if("x"===t){var a=n[0];i.content=a?a.data[r]:e}else i.content=e;return i}}};if(l){if(Object(a.isObject)(l)){var j=Object(s.b)({},O,l);e.tooltip(j),h.tooltip(x)}}else e.tooltip(!1);return t}function y(t){var e=t.chart,n=t.options.legend;return n?e.legend("trend",n):!1===n&&e.legend(!1),t}function m(t){Object(s.e)(p,d,o.j,g,v,y,o.c,o.a)(t)}var b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return h},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return m},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(f(t,e))},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(1),i=n(19),a=n(0),o=n(6),s=n(3),c=n(27);function u(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,a=t.targetField,o=t.layout,s=[],c=[];e.forEach((function(t,e){var o;t[i].sort((function(t,e){return t-e})),t[i].forEach((function(r,a){var o,c=0===a?r:t[i][a]-t[i][a-1];s.push(((o={rKey:i+"_"+a})[n]=n?t[n]:String(e),o[i]=c,o))})),t[r].forEach((function(i,a){var o;s.push(((o={mKey:t[r].length>1?r+"_"+a:""+r})[n]=n?t[n]:String(e),o[r]=i,o))})),s.push(((o={tKey:""+a})[n]=n?t[n]:String(e),o[a]=t[a],o)),c.push(t[i],t[r],t[a])}));var u=Math.min.apply(Math,c.flat(1/0)),l=Math.max.apply(Math,c.flat(1/0));return u=u>0?0:u,"vertical"===o&&s.reverse(),{min:u,max:l,ds:s}}function l(t){var e=t.chart,n=t.options,i=n.bulletStyle,o=n.targetField,l=n.rangeField,h=n.measureField,f=n.xField,p=n.color,d=n.layout,g=n.size,v=n.label,y=u(n),m=y.min,b=y.max,x=y.ds;e.data(x);var O=Object(s.b)({},t,{options:{xField:f,yField:l,seriesField:"rKey",isStack:!0,label:Object(a.get)(v,"range"),interval:{color:Object(a.get)(p,"range"),style:Object(a.get)(i,"range"),size:Object(a.get)(g,"range")}}});Object(c.c)(O),e.geometries[0].tooltip(!1);var j=Object(s.b)({},t,{options:{xField:f,yField:h,seriesField:"mKey",isStack:!0,label:Object(a.get)(v,"measure"),interval:{color:Object(a.get)(p,"measure"),style:Object(a.get)(i,"measure"),size:Object(a.get)(g,"measure")}}});Object(c.c)(j);var w=Object(s.b)({},t,{options:{xField:f,yField:o,seriesField:"tKey",label:Object(a.get)(v,"target"),point:{color:Object(a.get)(p,"target"),style:Object(a.get)(i,"target"),size:Object(a.isFunction)(Object(a.get)(g,"target"))?function(t){return Object(a.get)(g,"target")(t)/2}:Object(a.get)(g,"target")/2,shape:"horizontal"===d?"line":"hyphen"}}});return Object(c.e)(w),"horizontal"===d&&e.coordinate().transpose(),Object(r.a)(Object(r.a)({},t),{ext:{data:{min:m,max:b}}})}function h(t){var e,n,r=t.options,i=t.ext,a=r.xAxis,c=r.yAxis,u=r.targetField,l=r.rangeField,h=r.measureField,f=r.xField,p=i.data;return Object(s.e)(Object(o.f)(((e={})[f]=a,e[h]=c,e),((n={})[h]={min:null==p?void 0:p.min,max:null==p?void 0:p.max},n[u]={sync:""+h},n[l]={sync:""+h},n)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.measureField,s=n.rangeField,c=n.targetField;return e.axis(""+s,!1),e.axis(""+c,!1),!1===r?e.axis(""+a,!1):e.axis(""+a,r),!1===i?e.axis(""+o,!1):e.axis(""+o,i),t}function p(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function d(t){var e=t.chart,n=t.options,i=n.label,o=n.measureField,c=n.targetField,u=n.rangeField,l=e.geometries,h=l[0],f=l[1],p=l[2];return Object(a.get)(i,"range")?h.label(""+u,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(s.u)(i.range))):h.label(!1),Object(a.get)(i,"measure")?f.label(""+o,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(s.u)(i.measure))):f.label(!1),Object(a.get)(i,"target")?p.label(""+c,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(s.u)(i.target))):p.label(!1),t}function g(t){Object(s.e)(l,h,f,p,o.j,d,o.k,o.c,o.a)(t)}var v=Object(s.b)({},i.b.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return v},e.prototype.changeData=function(t){this.updateOption({data:t});var e=u(this.options),n=e.min,r=e.max,i=e.ds;h({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(1),i=n(19),a=n(6),o=n(3),s=n(27);function c(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,a=Math.abs(t)%360;return a?360*i/a:i}function u(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,a=n.tooltip,c=n.colorField,u=n.type,l=n.xField,h=n.yField,f=n.data,p=Object(o.q)(f,h);e.data(p);var d=Object(o.b)({},t,{options:{tooltip:a,seriesField:c,interval:{style:r,color:i,shape:"line"===u?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(s.c)(d),"line"===u&&Object(s.e)({chart:e,options:{xField:l,yField:h,seriesField:c,point:{shape:"circle",color:i}}}),t}function l(t){var e,n=t.options,r=n.yField,i=n.maxAngle,s=n.data,u=Object(o.q)(s,r);return Object(o.e)(Object(a.f)(((e={})[r]={min:0,max:c(i,r,u)},e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}).transpose(),t}function f(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function p(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.c)(e,"interval");if(i){var c=i.callback,u=Object(r.e)(i,["callback"]);s.label({fields:[a],callback:c,cfg:Object(r.a)(Object(r.a)({},Object(o.u)(u)),{type:"polar"})})}else s.label(!1);return t}function d(t){return Object(o.e)(u,l,f,h,a.c,a.a,a.j,a.k,a.d,Object(a.b)(),p)(t)}var g=Object(o.b)({},i.b.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return g},e.prototype.changeData=function(t){this.updateOption({data:t}),l({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return d},e}(i.b)},function(t,e,n){"use strict";n.d(e,"a",(function(){return j}));var r=n(1),i=n(13),a=n(19),o=n(3),s=n(0),c=n(6),u=n(27);function l(t,e,n,r,i){var a=[];e.forEach((function(e){r.forEach((function(r){var i,o=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);a.push(o)}))}));var o=Object.values(Object(s.groupBy)(a,n)),c=o[0],u=void 0===c?[]:c,l=o[1],h=void 0===l?[]:l;return i?[u.reverse(),h.reverse()]:[u,h]}function h(t){return"vertical"!==t}function f(t,e,n){var r=e[0],i=e[1],a=r.autoPadding,o=i.autoPadding,s=t.__axisPosition,c=s.layout,u=s.position;if(h(c)&&"top"===u&&(r.autoPadding=n.instance(a.top,0,a.bottom,a.left),i.autoPadding=n.instance(o.top,a.left,o.bottom,0)),h(c)&&"bottom"===u&&(r.autoPadding=n.instance(a.top,a.right/2+5,a.bottom,a.left),i.autoPadding=n.instance(o.top,o.right,o.bottom,a.right/2+5)),!h(c)&&"bottom"===u){var l=a.left>=o.left?a.left:o.left;r.autoPadding=n.instance(a.top,a.right,a.bottom/2+5,l),i.autoPadding=n.instance(a.bottom/2+5,o.right,o.bottom,l)}if(!h(c)&&"top"===u){l=a.left>=o.left?a.left:o.left;r.autoPadding=n.instance(a.top,a.right,0,l),i.autoPadding=n.instance(0,o.right,a.top,l)}}function p(t){var e,n,r=t.chart,i=t.options,a=i.data,s=i.xField,c=i.yField,f=i.color,p=i.barStyle,d=i.widthRatio,g=i.legend,v=i.layout,y=l(s,c,"series-field-key",a,h(v));g?r.legend("series-field-key",g):!1===g&&r.legend(!1);var m=y[0],b=y[1];h(v)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:"first-axes-view"})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().transpose(),e.data(m),n.data(b)):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:"first-axes-view"}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().reflect("y").rotate(0*Math.PI),e.data(m),n.data(b));var x=Object(o.b)({},t,{chart:e,options:{widthRatio:d,xField:s,yField:c[0],seriesField:"series-field-key",interval:{color:f,style:p}}});Object(u.c)(x);var O=Object(o.b)({},t,{chart:n,options:{xField:s,yField:c[1],seriesField:"series-field-key",widthRatio:d,interval:{color:f,style:p}}});return Object(u.c)(O),t}function d(t){var e,n,r,i=t.options,a=t.chart,u=i.xAxis,l=i.yAxis,h=i.xField,f=i.yField,p=Object(o.d)(a,"first-axes-view"),d=Object(o.d)(a,"second-axes-view"),g={};return Object(s.keys)((null==i?void 0:i.meta)||{}).map((function(t){Object(s.get)(null==i?void 0:i.meta,[t,"alias"])&&(g[t]=i.meta[t].alias)})),a.scale(((e={})["series-field-key"]={sync:!0,formatter:function(t){return Object(s.get)(g,t,t)}},e)),Object(c.f)(((n={})[h]=u,n[f[0]]=l[f[0]],n))(Object(o.b)({},t,{chart:p})),Object(c.f)(((r={})[h]=u,r[f[1]]=l[f[1]],r))(Object(o.b)({},t,{chart:d})),t}function g(t){var e=t.chart,n=t.options,i=n.xAxis,a=n.yAxis,s=n.xField,c=n.yField,u=n.layout,l=Object(o.d)(e,"first-axes-view"),f=Object(o.d)(e,"second-axes-view");return f.axis(s,!1),!1===i?l.axis(s,!1):l.axis(s,Object(r.a)({position:h(u)?"top":"bottom"},i)),!1===a?(l.axis(c[0],!1),f.axis(c[1],!1)):(l.axis(c[0],a[c[0]]),f.axis(c[1],a[c[1]])),e.__axisPosition={position:l.getOptions().axes[s].position,layout:u},t}function v(t){var e=t.chart;return Object(c.c)(Object(o.b)({},t,{chart:Object(o.d)(e,"first-axes-view")})),Object(c.c)(Object(o.b)({},t,{chart:Object(o.d)(e,"second-axes-view")})),t}function y(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Object(c.e)(Object(o.b)({},t,{chart:Object(o.d)(e,"first-axes-view"),options:{yAxis:i[r[0]]}})),Object(c.e)(Object(o.b)({},t,{chart:Object(o.d)(e,"second-axes-view"),options:{yAxis:i[r[1]]}})),t}function m(t){var e=t.chart;return Object(c.j)(Object(o.b)({},t,{chart:Object(o.d)(e,"first-axes-view")})),Object(c.j)(Object(o.b)({},t,{chart:Object(o.d)(e,"second-axes-view")})),t}function b(t){var e=t.chart;return Object(c.a)(Object(o.b)({},t,{chart:Object(o.d)(e,"first-axes-view")})),Object(c.a)(Object(o.b)({},t,{chart:Object(o.d)(e,"second-axes-view")})),t}function x(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.d)(e,"first-axes-view"),c=Object(o.d)(e,"second-axes-view"),u=Object(o.c)(s,"interval"),l=Object(o.c)(c,"interval");if(i){var h=i.callback,f=Object(r.e)(i,["callback"]);u.label({fields:[a[0]],callback:h,cfg:Object(o.u)(f)}),l.label({fields:[a[1]],callback:h,cfg:Object(o.u)(f)})}else u.label(!1),l.label(!1);return t}function O(t){return Object(o.e)(p,d,g,y,m,x,c.k,v,b)(t)}var j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return Object(o.b)({},t.getDefaultOptions.call(this),{syncViewPadding:f})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=l(e.xField,e.yField,"series-field-key",t,h(e.layout)),r=n[0],a=n[1],s=Object(o.d)(this.chart,"first-axes-view"),c=Object(o.d)(this.chart,"second-axes-view");s.data(r),c.data(a),this.chart.render(!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return O},e}(a.b)},function(t,e,n){"use strict";var r=n(1),i=n(19),a=n(6),o=n(3),s=n(27),c=n(0),u={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function l(t,e){var n=function(t){return Object(c.assign)({},u,t)}(t),r={},i=e.nodes,a=e.links;return i.forEach((function(t){var e=n.id(t);r[e]=t})),function(t,e,n){Object(c.forIn)(t,(function(t,r){t.inEdges=e.filter((function(t){return""+n.target(t)==""+r})),t.outEdges=e.filter((function(t){return""+n.source(t)==""+r})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}(r,a,n),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}}[e.sortBy];!n&&Object(c.isFunction)(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(i,n),{nodes:function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),a=e.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;t.forEach((function(t){o+=t.value})),t.forEach((function(t){t.weight=t.value/o,t.width=t.weight*(1-r),t.height=a})),t.forEach((function(n,r){for(var o=0,s=r-1;s>=0;s--)o+=t[s].width+2*i;var c=n.minX=i+o,u=n.maxX=n.minX+n.width,l=n.minY=e.y-a/2,h=n.maxY=l+a;n.x=[c,u,u,c],n.y=[l,l,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}(i,n),links:function(t,e,n){if(n.weight){var r={};Object(c.forIn)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),a=n.target(e),o=t[i],s=t[a];if(o&&s){var c=r[i],u=n.sourceWeight(e),l=o.minX+(o.value-c)/o.value*o.width,h=l+u/o.value*o.width;r[i]-=u;var f=r[a],p=n.targetWeight(e),d=s.minX+(s.value-f)/s.value*s.width,g=d+p/s.value*s.width;r[a]-=p;var v=n.y;e.x=[l,h,d,g],e.y=[v,v,v,v],e.source=o,e.target=s}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}(r,a,n)}}var h=n(90),f={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}}},tooltip:{fields:["source","target","value"],formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function p(t){var e=t.options,n=e.data,i=e.sourceField,a=e.targetField,o=e.weightField,s=l({weight:!0,nodePaddingRatio:e.nodePaddingRatio,nodeWidthRatio:e.nodeWidthRatio},Object(h.c)(n,i,a,o)),c=s.nodes,u=s.links,f=c.map((function(t){return{id:t.id,x:t.x,y:t.y,name:t.name}})),p=u.map((function(t){return{source:t.source.name,target:t.target.name,x:t.x,y:t.y,value:t.value}}));return Object(r.a)(Object(r.a)({},t),{ext:Object(r.a)(Object(r.a)({},t.ext),{chordData:{nodesData:f,edgesData:p}})})}function d(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function g(t){return t.chart.axis(!1),t}function v(t){return t.chart.legend(!1),t}function y(t){return t.chart.tooltip({showTitle:!1,showMarkers:!1}),t}function m(t){return t.chart.coordinate("polar").reflect("y"),t}function b(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,a=n.label,o=e.createView();return o.data(r),Object(s.f)({chart:o,options:{xField:"x",yField:"y",seriesField:"name",polygon:{style:i},label:a,tooltip:!1}}),t}function x(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,a=n.tooltip,o=e.createView();o.data(r);var c={xField:"x",yField:"y",seriesField:"source",edge:{style:i,shape:"arc"},tooltip:a};return Object(s.b)({chart:o,options:c}),t}function O(t){return Object(o.e)(a.j,p,m,d,g,v,y,x,b,a.c,a.i,a.a)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(r.c)(e,t),e.getDefaultOptions=function(){return f},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return O}}(i.b)},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return s})),n.d(e,"Circle",(function(){return c})),n.d(e,"Line",(function(){return u}));var r=n(1),i=n(0),a=n(40),o=n(32),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:o.a.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),a=this.get("alternateColor"),o=null;Object(i.each)(r,(function(s,c){var u=s.id||c;if(n){var l=e.getPathStyle();l=Object(i.isFunction)(l)?l(s,c,r):l;var h=e.getElementId("line-"+u),f=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(i.mix)({path:f},l)})}if(a&&c>0){var p=e.getElementId("region-"+u),d=c%2==0;if(Object(i.isString)(a))d&&e.drawAlternateRegion(p,t,o.points,s.points,a);else{var g=d?a[1]:a[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(a.a);var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,r,a,o,s,c,u=this.getLineType(),l=this.get("closed"),h=[];if(t.length)if("circle"===u){var f=this.get("center"),p=t[0],d=(n=f.x,r=f.y,a=p.x,o=p.y,s=a-n,c=o-r,Math.sqrt(s*s+c*c)),g=e?0:1;l?(h.push(["M",f.x,f.y-d]),h.push(["A",d,d,0,0,g,f.x,f.y+d]),h.push(["A",d,d,0,0,g,f.x,f.y-d]),h.push(["Z"])):Object(i.each)(t,(function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["A",d,d,0,0,g,t.x,t.y])}))}else Object(i.each)(t,(function(t,e){0===e?h.push(["M",t.x,t.y]):h.push(["L",t.x,t.y])})),l&&h.push(["Z"]);return h},e}(s),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(s)},function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return p})),n.d(e,"Continuous",(function(){return d})),n.d(e,"Base",(function(){return h}));var r=n(1),i=n(0),a=n(86),o=n(57),s=n(145),c=n(32),u=n(40),l=n(28),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),Object(l.b)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=Object(l.c)(e.padding),a=Object(r.a)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.a)({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(l.c)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(u.a),f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndexg&&(g=m),"horizontal"===f?(v&&vx&&(x=e.width)})),O=x,x+=h,c&&(x=Math.min(c,x),O=Math.min(c,O)),this.pageWidth=x,this.pageHeight=u-Math.max(v.height,p+j);var w=Math.floor(this.pageHeight/(p+j));Object(i.each)(s,(function(t,e){0!==e&&e%w==0&&(m+=1,y.x+=x,y.y=a),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:p}}),y.y+=p+j})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+O/2-v.width/2-v.minX,y:u-v.height-v.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),c=Object(i.get)(a.marker,"style",{}),u=c.size,l=void 0===u?12:u,h=Object(r.e)(c,["size"]),f=this.drawArrow(s,o,"navigation-arrow-left","horizontal"===e?"up":"left",l,h);f.on("click",this.onNavigationBack);var p=f.getBBox();o.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(r.a)({x:o.x,y:o.y+l/2,text:n,textBaseline:"middle"},Object(i.get)(a.text,"style"))}).getBBox();return o.x+=d.width+2,this.drawArrow(s,o,"navigation-arrow-right","horizontal"===e?"down":"right",l,h).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=Object(i.deepMix)({},f,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,a=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,c=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),l=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),h=c.getBBox();c.attr("text",s);var p=c.getBBox();c.attr("x",c.attr("x")-(p.width-h.width)/2),u.attr("opacity",1===this.currentPageIndex?o:r),u.attr("fill",1===this.currentPageIndex?a:n),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),l.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),l.attr("fill",this.currentPageIndex===this.totalPagesCnt?a:n),l.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,i,a,s){var c=e.x,u=e.y,l={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},h=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(r.a)({path:[["M",c+a/2,u],["L",c,u+a],["L",c+a,u+a],["Z"]],cursor:"pointer"},s)});return h.attr("matrix",Object(o.e)({x:c+a/2,y:u+a/2},l[i])),h},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return Object(o.f)(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");Object(i.each)(n,(function(e){var n=e.get("name").split("-")[2],i=Object(s.a)(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(h),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:c.a.textColor,textBaseline:"middle",fontFamily:c.a.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:c.a.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];rn&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),c=i-r;c<0?a[0]+c>s.min?e.setValue([a[0]+c,a[1]+c]):e.setValue([s.min,s.min+o]):c>0&&(c>0&&a[1]+ca&&(u=a),u0&&this.changeRailLength(r,a,n[a]-l)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),c=t.getBBox(),u=e.getBBox(),l=s.height;this.fitRailLength(c,u,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+l/2}),this.changeRailPosition(n,r.x+c.width+o,r.y),e.attr({x:r.x+c.width+s.width+2*o,y:r.y+l/2})):"top"===a?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+o)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+o}),e.attr({x:r.x+s.width,y:r.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),c=t.getBBox(),u=e.getBBox();if(this.fitRailLength(c,u,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+c.height+o),e.attr({x:r.x,y:r.y+c.height+s.height+2*o});else if("right"===a)t.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+o,y:r.y+s.height});else{var l=Math.max(c.width,u.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+l+o,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(h)},function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return p}));var r,i=n(1),a=n(116),o=n(15),s=n(0),c=n(121),u=n(28),l=n(58),h=n(32),f=((r={})[""+l.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:h.a.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+l.TITLE_CLASS]={marginBottom:"4px"},r[""+l.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+l.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+l.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+l.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+l.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+l.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r);var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
      ',itemTpl:'
    • \n \n {name}:\n {value}\n
    • ',xCrosshairTpl:'
      ',yCrosshairTpl:'
      ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:l.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),Object(o.e)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(o.e)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&Object(o.e)(n,{display:e}),r&&Object(o.e)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){var n,r,i;this.get("customContent")?this.renderCustomContent():(n=e,r=["title","showTitle"],i=!1,Object(s.each)(r,(function(t){if(Object(s.hasKey)(n,t))return i=!0,!1})),i&&this.resetTitle(),Object(s.hasKey)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,s=i.offsetY,c=this.get("position"),l=this.get("region"),h=this.getContainer(),f=this.getBBox(),p=f.width,d=f.height;l&&(t=Object(u.k)(l));var g=function(t,e,n,r,i,a,o){var s=function(t,e,n,r,i,a){var o=t,s=e;switch(a){case"left":o=t-r-n,s=e-i/2;break;case"right":o=t+n,s=e-i/2;break;case"top":o=t-r/2,s=e-i-n;break;case"bottom":o=t-r/2,s=e+n;break;default:o=t+n,s=e-i-n}return{x:o,y:s}}(t,e,n,r,i,a);if(o){var c=function(t,e,n,r,i){return{left:ti.x+i.width,top:ei.y+i.height}}(s.x,s.y,r,i,o);"auto"===a?(c.right&&(s.x=Math.max(0,t-r-n)),c.top&&(s.y=Math.max(0,e-i-n))):"top"===a||"bottom"===a?(c.left&&(s.x=o.x),c.right&&(s.x=o.x+o.width-r),"top"===a&&c.top&&(s.y=e+n),"bottom"===a&&c.bottom&&(s.y=e-i-n)):(c.top&&(s.y=o.y),c.bottom&&(s.y=o.y+o.height-i),"left"===a&&c.left&&(s.x=t+n),"right"===a&&c.right&&(s.x=t-r-n))}return s}(e,n,r,p,d,c,t);Object(o.e)(h,{left:Object(u.l)(g.x+a),top:Object(u.l)(g.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=Object(s.isElement)(n)?n:Object(o.b)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(l.TITLE_CLASS)[0],n=t.getElementsByClassName(l.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Object(u.k)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?Object(o.e)(n,{left:Object(u.l)(r),top:Object(u.l)(e.y),height:Object(u.l)(e.height)}):Object(o.e)(n,{top:Object(u.l)(r),left:Object(u.l)(e.x),width:Object(u.l)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=l[r],a=this.get(e),s=this.get("parent");return a||(a=Object(o.b)(this.get(n)),this.applyStyle(i,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(s.each)(t,(function(t){var r=a.a.toCSSGradient(t.color),c=Object(i.a)(Object(i.a)({},t),{color:r}),u=Object(s.substitute)(e,c),l=Object(o.b)(u);n.appendChild(l)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(u.a)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(c.a)},function(t,e,n){"use strict";var r=n(1),i=n(97),a=n(251),o=n(42),s=n(0),c=n(447),u=n(104),l=n(181),h=n(179),f=n(105),p=[1,0,0,0,1,0,0,0,1];function d(t,e,n){var r,i=e.startTime;if(ng.length?(d=f.c(a[u]),g=f.c(i[u]),g=f.a(g,d),g=f.b(g,d),e.fromAttrs.path=g,e.toAttrs.path=d):e.pathFormatted||(d=f.c(a[u]),g=f.c(i[u]),g=f.b(g,d),e.fromAttrs.path=g,e.toAttrs.path=d,e.pathFormatted=!0),r[u]=[];for(var v=0;v0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],d(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),v=n(216),y=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function m(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function b(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&Object(o.g)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var x=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(o.a)(y,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(o.a)(y,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,a){var o=new v.a(t,e);return o.fromShape=i,o.toShape=a,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(r),o},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],a=!1;if(i)i.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,c=n.timeStamp-this.mousedownTimeStamp,u=o.clientX-t.clientX,l=o.clientY-t.clientY;c>120||u*u+l*l>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var o=this._getEventObj(t,e,n,r,i,a);if(r){o.shape=r,m(r,t,o);for(var s=r.getParent();s;)s.emitDelegation(t,o),o.propagationStopped||b(s,t,o),o.propagationPath.push(s),s=s.getParent()}else{m(this.canvas,t,o)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),O=Object(i.a)(),j=O&&"firefox"===O.name;!function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(o.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new x({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new g(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");o.c&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");o.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(j&&!Object(o.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(o.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))}}(a.a)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(1),i=n(19),a=n(0),o=n(3),s=n(6),c=n(27);function u(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,a=n.color;return e.data(r),Object(o.e)(c.c)(Object(o.b)({},t,{options:{marginRatio:1,interval:{style:i,color:a}}})),t}function l(t){var e=t.chart,n=t.options,i=n.label,s=n.xField,c=Object(o.c)(e,"interval");if(!1===i)c.label(!1);else if(Object(a.isObject)(i)){var u=i.callback,l=i.fields,h=Object(r.e)(i,["callback","fields"]),f=h.offset,p=h.layout;(void 0===f||f>=0)&&(p=p?Object(a.isArray)(p)?p:[p]:[],h.layout=Object(a.filter)(p,(function(t){return"limit-in-shape"!==t.type})),h.layout.length||delete h.layout),c.label({fields:l||[s],callback:u,cfg:Object(o.u)(h)})}else Object(o.o)(o.a.WARN,null===i,"the label option must be an Object."),c.label({fields:[s]});return t}function h(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function f(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function p(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,c=n.yField;return Object(o.e)(Object(s.f)(((e={})[a]=r,e[c]=i,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return r?e.axis(a,r):e.axis(a,!1),i?e.axis(o,i):e.axis(o,!1),t}function g(t){Object(o.e)(u,p,l,f,d,h,s.k,s.c,s.a,s.j,Object(s.b)(),s.i)(t)}var v=Object(o.b)({},i.b.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",offsetX:-10},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return Object(r.c)(e,t),e.getDefaultOptions=function(){return v},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return g},e}(i.b)},,function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(1),i=n(15),a=n(0),o=n(40),s={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=a.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?Object(a.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?Object(a.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(i.a)(t,"touchmove",e.onMouseMove),Object(i.a)(t,"touchend",e.onMouseUp),Object(i.a)(t,"touchcancel",e.onMouseUp)]:[Object(i.a)(t,"mousemove",e.onMouseMove),Object(i.a)(t,"mouseup",e.onMouseUp),Object(i.a)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var o=e.isMobile?Object(a.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(a.get)(t,"touches.0.clientY"):t.clientY,c=r?o:s,u=c-e.startPos;e.startPos=c,e.updateThumbOffset(i+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),c=t.clientX,u=t.clientY,l=r?c-s.left-i-o/2:u-s.top-a-o/2,h=e.validateRange(l);e.updateThumbOffset(h)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return Object(r.c)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=Object(a.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(a.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(a.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:s})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,r=e.theme,i=void 0===r?{default:{}}:r,o=Object(a.deepMix)({},s,i).default,c=o.lineCap,u=o.trackColor,l=o.size,h=Object(a.get)(this.cfg,"size",l),f=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:c}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:u,lineCap:c};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,o=Object(a.deepMix)({},s,i).default,c=o.size,u=o.lineCap,l=o.thumbColor,h=Object(a.get)(this.cfg,"size",c),f=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+r-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:u,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+r-h/2,lineWidth:h,stroke:l,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n=0)r=u+this.getIntervalOnlyOffset(n,e);else if(!i.isNil(c)&&i.isNil(s)&&c>=0){r=u+this.getDodgeOnlyOffset(n,e)}else if(!i.isNil(s)&&!i.isNil(c)&&s>=0&&c>=0){r=u+this.getIntervalAndDodgeOffset(n,e)}else{var f=h*a/n,p=o*f;r=(u+l)/2+(.5*(h-n*f-(n-1)*p)+((e+1)*f+e*p)-.5*f-.5*h)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,a=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,c=n.dodgeRatio,u=n.maxColumnWidth,l=n.minColumnWidth,h=n.columnWidthRatio,f=a/o,p=(1-(s-1)*f)/s*c/(t-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=i.isNil(h)?d:1/s/t*h,!i.isNil(u)){var g=u/o;d=Math.min(d,g)}if(!i.isNil(l)){var v=l/o;d=Math.max(d,v)}return((.5+e)*(d=r?r/o:d)+e*(p=((1-(s-1)*f)/s-t*d)/(t-1))+.5*f)*s-f/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,a=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,c=n.marginRatio,u=n.maxColumnWidth,l=n.minColumnWidth,h=n.columnWidthRatio,f=a/o,p=1*c/(s-1),d=((1-p*(s-1))/s-f*(t-1))/t;if(d=h?1/s/t*h:d,!i.isNil(u)){var g=u/o;d=Math.min(d,g)}if(!i.isNil(l)){var v=l/o;d=Math.max(d,v)}return((.5+e)*(d=r?r/o:d)+e*f+.5*(p=(1-(d*t+f*(t-1))*s)/(s-1)))*s-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,o=n/i,s=r/i;return((.5+e)*(((1-o*(a-1))/a-s*(t-1))/t)+e*s+.5*o)*a-o/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},i.each(e,(function(e,n){var a=i.valuesOfKey(e,t);a.length||a.push(0),i.each(a,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(n(89).a);e.a=o},function(t,e,n){"use strict";var r=n(56),i=n(0),a=n(126);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.clone(t),n=i.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,a=this.groupData(n,t);return i.each(a,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*a.c;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var a=this,o=this.getAdjustRange(e,n,r);return i.each(t,(function(t){t[e]=a.getAdjustOffset(o)})),t},e}(n(89).a);e.a=o},function(t,e,n){"use strict";var r=n(56),i=n(0),a=n(89),o=i.Cache,s=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,a=e.height,o=void 0===a?NaN:a,s=e.size,c=void 0===s?10:s,u=e.reverseOrder,l=void 0!==u&&u;return n.adjustNames=i,n.height=o,n.size=c,n.reverseOrder=l,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,a=this.reverseOrder?this.reverse(t):t,s=new o,c=new o;return a.map((function(t){return t.map((function(t){var a,o=i.get(t,e,0),u=i.get(t,[n]),l=o.toString();if(u=i.isArray(u)?u[1]:u,!i.isNil(u)){var h=u>=0?s:c;h.has(l)||h.set(l,0);var f=h.get(l),p=u+f;return h.set(l,p),Object(r.a)(Object(r.a)({},t),((a={})[n]=[f,p],a))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,i=this.height,a=this.reverseOrder,s=a?this.reverse(t):t,c=new o;return s.map((function(t){return t.map((function(t){var a,o=e.size,s=t[n],u=2*o/i;c.has(s)||c.set(s,u/2);var l=c.get(s);return c.set(s,l+u),Object(r.a)(Object(r.a)({},t),((a={}).y=l,a))}))}))},e}(a.a);e.a=s},function(t,e,n){"use strict";var r=n(56),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.flatten(t),n=this.xField,a=this.yField,o=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return i.map(t,(function(t){return i.map(t,(function(t){var e,c,u=t[a],l=t[n];if(i.isArray(u)){var h=(s-o[l])/2;return Object(r.a)(Object(r.a)({},t),((e={})[a]=i.map(u,(function(t){return h+t})),e))}var f=(s-u)/2;return Object(r.a)(Object(r.a)({},t),((c={})[a]=[f,u+f],c))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,a=i.groupBy(t,(function(t){return t[n]}));return i.mapValues(a,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=i.map(t,(function(t){return i.get(t,e,[])})),r=i.flatten(n);return Math.max.apply(Math,r)},e}(n(89).a);e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(449);e.bind=function(t,e){var n=(0,r.getSensor)(t);return n.bind(e),function(){n.unbind(e)}};e.clear=function(t){var e=(0,r.getSensor)(t);(0,r.removeSensor)(e)};e.ver="1.0.1"},function(t,n){t.exports=e},,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r,i,a=0,o=0,s=0,c=0,u=0,l=0,h="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return u||(f(d),u=h.now()+l)}function d(){u=0}function g(){this._call=this._time=this._next=null}function v(t,e,n){var r=new g;return r.restart(t,e,n),r}function y(){u=(c=h.now())+l,a=o=0;try{!function(){p(),++a;for(var t,e=r;e;)(t=u-e._time)>=0&&e._call.call(null,t),e=e._next;--a}()}finally{a=0,function(){var t,e,n=r,a=1/0;for(;n;)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,b(a)}(),u=0}}function m(){var t=h.now(),e=t-c;e>1e3&&(l-=e,c=t)}function b(t){a||(o&&(o=clearTimeout(o)),t-u>24?(t<1/0&&(o=setTimeout(y,t-h.now()-l)),s&&(s=clearInterval(s))):(s||(c=h.now(),s=setInterval(m,1e3)),a=1,f(y)))}g.prototype=v.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var r,i=(r=n(450))&&r.__esModule?r:{default:r},a=n(451),o=n(301);var s={};e.getSensor=function(t){var e=t.getAttribute(o.SizeSensorId);if(e&&s[e])return s[e];var n=(0,i.default)();t.setAttribute(o.SizeSensorId,n);var r=(0,a.createSensor)(t);return s[n]=r,r};e.removeSensor=function(t){var e=t.element.getAttribute(o.SizeSensorId);t.element.removeAttribute(o.SizeSensorId),t.destroy(),e&&s[e]&&delete s[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=1;e.default=function(){return"".concat(r++)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(452),i=n(453),a="undefined"!=typeof ResizeObserver?i.createSensor:r.createSensor;e.createSensor=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(300))&&r.__esModule?r:{default:r},a=n(301);e.createSensor=function(t){var e=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(e){e(t)}))})),o=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",r),e.parentNode.removeChild(e),e=void 0,n=[])};return{element:t,bind:function(i){e||(e=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",r),r()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",a.SensorClassName),e.setAttribute("tabindex",a.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e}()),-1===n.indexOf(i)&&n.push(i)},destroy:o,unbind:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&o()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(300))&&r.__esModule?r:{default:r};e.createSensor=function(t){var e=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(e){e(t)}))})),a=function(){e.disconnect(),n=[],e=void 0};return{element:t,bind:function(i){var a;e||((a=new ResizeObserver(r)).observe(t),r(),e=a),-1===n.indexOf(i)&&n.push(i)},destroy:a,unbind:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&a()}}}},function(t,e,n){"use strict";var r=n(30),i=n(34),a=n(39),o=n(38),s=n(2),c=n.n(s),u=function(t){Object(a.a)(n,t);var e=Object(o.a)(n);function n(){var t;Object(r.a)(this,n);for(var i=arguments.length,a=new Array(i),o=0;o=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n.r(e),n.d(e,"Area",(function(){return j})),n.d(e,"Bar",(function(){return M})),n.d(e,"Box",(function(){return D})),n.d(e,"Bullet",(function(){return S})),n.d(e,"Column",(function(){return k})),n.d(e,"Funnel",(function(){return T})),n.d(e,"Histogram",(function(){return B})),n.d(e,"Line",(function(){return P})),n.d(e,"Liquid",(function(){return _})),n.d(e,"Heatmap",(function(){return z})),n.d(e,"Pie",(function(){return G})),n.d(e,"Progress",(function(){return W})),n.d(e,"Radar",(function(){return $})),n.d(e,"RingProgress",(function(){return Z})),n.d(e,"Rose",(function(){return Q})),n.d(e,"Scatter",(function(){return tt})),n.d(e,"TinyArea",(function(){return nt})),n.d(e,"TinyColumn",(function(){return it})),n.d(e,"TinyLine",(function(){return ct})),n.d(e,"Waterfall",(function(){return lt})),n.d(e,"WordCloud",(function(){return ft})),n.d(e,"Sunburst",(function(){return dt})),n.d(e,"DualAxes",(function(){return ot})),n.d(e,"Stock",(function(){return vt})),n.d(e,"RadialBar",(function(){return mt})),n.d(e,"Gauge",(function(){return V})),n.d(e,"BidirectionalBar",(function(){return Mt})),n.d(e,"Sankey",(function(){return xt})),n.d(e,"MultiView",(function(){return jt})),n.d(e,"Mix",(function(){return jt})),n.d(e,"G2",(function(){return o.G2}));var i=n(2),a=n.n(i),o=n(29),s=n(37),c=n(180),u=n(0),l=n(85),h={isType:l.d,clone:l.a,hasPath:l.c,setPath:l.e,deepClone:l.b},f=n(441),p=n.n(f),d=function(t,e){var n=document.createElement("div");return"tooltip"===e&&(n.className="g2-tooltip"),p.a.render(t,n),n},g=["data","value","percent"],v=["data","value","percent"];function y(t,e){var n=Object(i.useRef)(),a=Object(i.useRef)(),o=Object(i.useRef)(null),l=e.onReady,f=e.onEvent,p=function(t,e,n){var r=h.hasPath,i=h.setPath,a=r(t,e);i(t,e,(function(){var t=h.isType(a,"Function")?a.apply(void 0,arguments):a;return h.isType(t,"String")||h.isType(t,"Number")||h.isType(t,"HTMLDivElement")?t:d(t,n)}))},y=function(){var t=h.hasPath;t(e,["statistic","content","customHtml"])&&p(e,["statistic","content","customHtml"]),t(e,["statistic","title","customHtml"])&&p(e,["statistic","title","customHtml"]),"object"===Object(c.a)(e.tooltip)&&(t(e,["tooltip","container"])&&p(e,["tooltip","container"],"tooltip"),t(e,["tooltip","customContent"])&&p(e,["tooltip","customContent"],"tooltip"))};return Object(i.useEffect)((function(){if(n.current&&!Object(u.isEqual)(a.current,e)){var t=!1;if(a.current){var i=a.current,o=(i.data,i.value,i.percent,r(i,g)),c=(e.data,e.value,e.percent,r(e,v));t=Object(u.isEqual)(o,c)}if(t){var l="data",h=Object.keys(e);["percent"].forEach((function(t){h.includes(t)&&(l=t)})),n.current.changeData((null==e?void 0:e[l])||[])}else y(),n.current.update(e);a.current=Object(s.a)({},e)}}),[e]),Object(i.useEffect)((function(){if(!o.current)return function(){return null};y();var r=new t(o.current,Object(s.a)({},e));t.prototype.toDataURL=function(t,e){return function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",r=arguments.length>1?arguments[1]:void 0;return null===(t=n.current)||void 0===t?void 0:t.chart.canvas.cfg.el.toDataURL(e,r)}(t,e)},t.prototype.downloadImage=function(t,e,r){return function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"download",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/png",i=arguments.length>2?arguments[2]:void 0,a=e;-1===e.indexOf(".")&&(a="".concat(e,".").concat(r.split("/")[1]));var o=null===(t=n.current)||void 0===t?void 0:t.chart.canvas.cfg.el.toDataURL(r,i),s=document.createElement("a");return s.href=o,s.download=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),s=null,a}(t,e,r)},r.render(),a.current||(a.current=Object(s.a)({},e)),n.current=h.clone(r),l&&l(r);var i=function(t){f&&f(r,t)};return r.on("*",i),function(){n.current&&(n.current.destroy(),n.current.off("*",i),n.current=void 0)}}),[]),{chart:n,container:o}}var m=function(t,e){t&&(Object(u.isFunction)(t)?t(e):t.current=e)},b=n(454),x=n(26),O=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],j=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,O),d=y(o.Area,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),w=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],M=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,w),d=y(o.Bar,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),C=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],S=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,C),d=y(o.Bullet,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),A=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],k=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,A),d=y(o.Column,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),E=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],T=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,E),d=y(o.Funnel,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),F=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],B=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,F),d=y(o.Histogram,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),I=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],P=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,I),d=y(o.Line,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),L=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],D=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,L),d=y(o.Box,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),R=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],_=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,R),d=y(o.Liquid,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),N=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],z=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,N),d=y(o.Heatmap,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),Y=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],G=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,Y),d=y(o.Pie,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),X=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],V=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,X),d=y(o.Gauge,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),H=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],W=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,H),d=y(o.Progress,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),q=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],$=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,q),d=y(o.Radar,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),U=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],Z=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,U),d=y(o.RingProgress,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),K=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],Q=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,K),d=y(o.Rose,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),J=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],tt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,J),d=y(o.Scatter,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),et=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],nt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,et),d=y(o.TinyArea,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),rt=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],it=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,rt),d=y(o.TinyColumn,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),at=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],ot=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,at),d=y(o.DualAxes,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),st=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],ct=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,st),d=y(o.TinyLine,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),ut=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],lt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,ut),d=y(o.Waterfall,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),ht=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],ft=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,ht),d=y(o.WordCloud,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),pt=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],dt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,pt),d=y(o.Sunburst,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),gt=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],vt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,gt),d=y(o.Stock,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),yt=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],mt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,yt),d=y(o.RadialBar,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),bt=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],xt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,bt),d=y(o.Sankey,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),Ot=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],jt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,Ot),d=y(o.Mix,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))})),wt=["chartRef","style","className","loading","loadingTemplate","errorTemplate"],Mt=Object(i.forwardRef)((function(t,e){var n=t.chartRef,s=t.style,c=void 0===s?{height:"inherit"}:s,u=t.className,l=t.loading,h=t.loadingTemplate,f=t.errorTemplate,p=r(t,wt),d=y(o.BidirectionalBar,p),g=d.chart,v=d.container;return Object(i.useEffect)((function(){m(n,g.current)}),[g.current]),Object(i.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),a.a.createElement(b.a,{errorTemplate:f},l&&a.a.createElement(x.a,{loadingTemplate:h}),a.a.createElement("div",{className:u,style:c,ref:v}))}))}])})); //# sourceMappingURL=charts.min.js.map