(self.webpackChunk=self.webpackChunk||[]).push([[1408],{60798:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return ft}});function ft(S,dt,ot){if(S){if(typeof S.addEventListener=="function")return S.addEventListener(dt,ot,!1),{remove:function(){S.removeEventListener(dt,ot,!1)}};if(typeof S.attachEvent=="function")return S.attachEvent("on"+dt,ot),{remove:function(){S.detachEvent("on"+dt,ot)}}}}},24714:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return $}});var ft,S,dt,ot;function ht(){ft=document.createElement("table"),S=document.createElement("tr"),dt=/^\s*<(\w+|!)[^>]*>/,ot={tr:document.createElement("tbody"),tbody:ft,thead:ft,tfoot:ft,td:S,th:S,"*":document.createElement("div")}}function $(N){ft||ht();var J=dt.test(N)&&RegExp.$1;(!J||!(J in ot))&&(J="*");var tt=ot[J];N=typeof N=="string"?N.replace(/(^\s*)|(\s*$)/g,""):N,tt.innerHTML=""+N;var ct=tt.childNodes[0];return ct&&tt.contains(ct)&&tt.removeChild(ct),ct}},10818:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return ft}});function ft(S,dt){if(S)for(var ot in dt)dt.hasOwnProperty(ot)&&(S.style[ot]=dt[ot]);return S}},92561:function(Jt,St,H){"use strict";var ft=H(99938),S=H(80216),dt=H(16089),ot=function(ht){(0,ft.__extends)($,ht);function $(N){var J=ht.call(this)||this;J.destroyed=!1;var tt=J.getDefaultCfg();return J.cfg=(0,dt.CD)(tt,N),J}return $.prototype.getDefaultCfg=function(){return{}},$.prototype.get=function(N){return this.cfg[N]},$.prototype.set=function(N,J){this.cfg[N]=J},$.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},$}(S.Z);St.Z=ot},8280:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return zr}});var ft=H(99938),S=H(81365),dt=H(10888),ot=H(16089),ht=H(13526),$=0,N=0,J=0,tt=1e3,ct,nt,j=0,B=0,b=0,L=typeof performance=="object"&&performance.now?performance:Date,Q=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(O){setTimeout(O,17)};function st(){return B||(Q(at),B=L.now()+b)}function at(){B=0}function R(){this._call=this._time=this._next=null}R.prototype=y.prototype={constructor:R,restart:function(O,h,T){if(typeof O!="function")throw new TypeError("callback is not a function");T=(T==null?st():+T)+(h==null?0:+h),!this._next&&nt!==this&&(nt?nt._next=this:ct=this,nt=this),this._call=O,this._time=T,yt()},stop:function(){this._call&&(this._call=null,this._time=1/0,yt())}};function y(O,h,T){var G=new R;return G.restart(O,h,T),G}function w(){st(),++$;for(var O=ct,h;O;)(h=B-O._time)>=0&&O._call.call(null,h),O=O._next;--$}function X(){B=(j=L.now())+b,$=N=0;try{w()}finally{$=0,ut(),B=0}}function W(){var O=L.now(),h=O-j;h>tt&&(b-=h,j=O)}function ut(){for(var O,h=ct,T,G=1/0;h;)h._call?(G>h._time&&(G=h._time),O=h,h=h._next):(T=h._next,h._next=null,h=O?O._next=T:ct=T);nt=O,yt(G)}function yt(O){if(!$){N&&(N=clearTimeout(N));var h=O-B;h>24?(O<1/0&&(N=setTimeout(X,O-L.now()-b)),J&&(J=clearInterval(J))):(J||(j=L.now(),J=setInterval(W,tt)),$=1,Q(X))}}var Pt=H(37635);function Ht(O,h,T){O.prototype=h.prototype=T,T.constructor=O}function Wt(O,h){var T=Object.create(O.prototype);for(var G in h)T[G]=h[G];return T}function Tt(){}var _t=.7,Ut=1/_t,Yt="\\s*([+-]?\\d+)\\s*",Ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,K=new RegExp("^rgb\\(".concat(Yt,",").concat(Yt,",").concat(Yt,"\\)$")),gt=new RegExp("^rgb\\(".concat(a,",").concat(a,",").concat(a,"\\)$")),xt=new RegExp("^rgba\\(".concat(Yt,",").concat(Yt,",").concat(Yt,",").concat(Ot,"\\)$")),p=new RegExp("^rgba\\(".concat(a,",").concat(a,",").concat(a,",").concat(Ot,"\\)$")),_=new RegExp("^hsl\\(".concat(Ot,",").concat(a,",").concat(a,"\\)$")),k=new RegExp("^hsla\\(".concat(Ot,",").concat(a,",").concat(a,",").concat(Ot,"\\)$")),E={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ht(Tt,e,{copy:function(h){return Object.assign(new this.constructor,this,h)},displayable:function(){return this.rgb().displayable()},hex:Z,formatHex:Z,formatHex8:it,formatHsl:M,formatRgb:s,toString:s});function Z(){return this.rgb().formatHex()}function it(){return this.rgb().formatHex8()}function M(){return r(this).formatHsl()}function s(){return this.rgb().formatRgb()}function e(O){var h,T;return O=(O+"").trim().toLowerCase(),(h=d.exec(O))?(T=h[1].length,h=parseInt(h[1],16),T===6?t(h):T===3?new C(h>>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1):T===8?u(h>>24&255,h>>16&255,h>>8&255,(h&255)/255):T===4?u(h>>12&15|h>>8&240,h>>8&15|h>>4&240,h>>4&15|h&240,((h&15)<<4|h&15)/255):null):(h=K.exec(O))?new C(h[1],h[2],h[3],1):(h=gt.exec(O))?new C(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=xt.exec(O))?u(h[1],h[2],h[3],h[4]):(h=p.exec(O))?u(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=_.exec(O))?m(h[1],h[2]/100,h[3]/100,1):(h=k.exec(O))?m(h[1],h[2]/100,h[3]/100,h[4]):E.hasOwnProperty(O)?t(E[O]):O==="transparent"?new C(NaN,NaN,NaN,0):null}function t(O){return new C(O>>16&255,O>>8&255,O&255,1)}function u(O,h,T,G){return G<=0&&(O=h=T=NaN),new C(O,h,T,G)}function c(O){return O instanceof Tt||(O=e(O)),O?(O=O.rgb(),new C(O.r,O.g,O.b,O.opacity)):new C}function l(O,h,T,G){return arguments.length===1?c(O):new C(O,h,T,G==null?1:G)}function C(O,h,T,G){this.r=+O,this.g=+h,this.b=+T,this.opacity=+G}Ht(C,l,Wt(Tt,{brighter:function(h){return h=h==null?Ut:Math.pow(Ut,h),new C(this.r*h,this.g*h,this.b*h,this.opacity)},darker:function(h){return h=h==null?_t:Math.pow(_t,h),new C(this.r*h,this.g*h,this.b*h,this.opacity)},rgb:function(){return this},clamp:function(){return new C(n(this.r),n(this.g),n(this.b),g(this.opacity))},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:A,formatHex:A,formatHex8:Y,formatRgb:I,toString:I}));function A(){return"#".concat(v(this.r)).concat(v(this.g)).concat(v(this.b))}function Y(){return"#".concat(v(this.r)).concat(v(this.g)).concat(v(this.b)).concat(v((isNaN(this.opacity)?1:this.opacity)*255))}function I(){var O=g(this.opacity);return"".concat(O===1?"rgb(":"rgba(").concat(n(this.r),", ").concat(n(this.g),", ").concat(n(this.b)).concat(O===1?")":", ".concat(O,")"))}function g(O){return isNaN(O)?1:Math.max(0,Math.min(1,O))}function n(O){return Math.max(0,Math.min(255,Math.round(O)||0))}function v(O){return O=n(O),(O<16?"0":"")+O.toString(16)}function m(O,h,T,G){return G<=0?O=h=T=NaN:T<=0||T>=1?O=h=NaN:h<=0&&(O=NaN),new o(O,h,T,G)}function r(O){if(O instanceof o)return new o(O.h,O.s,O.l,O.opacity);if(O instanceof Tt||(O=e(O)),!O)return new o;if(O instanceof o)return O;O=O.rgb();var h=O.r/255,T=O.g/255,G=O.b/255,vt=Math.min(h,T,G),At=Math.max(h,T,G),It=NaN,Et=At-vt,Vt=(At+vt)/2;return Et?(h===At?It=(T-G)/Et+(T0&&Vt<1?0:It,new o(It,Et,Vt,O.opacity)}function i(O,h,T,G){return arguments.length===1?r(O):new o(O,h,T,G==null?1:G)}function o(O,h,T,G){this.h=+O,this.s=+h,this.l=+T,this.opacity=+G}Ht(o,i,Wt(Tt,{brighter:function(h){return h=h==null?Ut:Math.pow(Ut,h),new o(this.h,this.s,this.l*h,this.opacity)},darker:function(h){return h=h==null?_t:Math.pow(_t,h),new o(this.h,this.s,this.l*h,this.opacity)},rgb:function(){var h=this.h%360+(this.h<0)*360,T=isNaN(h)||isNaN(this.s)?0:this.s,G=this.l,vt=G+(G<.5?G:1-G)*T,At=2*G-vt;return new C(V(h>=240?h-240:h+120,At,vt),V(h,At,vt),V(h<120?h+240:h-120,At,vt),this.opacity)},clamp:function(){return new o(P(this.h),F(this.s),F(this.l),g(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 h=g(this.opacity);return"".concat(h===1?"hsl(":"hsla(").concat(P(this.h),", ").concat(F(this.s)*100,"%, ").concat(F(this.l)*100,"%").concat(h===1?")":", ".concat(h,")"))}}));function P(O){return O=(O||0)%360,O<0?O+360:O}function F(O){return Math.max(0,Math.min(1,O||0))}function V(O,h,T){return(O<60?h+(T-h)*O/60:O<180?T:O<240?h+(T-h)*(240-O)/60:h)*255}function q(O,h,T,G,vt){var At=O*O,It=At*O;return((1-3*O+3*At-It)*h+(4-6*At+3*It)*T+(1+3*O+3*At-3*It)*G+It*vt)/6}function rt(O){var h=O.length-1;return function(T){var G=T<=0?T=0:T>=1?(T=1,h-1):Math.floor(T*h),vt=O[G],At=O[G+1],It=G>0?O[G-1]:2*vt-At,Et=G180||T<-180?T-360*Math.round(T/360):T):constant(isNaN(O)?h:O)}function Ct(O){return(O=+O)==1?Bt:function(h,T){return T-h?bt(h,T,O):mt(isNaN(h)?T:h)}}function Bt(O,h){var T=h-O;return T?pt(O,T):mt(isNaN(O)?h:O)}var Lt=function O(h){var T=Ct(h);function G(vt,At){var It=T((vt=l(vt)).r,(At=l(At)).r),Et=T(vt.g,At.g),Vt=T(vt.b,At.b),tr=Bt(vt.opacity,At.opacity);return function(f){return vt.r=It(f),vt.g=Et(f),vt.b=Vt(f),vt.opacity=tr(f),vt+""}}return G.gamma=O,G}(1);function Nt(O){return function(h){var T=h.length,G=new Array(T),vt=new Array(T),At=new Array(T),It,Et;for(It=0;ItT&&(At=h.slice(T,At),Et[It]?Et[It]+=At:Et[++It]=At),(G=G[0])===(vt=vt[0])?Et[It]?Et[It]+=vt:Et[++It]=vt:(Et[++It]=null,Vt.push({i:It,x:er(G,vt)})),T=cr.lastIndex;return Ttr.length?(Vt=fr.parsePathString(At[Et]),tr=fr.parsePathString(vt[Et]),tr=fr.fillPathByDiff(tr,Vt),tr=fr.formatPath(tr,Vt),h.fromAttrs.path=tr,h.toAttrs.path=Vt):h.pathFormatted||(Vt=fr.parsePathString(At[Et]),tr=fr.parsePathString(vt[Et]),tr=fr.formatPath(tr,Vt),h.fromAttrs.path=tr,h.toAttrs.path=Vt,h.pathFormatted=!0),G[Et]=[];for(var f=0;f0){for(var Et=h.animators.length-1;Et>=0;Et--){if(G=h.animators[Et],G.destroyed){h.removeAnimator(Et);continue}if(!G.isAnimatePaused()){vt=G.get("animations");for(var Vt=vt.length-1;Vt>=0;Vt--)At=vt[Vt],T=Sr(G,At,It),T&&(vt.splice(Vt,1),T=!1,At.callback&&At.callback())}vt.length===0&&h.removeAnimator(Et)}var tr=h.canvas.get("autoDraw");tr||h.canvas.draw()}})},O.prototype.addAnimator=function(h){this.animators.push(h)},O.prototype.removeAnimator=function(h){this.animators.splice(h,1)},O.prototype.isAnimating=function(){return!!this.animators.length},O.prototype.stop=function(){this.timer&&this.timer.stop()},O.prototype.stopAllAnimations=function(h){h===void 0&&(h=!0),this.animators.forEach(function(T){T.stopAnimate(h)}),this.animators=[],this.canvas.draw()},O.prototype.getTime=function(){return this.current},O}(),Fr=Rr,Xr=H(79160),Hr=40,Ir=0,Wr=":",br=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Qr(O,h){for(var T in O)if(O.hasOwnProperty(T)&&T.indexOf(Wr+h)>=0)return!0;return!1}function Or(O,h,T){T.name=h,T.target=O,T.currentTarget=O,T.delegateTarget=O,O.emit(h,T)}function Ur(O,h,T){if(T.bubbles){var G=void 0,vt=!1;if(h==="mouseenter"?(G=T.fromShape,vt=!0):h==="mouseleave"&&(vt=!0,G=T.toShape),O.isCanvas()&&vt)return;if(G&&(0,ot.UY)(O,G)){T.bubbles=!1;return}T.name=h,T.currentTarget=O,T.delegateTarget=O,O.emit(h,T)}}var Kr=function(){function O(h){var T=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(G){var vt=G.type;T._triggerEvent(vt,G)},this._onDocumentMove=function(G){var vt=T.canvas,At=vt.get("el");if(At!==G.target&&(T.dragging||T.currentShape)){var It=T._getPointInfo(G);T.dragging&&T._emitEvent("drag",G,It,T.draggingShape)}},this._onDocumentMouseUp=function(G){var vt=T.canvas,At=vt.get("el");if(At!==G.target&&T.dragging){var It=T._getPointInfo(G);T.draggingShape&&T._emitEvent("drop",G,It,null),T._emitEvent("dragend",G,It,T.draggingShape),T._afterDrag(T.draggingShape,It,G)}},this.canvas=h.canvas}return O.prototype.init=function(){this._bindEvents()},O.prototype._bindEvents=function(){var h=this,T=this.canvas.get("el");(0,ot.S6)(br,function(G){T.addEventListener(G,h._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},O.prototype._clearEvents=function(){var h=this,T=this.canvas.get("el");(0,ot.S6)(br,function(G){T.removeEventListener(G,h._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},O.prototype._getEventObj=function(h,T,G,vt,At,It){var Et=new Xr.Z(h,T);return Et.fromShape=At,Et.toShape=It,Et.x=G.x,Et.y=G.y,Et.clientX=G.clientX,Et.clientY=G.clientY,Et.propagationPath.push(vt),Et},O.prototype._getShape=function(h,T){return this.canvas.getShape(h.x,h.y,T)},O.prototype._getPointInfo=function(h){var T=this.canvas,G=T.getClientByEvent(h),vt=T.getPointByEvent(h);return{x:vt.x,y:vt.y,clientX:G.x,clientY:G.y}},O.prototype._triggerEvent=function(h,T){var G=this._getPointInfo(T),vt=this._getShape(G,T),At=this["_on"+h],It=!1;if(At)At.call(this,G,vt,T);else{var Et=this.currentShape;h==="mouseenter"||h==="dragenter"||h==="mouseover"?(this._emitEvent(h,T,G,null,null,vt),vt&&this._emitEvent(h,T,G,vt,null,vt),h==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",T,G,null)):h==="mouseleave"||h==="dragleave"||h==="mouseout"?(It=!0,Et&&this._emitEvent(h,T,G,Et,Et,null),this._emitEvent(h,T,G,null,Et,null),h==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",T,G,null)):this._emitEvent(h,T,G,vt,null,null)}if(It||(this.currentShape=vt),vt&&!vt.get("destroyed")){var Vt=this.canvas,tr=Vt.get("el");tr.style.cursor=vt.attr("cursor")||Vt.get("cursor")}},O.prototype._onmousedown=function(h,T,G){G.button===Ir&&(this.mousedownShape=T,this.mousedownPoint=h,this.mousedownTimeStamp=G.timeStamp),this._emitEvent("mousedown",G,h,T,null,null)},O.prototype._emitMouseoverEvents=function(h,T,G,vt){var At=this.canvas.get("el");G!==vt&&(G&&(this._emitEvent("mouseout",h,T,G,G,vt),this._emitEvent("mouseleave",h,T,G,G,vt),(!vt||vt.get("destroyed"))&&(At.style.cursor=this.canvas.get("cursor"))),vt&&(this._emitEvent("mouseover",h,T,vt,G,vt),this._emitEvent("mouseenter",h,T,vt,G,vt)))},O.prototype._emitDragoverEvents=function(h,T,G,vt,At){vt?(vt!==G&&(G&&this._emitEvent("dragleave",h,T,G,G,vt),this._emitEvent("dragenter",h,T,vt,G,vt)),At||this._emitEvent("dragover",h,T,vt)):G&&this._emitEvent("dragleave",h,T,G,G,vt),At&&this._emitEvent("dragover",h,T,vt)},O.prototype._afterDrag=function(h,T,G){h&&(h.set("capture",!0),this.draggingShape=null),this.dragging=!1;var vt=this._getShape(T,G);vt!==h&&this._emitMouseoverEvents(G,T,h,vt),this.currentShape=vt},O.prototype._onmouseup=function(h,T,G){if(G.button===Ir){var vt=this.draggingShape;this.dragging?(vt&&this._emitEvent("drop",G,h,T),this._emitEvent("dragend",G,h,vt),this._afterDrag(vt,h,G)):(this._emitEvent("mouseup",G,h,T),T===this.mousedownShape&&this._emitEvent("click",G,h,T),this.mousedownShape=null,this.mousedownPoint=null)}},O.prototype._ondragover=function(h,T,G){G.preventDefault();var vt=this.currentShape;this._emitDragoverEvents(G,h,vt,T,!0)},O.prototype._onmousemove=function(h,T,G){var vt=this.canvas,At=this.currentShape,It=this.draggingShape;if(this.dragging)It&&this._emitDragoverEvents(G,h,At,T,!1),this._emitEvent("drag",G,h,It);else{var Et=this.mousedownPoint;if(Et){var Vt=this.mousedownShape,tr=G.timeStamp,f=tr-this.mousedownTimeStamp,x=Et.clientX-h.clientX,D=Et.clientY-h.clientY,z=x*x+D*D;f>120||z>Hr?Vt&&Vt.get("draggable")?(It=this.mousedownShape,It.set("capture",!1),this.draggingShape=It,this.dragging=!0,this._emitEvent("dragstart",G,h,It),this.mousedownShape=null,this.mousedownPoint=null):!Vt&&vt.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",G,h,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(G,h,At,T),this._emitEvent("mousemove",G,h,T)):(this._emitMouseoverEvents(G,h,At,T),this._emitEvent("mousemove",G,h,T))}else this._emitMouseoverEvents(G,h,At,T),this._emitEvent("mousemove",G,h,T)}},O.prototype._emitEvent=function(h,T,G,vt,At,It){var Et=this._getEventObj(h,T,G,vt,At,It);if(vt){Et.shape=vt,Or(vt,h,Et);for(var Vt=vt.getParent();Vt;)Vt.emitDelegation(h,Et),Et.propagationStopped||Ur(Vt,h,Et),Et.propagationPath.push(Vt),Vt=Vt.getParent()}else{var tr=this.canvas;Or(tr,h,Et)}},O.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},O}(),Br=Kr,Lr="px",kr=(0,S.qY)(),Gr=kr&&kr.name==="firefox",Zr=function(O){(0,ft.__extends)(h,O);function h(T){var G=O.call(this,T)||this;return G.initContainer(),G.initDom(),G.initEvents(),G.initTimeline(),G}return h.prototype.getDefaultCfg=function(){var T=O.prototype.getDefaultCfg.call(this);return T.cursor="default",T.supportCSSTransform=!1,T},h.prototype.initContainer=function(){var T=this.get("container");(0,ot.HD)(T)&&(T=document.getElementById(T),this.set("container",T))},h.prototype.initDom=function(){var T=this.createDom();this.set("el",T);var G=this.get("container");G.appendChild(T),this.setDOMSize(this.get("width"),this.get("height"))},h.prototype.initEvents=function(){var T=new Br({canvas:this});T.init(),this.set("eventController",T)},h.prototype.initTimeline=function(){var T=new Fr(this);this.set("timeline",T)},h.prototype.setDOMSize=function(T,G){var vt=this.get("el");ot.jU&&(vt.style.width=T+Lr,vt.style.height=G+Lr)},h.prototype.changeSize=function(T,G){this.setDOMSize(T,G),this.set("width",T),this.set("height",G),this.onCanvasChange("changeSize")},h.prototype.getRenderer=function(){return this.get("renderer")},h.prototype.getCursor=function(){return this.get("cursor")},h.prototype.setCursor=function(T){this.set("cursor",T);var G=this.get("el");ot.jU&&G&&(G.style.cursor=T)},h.prototype.getPointByEvent=function(T){var G=this.get("supportCSSTransform");if(G){if(Gr&&!(0,ot.kK)(T.layerX)&&T.layerX!==T.offsetX)return{x:T.layerX,y:T.layerY};if(!(0,ot.kK)(T.offsetX))return{x:T.offsetX,y:T.offsetY}}var vt=this.getClientByEvent(T),At=vt.x,It=vt.y;return this.getPointByClient(At,It)},h.prototype.getClientByEvent=function(T){var G=T;return T.touches&&(T.type==="touchend"?G=T.changedTouches[0]:G=T.touches[0]),{x:G.clientX,y:G.clientY}},h.prototype.getPointByClient=function(T,G){var vt=this.get("el"),At=vt.getBoundingClientRect();return{x:T-At.left,y:G-At.top}},h.prototype.getClientByPoint=function(T,G){var vt=this.get("el"),At=vt.getBoundingClientRect();return{x:T+At.left,y:G+At.top}},h.prototype.draw=function(){},h.prototype.removeDom=function(){var T=this.get("el");T.parentNode.removeChild(T)},h.prototype.clearEvents=function(){var T=this.get("eventController");T.destroy()},h.prototype.isCanvas=function(){return!0},h.prototype.getParent=function(){return null},h.prototype.destroy=function(){var T=this.get("timeline");this.get("destroyed")||(this.clear(),T&&T.stop(),this.clearEvents(),this.removeDom(),O.prototype.destroy.call(this))},h}(dt.Z),zr=Zr},10888:function(Jt,St,H){"use strict";var ft=H(99938),S=H(7178),dt=H(16089),ot={},ht="_INDEX";function $(j,B){if(j.set("canvas",B),j.isGroup()){var b=j.get("children");b.length&&b.forEach(function(L){$(L,B)})}}function N(j,B){if(j.set("timeline",B),j.isGroup()){var b=j.get("children");b.length&&b.forEach(function(L){N(L,B)})}}function J(j,B){var b=j.getChildren();return b.indexOf(B)>=0}function tt(j,B,b){b===void 0&&(b=!0),b?B.destroy():(B.set("parent",null),B.set("canvas",null)),(0,dt.As)(j.getChildren(),B)}function ct(j){return function(B,b){var L=j(B,b);return L===0?B[ht]-b[ht]:L}}var nt=function(j){(0,ft.__extends)(B,j);function B(){return j!==null&&j.apply(this,arguments)||this}return B.prototype.isCanvas=function(){return!1},B.prototype.getBBox=function(){var b=1/0,L=-1/0,Q=1/0,st=-1/0,at=this.getChildren().filter(function(y){return y.get("visible")&&(!y.isGroup()||y.isGroup()&&y.getChildren().length>0)});at.length>0?(0,dt.S6)(at,function(y){var w=y.getBBox(),X=w.minX,W=w.maxX,ut=w.minY,yt=w.maxY;XL&&(L=W),utst&&(st=yt)}):(b=0,L=0,Q=0,st=0);var R={x:b,y:Q,minX:b,minY:Q,maxX:L,maxY:st,width:L-b,height:st-Q};return R},B.prototype.getCanvasBBox=function(){var b=1/0,L=-1/0,Q=1/0,st=-1/0,at=this.getChildren().filter(function(y){return y.get("visible")&&(!y.isGroup()||y.isGroup()&&y.getChildren().length>0)});at.length>0?(0,dt.S6)(at,function(y){var w=y.getCanvasBBox(),X=w.minX,W=w.maxX,ut=w.minY,yt=w.maxY;XL&&(L=W),utst&&(st=yt)}):(b=0,L=0,Q=0,st=0);var R={x:b,y:Q,minX:b,minY:Q,maxX:L,maxY:st,width:L-b,height:st-Q};return R},B.prototype.getDefaultCfg=function(){var b=j.prototype.getDefaultCfg.call(this);return b.children=[],b},B.prototype.onAttrChange=function(b,L,Q){if(j.prototype.onAttrChange.call(this,b,L,Q),b==="matrix"){var st=this.getTotalMatrix();this._applyChildrenMarix(st)}},B.prototype.applyMatrix=function(b){var L=this.getTotalMatrix();j.prototype.applyMatrix.call(this,b);var Q=this.getTotalMatrix();Q!==L&&this._applyChildrenMarix(Q)},B.prototype._applyChildrenMarix=function(b){var L=this.getChildren();(0,dt.S6)(L,function(Q){Q.applyMatrix(b)})},B.prototype.addShape=function(){for(var b=[],L=0;L=0;R--){var y=b[R];if((0,dt.pP)(y)&&(y.isGroup()?at=y.getShape(L,Q,st):y.isHit(L,Q)&&(at=y)),at)break}return at},B.prototype.add=function(b){var L=this.getCanvas(),Q=this.getChildren(),st=this.get("timeline"),at=b.getParent();at&&tt(at,b,!1),b.set("parent",this),L&&$(b,L),st&&N(b,st),Q.push(b),b.onCanvasChange("add"),this._applyElementMatrix(b)},B.prototype._applyElementMatrix=function(b){var L=this.getTotalMatrix();L&&b.applyMatrix(L)},B.prototype.getChildren=function(){return this.get("children")},B.prototype.sort=function(){var b=this.getChildren();(0,dt.S6)(b,function(L,Q){return L[ht]=Q,L}),b.sort(ct(function(L,Q){return L.get("zIndex")-Q.get("zIndex")})),this.onCanvasChange("sort")},B.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var b=this.getChildren(),L=b.length-1;L>=0;L--)b[L].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},B.prototype.destroy=function(){this.get("destroyed")||(this.clear(),j.prototype.destroy.call(this))},B.prototype.getFirst=function(){return this.getChildByIndex(0)},B.prototype.getLast=function(){var b=this.getChildren();return this.getChildByIndex(b.length-1)},B.prototype.getChildByIndex=function(b){var L=this.getChildren();return L[b]},B.prototype.getCount=function(){var b=this.getChildren();return b.length},B.prototype.contain=function(b){var L=this.getChildren();return L.indexOf(b)>-1},B.prototype.removeChild=function(b,L){L===void 0&&(L=!0),this.contain(b)&&b.remove(L)},B.prototype.findAll=function(b){var L=[],Q=this.getChildren();return(0,dt.S6)(Q,function(st){b(st)&&L.push(st),st.isGroup()&&(L=L.concat(st.findAll(b)))}),L},B.prototype.find=function(b){var L=null,Q=this.getChildren();return(0,dt.S6)(Q,function(st){if(b(st)?L=st:st.isGroup()&&(L=st.find(b)),L)return!1}),L},B.prototype.findById=function(b){return this.find(function(L){return L.get("id")===b})},B.prototype.findByClassName=function(b){return this.find(function(L){return L.get("className")===b})},B.prototype.findAllByName=function(b){return this.findAll(function(L){return L.get("name")===b})},B}(S.Z);St.Z=nt},7178:function(Jt,St,H){"use strict";var ft=H(99938),S=H(13526),dt=H(67516),ot=H(16089),ht=H(71676),$=H(92561),N=dt.vs,J="matrix",tt=["zIndex","capture","visible","type"],ct=["repeat"],nt=":",j="*";function B(at){for(var R=[],y=0;yut.delay&&(0,S.each)(R.toAttrs,function(yt,Pt){W.call(ut.toAttrs,Pt)&&(delete ut.toAttrs[Pt],delete ut.fromAttrs[Pt])})}),at}var st=function(at){(0,ft.__extends)(R,at);function R(y){var w=at.call(this,y)||this;w.attrs={};var X=w.getDefaultAttrs();return(0,S.mix)(X,y.attrs),w.attrs=X,w.initAttrs(X),w.initAnimate(),w}return R.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},R.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},R.prototype.onCanvasChange=function(y){},R.prototype.initAttrs=function(y){},R.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},R.prototype.isGroup=function(){return!1},R.prototype.getParent=function(){return this.get("parent")},R.prototype.getCanvas=function(){return this.get("canvas")},R.prototype.attr=function(){for(var y,w=[],X=0;X0?W=Q(W,xt):X.addAnimator(this),W.push(xt),this.set("animations",W),this.set("_pause",{isPaused:!1})}},R.prototype.stopAnimate=function(y){var w=this;y===void 0&&(y=!0);var X=this.get("animations");(0,S.each)(X,function(W){y&&(W.onFrame?w.attr(W.onFrame(1)):w.attr(W.toAttrs)),W.callback&&W.callback()}),this.set("animating",!1),this.set("animations",[])},R.prototype.pauseAnimate=function(){var y=this.get("timeline"),w=this.get("animations"),X=y.getTime();return(0,S.each)(w,function(W){W._paused=!0,W._pauseTime=X,W.pauseCallback&&W.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:X}),this},R.prototype.resumeAnimate=function(){var y=this.get("timeline"),w=y.getTime(),X=this.get("animations"),W=this.get("_pause").pauseTime;return(0,S.each)(X,function(ut){ut.startTime=ut.startTime+(w-W),ut._paused=!1,ut._pauseTime=null,ut.resumeCallback&&ut.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",X),this},R.prototype.emitDelegation=function(y,w){var X=this,W=w.propagationPath,ut=this.getEvents(),yt;y==="mouseenter"?yt=w.fromShape:y==="mouseleave"&&(yt=w.toShape);for(var Pt=function(_t){var Ut=W[_t],Yt=Ut.get("name");if(Yt){if((Ut.isGroup()||Ut.isCanvas&&Ut.isCanvas())&&yt&&(0,ot.UY)(Ut,yt))return"break";(0,S.isArray)(Yt)?(0,S.each)(Yt,function(Ot){X.emitDelegateEvent(Ut,Ot,w)}):Ht.emitDelegateEvent(Ut,Yt,w)}},Ht=this,Wt=0;Wt=N&&tt.minY<=J&&tt.maxY>=J},$.prototype.afterAttrsChange=function(N){ht.prototype.afterAttrsChange.call(this,N),this.clearCacheBBox()},$.prototype.getBBox=function(){var N=this.cfg.bbox;return N||(N=this.calculateBBox(),this.set("bbox",N)),N},$.prototype.getCanvasBBox=function(){var N=this.cfg.canvasBBox;return N||(N=this.calculateCanvasBBox(),this.set("canvasBBox",N)),N},$.prototype.applyMatrix=function(N){ht.prototype.applyMatrix.call(this,N),this.set("canvasBBox",null)},$.prototype.calculateCanvasBBox=function(){var N=this.getBBox(),J=this.getTotalMatrix(),tt=N.minX,ct=N.minY,nt=N.maxX,j=N.maxY;if(J){var B=(0,dt.rG)(J,[N.minX,N.minY]),b=(0,dt.rG)(J,[N.maxX,N.minY]),L=(0,dt.rG)(J,[N.minX,N.maxY]),Q=(0,dt.rG)(J,[N.maxX,N.maxY]);tt=Math.min(B[0],b[0],L[0],Q[0]),nt=Math.max(B[0],b[0],L[0],Q[0]),ct=Math.min(B[1],b[1],L[1],Q[1]),j=Math.max(B[1],b[1],L[1],Q[1])}var st=this.attrs;if(st.shadowColor){var at=st.shadowBlur,R=at===void 0?0:at,y=st.shadowOffsetX,w=y===void 0?0:y,X=st.shadowOffsetY,W=X===void 0?0:X,ut=tt-R+w,yt=nt+R+w,Pt=ct-R+W,Ht=j+R+W;tt=Math.min(tt,ut),nt=Math.max(nt,yt),ct=Math.min(ct,Pt),j=Math.max(j,Ht)}return{x:tt,y:ct,minX:tt,minY:ct,maxX:nt,maxY:j,width:nt-tt,height:j-ct}},$.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},$.prototype.isClipShape=function(){return this.get("isClipShape")},$.prototype.isInShape=function(N,J){return!1},$.prototype.isOnlyHitBox=function(){return!1},$.prototype.isHit=function(N,J){var tt=this.get("startArrowShape"),ct=this.get("endArrowShape"),nt=[N,J,1];nt=this.invertFromMatrix(nt);var j=nt[0],B=nt[1],b=this._isInBBox(j,B);return this.isOnlyHitBox()?b:!!(b&&!this.isClipped(j,B)&&(this.isInShape(j,B)||tt&&tt.isHit(j,B)||ct&&ct.isHit(j,B)))},$}(S.Z);St.Z=ot},66143:function(Jt,St,H){"use strict";H.d(St,{_:function(){return u},C:function(){return c}});var ft={};H.r(ft),H.d(ft,{easeBack:function(){return k},easeBackIn:function(){return p},easeBackInOut:function(){return k},easeBackOut:function(){return _},easeBounce:function(){return K},easeBounceIn:function(){return d},easeBounceInOut:function(){return gt},easeBounceOut:function(){return K},easeCircle:function(){return ut},easeCircleIn:function(){return X},easeCircleInOut:function(){return ut},easeCircleOut:function(){return W},easeCubic:function(){return J},easeCubicIn:function(){return $},easeCubicInOut:function(){return J},easeCubicOut:function(){return N},easeElastic:function(){return s},easeElasticIn:function(){return M},easeElasticInOut:function(){return e},easeElasticOut:function(){return s},easeExp:function(){return w},easeExpIn:function(){return R},easeExpInOut:function(){return w},easeExpOut:function(){return y},easeLinear:function(){return S},easePoly:function(){return j},easePolyIn:function(){return ct},easePolyInOut:function(){return j},easePolyOut:function(){return nt},easeQuad:function(){return ht},easeQuadIn:function(){return dt},easeQuadInOut:function(){return ht},easeQuadOut:function(){return ot},easeSin:function(){return st},easeSinIn:function(){return L},easeSinInOut:function(){return st},easeSinOut:function(){return Q}});function S(l){return+l}function dt(l){return l*l}function ot(l){return l*(2-l)}function ht(l){return((l*=2)<=1?l*l:--l*(2-l)+1)/2}function $(l){return l*l*l}function N(l){return--l*l*l+1}function J(l){return((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2}var tt=3,ct=function l(C){C=+C;function A(Y){return Math.pow(Y,C)}return A.exponent=l,A}(tt),nt=function l(C){C=+C;function A(Y){return 1-Math.pow(1-Y,C)}return A.exponent=l,A}(tt),j=function l(C){C=+C;function A(Y){return((Y*=2)<=1?Math.pow(Y,C):2-Math.pow(2-Y,C))/2}return A.exponent=l,A}(tt),B=Math.PI,b=B/2;function L(l){return+l==1?1:1-Math.cos(l*b)}function Q(l){return Math.sin(l*b)}function st(l){return(1-Math.cos(B*l))/2}function at(l){return(Math.pow(2,-10*l)-.0009765625)*1.0009775171065494}function R(l){return at(1-+l)}function y(l){return 1-at(l)}function w(l){return((l*=2)<=1?at(1-l):2-at(l-1))/2}function X(l){return 1-Math.sqrt(1-l*l)}function W(l){return Math.sqrt(1- --l*l)}function ut(l){return((l*=2)<=1?1-Math.sqrt(1-l*l):Math.sqrt(1-(l-=2)*l)+1)/2}var yt=4/11,Pt=6/11,Ht=8/11,Wt=3/4,Tt=9/11,_t=10/11,Ut=15/16,Yt=21/22,Ot=63/64,a=1/yt/yt;function d(l){return 1-K(1-l)}function K(l){return(l=+l)Math.PI/2?Math.PI-Tt:Tt,_t=_t>Math.PI/2?Math.PI-_t:_t;var Ut={xExtra:Math.cos(Wt/2-Tt)*(w/2*(1/Math.sin(Wt/2)))-w/2||0,yExtra:Math.cos(_t-Wt/2)*(w/2*(1/Math.sin(Wt/2)))-w/2||0};return Ut}function st(y){var w=y.attr(),X=w.path,W=w.stroke,ut=W?w.lineWidth:0,yt=y.get("segments")||(0,B.zx)(X),Pt=L(yt,ut),Ht=Pt.x,Wt=Pt.y,Tt=Pt.width,_t=Pt.height,Ut={minX:Ht,minY:Wt,maxX:Ht+Tt,maxY:Wt+_t};return Ut=J(y,Ut),{x:Ut.minX,y:Ut.minY,width:Ut.maxX-Ut.minX,height:Ut.maxY-Ut.minY}}function at(y){var w=y.attr(),X=w.x1,W=w.y1,ut=w.x2,yt=w.y2,Pt=Math.min(X,ut),Ht=Math.max(X,ut),Wt=Math.min(W,yt),Tt=Math.max(W,yt),_t={minX:Pt,maxX:Ht,minY:Wt,maxY:Tt};return _t=J(y,_t),{x:_t.minX,y:_t.minY,width:_t.maxX-_t.minX,height:_t.maxY-_t.minY}}function R(y){var w=y.attr(),X=w.x,W=w.y,ut=w.rx,yt=w.ry;return{x:X-ut,y:W-yt,width:ut*2,height:yt*2}}S("rect",ot),S("image",ot),S("circle",ht),S("marker",ht),S("polyline",tt),S("polygon",ct),S("text",j),S("path",st),S("line",at),S("ellipse",R)},79160:function(Jt,St){"use strict";var H=function(){function ft(S,dt){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=S,this.name=S,this.originalEvent=dt,this.timeStamp=dt.timeStamp}return ft.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},ft.prototype.stopPropagation=function(){this.propagationStopped=!0},ft.prototype.toString=function(){var S=this.type;return"[Event (type="+S+")]"},ft.prototype.save=function(){},ft.prototype.restore=function(){},ft}();St.Z=H},25099:function(Jt,St,H){"use strict";H.r(St),H.d(St,{AbstractCanvas:function(){return ct.Z},AbstractGroup:function(){return nt.Z},AbstractShape:function(){return j.Z},Base:function(){return tt.Z},Event:function(){return J.Z},PathUtil:function(){return ft},assembleFont:function(){return b.$O},getBBoxMethod:function(){return B.b},getOffScreenContext:function(){return st.L},getTextHeight:function(){return b.FE},invert:function(){return Q.U_},isAllowCapture:function(){return L.pP},multiplyVec2:function(){return Q.rG},registerBBox:function(){return B.W},registerEasing:function(){return at.C},version:function(){return R}});var ft=H(37925),S=H(55530),dt=H.n(S),N={};for(var ot in S)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(ot)<0&&(N[ot]=function(y){return S[y]}.bind(0,ot));H.d(St,N);var ht=H(99303),$=H.n(ht),N={};for(var ot in ht)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(ot)<0&&(N[ot]=function(w){return ht[w]}.bind(0,ot));H.d(St,N);var J=H(79160),tt=H(92561),ct=H(8280),nt=H(92381),j=H(37253),B=H(2894),b=H(54143),L=H(16089),Q=H(71676),st=H(58971),at=H(66143),R="0.5.11"},99303:function(){},55530:function(){},71676:function(Jt,St,H){"use strict";H.d(St,{U_:function(){return dt},rG:function(){return S},xq:function(){return ft}});function ft(ot,ht){var $=[],N=ot[0],J=ot[1],tt=ot[2],ct=ot[3],nt=ot[4],j=ot[5],B=ot[6],b=ot[7],L=ot[8],Q=ht[0],st=ht[1],at=ht[2],R=ht[3],y=ht[4],w=ht[5],X=ht[6],W=ht[7],ut=ht[8];return $[0]=Q*N+st*ct+at*B,$[1]=Q*J+st*nt+at*b,$[2]=Q*tt+st*j+at*L,$[3]=R*N+y*ct+w*B,$[4]=R*J+y*nt+w*b,$[5]=R*tt+y*j+w*L,$[6]=X*N+W*ct+ut*B,$[7]=X*J+W*nt+ut*b,$[8]=X*tt+W*j+ut*L,$}function S(ot,ht){var $=[],N=ht[0],J=ht[1];return $[0]=ot[0]*N+ot[3]*J+ot[6],$[1]=ot[1]*N+ot[4]*J+ot[7],$}function dt(ot){var ht=[],$=ot[0],N=ot[1],J=ot[2],tt=ot[3],ct=ot[4],nt=ot[5],j=ot[6],B=ot[7],b=ot[8],L=b*ct-nt*B,Q=-b*tt+nt*j,st=B*tt-ct*j,at=$*L+N*Q+J*st;return at?(at=1/at,ht[0]=L*at,ht[1]=(-b*N+J*B)*at,ht[2]=(nt*N-J*ct)*at,ht[3]=Q*at,ht[4]=(b*$-J*j)*at,ht[5]=(-nt*$+J*tt)*at,ht[6]=st*at,ht[7]=(-B*$+N*j)*at,ht[8]=(ct*$-N*tt)*at,ht):null}},58971:function(Jt,St,H){"use strict";H.d(St,{L:function(){return S}});var ft=null;function S(){if(!ft){var dt=document.createElement("canvas");dt.width=1,dt.height=1,ft=dt.getContext("2d")}return ft}},37925:function(Jt,St,H){"use strict";H.r(St),H.d(St,{catmullRomToBezier:function(){return $},fillPath:function(){return Ut},fillPathByDiff:function(){return d},formatPath:function(){return xt},intersection:function(){return Ht},parsePathArray:function(){return b},parsePathString:function(){return ht},pathToAbsolute:function(){return J},pathToCurve:function(){return j},rectPath:function(){return y}});var ft=H(13526),S=` \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,dt=new RegExp("([a-z])["+S+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+S+"]*,?["+S+"]*)+)","ig"),ot=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+S+"]*,?["+S+"]*","ig"),ht=function(p){if(!p)return null;if((0,ft.isArray)(p))return p;var _={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},k=[];return String(p).replace(dt,function(E,Z,it){var M=[],s=Z.toLowerCase();if(it.replace(ot,function(e,t){t&&M.push(+t)}),s==="m"&&M.length>2&&(k.push([Z].concat(M.splice(0,2))),s="l",Z=Z==="m"?"l":"L"),s==="o"&&M.length===1&&k.push([Z,M[0]]),s==="r")k.push([Z].concat(M));else for(;M.length>=_[s]&&(k.push([Z].concat(M.splice(0,_[s]))),!!_[s]););return p}),k},$=function(p,_){for(var k=[],E=0,Z=p.length;Z-2*!_>E;E+=2){var it=[{x:+p[E-2],y:+p[E-1]},{x:+p[E],y:+p[E+1]},{x:+p[E+2],y:+p[E+3]},{x:+p[E+4],y:+p[E+5]}];_?E?Z-4===E?it[3]={x:+p[0],y:+p[1]}:Z-2===E&&(it[2]={x:+p[0],y:+p[1]},it[3]={x:+p[2],y:+p[3]}):it[0]={x:+p[Z-2],y:+p[Z-1]}:Z-4===E?it[3]=it[2]:E||(it[0]={x:+p[E],y:+p[E+1]}),k.push(["C",(-it[0].x+6*it[1].x+it[2].x)/6,(-it[0].y+6*it[1].y+it[2].y)/6,(it[1].x+6*it[2].x-it[3].x)/6,(it[1].y+6*it[2].y-it[3].y)/6,it[2].x,it[2].y])}return k},N=function(p,_,k,E,Z){var it=[];if(Z===null&&E===null&&(E=k),p=+p,_=+_,k=+k,E=+E,Z!==null){var M=Math.PI/180,s=p+k*Math.cos(-E*M),e=p+k*Math.cos(-Z*M),t=_+k*Math.sin(-E*M),u=_+k*Math.sin(-Z*M);it=[["M",s,t],["A",k,k,0,+(Z-E>180),0,e,u]]}else it=[["M",p,_],["m",0,-E],["a",k,E,0,1,1,0,2*E],["a",k,E,0,1,1,0,-2*E],["z"]];return it},J=function(p){if(p=ht(p),!p||!p.length)return[["M",0,0]];var _=[],k=0,E=0,Z=0,it=0,M=0,s,e;p[0][0]==="M"&&(k=+p[0][1],E=+p[0][2],Z=k,it=E,M++,_[0]=["M",k,E]);for(var t=p.length===3&&p[0][0]==="M"&&p[1][0].toUpperCase()==="R"&&p[2][0].toUpperCase()==="Z",u=void 0,c=void 0,l=M,C=p.length;l1&&(r=Math.sqrt(r),k=r*k,E=r*E);var i=k*k,o=E*E,P=(it===M?-1:1)*Math.sqrt(Math.abs((i*o-i*m*m-o*v*v)/(i*m*m+o*v*v)));I=P*k*m/E+(p+s)/2,g=P*-E*v/k+(_+e)/2,A=Math.asin(((_-g)/E).toFixed(9)),Y=Math.asin(((e-g)/E).toFixed(9)),A=pY&&(A=A-Math.PI*2),!M&&Y>A&&(Y=Y-Math.PI*2)}var F=Y-A;if(Math.abs(F)>u){var V=Y,q=s,rt=e;Y=A+u*(M&&Y>A?1:-1),s=I+k*Math.cos(Y),e=g+E*Math.sin(Y),l=nt(s,e,k,E,Z,0,M,q,rt,[Y,V,I,g])}F=Y-A;var et=Math.cos(A),mt=Math.sin(A),pt=Math.cos(Y),bt=Math.sin(Y),Ft=Math.tan(F/4),Ct=4/3*k*Ft,Bt=4/3*E*Ft,Lt=[p,_],Nt=[p+Ct*mt,_-Bt*et],Dt=[s+Ct*bt,e-Bt*pt],Rt=[s,e];if(Nt[0]=2*Lt[0]-Nt[0],Nt[1]=2*Lt[1]-Nt[1],t)return[Nt,Dt,Rt].concat(l);l=[Nt,Dt,Rt].concat(l).join().split(",");for(var Zt=[],Gt=0,zt=l.length;Gt7){v[m].shift();for(var r=v[m];r.length;)M[m]="A",E&&(s[m]="A"),v.splice(m++,0,["C"].concat(r.splice(0,6)));v.splice(m,1),u=Math.max(k.length,E&&E.length||0)}},C=function(v,m,r,i,o){v&&m&&v[o][0]==="M"&&m[o][0]!=="M"&&(m.splice(o,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=v[o][1],r.y=v[o][2],u=Math.max(k.length,E&&E.length||0))};u=Math.max(k.length,E&&E.length||0);for(var A=0;A1?1:e<0?0:e;for(var t=e/2,u=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],C=0,A=0;A0&&C<1&&e.push(C);continue}var Y=c*c-4*l*u,I=Math.sqrt(Y);if(!(Y<0)){var g=(-c+I)/(2*u);g>0&&g<1&&e.push(g);var n=(-c-I)/(2*u);n>0&&n<1&&e.push(n)}}for(var v=e.length,m=v,r;v--;)C=e[v],r=1-C,t[0][v]=r*r*r*p+3*r*r*C*k+3*r*C*C*Z+C*C*C*M,t[1][v]=r*r*r*_+3*r*r*C*E+3*r*C*C*it+C*C*C*s;return t[0][m]=p,t[1][m]=_,t[0][m+1]=M,t[1][m+1]=s,t[0].length=t[1].length=m+2,{min:{x:Math.min.apply(0,t[0]),y:Math.min.apply(0,t[1])},max:{x:Math.max.apply(0,t[0]),y:Math.max.apply(0,t[1])}}},at=function(p,_,k,E,Z,it,M,s){if(!(Math.max(p,k)Math.max(Z,M)||Math.max(_,E)Math.max(it,s))){var e=(p*E-_*k)*(Z-M)-(p-k)*(Z*s-it*M),t=(p*E-_*k)*(it-s)-(_-E)*(Z*s-it*M),u=(p-k)*(it-s)-(_-E)*(Z-M);if(u){var c=e/u,l=t/u,C=+c.toFixed(2),A=+l.toFixed(2);if(!(C<+Math.min(p,k).toFixed(2)||C>+Math.max(p,k).toFixed(2)||C<+Math.min(Z,M).toFixed(2)||C>+Math.max(Z,M).toFixed(2)||A<+Math.min(_,E).toFixed(2)||A>+Math.max(_,E).toFixed(2)||A<+Math.min(it,s).toFixed(2)||A>+Math.max(it,s).toFixed(2)))return{x:c,y:l}}}},R=function(p,_,k){return _>=p.x&&_<=p.x+p.width&&k>=p.y&&k<=p.y+p.height},y=function(p,_,k,E,Z){if(Z)return[["M",+p+ +Z,_],["l",k-Z*2,0],["a",Z,Z,0,0,1,Z,Z],["l",0,E-Z*2],["a",Z,Z,0,0,1,-Z,Z],["l",Z*2-k,0],["a",Z,Z,0,0,1,-Z,-Z],["l",0,Z*2-E],["a",Z,Z,0,0,1,Z,-Z],["z"]];var it=[["M",p,_],["l",k,0],["l",0,E],["l",-k,0],["z"]];return it.parsePathArray=b,it},w=function(p,_,k,E){return p===null&&(p=_=k=E=0),_===null&&(_=p.y,k=p.width,E=p.height,p=p.x),{x:p,y:_,width:k,w:k,height:E,h:E,x2:p+k,y2:_+E,cx:p+k/2,cy:_+E/2,r1:Math.min(k,E)/2,r2:Math.max(k,E)/2,r0:Math.sqrt(k*k+E*E)/2,path:y(p,_,k,E),vb:[p,_,k,E].join(" ")}},X=function(p,_){return p=w(p),_=w(_),R(_,p.x,p.y)||R(_,p.x2,p.y)||R(_,p.x,p.y2)||R(_,p.x2,p.y2)||R(p,_.x,_.y)||R(p,_.x2,_.y)||R(p,_.x,_.y2)||R(p,_.x2,_.y2)||(p.x<_.x2&&p.x>_.x||_.xp.x)&&(p.y<_.y2&&p.y>_.y||_.yp.y)},W=function(p,_,k,E,Z,it,M,s){(0,ft.isArray)(p)||(p=[p,_,k,E,Z,it,M,s]);var e=st.apply(null,p);return w(e.min.x,e.min.y,e.max.x-e.min.x,e.max.y-e.min.y)},ut=function(p,_,k,E,Z,it,M,s,e){var t=1-e,u=Math.pow(t,3),c=Math.pow(t,2),l=e*e,C=l*e,A=u*p+c*3*e*k+t*3*e*e*Z+C*M,Y=u*_+c*3*e*E+t*3*e*e*it+C*s,I=p+2*e*(k-p)+l*(Z-2*k+p),g=_+2*e*(E-_)+l*(it-2*E+_),n=k+2*e*(Z-k)+l*(M-2*Z+k),v=E+2*e*(it-E)+l*(s-2*it+E),m=t*p+e*k,r=t*_+e*E,i=t*Z+e*M,o=t*it+e*s,P=90-Math.atan2(I-n,g-v)*180/Math.PI;return{x:A,y:Y,m:{x:I,y:g},n:{x:n,y:v},start:{x:m,y:r},end:{x:i,y:o},alpha:P}},yt=function(p,_,k){var E=W(p),Z=W(_);if(!X(E,Z))return k?0:[];for(var it=Q.apply(0,p),M=Q.apply(0,_),s=~~(it/8),e=~~(M/8),t=[],u=[],c={},l=k?0:[],C=0;C=0&&o<=1&&P>=0&&P<=1&&(k?l+=1:l.push({x:i.x,y:i.y,t1:o,t2:P}))}}return l},Pt=function(p,_,k){p=j(p),_=j(_);for(var E,Z,it,M,s,e,t,u,c,l,C=k?0:[],A=0,Y=p.length;A=3&&(c.length===3&&l.push("Q"),l=l.concat(c[1])),c.length===2&&l.push("L"),l=l.concat(c[c.length-1]),l});return u}var _t=function(p,_,k){if(k===1)return[[].concat(p)];var E=[];if(_[0]==="L"||_[0]==="C"||_[0]==="Q")E=E.concat(Tt(p,_,k));else{var Z=[].concat(p);Z[0]==="M"&&(Z[0]="L");for(var it=0;it<=k-1;it++)E.push(Z)}return E},Ut=function(p,_){if(p.length===1)return p;var k=p.length-1,E=_.length-1,Z=k/E,it=[];if(p.length===1&&p[0][0]==="M"){for(var M=0;M=0;e--)M=it[e].index,it[e].type==="add"?p.splice(M,0,[].concat(p[M])):p.splice(M,1)}E=p.length;var c=Z-E;if(E0)k=K(k,p[E-1],1);else{p[E]=_[E];break}p[E]=["Q"].concat(k.reduce(function(Z,it){return Z.concat(it)},[]));break;case"T":p[E]=["T"].concat(k[0]);break;case"C":if(k.length<3)if(E>0)k=K(k,p[E-1],2);else{p[E]=_[E];break}p[E]=["C"].concat(k.reduce(function(Z,it){return Z.concat(it)},[]));break;case"S":if(k.length<2)if(E>0)k=K(k,p[E-1],1);else{p[E]=_[E];break}p[E]=["S"].concat(k.reduce(function(Z,it){return Z.concat(it)},[]));break;default:p[E]=_[E]}return p}},54143:function(Jt,St,H){"use strict";H.d(St,{$O:function(){return $},FE:function(){return dt},mY:function(){return ht}});var ft=H(16089),S=H(58971);function dt(N,J,tt){var ct=1;if((0,ft.HD)(N)&&(ct=N.split(` `).length),ct>1){var nt=ot(J,tt);return J*ct+nt*(ct-1)}return J}function ot(N,J){return J?J-N:N*.14}function ht(N,J){var tt=(0,S.L)(),ct=0;if((0,ft.kK)(N)||N==="")return ct;if(tt.save(),tt.font=J,(0,ft.HD)(N)&&N.includes(` `)){var nt=N.split(` `);(0,ft.S6)(nt,function(j){var B=tt.measureText(j).width;ct=R.minX&&b<=R.maxX&&L>=R.minY&&L<=R.maxY}function $(B,b,L){if(!ht(B,b,L))return null;for(var Q=null,st=B.getChildren(),at=st.length,R=at-1;R>=0;R--){var y=st[R];if(y.isGroup())Q=$(y,b,L);else if(ht(y,b,L)){var w=y,X=ot(y,b,L),W=X[0],ut=X[1];w.isInShape(W,ut)&&(Q=y)}if(Q)break}return Q}var N=H(10541),J=H(85842),tt=H(76141),ct=H(29246),nt=function(B){(0,ft.__extends)(b,B);function b(){return B!==null&&B.apply(this,arguments)||this}return b.prototype.getDefaultCfg=function(){var L=B.prototype.getDefaultCfg.call(this);return L.renderer="canvas",L.autoDraw=!0,L.localRefresh=!0,L.refreshElements=[],L.clipView=!0,L.quickHit=!1,L},b.prototype.onCanvasChange=function(L){(L==="attr"||L==="sort"||L==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},b.prototype.getShapeBase=function(){return N},b.prototype.getGroupBase=function(){return J.Z},b.prototype.getPixelRatio=function(){var L=this.get("pixelRatio")||(0,tt.mX)();return L>=1?Math.ceil(L):1},b.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},b.prototype.createDom=function(){var L=document.createElement("canvas"),Q=L.getContext("2d");return this.set("context",Q),L},b.prototype.setDOMSize=function(L,Q){B.prototype.setDOMSize.call(this,L,Q);var st=this.get("context"),at=this.get("el"),R=this.getPixelRatio();at.width=R*L,at.height=R*Q,R>1&&st.scale(R,R)},b.prototype.clear=function(){B.prototype.clear.call(this),this._clearFrame();var L=this.get("context"),Q=this.get("el");L.clearRect(0,0,Q.width,Q.height)},b.prototype.getShape=function(L,Q){var st;return this.get("quickHit")?st=$(this,L,Q):st=B.prototype.getShape.call(this,L,Q,null),st},b.prototype._getRefreshRegion=function(){var L=this.get("refreshElements"),Q=this.getViewRange(),st;if(L.length&&L[0]===this)st=Q;else if(st=(0,ct.tJ)(L),st){st.minX=Math.floor(st.minX),st.minY=Math.floor(st.minY),st.maxX=Math.ceil(st.maxX),st.maxY=Math.ceil(st.maxY),st.maxY+=1;var at=this.get("clipView");at&&(st=(0,ct.T2)(st,Q))}return st},b.prototype.refreshElement=function(L){var Q=this.get("refreshElements");Q.push(L)},b.prototype._clearFrame=function(){var L=this.get("drawFrame");L&&((0,tt.VS)(L),this.set("drawFrame",null),this.set("refreshElements",[]))},b.prototype.draw=function(){var L=this.get("drawFrame");this.get("autoDraw")&&L||this._startDraw()},b.prototype._drawAll=function(){var L=this.get("context"),Q=this.get("el"),st=this.getChildren();L.clearRect(0,0,Q.width,Q.height),(0,ct.DE)(L,this),(0,ct.NX)(L,st),this.set("refreshElements",[])},b.prototype._drawRegion=function(){var L=this.get("context"),Q=this.get("refreshElements"),st=this.getChildren(),at=this._getRefreshRegion();at?(L.clearRect(at.minX,at.minY,at.maxX-at.minX,at.maxY-at.minY),L.save(),L.beginPath(),L.rect(at.minX,at.minY,at.maxX-at.minX,at.maxY-at.minY),L.clip(),(0,ct.DE)(L,this),(0,ct.kU)(this,st,at),(0,ct.NX)(L,st,at),L.restore()):Q.length&&(0,ct.sT)(Q),(0,tt.S6)(Q,function(R){R.get("hasChanged")&&R.set("hasChanged",!1)}),this.set("refreshElements",[])},b.prototype._startDraw=function(){var L=this,Q=this.get("drawFrame");Q||(Q=(0,tt.U7)(function(){L.get("localRefresh")?L._drawRegion():L._drawAll(),L.set("drawFrame",null)}),this.set("drawFrame",Q))},b.prototype.skipDraw=function(){},b.prototype.removeDom=function(){var L=this.get("el");L.width=0,L.height=0,L.parentNode.removeChild(L)},b}(S.AbstractCanvas),j=nt},85842:function(Jt,St,H){"use strict";var ft=H(99938),S=H(25099),dt=H(10541),ot=H(29246),ht=H(13526),$=H(76141),N=function(J){(0,ft.__extends)(tt,J);function tt(){return J!==null&&J.apply(this,arguments)||this}return tt.prototype.onCanvasChange=function(ct){(0,ot.md)(this,ct)},tt.prototype.getShapeBase=function(){return dt},tt.prototype.getGroupBase=function(){return tt},tt.prototype._applyClip=function(ct,nt){nt&&(ct.save(),(0,ot.DE)(ct,nt),nt.createPath(ct),ct.restore(),ct.clip(),nt._afterDraw())},tt.prototype.cacheCanvasBBox=function(){var ct=this.cfg.children,nt=[],j=[];(0,ht.each)(ct,function(y){var w=y.cfg.cacheCanvasBBox;w&&y.cfg.isInView&&(nt.push(w.minX,w.maxX),j.push(w.minY,w.maxY))});var B=null;if(nt.length){var b=(0,ht.min)(nt),L=(0,ht.max)(nt),Q=(0,ht.min)(j),st=(0,ht.max)(j);B={minX:b,minY:Q,x:b,y:Q,maxX:L,maxY:st,width:L-b,height:st-Q};var at=this.cfg.canvas;if(at){var R=at.getViewRange();this.set("isInView",(0,$.qb)(B,R))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",B)},tt.prototype.draw=function(ct,nt){var j=this.cfg.children,B=nt?this.cfg.refresh:!0;j.length&&B&&(ct.save(),(0,ot.DE)(ct,this),this._applyClip(ct,this.getClip()),(0,ot.NX)(ct,j,nt),ct.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},tt.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},tt}(S.AbstractGroup);St.Z=N},67938:function(Jt,St,H){"use strict";H.r(St),H.d(St,{Canvas:function(){return ht.Z},Group:function(){return $.Z},Shape:function(){return ft},getArcParams:function(){return N.Z},version:function(){return J}});var ft=H(10541),S=H(25099),dt={};for(var ot in S)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(ot)<0&&(dt[ot]=function(tt){return S[tt]}.bind(0,ot));H.d(St,dt);var ht=H(73219),$=H(85842),N=H(61472),J="0.5.12"},10541:function(Jt,St,H){"use strict";H.r(St),H.d(St,{Base:function(){return J},Circle:function(){return ct},Ellipse:function(){return B},Image:function(){return Q},Line:function(){return w},Marker:function(){return Pt},Path:function(){return E},Polygon:function(){return M},Polyline:function(){return e},Rect:function(){return C},Text:function(){return Y}});var ft={};H.r(ft),H.d(ft,{Base:function(){return J},Circle:function(){return ct},Ellipse:function(){return B},Image:function(){return Q},Line:function(){return w},Marker:function(){return Pt},Path:function(){return E},Polygon:function(){return M},Polyline:function(){return e},Rect:function(){return C},Text:function(){return Y}});var S=H(99938),dt=H(25099),ot=H(76141),ht=H(29246),$=H(85842),N=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},g.prototype.getShapeBase=function(){return ft},g.prototype.getGroupBase=function(){return $.Z},g.prototype.onCanvasChange=function(n){(0,ht.md)(this,n)},g.prototype.calculateBBox=function(){var n=this.get("type"),v=this.getHitLineWidth(),m=(0,dt.getBBoxMethod)(n),r=m(this),i=v/2,o=r.x-i,P=r.y-i,F=r.x+r.width+i,V=r.y+r.height+i;return{x:o,minX:o,y:P,minY:P,width:r.width+v,height:r.height+v,maxX:F,maxY:V}},g.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},g.prototype.isStroke=function(){return!!this.attrs.stroke},g.prototype._applyClip=function(n,v){v&&(n.save(),(0,ht.DE)(n,v),v.createPath(n),n.restore(),n.clip(),v._afterDraw())},g.prototype.draw=function(n,v){var m=this.cfg.clipShape;if(v){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var r=this.getCanvasBBox();if(!(0,ot.qb)(v,r)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}n.save(),(0,ht.DE)(n,this),this._applyClip(n,m),this.drawPath(n),n.restore(),this._afterDraw()},g.prototype.getCanvasViewBox=function(){var n=this.cfg.canvas;return n?n.getViewRange():null},g.prototype.cacheCanvasBBox=function(){var n=this.getCanvasViewBox();if(n){var v=this.getCanvasBBox(),m=(0,ot.qb)(v,n);this.set("isInView",m),m?this.set("cacheCanvasBBox",v):this.set("cacheCanvasBBox",null)}},g.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},g.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},g.prototype.drawPath=function(n){this.createPath(n),this.strokeAndFill(n),this.afterDrawPath(n)},g.prototype.fill=function(n){n.fill()},g.prototype.stroke=function(n){n.stroke()},g.prototype.strokeAndFill=function(n){var v=this.attrs,m=v.lineWidth,r=v.opacity,i=v.strokeOpacity,o=v.fillOpacity;this.isFill()&&(!(0,ot.kK)(o)&&o!==1?(n.globalAlpha=o,this.fill(n),n.globalAlpha=r):this.fill(n)),this.isStroke()&&m>0&&(!(0,ot.kK)(i)&&i!==1&&(n.globalAlpha=i),this.stroke(n)),this.afterDrawPath(n)},g.prototype.createPath=function(n){},g.prototype.afterDrawPath=function(n){},g.prototype.isInShape=function(n,v){var m=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(n,v,m,r,i)},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){return!1},g.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var n=this.attrs;return n.lineWidth+n.lineAppendWidth},g}(dt.AbstractShape),J=N,tt=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,r:0})},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){var o=this.attr(),P=o.x,F=o.y,V=o.r,q=i/2,rt=(0,ot.TE)(P,F,n,v);return r&&m?rt<=V+q:r?rt<=V:m?rt>=V-q&&rt<=V+q:!1},g.prototype.createPath=function(n){var v=this.attr(),m=v.x,r=v.y,i=v.r;n.beginPath(),n.arc(m,r,i,0,Math.PI*2,!1),n.closePath()},g}(J),ct=tt;function nt(I,g,n,v){return I/(n*n)+g/(v*v)}var j=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,rx:0,ry:0})},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){var o=this.attr(),P=i/2,F=o.x,V=o.y,q=o.rx,rt=o.ry,et=(n-F)*(n-F),mt=(v-V)*(v-V);return r&&m?nt(et,mt,q+P,rt+P)<=1:r?nt(et,mt,q,rt)<=1:m?nt(et,mt,q-P,rt-P)>=1&&nt(et,mt,q+P,rt+P)<=1:!1},g.prototype.createPath=function(n){var v=this.attr(),m=v.x,r=v.y,i=v.rx,o=v.ry;if(n.beginPath(),n.ellipse)n.ellipse(m,r,i,o,0,0,Math.PI*2,!1);else{var P=i>o?i:o,F=i>o?1:i/o,V=i>o?o/i:1;n.save(),n.translate(m,r),n.scale(F,V),n.arc(0,0,P,0,Math.PI*2),n.restore(),n.closePath()}},g}(J),B=j;function b(I){return I instanceof HTMLElement&&(0,ot.HD)(I.nodeName)&&I.nodeName.toUpperCase()==="CANVAS"}var L=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,width:0,height:0})},g.prototype.initAttrs=function(n){this._setImage(n.img)},g.prototype.isStroke=function(){return!1},g.prototype.isOnlyHitBox=function(){return!0},g.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var n=this.get("canvas");n?n.draw():this.createPath(this.get("context"))}},g.prototype._setImage=function(n){var v=this,m=this.attrs;if((0,ot.HD)(n)){var r=new Image;r.onload=function(){if(v.destroyed)return!1;v.attr("img",r),v.set("loading",!1),v._afterLoading();var i=v.get("callback");i&&i.call(v)},r.crossOrigin="Anonymous",r.src=n,this.set("loading",!0)}else n instanceof Image?(m.width||(m.width=n.width),m.height||(m.height=n.height)):b(n)&&(m.width||(m.width=Number(n.getAttribute("width"))),m.height||(m.height,Number(n.getAttribute("height"))))},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),n==="img"&&this._setImage(v)},g.prototype.createPath=function(n){if(this.get("loading")){this.set("toDraw",!0),this.set("context",n);return}var v=this.attr(),m=v.x,r=v.y,i=v.width,o=v.height,P=v.sx,F=v.sy,V=v.swidth,q=v.sheight,rt=v.img;(rt instanceof Image||b(rt))&&(!(0,ot.kK)(P)&&!(0,ot.kK)(F)&&!(0,ot.kK)(V)&&!(0,ot.kK)(q)?n.drawImage(rt,P,F,V,q,m,r,i,o):n.drawImage(rt,m,r,i,o))},g}(J),Q=L,st=H(86031);function at(I,g,n,v,m,r,i){var o=Math.min(I,n),P=Math.max(I,n),F=Math.min(g,v),V=Math.max(g,v),q=m/2;return r>=o-q&&r<=P+q&&i>=F-q&&i<=V+q?st.x1.pointToLine(I,g,n,v,r,i)<=m/2:!1}var R=H(55274),y=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},g.prototype.initAttrs=function(n){this.setArrow()},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),this.setArrow()},g.prototype.setArrow=function(){var n=this.attr(),v=n.x1,m=n.y1,r=n.x2,i=n.y2,o=n.startArrow,P=n.endArrow;o&&R.Yf(this,n,r,i,v,m),P&&R.YR(this,n,v,m,r,i)},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){if(!m||!i)return!1;var o=this.attr(),P=o.x1,F=o.y1,V=o.x2,q=o.y2;return at(P,F,V,q,i,n,v)},g.prototype.createPath=function(n){var v=this.attr(),m=v.x1,r=v.y1,i=v.x2,o=v.y2,P=v.startArrow,F=v.endArrow,V={dx:0,dy:0},q={dx:0,dy:0};P&&P.d&&(V=R.jF(m,r,i,o,v.startArrow.d)),F&&F.d&&(q=R.jF(m,r,i,o,v.endArrow.d)),n.beginPath(),n.moveTo(m+V.dx,r+V.dy),n.lineTo(i-q.dx,o-q.dy)},g.prototype.afterDrawPath=function(n){var v=this.get("startArrowShape"),m=this.get("endArrowShape");v&&v.draw(n),m&&m.draw(n)},g.prototype.getTotalLength=function(){var n=this.attr(),v=n.x1,m=n.y1,r=n.x2,i=n.y2;return st.x1.length(v,m,r,i)},g.prototype.getPoint=function(n){var v=this.attr(),m=v.x1,r=v.y1,i=v.x2,o=v.y2;return st.x1.pointAt(m,r,i,o,n)},g}(J),w=y,X=H(13526),W=H(81182),ut={circle:function(I,g,n){return[["M",I-n,g],["A",n,n,0,1,0,I+n,g],["A",n,n,0,1,0,I-n,g]]},square:function(I,g,n){return[["M",I-n,g-n],["L",I+n,g-n],["L",I+n,g+n],["L",I-n,g+n],["Z"]]},diamond:function(I,g,n){return[["M",I-n,g],["L",I,g-n],["L",I+n,g],["L",I,g+n],["Z"]]},triangle:function(I,g,n){var v=n*Math.sin(.3333333333333333*Math.PI);return[["M",I-n,g+v],["L",I,g-v],["L",I+n,g+v],["Z"]]},"triangle-down":function(I,g,n){var v=n*Math.sin(.3333333333333333*Math.PI);return[["M",I-n,g-v],["L",I+n,g-v],["L",I,g+v],["Z"]]}},yt=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.initAttrs=function(n){this._resetParamsCache()},g.prototype._resetParamsCache=function(){this.set("paramsCache",{})},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),["symbol","x","y","r","radius"].indexOf(n)!==-1&&this._resetParamsCache()},g.prototype.isOnlyHitBox=function(){return!0},g.prototype._getR=function(n){return(0,X.isNil)(n.r)?n.radius:n.r},g.prototype._getPath=function(){var n=this.attr(),v=n.x,m=n.y,r=n.symbol||"circle",i=this._getR(n),o,P;if((0,ot.mf)(r))o=r,P=o(v,m,i),P=(0,W.wb)(P);else{if(o=g.Symbols[r],!o)return console.warn(r+" marker is not supported."),null;P=o(v,m,i)}return P},g.prototype.createPath=function(n){var v=this._getPath(),m=this.get("paramsCache");(0,ht.MC)(this,n,{path:v},m)},g.Symbols=ut,g}(J),Pt=yt;function Ht(I,g,n){var v=(0,dt.getOffScreenContext)();return I.createPath(v),v.isPointInPath(g,n)}var Wt=1e-6;function Tt(I){return Math.abs(I)0!=Tt(o[1]-n)>0&&Tt(g-(n-i[1])*(i[0]-o[0])/(i[1]-o[1])-i[0])<0&&(v=!v)}return v}var Yt=H(67516),Ot=H(54442);function a(I,g,n,v,m,r,i,o){var P=(Math.atan2(o-g,i-I)+Math.PI*2)%(Math.PI*2);if(Pm)return!1;var F={x:I+n*Math.cos(P),y:g+n*Math.sin(P)};return(0,ot.TE)(F.x,F.y,i,o)<=r/2}var d=Yt.vs;function K(I){for(var g=!1,n=I.length,v=0;vBt?Ct:Bt,Gt=Ct>Bt?1:Ct/Bt,zt=Ct>Bt?Bt/Ct:1,Qt=d(null,[["t",-bt,-Ft],["r",-Dt],["s",1/Gt,1/zt]]);Ot.transformMat3(Rt,Rt,Qt),r=a(0,0,Zt,Lt,Nt,g,Rt[0],Rt[1]);break;default:break}if(r)break}}return r}function xt(I){for(var g=I.length,n=[],v=[],m=[],r=0;r0&&v.push(m),{polygons:n,polylines:v}}var p=(0,S.__assign)({hasArc:K,extractPolygons:xt,isPointInStroke:gt},dt.PathUtil);function _(I,g,n){for(var v=!1,m=0;m=V[0]&&n<=V[1]&&(m=(n-V[0])/(V[1]-V[0]),r=q)});var o=i[r];if((0,X.isNil)(o)||(0,X.isNil)(r))return null;var P=o.length,F=i[r+1];return st.Ll.pointAt(o[P-2],o[P-1],F[1],F[2],F[3],F[4],F[5],F[6],m)},g.prototype._calculateCurve=function(){var n=this.attr().path;this.set("curve",p.pathToCurve(n))},g.prototype._setTcache=function(){var n=0,v=0,m=[],r,i,o,P,F=this.get("curve");if(F){if((0,X.each)(F,function(V,q){o=F[q+1],P=V.length,o&&(n+=st.Ll.length(V[P-2],V[P-1],o[1],o[2],o[3],o[4],o[5],o[6])||0)}),this.set("totalLength",n),n===0){this.set("tCache",[]);return}(0,X.each)(F,function(V,q){o=F[q+1],P=V.length,o&&(r=[],r[0]=v/n,i=st.Ll.length(V[P-2],V[P-1],o[1],o[2],o[3],o[4],o[5],o[6]),v+=i||0,r[1]=v/n,m.push(r))}),this.set("tCache",m)}},g.prototype.getStartTangent=function(){var n=this.getSegments(),v;if(n.length>1){var m=n[0].currentPoint,r=n[1].currentPoint,i=n[1].startTangent;v=[],i?(v.push([m[0]-i[0],m[1]-i[1]]),v.push([m[0],m[1]])):(v.push([r[0],r[1]]),v.push([m[0],m[1]]))}return v},g.prototype.getEndTangent=function(){var n=this.getSegments(),v=n.length,m;if(v>1){var r=n[v-2].currentPoint,i=n[v-1].currentPoint,o=n[v-1].endTangent;m=[],o?(m.push([i[0]-o[0],i[1]-o[1]]),m.push([i[0],i[1]])):(m.push([r[0],r[1]]),m.push([i[0],i[1]]))}return m},g}(J),E=k;function Z(I,g,n,v,m){var r=I.length;if(r<2)return!1;for(var i=0;i=o[0]&&n<=o[1]&&(r=(n-o[0])/(o[1]-o[0]),i=P)}),st.x1.pointAt(v[i][0],v[i][1],v[i+1][0],v[i+1][1],r)},g.prototype._setTcache=function(){var n=this.attr().points;if(!(!n||n.length===0)){var v=this.getTotalLength();if(!(v<=0)){var m=0,r=[],i,o;(0,X.each)(n,function(P,F){n[F+1]&&(i=[],i[0]=m/v,o=st.x1.length(P[0],P[1],n[F+1][0],n[F+1][1]),m+=o,i[1]=m/v,r.push(i))}),this.set("tCache",r)}}},g.prototype.getStartTangent=function(){var n=this.attr().points,v=[];return v.push([n[1][0],n[1][1]]),v.push([n[0][0],n[0][1]]),v},g.prototype.getEndTangent=function(){var n=this.attr().points,v=n.length-1,m=[];return m.push([n[v-1][0],n[v-1][1]]),m.push([n[v][0],n[v][1]]),m},g}(J),e=s,t=H(95578);function u(I,g,n,v,m,r,i){var o=m/2;return(0,ot.mh)(I-o,g-o,n,m,r,i)||(0,ot.mh)(I+n-o,g-o,m,v,r,i)||(0,ot.mh)(I+o,g+v-o,n,m,r,i)||(0,ot.mh)(I-o,g+o,m,v,r,i)}function c(I,g,n,v,m,r,i,o){var P=r/2;return at(I+m,g,I+n-m,g,r,i,o)||at(I+n,g+m,I+n,g+v-m,r,i,o)||at(I+n-m,g+v,I+m,g+v,r,i,o)||at(I,g+v-m,I,g+m,r,i,o)||a(I+n-m,g+m,m,1.5*Math.PI,2*Math.PI,r,i,o)||a(I+n-m,g+v-m,m,0,.5*Math.PI,r,i,o)||a(I+m,g+v-m,m,.5*Math.PI,Math.PI,r,i,o)||a(I+m,g+m,m,Math.PI,1.5*Math.PI,r,i,o)}var l=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,width:0,height:0,radius:0})},g.prototype.isInStrokeOrPath=function(n,v,m,r,i){var o=this.attr(),P=o.x,F=o.y,V=o.width,q=o.height,rt=o.radius;if(rt){var mt=!1;return m&&(mt=c(P,F,V,q,rt,i,n,v)),!mt&&r&&(mt=Ht(this,n,v)),mt}else{var et=i/2;if(r&&m)return(0,ot.mh)(P-et,F-et,V+et,q+et,n,v);if(r)return(0,ot.mh)(P,F,V,q,n,v);if(m)return u(P,F,V,q,i,n,v)}},g.prototype.createPath=function(n){var v=this.attr(),m=v.x,r=v.y,i=v.width,o=v.height,P=v.radius;if(n.beginPath(),P===0)n.rect(m,r,i,o);else{var F=(0,t.Fy)(P),V=F[0],q=F[1],rt=F[2],et=F[3];n.moveTo(m+V,r),n.lineTo(m+i-q,r),q!==0&&n.arc(m+i-q,r+q,q,-Math.PI/2,0),n.lineTo(m+i,r+o-rt),rt!==0&&n.arc(m+i-rt,r+o-rt,rt,0,Math.PI/2),n.lineTo(m+et,r+o),et!==0&&n.arc(m+et,r+o-et,et,Math.PI/2,Math.PI),n.lineTo(m,r+V),V!==0&&n.arc(m+V,r+V,V,Math.PI,Math.PI*1.5),n.closePath()}},g}(J),C=l,A=function(I){(0,S.__extends)(g,I);function g(){return I!==null&&I.apply(this,arguments)||this}return g.prototype.getDefaultAttrs=function(){var n=I.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},n),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},g.prototype.isOnlyHitBox=function(){return!0},g.prototype.initAttrs=function(n){this._assembleFont(),n.text&&this._setText(n.text)},g.prototype._assembleFont=function(){var n=this.attrs;n.font=(0,dt.assembleFont)(n)},g.prototype._setText=function(n){var v=null;(0,ot.HD)(n)&&n.indexOf(` `)!==-1&&(v=n.split(` `)),this.set("textArr",v)},g.prototype.onAttrChange=function(n,v,m){I.prototype.onAttrChange.call(this,n,v,m),n.startsWith("font")&&this._assembleFont(),n==="text"&&this._setText(v)},g.prototype._getSpaceingY=function(){var n=this.attrs,v=n.lineHeight,m=n.fontSize*1;return v?v-m:m*.14},g.prototype._drawTextArr=function(n,v,m){var r=this.attrs,i=r.textBaseline,o=r.x,P=r.y,F=r.fontSize*1,V=this._getSpaceingY(),q=(0,dt.getTextHeight)(r.text,r.fontSize,r.lineHeight),rt;(0,ot.S6)(v,function(et,mt){rt=P+mt*(V+F)-q+F,i==="middle"&&(rt+=q-F-(q-F)/2),i==="top"&&(rt+=q-F),(0,ot.kK)(et)||(m?n.fillText(et,o,rt):n.strokeText(et,o,rt))})},g.prototype._drawText=function(n,v){var m=this.attr(),r=m.x,i=m.y,o=this.get("textArr");if(o)this._drawTextArr(n,o,v);else{var P=m.text;(0,ot.kK)(P)||(v?n.fillText(P,r,i):n.strokeText(P,r,i))}},g.prototype.strokeAndFill=function(n){var v=this.attrs,m=v.lineWidth,r=v.opacity,i=v.strokeOpacity,o=v.fillOpacity;this.isStroke()&&m>0&&(!(0,ot.kK)(i)&&i!==1&&(n.globalAlpha=r),this.stroke(n)),this.isFill()&&(!(0,ot.kK)(o)&&o!==1?(n.globalAlpha=o,this.fill(n),n.globalAlpha=r):this.fill(n)),this.afterDrawPath(n)},g.prototype.fill=function(n){this._drawText(n,!0)},g.prototype.stroke=function(n){this._drawText(n,!1)},g}(J),Y=A},61472:function(Jt,St,H){"use strict";H.d(St,{Z:function(){return ht}});var ft=H(76141);function S($){return Math.sqrt($[0]*$[0]+$[1]*$[1])}function dt($,N){return S($)*S(N)?($[0]*N[0]+$[1]*N[1])/(S($)*S(N)):1}function ot($,N){return($[0]*N[1]<$[1]*N[0]?-1:1)*Math.acos(dt($,N))}function ht($,N){var J=N[1],tt=N[2],ct=(0,ft.wQ)((0,ft.c$)(N[3]),Math.PI*2),nt=N[4],j=N[5],B=$[0],b=$[1],L=N[6],Q=N[7],st=Math.cos(ct)*(B-L)/2+Math.sin(ct)*(b-Q)/2,at=-1*Math.sin(ct)*(B-L)/2+Math.cos(ct)*(b-Q)/2,R=st*st/(J*J)+at*at/(tt*tt);R>1&&(J*=Math.sqrt(R),tt*=Math.sqrt(R));var y=J*J*(at*at)+tt*tt*(st*st),w=y?Math.sqrt((J*J*(tt*tt)-y)/y):1;nt===j&&(w*=-1),isNaN(w)&&(w=0);var X=tt?w*J*at/tt:0,W=J?w*-tt*st/J:0,ut=(B+L)/2+Math.cos(ct)*X-Math.sin(ct)*W,yt=(b+Q)/2+Math.sin(ct)*X+Math.cos(ct)*W,Pt=[(st-X)/J,(at-W)/tt],Ht=[(-1*st-X)/J,(-1*at-W)/tt],Wt=ot([1,0],Pt),Tt=ot(Pt,Ht);return dt(Pt,Ht)<=-1&&(Tt=Math.PI),dt(Pt,Ht)>=1&&(Tt=0),j===0&&Tt>0&&(Tt=Tt-2*Math.PI),j===1&&Tt<0&&(Tt=Tt+2*Math.PI),{cx:ut,cy:yt,rx:(0,ft.CF)($,[L,Q])?0:J,ry:(0,ft.CF)($,[L,Q])?0:tt,startAngle:Wt,endAngle:Wt+Tt,xRotation:ct,arcFlag:nt,sweepFlag:j}}},55274:function(Jt,St,H){"use strict";H.d(St,{YR:function(){return nt},Yf:function(){return ct},jF:function(){return tt}});var ft=H(99938),S=H(10541),dt=Math.sin,ot=Math.cos,ht=Math.atan2,$=Math.PI;function N(j,B,b,L,Q,st,at){var R=B.stroke,y=B.lineWidth,w=b-Q,X=L-st,W=ht(X,w),ut=new S.Path({type:"path",canvas:j.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*ot($/6)+","+10*dt($/6)+" L0,0 L"+10*ot($/6)+",-"+10*dt($/6),stroke:R,lineWidth:y}});ut.translate(Q,st),ut.rotateAtPoint(Q,st,W),j.set(at?"startArrowShape":"endArrowShape",ut)}function J(j,B,b,L,Q,st,at){var R=B.startArrow,y=B.endArrow,w=B.stroke,X=B.lineWidth,W=at?R:y,ut=W.d,yt=W.fill,Pt=W.stroke,Ht=W.lineWidth,Wt=(0,ft.__rest)(W,["d","fill","stroke","lineWidth"]),Tt=b-Q,_t=L-st,Ut=ht(_t,Tt);ut&&(Q=Q-ot(Ut)*ut,st=st-dt(Ut)*ut);var Yt=new S.Path({type:"path",canvas:j.get("canvas"),isArrowShape:!0,attrs:(0,ft.__assign)((0,ft.__assign)({},Wt),{stroke:Pt||w,lineWidth:Ht||X,fill:yt})});Yt.translate(Q,st),Yt.rotateAtPoint(Q,st,Ut),j.set(at?"startArrowShape":"endArrowShape",Yt)}function tt(j,B,b,L,Q){var st=ht(L-B,b-j);return{dx:ot(st)*Q,dy:dt(st)*Q}}function ct(j,B,b,L,Q,st){typeof B.startArrow=="object"?J(j,B,b,L,Q,st,!0):B.startArrow?N(j,B,b,L,Q,st,!0):j.set("startArrowShape",null)}function nt(j,B,b,L,Q,st){typeof B.endArrow=="object"?J(j,B,b,L,Q,st,!1):B.endArrow?N(j,B,b,L,Q,st,!1):j.set("startArrowShape",null)}},29246:function(Jt,St,H){"use strict";H.d(St,{DE:function(){return N},MC:function(){return b},NX:function(){return J},T2:function(){return at},kU:function(){return tt},md:function(){return L},sT:function(){return nt},tJ:function(){return st}});var ft=H(13526),S=H(95578),dt=H(61472),ot=H(76141),ht=H(55274),$={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function N(R,y){var w=y.attr();for(var X in w){var W=w[X],ut=$[X]?$[X]:X;ut==="matrix"&&W?R.transform(W[0],W[1],W[3],W[4],W[6],W[7]):ut==="lineDash"&&R.setLineDash?(0,ft.isArray)(W)&&R.setLineDash(W):(ut==="strokeStyle"||ut==="fillStyle"?W=(0,S.QK)(R,y,W):ut==="globalAlpha"&&(W=W*R.globalAlpha),R[ut]=W)}}function J(R,y,w){for(var X=0;X_?p:_,s=p>_?1:p/_,e=p>_?_/p:1;y.translate(gt,xt),y.rotate(Z),y.scale(s,e),y.arc(0,0,M,k,E,1-it),y.scale(1/s,1/e),y.rotate(-Z),y.translate(-gt,-xt)}break}case"Z":y.closePath();break;default:break}if(Ut==="Z")Pt=Ht;else{var t=_t.length;Pt=[_t[t-2],_t[t-1]]}}}}function L(R,y){var w=R.get("canvas");w&&(y==="remove"&&(R._cacheCanvasBBox=R.get("cacheCanvasBBox")),R.get("hasChanged")||(R.set("hasChanged",!0),R.cfg.parent&&R.cfg.parent.get("hasChanged")||(w.refreshElement(R,y,w),w.get("autoDraw")&&w.draw())))}function Q(R){var y;if(R.destroyed)y=R._cacheCanvasBBox;else{var w=R.get("cacheCanvasBBox"),X=w&&!!(w.width&&w.height),W=R.getCanvasBBox(),ut=W&&!!(W.width&&W.height);X&&ut?y=(0,ot.Me)(w,W):X?y=w:ut&&(y=W)}return y}function st(R){if(!R.length)return null;var y=[],w=[],X=[],W=[];return(0,ft.each)(R,function(ut){var yt=Q(ut);yt&&(y.push(yt.minX),w.push(yt.minY),X.push(yt.maxX),W.push(yt.maxY))}),{minX:(0,ft.min)(y),minY:(0,ft.min)(w),maxX:(0,ft.max)(X),maxY:(0,ft.max)(W)}}function at(R,y){return!R||!y||!(0,ot.qb)(R,y)?null:{minX:Math.max(R.minX,y.minX),minY:Math.max(R.minY,y.minY),maxX:Math.min(R.maxX,y.maxX),maxY:Math.min(R.maxY,y.maxY)}}},95578:function(Jt,St,H){"use strict";H.d(St,{Fy:function(){return nt},QK:function(){return ct}});var ft=H(76141),S=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,dt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,ot=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,ht=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function $(j,B){var b=j.match(ht);(0,ft.S6)(b,function(L){var Q=L.split(":");B.addColorStop(Q[0],Q[1])})}function N(j,B,b){var L=S.exec(b),Q=parseFloat(L[1])%360*(Math.PI/180),st=L[2],at=B.getBBox(),R,y;Q>=0&&Q<1/2*Math.PI?(R={x:at.minX,y:at.minY},y={x:at.maxX,y:at.maxY}):1/2*Math.PI<=Q&&Q=J&&j<=J+ct&&B>=tt&&B<=tt+nt}function ht(J,tt){return!(tt.minX>J.maxX||tt.maxXJ.maxY||tt.maxYC?dt(e,t,u,c):this.pointToLine(M,s,e,t,u,c)},pointToLine:function(M,s,e,t,u,c){var l=[e-M,t-s];if(J.exactEquals(l,[0,0]))return Math.sqrt((u-M)*(u-M)+(c-s)*(c-s));var C=[-l[1],l[0]];J.normalize(C,C);var A=[u-M,c-s];return Math.abs(J.dot(A,C))},tangentAngle:function(M,s,e,t){return Math.atan2(t-s,e-M)}},ct=1e-4;function nt(M,s,e,t,u,c){var l,C=1/0,A=[e,t],Y=20;c&&c>200&&(Y=c/10);for(var I=1/Y,g=I/10,n=0;n<=Y;n++){var v=n*I,m=[u.apply(null,M.concat([v])),u.apply(null,s.concat([v]))],r=dt(A[0],A[1],m[0],m[1]);r=0&&r=0?[u]:[]}function L(M,s,e,t){return 2*(1-t)*(s-M)+2*t*(e-s)}function Q(M,s,e,t,u,c,l){var C=B(M,e,u,l),A=B(s,t,c,l),Y=tt.pointAt(M,s,e,t,l),I=tt.pointAt(e,t,u,c,l);return[[M,s,Y.x,Y.y,C,A],[C,A,I.x,I.y,u,c]]}function st(M,s,e,t,u,c,l){if(l===0)return(dt(M,s,e,t)+dt(e,t,u,c)+dt(M,s,u,c))/2;var C=Q(M,s,e,t,u,c,.5),A=C[0],Y=C[1];return A.push(l-1),Y.push(l-1),st.apply(null,A)+st.apply(null,Y)}var at={box:function(M,s,e,t,u,c){var l=b(M,e,u)[0],C=b(s,t,c)[0],A=[M,u],Y=[s,c];return l!==void 0&&A.push(B(M,e,u,l)),C!==void 0&&Y.push(B(s,t,c,C)),ht(A,Y)},length:function(M,s,e,t,u,c){return st(M,s,e,t,u,c,3)},nearestPoint:function(M,s,e,t,u,c,l,C){return nt([M,e,u],[s,t,c],l,C,B)},pointDistance:function(M,s,e,t,u,c,l,C){var A=this.nearestPoint(M,s,e,t,u,c,l,C);return dt(A.x,A.y,l,C)},interpolationAt:B,pointAt:function(M,s,e,t,u,c,l){return{x:B(M,e,u,l),y:B(s,t,c,l)}},divide:function(M,s,e,t,u,c,l){return Q(M,s,e,t,u,c,l)},tangentAngle:function(M,s,e,t,u,c,l){var C=L(M,e,u,l),A=L(s,t,c,l),Y=Math.atan2(A,C);return N(Y)}};function R(M,s,e,t,u){var c=1-u;return c*c*c*M+3*s*u*c*c+3*e*u*u*c+t*u*u*u}function y(M,s,e,t,u){var c=1-u;return 3*(c*c*(s-M)+2*c*u*(e-s)+u*u*(t-e))}function w(M,s,e,t){var u=-3*M+9*s-9*e+3*t,c=6*M-12*s+6*e,l=3*s-3*M,C=[],A,Y,I;if(ot(u,0))ot(c,0)||(A=-l/c,A>=0&&A<=1&&C.push(A));else{var g=c*c-4*u*l;ot(g,0)?C.push(-c/(2*u)):g>0&&(I=Math.sqrt(g),A=(-c+I)/(2*u),Y=(-c-I)/(2*u),A>=0&&A<=1&&C.push(A),Y>=0&&Y<=1&&C.push(Y))}return C}function X(M,s,e,t,u,c,l,C,A){var Y=R(M,e,u,l,A),I=R(s,t,c,C,A),g=tt.pointAt(M,s,e,t,A),n=tt.pointAt(e,t,u,c,A),v=tt.pointAt(u,c,l,C,A),m=tt.pointAt(g.x,g.y,n.x,n.y,A),r=tt.pointAt(n.x,n.y,v.x,v.y,A);return[[M,s,g.x,g.y,m.x,m.y,Y,I],[Y,I,r.x,r.y,v.x,v.y,l,C]]}function W(M,s,e,t,u,c,l,C,A){if(A===0)return j([M,e,u,l],[s,t,c,C]);var Y=X(M,s,e,t,u,c,l,C,.5),I=Y[0],g=Y[1];return I.push(A-1),g.push(A-1),W.apply(null,I)+W.apply(null,g)}var ut={extrema:w,box:function(M,s,e,t,u,c,l,C){for(var A=[M,l],Y=[s,C],I=w(M,e,u,l),g=w(s,t,c,C),n=0;n0?e:e*-1}var Pt={box:function(M,s,e,t){return{x:M-e,y:s-t,width:e*2,height:t*2}},length:function(M,s,e,t){return Math.PI*(3*(e+t)-Math.sqrt((3*e+t)*(e+3*t)))},nearestPoint:function(M,s,e,t,u,c){var l=e,C=t;if(l===0||C===0)return{x:M,y:s};for(var A=u-M,Y=c-s,I=Math.abs(A),g=Math.abs(Y),n=l*l,v=C*C,m=Math.PI/4,r,i,o=0;o<4;o++){r=l*Math.cos(m),i=C*Math.sin(m);var P=(n-v)*Math.pow(Math.cos(m),3)/l,F=(v-n)*Math.pow(Math.sin(m),3)/C,V=r-P,q=i-F,rt=I-P,et=g-F,mt=Math.hypot(q,V),pt=Math.hypot(et,rt),bt=mt*Math.asin((V*et-q*rt)/(mt*pt)),Ft=bt/Math.sqrt(n+v-r*r-i*i);m+=Ft,m=Math.min(Math.PI/2,Math.max(0,m))}return{x:M+yt(r,A),y:s+yt(i,Y)}},pointDistance:function(M,s,e,t,u,c){var l=this.nearestPoint(M,s,e,t,u,c);return dt(l.x,l.y,u,c)},pointAt:function(M,s,e,t,u){var c=2*Math.PI*u;return{x:M+e*Math.cos(c),y:s+t*Math.sin(c)}},tangentAngle:function(M,s,e,t,u){var c=2*Math.PI*u,l=Math.atan2(t*Math.cos(c),-e*Math.sin(c));return N(l)}};function Ht(M,s,e,t,u,c,l,C){return-1*e*Math.cos(u)*Math.sin(C)-t*Math.sin(u)*Math.cos(C)}function Wt(M,s,e,t,u,c,l,C){return-1*e*Math.sin(u)*Math.sin(C)+t*Math.cos(u)*Math.cos(C)}function Tt(M,s,e){return Math.atan(-s/M*Math.tan(e))}function _t(M,s,e){return Math.atan(s/(M*Math.tan(e)))}function Ut(M,s,e,t,u,c){return e*Math.cos(u)*Math.cos(c)-t*Math.sin(u)*Math.sin(c)+M}function Yt(M,s,e,t,u,c){return e*Math.sin(u)*Math.cos(c)+t*Math.cos(u)*Math.sin(c)+s}function Ot(M,s,e,t){var u=Math.atan2(t*M,e*s);return(u+Math.PI*2)%(Math.PI*2)}function a(M,s,e){return{x:M*Math.cos(e),y:s*Math.sin(e)}}function d(M,s,e){var t=Math.cos(e),u=Math.sin(e);return[M*t-s*u,M*u+s*t]}var K={box:function(M,s,e,t,u,c,l){for(var C=Tt(e,t,u),A=1/0,Y=-1/0,I=[c,l],g=-Math.PI*2;g<=Math.PI*2;g+=Math.PI){var n=C+g;cY&&(Y=v)}for(var m=_t(e,t,u),r=1/0,i=-1/0,o=[c,l],g=-Math.PI*2;g<=Math.PI*2;g+=Math.PI){var P=m+g;ci&&(i=F)}return{x:A,y:r,width:Y-A,height:i-r}},length:function(M,s,e,t,u,c,l){},nearestPoint:function(M,s,e,t,u,c,l,C,A){var Y=d(C-M,A-s,-u),I=Y[0],g=Y[1],n=Pt.nearestPoint(0,0,e,t,I,g),v=Ot(e,t,n.x,n.y);vl&&(n=a(e,t,l));var m=d(n.x,n.y,u);return{x:m[0]+M,y:m[1]+s}},pointDistance:function(M,s,e,t,u,c,l,C,A){var Y=this.nearestPoint(M,s,e,t,C,A);return dt(Y.x,Y.y,C,A)},pointAt:function(M,s,e,t,u,c,l,C){var A=(l-c)*C+c;return{x:Ut(M,s,e,t,u,A),y:Yt(M,s,e,t,u,A)}},tangentAngle:function(M,s,e,t,u,c,l,C){var A=(l-c)*C+c,Y=Ht(M,s,e,t,u,c,l,A),I=Wt(M,s,e,t,u,c,l,A);return N(Math.atan2(I,Y))}};function gt(M){for(var s=0,e=[],t=0;t1||s<0||M.length<2)return null;var e=gt(M),t=e.segments,u=e.totalLength;if(u===0)return{x:M[0][0],y:M[0][1]};for(var c=0,l=null,C=0;C=c&&s<=c+g){var n=(s-c)/g;l=tt.pointAt(Y[0],Y[1],I[0],I[1],n);break}c+=g}return l}function _(M,s){if(s>1||s<0||M.length<2)return 0;for(var e=gt(M),t=e.segments,u=e.totalLength,c=0,l=0,C=0;C=c&&s<=c+g){l=Math.atan2(I[1]-Y[1],I[0]-Y[0]);break}c+=g}return l}function k(M,s,e){for(var t=1/0,u=0;u'}),d}function b(Ot,a){var d=ct.exec(Ot),K=(0,tt.mod)((0,tt.toRadian)(parseFloat(d[1])),Math.PI*2),gt=d[2],xt,p;K>=0&&K<.5*Math.PI?(xt={x:0,y:0},p={x:1,y:1}):.5*Math.PI<=K&&K`;d.innerHTML=K},Ot}(),w=y,X=function(){function Ot(a,d){this.cfg={};var K=(0,$.rS)("marker"),gt=(0,tt.uniqueId)("marker_");K.setAttribute("id",gt);var xt=(0,$.rS)("path");xt.setAttribute("stroke",a.stroke||"none"),xt.setAttribute("fill",a.fill||"none"),K.appendChild(xt),K.setAttribute("overflow","visible"),K.setAttribute("orient","auto-start-reverse"),this.el=K,this.child=xt,this.id=gt;var p=a[d==="marker-start"?"startArrow":"endArrow"];return this.stroke=a.stroke||"#000",p===!0?this._setDefaultPath(d,xt):(this.cfg=p,this._setMarker(a.lineWidth,xt)),this}return Ot.prototype.match=function(){return!1},Ot.prototype._setDefaultPath=function(a,d){var K=this.el;d.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),K.setAttribute("refX",""+10*Math.cos(Math.PI/6)),K.setAttribute("refY","5")},Ot.prototype._setMarker=function(a,d){var K=this.el,gt=this.cfg.path,xt=this.cfg.d;(0,tt.isArray)(gt)&&(gt=gt.map(function(p){return p.join(" ")}).join("")),d.setAttribute("d",gt),K.appendChild(d),xt&&K.setAttribute("refX",""+xt/a)},Ot.prototype.update=function(a){var d=this.child;d.attr?d.attr("fill",a):d.setAttribute("fill",a)},Ot}(),W=X,ut=function(){function Ot(a){this.type="clip",this.cfg={};var d=(0,$.rS)("clipPath");this.el=d,this.id=(0,tt.uniqueId)("clip_"),d.id=this.id;var K=a.cfg.el;return d.appendChild(K),this.cfg=a,this}return Ot.prototype.match=function(){return!1},Ot.prototype.remove=function(){var a=this.el;a.parentNode.removeChild(a)},Ot}(),yt=ut,Pt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Ht=function(){function Ot(a){this.cfg={};var d=(0,$.rS)("pattern");d.setAttribute("patternUnits","userSpaceOnUse");var K=(0,$.rS)("image");d.appendChild(K);var gt=(0,tt.uniqueId)("pattern_");d.id=gt,this.el=d,this.id=gt,this.cfg=a;var xt=Pt.exec(a),p=xt[2];K.setAttribute("href",p);var _=new Image;p.match(/^data:/i)||(_.crossOrigin="Anonymous"),_.src=p;function k(){d.setAttribute("width",""+_.width),d.setAttribute("height",""+_.height)}return _.complete?k():(_.onload=k,_.src=_.src),this}return Ot.prototype.match=function(a,d){return this.cfg===d},Ot}(),Wt=Ht,Tt=function(){function Ot(a){var d=(0,$.rS)("defs"),K=(0,tt.uniqueId)("defs_");d.id=K,a.appendChild(d),this.children=[],this.defaultArrow={},this.el=d,this.canvas=a}return Ot.prototype.find=function(a,d){for(var K=this.children,gt=null,xt=0;xt0&&(u?"stroke"in c?this._setColor(t,"stroke",A):"strokeStyle"in c&&this._setColor(t,"stroke",Y):this._setColor(t,"stroke",A||Y),g&&v.setAttribute(N.A8.strokeOpacity,g),n&&v.setAttribute(N.A8.lineWidth,n))},e.prototype._setColor=function(t,u,c){var l=this.get("el");if(!c){l.setAttribute(N.A8[u],"none");return}if(c=c.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(c)){var C=t.find("gradient",c);C||(C=t.addGradient(c)),l.setAttribute(N.A8[u],"url(#"+C+")")}else if(/^[p,P]{1}[\s]*\(/.test(c)){var C=t.find("pattern",c);C||(C=t.addPattern(c)),l.setAttribute(N.A8[u],"url(#"+C+")")}else l.setAttribute(N.A8[u],c)},e.prototype.shadow=function(t,u){var c=this.attr(),l=u||c,C=l.shadowOffsetX,A=l.shadowOffsetY,Y=l.shadowBlur,I=l.shadowColor;(C||A||Y||I)&&(0,ot.kr)(this,t)},e.prototype.transform=function(t){var u=this.attr(),c=(t||u).matrix;c&&(0,ot.B2)(this)},e.prototype.isInShape=function(t,u){return this.isPointInPath(t,u)},e.prototype.isPointInPath=function(t,u){var c=this.get("el"),l=this.get("canvas"),C=l.get("el").getBoundingClientRect(),A=t+C.left,Y=u+C.top,I=document.elementFromPoint(A,Y);return!!(I&&I.isEqualNode(c))},e.prototype.getHitLineWidth=function(){var t=this.attrs,u=t.lineWidth,c=t.lineAppendWidth;return this.isStroke()?u+c:0},e}(dt.AbstractShape),ct=tt,nt=H(13526),j=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,r:0})},e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){A==="x"||A==="y"?l.setAttribute("c"+A,C):N.A8[A]&&l.setAttribute(N.A8[A],C)})},e}(ct),B=j,b=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");if((0,nt.each)(u||c,function(I,g){N.A8[g]&&l.setAttribute(N.A8[g],I)}),typeof c.html=="function"){var C=c.html.call(this,c);if(C instanceof Element||C instanceof HTMLDocument){for(var A=l.childNodes,Y=A.length-1;Y>=0;Y--)l.removeChild(A[Y]);l.appendChild(C)}else l.innerHTML=C}else l.innerHTML=c.html},e}(ct),L=b,Q=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){A==="x"||A==="y"?l.setAttribute("c"+A,C):N.A8[A]&&l.setAttribute(N.A8[A],C)})},e}(ct),st=Q,at=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,u){var c=this,l=this.attr(),C=this.get("el");(0,nt.each)(u||l,function(A,Y){Y==="img"?c._setImage(l.img):N.A8[Y]&&C.setAttribute(N.A8[Y],A)})},e.prototype.setAttr=function(t,u){this.attrs[t]=u,t==="img"&&this._setImage(u)},e.prototype._setImage=function(t){var u=this.attr(),c=this.get("el");if((0,nt.isString)(t))c.setAttribute("href",t);else if(t instanceof window.Image)u.width||(c.setAttribute("width",t.width),this.attr("width",t.width)),u.height||(c.setAttribute("height",t.height),this.attr("height",t.height)),c.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,nt.isString)(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")c.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var l=document.createElement("canvas");l.setAttribute("width",""+t.width),l.setAttribute("height",""+t.height),l.getContext("2d").putImageData(t,0,0),u.width||(c.setAttribute("width",""+t.width),this.attr("width",t.width)),u.height||(c.setAttribute("height",""+t.height),this.attr("height",t.height)),c.setAttribute("href",l.toDataURL())}},e}(ct),R=at,y=H(86031),w=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){if(A==="startArrow"||A==="endArrow")if(C){var Y=(0,nt.isObject)(C)?t.addArrow(c,N.A8[A]):t.getDefaultArrow(c,N.A8[A]);l.setAttribute(N.A8[A],"url(#"+Y+")")}else l.removeAttribute(N.A8[A]);else N.A8[A]&&l.setAttribute(N.A8[A],C)})},e.prototype.getTotalLength=function(){var t=this.attr(),u=t.x1,c=t.y1,l=t.x2,C=t.y2;return y.x1.length(u,c,l,C)},e.prototype.getPoint=function(t){var u=this.attr(),c=u.x1,l=u.y1,C=u.x2,A=u.y2;return y.x1.pointAt(c,l,C,A,t)},e}(ct),X=w,W={circle:function(s,e,t){return[["M",s,e],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(s,e,t){return[["M",s-t,e-t],["L",s+t,e-t],["L",s+t,e+t],["L",s-t,e+t],["Z"]]},diamond:function(s,e,t){return[["M",s-t,e],["L",s,e-t],["L",s+t,e],["L",s,e+t],["Z"]]},triangle:function(s,e,t){var u=t*Math.sin(.3333333333333333*Math.PI);return[["M",s-t,e+u],["L",s,e-u],["L",s+t,e+u],["z"]]},triangleDown:function(s,e,t){var u=t*Math.sin(.3333333333333333*Math.PI);return[["M",s-t,e-u],["L",s+t,e-u],["L",s,e+u],["Z"]]}},ut={get:function(s){return W[s]},register:function(s,e){W[s]=e},remove:function(s){delete W[s]},getAll:function(){return W}},yt=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t){var u=this.get("el");u.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,nt.isArray)(t)?t.map(function(u){return u.join(" ")}).join(""):t},e.prototype._getPath=function(){var t=this.attr(),u=t.x,c=t.y,l=t.r||t.radius,C=t.symbol||"circle",A;return(0,nt.isFunction)(C)?A=C:A=ut.get(C),A?A(u,c,l):(console.warn(A+" symbol is not exist."),null)},e.symbolsFactory=ut,e}(ct),Pt=yt,Ht=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,u){var c=this,l=this.attr(),C=this.get("el");(0,nt.each)(u||l,function(A,Y){if(Y==="path"&&(0,nt.isArray)(A))C.setAttribute("d",c._formatPath(A));else if(Y==="startArrow"||Y==="endArrow")if(A){var I=(0,nt.isObject)(A)?t.addArrow(l,N.A8[Y]):t.getDefaultArrow(l,N.A8[Y]);C.setAttribute(N.A8[Y],"url(#"+I+")")}else C.removeAttribute(N.A8[Y]);else N.A8[Y]&&C.setAttribute(N.A8[Y],A)})},e.prototype._formatPath=function(t){var u=t.map(function(c){return c.join(" ")}).join("");return~u.indexOf("NaN")?"":u},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var u=this.get("el"),c=this.getTotalLength();if(c===0)return null;var l=u?u.getPointAtLength(t*c):null;return l?{x:l.x,y:l.y}:null},e}(ct),Wt=Ht,Tt=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){A==="points"&&(0,nt.isArray)(C)&&C.length>=2?l.setAttribute("points",C.map(function(Y){return Y[0]+","+Y[1]}).join(" ")):N.A8[A]&&l.setAttribute(N.A8[A],C)})},e}(ct),_t=Tt,Ut=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(t,u,c){s.prototype.onAttrChange.call(this,t,u,c),["points"].indexOf(t)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,u){var c=this.attr(),l=this.get("el");(0,nt.each)(u||c,function(C,A){A==="points"&&(0,nt.isArray)(C)&&C.length>=2?l.setAttribute("points",C.map(function(Y){return Y[0]+","+Y[1]}).join(" ")):N.A8[A]&&l.setAttribute(N.A8[A],C)})},e.prototype.getTotalLength=function(){var t=this.attr().points,u=this.get("totalLength");return(0,nt.isNil)(u)?(this.set("totalLength",y.aH.length(t)),this.get("totalLength")):u},e.prototype.getPoint=function(t){var u=this.attr().points,c=this.get("tCache");c||(this._setTcache(),c=this.get("tCache"));var l,C;return(0,nt.each)(c,function(A,Y){t>=A[0]&&t<=A[1]&&(l=(t-A[0])/(A[1]-A[0]),C=Y)}),y.x1.pointAt(u[C][0],u[C][1],u[C+1][0],u[C+1][1],l)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var u=this.getTotalLength();if(!(u<=0)){var c=0,l=[],C,A;(0,nt.each)(t,function(Y,I){t[I+1]&&(C=[],C[0]=c/u,A=y.x1.length(Y[0],Y[1],t[I+1][0],t[I+1][1]),c+=A,C[1]=c/u,l.push(C))}),this.set("tCache",l)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,u=[];return u.push([t[1][0],t[1][1]]),u.push([t[0][0],t[0][1]]),u},e.prototype.getEndTangent=function(){var t=this.attr().points,u=t.length-1,c=[];return c.push([t[u-1][0],t[u-1][1]]),c.push([t[u][0],t[u][1]]),c},e}(ct),Yt=Ut,Ot=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;function d(s){var e=0,t=0,u=0,c=0;return(0,nt.isArray)(s)?s.length===1?e=t=u=c=s[0]:s.length===2?(e=u=s[0],t=c=s[1]):s.length===3?(e=s[0],t=c=s[1],u=s[2]):(e=s[0],t=s[1],u=s[2],c=s[3]):e=t=u=c=s,{r1:e,r2:t,r3:u,r4:c}}function K(s){if(s=s||[],isArray(s))return s;if(isString(s))return s=s.match(Ot),each(s,function(e,t){if(e=e.match(a),e[0].length>1){var u=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=u}each(e,function(c,l){isNaN(c)||(e[l]=+c)}),s[t]=e}),s}var gt=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,u){var c=this,l=this.attr(),C=this.get("el"),A=!1,Y=["x","y","width","height","radius"];(0,nt.each)(u||l,function(I,g){Y.indexOf(g)!==-1&&!A?(C.setAttribute("d",c._assembleRect(l)),A=!0):Y.indexOf(g)===-1&&N.A8[g]&&C.setAttribute(N.A8[g],I)})},e.prototype._assembleRect=function(t){var u=t.x,c=t.y,l=t.width,C=t.height,A=t.radius;if(!A)return"M "+u+","+c+" l "+l+",0 l 0,"+C+" l"+-l+" 0 z";var Y=d(A);(0,nt.isArray)(A)?A.length===1?Y.r1=Y.r2=Y.r3=Y.r4=A[0]:A.length===2?(Y.r1=Y.r3=A[0],Y.r2=Y.r4=A[1]):A.length===3?(Y.r1=A[0],Y.r2=Y.r4=A[1],Y.r3=A[2]):(Y.r1=A[0],Y.r2=A[1],Y.r3=A[2],Y.r4=A[3]):Y.r1=Y.r2=Y.r3=Y.r4=A;var I=[["M "+(u+Y.r1)+","+c],["l "+(l-Y.r1-Y.r2)+",0"],["a "+Y.r2+","+Y.r2+",0,0,1,"+Y.r2+","+Y.r2],["l 0,"+(C-Y.r2-Y.r3)],["a "+Y.r3+","+Y.r3+",0,0,1,"+-Y.r3+","+Y.r3],["l "+(Y.r3+Y.r4-l)+",0"],["a "+Y.r4+","+Y.r4+",0,0,1,"+-Y.r4+","+-Y.r4],["l 0,"+(Y.r4+Y.r1-C)],["a "+Y.r1+","+Y.r1+",0,0,1,"+Y.r1+","+-Y.r1],["z"]];return I.join(" ")},e}(ct),xt=gt,p=H(81365),_=.3,k={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},E={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},Z={left:"left",start:"left",center:"middle",right:"end",end:"end"},it=function(s){(0,S.__extends)(e,s);function e(){var t=s!==null&&s.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=s.prototype.getDefaultAttrs.call(this);return(0,S.__assign)((0,S.__assign)({},t),{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,u){var c=this,l=this.attr(),C=this.get("el");this._setFont(),(0,nt.each)(u||l,function(A,Y){Y==="text"?c._setText(""+A):Y==="matrix"&&A?(0,ot.B2)(c):N.A8[Y]&&C.setAttribute(N.A8[Y],A)}),C.setAttribute("paint-order","stroke"),C.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),u=this.attr(),c=u.textBaseline,l=u.textAlign,C=(0,p.qY)();C&&C.name==="firefox"?t.setAttribute("dominant-baseline",E[c]||"alphabetic"):t.setAttribute("alignment-baseline",k[c]||"baseline"),t.setAttribute("text-anchor",Z[l]||"left")},e.prototype._setText=function(t){var u=this.get("el"),c=this.attr(),l=c.x,C=c.textBaseline,A=C===void 0?"bottom":C;if(!t)u.innerHTML="";else if(~t.indexOf(` `)){var Y=t.split(` `),I=Y.length-1,g="";(0,nt.each)(Y,function(n,v){v===0?A==="alphabetic"?g+=''+n+"":A==="top"?g+=''+n+"":A==="middle"?g+=''+n+"":A==="bottom"?g+=''+n+"":A==="hanging"&&(g+=''+n+""):g+=''+n+""}),u.innerHTML=g}else u.innerHTML=t},e}(ct),M=it},85033:function(Jt,St,H){"use strict";H.d(St,{Ao:function(){return $},WV:function(){return ot},ZL:function(){return ht},rS:function(){return dt}});var ft=H(13526),S=H(29242);function dt(N){return document.createElementNS("http://www.w3.org/2000/svg",N)}function ot(N){var J=S.CX[N.type],tt=N.getParent();if(!J)throw new Error("the type "+N.type+" is not supported by svg");var ct=dt(J);if(N.get("id")&&(ct.id=N.get("id")),N.set("el",ct),N.set("attrs",{}),tt){var nt=tt.get("el");nt||(nt=tt.createDom(),tt.set("el",nt)),nt.appendChild(ct)}return ct}function ht(N,J){var tt=N.get("el"),ct=(0,ft.toArray)(tt.children).sort(J),nt=document.createDocumentFragment();ct.forEach(function(j){nt.appendChild(j)}),tt.appendChild(nt)}function $(N,J){var tt=N.parentNode,ct=Array.from(tt.childNodes).filter(function(b){return b.nodeType===1&&b.nodeName.toLowerCase()!=="defs"}),nt=ct[J],j=ct.indexOf(N);if(nt){if(j>J)tt.insertBefore(N,nt);else if(j=0;return B?L?Math.PI*2-b:b:L?b:Math.PI*2-b}function ct(nt,j,B){return B?(nt[0]=j[1],nt[1]=-1*j[0]):(nt[0]=-1*j[1],nt[1]=j[0]),nt}},81182:function(Jt,St,H){"use strict";H.d(St,{e9:function(){return tt},Wq:function(){return m},tr:function(){return Q},wb:function(){return R},zx:function(){return t}});var ft=H(13526),S=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,dt=/[^\s\,]+/ig;function ot(r){var i=r||[];if((0,ft.isArray)(i))return i;if((0,ft.isString)(i))return i=i.match(S),(0,ft.each)(i,function(o,P){if(o=o.match(dt),o[0].length>1){var F=o[0].charAt(0);o.splice(1,0,o[0].substr(1)),o[0]=F}(0,ft.each)(o,function(V,q){isNaN(V)||(o[q]=+V)}),i[P]=o}),i}var ht=ot,$=H(38015);function N(r,i,o,P){var F=[],V=!!P,q,rt,et,mt,pt,bt,Ft;if(V){et=P[0],mt=P[1];for(var Ct=0,Bt=r.length;Ct=0;et--)q=V[et].index,V[et].type==="add"?r.splice(q,0,[].concat(r[q])):r.splice(q,1)}if(P=r.length,P2&&(o.push([F].concat(q.splice(0,2))),rt="l",F=F==="m"?"l":"L"),rt==="o"&&q.length===1&&o.push([F,q[0]]),rt==="r")o.push([F].concat(q));else for(;q.length>=i[rt]&&(o.push([F].concat(q.splice(0,i[rt]))),!!i[rt]););return""}),o}var st=/[a-z]/;function at(r,i){return[i[0]+(i[0]-r[0]),i[1]+(i[1]-r[1])]}function R(r){var i=Q(r);if(!i||!i.length)return[["M",0,0]];for(var o=!1,P=0;P=0){o=!0;break}}if(!o)return i;var V=[],q=0,rt=0,et=0,mt=0,pt=0,bt,Ft,Ct=i[0];(Ct[0]==="M"||Ct[0]==="m")&&(q=+Ct[1],rt=+Ct[2],et=q,mt=rt,pt++,V[0]=["M",q,rt]);for(var P=pt,Bt=i.length;P1&&(V=1),V<-1&&(V=-1),F*Math.acos(V)},ut=function(r,i,o,P,F,V,q,rt,et,mt,pt,bt){var Ft=Math.pow(F,2),Ct=Math.pow(V,2),Bt=Math.pow(pt,2),Lt=Math.pow(bt,2),Nt=Ft*Ct-Ft*Lt-Ct*Bt;Nt<0&&(Nt=0),Nt/=Ft*Lt+Ct*Bt,Nt=Math.sqrt(Nt)*(q===rt?-1:1);var Dt=Nt*F/V*bt,Rt=Nt*-V/F*pt,Zt=mt*Dt-et*Rt+(r+o)/2,Gt=et*Dt+mt*Rt+(i+P)/2,zt=(pt-Dt)/F,Qt=(bt-Rt)/V,$t=(-pt-Dt)/F,er=(-bt-Rt)/V,or=W(1,0,zt,Qt),nr=W(zt,Qt,$t,er);return rt===0&&nr>0&&(nr-=y),rt===1&&nr<0&&(nr+=y),[Zt,Gt,or,nr]},yt=function(r){var i=r.px,o=r.py,P=r.cx,F=r.cy,V=r.rx,q=r.ry,rt=r.xAxisRotation,et=rt===void 0?0:rt,mt=r.largeArcFlag,pt=mt===void 0?0:mt,bt=r.sweepFlag,Ft=bt===void 0?0:bt,Ct=[];if(V===0||q===0)return[{x1:0,y1:0,x2:0,y2:0,x:P,y:F}];var Bt=Math.sin(et*y/360),Lt=Math.cos(et*y/360),Nt=Lt*(i-P)/2+Bt*(o-F)/2,Dt=-Bt*(i-P)/2+Lt*(o-F)/2;if(Nt===0&&Dt===0)return[{x1:0,y1:0,x2:0,y2:0,x:P,y:F}];V=Math.abs(V),q=Math.abs(q);var Rt=Math.pow(Nt,2)/Math.pow(V,2)+Math.pow(Dt,2)/Math.pow(q,2);Rt>1&&(V*=Math.sqrt(Rt),q*=Math.sqrt(Rt));var Zt=ut(i,o,P,F,V,q,pt,Ft,Bt,Lt,Nt,Dt),Gt=Zt[0],zt=Zt[1],Qt=Zt[2],$t=Zt[3],er=Math.abs($t)/(y/4);Math.abs(1-er)<1e-7&&(er=1);var or=Math.max(Math.ceil(er),1);$t/=or;for(var nr=0;nr7){r[o].shift();for(var P=r[o],F=o;P.length;)i[o]="A",r.splice(F+=1,0,["C"].concat(P.splice(0,6)));r.splice(o,1)}}var _t=function(r,i,o,P,F){var V=-3*i+9*o-9*P+3*F,q=r*V+6*i-12*o+6*P;return r*q-3*i+3*o},Ut=function(r,i,o,P,F,V,q,rt,et){et===null&&(et=1),et=et>1?1:et<0?0:et;for(var mt=et/2,pt=12,bt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Ft=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Ct=0,Bt=0;Bt0&&Ct<1&&et.push(Ct);continue}var Lt=bt*bt-4*Ft*pt,Nt=Math.sqrt(Lt);if(!(Lt<0)){var Dt=(-bt+Nt)/(2*pt);Dt>0&&Dt<1&&et.push(Dt);var Rt=(-bt-Nt)/(2*pt);Rt>0&&Rt<1&&et.push(Rt)}}for(var Zt=et.length,Gt=Zt,zt;Zt--;)Ct=et[Zt],zt=1-Ct,mt[0][Zt]=zt*zt*zt*r+3*zt*zt*Ct*o+3*zt*Ct*Ct*F+Ct*Ct*Ct*q,mt[1][Zt]=zt*zt*zt*i+3*zt*zt*Ct*P+3*zt*Ct*Ct*V+Ct*Ct*Ct*rt;return mt[0][Gt]=r,mt[1][Gt]=i,mt[0][Gt+1]=q,mt[1][Gt+1]=rt,mt[0].length=mt[1].length=Gt+2,{min:{x:Math.min.apply(0,mt[0]),y:Math.min.apply(0,mt[1])},max:{x:Math.max.apply(0,mt[0]),y:Math.max.apply(0,mt[1])}}},Ot=function(r,i,o,P,F,V,q,rt){if(!(Math.max(r,o)Math.max(F,q)||Math.max(i,P)Math.max(V,rt))){var et=(r*P-i*o)*(F-q)-(r-o)*(F*rt-V*q),mt=(r*P-i*o)*(V-rt)-(i-P)*(F*rt-V*q),pt=(r-o)*(V-rt)-(i-P)*(F-q);if(pt){var bt=et/pt,Ft=mt/pt,Ct=+bt.toFixed(2),Bt=+Ft.toFixed(2);if(!(Ct<+Math.min(r,o).toFixed(2)||Ct>+Math.max(r,o).toFixed(2)||Ct<+Math.min(F,q).toFixed(2)||Ct>+Math.max(F,q).toFixed(2)||Bt<+Math.min(i,P).toFixed(2)||Bt>+Math.max(i,P).toFixed(2)||Bt<+Math.min(V,rt).toFixed(2)||Bt>+Math.max(V,rt).toFixed(2)))return{x:bt,y:Ft}}}},a=function(r,i,o){return i>=r.x&&i<=r.x+r.width&&o>=r.y&&o<=r.y+r.height},d=function(r,i,o,P){return r===null&&(r=i=o=P=0),i===null&&(i=r.y,o=r.width,P=r.height,r=r.x),{x:r,y:i,width:o,w:o,height:P,h:P,x2:r+o,y2:i+P,cx:r+o/2,cy:i+P/2,r1:Math.min(o,P)/2,r2:Math.max(o,P)/2,r0:Math.sqrt(o*o+P*P)/2,path:rectPath(r,i,o,P),vb:[r,i,o,P].join(" ")}},K=function(r,i){return r=d(r),i=d(i),a(i,r.x,r.y)||a(i,r.x2,r.y)||a(i,r.x,r.y2)||a(i,r.x2,r.y2)||a(r,i.x,i.y)||a(r,i.x2,i.y)||a(r,i.x,i.y2)||a(r,i.x2,i.y2)||(r.xi.x||i.xr.x)&&(r.yi.y||i.yr.y)},gt=function(r,i,o,P,F,V,q,rt){isArray(r)||(r=[r,i,o,P,F,V,q,rt]);var et=Yt.apply(null,r);return d(et.min.x,et.min.y,et.max.x-et.min.x,et.max.y-et.min.y)},xt=function(r,i,o,P,F,V,q,rt,et){var mt=1-et,pt=Math.pow(mt,3),bt=Math.pow(mt,2),Ft=et*et,Ct=Ft*et,Bt=pt*r+bt*3*et*o+mt*3*et*et*F+Ct*q,Lt=pt*i+bt*3*et*P+mt*3*et*et*V+Ct*rt,Nt=r+2*et*(o-r)+Ft*(F-2*o+r),Dt=i+2*et*(P-i)+Ft*(V-2*P+i),Rt=o+2*et*(F-o)+Ft*(q-2*F+o),Zt=P+2*et*(V-P)+Ft*(rt-2*V+P),Gt=mt*r+et*o,zt=mt*i+et*P,Qt=mt*F+et*q,$t=mt*V+et*rt,er=90-Math.atan2(Nt-Rt,Dt-Zt)*180/Math.PI;return{x:Bt,y:Lt,m:{x:Nt,y:Dt},n:{x:Rt,y:Zt},start:{x:Gt,y:zt},end:{x:Qt,y:$t},alpha:er}},p=function(r,i,o){var P=gt(r),F=gt(i);if(!K(P,F))return o?0:[];for(var V=Ut.apply(0,r),q=Ut.apply(0,i),rt=~~(V/8),et=~~(q/8),mt=[],pt=[],bt={},Ft=o?0:[],Ct=0;Ct=0&&$t<=1&&er>=0&&er<=1&&(o?Ft++:Ft.push({x:Qt.x,y:Qt.y,t1:$t,t2:er}))}}return Ft},_=function(r,i,o){r=path2Curve(r),i=path2Curve(i);for(var P,F,V,q,rt,et,mt,pt,bt,Ft,Ct=o?0:[],Bt=0,Lt=r.length;Bt1&&(o*=Math.sqrt(Ct),P*=Math.sqrt(Ct));var Bt=o*o*(Ft*Ft)+P*P*(bt*bt),Lt=Bt?Math.sqrt((o*o*(P*P)-Bt)/Bt):1;V===q&&(Lt*=-1),isNaN(Lt)&&(Lt=0);var Nt=P?Lt*o*Ft/P:0,Dt=o?Lt*-P*bt/o:0,Rt=(rt+mt)/2+Math.cos(F)*Nt-Math.sin(F)*Dt,Zt=(et+pt)/2+Math.sin(F)*Nt+Math.cos(F)*Dt,Gt=[(bt-Nt)/o,(Ft-Dt)/P],zt=[(-1*bt-Nt)/o,(-1*Ft-Dt)/P],Qt=it([1,0],Gt),$t=it(Gt,zt);return Z(Gt,zt)<=-1&&($t=Math.PI),Z(Gt,zt)>=1&&($t=0),q===0&&$t>0&&($t=$t-2*Math.PI),q===1&&$t<0&&($t=$t+2*Math.PI),{cx:Rt,cy:Zt,rx:M(r,[mt,pt])?0:o,ry:M(r,[mt,pt])?0:P,startAngle:Qt,endAngle:Qt+$t,xRotation:F,arcFlag:V,sweepFlag:q}}function e(r,i){return[i[0]+(i[0]-r[0]),i[1]+(i[1]-r[1])]}function t(r){r=ht(r);for(var i=[],o=null,P=null,F=null,V=0,q=r.length,rt=0;rt0!=c(rt[1]-o)>0&&c(i-(o-q[1])*(q[0]-rt[0])/(q[1]-rt[1])-q[0])<0&&(P=!P)}return P}var A=function(r,i,o){return r>=i&&r<=o};function Y(r,i,o,P){var F=.001,V={x:o.x-r.x,y:o.y-r.y},q={x:i.x-r.x,y:i.y-r.y},rt={x:P.x-o.x,y:P.y-o.y},et=q.x*rt.y-q.y*rt.x,mt=et*et,pt=q.x*q.x+q.y*q.y,bt=rt.x*rt.x+rt.y*rt.y,Ft=null;if(mt>F*pt*bt){var Ct=(V.x*rt.y-V.y*rt.x)/et,Bt=(V.x*q.y-V.y*q.x)/et;A(Ct,0,1)&&A(Bt,0,1)&&(Ft={x:r.x+Ct*q.x,y:r.y+Ct*q.y})}return Ft}function I(r){for(var i=[],o=r.length,P=0;P1){var q=r[0],rt=r[o-1];i.push({from:{x:rt[0],y:rt[1]},to:{x:q[0],y:q[1]}})}return i}function g(r,i){var o=!1;return(0,ft.each)(r,function(P){if(Y(P.from,P.to,i.from,i.to))return o=!0,!1}),o}function n(r){var i=r.map(function(P){return P[0]}),o=r.map(function(P){return P[1]});return{minX:Math.min.apply(null,i),maxX:Math.max.apply(null,i),minY:Math.min.apply(null,o),maxY:Math.max.apply(null,o)}}function v(r,i){return!(i.minX>r.maxX||i.maxXr.maxY||i.maxYthis.max?NaN:this.values[lt]},x.prototype.getText=function(D){for(var z=[],U=1;U1?D-1:D}this.translateIndexMap&&(this.translateIndexMap=void 0)},x}(N),ct=tt,nt=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,j="\\d\\d?",B="\\d\\d",b="\\d{3}",L="\\d{4}",Q="[^\\s]+",st=/\[([^]*?)\]/gm;function at(f,x){for(var D=[],z=0,U=f.length;z-1?U:null}};function y(f){for(var x=[],D=1;D3?0:(f-f%10!==10?1:0)*f%10]}},Pt=y({},yt),Ht=function(f){return Pt=y(Pt,f)},Wt=function(f){return f.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Tt=function(f,x){for(x===void 0&&(x=2),f=String(f);f.length0?"-":"+")+Tt(Math.floor(Math.abs(x)/60)*100+Math.abs(x)%60,4)},Z:function(f){var x=f.getTimezoneOffset();return(x>0?"-":"+")+Tt(Math.floor(Math.abs(x)/60),2)+":"+Tt(Math.abs(x)%60,2)}},Ut=function(f){return+f-1},Yt=[null,j],Ot=[null,Q],a=["isPm",Q,function(f,x){var D=f.toLowerCase();return D===x.amPm[0]?0:D===x.amPm[1]?1:null}],d=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(f){var x=(f+"").match(/([+-]|\d\d)/gi);if(x){var D=+x[1]*60+parseInt(x[2],10);return x[0]==="+"?D:-D}return 0}],K={D:["day",j],DD:["day",B],Do:["day",j+Q,function(f){return parseInt(f,10)}],M:["month",j,Ut],MM:["month",B,Ut],YY:["year",B,function(f){var x=new Date,D=+(""+x.getFullYear()).substr(0,2);return+(""+(+f>68?D-1:D)+f)}],h:["hour",j,void 0,"isPm"],hh:["hour",B,void 0,"isPm"],H:["hour",j],HH:["hour",B],m:["minute",j],mm:["minute",B],s:["second",j],ss:["second",B],YYYY:["year",L],S:["millisecond","\\d",function(f){return+f*100}],SS:["millisecond",B,function(f){return+f*10}],SSS:["millisecond",b],d:Yt,dd:Yt,ddd:Ot,dddd:Ot,MMM:["month",Q,R("monthNamesShort")],MMMM:["month",Q,R("monthNames")],a,A:a,ZZ:d,Z:d},gt={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"},xt=function(f){return y(gt,f)},p=function(f,x,D){if(x===void 0&&(x=gt.default),D===void 0&&(D={}),typeof f=="number"&&(f=new Date(f)),Object.prototype.toString.call(f)!=="[object Date]"||isNaN(f.getTime()))throw new Error("Invalid Date pass to format");x=gt[x]||x;var z=[];x=x.replace(st,function(lt,Mt){return z.push(Mt),"@@@"});var U=y(y({},Pt),D);return x=x.replace(nt,function(lt){return _t[lt](f,U)}),x.replace(/@@@/g,function(){return z.shift()})};function _(f,x,D){if(D===void 0&&(D={}),typeof x!="string")throw new Error("Invalid format in fecha parse");if(x=gt[x]||x,f.length>1e3)return null;var z=new Date,U={year:z.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},lt=[],Mt=[],wt=x.replace(st,function(mr,gr){return Mt.push(Wt(gr)),"@@@"}),Kt={},kt={};wt=Wt(wt).replace(nt,function(mr){var gr=K[mr],Mr=gr[0],_r=gr[1],pr=gr[3];if(Kt[Mr])throw new Error("Invalid format. "+Mr+" specified twice in format");return Kt[Mr]=!0,pr&&(kt[pr]=!0),lt.push(gr),"("+_r+")"}),Object.keys(kt).forEach(function(mr){if(!Kt[mr])throw new Error("Invalid format. "+mr+" is required in specified format")}),wt=wt.replace(/@@@/g,function(){return Mt.shift()});var Xt=f.match(new RegExp(wt,"i"));if(!Xt)return null;for(var jt=y(y({},Pt),D),qt=1;qt11||U.month<0||U.day>31||U.day<1||U.hour>23||U.hour<0||U.minute>59||U.minute<0||U.second>59||U.second<0)return null;return yr}var k={format:p,parse:_,defaultI18n:yt,setGlobalDateI18n:Ht,setGlobalDateMasks:xt},E=k;function Z(f){return function(x,D,z,U){for(var lt=(0,S.isNil)(z)?0:z,Mt=(0,S.isNil)(U)?x.length:U;lt>>1;f(x[wt])>D?Mt=wt:lt=wt+1}return lt}}var it="format";function M(f,x){var D=ft[it]||E[it];return D(f,x)}function s(f){return(0,S.isString)(f)&&(f.indexOf("T")>0?f=new Date(f).getTime():f=new Date(f.replace(/-/gi,"/")).getTime()),(0,S.isDate)(f)&&(f=f.getTime()),f}var e=1e3,t=60*e,u=60*t,c=24*u,l=c*31,C=c*365,A=[["HH:mm:ss",e],["HH:mm:ss",e*10],["HH:mm:ss",e*30],["HH:mm",t],["HH:mm",t*10],["HH:mm",t*30],["HH",u],["HH",u*6],["HH",u*12],["YYYY-MM-DD",c],["YYYY-MM-DD",c*4],["YYYY-WW",c*7],["YYYY-MM",l],["YYYY-MM",l*4],["YYYY-MM",l*6],["YYYY",c*380]];function Y(f,x,D){var z=(x-f)/D,U=Z(function(Mt){return Mt[1]})(A,z)-1,lt=A[U];return U<0?lt=A[0]:U>=A.length&&(lt=(0,S.last)(A)),lt}var I=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="timeCat",D}return x.prototype.translate=function(D){D=s(D);var z=this.values.indexOf(D);return z===-1&&((0,S.isNumber)(D)&&D-1){var lt=this.values[U],Mt=this.formatter;return lt=Mt?Mt(lt,z):M(lt,this.mask),lt}return D},x.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},x.prototype.setDomain=function(){var D=this.values;(0,S.each)(D,function(z,U){D[U]=s(z)}),D.sort(function(z,U){return z-U}),f.prototype.setDomain.call(this)},x}(ct),g=I,n=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.isContinuous=!0,D}return x.prototype.scale=function(D){if((0,S.isNil)(D))return NaN;var z=this.rangeMin(),U=this.rangeMax(),lt=this.max,Mt=this.min;if(lt===Mt)return z;var wt=this.getScalePercent(D);return z+wt*(U-z)},x.prototype.init=function(){f.prototype.init.call(this);var D=this.ticks,z=(0,S.head)(D),U=(0,S.last)(D);zthis.max&&(this.max=U),(0,S.isNil)(this.minLimit)||(this.min=z),(0,S.isNil)(this.maxLimit)||(this.max=U)},x.prototype.setDomain=function(){var D=(0,S.getRange)(this.values),z=D.min,U=D.max;(0,S.isNil)(this.min)&&(this.min=z),(0,S.isNil)(this.max)&&(this.max=U),this.min>this.max&&(this.min=z,this.max=U)},x.prototype.calculateTicks=function(){var D=this,z=f.prototype.calculateTicks.call(this);return this.nice||(z=(0,S.filter)(z,function(U){return U>=D.min&&U<=D.max})),z},x.prototype.getScalePercent=function(D){var z=this.max,U=this.min;return(D-U)/(z-U)},x.prototype.getInvertPercent=function(D){return(D-this.rangeMin())/(this.rangeMax()-this.rangeMin())},x}(N),v=n,m=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="linear",D.isLinear=!0,D}return x.prototype.invert=function(D){var z=this.getInvertPercent(D);return this.min+z*(this.max-this.min)},x.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},x}(v),r=m;function i(f,x){var D=Math.E,z;return x>=0?z=Math.pow(D,Math.log(x)/f):z=Math.pow(D,Math.log(-x)/f)*-1,z}function o(f,x){return f===1?1:Math.log(x)/Math.log(f)}function P(f,x,D){(0,S.isNil)(D)&&(D=Math.max.apply(null,f));var z=D;return(0,S.each)(f,function(U){U>0&&U1&&(z=1),z}function F(f){var x=f.toString().split(/[eE]/),D=(x[0].split(".")[1]||"").length-+(x[1]||0);return D>0?D:0}function V(f,x){var D=F(f),z=F(x),U=Math.pow(10,Math.max(D,z));return(f*U+x*U)/U}var q=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="log",D}return x.prototype.invert=function(D){var z=this.base,U=o(z,this.max),lt=this.rangeMin(),Mt=this.rangeMax()-lt,wt,Kt=this.positiveMin;if(Kt){if(D===0)return 0;wt=o(z,Kt/z);var kt=1/(U-wt)*Mt;if(D=0?1:-1;return Math.pow(wt,U)*Kt},x.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},x.prototype.getScalePercent=function(D){var z=this.max,U=this.min;if(z===U)return 0;var lt=this.exponent,Mt=(i(lt,D)-i(lt,U))/(i(lt,z)-i(lt,U));return Mt},x}(v),mt=et,pt=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="time",D}return x.prototype.getText=function(D,z){var U=this.translate(D),lt=this.formatter;return lt?lt(U,z):M(U,this.mask)},x.prototype.scale=function(D){var z=D;return((0,S.isString)(z)||(0,S.isDate)(z))&&(z=this.translate(z)),f.prototype.scale.call(this,z)},x.prototype.translate=function(D){return s(D)},x.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},x.prototype.setDomain=function(){var D=this.values,z=this.getConfig("min"),U=this.getConfig("max");if((!(0,S.isNil)(z)||!(0,S.isNumber)(z))&&(this.min=this.translate(this.min)),(!(0,S.isNil)(U)||!(0,S.isNumber)(U))&&(this.max=this.translate(this.max)),D&&D.length){var lt=[],Mt=1/0,wt=Mt,Kt=0;(0,S.each)(D,function(kt){var Xt=s(kt);if(isNaN(Xt))throw new TypeError("Invalid Time: "+kt+" in time scale!");Mt>Xt?(wt=Mt,Mt=Xt):wt>Xt&&(wt=Xt),Kt1&&(this.minTickInterval=wt-Mt),(0,S.isNil)(z)&&(this.min=Mt),(0,S.isNil)(U)&&(this.max=Kt)}},x}(r),bt=pt,Ft=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="quantize",D}return x.prototype.invert=function(D){var z=this.ticks,U=z.length,lt=this.getInvertPercent(D),Mt=Math.floor(lt*(U-1));if(Mt>=U-1)return(0,S.last)(z);if(Mt<0)return(0,S.head)(z);var wt=z[Mt],Kt=z[Mt+1],kt=Mt/(U-1),Xt=(Mt+1)/(U-1);return wt+(lt-kt)/(Xt-kt)*(Kt-wt)},x.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},x.prototype.calculateTicks=function(){var D=f.prototype.calculateTicks.call(this);return this.nice||((0,S.last)(D)!==this.max&&D.push(this.max),(0,S.head)(D)!==this.min&&D.unshift(this.min)),D},x.prototype.getScalePercent=function(D){var z=this.ticks;if(D<(0,S.head)(z))return 0;if(D>(0,S.last)(z))return 1;var U=0;return(0,S.each)(z,function(lt,Mt){if(D>=lt)U=Mt;else return!1}),U/(z.length-1)},x}(v),Ct=Ft,Bt=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="quantile",D}return x.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},x}(Ct),Lt=Bt,Nt={};function Dt(f){return Nt[f]}function Rt(f,x){if(Dt(f))throw new Error("type '"+f+"' existed.");Nt[f]=x}var Zt=function(f){(0,J.__extends)(x,f);function x(){var D=f!==null&&f.apply(this,arguments)||this;return D.type="identity",D.isIdentity=!0,D}return x.prototype.calculateTicks=function(){return this.values},x.prototype.scale=function(D){return this.values[0]!==D&&(0,S.isNumber)(D)?D:this.range[0]},x.prototype.invert=function(D){var z=this.range;return Dz[1]?NaN:this.values[0]},x}(N),Gt=Zt;function zt(f){var x=f.values,D=f.tickInterval,z=f.tickCount,U=f.showLast;if((0,S.isNumber)(D)){var lt=(0,S.filter)(x,function(rr,lr){return lr%D===0}),Mt=(0,S.last)(x);return U&&(0,S.last)(lt)!==Mt&<.push(Mt),lt}var wt=x.length,Kt=f.min,kt=f.max;if((0,S.isNil)(Kt)&&(Kt=0),(0,S.isNil)(kt)&&(kt=x.length-1),!(0,S.isNumber)(z)||z>=wt)return x.slice(Kt,kt+1);if(z<=0||kt<=0)return[];for(var Xt=z===1?wt:Math.floor(wt/(z-1)),jt=[],qt=Kt,ar=0;ar=kt);ar++)qt=Math.min(Kt+ar*Xt,kt),ar===z-1&&U?jt.push(x[kt]):jt.push(x[qt]);return jt}function Qt(f){var x=f.min,D=f.max,z=f.nice,U=f.tickCount,lt=new cr;return lt.domain([x,D]),z&<.nice(U),lt.ticks(U)}var $t=5,er=Math.sqrt(50),or=Math.sqrt(10),nr=Math.sqrt(2),cr=function(){function f(){this._domain=[0,1]}return f.prototype.domain=function(x){return x?(this._domain=Array.from(x,Number),this):this._domain.slice()},f.prototype.nice=function(x){var D,z;x===void 0&&(x=$t);var U=this._domain.slice(),lt=0,Mt=this._domain.length-1,wt=this._domain[lt],Kt=this._domain[Mt],kt;return Kt0?(wt=Math.floor(wt/kt)*kt,Kt=Math.ceil(Kt/kt)*kt,kt=dr(wt,Kt,x)):kt<0&&(wt=Math.ceil(wt*kt)/kt,Kt=Math.floor(Kt*kt)/kt,kt=dr(wt,Kt,x)),kt>0?(U[lt]=Math.floor(wt/kt)*kt,U[Mt]=Math.ceil(Kt/kt)*kt,this.domain(U)):kt<0&&(U[lt]=Math.ceil(wt*kt)/kt,U[Mt]=Math.floor(Kt*kt)/kt,this.domain(U)),this},f.prototype.ticks=function(x){return x===void 0&&(x=$t),xr(this._domain[0],this._domain[this._domain.length-1],x||$t)},f}();function xr(f,x,D){var z,U=-1,lt,Mt,wt;if(x=+x,f=+f,D=+D,f===x&&D>0)return[f];if((z=x0)for(f=Math.ceil(f/wt),x=Math.floor(x/wt),Mt=new Array(lt=Math.ceil(x-f+1));++U=0?(lt>=er?10:lt>=or?5:lt>=nr?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(lt>=er?10:lt>=or?5:lt>=nr?2:1)}function Cr(f,x,D){var z;return D==="ceil"?z=Math.ceil(f/x):D==="floor"?z=Math.floor(f/x):z=Math.round(f/x),z*x}function ur(f,x,D){var z=Cr(f,D,"floor"),U=Cr(x,D,"ceil");z=(0,S.fixedBase)(z,D),U=(0,S.fixedBase)(U,D);for(var lt=[],Mt=Math.max((U-z)/(Math.pow(2,12)-1),D),wt=z;wt<=U;wt=wt+Mt){var Kt=(0,S.fixedBase)(wt,Mt);lt.push(Kt)}return{min:z,max:U,ticks:lt}}function vr(f,x,D){var z,U=f.minLimit,lt=f.maxLimit,Mt=f.min,wt=f.max,Kt=f.tickCount,kt=Kt===void 0?5:Kt,Xt=(0,S.isNil)(U)?(0,S.isNil)(x)?Mt:x:U,jt=(0,S.isNil)(lt)?(0,S.isNil)(D)?wt:D:lt;if(Xt>jt&&(z=[Xt,jt],jt=z[0],Xt=z[1]),kt<=2)return[Xt,jt];for(var qt=(jt-Xt)/(kt-1),ar=[],rr=0;rr=0&&(Kt=1),1-wt/(Mt-1)-D+Kt}function Xr(f,x,D){var z=(0,S.size)(x),U=(0,S.indexOf)(x,f),lt=1;return 1-U/(z-1)-D+lt}function Hr(f,x,D,z,U,lt){var Mt=(f-1)/(lt-U),wt=(x-1)/(Math.max(lt,z)-Math.min(D,U));return 2-Math.max(Mt/wt,wt/Mt)}function Ir(f,x){return f>=x?2-(f-1)/(x-1):1}function Wr(f,x,D,z){var U=x-f;return 1-.5*(Math.pow(x-z,2)+Math.pow(f-D,2))/Math.pow(.1*U,2)}function br(f,x,D){var z=x-f;if(D>z){var U=(D-z)/2;return 1-Math.pow(U,2)/Math.pow(.1*z,2)}return 1}function Qr(){return 1}function Or(f,x,D,z,U,lt){D===void 0&&(D=5),z===void 0&&(z=!0),U===void 0&&(U=wr),lt===void 0&&(lt=[.25,.2,.5,.05]);var Mt=D<0?0:Math.round(D);if(Number.isNaN(f)||Number.isNaN(x)||typeof f!="number"||typeof x!="number"||!Mt)return{min:0,max:0,ticks:[]};if(x-f<1e-15||Mt===1)return{min:f,max:x,ticks:[f]};if(x-f>1e148){var wt=D||5,Kt=(x-f)/wt;return{min:f,max:x,ticks:Array(wt).fill(null).map(function(ae,ne){return sr(f+Kt*ne)})}}for(var kt={score:-2,lmin:0,lmax:0,lstep:0},Xt=1;Xt<1/0;){for(var jt=0;jtkt.score&&(!z||pr<=f&&Ar>=x)&&(kt.lmin=pr,kt.lmax=Ar,kt.lstep=Yr,kt.score=$r)}yr+=1}rr+=1}}Xt+=1}var ee=sr(kt.lmax),Jr=sr(kt.lmin),qr=sr(kt.lstep),jr=Math.floor(Rr((ee-Jr)/qr))+1,Dr=new Array(jr);Dr[0]=sr(Jr);for(var jt=1;jt0)Mt=Math.floor(o(x,z));else{var Kt=P(lt,x,U);Mt=Math.floor(o(x,Kt))}for(var kt=wt-Mt,Xt=Math.ceil(kt/D),jt=[],qt=Mt;qt=0?1:-1;return Math.pow(Mt,x)*wt})}function kr(f,x){var D=f.length*x;return x===1?f[f.length-1]:x===0?f[0]:D%1!==0?f[Math.ceil(D)-1]:f.length%2===0?(f[D-1]+f[D])/2:f[D]}function Gr(f){var x=f.tickCount,D=f.values;if(!D||!D.length)return[];for(var z=D.slice().sort(function(wt,Kt){return wt-Kt}),U=[],lt=0;lt1&&(U=U*Math.ceil(wt)),z&&UC)for(var Kt=h(D),kt=Math.ceil(lt/C),Xt=wt;Xt<=Kt+kt;Xt=Xt+kt)Mt.push(T(Xt));else if(lt>l)for(var jt=Math.ceil(lt/l),qt=G(x),ar=vt(x,D),Xt=0;Xt<=ar+jt;Xt=Xt+jt)Mt.push(At(wt,Xt+qt));else if(lt>c)for(var rr=new Date(x),lr=rr.getFullYear(),hr=rr.getMonth(),yr=rr.getDate(),ir=Math.ceil(lt/c),Tr=It(x,D),Xt=0;Xtu)for(var rr=new Date(x),lr=rr.getFullYear(),hr=rr.getMonth(),ir=rr.getDate(),mr=rr.getHours(),gr=Math.ceil(lt/u),Mr=Et(x,D),Xt=0;Xt<=Mr+gr;Xt=Xt+gr)Mt.push(new Date(lr,hr,ir,mr+Xt).getTime());else if(lt>t)for(var _r=Vt(x,D),pr=Math.ceil(lt/t),Xt=0;Xt<=_r+pr;Xt=Xt+pr)Mt.push(x+Xt*t);else{var Ar=lt;Ar=512&&console.warn("Notice: current ticks length("+Mt.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+lt+") is too small, increase the value to solve the problem!"),Mt}ht("cat",zt),ht("time-cat",O),ht("wilkinson-extended",Ur),ht("r-pretty",Zr),ht("time",zr),ht("time-pretty",tr),ht("log",Kr),ht("pow",Lr),ht("quantile",Gr),ht("d3-linear",fr),Rt("cat",ct),Rt("category",ct),Rt("identity",Gt),Rt("linear",r),Rt("log",rt),Rt("pow",mt),Rt("time",bt),Rt("timeCat",g),Rt("quantize",Ct),Rt("quantile",Lt)},81365:function(Jt,St,H){"use strict";H.d(St,{qY:function(){return B}});var ft=H(14224),S=function(y,w,X){if(X||arguments.length===2)for(var W=0,ut=w.length,yt;W