/*! For license information please see main.7093cc28.js.LICENSE.txt */ (()=>{var e={55:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AbstractCanvas:()=>c.A,AbstractGroup:()=>u.A,AbstractShape:()=>d.A,Base:()=>s.A,Event:()=>l.A,PathUtil:()=>r,assembleFont:()=>p.ei,getBBoxMethod:()=>f.F,getOffScreenContext:()=>m.X,getTextHeight:()=>p.lb,invert:()=>g.B8,isAllowCapture:()=>h.OK,multiplyVec2:()=>g.$F,registerBBox:()=>f.n,registerEasing:()=>v.f,version:()=>y});var r=n(9529),o=n(1694),i={};for(const b in o)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(b)<0&&(i[b]=()=>o[b]);n.d(t,i);var a=n(9091);i={};for(const b in a)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(b)<0&&(i[b]=()=>a[b]);n.d(t,i);var l=n(7089),s=n(5013),c=n(404),u=n(601),d=n(6399),f=n(8498),p=n(3534),h=n(1930),g=n(3683),m=n(873),v=n(4461),y="0.5.11"},75:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,t:()=>o});var r=console;function o(){return r}function i(e){r=e}},139:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{"use strict";n.d(t,{m:()=>a});var r=n(7387),o=n(1422),i=n(8870),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.S$&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.A)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(o.Q))},355:(e,t,n)=>{"use strict";n.d(t,{Bw:()=>u,Io:()=>c,Om:()=>f,Re:()=>i,S8:()=>d,T9:()=>l,WQ:()=>o,ei:()=>p,g7:()=>h,hs:()=>s,jb:()=>m,jk:()=>a,t2:()=>g});var r=n(2374);function o(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function i(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function a(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function l(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}function s(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function c(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.hypot(n,r)}function u(e){var t=e[0],n=e[1];return Math.hypot(t,n)}function d(e,t){var n=t[0],r=t[1],o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e}function f(e,t){return e[0]*t[0]+e[1]*t[1]}function p(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[3]*o+n[6],e[1]=n[1]*r+n[4]*o+n[7],e}function h(e,t){var n=e[0],r=e[1],o=t[0],i=t[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(o*o+i*i),l=a&&(n*o+r*i)/a;return Math.acos(Math.min(Math.max(l,-1),1))}function g(e,t){return e[0]===t[0]&&e[1]===t[1]}var m=i;!function(){var e=function(){var e=new r.tb(2);return r.tb!=Float32Array&&(e[0]=0,e[1]=0),e}()}()},404:(e,t,n)=>{"use strict";n.d(t,{A:()=>Fe});var r,o,i=n(6326),a=n(9827),l=n(4453),s=n(1930),c=n(3744),u=0,d=0,f=0,p=0,h=0,g=0,m="object"===typeof performance&&performance.now?performance:Date,v="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function y(){return h||(v(b),h=m.now()+g)}function b(){h=0}function x(){this._call=this._time=this._next=null}function w(e,t,n){var r=new x;return r.restart(e,t,n),r}function C(){h=(p=m.now())+g,u=d=0;try{!function(){y(),++u;for(var e,t=r;t;)(e=h-t._time)>=0&&t._call.call(null,e),t=t._next;--u}()}finally{u=0,function(){var e,t,n=r,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);o=e,k(i)}(),h=0}}function S(){var e=m.now(),t=e-p;t>1e3&&(g-=t,p=e)}function k(e){u||(d&&(d=clearTimeout(d)),e-h>24?(e<1/0&&(d=setTimeout(C,e-m.now()-g)),f&&(f=clearInterval(f))):(f||(p=m.now(),f=setInterval(S,1e3)),u=1,v(C)))}function E(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function M(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function O(){}x.prototype=w.prototype={constructor:x,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?y():+n)+(null==t?0:+t),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=e,this._time=n,k()},stop:function(){this._call&&(this._call=null,this._time=1/0,k())}};var $=.7,I=1/$,P="\\s*([+-]?\\d+)\\s*",T="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",A="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",R=/^#([0-9a-f]{3,8})$/,L=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),B=new RegExp(`^rgb\\(${A},${A},${A}\\)$`),N=new RegExp(`^rgba\\(${P},${P},${P},${T}\\)$`),F=new RegExp(`^rgba\\(${A},${A},${A},${T}\\)$`),D=new RegExp(`^hsl\\(${T},${A},${A}\\)$`),j=new RegExp(`^hsla\\(${T},${A},${A},${T}\\)$`),_={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 z(){return this.rgb().formatHex()}function H(){return this.rgb().formatRgb()}function W(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=R.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?V(t):3===n?new q(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?G(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?G(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=L.exec(e))?new q(t[1],t[2],t[3],1):(t=B.exec(e))?new q(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=N.exec(e))?G(t[1],t[2],t[3],t[4]):(t=F.exec(e))?G(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=D.exec(e))?Z(t[1],t[2]/100,t[3]/100,1):(t=j.exec(e))?Z(t[1],t[2]/100,t[3]/100,t[4]):_.hasOwnProperty(e)?V(_[e]):"transparent"===e?new q(NaN,NaN,NaN,0):null}function V(e){return new q(e>>16&255,e>>8&255,255&e,1)}function G(e,t,n,r){return r<=0&&(e=t=n=NaN),new q(e,t,n,r)}function X(e,t,n,r){return 1===arguments.length?((o=e)instanceof O||(o=W(o)),o?new q((o=o.rgb()).r,o.g,o.b,o.opacity):new q):new q(e,t,n,null==r?1:r);var o}function q(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Y(){return`#${Q(this.r)}${Q(this.g)}${Q(this.b)}`}function K(){const e=U(this.opacity);return`${1===e?"rgb(":"rgba("}${J(this.r)}, ${J(this.g)}, ${J(this.b)}${1===e?")":`, ${e})`}`}function U(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function J(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Q(e){return((e=J(e))<16?"0":"")+e.toString(16)}function Z(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new te(e,t,n,r)}function ee(e){if(e instanceof te)return new te(e.h,e.s,e.l,e.opacity);if(e instanceof O||(e=W(e)),!e)return new te;if(e instanceof te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n0&&s<1?0:a,new te(a,l,s,e.opacity)}function te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ne(e){return(e=(e||0)%360)<0?e+360:e}function re(e){return Math.max(0,Math.min(1,e||0))}function oe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ie(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}E(O,W,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z,formatHex:z,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ee(this).formatHsl()},formatRgb:H,toString:H}),E(q,X,M(O,{brighter(e){return e=null==e?I:Math.pow(I,e),new q(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?$:Math.pow($,e),new q(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new q(J(this.r),J(this.g),J(this.b),U(this.opacity))},displayable(){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:Y,formatHex:Y,formatHex8:function(){return`#${Q(this.r)}${Q(this.g)}${Q(this.b)}${Q(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:K,toString:K})),E(te,(function(e,t,n,r){return 1===arguments.length?ee(e):new te(e,t,n,null==r?1:r)}),M(O,{brighter(e){return e=null==e?I:Math.pow(I,e),new te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?$:Math.pow($,e),new te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new q(oe(e>=240?e-240:e+120,o,r),oe(e,o,r),oe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new te(ne(this.h),re(this.s),re(this.l),U(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=U(this.opacity);return`${1===e?"hsl(":"hsla("}${ne(this.h)}, ${100*re(this.s)}%, ${100*re(this.l)}%${1===e?")":`, ${e})`}`}}));const ae=e=>()=>e;function le(e,t){return function(n){return e+n*t}}function se(e){return 1===(e=+e)?ce:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):ae(isNaN(t)?n:t)}}function ce(e,t){var n=t-e;return n?le(e,n):ae(isNaN(e)?t:e)}const ue=function e(t){var n=se(t);function r(e,t){var r=n((e=X(e)).r,(t=X(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ce(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function de(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),l=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,l=ri&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,s.push({i:a,x:me(n,r)})),i=be.lastIndex;return ip.length?(f=Se.parsePathString(i[d]),p=Se.parsePathString(o[d]),p=Se.fillPathByDiff(p,f),p=Se.formatPath(p,f),t.fromAttrs.path=p,t.toAttrs.path=f):t.pathFormatted||(f=Se.parsePathString(i[d]),p=Se.parsePathString(o[d]),p=Se.formatPath(p,f),t.fromAttrs.path=p,t.toAttrs.path=f,t.pathFormatted=!0),r[d]=[];for(var h=0;h0){for(var i=r.animators.length-1;i>=0;i--)if((e=r.animators[i]).destroyed)r.removeAnimator(i);else{if(!e.isAnimatePaused())for(var a=(t=e.get("animations")).length-1;a>=0;a--)n=t[a],Ee(e,n,o)&&(t.splice(a,1),n.callback&&n.callback());0===t.length&&r.removeAnimator(i)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},e.prototype.addAnimator=function(e){this.animators.push(e)},e.prototype.removeAnimator=function(e){this.animators.splice(e,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(e){void 0===e&&(e=!0),this.animators.forEach((function(t){t.stopAnimate(e)})),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}();const Oe=Me;var $e=n(7089),Ie=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Pe(e,t,n){n.name=t,n.target=e,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}function Te(e,t,n){if(n.bubbles){var r=void 0,o=!1;if("mouseenter"===t?(r=n.fromShape,o=!0):"mouseleave"===t&&(o=!0,r=n.toShape),e.isCanvas()&&o)return;if(r&&(0,s.pu)(e,r))return void(n.bubbles=!1);n.name=t,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}}var Ae=function(){function e(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(e){var n=e.type;t._triggerEvent(n,e)},this._onDocumentMove=function(e){if(t.canvas.get("el")!==e.target&&(t.dragging||t.currentShape)){var n=t._getPointInfo(e);t.dragging&&t._emitEvent("drag",e,n,t.draggingShape)}},this._onDocumentMouseUp=function(e){if(t.canvas.get("el")!==e.target&&t.dragging){var n=t._getPointInfo(e);t.draggingShape&&t._emitEvent("drop",e,n,null),t._emitEvent("dragend",e,n,t.draggingShape),t._afterDrag(t.draggingShape,n,e)}},this.canvas=e.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var e=this,t=this.canvas.get("el");(0,s.__)(Ie,(function(n){t.addEventListener(n,e._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var e=this,t=this.canvas.get("el");(0,s.__)(Ie,(function(n){t.removeEventListener(n,e._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._getEventObj=function(e,t,n,r,o,i){var a=new $e.A(e,t);return a.fromShape=o,a.toShape=i,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},e.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},e.prototype._getPointInfo=function(e){var t=this.canvas,n=t.getClientByEvent(e),r=t.getPointByEvent(e);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(e,t){var n=this._getPointInfo(t),r=this._getShape(n,t),o=this["_on"+e],i=!1;if(o)o.call(this,n,r,t);else{var a=this.currentShape;"mouseenter"===e||"dragenter"===e||"mouseover"===e?(this._emitEvent(e,t,n,null,null,r),r&&this._emitEvent(e,t,n,r,null,r),"mouseenter"===e&&this.draggingShape&&this._emitEvent("dragenter",t,n,null)):"mouseleave"===e||"dragleave"===e||"mouseout"===e?(i=!0,a&&this._emitEvent(e,t,n,a,a,null),this._emitEvent(e,t,n,null,a,null),"mouseleave"===e&&this.draggingShape&&this._emitEvent("dragleave",t,n,null)):this._emitEvent(e,t,n,r,null,null)}if(i||(this.currentShape=r),r&&!r.get("destroyed")){var l=this.canvas;l.get("el").style.cursor=r.attr("cursor")||l.get("cursor")}},e.prototype._onmousedown=function(e,t,n){0===n.button&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,e,t,null,null)},e.prototype._emitMouseoverEvents=function(e,t,n,r){var o=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",e,t,n,n,r),this._emitEvent("mouseleave",e,t,n,n,r),r&&!r.get("destroyed")||(o.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",e,t,r,n,r),this._emitEvent("mouseenter",e,t,r,n,r)))},e.prototype._emitDragoverEvents=function(e,t,n,r,o){r?(r!==n&&(n&&this._emitEvent("dragleave",e,t,n,n,r),this._emitEvent("dragenter",e,t,r,n,r)),o||this._emitEvent("dragover",e,t,r)):n&&this._emitEvent("dragleave",e,t,n,n,r),o&&this._emitEvent("dragover",e,t,r)},e.prototype._afterDrag=function(e,t,n){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(t,n);r!==e&&this._emitMouseoverEvents(n,t,e,r),this.currentShape=r},e.prototype._onmouseup=function(e,t,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,e,t),this._emitEvent("dragend",n,e,r),this._afterDrag(r,e,n)):(this._emitEvent("mouseup",n,e,t),t===this.mousedownShape&&this._emitEvent("click",n,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(e,t,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,e,r,t,!0)},e.prototype._onmousemove=function(e,t,n){var r=this.canvas,o=this.currentShape,i=this.draggingShape;if(this.dragging)i&&this._emitDragoverEvents(n,e,o,t,!1),this._emitEvent("drag",n,e,i);else{var a=this.mousedownPoint;if(a){var l=this.mousedownShape,s=n.timeStamp-this.mousedownTimeStamp,c=a.clientX-e.clientX,u=a.clientY-e.clientY;s>120||c*c+u*u>40?l&&l.get("draggable")?((i=this.mousedownShape).set("capture",!1),this.draggingShape=i,this.dragging=!0,this._emitEvent("dragstart",n,e,i),this.mousedownShape=null,this.mousedownPoint=null):!l&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,o,t),this._emitEvent("mousemove",n,e,t)):(this._emitMouseoverEvents(n,e,o,t),this._emitEvent("mousemove",n,e,t))}else this._emitMouseoverEvents(n,e,o,t),this._emitEvent("mousemove",n,e,t)}},e.prototype._emitEvent=function(e,t,n,r,o,i){var a=this._getEventObj(e,t,n,r,o,i);if(r){a.shape=r,Pe(r,e,a);for(var l=r.getParent();l;)l.emitDelegation(e,a),a.propagationStopped||Te(l,e,a),a.propagationPath.push(l),l=l.getParent()}else{Pe(this.canvas,e,a)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}();const Re=Ae;var Le=(0,a.o0)(),Be=Le&&"firefox"===Le.name,Ne=function(e){function t(t){var n=e.call(this,t)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.C6)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},t.prototype.initContainer=function(){var e=this.get("container");(0,s.Kg)(e)&&(e=document.getElementById(e),this.set("container",e))},t.prototype.initDom=function(){var e=this.createDom();this.set("el",e),this.get("container").appendChild(e),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var e=new Re({canvas:this});e.init(),this.set("eventController",e)},t.prototype.initTimeline=function(){var e=new Oe(this);this.set("timeline",e)},t.prototype.setDOMSize=function(e,t){var n=this.get("el");s.Bd&&(n.style.width=e+"px",n.style.height=t+"px")},t.prototype.changeSize=function(e,t){this.setDOMSize(e,t),this.set("width",e),this.set("height",t),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(e){this.set("cursor",e);var t=this.get("el");s.Bd&&t&&(t.style.cursor=e)},t.prototype.getPointByEvent=function(e){if(this.get("supportCSSTransform")){if(Be&&!(0,s.gD)(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX,y:e.layerY};if(!(0,s.gD)(e.offsetX))return{x:e.offsetX,y:e.offsetY}}var t=this.getClientByEvent(e),n=t.x,r=t.y;return this.getPointByClient(n,r)},t.prototype.getClientByEvent=function(e){var t=e;return e.touches&&(t="touchend"===e.type?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},t.prototype.getPointByClient=function(e,t){var n=this.get("el").getBoundingClientRect();return{x:e-n.left,y:t-n.top}},t.prototype.getClientByPoint=function(e,t){var n=this.get("el").getBoundingClientRect();return{x:e+n.left,y:t+n.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.parentNode.removeChild(e)},t.prototype.clearEvents=function(){this.get("eventController").destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(l.A);const Fe=Ne},446:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,m={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},k=function(e,t){if(C(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},E=y;E.l=S,E.i=C,E.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e){"use strict";e.exports=n(1153)},601:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6326);const o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var t=e.prototype.clone.call(this),n=this.getChildren(),r=0;r{"use strict";function r(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],l=t[5],s=t[6],c=t[7],u=t[8],d=u*a-l*c,f=-u*i+l*s,p=c*i-a*s,h=n*d+r*f+o*p;return h?(h=1/h,e[0]=d*h,e[1]=(-u*r+o*c)*h,e[2]=(l*r-o*a)*h,e[3]=f*h,e[4]=(u*n-o*s)*h,e[5]=(-l*n+o*i)*h,e[6]=p*h,e[7]=(-c*n+r*s)*h,e[8]=(a*n-r*i)*h,e):null}function o(e,t,n){var r=t[0],o=t[1],i=t[2],a=t[3],l=t[4],s=t[5],c=t[6],u=t[7],d=t[8],f=n[0],p=n[1],h=n[2],g=n[3],m=n[4],v=n[5],y=n[6],b=n[7],x=n[8];return e[0]=f*r+p*a+h*c,e[1]=f*o+p*l+h*u,e[2]=f*i+p*s+h*d,e[3]=g*r+m*a+v*c,e[4]=g*o+m*l+v*u,e[5]=g*i+m*s+v*d,e[6]=y*r+b*a+x*c,e[7]=y*o+b*l+x*u,e[8]=y*i+b*s+x*d,e}function i(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function a(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function l(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}n.d(t,{$0:()=>a,B8:()=>r,CV:()=>l,kN:()=>i,lw:()=>o})},850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,o=n(2956),i=(r=n(4327))&&r.__esModule?r:{default:r};t.createSensor=function(e,t){var n=void 0,r=[],a=(0,i.default)((function(){r.forEach((function(t){t(e)}))})),l=function(){n.disconnect(),r=[],n=void 0,e.removeAttribute(o.SizeSensorId),t&&t()};return{element:e,bind:function(t){n||(n=function(){var t=new ResizeObserver(a);return t.observe(e),a(),t}()),-1===r.indexOf(t)&&r.push(t)},destroy:l,unbind:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),0===r.length&&n&&l()}}}},873:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=null;function o(){if(!r){var e=document.createElement("canvas");e.width=1,e.height=1,r=e.getContext("2d")}return r}},1132:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case h:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return v(e)===h}},1153:(e,t,n)=>{"use strict";var r=n(5043),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1219:e=>{"use strict";var t=e.exports;e.exports.isNumber=function(e){return"number"===typeof e},e.exports.findMin=function(e){if(0===e.length)return 1/0;for(var t=e[0],n=1;n{"use strict";n.d(t,{Q:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},1567:function(e,t){!function(e){"use strict";function t(e,t,n,r){var o=(r=r||{}).maxIterations||100,i=r.tolerance||1e-10,a=e(t),l=e(n),s=n-t;if(a*l>0)throw"Initial bisect points must have opposite signs";if(0===a)return t;if(0===l)return n;for(var c=0;c=0&&(t=u),Math.abs(s)=g[h-1].fx){var $=!1;if(w.fx>O.fx?(l(C,1+f,x,-f,O),C.fx=e(C),C.fx=1)break;for(m=1;mc+a*i*u||d>=g)h=i;else{if(Math.abs(p)<=-s*u)return i;p*(h-f)>=0&&(h=f),f=i,g=d}return 0}i=i||1,a=a||1e-6,s=s||.1;for(var m=0;m<10;++m){if(l(r.x,1,n.x,i,t),d=r.fx=e(r.x,r.fxprime),p=o(r.fxprime,t),d>c+a*i*u||m&&d>=f)return g(h,i,f);if(Math.abs(p)<=-s*u)return i;if(p>=0)return g(i,h,d);f=d,h=i,i*=2}return i}function u(e,t,n){var r,s,u,d={x:t.slice(),fx:0,fxprime:t.slice()},f={x:t.slice(),fx:0,fxprime:t.slice()},p=t.slice(),h=1;u=(n=n||{}).maxIterations||20*t.length,d.fx=e(d.x,d.fxprime),a(r=d.fxprime.slice(),d.fxprime,-1);for(var g=0;g{},1930:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>i,E6:()=>o,Gv:()=>r.Gv,Kg:()=>r.Kg,OK:()=>l,Tn:()=>r.Tn,Zb:()=>r.Zb,__:()=>r.__,gD:()=>r.gD,jh:()=>r.jh,pu:()=>a});var r=n(3744);function o(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var i="undefined"!==typeof window&&"undefined"!==typeof window.document;function a(e,t){if(e.isCanvas())return!0;for(var n=t.getParent(),r=!1;n;){if(n===e){r=!0;break}n=n.getParent()}return r}function l(e){return e.cfg.visible&&e.cfg.capture}},1970:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(6326),o=n(3744),i=n(5045),a=n(1930),l=n(3683),s=n(5013),c=i.pd,u="matrix",d=["zIndex","capture","visible","type"],f=["repeat"];function p(e,t){var n={},r=t.attrs;for(var o in e)n[o]=r[o];return n}const h=function(e){function t(t){var n=e.call(this,t)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,o.jh)(r,t.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,r.C6)(t,e),t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(e){},t.prototype.initAttrs=function(e){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var e,t=[],n=0;n0?r=function(e,t){if(t.onFrame)return e;var n=t.startTime,r=t.delay,i=t.duration,a=Object.prototype.hasOwnProperty;return(0,o.__)(e,(function(e){n+re.delay&&(0,o.__)(t.toAttrs,(function(t,n){a.call(e.toAttrs,n)&&(delete e.toAttrs[n],delete e.fromAttrs[n])}))})),e}(r,w):n.addAnimator(this),r.push(w),this.set("animations",r),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(e){var t=this;void 0===e&&(e=!0);var n=this.get("animations");(0,o.__)(n,(function(n){e&&(n.onFrame?t.attr(n.onFrame(1)):t.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var e=this.get("timeline"),t=this.get("animations"),n=e.getTime();return(0,o.__)(t,(function(e){e._paused=!0,e._pauseTime=n,e.pauseCallback&&e.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},t.prototype.resumeAnimate=function(){var e=this.get("timeline").getTime(),t=this.get("animations"),n=this.get("_pause").pauseTime;return(0,o.__)(t,(function(t){t.startTime=t.startTime+(e-n),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",t),this},t.prototype.emitDelegation=function(e,t){var n,r=this,i=t.propagationPath;this.getEvents();"mouseenter"===e?n=t.fromShape:"mouseleave"===e&&(n=t.toShape);for(var l=function(e){var l=i[e],c=l.get("name");if(c){if((l.isGroup()||l.isCanvas&&l.isCanvas())&&n&&(0,a.pu)(l,n))return"break";(0,o.cy)(c)?(0,o.__)(c,(function(e){r.emitDelegateEvent(l,e,t)})):s.emitDelegateEvent(l,c,t)}},s=this,c=0;c{"use strict";n.d(t,{j:()=>o});var r=n(8870),o=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.G6)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o{"use strict";n.d(t,{A:()=>r});const r=function(){function e(){this._events={}}return e.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r{"use strict";n.d(t,{tb:()=>r});var r="undefined"!==typeof Float32Array?Float32Array:Array;Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},2730:(e,t,n)=>{"use strict";var r=n(5043),o=n(8853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n