(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-edbf298e"],{"00c0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new Map;function a(t,e){r.set(t,e)}function i(t){return r.get(t)}e.register=a,e.getMethod=i},"023a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("c3e2"),i=n("9705"),o=n("076b"),u=n("4dab"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,a=t.y2,i=t.startArrow,o=t.endArrow;i&&u.addStartArrow(this,t,r,a,e,n),o&&u.addEndArrow(this,t,e,n,r,a)},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){if(!n||!a)return!1;var i=this.attr(),u=i.x1,s=i.y1,c=i.x2,h=i.y2;return o.default(u,s,c,h,a,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,a=e.x2,i=e.y2,o=e.startArrow,s=e.endArrow,c={dx:0,dy:0},h={dx:0,dy:0};o&&o.d&&(c=u.getShortenOffset(n,r,a,i,e.startArrow.d)),s&&s.d&&(h=u.getShortenOffset(n,r,a,i,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,r+c.dy),t.lineTo(a-h.dx,i-h.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.default.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.default.pointAt(n,r,i,o,t)},e}(i.default);e.default=s},"076b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c3e2");function a(t,e,n,a,i,o,u){var s=Math.min(t,n),c=Math.max(t,n),h=Math.min(e,a),f=Math.max(e,a),l=i/2;return o>=s-l&&o<=c+l&&u>=h-l&&u<=f+l&&r.default.pointToLine(t,e,n,a,o,u)<=i/2}e.default=a},1322:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("00c0");e.getBBoxMethod=r.getMethod;var a=n("29d7"),i=n("6cac"),o=n("2b23"),u=n("79cf"),s=n("83bc"),c=n("2d1f"),h=n("d5f3"),f=n("71f5");r.register("rect",a.default),r.register("image",a.default),r.register("circle",i.default),r.register("marker",i.default),r.register("polyline",o.default),r.register("polygon",u.default),r.register("text",s.default),r.register("path",c.default),r.register("line",h.default),r.register("ellipse",f.default)},"18f2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("72fb"),a=n("01f9"),i=n("61d8"),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,u=/[^\s\,]+/gi;function s(t){var e=t||[];return a.default(e)?e:i.default(e)?(e=e.match(o),r.default(e,(function(t,n){if(t=t.match(u),t[0].length>1){var a=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=a}r.default(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}e.default=s},"1d5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),a="\t\n\v\f\r   ᠎              \u2028\u2029",i=new RegExp("([a-z])["+a+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+a+"]*,?["+a+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+a+"]*,?["+a+"]*","ig");function u(t){if(!t)return null;if(r.default(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(i,(function(t,r,a){var i=[],u=r.toLowerCase();if(a.replace(o,(function(t,e){e&&i.push(+e)})),"m"===u&&i.length>2&&(n.push([r].concat(i.splice(0,2))),u="l",r="m"===r?"l":"L"),"o"===u&&1===i.length&&n.push([r,i[0]]),"r"===u)n.push([r].concat(i));else while(i.length>=e[u])if(n.push([r].concat(i.splice(0,e[u]))),!e[u])break;return""})),n}e.default=u},"1f05":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return a})),n.d(e,"fromMat4",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"copy",(function(){return u})),n.d(e,"fromValues",(function(){return s})),n.d(e,"set",(function(){return c})),n.d(e,"identity",(function(){return h})),n.d(e,"transpose",(function(){return f})),n.d(e,"invert",(function(){return l})),n.d(e,"adjoint",(function(){return p})),n.d(e,"determinant",(function(){return d})),n.d(e,"multiply",(function(){return g})),n.d(e,"translate",(function(){return v})),n.d(e,"rotate",(function(){return m})),n.d(e,"scale",(function(){return y})),n.d(e,"fromTranslation",(function(){return x})),n.d(e,"fromRotation",(function(){return b})),n.d(e,"fromScaling",(function(){return M})),n.d(e,"fromMat2d",(function(){return w})),n.d(e,"fromQuat",(function(){return _})),n.d(e,"normalFromMat4",(function(){return P})),n.d(e,"projection",(function(){return A})),n.d(e,"str",(function(){return C})),n.d(e,"frob",(function(){return S})),n.d(e,"add",(function(){return O})),n.d(e,"subtract",(function(){return k})),n.d(e,"multiplyScalar",(function(){return B})),n.d(e,"multiplyScalarAndAdd",(function(){return j})),n.d(e,"exactEquals",(function(){return T})),n.d(e,"equals",(function(){return E})),n.d(e,"mul",(function(){return I})),n.d(e,"sub",(function(){return D}));var r=n("c94d");function a(){var t=new r["a"](9);return r["a"]!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t){var e=new r["a"](9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function s(t,e,n,a,i,o,u,s,c){var h=new r["a"](9);return h[0]=t,h[1]=e,h[2]=n,h[3]=a,h[4]=i,h[5]=o,h[6]=u,h[7]=s,h[8]=c,h}function c(t,e,n,r,a,i,o,u,s,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=u,t[7]=s,t[8]=c,t}function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function f(t,e){if(t===e){var n=e[1],r=e[2],a=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=a}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function l(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],h=e[8],f=h*o-u*c,l=-h*i+u*s,p=c*i-o*s,d=n*f+r*l+a*p;return d?(d=1/d,t[0]=f*d,t[1]=(-h*r+a*c)*d,t[2]=(u*r-a*o)*d,t[3]=l*d,t[4]=(h*n-a*s)*d,t[5]=(-u*n+a*i)*d,t[6]=p*d,t[7]=(-c*n+r*s)*d,t[8]=(o*n-r*i)*d,t):null}function p(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],h=e[8];return t[0]=o*h-u*c,t[1]=a*c-r*h,t[2]=r*u-a*o,t[3]=u*s-i*h,t[4]=n*h-a*s,t[5]=a*i-n*u,t[6]=i*c-o*s,t[7]=r*s-n*c,t[8]=n*o-r*i,t}function d(t){var e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],u=t[6],s=t[7],c=t[8];return e*(c*i-o*s)+n*(-c*a+o*u)+r*(s*a-i*u)}function g(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],s=e[5],c=e[6],h=e[7],f=e[8],l=n[0],p=n[1],d=n[2],g=n[3],v=n[4],m=n[5],y=n[6],x=n[7],b=n[8];return t[0]=l*r+p*o+d*c,t[1]=l*a+p*u+d*h,t[2]=l*i+p*s+d*f,t[3]=g*r+v*o+m*c,t[4]=g*a+v*u+m*h,t[5]=g*i+v*s+m*f,t[6]=y*r+x*o+b*c,t[7]=y*a+x*u+b*h,t[8]=y*i+x*s+b*f,t}function v(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],s=e[5],c=e[6],h=e[7],f=e[8],l=n[0],p=n[1];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=s,t[6]=l*r+p*o+c,t[7]=l*a+p*u+h,t[8]=l*i+p*s+f,t}function m(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],s=e[5],c=e[6],h=e[7],f=e[8],l=Math.sin(n),p=Math.cos(n);return t[0]=p*r+l*o,t[1]=p*a+l*u,t[2]=p*i+l*s,t[3]=p*o-l*r,t[4]=p*u-l*a,t[5]=p*s-l*i,t[6]=c,t[7]=h,t[8]=f,t}function y(t,e,n){var r=n[0],a=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function x(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function b(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function _(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,u=r+r,s=a+a,c=n*o,h=r*o,f=r*u,l=a*o,p=a*u,d=a*s,g=i*o,v=i*u,m=i*s;return t[0]=1-f-d,t[3]=h-m,t[6]=l+v,t[1]=h+m,t[4]=1-c-d,t[7]=p-g,t[2]=l-v,t[5]=p+g,t[8]=1-c-f,t}function P(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],h=e[8],f=e[9],l=e[10],p=e[11],d=e[12],g=e[13],v=e[14],m=e[15],y=n*u-r*o,x=n*s-a*o,b=n*c-i*o,M=r*s-a*u,w=r*c-i*u,_=a*c-i*s,P=h*g-f*d,A=h*v-l*d,C=h*m-p*d,S=f*v-l*g,O=f*m-p*g,k=l*m-p*v,B=y*k-x*O+b*S+M*C-w*A+_*P;return B?(B=1/B,t[0]=(u*k-s*O+c*S)*B,t[1]=(s*C-o*k-c*A)*B,t[2]=(o*O-u*C+c*P)*B,t[3]=(a*O-r*k-i*S)*B,t[4]=(n*k-a*C+i*A)*B,t[5]=(r*C-n*O-i*P)*B,t[6]=(g*_-v*w+m*M)*B,t[7]=(v*b-d*_-m*x)*B,t[8]=(d*w-g*b+m*y)*B,t):null}function A(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function C(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function S(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function O(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function k(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function B(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function j(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function E(t,e){var n=t[0],a=t[1],i=t[2],o=t[3],u=t[4],s=t[5],c=t[6],h=t[7],f=t[8],l=e[0],p=e[1],d=e[2],g=e[3],v=e[4],m=e[5],y=e[6],x=e[7],b=e[8];return Math.abs(n-l)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(a-p)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(i-d)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-g)<=r["b"]*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(u-v)<=r["b"]*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(s-m)<=r["b"]*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-y)<=r["b"]*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(h-x)<=r["b"]*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(f-b)<=r["b"]*Math.max(1,Math.abs(f),Math.abs(b))}var I=g,D=k},2047:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b");e.default=function(t){return r.default(t,"Function")}},2412:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var r=n("c3e2"),a=n("b455");function i(t){for(var e=0,n=[],r=0;r1||e<0||t.length<2)return null;var n=i(t),a=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var u=0,s=null,c=0;c=u&&e<=u+p){var d=(e-u)/p;s=r.default.pointAt(f[0],f[1],l[0],l[1],d);break}u+=p}return s}function s(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=i(t),r=n.segments,a=n.totalLength,o=0,u=0,s=0;s=o&&e<=o+l){u=Math.atan2(f[1]-h[1],f[0]-h[0]);break}o+=l}return u}function c(t,e,n){for(var a=1/0,i=0;iMath.PI/2?Math.PI-h:h,f=f>Math.PI/2?Math.PI-f:f;var l={xExtra:Math.cos(c/2-h)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(f-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return l}function f(t){var e=t.attr(),n=e.path,r=e.stroke,a=r?e.lineWidth:0,i=t.get("segments")||o.default(n),u=c(i,a),h=u.x,f=u.y,l=u.width,p=u.height,d={minX:h,minY:f,maxX:h+l,maxY:f+p};return d=s.mergeArrowBBox(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}e.default=f},"31c4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.drawChildren=e.applyAttrsToContext=void 0;var r=n("8937"),a=n("7f6b"),i=n("9351"),o=n("516b"),u=n("4dab"),s={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){var n=e.attr();for(var i in n){var o=n[i],u=s[i]?s[i]:i;"matrix"===u&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===u&&t.setLineDash?r.isArray(o)&&t.setLineDash(o):("strokeStyle"===u||"fillStyle"===u?o=a.parseStyle(t,e,o):"globalAlpha"===u&&(o*=t.globalAlpha),t[u]=o)}}function h(t,e,n){for(var r=0;r_?w:_,k=w>_?1:w/_,B=w>_?_/w:1;e.translate(b,M),e.rotate(C),e.scale(k,B),e.arc(0,0,O,P,A,1-S),e.scale(1/k,1/B),e.rotate(-C),e.translate(-b,-M)}break;case"Z":e.closePath();break;default:break}if("Z"===d)c=h;else{var j=p.length;c=[p[j-2],p[j-1]]}}}function l(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw(),t.set("hasChanged",!0)))}function p(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),a=t.getCanvasBBox(),i=a&&!(!a.width||!a.height);r&&i?e=o.mergeRegion(n,a):r?e=n:i&&(e=a)}return e}function d(t){if(!t.length)return null;var e=[],n=[],a=[],i=[];return r.each(t,(function(t){var r=p(t);r&&(e.push(r.minX),n.push(r.minY),a.push(r.maxX),i.push(r.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,a),maxY:Math.max.apply(null,i)}}function g(t,e){return t&&e&&o.intersectRect(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}e.applyAttrsToContext=c,e.drawChildren=h,e.drawPath=f,e.refreshElement=l,e.getRefreshRegion=p,e.getMergedRegion=d,e.mergeView=g},3568:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("076b"),a=n("573a");function i(t,e,n,i,o,u,s,c){return r.default(t+o,e,t+n-o,e,u,s,c)||r.default(t+n,e+o,t+n,e+i-o,u,s,c)||r.default(t+n-o,e+i,t+o,e+i,u,s,c)||r.default(t,e+i-o,t,e+o,u,s,c)||a.default(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,u,s,c)||a.default(t+n-o,e+i-o,o,0,.5*Math.PI,u,s,c)||a.default(t+o,e+i-o,o,.5*Math.PI,Math.PI,u,s,c)||a.default(t+o,e+o,o,Math.PI,1.5*Math.PI,u,s,c)}e.default=i},3753:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180,a=function(t){return r*t};e.default=a},3820:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("6855"),i=n("c31b"),o=n("7d16"),u=n("516b"),s=n("076b"),c=n("573a"),h=n("1f05"),f=n("9fe7");function l(t){for(var e=!1,n=t.length,r=0;rA?P:A,T=P>A?1:P/A,E=P>A?A/P:1;h.translate(B,B,[-w,-_]),h.rotate(B,B,-O),h.scale(B,B,[1/T,1/E]),f.transformMat3(k,k,B),a=c.default(0,0,j,C,S,e,k[0],k[1]);break;default:break}if(a)break}}return a}function d(t){for(var e=t.length,n=[],r=[],a=[],i=0;i0&&r.push(a),{polygons:n,polylines:r}}e.default=r.__assign({hasArc:l,extractPolygons:d,isPointInStroke:p},a.PathUtil)},"3c5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("739e"),a=function(t){var e=r.default(t);return e.charAt(0).toUpperCase()+e.substring(1)};e.default=a},"3d7d":function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function a(t,e){var n=t.get("startArrowShape"),a=t.get("endArrowShape"),i=null,o=null;return n&&(i=n.getCanvasBBox(),e=r(e,i)),a&&(o=a.getCanvasBBox(),e=r(e,o)),e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeBBox=r,e.mergeArrowBBox=a},"3dfb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("076b");function a(t,e,n,a,i){var o=t.length;if(o<2)return!1;for(var u=0;u200&&(f=u/10);for(var l=1/f,p=l/10,d=0;d<=f;d++){var g=d*l,v=[o.apply(null,t.concat([g])),o.apply(null,e.concat([g]))],m=r.distance(h[0],h[1],v[0],v[1]);m=0&&m=t&&a<=t+n&&i>=e&&i<=e+r}function o(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxYi)return!1;var h={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return r.distance(h.x,h.y,u,s)<=o/2}e.default=a},5833:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("7d16"),i=n("8937"),o=n("9705"),u=n("e3ad"),s=n("be6e"),c=n("31c4"),h=n("bd06"),f=n("83e4"),l=n("3820"),p=n("4dab");function d(t,e,n){for(var r=!1,a=0;a=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=a)}));var u=o[n];if(i.isNil(u)||i.isNil(n))return null;var s=u.length,c=o[n+1];return a.default.pointAt(u[s-2],u[s-1],c[1],c[2],c[3],c[4],c[5],c[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",l.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,o=0,u=0,s=[],c=this.get("curve");c&&(i.each(c,(function(t,e){n=c[e+1],r=t.length,n&&(o+=a.default.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",o),0!==o?(i.each(c,(function(i,h){n=c[h+1],r=i.length,n&&(t=[],t[0]=u/o,e=a.default.length(i[r-2],i[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),u+=e||0,t[1]=u/o,s.push(t))})),this.set("tCache",s)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,a=e[1].startTangent;t=[],a?(t.push([n[0]-a[0],n[1]-a[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,a=e[n-1].currentPoint,i=e[n-1].endTangent;t=[],i?(t.push([a[0]-i[0],a[1]-i[1]]),t.push([a[0],a[1]])):(t.push([r[0],r[1]]),t.push([a[0],a[1]]))}return t},e}(o.default);e.default=g},"5d64":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d080"),a=n("f4c8");function i(t,e,n){var a=1;if(r.isString(t)&&(a=t.split("\n").length),a>1){var i=o(e,n);return e*a+i*(a-1)}return e}function o(t,e){return e?e-t:.14*t}function u(t,e){var n=a.getOffScreenContext(),i=0;if(r.isNil(t)||""===t)return i;if(n.save(),n.font=e,r.isString(t)&&t.includes("\n")){var o=t.split("\n");r.each(o,(function(t){var e=n.measureText(t).width;i0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t}function S(t,e){return t[0]*e[0]+t[1]*e[1]}function O(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function k(t,e,n,r){var a=e[0],i=e[1];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t}function B(t,e){e=e||1;var n=2*r["c"]()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function j(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a,t[1]=n[1]*r+n[3]*a,t}function T(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function E(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[3]*a+n[6],t[1]=n[1]*r+n[4]*a+n[7],t}function I(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[4]*a+n[12],t[1]=n[1]*r+n[5]*a+n[13],t}function D(t,e,n,r){var a=e[0]-n[0],i=e[1]-n[1],o=Math.sin(r),u=Math.cos(r);return t[0]=a*u-i*o+n[0],t[1]=a*o+i*u+n[1],t}function q(t,e){var n=t[0],r=t[1],a=e[0],i=e[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(a*a+i*i),u=o&&(n*a+r*i)/o;return Math.acos(Math.min(Math.max(u,-1),1))}function X(t){return t[0]=0,t[1]=0,t}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function N(t,e){return t[0]===e[0]&&t[1]===e[1]}function Y(t,e){var n=t[0],a=t[1],i=e[0],o=e[1];return Math.abs(n-i)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(a-o)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(o))}var L=w,R=h,W=f,z=l,H=b,V=M,G=_,Q=function(){var t=a();return function(e,n,r,a,i,o){var u,s;for(n||(n=2),r||(r=0),s=a?Math.min(a*n+r,e.length):e.length,u=r;u2&&(n.push([a].concat(o.splice(0,2))),u="l",a="m"===a?"l":"L"),"o"===u&&1===o.length&&n.push([a,o[0]]),"r"===u)n.push([a].concat(o));else while(o.length>=e[u])if(n.push([a].concat(o.splice(0,e[u]))),!e[u])break;return t})),n},f=function(t,e){for(var n=[],r=0,a=t.length;a-2*!e>r;r+=2){var i=[{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?a-4===r?i[3]={x:+t[0],y:+t[1]}:a-2===r&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[a-2],y:+t[a-1]}:a-4===r?i[3]=i[2]:r||(i[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n},l=function(t,e,n,r,a){var i=[];if(null===a&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==a){var o=Math.PI/180,u=t+n*Math.cos(-r*o),s=t+n*Math.cos(-a*o),c=e+n*Math.sin(-r*o),h=e+n*Math.sin(-a*o);i=[["M",u,c],["A",n,n,0,+(a-r>180),0,s,h]]}else i=[["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 i},p=function(t){if(t=h(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],a=0,i=0,o=0,u=0,s=0;"M"===t[0][0]&&(a=+t[0][1],i=+t[0][2],o=a,u=i,s++,r[0]=["M",a,i]);for(var c=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=s,v=t.length;g1&&(w=Math.sqrt(w),n*=w,r*=w);var _=n*n,P=r*r,A=(i===o?-1:1)*Math.sqrt(Math.abs((_*P-_*M*M-P*b*b)/(_*M*M+P*b*b)));p=A*n*M/r+(t+u)/2,d=A*-r*b/n+(e+s)/2,f=Math.asin(((e-d)/r).toFixed(9)),l=Math.asin(((s-d)/r).toFixed(9)),f=tl&&(f-=2*Math.PI),!o&&l>f&&(l-=2*Math.PI)}var C=l-f;if(Math.abs(C)>g){var S=l,O=u,k=s;l=f+g*(o&&l>f?1:-1),u=p+n*Math.cos(l),s=d+r*Math.sin(l),y=v(u,s,n,r,a,0,o,O,k,[l,S,p,d])}C=l-f;var B=Math.cos(f),j=Math.sin(f),T=Math.cos(l),E=Math.sin(l),I=Math.tan(C/4),D=4/3*n*I,q=4/3*r*I,X=[t,e],F=[t+D*j,e-q*B],N=[u+D*E,s-q*T],Y=[u,s];if(F[0]=2*X[0]-F[0],F[1]=2*X[1]-F[1],c)return[F,N,Y].concat(y);y=[F,N,Y].concat(y).join().split(",");for(var L=[],R=0,W=y.length;R7){t[e].shift();var i=t[e];while(i.length)u[e]="A",a&&(s[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),n=Math.max(r.length,a&&a.length||0)}},m=function(t,e,i,o,u){t&&e&&"M"===t[u][0]&&"M"!==e[u][0]&&(e.splice(u,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[u][1],i.y=t[u][2],n=Math.max(r.length,a&&a.length||0))};n=Math.max(r.length,a&&a.length||0);for(var y=0;y1?1:s<0?0:s;for(var c=s/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d0&&f<1&&l.push(f)}else{var g=c*c-4*h*s,v=Math.sqrt(g);if(!(g<0)){var m=(-c+v)/(2*s);m>0&&m<1&&l.push(m);var y=(-c-v)/(2*s);y>0&&y<1&&l.push(y)}}var x,b=l.length,M=b;while(b--)f=l[b],x=1-f,p[0][b]=x*x*x*t+3*x*x*f*n+3*x*f*f*a+f*f*f*o,p[1][b]=x*x*x*e+3*x*x*f*r+3*x*f*f*i+f*f*f*u;return p[0][M]=t,p[1][M]=e,p[0][M+1]=o,p[1][M+1]=u,p[0].length=p[1].length=M+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},_=function(t,e,n,r,a,i,o,u){if(!(Math.max(t,n)Math.max(a,o)||Math.max(e,r)Math.max(i,u))){var s=(t*r-e*n)*(a-o)-(t-n)*(a*u-i*o),c=(t*r-e*n)*(i-u)-(e-r)*(a*u-i*o),h=(t-n)*(i-u)-(e-r)*(a-o);if(h){var f=s/h,l=c/h,p=+f.toFixed(2),d=+l.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(a,o).toFixed(2)||p>+Math.max(a,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(i,u).toFixed(2)||d>+Math.max(i,u).toFixed(2)))return{x:f,y:l}}}},P=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},A=function(t,e,n,r,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,r-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-r],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return i.parsePathArray=x,i},C=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:A(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e){return t=C(t),e=C(e),P(e,t.x,t.y)||P(e,t.x2,t.y)||P(e,t.x,t.y2)||P(e,t.x2,t.y2)||P(t,e.x,e.y)||P(t,e.x2,e.y)||P(t,e.x,e.y2)||P(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},O=function(t,e,n,r,a,i,u,s){Object(o["isArray"])(t)||(t=[t,e,n,r,a,i,u,s]);var c=w.apply(null,t);return C(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},k=function(t,e,n,r,a,i,o,u,s){var c=1-s,h=Math.pow(c,3),f=Math.pow(c,2),l=s*s,p=l*s,d=h*t+3*f*s*n+3*c*s*s*a+p*o,g=h*e+3*f*s*r+3*c*s*s*i+p*u,v=t+2*s*(n-t)+l*(a-2*n+t),m=e+2*s*(r-e)+l*(i-2*r+e),y=n+2*s*(a-n)+l*(o-2*a+n),x=r+2*s*(i-r)+l*(u-2*i+r),b=c*t+s*n,M=c*e+s*r,w=c*a+s*o,_=c*i+s*u,P=90-180*Math.atan2(v-y,m-x)/Math.PI;return{x:d,y:g,m:{x:v,y:m},n:{x:y,y:x},start:{x:b,y:M},end:{x:w,y:_},alpha:P}},B=function(t,e,n){var r=O(t),a=O(e);if(!S(r,a))return n?0:[];for(var i=M.apply(0,t),o=M.apply(0,e),u=~~(i/8),s=~~(o/8),c=[],h=[],f={},l=n?0:[],p=0;p=0&&A<=1&&C>=0&&C<=1&&(n?l+=1:l.push({x:P.x,y:P.y,t1:A,t2:C}))}}return l},j=function(t,e,n){var r,a,i,o,u,s,c,h,f,l;t=m(t),e=m(e);for(var p=n?0:[],d=0,g=t.length;d=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return h}var D=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(I(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var i=0;i<=n-1;i++)r.push(a)}return r},q=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,i=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;s--)o=i[s].index,"add"===i[s].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var f=a-r;if(r0)){t[r]=e[r];break}n=L(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=L(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=L(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},z=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),H=z,V=n("9ab4"),G=n("7fa27"),Q=n("28f9"),Z=n.n(Q),U=n("2047"),$=n.n(U),K=n("61d8"),J=n.n(K),tt=n("9ab4f"),et=n.n(tt),nt=(n("01f9"),n("503e")),rt=n.n(nt),at=n("72fb"),it=n.n(at),ot=n("3c5c"),ut=n.n(ot);function st(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var ct="undefined"!==typeof window&&"undefined"!==typeof window.document;function ht(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;while(n){if(n===t){r=!0;break}n=n.getParent()}return r}function ft(t){return t.cfg.visible&&t.cfg.capture}var lt=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=rt()(r,e),n}return Object(V["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(G["default"]),pt=lt,dt=n("7b46"),gt=n("1f05"),vt=n("6711");function mt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt.fromTranslation(r,n),gt.multiply(t,r,e)}function yt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt.fromRotation(r,n),gt.multiply(t,r,e)}function xt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt.fromScaling(r,n),gt.multiply(t,r,e)}function bt(t,e,n){return gt.multiply(t,n,e)}function Mt(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,a=e.length;r=0;return n?a?2*Math.PI-r:r:a?r:2*Math.PI-r}function Pt(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function At(t,e){var n=[],r=t[0],a=t[1],i=t[2],o=t[3],u=t[4],s=t[5],c=t[6],h=t[7],f=t[8],l=e[0],p=e[1],d=e[2],g=e[3],v=e[4],m=e[5],y=e[6],x=e[7],b=e[8];return n[0]=l*r+p*o+d*c,n[1]=l*a+p*u+d*h,n[2]=l*i+p*s+d*f,n[3]=g*r+v*o+m*c,n[4]=g*a+v*u+m*h,n[5]=g*i+v*s+m*f,n[6]=y*r+x*o+b*c,n[7]=y*a+x*u+b*h,n[8]=y*i+x*s+b*f,n}function Ct(t,e){var n=[],r=e[0],a=e[1];return n[0]=t[0]*r+t[3]*a+t[6],n[1]=t[1]*r+t[4]*a+t[7],n}function St(t){var e=[],n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],u=t[5],s=t[6],c=t[7],h=t[8],f=h*o-u*c,l=-h*i+u*s,p=c*i-o*s,d=n*f+r*l+a*p;return d?(d=1/d,e[0]=f*d,e[1]=(-h*r+a*c)*d,e[2]=(u*r-a*o)*d,e[3]=l*d,e[4]=(h*n-a*s)*d,e[5]=(-u*n+a*i)*d,e[6]=p*d,e[7]=(-c*n+r*s)*d,e[8]=(o*n-r*i)*d,e):null}var Ot="matrix",kt=["zIndex","capture","visible","type"],Bt=["repeat"],jt=":",Tt="*";function Et(t){for(var e=[],n=0;nt.delay&&Object(o["each"])(e.toAttrs,(function(e,n){i.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var Xt=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(o["mix"])(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(V["__extends"])(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=qt(r,x):n.addAnimator(this),r.push(x),this.set("animations",r),this.set("_pause",{isPaused:!1})},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(o["each"])(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(o["each"])(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),r=this.get("_pause").pauseTime;return Object(o["each"])(n,(function(t){t.startTime=t.startTime+(e-r),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,r=this,a=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var i=function(t){var i=a[t],s=i.get("name");if(s){if((i.isGroup()||i.isCanvas&&i.isCanvas())&&n&&ht(i,n))return"break";Object(o["isArray"])(s)?Object(o["each"])(s,(function(t){r.emitDelegateEvent(i,t,e)})):u.emitDelegateEvent(i,s,e)}},u=this,s=0;s0)}));o.length>0?(it()(o,(function(t){var e=t.getBBox();a.push(e.minX,e.maxX),i.push(e.minY,e.maxY)})),t=Math.min.apply(null,a),e=Math.max.apply(null,a),n=Math.min.apply(null,i),r=Math.max.apply(null,i)):(t=0,e=0,n=0,r=0);var u={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return u},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=[],i=[],o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));o.length>0?(it()(o,(function(t){var e=t.getCanvasBBox();a.push(e.minX,e.maxX),i.push(e.minY,e.maxY)})),t=Math.min.apply(null,a),e=Math.max.apply(null,a),n=Math.min.apply(null,i),r=Math.max.apply(null,i)):(t=0,e=0,n=0,r=0);var u={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return u},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 a=this.getTotalMatrix();this._applyChildrenMarix(a)}},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();it()(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;i--){var o=t[i];if(ft(o)&&(o.isGroup()?a=o.getShape(e,n,r):o.isHit(e,n)&&(a=o)),a)break}return a},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),a=t.getParent();a&&zt(a,t,!1),t.set("parent",this),e&&Rt(t,e),r&&Wt(t,r),n.push(t),Lt(t),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=this.getChildren();it()(t,(function(t,e){return t[Yt]=e,t})),t.sort(Ht((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),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){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.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 it()(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 it()(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}(Ft),Gt=Vt,Qt=n("74f4");function Zt(t){return+t}function Ut(t){return t*t}function $t(t){return t*(2-t)}function Kt(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Jt(t){return t*t*t}function te(t){return--t*t*t+1}function ee(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ne=3,re=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(ne),ae=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(ne),ie=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}(ne),oe=Math.PI,ue=oe/2;function se(t){return 1===+t?1:1-Math.cos(t*ue)}function ce(t){return Math.sin(t*ue)}function he(t){return(1-Math.cos(oe*t))/2}function fe(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function le(t){return fe(1-+t)}function pe(t){return 1-fe(t)}function de(t){return((t*=2)<=1?fe(1-t):2-fe(t-1))/2}function ge(t){return 1-Math.sqrt(1-t*t)}function ve(t){return Math.sqrt(1- --t*t)}function me(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var ye=4/11,xe=6/11,be=8/11,Me=3/4,we=9/11,_e=10/11,Pe=15/16,Ae=21/22,Ce=63/64,Se=1/ye/ye;function Oe(t){return 1-ke(1-t)}function ke(t){return(t=+t)>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?cn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?cn(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=Ue.exec(t))?new ln(e[1],e[2],e[3],1):(e=$e.exec(t))?new ln(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ke.exec(t))?cn(e[1],e[2],e[3],e[4]):(e=Je.exec(t))?cn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tn.exec(t))?vn(e[1],e[2]/100,e[3]/100,1):(e=en.exec(t))?vn(e[1],e[2]/100,e[3]/100,e[4]):nn.hasOwnProperty(t)?sn(nn[t]):"transparent"===t?new ln(NaN,NaN,NaN,0):null}function sn(t){return new ln(t>>16&255,t>>8&255,255&t,1)}function cn(t,e,n,r){return r<=0&&(t=e=n=NaN),new ln(t,e,n,r)}function hn(t){return t instanceof We||(t=un(t)),t?(t=t.rgb(),new ln(t.r,t.g,t.b,t.opacity)):new ln}function fn(t,e,n,r){return 1===arguments.length?hn(t):new ln(t,e,n,null==r?1:r)}function ln(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function pn(){return"#"+gn(this.r)+gn(this.g)+gn(this.b)}function dn(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function gn(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function vn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new xn(t,e,n,r)}function mn(t){if(t instanceof xn)return new xn(t.h,t.s,t.l,t.opacity);if(t instanceof We||(t=un(t)),!t)return new xn;if(t instanceof xn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=NaN,u=i-a,s=(i+a)/2;return u?(o=e===i?(n-r)/u+6*(n0&&s<1?0:o,new xn(o,u,s,t.opacity)}function yn(t,e,n,r){return 1===arguments.length?mn(t):new xn(t,e,n,null==r?1:r)}function xn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function bn(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 Mn(t,e,n,r,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*e+(4-6*i+3*o)*n+(1+3*t+3*i-3*o)*r+o*a)/6}Le(We,un,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rn,formatHex:rn,formatHsl:an,formatRgb:on,toString:on}),Le(ln,fn,Re(We,{brighter:function(t){return t=null==t?He:Math.pow(He,t),new ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?ze:Math.pow(ze,t),new ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pn,formatHex:pn,formatRgb:dn,toString:dn})),Le(xn,yn,Re(We,{brighter:function(t){return t=null==t?He:Math.pow(He,t),new xn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?ze:Math.pow(ze,t),new xn(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,a=2*n-r;return new ln(bn(t>=240?t-240:t+120,a,r),bn(t,a,r),bn(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var wn=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[r],i=t[r+1],o=r>0?t[r-1]:2*a-i,u=ri&&(a=e.slice(i,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:qn(n,r)})),i=Nn.lastIndex;return if.length?(c=h(i[s]),f=h(a[s]),f=Y(f,c),f=W(f,c),e.fromAttrs.path=f,e.toAttrs.path=c):e.pathFormatted||(c=h(i[s]),f=h(a[s]),f=W(f,c),e.fromAttrs.path=f,e.toAttrs.path=c,e.pathFormatted=!0),r[s]=[];for(var l=0;l0){for(var o=r.animators.length-1;o>=0;o--)if(t=r.animators[o],t.destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var u=e.length-1;u>=0;u--)n=e[u],a=Qn(t,n,i),a&&(e.splice(u,1),a=!1,n.callback&&n.callback())}0===e.length&&r.removeAnimator(o)}var s=r.canvas.get("autoDraw");s||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}(),Un=Zn,$n=40,Kn=0,Jn=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function tr(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function er(t,e,n){if(n.bubbles){var r=void 0,a=!1;if("mouseenter"===e?(r=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,r=n.toShape),t.isCanvas()&&a)return;if(r&&ht(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var nr=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){var n=e.canvas,r=n.get("el");if(r!==t.target&&(e.dragging||e.currentShape)){var a=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,a,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,r=n.get("el");if(r!==t.target&&e.dragging){var a=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,a,null),e._emitEvent("dragend",t,a,e.draggingShape),e._afterDrag(e.draggingShape,a,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");it()(Jn,(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");it()(Jn,(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,a,i){var o=new H(t,e);return o.fromShape=a,o.toShape=i,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(r),o},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),a=this["_on"+t],i=!1;if(a)a.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(i=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(i||(this.currentShape=r),r&&!r.get("destroyed")){var u=this.canvas,s=u.get("el");s.style.cursor=r.attr("cursor")||u.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===Kn&&(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 a=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")||(a.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,a){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),a||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),a&&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(n.button===Kn){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,a=this.currentShape,i=this.draggingShape;if(this.dragging)i&&this._emitDragoverEvents(n,t,a,e,!1),this._emitEvent("drag",n,t,i);else{var o=this.mousedownPoint;if(o){var u=this.mousedownShape,s=n.timeStamp,c=s-this.mousedownTimeStamp,h=o.clientX-t.clientX,f=o.clientY-t.clientY,l=h*h+f*f;c>120||l>$n?u&&u.get("draggable")?(i=this.mousedownShape,i.set("capture",!1),this.draggingShape=i,this.dragging=!0,this._emitEvent("dragstart",n,t,i),this.mousedownShape=null,this.mousedownPoint=null):!u&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,a,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,a,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,a,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,a,i){var o=this._getEventObj(t,e,n,r,a,i);if(r){o.shape=r,tr(r,t,o);var u=r.getParent();while(u)u.emitDelegation(t,o),o.propagationStopped||er(u,t,o),o.propagationPath.push(u),u=u.getParent()}else{var s=this.canvas;tr(s,t,o)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),rr=nr,ar="px",ir=Object(dt["a"])(),or=ir&&"firefox"===ir.name,ur=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(V["__extends"])(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");J()(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new rr({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Un(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");ct&&(n.style.width=t+ar,n.style.height=e+ar)},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");ct&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(or&&!Z()(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Z()(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),r=n.x,a=n.y;return this.getPointByClient(r,a)},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"),r=n.getBoundingClientRect();return{x:t-r.left,y:e-r.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect();return{x:t+r.left,y:e+r.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.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}(Gt),sr=ur,cr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(V["__extends"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.get("bbox");return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.get("canvasBox");return t||(t=this.calculateCanvasBBox(),this.set("canvasBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,a=t.maxX,i=t.maxY;if(e){var o=Ct(e,[t.minX,t.minY]),u=Ct(e,[t.maxX,t.minY]),s=Ct(e,[t.minX,t.maxY]),c=Ct(e,[t.maxX,t.maxY]);n=Math.min(o[0],u[0],s[0],c[0]),a=Math.max(o[0],u[0],s[0],c[0]),r=Math.min(o[1],u[1],s[1],c[1]),i=Math.max(o[1],u[1],s[1],c[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,l=void 0===f?0:f,p=h.shadowOffsetX,d=void 0===p?0:p,g=h.shadowOffsetY,v=void 0===g?0:g,m=n-l+d,y=a+l+d,x=r-l+v,b=i+l+v;n=Math.min(n,m),a=Math.max(a,y),r=Math.min(r,x),i=Math.max(i,b)}return{x:n,y:r,minX:n,minY:r,maxX:a,maxY:i,width:a-n,height:i-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBox",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"),a=[t,e,1];a=this.invertFromMatrix(a);var i=a[0],o=a[1],u=this._isInBBox(i,o);if(this.isOnlyHitBox())return u;if(u&&!this.isClipped(i,o)){if(this.isInShape(i,o))return!0;if(n&&n.isHit(i,o))return!0;if(r&&r.isHit(i,o))return!0}return!1},e}(Ft),lr=fr,pr=n("2a37"),dr=pr.version},"6cac":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,a=e.r;return{x:n-a,y:r-a,width:2*a,height:2*a}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"71f5":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,a=e.rx,i=e.ry;return{x:n-a,y:r-i,width:2*a,height:2*i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"72fb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),a=n("9ab4f");function i(t,e){var n;if(t)if(r.default(t)){for(var i=0,o=t.length;i=0&&e._call.call(null,t),e=e._next;--i}function x(){h=(c=l.now())+f,i=o=0;try{y()}finally{i=0,M(),h=0}}function b(){var t=l.now(),e=t-c;e>s&&(f-=e,c=t)}function M(){var t,e,n=r,i=1/0;while(n)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);a=t,w(i)}function w(t){if(!i){o&&(o=clearTimeout(o));var e=t-h;e>24?(t<1/0&&(o=setTimeout(x,t-l.now()-f)),u&&(u=clearInterval(u))):(u||(c=l.now(),u=setInterval(b,s)),i=1,p(x))}}v.prototype=m.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:r=this,a=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},"79cf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455");function a(t){for(var e=t.attr(),n=e.points,a=[],i=[],o=0;o=0&&i<=1&&f.push(i));else{var l=c*c-4*s*h;r.isNumberEqual(l,0)?f.push(-c/(2*s)):l>0&&(u=Math.sqrt(l),i=(-c+u)/(2*s),o=(-c-u)/(2*s),i>=0&&i<=1&&f.push(i),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i,u,s,c,h){var f=o(t,n,i,s,h),l=o(e,r,u,c,h),p=a.default.pointAt(t,e,n,r,h),d=a.default.pointAt(n,r,i,u,h),g=a.default.pointAt(i,u,s,c,h),v=a.default.pointAt(p.x,p.y,d.x,d.y,h),m=a.default.pointAt(d.x,d.y,g.x,g.y,h);return[[t,e,p.x,p.y,v.x,v.y,f,l],[f,l,m.x,m.y,g.x,g.y,s,c]]}function h(t,e,n,r,a,o,u,s,f){if(0===f)return i.snapLength([t,n,a,u],[e,r,o,s]);var l=c(t,e,n,r,a,o,u,s,.5),p=l[0],d=l[1];return p.push(f-1),d.push(f-1),h.apply(null,p)+h.apply(null,d)}e.default={extrema:s,box:function(t,e,n,a,i,u,c,h){for(var f=[t,c],l=[e,h],p=s(t,n,i,c),d=s(e,a,u,h),g=0;g0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,i,o){var u=n,s=r;if(0===u||0===s)return{x:t,y:e};for(var c,h,f=i-t,l=o-e,p=Math.abs(f),d=Math.abs(l),g=u*u,v=s*s,m=Math.PI/4,y=0;y<4;y++){c=u*Math.cos(m),h=s*Math.sin(m);var x=(g-v)*Math.pow(Math.cos(m),3)/u,b=(v-g)*Math.pow(Math.sin(m),3)/s,M=c-x,w=h-b,_=p-x,P=d-b,A=Math.hypot(w,M),C=Math.hypot(P,_),S=A*Math.asin((M*P-w*_)/(A*C)),O=S/Math.sqrt(g+v-c*c-h*h);m+=O,m=Math.min(Math.PI/2,Math.max(0,m))}return{x:t+a(c,f),y:e+a(h,l)}},pointDistance:function(t,e,n,a,i,o){var u=this.nearestPoint(t,e,n,a,i,o);return r.distance(u.x,u.y,i,o)},pointAt:function(t,e,n,r,a){var i=2*Math.PI*a;return{x:t+n*Math.cos(i),y:e+r*Math.sin(i)}},tangentAngle:function(t,e,n,a,i){var o=2*Math.PI*i,u=Math.atan2(a*Math.cos(o),-n*Math.sin(o));return r.piMod(u)}}},"7f6b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n("516b"),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,i=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,u=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(t,e){var n=t.match(u);r.each(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function c(t,e,n){var r,i,o=a.exec(n),u=parseFloat(o[1])%360*(Math.PI/180),c=o[2],h=e.getBBox();u>=0&&u<.5*Math.PI?(r={x:h.minX,y:h.minY},i={x:h.maxX,y:h.maxY}):.5*Math.PI<=u&&u0!==a(c[1]-n)>0&&a(e-(n-s[1])*(s[0]-c[0])/(s[1]-c[1])-s[0])<0&&(r=!r)}return r}e.default=o},"90e6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705"),i=n("516b"),o=n("5d64"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=o.assembleFont(t)},e.prototype._setText=function(t){var e=null;i.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,a=this.attrs,u=a.textBaseline,s=a.x,c=a.y,h=1*a.fontSize,f=this._getSpaceingY(),l=o.getTextHeight(a.text,a.fontSize,a.lineHeight);i.each(e,(function(e,a){r=c+a*(f+h)-l+h,"middle"===u&&(r+=l-h-(l-h)/2),"top"===u&&(r+=l-h),n?t.fillText(e,s,r):t.strokeText(e,s,r)}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,a=n.y,i=this.get("textArr");if(i)this._drawTextArr(t,i,e);else{var o=n.text;e?t.fillText(o,r,a):t.strokeText(o,r,a)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,a=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(i.isNil(a)||1===a||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(i.isNil(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default);e.default=u},"90f6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("df01"),a=n("3753");function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function u(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var x=n*n*(m*m)+i*i*(v*v),b=x?Math.sqrt((n*n*(i*i)-x)/x):1;h===f&&(b*=-1),isNaN(b)&&(b=0);var M=i?b*n*m/i:0,w=n?b*-i*v/n:0,_=(l+d)/2+Math.cos(c)*M-Math.sin(c)*w,P=(p+g)/2+Math.sin(c)*M+Math.cos(c)*w,A=[(v-M)/n,(m-w)/i],C=[(-1*v-M)/n,(-1*m-w)/i],S=u([1,0],A),O=u(A,C);return o(A,C)<=-1&&(O=Math.PI),o(A,C)>=1&&(O=0),0===f&&O>0&&(O-=2*Math.PI),1===f&&O<0&&(O+=2*Math.PI),{cx:_,cy:P,rx:s(t,[d,g])?0:n,ry:s(t,[d,g])?0:i,startAngle:S,endAngle:S+O,xRotation:c,arcFlag:h,sweepFlag:f}}e.isSamePoint=s,e.default=c},"92ca":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9705");Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var a=n("a120");Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}});var i=n("c3e8");Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return i.default}});var o=n("9b9d");Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return o.default}});var u=n("023a");Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return u.default}});var s=n("470f");Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return s.default}});var c=n("5833");Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}});var h=n("ff69");Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return h.default}});var f=n("ac0d");Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return f.default}});var l=n("64be");Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return l.default}});var p=n("90e6");Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return p.default}})},9351:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("516b");function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function i(t,e){return a(t)*a(e)?(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e)):1}function o(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(v),a*=Math.sqrt(v));var m=n*n*(g*g)+a*a*(d*d),y=m?Math.sqrt((n*n*(a*a)-m)/m):1;s===c&&(y*=-1),isNaN(y)&&(y=0);var x=a?y*n*g/a:0,b=n?y*-a*d/n:0,M=(h+l)/2+Math.cos(u)*x-Math.sin(u)*b,w=(f+p)/2+Math.sin(u)*x+Math.cos(u)*b,_=[(d-x)/n,(g-b)/a],P=[(-1*d-x)/n,(-1*g-b)/a],A=o([1,0],_),C=o(_,P);return i(_,P)<=-1&&(C=Math.PI),i(_,P)>=1&&(C=0),0===c&&C>0&&(C-=2*Math.PI),1===c&&C<0&&(C+=2*Math.PI),{cx:M,cy:w,rx:r.isSamePoint(t,[l,p])?0:n,ry:r.isSamePoint(t,[l,p])?0:a,startAngle:A,endAngle:A+C,xRotation:u,arcFlag:s,sweepFlag:c}}e.default=u},9705:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("6855"),i=n("516b"),o=n("31c4"),u=n("1322"),s=n("92ca"),c=n("c0e4"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){o.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=u.getBBoxMethod(t),r=n(this),a=e/2,i=r.x-a,o=r.y-a,s=r.x+r.width+a,c=r.y+r.height+a;return{x:i,minX:i,y:o,minY:o,width:r.width+e,height:r.height+e,maxX:s,maxY:c}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),o.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getClip();if(e){var r=n?o.getMergedRegion([this,n]):this.getCanvasBBox();if(!i.intersectRect(e,r))return void this.set("hasChanged",!1)}t.save(),o.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype._afterDraw=function(){var t=this.getCanvasBBox(),e=this.getCanvas();if(this.set("cacheCanvasBBox",t),e){var n=e.getViewRange();this.set("isInView",i.intersectRect(t,n))}this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,a=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(i.isNil(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(i.isNil(a)||1===a||(t.globalAlpha=a),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),a=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,a)},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t["lineWidth"]+t["lineAppendWidth"]},e}(a.AbstractShape);e.default=h},"9ab4f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},"9b9d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705"),i=n("516b");function o(t){return t instanceof HTMLElement&&i.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(i.isString(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.src=t,r.crossOrigin="Anonymous",this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):o(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,a=e.width,u=e.height,s=e.sx,c=e.sy,h=e.swidth,f=e.sheight,l=e.img;(l instanceof Image||o(l))&&(i.isNil(s)||i.isNil(c)||i.isNil(h)||i.isNil(f)?t.drawImage(l,n,r,a,u):t.drawImage(l,s,c,h,f,n,r,a,u))},e}(a.default);e.default=u},"9fe7":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return a})),n.d(e,"clone",(function(){return i})),n.d(e,"length",(function(){return o})),n.d(e,"fromValues",(function(){return u})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return h})),n.d(e,"subtract",(function(){return f})),n.d(e,"multiply",(function(){return l})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return m})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return x})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return M})),n.d(e,"squaredDistance",(function(){return w})),n.d(e,"squaredLength",(function(){return _})),n.d(e,"negate",(function(){return P})),n.d(e,"inverse",(function(){return A})),n.d(e,"normalize",(function(){return C})),n.d(e,"dot",(function(){return S})),n.d(e,"cross",(function(){return O})),n.d(e,"lerp",(function(){return k})),n.d(e,"hermite",(function(){return B})),n.d(e,"bezier",(function(){return j})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat4",(function(){return E})),n.d(e,"transformMat3",(function(){return I})),n.d(e,"transformQuat",(function(){return D})),n.d(e,"rotateX",(function(){return q})),n.d(e,"rotateY",(function(){return X})),n.d(e,"rotateZ",(function(){return F})),n.d(e,"angle",(function(){return N})),n.d(e,"zero",(function(){return Y})),n.d(e,"str",(function(){return L})),n.d(e,"exactEquals",(function(){return R})),n.d(e,"equals",(function(){return W})),n.d(e,"sub",(function(){return z})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return V})),n.d(e,"dist",(function(){return G})),n.d(e,"sqrDist",(function(){return Q})),n.d(e,"len",(function(){return Z})),n.d(e,"sqrLen",(function(){return U})),n.d(e,"forEach",(function(){return $}));var r=n("c94d");function a(){var t=new r["a"](3);return r["a"]!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function i(t){var e=new r["a"](3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function u(t,e,n){var a=new r["a"](3);return a[0]=t,a[1]=e,a[2]=n,a}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function h(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function x(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.hypot(n,r,a)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function _(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function P(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function C(t,e){var n=e[0],r=e[1],a=e[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function O(t,e,n){var r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],s=n[2];return t[0]=a*s-i*u,t[1]=i*o-r*s,t[2]=r*u-a*o,t}function k(t,e,n,r){var a=e[0],i=e[1],o=e[2];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function B(t,e,n,r,a,i){var o=i*i,u=o*(2*i-3)+1,s=o*(i-2)+i,c=o*(i-1),h=o*(3-2*i);return t[0]=e[0]*u+n[0]*s+r[0]*c+a[0]*h,t[1]=e[1]*u+n[1]*s+r[1]*c+a[1]*h,t[2]=e[2]*u+n[2]*s+r[2]*c+a[2]*h,t}function j(t,e,n,r,a,i){var o=1-i,u=o*o,s=i*i,c=u*o,h=3*i*u,f=3*s*o,l=s*i;return t[0]=e[0]*c+n[0]*h+r[0]*f+a[0]*l,t[1]=e[1]*c+n[1]*h+r[1]*f+a[1]*l,t[2]=e[2]*c+n[2]*h+r[2]*f+a[2]*l,t}function T(t,e){e=e||1;var n=2*r["c"]()*Math.PI,a=2*r["c"]()-1,i=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=a*e,t}function E(t,e,n){var r=e[0],a=e[1],i=e[2],o=n[3]*r+n[7]*a+n[11]*i+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*a+n[8]*i+n[12])/o,t[1]=(n[1]*r+n[5]*a+n[9]*i+n[13])/o,t[2]=(n[2]*r+n[6]*a+n[10]*i+n[14])/o,t}function I(t,e,n){var r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function D(t,e,n){var r=n[0],a=n[1],i=n[2],o=n[3],u=e[0],s=e[1],c=e[2],h=a*c-i*s,f=i*u-r*c,l=r*s-a*u,p=a*l-i*f,d=i*h-r*l,g=r*f-a*h,v=2*o;return h*=v,f*=v,l*=v,p*=2,d*=2,g*=2,t[0]=u+h+p,t[1]=s+f+d,t[2]=c+l+g,t}function q(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function X(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function F(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function N(t,e){var n=t[0],r=t[1],a=t[2],i=e[0],o=e[1],u=e[2],s=Math.sqrt(n*n+r*r+a*a),c=Math.sqrt(i*i+o*o+u*u),h=s*c,f=h&&S(t,e)/h;return Math.acos(Math.min(Math.max(f,-1),1))}function Y(t){return t[0]=0,t[1]=0,t[2]=0,t}function L(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function R(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function W(t,e){var n=t[0],a=t[1],i=t[2],o=e[0],u=e[1],s=e[2];return Math.abs(n-o)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-u)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-s)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(s))}var z=f,H=l,V=p,G=M,Q=w,Z=o,U=_,$=function(){var t=a();return function(e,n,r,a,i,o){var u,s;for(n||(n=3),r||(r=0),s=a?Math.min(a*n+r,e.length):e.length,u=r;u=c-h&&f<=c+h)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,a=e.r;t.beginPath(),t.arc(n,r,a,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=o},a12b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),a=n("7ec0");function i(t,e,n,r,a,i,o,u){return-1*n*Math.cos(a)*Math.sin(u)-r*Math.sin(a)*Math.cos(u)}function o(t,e,n,r,a,i,o,u){return-1*n*Math.sin(a)*Math.sin(u)+r*Math.cos(a)*Math.cos(u)}function u(t,e,n){return Math.atan(-e/t*Math.tan(n))}function s(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function c(t,e,n,r,a,i){return n*Math.cos(a)*Math.cos(i)-r*Math.sin(a)*Math.sin(i)+t}function h(t,e,n,r,a,i){return n*Math.sin(a)*Math.cos(i)+r*Math.cos(a)*Math.sin(i)+e}function f(t,e,n,r){var a=Math.atan2(r*t,n*e);return(a+2*Math.PI)%(2*Math.PI)}function l(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function p(t,e,n){var r=Math.cos(n),a=Math.sin(n);return[t*r-e*a,t*a+e*r]}e.default={box:function(t,e,n,r,a,i,o){for(var f=u(n,r,a),l=1/0,p=-1/0,d=[i,o],g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var v=f+g;ip&&(p=m)}var y=s(n,r,a),x=1/0,b=-1/0,M=[i,o];for(g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var w=y+g;ib&&(b=_)}return{x:l,y:x,width:p-l,height:b-x}},length:function(t,e,n,r,a,i,o){},nearestPoint:function(t,e,n,r,i,o,u,s,c){var h=p(s-t,c-e,-i),d=h[0],g=h[1],v=a.default.nearestPoint(0,0,n,r,d,g),m=f(n,r,v.x,v.y);mu&&(v=l(n,r,u));var y=p(v.x,v.y,i);return{x:y[0]+t,y:y[1]+e}},pointDistance:function(t,e,n,a,i,o,u,s,c){var h=this.nearestPoint(t,e,n,a,s,c);return r.distance(h.x,h.y,s,c)},pointAt:function(t,e,n,r,a,i,o,u){var s=(o-i)*u+i;return{x:c(t,e,n,r,a,s),y:h(t,e,n,r,a,s)}},tangentAngle:function(t,e,n,a,u,s,c,h){var f=(c-s)*h+s,l=i(t,e,n,a,u,s,c,f),p=o(t,e,n,a,u,s,c,f);return r.piMod(Math.atan2(p,l))}}},ac0d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("c3e2"),i=n("d6a3"),o=n("8937"),u=n("9705"),s=n("3dfb"),c=n("4dab"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,a=e.endArrow,i=n.length,o=n[0][0],u=n[0][1],s=n[i-1][0],h=n[i-1][1];r&&c.addStartArrow(this,t,n[1][0],n[1][1],o,u),a&&c.addEndArrow(this,t,n[i-2][0],n[i-2][1],s,h)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){if(!n||!a)return!1;var i=this.attr().points;return s.default(i,a,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,a=e.endArrow,i=n.length;if(!(n.length<2)){var o=n[0][0],u=n[0][1],s=n[i-1][0],h=n[i-1][1];if(r&&r.d){var f=c.getShortenOffset(o,u,n[1][0],n[1][1],r.d);o+=f.dx,u+=f.dy}if(a&&a.d){f=c.getShortenOffset(n[i-2][0],n[i-2][1],s,h,a.d);s-=f.dx,h-=f.dy}t.beginPath(),t.moveTo(o,u);for(var l=0;l=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=a)})),a.default.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,u=[];o.each(t,(function(o,s){t[s+1]&&(n=[],n[0]=i/e,r=a.default.length(o[0],o[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,u.push(n))})),this.set("tCache",u)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u.default);e.default=h},b455:function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function a(t){return Math.max.apply(null,t)}function i(t,e,n,r){var a=t-n,i=e-r;return Math.sqrt(a*a+i*i)}function o(t,e){return Math.abs(t-e)<.001}function u(t,e){var n=r(t),i=r(e),o=a(t),u=a(e);return{x:n,y:i,width:o-n,height:u-i}}function s(t,e,n,i){return{minX:r([t,n]),maxX:a([t,n]),minY:r([e,i]),maxY:a([e,i])}}function c(t){return(t+2*Math.PI)%(2*Math.PI)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=i,e.isNumberEqual=o,e.getBBoxByArray=u,e.getBBoxRange=s,e.piMod=c},bd06:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f4c8");function a(t,e,n){var a=r.getOffScreenContext();return t.createPath(a),a.isPointInPath(e,n)}e.default=a},be6e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("90f6"),a=n("90f6"),i=n("18f2");function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function u(t){t=i.default(t);for(var e=[],n=null,u=null,s=null,c=0,h=t.length,f=0;f=0?[i]:[]}function s(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function c(t,e,n,a,i,u,s){var c=o(t,n,i,s),h=o(e,a,u,s),f=r.default.pointAt(t,e,n,a,s),l=r.default.pointAt(n,a,i,u,s);return[[t,e,f.x,f.y,c,h],[c,h,l.x,l.y,i,u]]}function h(t,e,n,r,i,o,u){if(0===u)return(a.distance(t,e,n,r)+a.distance(n,r,i,o)+a.distance(t,e,i,o))/2;var s=c(t,e,n,r,i,o,.5),f=s[0],l=s[1];return f.push(u-1),l.push(u-1),h.apply(null,f)+h.apply(null,l)}e.default={box:function(t,e,n,r,i,s){var c=u(t,n,i)[0],h=u(e,r,s)[0],f=[t,i],l=[e,s];return void 0!==c&&f.push(o(t,n,i,c)),void 0!==h&&l.push(o(e,r,s,h)),a.getBBoxByArray(f,l)},length:function(t,e,n,r,a,i){return h(t,e,n,r,a,i,3)},nearestPoint:function(t,e,n,r,a,u,s,c){return i.nearestPoint([t,n,a],[e,r,u],s,c,o)},pointDistance:function(t,e,n,r,i,o,u,s){var c=this.nearestPoint(t,e,n,r,i,o,u,s);return a.distance(c.x,c.y,u,s)},interpolationAt:o,pointAt:function(t,e,n,r,a,i,u){return{x:o(t,n,a,u),y:o(e,r,i,u)}},divide:function(t,e,n,r,a,i,o){return c(t,e,n,r,a,i,o)},tangentAngle:function(t,e,n,r,i,o,u){var c=s(t,n,i,u),h=s(e,r,o,u),f=Math.atan2(h,c);return a.piMod(f)}}},c3e2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),a=n("6711");e.default={box:function(t,e,n,a){return r.getBBoxByArray([t,n],[e,a])},length:function(t,e,n,a){return r.distance(t,e,n,a)},pointAt:function(t,e,n,r,a){return{x:(1-a)*t+a*n,y:(1-a)*e+a*r}},pointDistance:function(t,e,n,a,i,o){var u=(n-t)*(i-t)+(a-e)*(o-e);if(u<0)return r.distance(t,e,i,o);var s=(n-t)*(n-t)+(a-e)*(a-e);return u>s?r.distance(n,a,i,o):this.pointToLine(t,e,n,a,i,o)},pointToLine:function(t,e,n,r,i,o){var u=[n-t,r-e];if(a.exactEquals(u,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-u[1],u[0]];a.normalize(s,s);var c=[i-t,o-e];return Math.abs(a.dot(c,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},c3e8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705");function i(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){var o=this.attr(),u=a/2,s=o.x,c=o.y,h=o.rx,f=o.ry,l=(t-s)*(t-s),p=(e-c)*(e-c);return r&&n?i(l,p,h+u,f+u)<=1:r?i(l,p,h,f)<=1:!!n&&(i(l,p,h-u,f-u)>=1&&i(l,p,h+u,f+u)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,a=e.rx,i=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,a,i,0,0,2*Math.PI,!1);else{var o=a>i?a:i,u=a>i?1:a/i,s=a>i?i/a:1;t.save(),t.translate(n,r),t.scale(u,s),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(a.default);e.default=o},c94d:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return i}));var r=1e-6,a="undefined"!==typeof Float32Array?Float32Array:Array,i=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},d080:function(t,e,n){"use strict";function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromArray=r,e.isBrowser="undefined"!==typeof window&&"undefined"!==typeof window.document;var a=n("28f9");e.isNil=a.default;var i=n("2047");e.isFunction=i.default;var o=n("61d8");e.isString=o.default;var u=n("9ab4f");e.isObject=u.default;var s=n("01f9");e.isArray=s.default;var c=n("503e");e.mix=c.default;var h=n("72fb");e.each=h.default;var f=n("3c5c");function l(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;while(n){if(n===t){r=!0;break}n=n.getParent()}return r}function p(t){return t.cfg.visible&&t.cfg.capture}e.upperFirst=f.default,e.isParent=l,e.isAllowCapture=p},d40f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("516b");function a(t,e,n,a,i,o,u){var s=i/2;return r.inBox(t-s,e-s,n,i,o,u)||r.inBox(t+n-s,e-s,i,a,o,u)||r.inBox(t+s,e+a-s,n,i,o,u)||r.inBox(t-s,e+s,i,a,o,u)}e.default=a},d5f3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("3d7d");function a(t){var e=t.attr(),n=e.x1,a=e.y1,i=e.x2,o=e.y2,u=Math.min(n,i),s=Math.max(n,i),c=Math.min(a,o),h=Math.max(a,o),f={minX:u,maxX:s,minY:c,maxY:h};return f=r.mergeArrowBBox(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}e.default=a},d6a3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2412"),a=n("b455");e.default={box:function(t){for(var e=[],n=[],r=0;r=0){n=!0;break}}if(!n)return e;var s=[],c=0,h=0,f=0,l=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(c=+d[1],h=+d[2],f=c,l=h,p++,s[0]=["M",c,h]);o=p;for(var g=e.length;o