(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-614dba81"],{"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},"01f9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b");e.default=function(t){return Array.isArray?Array.isArray(t):r.default(t,"Array")}},"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),l=Math.max(e,a),f=i/2;return o>=s-f&&o<=c+f&&u>=h-f&&u<=l+f&&r.default.pointToLine(t,e,n,a,o,u)<=i/2}e.default=a},"0c05":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var r=function(t,e,n){if(n||2===arguments.length)for(var r,a=0,i=e.length;a1){var a=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=a}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}e.default=o},"1d5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),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((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(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 l})),n.d(e,"invert",(function(){return f})),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 y})),n.d(e,"scale",(function(){return m})),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 l(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 f(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],l=h*o-u*c,f=-h*i+u*s,p=c*i-o*s,d=n*l+r*f+a*p;return d?(d=1/d,t[0]=l*d,t[1]=(-h*r+a*c)*d,t[2]=(u*r-a*o)*d,t[3]=f*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],l=e[8],f=n[0],p=n[1],d=n[2],g=n[3],v=n[4],y=n[5],m=n[6],x=n[7],b=n[8];return t[0]=f*r+p*o+d*c,t[1]=f*a+p*u+d*h,t[2]=f*i+p*s+d*l,t[3]=g*r+v*o+y*c,t[4]=g*a+v*u+y*h,t[5]=g*i+v*s+y*l,t[6]=m*r+x*o+b*c,t[7]=m*a+x*u+b*h,t[8]=m*i+x*s+b*l,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],l=e[8],f=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]=f*r+p*o+c,t[7]=f*a+p*u+h,t[8]=f*i+p*s+l,t}function y(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],l=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*o,t[1]=p*a+f*u,t[2]=p*i+f*s,t[3]=p*o-f*r,t[4]=p*u-f*a,t[5]=p*s-f*i,t[6]=c,t[7]=h,t[8]=l,t}function m(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,l=r*u,f=a*o,p=a*u,d=a*s,g=i*o,v=i*u,y=i*s;return t[0]=1-l-d,t[3]=h-y,t[6]=f+v,t[1]=h+y,t[4]=1-c-d,t[7]=p-g,t[2]=f-v,t[5]=p+g,t[8]=1-c-l,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],l=e[9],f=e[10],p=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=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-l*d,A=h*v-f*d,C=h*y-p*d,S=l*v-f*g,O=l*y-p*g,k=f*y-p*v,B=m*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+y*M)*B,t[7]=(v*b-d*_-y*x)*B,t[8]=(d*w-g*b+y*m)*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],l=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],x=e[7],b=e[8];return Math.abs(n-f)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(f))&&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-y)<=r["b"]*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-m)<=r["b"]*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(h-x)<=r["b"]*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(l-b)<=r["b"]*Math.max(1,Math.abs(l),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")}},"20e7":function(t,e,n){"use strict";var r=n("1f05");n.d(e,"a",(function(){return r}));var a=n("6711");n.d(e,"b",(function(){return a}))},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(l[0],l[1],f[0],f[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+f){u=Math.atan2(l[1]-h[1],l[0]-h[0]);break}o+=f}return u}function c(t,e,n){for(var a=1/0,i=0;iMath.PI/2?Math.PI-h:h,l=l>Math.PI/2?Math.PI-l:l;var f={xExtra:Math.cos(c/2-h)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(l-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function l(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,l=u.y,f=u.width,p=u.height,d={minX:h,minY:l,maxX:h+f,maxY:l+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=l},"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 f(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=l,e.refreshElement=f,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"),l=n("9fe7");function f(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]),l.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:f,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&&(l=u/10);for(var f=1/l,p=f/10,d=0;d<=l;d++){var g=d*f,v=[o.apply(null,t.concat([g])),o.apply(null,e.concat([g]))],y=r.distance(h[0],h[1],v[0],v[1]);y=0&&y=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"),l=n("83e4"),f=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",f.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 X(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 q(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=l,z=f,H=b,G=M,V=_,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},l=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},f=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,l=Math.asin(((e-d)/r).toFixed(9)),f=Math.asin(((s-d)/r).toFixed(9)),l=tf&&(l-=2*Math.PI),!o&&f>l&&(f-=2*Math.PI)}var C=f-l;if(Math.abs(C)>g){var S=f,O=u,k=s;f=l+g*(o&&f>l?1:-1),u=p+n*Math.cos(f),s=d+r*Math.sin(f),m=v(u,s,n,r,a,0,o,O,k,[f,S,p,d])}C=f-l;var B=Math.cos(l),j=Math.sin(l),T=Math.cos(f),E=Math.sin(f),I=Math.tan(C/4),D=4/3*n*I,X=4/3*r*I,q=[t,e],F=[t+D*j,e-X*B],N=[u+D*E,s-X*T],Y=[u,s];if(F[0]=2*q[0]-F[0],F[1]=2*q[1]-F[1],c)return[F,N,Y].concat(m);m=[F,N,Y].concat(m).join().split(",");for(var L=[],R=0,W=m.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)}},y=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 m=0;m1?1:s<0?0:s;for(var c=s/2,h=12,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d0&&l<1&&f.push(l)}else{var g=c*c-4*h*s,v=Math.sqrt(g);if(!(g<0)){var y=(-c+v)/(2*s);y>0&&y<1&&f.push(y);var m=(-c-v)/(2*s);m>0&&m<1&&f.push(m)}}var x,b=f.length,M=b;while(b--)l=f[b],x=1-l,p[0][b]=x*x*x*t+3*x*x*l*n+3*x*l*l*a+l*l*l*o,p[1][b]=x*x*x*e+3*x*x*l*r+3*x*l*l*i+l*l*l*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 l=s/h,f=c/h,p=+l.toFixed(2),d=+f.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:l,y:f}}}},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),l=Math.pow(c,2),f=s*s,p=f*s,d=h*t+3*l*s*n+3*c*s*s*a+p*o,g=h*e+3*l*s*r+3*c*s*s*i+p*u,v=t+2*s*(n-t)+f*(a-2*n+t),y=e+2*s*(r-e)+f*(i-2*r+e),m=n+2*s*(a-n)+f*(o-2*a+n),x=r+2*s*(i-r)+f*(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-m,y-x)/Math.PI;return{x:d,y:g,m:{x:v,y:y},n:{x:m,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=[],l={},f=n?0:[],p=0;p=0&&A<=1&&C>=0&&C<=1&&(n?f+=1:f.push({x:P.x,y:P.y,t1:A,t2:C}))}}return f},j=function(t,e,n){var r,a,i,o,u,s,c,h,l,f;t=y(t),e=y(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},X=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 l=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,G=n("9ab4"),V=n("7fa27"),Q=n("28f9"),Z=n.n(Q),$=n("2047"),U=n.n($),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 lt(t){return t.cfg.visible&&t.cfg.capture}var ft=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(G["__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}(V["default"]),pt=ft,dt=n("0c05"),gt=n("20e7");function vt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromTranslation(r,n),gt["a"].multiply(t,r,e)}function yt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromRotation(r,n),gt["a"].multiply(t,r,e)}function mt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromScaling(r,n),gt["a"].multiply(t,r,e)}function xt(t,e,n){return gt["a"].multiply(t,n,e)}function bt(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 _t(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 Pt(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],l=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],x=e[7],b=e[8];return n[0]=f*r+p*o+d*c,n[1]=f*a+p*u+d*h,n[2]=f*i+p*s+d*l,n[3]=g*r+v*o+y*c,n[4]=g*a+v*u+y*h,n[5]=g*i+v*s+y*l,n[6]=m*r+x*o+b*c,n[7]=m*a+x*u+b*h,n[8]=m*i+x*s+b*l,n}function At(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 Ct(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],l=h*o-u*c,f=-h*i+u*s,p=c*i-o*s,d=n*l+r*f+a*p;return d?(d=1/d,e[0]=l*d,e[1]=(-h*r+a*c)*d,e[2]=(u*r-a*o)*d,e[3]=f*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 St="matrix",Ot=["zIndex","capture","visible","type"],kt=["repeat"],Bt=":",jt="*";function Tt(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(G["__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=Dt(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(lt(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&&Wt(a,t,!1),t.set("parent",this),e&&Lt(t,e),r&&Rt(t,r),n.push(t),Yt(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[Nt]=e,t})),t.sort(zt((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}(qt),Qt=Vt,Zt=0,$t=0,Ut=0,Kt=1e3,Jt=0,te=0,ee=0,ne="object"===typeof performance&&performance.now?performance:Date,re="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ae(){return te||(re(ie),te=ne.now()+ee)}function ie(){te=0}function oe(){this._call=this._time=this._next=null}function ue(t,e,n){var r=new oe;return r.restart(t,e,n),r}function se(){ae(),++Zt;var t,e=Ht;while(e)(t=te-e._time)>=0&&e._call.call(null,t),e=e._next;--Zt}function ce(){te=(Jt=ne.now())+ee,Zt=$t=0;try{se()}finally{Zt=0,le(),te=0}}function he(){var t=ne.now(),e=t-Jt;e>Kt&&(ee-=e,Jt=t)}function le(){var t,e,n=Ht,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ht=e);Gt=t,fe(r)}function fe(t){if(!Zt){$t&&($t=clearTimeout($t));var e=t-te;e>24?(t<1/0&&($t=setTimeout(ce,t-ne.now()-ee)),Ut&&(Ut=clearInterval(Ut))):(Ut||(Jt=ne.now(),Ut=setInterval(he,Kt)),Zt=1,re(ce))}}function pe(t){return+t}function de(t){return t*t}function ge(t){return t*(2-t)}function ve(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function ye(t){return t*t*t}function me(t){return--t*t*t+1}function xe(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}oe.prototype=ue.prototype={constructor:oe,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?ae():+n)+(null==e?0:+e),this._next||Gt===this||(Gt?Gt._next=this:Ht=this,Gt=this),this._call=t,this._time=n,fe()},stop:function(){this._call&&(this._call=null,this._time=1/0,fe())}};var be=3,Me=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(be),we=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(be),_e=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}(be),Pe=Math.PI,Ae=Pe/2;function Ce(t){return 1===+t?1:1-Math.cos(t*Ae)}function Se(t){return Math.sin(t*Ae)}function Oe(t){return(1-Math.cos(Pe*t))/2}function ke(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Be(t){return ke(1-+t)}function je(t){return 1-ke(t)}function Te(t){return((t*=2)<=1?ke(1-t):2-ke(t-1))/2}function Ee(t){return 1-Math.sqrt(1-t*t)}function Ie(t){return Math.sqrt(1- --t*t)}function De(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Xe=4/11,qe=6/11,Fe=8/11,Ne=3/4,Ye=9/11,Le=10/11,Re=15/16,We=21/22,ze=63/64,He=1/Xe/Xe;function Ge(t){return 1-Ve(1-t)}function Ve(t){return(t=+t)>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Sn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Sn(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=gn.exec(t))?new Bn(e[1],e[2],e[3],1):(e=vn.exec(t))?new Bn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yn.exec(t))?Sn(e[1],e[2],e[3],e[4]):(e=mn.exec(t))?Sn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=xn.exec(t))?In(e[1],e[2]/100,e[3]/100,1):(e=bn.exec(t))?In(e[1],e[2]/100,e[3]/100,e[4]):Mn.hasOwnProperty(t)?Cn(Mn[t]):"transparent"===t?new Bn(NaN,NaN,NaN,0):null}function Cn(t){return new Bn(t>>16&255,t>>8&255,255&t,1)}function Sn(t,e,n,r){return r<=0&&(t=e=n=NaN),new Bn(t,e,n,r)}function On(t){return t instanceof sn||(t=An(t)),t?(t=t.rgb(),new Bn(t.r,t.g,t.b,t.opacity)):new Bn}function kn(t,e,n,r){return 1===arguments.length?On(t):new Bn(t,e,n,null==r?1:r)}function Bn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function jn(){return"#"+En(this.r)+En(this.g)+En(this.b)}function Tn(){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 En(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function In(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new qn(t,e,n,r)}function Dn(t){if(t instanceof qn)return new qn(t.h,t.s,t.l,t.opacity);if(t instanceof sn||(t=An(t)),!t)return new qn;if(t instanceof qn)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 qn(o,u,s,t.opacity)}function Xn(t,e,n,r){return 1===arguments.length?Dn(t):new qn(t,e,n,null==r?1:r)}function qn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Fn(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 Nn(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}on(sn,An,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:wn,formatHex:wn,formatHsl:_n,formatRgb:Pn,toString:Pn}),on(Bn,kn,un(sn,{brighter:function(t){return t=null==t?hn:Math.pow(hn,t),new Bn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?cn:Math.pow(cn,t),new Bn(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:jn,formatHex:jn,formatRgb:Tn,toString:Tn})),on(qn,Xn,un(sn,{brighter:function(t){return t=null==t?hn:Math.pow(hn,t),new qn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cn:Math.pow(cn,t),new qn(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 Bn(Fn(t>=240?t-240:t+120,a,r),Fn(t,a,r),Fn(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 Yn=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:tr(n,r)})),i=rr.lastIndex;return il.length?(c=h(i[s]),l=h(a[s]),l=Y(l,c),l=W(l,c),e.fromAttrs.path=l,e.toAttrs.path=c):e.pathFormatted||(c=h(i[s]),l=h(a[s]),l=W(l,c),e.fromAttrs.path=l,e.toAttrs.path=c,e.pathFormatted=!0),r[s]=[];for(var f=0;f0){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=fr(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}(),dr=pr,gr=40,vr=0,yr=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function mr(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function xr(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 br=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()(yr,(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()(yr,(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===vr&&(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===vr){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,l=o.clientY-t.clientY,f=h*h+l*l;c>120||f>gr?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,mr(r,t,o);var u=r.getParent();while(u)u.emitDelegation(t,o),o.propagationStopped||xr(u,t,o),o.propagationPath.push(u),u=u.getParent()}else{var s=this.canvas;mr(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}(),Mr=br,wr="px",_r=Object(dt["a"])(),Pr=_r&&"firefox"===_r.name,Ar=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(G["__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 Mr({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new dr(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");ct&&(n.style.width=t+wr,n.style.height=e+wr)},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(Pr&&!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}(Qt),Cr=Ar,Sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(G["__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=At(e,[t.minX,t.minY]),u=At(e,[t.maxX,t.minY]),s=At(e,[t.minX,t.maxY]),c=At(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 l=h.shadowBlur,f=void 0===l?0:l,p=h.shadowOffsetX,d=void 0===p?0:p,g=h.shadowOffsetY,v=void 0===g?0:g,y=n-f+d,m=a+f+d,x=r-f+v,b=i+f+v;n=Math.min(n,y),a=Math.max(a,m),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}(qt),Br=kr,jr=n("2a37"),Tr=jr.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&&i<=1&&l.push(i));else{var f=c*c-4*s*h;r.isNumberEqual(f,0)?l.push(-c/(2*s)):f>0&&(u=Math.sqrt(f),i=(-c+u)/(2*s),o=(-c-u)/(2*s),i>=0&&i<=1&&l.push(i),o>=0&&o<=1&&l.push(o))}return l}function c(t,e,n,r,i,u,s,c,h){var l=o(t,n,i,s,h),f=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),y=a.default.pointAt(d.x,d.y,g.x,g.y,h);return[[t,e,p.x,p.y,v.x,v.y,l,f],[l,f,y.x,y.y,g.x,g.y,s,c]]}function h(t,e,n,r,a,o,u,s,l){if(0===l)return i.snapLength([t,n,a,u],[e,r,o,s]);var f=c(t,e,n,r,a,o,u,s,.5),p=f[0],d=f[1];return p.push(l-1),d.push(l-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 l=[t,c],f=[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,l=i-t,f=o-e,p=Math.abs(l),d=Math.abs(f),g=u*u,v=s*s,y=Math.PI/4,m=0;m<4;m++){c=u*Math.cos(y),h=s*Math.sin(y);var x=(g-v)*Math.pow(Math.cos(y),3)/u,b=(v-g)*Math.pow(Math.sin(y),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);y+=O,y=Math.min(Math.PI/2,Math.max(0,y))}return{x:t+a(c,l),y:e+a(h,f)}},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,l=this._getSpaceingY(),f=o.getTextHeight(a.text,a.fontSize,a.lineHeight);i.each(e,(function(e,a){r=c+a*(l+h)-f+h,"middle"===u&&(r+=f-h-(f-h)/2),"top"===u&&(r+=f-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}),e.isSamePoint=void 0;var r=n("8937");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(y),a*=Math.sqrt(y));var m=n*n*(v*v)+a*a*(g*g),x=m?Math.sqrt((n*n*(a*a)-m)/m):1;c===h&&(x*=-1),isNaN(x)&&(x=0);var b=a?x*n*v/a:0,M=n?x*-a*g/n:0,w=(l+p)/2+Math.cos(s)*b-Math.sin(s)*M,_=(f+d)/2+Math.sin(s)*b+Math.cos(s)*M,P=[(g-b)/n,(v-M)/a],A=[(-1*g-b)/n,(-1*v-M)/a],C=o([1,0],P),S=o(P,A);return i(P,A)<=-1&&(S=Math.PI),i(P,A)>=1&&(S=0),0===h&&S>0&&(S-=2*Math.PI),1===h&&S<0&&(S+=2*Math.PI),{cx:w,cy:_,rx:u(t,[p,d])?0:n,ry:u(t,[p,d])?0:a,startAngle:C,endAngle:C+S,xRotation:s,arcFlag:c,sweepFlag:h}}e.isSamePoint=u,e.default=s},"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 l=n("ac0d");Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return l.default}});var f=n("64be");Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return f.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 y=n*n*(g*g)+a*a*(d*d),m=y?Math.sqrt((n*n*(a*a)-y)/y):1;s===c&&(m*=-1),isNaN(m)&&(m=0);var x=a?m*n*g/a:0,b=n?m*-a*d/n:0,M=(h+f)/2+Math.cos(u)*x-Math.sin(u)*b,w=(l+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,[f,p])?0:n,ry:r.isSamePoint(t,[f,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.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):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,l=e.sheight,f=e.img;(f instanceof Image||o(f))&&(i.isNil(s)||i.isNil(c)||i.isNil(h)||i.isNil(l)?t.drawImage(f,n,r,a,u):t.drawImage(f,s,c,h,l,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 l})),n.d(e,"multiply",(function(){return f})),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 y})),n.d(e,"round",(function(){return m})),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 X})),n.d(e,"rotateY",(function(){return q})),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 G})),n.d(e,"dist",(function(){return V})),n.d(e,"sqrDist",(function(){return Q})),n.d(e,"len",(function(){return Z})),n.d(e,"sqrLen",(function(){return $})),n.d(e,"forEach",(function(){return U}));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 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 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 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 y(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 m(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,l=3*s*o,f=s*i;return t[0]=e[0]*c+n[0]*h+r[0]*l+a[0]*f,t[1]=e[1]*c+n[1]*h+r[1]*l+a[1]*f,t[2]=e[2]*c+n[2]*h+r[2]*l+a[2]*f,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,l=i*u-r*c,f=r*s-a*u,p=a*f-i*l,d=i*h-r*f,g=r*l-a*h,v=2*o;return h*=v,l*=v,f*=v,p*=2,d*=2,g*=2,t[0]=u+h+p,t[1]=s+l+d,t[2]=c+f+g,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[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 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[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,l=h&&S(t,e)/h;return Math.acos(Math.min(Math.max(l,-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=l,H=f,G=p,V=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&&l<=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 l(t,e,n,r){var a=Math.atan2(r*t,n*e);return(a+2*Math.PI)%(2*Math.PI)}function f(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 l=u(n,r,a),f=1/0,p=-1/0,d=[i,o],g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var v=l+g;ip&&(p=y)}var m=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=m+g;ib&&(b=_)}return{x:f,y:x,width:p-f,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),y=l(n,r,v.x,v.y);yu&&(v=f(n,r,u));var m=p(v.x,v.y,i);return{x:m[0]+t,y:m[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 l=(c-s)*h+s,f=i(t,e,n,a,u,s,c,l),p=o(t,e,n,a,u,s,c,l);return r.piMod(Math.atan2(p,f))}}},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 l=c.getShortenOffset(o,u,n[1][0],n[1][1],r.d);o+=l.dx,u+=l.dy}if(a&&a.d){l=c.getShortenOffset(n[i-2][0],n[i-2][1],s,h,a.d);s-=l.dx,h-=l.dy}t.beginPath(),t.moveTo(o,u);for(var f=0;f=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},bd8b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString,a=function(t,e){return r.call(t)==="[object "+e+"]"};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=(0,i.default)(t);for(var e=[],n=null,u=null,s=null,c=0,h=t.length,l=0;l=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),l=r.default.pointAt(t,e,n,a,s),f=r.default.pointAt(n,a,i,u,s);return[[t,e,l.x,l.y,c,h],[c,h,f.x,f.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),l=s[0],f=s[1];return l.push(u-1),f.push(u-1),h.apply(null,l)+h.apply(null,f)}e.default={box:function(t,e,n,r,i,s){var c=u(t,n,i)[0],h=u(e,r,s)[0],l=[t,i],f=[e,s];return void 0!==c&&l.push(o(t,n,i,c)),void 0!==h&&f.push(o(e,r,s,h)),a.getBBoxByArray(l,f)},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),l=Math.atan2(h,c);return a.piMod(l)}}},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,l=o.ry,f=(t-s)*(t-s),p=(e-c)*(e-c);return r&&n?i(f,p,h+u,l+u)<=1:r?i(f,p,h,l)<=1:!!n&&(i(f,p,h-u,l-u)>=1&&i(f,p,h+u,l+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 l=n("3c5c");function f(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=l.default,e.isParent=f,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),l={minX:u,maxX:s,minY:c,maxY:h};return l=r.mergeArrowBBox(t,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.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,l=0,f=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(c=+d[1],h=+d[2],l=c,f=h,p++,s[0]=["M",c,h]);o=p;for(var g=e.length;o