/*! For license information please see main.f04f1e4b.js.LICENSE.txt */ !function(){var t={2781:function(t,e){"use strict";var n=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r=0&&e._call.call(null,t),e=e._next;--u}()}finally{u=0,function(){var t,e,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,E(o)}(),v=0}}function C(){var t=m.now(),e=t-p;e>h&&(g-=e,p=t)}function E(t){u||(d&&(d=clearTimeout(d)),t-v>24?(t<1/0&&(d=setTimeout(k,t-m.now()-g)),f&&(f=clearInterval(f))):(f||(p=m.now(),f=setInterval(C,h)),u=1,y(k)))}function M(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function O(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function T(){}w.prototype=S.prototype={constructor:w,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?b():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,E()},stop:function(){this._call&&(this._call=null,this._time=1/0,E())}};var I=.7,A=1/I,P="\\s*([+-]?\\d+)\\s*",D="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R=/^#([0-9a-f]{3,8})$/,N=new RegExp("^rgb\\(".concat(P,",").concat(P,",").concat(P,"\\)$")),F=new RegExp("^rgb\\(".concat(_,",").concat(_,",").concat(_,"\\)$")),L=new RegExp("^rgba\\(".concat(P,",").concat(P,",").concat(P,",").concat(D,"\\)$")),B=new RegExp("^rgba\\(".concat(_,",").concat(_,",").concat(_,",").concat(D,"\\)$")),j=new RegExp("^hsl\\(".concat(D,",").concat(_,",").concat(_,"\\)$")),z=new RegExp("^hsla\\(".concat(D,",").concat(_,",").concat(_,",").concat(D,"\\)$")),H={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};function V(){return this.rgb().formatHex()}function U(){return this.rgb().formatRgb()}function W(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=R.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Y(e):3===n?new X(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?G(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?G(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=N.exec(t))?new X(e[1],e[2],e[3],1):(e=F.exec(t))?new X(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=L.exec(t))?G(e[1],e[2],e[3],e[4]):(e=B.exec(t))?G(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=j.exec(t))?tt(e[1],e[2]/100,e[3]/100,1):(e=z.exec(t))?tt(e[1],e[2]/100,e[3]/100,e[4]):H.hasOwnProperty(t)?Y(H[t]):"transparent"===t?new X(NaN,NaN,NaN,0):null}function Y(t){return new X(t>>16&255,t>>8&255,255&t,1)}function G(t,e,n,r){return r<=0&&(t=e=n=NaN),new X(t,e,n,r)}function q(t,e,n,r){return 1===arguments.length?((i=t)instanceof T||(i=W(i)),i?new X((i=i.rgb()).r,i.g,i.b,i.opacity):new X):new X(t,e,n,null==r?1:r);var i}function X(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function K(){return"#".concat(J(this.r)).concat(J(this.g)).concat(J(this.b))}function Z(){var t=$(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(Q(this.r),", ").concat(Q(this.g),", ").concat(Q(this.b)).concat(1===t?")":", ".concat(t,")"))}function $(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Q(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function J(t){return((t=Q(t))<16?"0":"")+t.toString(16)}function tt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new nt(t,e,n,r)}function et(t){if(t instanceof nt)return new nt(t.h,t.s,t.l,t.opacity);if(t instanceof T||(t=W(t)),!t)return new nt;if(t instanceof nt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&l<1?0:a,new nt(a,s,l,t.opacity)}function nt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function rt(t){return(t=(t||0)%360)<0?t+360:t}function it(t){return Math.max(0,Math.min(1,t||0))}function ot(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function at(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}M(T,W,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:V,formatHex:V,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return et(this).formatHsl()},formatRgb:U,toString:U}),M(X,q,O(T,{brighter:function(t){return t=null==t?A:Math.pow(A,t),new X(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?I:Math.pow(I,t),new X(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new X(Q(this.r),Q(this.g),Q(this.b),$(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:K,formatHex:K,formatHex8:function(){return"#".concat(J(this.r)).concat(J(this.g)).concat(J(this.b)).concat(J(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Z,toString:Z})),M(nt,(function(t,e,n,r){return 1===arguments.length?et(t):new nt(t,e,n,null==r?1:r)}),O(T,{brighter:function(t){return t=null==t?A:Math.pow(A,t),new nt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?I:Math.pow(I,t),new nt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new X(ot(t>=240?t-240:t+120,i,r),ot(t,i,r),ot(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new nt(rt(this.h),it(this.s),it(this.l),$(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=$(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(rt(this.h),", ").concat(100*it(this.s),"%, ").concat(100*it(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var st=function(t){return function(){return t}};function lt(t,e){return function(n){return t+n*e}}function ct(t){return 1===(t=+t)?ut:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):st(isNaN(e)?n:e)}}function ut(t,e){var n=e-t;return n?lt(t,n):st(isNaN(t)?e:t)}var dt=function t(e){var n=ct(e);function r(t,e){var r=n((t=q(t)).r,(e=q(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ut(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ft(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:mt(n,r)})),o=xt.lastIndex;return of.length?(d=Ct.parsePathString(o[u]),f=Ct.parsePathString(i[u]),f=Ct.fillPathByDiff(f,d),f=Ct.formatPath(f,d),e.fromAttrs.path=f,e.toAttrs.path=d):e.pathFormatted||(d=Ct.parsePathString(o[u]),f=Ct.parsePathString(i[u]),f=Ct.formatPath(f,d),e.fromAttrs.path=f,e.toAttrs.path=d,e.pathFormatted=!0),r[u]=[];for(var h=0;h0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],Tt(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),At=It,Pt=n(5377),Dt=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function _t(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Rt(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&(0,l.UY)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Nt=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,l.S6)(Dt,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,l.S6)(Dt,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new Pt.Z(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp-this.mousedownTimeStamp,c=a.clientX-t.clientX,u=a.clientY-t.clientY;l>120||c*c+u*u>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,_t(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||Rt(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{_t(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Ft=Nt,Lt=(0,a.qY)(),Bt=Lt&&"firefox"===Lt.name,jt=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,o.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,l.HD)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Ft({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new At(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");l.jU&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");l.jU&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(Bt&&!(0,l.kK)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,l.kK)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(s.Z),zt=jt},3181:function(t,e,n){"use strict";var r=n(5152),i=n(620),o=n(2226),a={},s="_INDEX";function l(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function c(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return i.length>0?(0,o.S6)(i,(function(i){var o=i.getBBox(),a=o.minX,s=o.maxX,l=o.minY,c=o.maxY;ae&&(e=s),lr&&(r=c)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return i.length>0?(0,o.S6)(i,(function(i){var o=i.getCanvasBBox(),a=o.minX,s=o.maxX,l=o.minY,c=o.maxY;ae&&(e=s),lr&&(r=c)})):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,o.S6)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var s=t[a];if((0,o.pP)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,o.As)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&l(t,e),r&&c(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();(0,o.S6)(e,(function(t,e){return t[s]=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,o.S6)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,o.S6)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(i.Z);e.Z=u},620:function(t,e,n){"use strict";var r=n(5152),i=n(3283),o=n(9076),a=n(2226),s=n(6873),l=n(8400),c=o.vs,u="matrix",d=["zIndex","capture","visible","type"],f=["repeat"];function h(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}var p=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,i.CD)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,r.ZT)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?r=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return(0,i.S6)(t,(function(t){n+rt.delay&&(0,i.S6)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}(r,w):n.addAnimator(this),r.push(w),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,i.S6)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,i.S6)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,i.S6)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],c=s.get("name");if(c){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&(0,a.UY)(s,n))return"break";(0,i.kJ)(c)?(0,i.S6)(c,(function(t){r.emitDelegateEvent(s,t,e)})):l.emitDelegateEvent(s,c,e)}},l=this,c=0;c=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.rG)(e,[t.minX,t.minY]),l=(0,o.rG)(e,[t.maxX,t.minY]),c=(0,o.rG)(e,[t.minX,t.maxY]),u=(0,o.rG)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],c[0],u[0]),i=Math.max(s[0],l[0],c[0],u[0]),r=Math.min(s[1],l[1],c[1],u[1]),a=Math.max(s[1],l[1],c[1],u[1])}var d=this.attrs;if(d.shadowColor){var f=d.shadowBlur,h=void 0===f?0:f,p=d.shadowOffsetX,v=void 0===p?0:p,g=d.shadowOffsetY,m=void 0===g?0:g,y=n-h+v,b=i+h+v,x=r-h+m,w=a+h+m;n=Math.min(n,y),i=Math.max(i,b),r=Math.min(r,x),a=Math.max(a,w)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(i.Z);e.Z=a},5602:function(t,e,n){"use strict";n.d(e,{_:function(){return X},C:function(){return K}});var r={};function i(t){return+t}function o(t){return t*t}function a(t){return t*(2-t)}function s(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function l(t){return t*t*t}function c(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(r),n.d(r,{easeBack:function(){return V},easeBackIn:function(){return z},easeBackInOut:function(){return V},easeBackOut:function(){return H},easeBounce:function(){return L},easeBounceIn:function(){return F},easeBounceInOut:function(){return B},easeBounceOut:function(){return L},easeCircle:function(){return E},easeCircleIn:function(){return k},easeCircleInOut:function(){return E},easeCircleOut:function(){return C},easeCubic:function(){return u},easeCubicIn:function(){return l},easeCubicInOut:function(){return u},easeCubicOut:function(){return c},easeElastic:function(){return Y},easeElasticIn:function(){return W},easeElasticInOut:function(){return G},easeElasticOut:function(){return Y},easeExp:function(){return S},easeExpIn:function(){return x},easeExpInOut:function(){return S},easeExpOut:function(){return w},easeLinear:function(){return i},easePoly:function(){return h},easePolyIn:function(){return d},easePolyInOut:function(){return h},easePolyOut:function(){return f},easeQuad:function(){return s},easeQuadIn:function(){return o},easeQuadInOut:function(){return s},easeQuadOut:function(){return a},easeSin:function(){return y},easeSinIn:function(){return g},easeSinInOut:function(){return y},easeSinOut:function(){return m}});var d=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),f=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),h=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),p=Math.PI,v=p/2;function g(t){return 1===+t?1:1-Math.cos(t*v)}function m(t){return Math.sin(t*v)}function y(t){return(1-Math.cos(p*t))/2}function b(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function x(t){return b(1-+t)}function w(t){return 1-b(t)}function S(t){return((t*=2)<=1?b(1-t):2-b(t-1))/2}function k(t){return 1-Math.sqrt(1-t*t)}function C(t){return Math.sqrt(1- --t*t)}function E(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var M=4/11,O=6/11,T=8/11,I=3/4,A=9/11,P=10/11,D=15/16,_=21/22,R=63/64,N=1/M/M;function F(t){return 1-L(1-t)}function L(t){return(t=+t)Math.PI/2?Math.PI-c:c,u=u>Math.PI/2?Math.PI-u:u,{xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(u-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}i("rect",a),i("image",a),i("circle",s),i("marker",s),i("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t})),n},l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},c=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),l=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},u=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,u=0,d=0;"M"===t[0][0]&&(a=i=+t[0][1],u=o=+t[0][2],d++,r[0]=["M",i,o]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),h=void 0,p=void 0,v=d,g=t.length;v1&&(r*=S=Math.sqrt(S),i*=S);var k=r*r,C=i*i,E=(a===s?-1:1)*Math.sqrt(Math.abs((k*C-k*w*w-C*x*x)/(k*w*w+C*x*x)));p=E*r*w/i+(e+l)/2,v=E*-i*x/r+(n+c)/2,f=Math.asin(((n-v)/i).toFixed(9)),h=Math.asin(((c-v)/i).toFixed(9)),f=eh&&(f-=2*Math.PI),!s&&h>f&&(h-=2*Math.PI)}var M=h-f;if(Math.abs(M)>g){var O=h,T=l,I=c;h=f+g*(s&&h>f?1:-1),y=t(l=p+r*Math.cos(h),c=v+i*Math.sin(h),r,i,o,0,s,T,I,[h,O,p,v])}M=h-f;var A=Math.cos(f),P=Math.sin(f),D=Math.cos(h),_=Math.sin(h),R=Math.tan(M/4),N=4/3*r*R,F=4/3*i*R,L=[e,n],B=[e+N*P,n-F*A],j=[l+N*_,c-F*D],z=[l,c];if(B[0]=2*L[0]-B[0],B[1]=2*L[1]-B[1],u)return[B,j,z].concat(y);for(var H=[],V=0,U=(y=[B,j,z].concat(y).join().split(",")).length;V7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,h=0;h<12;h++){var p=c*u[h]+c,v=m(p,t,n,i,a),g=m(p,e,r,o,s),y=v*v+g*g;f+=d[h]*Math.sqrt(y)}return c*f},b=function(t,e,n,r,i,o,a,s){for(var l,c,u,d,f=[],h=[[],[]],p=0;p<2;++p)if(0===p?(c=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,u=3*n-3*t):(c=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,u=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;(d=-u/c)>0&&d<1&&f.push(d)}else{var v=c*c-4*u*l,g=Math.sqrt(v);if(!(v<0)){var m=(-c+g)/(2*l);m>0&&m<1&&f.push(m);var y=(-c-g)/(2*l);y>0&&y<1&&f.push(y)}}for(var b,x=f.length,w=x;x--;)b=1-(d=f[x]),h[0][x]=b*b*b*t+3*b*b*d*n+3*b*d*d*i+d*d*d*a,h[1][x]=b*b*b*e+3*b*b*d*r+3*b*d*d*o+d*d*d*s;return h[0][w]=t,h[1][w]=e,h[0][w+1]=a,h[1][w+1]=s,h[0].length=h[1].length=w+2,{min:{x:Math.min.apply(0,h[0]),y:Math.min.apply(0,h[1])},max:{x:Math.max.apply(0,h[0]),y:Math.max.apply(0,h[1])}}},x=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)Math.max(i,a)||Math.max(e,r)Math.max(o,s))){var l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var c=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,u=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,d=+c.toFixed(2),f=+u.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,a).toFixed(2)||d>+Math.max(i,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:c,y:u}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},S=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=g,o},k=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:S(t,e,n,r),vb:[t,e,n,r].join(" ")}},C=function(t,e,n,i,o,a,s,l){(0,r.kJ)(t)||(t=[t,e,n,i,o,a,s,l]);var c=b.apply(null,t);return k(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},E=function(t,e,n,r,i,o,a,s,l){var c=1-l,u=Math.pow(c,3),d=Math.pow(c,2),f=l*l,h=f*l,p=t+2*l*(n-t)+f*(i-2*n+t),v=e+2*l*(r-e)+f*(o-2*r+e),g=n+2*l*(i-n)+f*(a-2*i+n),m=r+2*l*(o-r)+f*(s-2*o+r);return{x:u*t+3*d*l*n+3*c*l*l*i+h*a,y:u*e+3*d*l*r+3*c*l*l*o+h*s,m:{x:p,y:v},n:{x:g,y:m},start:{x:c*t+l*n,y:c*e+l*r},end:{x:c*i+l*a,y:c*o+l*s},alpha:90-180*Math.atan2(p-g,v-m)/Math.PI}},M=function(t,e,n){if(!function(t,e){return t=k(t),e=k(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(C(t),C(e)))return n?0:[];for(var r=~~(y.apply(0,t)/8),i=~~(y.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],c=0;c=0&&S<=1&&M>=0&&M<=1&&(n?l+=1:l.push({x:b.x,y:b.y,t1:S,t2:M}))}}return l},O=function(t,e){return function(t,e,n){var r,i,o,a,s,l,c,u,d,f;t=p(t),e=p(e);for(var h=n?0:[],v=0,g=t.length;v=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},A=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var d=i-(r=t.length);if(r0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=R(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},8058:function(t,e,n){"use strict";n.d(e,{$O:function(){return s},FE:function(){return o},mY:function(){return a}});var r=n(2226),i=n(9776);function o(t,e,n){var i=1;if((0,r.HD)(t)&&(i=t.split("\n").length),i>1){var o=function(t,e){return e?e-t:.14*t}(e,n);return e*i+o*(i-1)}return e}function a(t,e){var n=(0,i.L)(),o=0;if((0,r.kK)(t)||""===t)return o;if(n.save(),n.font=e,(0,r.HD)(t)&&t.includes("\n")){var a=t.split("\n");(0,r.S6)(a,(function(t){var e=n.measureText(t).width;o(n-t)*(n-t)+(r-e)*(r-e)?o(n,r,i,a):this.pointToLine(t,e,n,r,i,a)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(u.I6(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];u.Fv(s,s);var l=[i-t,o-e];return Math.abs(u.AK(l,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function f(t,e,n,r,i,a){var s,l=1/0,c=[n,r],u=20;a&&a>200&&(u=a/10);for(var d=1/u,f=d/10,h=0;h<=u;h++){var p=h*d,v=[i.apply(null,t.concat([p])),i.apply(null,e.concat([p]))];(b=o(c[0],c[1],v[0],v[1]))=0&&b=0?[i]:[]}function v(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function g(t,e,n,r,i,o,a){var s=h(t,n,i,a),l=h(e,r,o,a),c=d.pointAt(t,e,n,r,a),u=d.pointAt(n,r,i,o,a);return[[t,e,c.x,c.y,s,l],[s,l,u.x,u.y,i,o]]}function m(t,e,n,r,i,a,s){if(0===s)return(o(t,e,n,r)+o(n,r,i,a)+o(t,e,i,a))/2;var l=g(t,e,n,r,i,a,.5),c=l[0],u=l[1];return c.push(s-1),u.push(s-1),m.apply(null,c)+m.apply(null,u)}var y={box:function(t,e,n,r,i,o){var a=p(t,n,i)[0],l=p(e,r,o)[0],c=[t,i],u=[e,o];return void 0!==a&&c.push(h(t,n,i,a)),void 0!==l&&u.push(h(e,r,o,l)),s(c,u)},length:function(t,e,n,r,i,o){return m(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return f([t,n,i],[e,r,o],a,s,h)},pointDistance:function(t,e,n,r,i,a,s,l){var c=this.nearestPoint(t,e,n,r,i,a,s,l);return o(c.x,c.y,s,l)},interpolationAt:h,pointAt:function(t,e,n,r,i,o,a){return{x:h(t,n,i,a),y:h(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return g(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=v(t,n,i,a),l=v(e,r,o,a);return c(Math.atan2(l,s))}};function b(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function x(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function w(t,e,n,r){var i,o,s,l=-3*t+9*e-9*n+3*r,c=6*t-12*e+6*n,u=3*e-3*t,d=[];if(a(l,0))a(c,0)||(i=-u/c)>=0&&i<=1&&d.push(i);else{var f=c*c-4*l*u;a(f,0)?d.push(-c/(2*l)):f>0&&(o=(-c-(s=Math.sqrt(f)))/(2*l),(i=(-c+s)/(2*l))>=0&&i<=1&&d.push(i),o>=0&&o<=1&&d.push(o))}return d}function S(t,e,n,r,i,o,a,s,l){var c=b(t,n,i,a,l),u=b(e,r,o,s,l),f=d.pointAt(t,e,n,r,l),h=d.pointAt(n,r,i,o,l),p=d.pointAt(i,o,a,s,l),v=d.pointAt(f.x,f.y,h.x,h.y,l),g=d.pointAt(h.x,h.y,p.x,p.y,l);return[[t,e,f.x,f.y,v.x,v.y,c,u],[c,u,g.x,g.y,p.x,p.y,a,s]]}function k(t,e,n,r,i,a,s,l,c){if(0===c)return function(t,e){for(var n=0,r=t.length,i=0;i0?n:-1*n}var M=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var l,c,u=i-t,d=o-e,f=Math.abs(u),h=Math.abs(d),p=a*a,v=s*s,g=Math.PI/4,m=0;m<4;m++){l=a*Math.cos(g),c=s*Math.sin(g);var y=(p-v)*Math.pow(Math.cos(g),3)/a,b=(v-p)*Math.pow(Math.sin(g),3)/s,x=l-y,w=c-b,S=f-y,k=h-b,C=Math.hypot(w,x),M=Math.hypot(k,S);g+=C*Math.asin((x*k-w*S)/(C*M))/Math.sqrt(p+v-l*l-c*c),g=Math.min(Math.PI/2,Math.max(0,g))}return{x:t+E(l,u),y:e+E(c,d)}};function O(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function T(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function I(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function A(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var P={box:function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),l=1/0,c=-1/0,u=[o,a],d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var f=s+d;oc&&(c=h)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),v=1/0,g=-1/0,m=[o,a];for(d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var y=p+d;og&&(g=b)}return{x:l,y:v,width:c-l,height:g-v}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,l){var c=A(s-t,l-e,-i),u=c[0],d=c[1],f=M(0,0,n,r,u,d),h=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,f.x,f.y);ha&&(f=I(n,r,a));var p=A(f.x,f.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,a,s,l,c){var u=this.nearestPoint(t,e,n,r,l,c);return o(u.x,u.y,l,c)},pointAt:function(t,e,n,r,i,o,a,s){var l=(a-o)*s+o;return{x:O(t,0,n,r,i,l),y:T(0,e,n,r,i,l)}},tangentAngle:function(t,e,n,r,i,o,a,s){var l=(a-o)*s+o,u=function(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,i,0,0,l),d=function(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,i,0,0,l);return c(Math.atan2(d,u))}};function D(t){for(var e=0,n=[],r=0;r1||e<0||t.length<2)return null;var n=D(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s=o&&e<=o+f){var h=(e-o)/f;a=d.pointAt(c[0],c[1],u[0],u[1],h);break}o+=f}return a}function N(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=D(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s=o&&e<=o+d){a=Math.atan2(u[1]-c[1],u[0]-c[0]);break}o+=d}return a}function F(t,e,n){for(var r=1/0,i=0;i=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}},3811:function(t,e,n){"use strict";n.d(e,{e9:function(){return l},Wq:function(){return P},tr:function(){return f},wb:function(){return v},zx:function(){return S}});var r=n(3283),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;var a=function(t){var e=t||[];return(0,r.kJ)(e)?e:(0,r.HD)(e)?(e=e.match(i),(0,r.S6)(e,(function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.S6)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0},s=n(7136);var l=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var h=/[a-z]/;function p(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function v(t){var e=f(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,l=0,c=0,u=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(l=a=+d[1],c=s=+d[2],u++,o[0]=["M",a,s]);r=u;for(var v=e.length;r1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var v=n*n*(h*h)+i*i*(f*f),g=v?Math.sqrt((n*n*(i*i)-v)/v):1;a===s&&(g*=-1),isNaN(g)&&(g=0);var x=i?g*n*h/i:0,w=n?g*-i*f/n:0,S=(l+u)/2+Math.cos(o)*x-Math.sin(o)*w,k=(c+d)/2+Math.sin(o)*x+Math.cos(o)*w,C=[(f-x)/n,(h-w)/i],E=[(-1*f-x)/n,(-1*h-w)/i],M=y([1,0],C),O=y(C,E);return m(C,E)<=-1&&(O=Math.PI),m(C,E)>=1&&(O=0),0===s&&O>0&&(O-=2*Math.PI),1===s&&O<0&&(O+=2*Math.PI),{cx:S,cy:k,rx:b(t,[u,d])?0:n,ry:b(t,[u,d])?0:i,startAngle:M,endAngle:M+O,xRotation:o,arcFlag:a,sweepFlag:s}}function w(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function S(t){for(var e=[],n=null,r=null,i=null,o=0,s=(t=a(t)).length,l=0;l0!==C(s[1]-n)>0&&C(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var O=function(t,e,n){return t>=e&&t<=n};function T(t){for(var e=[],n=t.length,r=0;r1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function I(t,e){var n=!1;return(0,r.S6)(t,(function(t){if(function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,l=r.x-n.x,c=r.y-n.y,u=a*c-s*l,d=null;if(u*u>.001*(a*a+s*s)*(l*l+c*c)){var f=(i*c-o*l)/u,h=(i*s-o*a)/u;O(f,0,1)&&O(h,0,1)&&(d={x:t.x+f*a,y:t.y+f*s})}return d}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function A(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function P(t,e){if(t.length<2||e.length<2)return!1;var n,i,o=A(t),a=A(e);if(n=o,(i=a).minX>n.maxX||i.maxXn.maxY||i.maxY-1},o=function(t,e){if(!r(t))return t;for(var n=[],i=0;ie[i])return 1;if(t[i]n?n:t},U=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},W=function(t){return l(t,"Number")},Y=(Number.isInteger&&Number.isInteger,1e-5);function G(t,e,n){return void 0===n&&(n=Y),Math.abs(t-e)r&&(n=o,r=a)}return n}},X=function(t,e){if(d(t)){for(var n,r=1/0,i=0;ie?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},Ft=function(t){return r(t)?Array.prototype.slice.call(t):[]},Lt={},Bt=function(t){return Lt[t=t||"g"]?Lt[t]+=1:Lt[t]=1,t+Lt[t]},jt=function(){};function zt(t){return u(t)?0:r(t)?t.length:Object.keys(t).length}var Ht,Vt=n(5152),Ut=yt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Ht||(Ht=document.createElement("canvas").getContext("2d")),Ht.font=[o,a,i,n+"px",r].join(" "),Ht.measureText(A(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,Vt.pr)([t],tt(e)).join("")})),Wt=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Ut(r,n),s=A(t)?t:et(t),l=e,c=[];if(Ut(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Ut(i,n))+a>l&&o>l);)if(c.push(i),l-=o,!(s=s.substr(16)))return c.join("");for(;i=s.substr(0,1),!((o=Ut(i,n))+a>l);)if(c.push(i),l-=o,!(s=s.substr(1)))return c.join("");return""+c.join("")+r},Yt=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},5197:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;ei&&(t.splice(r+1,0,d),n=!0)}return n}}function d(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-o*t,o]}function f(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function i(i){var o=0,l=0,c=0,f=0,h=0,p=0,v=t?+t[0]:1/0,g=t?+t[1]:-1/0;a(i,n,r,(function(e,n){var r=Math.log(n),i=e*n;++o,l+=(n-l)/o,f+=(i-f)/o,p+=(e*i-p)/o,c+=(n*r-c)/o,h+=(i*r-h)/o,t||(eg&&(g=e))}));var m=e(d(f/l,c/l,h/l,p/l),2),y=m[0],b=m[1];y=Math.exp(y);var x=function(t){return y*Math.exp(b*t)},w=u(v,g,x);return w.a=y,w.b=b,w.predict=x,w.rSquared=s(i,n,r,l,x),w}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i}function h(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function i(i){var o=0,l=0,c=0,u=0,f=0,h=t?+t[0]:1/0,p=t?+t[1]:-1/0;a(i,n,r,(function(e,n){++o,l+=(e-l)/o,c+=(n-c)/o,u+=(e*n-u)/o,f+=(e*e-f)/o,t||(ep&&(p=e))}));var v=e(d(l,c,u,f),2),g=v[0],m=v[1],y=function(t){return m*t+g},b=[[h,y(h)],[p,y(p)]];return b.a=m,b.b=g,b.predict=y,b.rSquared=s(i,n,r,c,y),b}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i}function p(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1===0?(t[e-1]+t[e])/2:t[Math.floor(e)]}var v=2,g=1e-12;function m(){var t=function(t){return t[0]},n=function(t){return t[1]},r=.3;function i(i){for(var a=e(o(i,t,n,!0),4),s=a[0],l=a[1],c=a[2],u=a[3],f=s.length,h=Math.max(2,~~(r*f)),m=new Float64Array(f),w=new Float64Array(f),S=new Float64Array(f).fill(1),k=-1;++k<=v;){for(var C=[0,h-1],E=0;Es[T]-M?O:T,A=0,P=0,D=0,_=0,R=0,N=1/Math.abs(s[I]-M||1),F=O;F<=T;++F){var L=s[F],B=l[F],j=y(Math.abs(M-L)*N)*S[F],z=L*j;A+=j,P+=z,D+=B*j,_+=B*z,R+=L*z}var H=e(d(P/A,D/A,_/A,R/A),2),V=H[0],U=H[1];m[E]=V+U*M,w[E]=Math.abs(l[E]-m[E]),b(s,E+1,C)}if(k===v)break;var W=p(w);if(Math.abs(W)=1?g:(G=1-Y*Y)*G}return x(s,m,c,u)}return i.bandwidth=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function y(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function x(t,e,n,r){for(var i,o=t.length,a=[],s=0,l=0,c=[];sg&&(g=e))}));var y=e(d(c,f,h,p),2),b=y[0],x=y[1],w=function(t){return x*Math.log(t)/m+b},S=u(v,g,w);return S.a=x,S.b=b,S.predict=w,S.rSquared=s(o,n,r,f,w),S}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(r=t,o):r},o.base=function(t){return arguments.length?(i=t,o):i},o}function S(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function i(i){var l,c,d,f,h=e(o(i,n,r),4),p=h[0],v=h[1],g=h[2],m=h[3],y=p.length,b=0,x=0,w=0,S=0,k=0;for(l=0;lO&&(O=e))}));var T=w-b*b,I=b*T-x*x,A=(k*b-S*x)/I,P=(S*T-k*x)/I,D=-A*b,_=function(t){return A*(t-=g)*t+P*t+D+m},R=u(M,O,_);return R.a=A,R.b=P-2*A*g,R.c=D-P*g+A*g*g+m,R.predict=_,R.rSquared=s(i,n,r,C,_),R}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i}function k(){var t,n=function(t){return t[0]},r=function(t){return t[1]},i=3;function l(l){if(1===i){var c=h().x(n).y(r).domain(t)(l);return c.coefficients=[c.b,c.a],delete c.a,delete c.b,c}if(2===i){var d=S().x(n).y(r).domain(t)(l);return d.coefficients=[d.c,d.b,d.a],delete d.a,delete d.b,delete d.c,d}var f,p,v,g,m,y=e(o(l,n,r),4),b=y[0],x=y[1],w=y[2],k=y[3],M=b.length,O=[],T=[],I=i+1,A=0,P=0,D=t?+t[0]:1/0,_=t?+t[1]:-1/0;for(a(l,n,r,(function(e,n){++P,A+=(n-A)/P,t||(e_&&(_=e))})),f=0;f=0;--i)for(a=e[i],s=1,l[i]+=a,o=1;o<=i;++o)s*=(i+1-o)/o,l[i-o]+=a*Math.pow(n,o)*s;return l[0]+=r,l}function E(t){var e,n,r,i,o,a=t.length-1,s=[];for(e=0;eMath.abs(t[e][i])&&(i=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,r=n+1;rg&&(g=e))}));var m=e(d(l,c,f,h),2),y=m[0],b=m[1];y=Math.exp(y);var x=function(t){return y*Math.pow(t,b)},w=u(v,g,x);return w.a=y,w.b=b,w.predict=x,w.rSquared=s(i,n,r,p,x),w}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i}t.regressionExp=f,t.regressionLinear=h,t.regressionLoess=m,t.regressionLog=w,t.regressionPoly=k,t.regressionPow=M,t.regressionQuad=S,Object.defineProperty(t,"__esModule",{value:!0})}(e)},6593:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()1)return t(a[0])}else{var s=e.name;x[s]=e,i=s}return!r&&i&&(b=i),i||!r&&b},k=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},C=y;C.l=S,C.i=w,C.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function g(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(C.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return k(t)68?1900:2e3)},s=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],c=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},d={A:[i,function(t){this.afternoon=u(t,!1)}],a:[i,function(t){this.afternoon=u(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(t){var e=c("months"),n=(c("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(t){var e=c("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),s=a.length,l=0;l-1)return new Date(("X"===e?1e3:1)*t);var r=f(e)(t),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,h=new Date,p=a||(i||o?1:h.getDate()),v=i||h.getFullYear(),g=0;i&&!o||(g=o>0?o-1:h.getMonth());var m=s||0,y=l||0,b=c||0,x=u||0;return d?new Date(Date.UTC(v,g,p,m,y,b,x+60*d.offset*1e3)):n?new Date(Date.UTC(v,g,p,m,y,b,x)):new Date(v,g,p,m,y,b,x)}catch(t){return new Date("")}}(e,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&e!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){a[1]=s[p-1];var v=n.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===h&&(this.$d=new Date(""))}else i.call(this,t)}}}()},2222:function(t){t.exports=function(){"use strict";return function(t,e,n){var r=e.prototype,i=function(t){return t&&(t.indexOf?t:t.s)},o=function(t,e,n,r,o){var a=t.name?t:t.$locale(),s=i(a[e]),l=i(a[n]),c=s||l.map((function(t){return t.slice(0,r)}));if(!o)return c;var u=a.weekStart;return c.map((function(t,e){return c[(e+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(t,e){return t.formats[e]||function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}(t.formats[e.toUpperCase()])},l=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):o(t,"months")},monthsShort:function(e){return e?e.format("MMM"):o(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):o(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):o(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):o(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return s(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var t=a();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(e){return s(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},n.months=function(){return o(a(),"months")},n.monthsShort=function(){return o(a(),"monthsShort","months",3)},n.weekdays=function(t){return o(a(),"weekdays",null,null,t)},n.weekdaysShort=function(t){return o(a(),"weekdaysShort","weekdays",3,t)},n.weekdaysMin=function(t){return o(a(),"weekdaysMin","weekdays",2,t)}}}()},1619:function(t){t.exports=function(){"use strict";var t="week",e="year";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(e).add(1,e).date(r),a=i(this).endOf(t);if(o.isBefore(a))return 1}var s=i(this).startOf(e).date(r).startOf(t).subtract(1,"millisecond"),l=this.diff(s,t,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(t){return void 0===t&&(t=null),this.week(t)}}}()},2853:function(t){t.exports=function(){"use strict";return function(t,e){e.prototype.weekYear=function(){var t=this.month(),e=this.week(),n=this.year();return 1===e&&11===t?n+1:0===t&&e>=52?n-1:n}}}()},5196:function(t){t.exports=function(){"use strict";return function(t,e){e.prototype.weekday=function(t){var e=this.$locale().weekStart||0,n=this.$W,r=(n0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var c=0;c=0&&(e=u),Math.abs(l)=v[p-1].fx){var T=!1;if(w.fx>O.fx?(s(S,1+f,x,-f,O),S.fx=t(S),S.fx=1)break;for(g=1;gc+a*o*u||d>=v)p=o;else{if(Math.abs(h)<=-l*u)return o;h*(p-f)>=0&&(p=f),f=o,v=d}return 0}o=o||1,a=a||1e-6,l=l||.1;for(var g=0;g<10;++g){if(s(r.x,1,n.x,o,e),d=r.fx=t(r.x,r.fxprime),h=i(r.fxprime,e),d>c+a*o*u||g&&d>=f)return v(p,o,f);if(Math.abs(h)<=-l*u)return o;if(h>=0)return v(o,p,d);f=d,p=o,o*=2}return o}function u(t,e,n){var r,l,u,d={x:e.slice(),fx:0,fxprime:e.slice()},f={x:e.slice(),fx:0,fxprime:e.slice()},h=e.slice(),p=1;u=(n=n||{}).maxIterations||20*e.length,d.fx=t(d.x,d.fxprime),a(r=d.fxprime.slice(),d.fxprime,-1);for(var v=0;v0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function f(t,e){return t[0]*e[0]+t[1]*e[1]}function h(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function p(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function v(t,e){return t[0]===e[0]&&t[1]===e[1]}var g=o;!function(){var t=function(){var t=new r.WT(2);return r.WT!=Float32Array&&(t[0]=0,t[1]=0),t}()}()},4353:function(t,e,n){var r=1/0,i="[object Symbol]",o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s="\\ud800-\\udfff",l="\\u0300-\\u036f\\ufe20-\\ufe23",c="\\u20d0-\\u20f0",u="\\u2700-\\u27bf",d="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",p="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="['\u2019]",g="["+s+"]",m="["+p+"]",y="["+l+c+"]",b="\\d+",x="["+u+"]",w="["+d+"]",S="[^"+s+p+b+u+d+f+"]",k="\\ud83c[\\udffb-\\udfff]",C="[^"+s+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",M="[\\ud800-\\udbff][\\udc00-\\udfff]",O="["+f+"]",T="\\u200d",I="(?:"+w+"|"+S+")",A="(?:"+O+"|"+S+")",P="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",D="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",_="(?:"+y+"|"+k+")"+"?",R="["+h+"]?",N=R+_+("(?:"+T+"(?:"+[C,E,M].join("|")+")"+R+_+")*"),F="(?:"+[x,E,M].join("|")+")"+N,L="(?:"+[C+y+"?",y,E,M,g].join("|")+")",B=RegExp(v,"g"),j=RegExp(y,"g"),z=RegExp(k+"(?="+k+")|"+L+N,"g"),H=RegExp([O+"?"+w+"+"+P+"(?="+[m,O,"$"].join("|")+")",A+"+"+D+"(?="+[m,O+I,"$"].join("|")+")",O+"?"+I+"+"+P,O+"+"+D,b,F].join("|"),"g"),V=RegExp("["+T+s+l+c+h+"]"),U=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,W="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Y="object"==typeof self&&self&&self.Object===Object&&self,G=W||Y||Function("return this")();var q,X=(q={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"ss"},function(t){return null==q?void 0:q[t]});function K(t){return V.test(t)}function Z(t){return K(t)?function(t){return t.match(z)||[]}(t):function(t){return t.split("")}(t)}var $=Object.prototype.toString,Q=G.Symbol,J=Q?Q.prototype:void 0,tt=J?J.toString:void 0;function et(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&$.call(t)==i}(t))return tt?tt.call(t):"";var e=t+"";return"0"==e&&1/t==-r?"-0":e}function nt(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=d.length)){var n=Math.max(e-r,0),i=e,a=Math.min(e+r,d.length-1),s=n-(e-r),c=e+r-a,f=h[-r-1+s]||0,m=h[-r-1+c]||0,y=p/(p-f-m);s>0&&(g+=y*(s-1)*v);var b=Math.max(0,e-r+1);o.inside(0,d.length-1,b)&&(d[b].y+=1*y*v),o.inside(0,d.length-1,i+1)&&(d[i+1].y-=2*y*v),o.inside(0,d.length-1,a+1)&&(d[a+1].y+=1*y*v)}}));var m=g,y=0,b=0;return d.forEach((function(t){y+=t.y,m+=y,t.y=m,b+=m})),b>0&&d.forEach((function(t){t.y/=b})),d},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/r,Math.pow(2,e)}}},7425:function(t,e,n){"use strict";var r=n(1867),i=n(6017);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n