田源
2025-01-15 78fa1f005a9ec2581611e53d7eba8efeacb4df6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21a7a6"],{bc4c:function(t,e,n){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00fd":function(t,e,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,c=r?r.toStringTag:void 0;function u(t){var e=o.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(u){}var i=a.call(t);return r&&(e?t[c]=n:delete t[c]),i}t.exports=u},"0273":function(t,e,n){var r=n("c1b2"),i=n("4180"),o=n("2c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"0363":function(t,e,n){var r=n("3ac6"),i=n("d659"),o=n("3e80"),a=n("1e63"),c=r.Symbol,u=i("wks");t.exports=function(t){return u[t]||(u[t]=a&&c[t]||(a?c:o)("Symbol."+t))}},"0481":function(t,e,n){"use strict";var r=n("23e7"),i=n("a2bf"),o=n("7b0b"),a=n("50c4"),c=n("a691"),u=n("65f0");r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e.length),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:c(t)),r}})},"057f":function(t,e,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?c(t):i(r(t))}},"0621":function(t,e,n){var r=n("9e69"),i=n("d370"),o=n("6747"),a=r?r.isConcatSpreadable:void 0;function c(t){return o(t)||i(t)||!!(a&&t&&t[a])}t.exports=c},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),c=n("c04e"),u=n("5135"),s=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"06fa":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"07c7":function(t,e){function n(){return!1}t.exports=n},"07cd":function(t,e,n){!function(e,n){t.exports=n()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=820)}([,function(t,e,n){"use strict";var r=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}var a="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3})$/,f=/^#([0-9a-f]{6})$/,l=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),h=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgba\\("+[a,a,a,c]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),g=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),v=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(t){var e;return t=(t+"").trim().toLowerCase(),(e=s.exec(t))?new S((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=f.exec(t))?b(parseInt(e[1],16)):(e=l.exec(t))?new S(e[1],e[2],e[3],1):(e=h.exec(t))?new S(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?x(e[1],e[2],e[3],e[4]):(e=p.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?P(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?P(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?b(m[t]):"transparent"===t?new S(NaN,NaN,NaN,0):null}function b(t){return new S(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new S(t,e,n,r)}function w(t){return t instanceof o||(t=y(t)),t?new S((t=t.rgb()).r,t.g,t.b,t.opacity):new S}function _(t,e,n,r){return 1===arguments.length?w(t):new S(t,e,n,null==r?1:r)}function S(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function P(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function O(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=y(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),c=NaN,u=a-i,s=(a+i)/2;return u?(c=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=s<.5?a+i:2-a-i,c*=60):u=s>0&&s<1?0:c,new E(c,u,s,t.opacity)}(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function A(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}r(o,y,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),r(S,_,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new S(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+M(this.r)+M(this.g)+M(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(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+")")}})),r(E,O,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new S(A(t>=240?t-240:t+120,i,r),A(t,i,r),A(t<120?t+240:t-120,i,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}}));var C=Math.PI/180,k=180/Math.PI,j=.96422,I=1,T=.82521,B=4/29,L=6/29,N=3*L*L,D=L*L*L;function Y(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof K){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*C;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof S||(t=w(t));var n,r,i=q(t.r),o=q(t.g),a=q(t.b),c=R((.2225045*i+.7168786*o+.0606169*a)/I);return i===o&&o===a?n=r=c:(n=R((.4360747*i+.3850649*o+.1430804*a)/j),r=R((.0139322*i+.0971045*o+.7141733*a)/T)),new F(116*c-16,500*(n-c),200*(c-r),t.opacity)}function G(t,e){return new F(t,0,0,null==e?1:e)}function X(t,e,n,r){return 1===arguments.length?Y(t):new F(t,e,n,null==r?1:r)}function F(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function R(t){return t>D?Math.pow(t,1/3):t/N+B}function z(t){return t>L?t*t*t:N*(t-B)}function H(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function q(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function U(t){if(t instanceof K)return new K(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=Y(t)),0===t.a&&0===t.b)return new K(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*k;return new K(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function W(t,e,n,r){return 1===arguments.length?U(t):new K(n,e,t,null==r?1:r)}function V(t,e,n,r){return 1===arguments.length?U(t):new K(t,e,n,null==r?1:r)}function K(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}r(F,X,i(o,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new S(H(3.1338561*(e=j*z(e))-1.6168667*(t=I*z(t))-.4906146*(n=T*z(n))),H(-.9787684*e+1.9161415*t+.033454*n),H(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),r(K,V,i(o,{brighter:function(t){return new K(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new K(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Y(this).rgb()}}));var Z=-.14861,$=1.78277,Q=-.29227,J=-.90649,tt=1.97294,et=tt*J,nt=tt*$,rt=$*Q-J*Z;function it(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ot)return new ot(t.h,t.s,t.l,t.opacity);t instanceof S||(t=w(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(rt*r+et*e-nt*n)/(rt+et-nt),o=r-i,a=(tt*(n-i)-Q*o)/J,c=Math.sqrt(a*a+o*o)/(tt*i*(1-i)),u=c?Math.atan2(a,o)*k-120:NaN;return new ot(u<0?u+360:u,c,i,t.opacity)}(t):new ot(t,e,n,null==r?1:r)}function ot(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}r(ot,it,i(o,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ot(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ot(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*C,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new S(255*(e+n*(Z*r+$*i)),255*(e+n*(Q*r+J*i)),255*(e+n*(tt*r)),this.opacity)}})),n.d(e,"a",(function(){return y})),n.d(e,"h",(function(){return _})),n.d(e,"e",(function(){return O})),n.d(e,"f",(function(){return X})),n.d(e,"d",(function(){return V})),n.d(e,"g",(function(){return W})),n.d(e,"c",(function(){return G})),n.d(e,"b",(function(){return it}))},,,,,,,,,,,,,,,function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";n.r(e);var r,i,o=0,a=0,c=0,u=1e3,s=0,f=0,l=0,h="object"==typeof performance&&performance.now?performance:Date,d="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return f||(d(g),f=h.now()+l)}function g(){f=0}function v(){this._call=this._time=this._next=null}function m(t,e,n){var r=new v;return r.restart(t,e,n),r}function y(){p(),++o;for(var t,e=r;e;)(t=f-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function b(){f=(s=h.now())+l,o=a=0;try{y()}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),f=0}}function x(){var t=h.now(),e=t-s;e>u&&(l-=e,s=t)}function w(t){o||(a&&(a=clearTimeout(a)),t-f>24?(t<1/0&&(a=setTimeout(b,t-h.now()-l)),c&&(c=clearInterval(c))):(c||(s=h.now(),c=setInterval(x,u)),o=1,d(b)))}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?p():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}};var _=function(t,e,n){var r=new v;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},S=function(t,e,n){var r=new v,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?p():+n,r.restart((function o(a){a+=i,r.restart(o,i+=e,n),t(a)}),e,n),r)};n.d(e,"now",(function(){return p})),n.d(e,"timer",(function(){return m})),n.d(e,"timerFlush",(function(){return y})),n.d(e,"timeout",(function(){return _})),n.d(e,"interval",(function(){return S}))},,function(t,e,n){var r=n(644),i={};r.merge(i,r,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,(function(e){i.augment(t,e);var o=e[n];o&&i.merge(r,o)})),t[n]=i.merge(r,t[n])}}}),t.exports=i},function(t,e,n){var r=n(117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},,,function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},,,function(t,e,n){var r={},i=n(682),o=n(748),a=n(257),c=n(727),u=n(726),s=n(725);a.mix(r,a,u,s,c,o,i),t.exports=r},,,,,,,,function(t,e,n){var r=n(38),i=n(250),o=n(249),a="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?c:a:u&&u in Object(t)?i(t):o(t)}},,,,function(t,e,n){var r=n(20).Symbol;t.exports=r},function(t,e,n){var r=n(34),i=n(23),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==o}},,,,,function(t,e,n){"use strict";function r(t){return+t}function i(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function c(t){return t*t*t}function u(t){return--t*t*t+1}function s(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e);var f=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),l=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),h=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),d=Math.PI,p=d/2;function g(t){return 1-Math.cos(t*p)}function v(t){return Math.sin(t*p)}function m(t){return(1-Math.cos(d*t))/2}function y(t){return Math.pow(2,10*t-10)}function b(t){return 1-Math.pow(2,-10*t)}function x(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function w(t){return 1-Math.sqrt(1-t*t)}function _(t){return Math.sqrt(1- --t*t)}function S(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var M=4/11,P=6/11,O=8/11,E=.75,A=9/11,C=10/11,k=.9375,j=21/22,I=63/64,T=1/M/M;function B(t){return 1-L(1-t)}function L(t){return(t=+t)<M?T*t*t:t<O?T*(t-=P)*t+E:t<C?T*(t-=A)*t+k:T*(t-=j)*t+I}function N(t){return((t*=2)<=1?1-L(1-t):L(t-1)+1)/2}var D=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),Y=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),G=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),X=2*Math.PI,F=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=X);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*X)},i.period=function(n){return t(e,n)},i}(1,.3),R=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=X);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*X)},i.period=function(n){return t(e,n)},i}(1,.3),z=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=X);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*X)},i.period=function(n){return t(e,n)},i}(1,.3);n.d(e,"easeLinear",(function(){return r})),n.d(e,"easeQuad",(function(){return a})),n.d(e,"easeQuadIn",(function(){return i})),n.d(e,"easeQuadOut",(function(){return o})),n.d(e,"easeQuadInOut",(function(){return a})),n.d(e,"easeCubic",(function(){return s})),n.d(e,"easeCubicIn",(function(){return c})),n.d(e,"easeCubicOut",(function(){return u})),n.d(e,"easeCubicInOut",(function(){return s})),n.d(e,"easePoly",(function(){return h})),n.d(e,"easePolyIn",(function(){return f})),n.d(e,"easePolyOut",(function(){return l})),n.d(e,"easePolyInOut",(function(){return h})),n.d(e,"easeSin",(function(){return m})),n.d(e,"easeSinIn",(function(){return g})),n.d(e,"easeSinOut",(function(){return v})),n.d(e,"easeSinInOut",(function(){return m})),n.d(e,"easeExp",(function(){return x})),n.d(e,"easeExpIn",(function(){return y})),n.d(e,"easeExpOut",(function(){return b})),n.d(e,"easeExpInOut",(function(){return x})),n.d(e,"easeCircle",(function(){return S})),n.d(e,"easeCircleIn",(function(){return w})),n.d(e,"easeCircleOut",(function(){return _})),n.d(e,"easeCircleInOut",(function(){return S})),n.d(e,"easeBounce",(function(){return L})),n.d(e,"easeBounceIn",(function(){return B})),n.d(e,"easeBounceOut",(function(){return L})),n.d(e,"easeBounceInOut",(function(){return N})),n.d(e,"easeBack",(function(){return G})),n.d(e,"easeBackIn",(function(){return D})),n.d(e,"easeBackOut",(function(){return Y})),n.d(e,"easeBackInOut",(function(){return G})),n.d(e,"easeElastic",(function(){return R})),n.d(e,"easeElasticIn",(function(){return F})),n.d(e,"easeElasticOut",(function(){return R})),n.d(e,"easeElasticInOut",(function(){return z}))},function(t,e,n){var r=n(115),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e,n){var r=n(621),i=n(45);t.exports=function(t,e){if(t)if(i(t))for(var n=0,o=t.length;n<o&&!1!==e(t[n],n);n++);else if(r(t))for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break}},,,,,,,,,,,,function(t,e,n){var r=n(19),i=n(742),o=n(641),a=n(613),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={},r.extend(c,o);var u={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};r.augment(c,i,{isShape:!0,drawInner:function(t){var e=this._attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var i=e.fillOpacity;r.isNil(i)||1===i?t.fill():(t.globalAlpha=i,t.fill(),t.globalAlpha=n)}if(this.hasStroke()&&this._attrs.lineWidth>0){var o=e.strokeOpacity;r.isNil(o)||1===o||(t.globalAlpha=o),t.stroke()}this.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var r=this.getBBox();if(r&&!a.box(r.minX,r.maxX,r.minY,r.maxY,n[0],n[1]))return!1}var i=this._attrs.clip;return i?(i.invert(n,this.get("canvas")),!!i.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t=null,e=this._attrs,n={};return r.each(e,(function(t,i){u[i]&&r.isArray(e[i])?n[i]=function(t){for(var e=[],n=0;n<t.length;n++)r.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[i]):n[i]=e[i]})),t=new this.constructor({attrs:n}),t._cfg.zIndex=this._cfg.zIndex,t}}),t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t},e.toRadian=function(t){return t*i},e.equals=function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))};var r=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;var i=Math.PI/180},,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(115);t.exports=function(t){return r(t,"Function")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,n){var r;
/*!
 * EventEmitter v5.1.0 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */!function(e){"use strict";function i(){}var o=i.prototype,a=e.EventEmitter;function c(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}o.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},o.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},o.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===c(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=c(i[r],e))&&i[r].splice(n,1);return this},o.off=u("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):a.call(this,r,i));return this},o.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(t,e){var n,r,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},o.trigger=u("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=a,i},void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}(this||{})},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(252))},function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(115);t.exports=function(t){return r(t,"Number")}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){"use strict";n.r(e);var r=n(1);function i(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}var o=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),o=t[r],a=t[r+1],c=r>0?t[r-1]:2*o-a,u=r<e-1?t[r+2]:2*a-o;return i((n-r/e)*e,c,o,a,u)}},a=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],c=t[(r+1)%e],u=t[(r+2)%e];return i((n-r/e)*e,o,a,c,u)}},c=function(t){return function(){return t}};function u(t,e){return function(n){return t+n*e}}function s(t,e){var n=e-t;return n?u(t,n>180||n<-180?n-360*Math.round(n/360):n):c(isNaN(t)?e:t)}function f(t){return 1==(t=+t)?l:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):c(isNaN(e)?n:e)}}function l(t,e){var n=e-t;return n?u(t,n):c(isNaN(t)?e:t)}var h=function t(e){var n=f(e);function i(t,e){var i=n((t=Object(r.h)(t)).r,(e=Object(r.h)(e)).r),o=n(t.g,e.g),a=n(t.b,e.b),c=l(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=o(e),t.b=a(e),t.opacity=c(e),t+""}}return i.gamma=t,i}(1);function d(t){return function(e){var n,i,o=e.length,a=new Array(o),c=new Array(o),u=new Array(o);for(n=0;n<o;++n)i=Object(r.h)(e[n]),a[n]=i.r||0,c[n]=i.g||0,u[n]=i.b||0;return a=t(a),c=t(c),u=t(u),i.opacity=1,function(t){return i.r=a(t),i.g=c(t),i.b=u(t),i+""}}}var p,g,v,m,y=d(o),b=d(a),x=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=E(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}},w=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}},_=function(t,e){return e-=t=+t,function(n){return t+e*n}},S=function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=E(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},M=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,P=new RegExp(M.source,"g"),O=function(t,e){var n,r,i,o=M.lastIndex=P.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(n=M.exec(t))&&(r=P.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:_(n,r)})),o=P.lastIndex;return o<e.length&&(i=e.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)c[(n=u[r]).i]=n.x(t);return c.join("")})},E=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?c(e):("number"===i?_:"string"===i?(n=Object(r.a)(e))?(e=n,h):O:e instanceof r.a?h:e instanceof Date?w:Array.isArray(e)?x:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?S:_)(t,e)},A=function(t,e){return e-=t=+t,function(n){return Math.round(t+e*n)}},C=180/Math.PI,k={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},j=function(t,e,n,r,i,o){var a,c,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,u/=c),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*C,skewX:Math.atan(u)*C,scaleX:a,scaleY:c}};function I(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var c=[],u=[];return o=t(o),a=t(a),function(t,r,i,o,a,c){if(t!==i||r!==o){var u=a.push("translate(",null,e,null,n);c.push({i:u-4,x:_(t,i)},{i:u-2,x:_(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,c,u),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:_(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,c,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:_(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,c,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var c=o.push(i(o)+"scale(",null,",",null,")");a.push({i:c-4,x:_(t,n)},{i:c-2,x:_(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,c,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n<r;)c[(e=u[n]).i]=e.x(t);return c.join("")}}}var T=I((function(t){return"none"===t?k:(p||(p=document.createElement("DIV"),g=document.documentElement,v=document.defaultView),p.style.transform=t,t=v.getComputedStyle(g.appendChild(p),null).getPropertyValue("transform"),g.removeChild(p),t=t.slice(7,-1).split(","),j(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),B=I((function(t){return null==t?k:(m||(m=document.createElementNS("http://www.w3.org/2000/svg","g")),m.setAttribute("transform",t),(t=m.transform.baseVal.consolidate())?(t=t.matrix,j(t.a,t.b,t.c,t.d,t.e,t.f)):k)}),", ",")",")"),L=Math.SQRT2;function N(t){return((t=Math.exp(t))+1/t)/2}var D=function(t,e){var n,r,i=t[0],o=t[1],a=t[2],c=e[0],u=e[1],s=e[2],f=c-i,l=u-o,h=f*f+l*l;if(h<1e-12)r=Math.log(s/a)/L,n=function(t){return[i+t*f,o+t*l,a*Math.exp(L*t*r)]};else{var d=Math.sqrt(h),p=(s*s-a*a+4*h)/(2*a*2*d),g=(s*s-a*a-4*h)/(2*s*2*d),v=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-v)/L,n=function(t){var e=t*r,n=N(v),c=a/(2*d)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(L*e+v)-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+c*f,o+c*l,a*n/N(L*e+v)]}}return n.duration=1e3*r,n};function Y(t){return function(e,n){var i=t((e=Object(r.e)(e)).h,(n=Object(r.e)(n)).h),o=l(e.s,n.s),a=l(e.l,n.l),c=l(e.opacity,n.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(t),e.opacity=c(t),e+""}}}var G=Y(s),X=Y(l);function F(t,e){var n=l((t=Object(r.f)(t)).l,(e=Object(r.f)(e)).l),i=l(t.a,e.a),o=l(t.b,e.b),a=l(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=o(e),t.opacity=a(e),t+""}}function R(t){return function(e,n){var i=t((e=Object(r.d)(e)).h,(n=Object(r.d)(n)).h),o=l(e.c,n.c),a=l(e.l,n.l),c=l(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=o(t),e.l=a(t),e.opacity=c(t),e+""}}}var z=R(s),H=R(l);function q(t){return function e(n){function i(e,i){var o=t((e=Object(r.b)(e)).h,(i=Object(r.b)(i)).h),a=l(e.s,i.s),c=l(e.l,i.l),u=l(e.opacity,i.opacity);return function(t){return e.h=o(t),e.s=a(t),e.l=c(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,i.gamma=e,i}(1)}var U=q(s),W=q(l),V=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n};n.d(e,"interpolate",(function(){return E})),n.d(e,"interpolateArray",(function(){return x})),n.d(e,"interpolateBasis",(function(){return o})),n.d(e,"interpolateBasisClosed",(function(){return a})),n.d(e,"interpolateDate",(function(){return w})),n.d(e,"interpolateNumber",(function(){return _})),n.d(e,"interpolateObject",(function(){return S})),n.d(e,"interpolateRound",(function(){return A})),n.d(e,"interpolateString",(function(){return O})),n.d(e,"interpolateTransformCss",(function(){return T})),n.d(e,"interpolateTransformSvg",(function(){return B})),n.d(e,"interpolateZoom",(function(){return D})),n.d(e,"interpolateRgb",(function(){return h})),n.d(e,"interpolateRgbBasis",(function(){return y})),n.d(e,"interpolateRgbBasisClosed",(function(){return b})),n.d(e,"interpolateHsl",(function(){return G})),n.d(e,"interpolateHslLong",(function(){return X})),n.d(e,"interpolateLab",(function(){return F})),n.d(e,"interpolateHcl",(function(){return z})),n.d(e,"interpolateHclLong",(function(){return H})),n.d(e,"interpolateCubehelix",(function(){return U})),n.d(e,"interpolateCubehelixLong",(function(){return W})),n.d(e,"quantize",(function(){return V}))},,,,,,,,,function(t,e,n){var r=n(609);t.exports={track:!1,defaultNodeSize:40,labelStyle:{fill:"#595959",textAlign:"center",textBaseline:"middle"},groupStyle:{stroke:"#CED4D9",fill:"#F2F4F5",radius:2},groupBackgroundPadding:[40,10,10,10],updateDuration:450,enterDuration:450,leaveDuration:450,updateEasing:"easeQuadOut",enterEasing:"easeQuadOut",leaveEasing:"easeQuadOut",version:r}},function(t,e,n){t.exports={Canvas:n(747),Group:n(642),Shape:n(58),Arc:n(638),Circle:n(637),Dom:n(636),Ellipse:n(635),Fan:n(634),Image:n(633),Line:n(632),Marker:n(611),Path:n(631),Polygon:n(630),Polyline:n(629),Rect:n(628),Text:n(627),PathSegment:n(600),PathUtil:n(610),Event:n(643),version:"3.3.5"}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(38),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[c]=n:delete t[c]),i}},function(t,e,n){var r=n(16),i=n(39),o=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=u.test(t);return n||s.test(t)?f(t.slice(2),n?2:8):c.test(t)?o:+t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(20);t.exports=function(){return r.Date.now()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=i,e.clone=function(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=a,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=c,e.multiply=u,e.divide=s,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(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},e.max=function(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},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(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},e.distance=f,e.squaredDistance=l,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=d,e.dot=p,e.cross=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],c=n[1],u=n[2];return t[0]=i*u-o*c,t[1]=o*a-r*u,t[2]=r*c-i*a,t},e.lerp=function(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t},e.hermite=function(t,e,n,r,i,o){var a=o*o,c=a*(2*o-3)+1,u=a*(o-2)+o,s=a*(o-1),f=a*(3-2*o);return t[0]=e[0]*c+n[0]*u+r[0]*s+i[0]*f,t[1]=e[1]*c+n[1]*u+r[1]*s+i[1]*f,t[2]=e[2]*c+n[2]*u+r[2]*s+i[2]*f,t},e.bezier=function(t,e,n,r,i,o){var a=1-o,c=a*a,u=o*o,s=c*a,f=3*o*c,l=3*u*a,h=u*o;return t[0]=e[0]*s+n[0]*f+r[0]*l+i[0]*h,t[1]=e[1]*s+n[1]*f+r[1]*l+i[1]*h,t[2]=e[2]*s+n[2]*f+r[2]*l+i[2]*h,t},e.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],c=e[0],u=e[1],s=e[2],f=i*s-o*u,l=o*c-r*s,h=r*u-i*c,d=i*h-o*l,p=o*f-r*h,g=r*l-i*f,v=2*a;return f*=v,l*=v,h*=v,d*=2,p*=2,g*=2,t[0]=c+f+d,t[1]=u+l+p,t[2]=s+h+g,t},e.rotateX=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.angle=function(t,e){var n=a(t[0],t[1],t[2]),r=a(e[0],e[1],e[2]);d(n,n),d(r,r);var i=p(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],c=e[1],u=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-c)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-u)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(59));function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function s(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){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function h(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function d(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.sub=c,e.mul=u,e.div=s,e.dist=f,e.sqrDist=l,e.len=o,e.sqrLen=h,e.forEach=function(){var t=i();return function(e,n,r,i,o,a){var c=void 0,u=void 0;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,c=r;c<u;c+=n)t[0]=e[c],t[1]=e[c+1],t[2]=e[c+2],o(t,t,a),e[c]=t[0],e[c+1]=t[1],e[c+2]=t[2];return e}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=i,e.clone=function(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=a,e.divide=c,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=u,e.squaredDistance=s,e.length=f,e.squaredLength=l,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t},e.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),c=Math.cos(r);return t[0]=i*c-o*a+n[0],t[1]=i*a+o*c+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=n*n+r*r;a>0&&(a=1/Math.sqrt(a));var c=i*i+o*o;c>0&&(c=1/Math.sqrt(c));var u=(n*i+r*o)*a*c;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(59));function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function a(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function s(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function f(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function l(t){var e=t[0],n=t[1];return e*e+n*n}e.len=f,e.sub=o,e.mul=a,e.div=c,e.dist=u,e.sqrDist=s,e.sqrLen=l,e.forEach=function(){var t=i();return function(e,n,r,i,o,a){var c=void 0,u=void 0;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,c=r;c<u;c+=n)t[0]=e[c],t[1]=e[c+1],o(t,t,a),e[c]=t[0],e[c+1]=t[1];return e}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=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},e.fromMat4=function(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},e.clone=function(t){var e=new r.ARRAY_TYPE(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},e.copy=function(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},e.fromValues=function(t,e,n,i,o,a,c,u,s){var f=new r.ARRAY_TYPE(9);return f[0]=t,f[1]=e,f[2]=n,f[3]=i,f[4]=o,f[5]=a,f[6]=c,f[7]=u,f[8]=s,f},e.set=function(t,e,n,r,i,o,a,c,u,s){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=c,t[7]=u,t[8]=s,t},e.identity=function(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},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}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},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],u=e[6],s=e[7],f=e[8],l=f*a-c*s,h=-f*o+c*u,d=s*o-a*u,p=n*l+r*h+i*d;return p?(p=1/p,t[0]=l*p,t[1]=(-f*r+i*s)*p,t[2]=(c*r-i*a)*p,t[3]=h*p,t[4]=(f*n-i*u)*p,t[5]=(-c*n+i*o)*p,t[6]=d*p,t[7]=(-s*n+r*u)*p,t[8]=(a*n-r*o)*p,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],u=e[6],s=e[7],f=e[8];return t[0]=a*f-c*s,t[1]=i*s-r*f,t[2]=r*c-i*a,t[3]=c*u-o*f,t[4]=n*f-i*u,t[5]=i*o-n*c,t[6]=o*s-a*u,t[7]=r*u-n*s,t[8]=n*a-r*o,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],c=t[6],u=t[7],s=t[8];return e*(s*o-a*u)+n*(-s*i+a*c)+r*(u*i-o*c)},e.multiply=i,e.translate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],u=e[5],s=e[6],f=e[7],l=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=c,t[5]=u,t[6]=h*r+d*a+s,t[7]=h*i+d*c+f,t[8]=h*o+d*u+l,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],u=e[5],s=e[6],f=e[7],l=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*a,t[1]=d*i+h*c,t[2]=d*o+h*u,t[3]=d*a-h*r,t[4]=d*c-h*i,t[5]=d*u-h*o,t[6]=s,t[7]=f,t[8]=l,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(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},e.fromRotation=function(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},e.fromScaling=function(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},e.fromMat2d=function(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},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,c=r+r,u=i+i,s=n*a,f=r*a,l=r*c,h=i*a,d=i*c,p=i*u,g=o*a,v=o*c,m=o*u;return t[0]=1-l-p,t[3]=f-m,t[6]=h+v,t[1]=f+m,t[4]=1-s-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-s-l,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],u=e[6],s=e[7],f=e[8],l=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*c-r*a,b=n*u-i*a,x=n*s-o*a,w=r*u-i*c,_=r*s-o*c,S=i*s-o*u,M=f*g-l*p,P=f*v-h*p,O=f*m-d*p,E=l*v-h*g,A=l*m-d*g,C=h*m-d*v,k=y*C-b*A+x*E+w*O-_*P+S*M;return k?(k=1/k,t[0]=(c*C-u*A+s*E)*k,t[1]=(u*O-a*C-s*P)*k,t[2]=(a*A-c*O+s*M)*k,t[3]=(i*A-r*C-o*E)*k,t[4]=(n*C-i*O+o*P)*k,t[5]=(r*O-n*A-o*M)*k,t[6]=(g*S-v*_+m*w)*k,t[7]=(v*x-p*S-m*b)*k,t[8]=(p*_-g*x+m*y)*k,t):null},e.projection=function(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},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(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},e.subtract=o,e.multiplyScalar=function(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},e.multiplyScalarAndAdd=function(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},e.exactEquals=function(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]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],c=t[4],u=t[5],s=t[6],f=t[7],l=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],x=e[8];return Math.abs(n-h)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-d)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-p)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(c-v)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(s-y)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(f-b)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(b))&&Math.abs(l-x)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(x))};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(59));function i(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],u=e[5],s=e[6],f=e[7],l=e[8],h=n[0],d=n[1],p=n[2],g=n[3],v=n[4],m=n[5],y=n[6],b=n[7],x=n[8];return t[0]=h*r+d*a+p*s,t[1]=h*i+d*c+p*f,t[2]=h*o+d*u+p*l,t[3]=g*r+v*a+m*s,t[4]=g*i+v*c+m*f,t[5]=g*o+v*u+m*l,t[6]=y*r+b*a+x*s,t[7]=y*i+b*c+x*f,t[8]=y*o+b*u+x*l,t}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}e.mul=i,e.sub=o},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=5,o=n(819);Math.sign=function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1};var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},o,{throttle:n(749),debounce:n(645),omit:function(t,e){var n={};return o.each(t,(function(t,r){-1===e.indexOf(r)&&(n[r]=t)})),n},traverseTree:function(t,e,n,r){void 0===r&&(r=!1);var i=n(t);r&&e(t,null,null),i&&a.each(i,(function(r,i){e(r,t,i),a.traverseTree(r,e,n)}))},toAllPadding:function(t){var e=0,n=0,r=0,i=0;return a.isNumber(t)||a.isString(t)?e=n=r=i=t:a.isArray(t)&&(e=t[0],r=a.isNil(t[1])?t[0]:t[1],i=a.isNil(t[2])?t[0]:t[2],n=a.isNil(t[3])?r:t[3]),[e,r,i,n]},guid:function(){return"xxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},mix:function(){var t,e,n=a.toArray(arguments),r=n[0];if(!0===r)for(r=n[1],e=2;e<n.length;e++)c(r,t=n[e]);else for(e=1;e<n.length;e++)for(var i in t=n[e])t.hasOwnProperty(i)&&"constructor"!==i&&(r[i]=t[i]);return r},mixin:function(t,e){t&&e&&(t._mixins=e,t.ATTRS=t.ATTRS||{},a.each(e,(function(e){a.augment(t,e)})),t.ATTRS=a.mix({},t.ATTRS))}});function c(t,e,n){for(var r in n=n||0,e)if(e.hasOwnProperty(r)){var o=e[r];null!==o&&a.isPlainObject(o)?(a.isPlainObject(t[r])||(t[r]={}),n<i?c(t[r],e[r],n+1):t[r]=e[r]):a.isArray(o)?(t[r]=[],t[r]=t[r].concat(o)):void 0!==o&&(t[r]=e[r])}}a.Array={remove:function(t,e){var n=a.indexOf(t,e);-1!==n&&t.splice(n,1)}},t.exports=a},function(t,e,n){var r=n(26),i={},o={draw:function(){}},a={defaultShapeType:null,getShape:function(t,e){return this[t]||this[e]||this[this.defaultShapeType]||o},getExtendShape:function(t,e){var n=this;if(r.isArray(t)){var i={};return t.forEach((function(t){n[t]&&(i=r.mix({},i,n.getShape(t,e)))})),i}return this.getShape(t,e)}};i.registerShapeManager=function(t,e){var n=r.mix({},a,e),o=r.upperFirst(t);return i[o]=n,i["register"+o]=function(t,e,i,o){r.isNil(i)&&r.isNil(o)&&(i=t);var a=n.getExtendShape(i,o),c=r.mix(!0,{},a,e);return c.type=t,n[t]=c,c},n},t.exports=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(19),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;t.exports={parseRadius:function(t){var e=0,n=0,i=0,o=0;return r.isArray(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(o))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}}},function(t,e,n){var r=n(237);t.exports=function(t){return r(t)?"":t.toString()}},function(t,e,n){var r=n(115);t.exports=function(t){return r(t,"String")}},function(t,e,n){var r=n(619),i=n(115);t.exports=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){var r=function(t){function e(e){var n;return(n=t.call(this)||this).options=e,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.execute=function(){var t=this,e=this.options;this.roots.forEach((function(n){t.layout(n,e).eachNode((function(t){t.data.x=t.x+t.data.width/2+t.hgap,t.data.y=t.y+t.data.height/2+t.vgap}))}))},e}(n(622));t.exports=r},function(t,e,n){!function(e,n){t.exports=n()}("undefined"!=typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e,n){var r=n(7);t.exports={assign:r}},function(t,e,n){var r=n(3),i=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=r(t,e)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){var r=n(4),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var c=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(c),c&&-1===i.indexOf(c))throw new TypeError("Invalid direction: "+c);if(c===i[0])n(t,e);else if(c===i[1])n(t,e),t.right2left();else if(c===i[2])n(t,e);else if(c===i[3])n(t,e),t.bottom2top();else if(c===i[4]||c===i[5]){var u=r(t,e),s=u.left,f=u.right;n(s,e),n(f,e),e.isHorizontal?s.right2left():s.bottom2top(),f.translate(s.x-f.x,s.y-f.y),t.x=s.x,t.y=f.y;var l=t.getBoundingBox();e.isHorizontal?l.top<0&&t.translate(0,-l.top):l.left<0&&t.translate(-l.left,0)}return t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(0),i={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.name||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.pop();)t(e),n=n.concat(e.children)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},right2left:function(){var t=this.getBoundingBox();this.eachNode((function(e){e.x=e.x-2*(e.x-t.left)-e.width})),this.translate(t.width,0)},bottom2top:function(){var t=this.getBoundingBox();this.eachNode((function(e){e.y=e.y-2*(e.y-t.top)-e.height})),this.translate(0,t.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,c=new o(t,e=r.assign({},i,e)),u=[c];if(!n&&!t.collapsed)for(;a=u.pop();)if(!a.data.collapsed){var s=e.getChildren(a.data),f=s?s.length:0;if(a.children=new Array(f),s&&f)for(var l=0;l<f;l++){var h=new o(s[l],e);a.children[l]=h,u.push(h),h.parent=a,h.depth=a.depth+1}}return c}},function(t,e,n){var r=n(3);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),o=t.children.length,a=Math.round(o/2),c=e.getSide||function(t,e){return e<a?"right":"left"},u=0;u<o;u++){var s=t.children[u];"right"===c(s,u)?i.children.push(s):n.children.push(s)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),i.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(6),dendrogram:n(9),indented:n(11),mindmap:n(13)};t.exports=r},function(t,e,n){var r=n(1),i=n(8),o=n(2),a=n(0),c=function(t){function e(){return t.apply(this,arguments)||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.execute=function(){return o(this.rootNode,this.options,i)},e}(r),u={};t.exports=function(t,e){return e=a.assign({},u,e),new c(t,e).execute()}},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e){!function t(e,n,r){r?e.y+=n:e.x+=n,e.children.forEach((function(e){t(e,n,r)}))}(t,-function t(e,n){var r=n?e.y:e.x;return e.children.forEach((function(e){r=Math.min(t(e,n),r)})),r}(t,e),e)}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var i=e.isHorizontal;function o(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function a(t,e,n){for(var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;null!==r&&null!==o;){f(r)>n.low&&(n=n.nxt);var l=i+r.prelim+r.w-(a+o.prelim);l>0&&(a+=l,c(t,e,n.index,l));var h=f(r),d=f(o);h<=d&&null!==(r=s(r))&&(i+=r.mod),h>=d&&null!==(o=u(o))&&(a+=o.mod)}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,i)}function c(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}function u(t){return 0===t.cs?t.tl:t.c[0]}function s(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function f(t){return t.y+t.h}function l(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function t(e,n,r){void 0===r&&(r=0),n?(e.x=r,r+=e.width):(e.y=r,r+=e.height),e.children.forEach((function(e){t(e,n,r)}))}(t,i);var h=n.fromNode(t,i);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=l(f(e.c[0].el),0,null),r=1;r<e.cs;++r){t(e.c[r]);var i=f(e.c[r].er);a(e,r,n),n=l(i,r,n)}!function(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}(e),o(e)}else o(e)}(h),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(t){for(var e=0,n=0,r=0;r<t.cs;r++)e+=t.c[r].shift,n+=e+t.c[r].change,t.c[r].mod+=n}(e);for(var r=0;r<e.cs;r++)t(e.c[r],n)}(h,0),function t(e,n,r){r?n.y=e.x:n.x=e.x,e.c.forEach((function(e,i){t(e,n.children[i],r)}))}(h,t,i),r(t,i),t}},function(t,e,n){var r=n(1),i=n(10),o=n(2),a=n(0),c=function(t){function e(){return t.apply(this,arguments)||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.execute=function(){return this.rootNode.width=0,o(this.rootNode,this.options,i)},e}(r),u={};t.exports=function(t,e){return e=a.assign({},u,e),new c(t,e).execute()}},function(t,e,n){var r=n(0),i={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},i,e);var n,o=0,a=function t(e){if(!e)return null;e.width=0,e.depth&&e.depth>o&&(o=e.depth);var n=e.children,r=n.length,i=new function(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}(e.height,[]);return n.forEach((function(e,n){var o=t(e);i.children.push(o),0===n&&(i.leftChild=o),n===r-1&&(i.rightChild=o)})),i.originNode=e,i.isLeaf=e.isLeaf(),i}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=o;else{var n=e.children.map((function(e){return t(e)})),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(a),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach((function(e){t(e)})),r.y=(r.leftChild.y+r.rightChild.y)/2)}(a),function t(e,n,r){r?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach((function(e,i){t(e,n.children[i],r)}))}(a,t,e.isHorizontal),t}},function(t,e,n){var r=n(1),i=n(12),o=n(4),a=n(0),c=["LR","RL","H"],u=c[0],s=function(t){function e(){return t.apply(this,arguments)||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=t.direction||u;if(r&&-1===c.indexOf(r))throw new TypeError("Invalid direction: "+r);if(r===c[0])i(e,n);else if(r===c[1])i(e,n),e.right2left();else if(r===c[2]){var a=o(e,t),s=a.left,f=a.right;i(s,n),s.right2left(),i(f,n);var l=s.getBoundingBox();f.translate(l.width,0),e.x=f.x-e.width/2}return e},e}(r),f={};t.exports=function(t,e){return e=a.assign({},f,e),new s(t,e).execute()}},function(t,e){t.exports=function(t,e){void 0===e&&(e=20);var n=null;t.eachNode((function(t){!function(t,e,n){t.x+=n*t.depth,t.y=e?e.y+e.height:0}(t,n,e),n=t}))}},function(t,e,n){var r=n(1),i=n(14),o=n(2),a=n(0),c=function(t){function e(){return t.apply(this,arguments)||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.execute=function(){return o(this.rootNode,this.options,i)},e}(r),u={};t.exports=function(t,e){return e=a.assign({},u,e),new c(t,e).execute()}},function(t,e,n){var r=n(0),i={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},i,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,function t(e,n){var r=0;return e.children.length?e.children.forEach((function(e){r+=t(e,n)})):r=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,r)+2*e._subTreeSep,e.totalHeight}(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i<n;i++){var o=e[i];o.startY=e[i-1].startY+e[i-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}})),function t(e){var n=e.children,r=n.length;if(r){n.forEach((function(e){t(e)}));var i=n[0],o=n[r-1],a=o.y-i.y+o.height,c=0;if(n.forEach((function(t){c+=t.totalHeight})),a>e.height)e.y=i.y+a/2-e.height/2;else if(1!==n.length||e.height>c){var u=e.y+(e.height-a)/2-i.y;n.forEach((function(t){t.translate(0,u)}))}else e.y=(i.y+i.height/2+o.y+o.height/2)/2-e.height/2}}(t)}}])}))},function(t,e,n){var r=n(26),i=function(){var t=e.prototype;function e(t){var e=this.getDefaultCfg();r.mix(this,e,t),this._init()}return t.getDefaultCfg=function(){return{}},t._init=function(){},t.destroy=function(){},e}();t.exports=i},function(t,e,n){var r=n(19),i=n(613),o=n(612),a=n(640),c=n(639),u=r.vec3,s=r.mat3,f=["m","l","c","a","q","h","v","t","s","z"];function l(t,e,n){return{x:n.x+t,y:n.y+e}}function h(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function p(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))}function g(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))}var v=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};r.augment(v,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i,o,a,c,u=f.indexOf(n)>=0,s=u?n.toUpperCase():n,d=t,v=e.endPoint,m=d[1],y=d[2];switch(s){default:break;case"M":c=u?l(m,y,v):{x:m,y:y},this.command="M",this.params=[v,c],this.subStart=c,this.endPoint=c;break;case"L":c=u?l(m,y,v):{x:m,y:y},this.command="L",this.params=[v,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-v.x,c.y-v.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]};break;case"H":c=u?l(m,0,v):{x:m,y:v.y},this.command="L",this.params=[v,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-v.x,c.y-v.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]};break;case"V":c=u?l(0,m,v):{x:v.x,y:m},this.command="L",this.params=[v,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-v.x,c.y-v.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]};break;case"Q":u?(i=l(m,y,v),o=l(d[3],d[4],v)):(i={x:m,y:y},o={x:d[3],y:d[4]}),this.command="Q",this.params=[v,i,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-i.x,o.y-i.y]},this.startTangent=function(){return[v.x-i.x,v.y-i.y]};break;case"T":o=u?l(m,y,v):{x:m,y:y},"Q"===e.command?(i=h(e.params[1],v),this.command="Q",this.params=[v,i,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-i.x,o.y-i.y]},this.startTangent=function(){return[v.x-i.x,v.y-i.y]}):(this.command="TL",this.params=[v,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-v.x,o.y-v.y]},this.startTangent=function(){return[v.x-o.x,v.y-o.y]});break;case"C":u?(i=l(m,y,v),o=l(d[3],d[4],v),a=l(d[5],d[6],v)):(i={x:m,y:y},o={x:d[3],y:d[4]},a={x:d[5],y:d[6]}),this.command="C",this.params=[v,i,o,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-o.x,a.y-o.y]},this.startTangent=function(){return[v.x-i.x,v.y-i.y]};break;case"S":u?(o=l(m,y,v),a=l(d[3],d[4],v)):(o={x:m,y:y},a={x:d[3],y:d[4]}),"C"===e.command?(i=h(e.params[2],v),this.command="C",this.params=[v,i,o,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-o.x,a.y-o.y]},this.startTangent=function(){return[v.x-i.x,v.y-i.y]}):(this.command="SQ",this.params=[v,o,a],this.subStart=e.subStart,this.endPoint=a,this.endTangent=function(){return[a.x-o.x,a.y-o.y]},this.startTangent=function(){return[v.x-o.x,v.y-o.y]});break;case"A":var b=m,x=y,w=d[3],_=d[4],S=d[5];c=u?l(d[6],d[7],v):{x:d[6],y:d[7]},this.command="A";var M=function(t,e,n,i,o,a,c){var u=r.mod(r.toRadian(c),2*Math.PI),s=t.x,f=t.y,l=e.x,h=e.y,d=Math.cos(u)*(s-l)/2+Math.sin(u)*(f-h)/2,v=-1*Math.sin(u)*(s-l)/2+Math.cos(u)*(f-h)/2,m=d*d/(o*o)+v*v/(a*a);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));var y=o*o*(v*v)+a*a*(d*d),b=Math.sqrt((o*o*(a*a)-y)/y);n===i&&(b*=-1),isNaN(b)&&(b=0);var x=b*o*v/a,w=b*-a*d/o,_=(s+l)/2+Math.cos(u)*x-Math.sin(u)*w,S=(f+h)/2+Math.sin(u)*x+Math.cos(u)*w,M=g([1,0],[(d-x)/o,(v-w)/a]),P=[(d-x)/o,(v-w)/a],O=[(-1*d-x)/o,(-1*v-w)/a],E=g(P,O);return p(P,O)<=-1&&(E=Math.PI),p(P,O)>=1&&(E=0),0===i&&E>0&&(E-=2*Math.PI),1===i&&E<0&&(E+=2*Math.PI),[t,_,S,o,a,M,E,u,i]}(v,c,_,S,b,x,w);this.params=M;var P=e.subStart;this.subStart=P,this.endPoint=c;var O=M[5]%(2*Math.PI);r.isNumberEqual(O,2*Math.PI)&&(O=0);var E=M[6]%(2*Math.PI);r.isNumberEqual(E,2*Math.PI)&&(E=0);var A=.001;this.startTangent=function(){0===S&&(A*=-1);var t=M[3]*Math.cos(O-A)+M[1],e=M[4]*Math.sin(O-A)+M[2];return[t-P.x,e-P.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(O+t+A)+M[1],n=M[4]*Math.sin(O+t-A)+M[2];return[v.x-e,v.y-n]};break;case"Z":this.command="Z",this.params=[v,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this.command,o=this.params,a=this.box;if(a&&!i.box(a.minX,a.maxX,a.minY,a.maxY,t,e))return!1;switch(r){default:break;case"M":return!1;case"TL":case"L":case"Z":return i.line(o[0].x,o[0].y,o[1].x,o[1].y,n,t,e);case"SQ":case"Q":return i.quadraticline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,n,t,e);case"C":return i.cubicline(o[0].x,o[0].y,o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y,n,t,e);case"A":var c=o,f=c[1],l=c[2],h=c[3],d=c[4],p=c[5],g=c[6],v=c[7],m=c[8],y=h>d?h:d,b=h>d?1:h/d,x=h>d?d/h:1;c=[t,e,1];var w=[1,0,0,0,1,0,0,0,1];return s.translate(w,w,[-f,-l]),s.rotate(w,w,-v),s.scale(w,w,[1/b,1/x]),u.transformMat3(c,c,w),i.arcline(0,0,y,p,p+g,1-m,n,c[0],c[1])}return!1},draw:function(t){var e,n,r,i=this.command,o=this.params;switch(i){default:break;case"M":t.moveTo(o[1].x,o[1].y);break;case"TL":case"L":t.lineTo(o[1].x,o[1].y);break;case"SQ":case"Q":e=o[1],n=o[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=o[1],n=o[2],r=o[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var a=o,c=a[1],u=a[2],s=a[3],f=a[4],l=a[5],h=a[6],d=a[7],p=a[8],g=s>f?s:f,v=s>f?1:s/f,m=s>f?f/s:1;t.translate(c,u),t.rotate(d),t.scale(v,m),t.arc(0,0,g,l,l+h,1-p),t.scale(1/v,1/m),t.rotate(-d),t.translate(-c,-u);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,r,i,u=t/2,s=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(s[0].x,s[1].x)-u,maxX:Math.max(s[0].x,s[1].x)+u,minY:Math.min(s[0].y,s[1].y)-u,maxY:Math.max(s[0].y,s[1].y)+u};break;case"SQ":case"Q":for(r=0,i=(n=a.extrema(s[0].x,s[1].x,s[2].x)).length;r<i;r++)n[r]=a.at(s[0].x,s[1].x,s[2].x,n[r]);for(n.push(s[0].x,s[2].x),r=0,i=(e=a.extrema(s[0].y,s[1].y,s[2].y)).length;r<i;r++)e[r]=a.at(s[0].y,s[1].y,s[2].y,e);e.push(s[0].y,s[2].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"C":for(r=0,i=(n=o.extrema(s[0].x,s[1].x,s[2].x,s[3].x)).length;r<i;r++)n[r]=o.at(s[0].x,s[1].x,s[2].x,s[3].x,n[r]);for(r=0,i=(e=o.extrema(s[0].y,s[1].y,s[2].y,s[3].y)).length;r<i;r++)e[r]=o.at(s[0].y,s[1].y,s[2].y,s[3].y,e[r]);n.push(s[0].x,s[3].x),e.push(s[0].y,s[3].y),this.box={minX:Math.min.apply(Math,n)-u,maxX:Math.max.apply(Math,n)+u,minY:Math.min.apply(Math,e)-u,maxY:Math.max.apply(Math,e)+u};break;case"A":var f=s,l=f[1],h=f[2],d=f[3],p=f[4],g=f[5],v=f[6],m=f[7],y=f[8],b=g,x=g+v,w=c.xExtrema(m,d,p),_=1/0,S=-1/0,M=[b,x];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var P=w+r;1===y?b<P&&P<x&&M.push(P):x<P&&P<b&&M.push(P)}for(r=0,i=M.length;r<i;r++){var O=c.xAt(m,d,p,l,M[r]);O<_&&(_=O),O>S&&(S=O)}var E=c.yExtrema(m,d,p),A=1/0,C=-1/0,k=[b,x];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var j=E+r;1===y?b<j&&j<x&&k.push(j):x<j&&j<b&&k.push(j)}for(r=0,i=k.length;r<i;r++){var I=c.yAt(m,d,p,h,k[r]);I<A&&(A=I),I>C&&(C=I)}this.box={minX:_-u,maxX:S+u,minY:A-u,maxY:C+u}}}}),t.exports=v},function(t,e,n){var r=n(593),i=n(600),o=Math.PI,a=Math.sin,c=Math.cos,u=Math.atan2,s=10,f=o/3;function l(t,e,n,r,i,l,h){var d,p,g,v,m,y,b;if(!e.fill){var x=e.arrowLength||s,w=e.arrowAngle?e.arrowAngle*o/180:f;b=u(r-l,n-i),m=Math.abs(e.lineWidth*c(b))/2,y=Math.abs(e.lineWidth*a(b))/2,h&&(m=-m,y=-y),d=i+x*c(b+w/2),p=l+x*a(b+w/2),g=i+x*c(b-w/2),v=l+x*a(b-w/2),t.beginPath(),t.moveTo(d-m,p-y),t.lineTo(i-m,l-y),t.lineTo(g-m,v-y),t.moveTo(i-m,l-y),t.lineTo(i+m,l+y),t.moveTo(i,l),t.stroke()}}function h(t,e,n,o,a,c,u){var s=u?e.startArrow:e.endArrow,f=s.d,l=0,h=a-n,d=c-o,p=Math.atan(h/d);0===d&&h<0?l=Math.PI:h>0&&d>0?l=Math.PI/2-p:h<0&&d<0?l=-Math.PI/2-p:h>=0&&d<0?l=-p-Math.PI/2:h<=0&&d>0&&(l=Math.PI/2-p);var g=function(t){var e,n=[],o=r.parsePath(t.path);if(!Array.isArray(o)||0===o.length||"M"!==o[0][0]&&"m"!==o[0][0])return!1;for(var a=o.length,c=0;c<o.length;c++){var u=o[c];e=new i(u,e,c===a-1),n.push(e)}return n}(s);if(g){f&&(u?(a+=Math.sin(Math.abs(p))*f,c=c+Math.cos(Math.abs(p))*f-.5*t.lineWidth):(a-=Math.sin(Math.abs(p))*f,c=c-Math.cos(Math.abs(p))*f+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(a,c),t.rotate(l);for(var v=0;v<g.length;v++)g[v].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}t.exports={addStartArrow:function(t,e,n,r,i,o){"object"==typeof e.startArrow?h(t,e,n,r,i,o,!0):e.startArrow&&l(t,e,n,r,i,o,!0)},addEndArrow:function(t,e,n,r,i,o){"object"==typeof e.endArrow?h(t,e,n,r,i,o,!1):e.endArrow&&l(t,e,n,r,i,o,!1)}}},function(t,e,n){var r=n(19);function i(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function o(t,e,n,r){var i,o;return r?t<e?(i=e-t,o=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,o=t-n):(i=t-e,o=n-t),i>o?n:e}function a(t,e,n,i){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=r.mod(e,2*Math.PI),n=r.mod(n,2*Math.PI)+a,t=r.mod(t,2*Math.PI),i?e>=n?t>n&&t<e?t:o(t,n,e,!0):t<e||t>n?t:o(t,e,n):e<=n?e<t&&t<n?t:o(t,e,n,!0):t>e||t<n?t:o(t,n,e)}function c(t,e,n,i,o,c,u,s,f){var l=[u,s],h=[t,e],d=r.vec2.subtract([],l,h),p=r.vec2.angleTo([1,0],d);p=a(p,i,o,c);var g=[n*Math.cos(p)+t,n*Math.sin(p)+e];return f&&(f.x=g[0],f.y=g[1]),r.vec2.distance(g,l)}t.exports={nearAngle:a,projectPoint:function(t,e,n,r,i,o,a,u){var s={};return c(t,e,n,r,i,o,a,u,s),s},pointDistance:c,box:function(t,e,n,o,c,u){var s=Math.PI/2,f=Math.PI,l=3*Math.PI/2,h=[],d=a(0,o,c,u);0===d&&h.push(i(t,e,n,0)),(d=a(s,o,c,u))===s&&h.push(i(t,e,n,s)),(d=a(f,o,c,u))===f&&h.push(i(t,e,n,f)),(d=a(l,o,c,u))===l&&h.push(i(t,e,n,l)),h.push(i(t,e,n,o)),h.push(i(t,e,n,c));var p=1/0,g=-1/0,v=1/0,m=-1/0;return r.each(h,(function(t){p>t.x&&(p=t.x),g<t.x&&(g=t.x),v>t.y&&(v=t.y),m<t.y&&(m=t.y)})),{minX:p,minY:v,maxX:g,maxY:m}}}},function(t,e,n){var r=n(19).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,o,a){var c=[n-t,i-e];if(r.exactEquals(c,[0,0]))return NaN;var u=[-c[1],c[0]];r.normalize(u,u);var s=[o-t,a-e];return Math.abs(r.dot(s,u))},box:function(t,e,n,r,i){var o=i/2,a=Math.min(t,n),c=Math.max(t,n);return{minX:a-o,minY:Math.min(e,r)-o,maxX:c+o,maxY:Math.max(e,r)+o}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){var r=n(118);t.exports=function(t){return r(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){var r=n(118),i=Array.prototype.indexOf;t.exports=function(t,e){return!!r(t)&&i.call(t,e)>-1}},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},,function(t,e,n){var r=n(26),i=function(){function t(t){r.mix(this,{id:"",type:null,model:{},group:null,animate:!1,modelCache:{},isItem:!0,visible:!0},t),this._init()}var e=t.prototype;return e._init=function(){this._initGroup(),this.draw()},e._mapping=function(){var t=this.mapper,e=this.model;t.mapping(e)},e._initGroup=function(){var t=this.group,e=this.model,n=this.type;t.isItemContainer=!0,t.id=e.id,t.itemType=n,t.model=e,t.item=this},e._calculateBBox=function(){var t=this.keyShape,e=this.group,n=r.getBBox(t,e);return n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},e.getLabel=function(){return this.group.findByClass("label")[0]},e.getGraph=function(){return this.graph},e._setShapeObj=function(){var t=this.graph,e=this.type,n=this.getModel();this.shapeObj=t.getShapeObj(e,n)},e._afterDraw=function(){var t=this.graph;this._setGId(),this._cacheModel(),t.emit("afteritemdraw",{item:this})},e._cacheModel=function(){this.modelCache=r.mix({},this.model)},e._setGId=function(){var t=this.group,e=this.id,n=this.type;t.gid=e,t.deepEach((function(t,r,i){var o=r.gid;if(t.id=e,t.eventPreFix=n,t.gid=o+"-"+i,t.isShape){var a=t.get("type");t.gid+="-"+a}}))},e._beforeDraw=function(){var t=this.graph,e=this.group;t.emit("beforeitemdraw",{item:this}),e.resetMatrix(),this.updateCollapsedParent()},e._shouldDraw=function(){return!0},e._getDiff=function(){var t=[],e=this.model,n=this.modelCache;return r.each(e,(function(e,i){r.isEqual(e,n[i])||t.push(i)})),0!==t.length&&t},e._drawInner=function(){var t=this.animate;this.group.clear(!t),this._mapping(),this._setShapeObj();var e=this.shapeObj,n=e.draw(this);n&&(n.isKeyShape=!0,this.keyShape=n),e.afterDraw&&e.afterDraw(this)},e.deepEach=function(t,e){r.traverseTree(this,t,e||function(t){return t.getChildren()})},e.getShapeObj=function(){return this.shapeObj},e.updateCollapsedParent=function(){var t=this.dataMap;this.collapsedParent=function t(e,n){var r=n[e.parent];if(!r)return!1;if(r){var i=t(r,n);if(i)return i}return r.collapsed?r:void 0}(this.model,t)},e.isVisible=function(){return this.visible},e.hide=function(){var t=this.group,e=this.graph;e.emit("beforeitemhide",{item:this}),t.hide(),this.visible=!1,e.emit("afteritemhide",{item:this})},e.show=function(){var t=this.group,e=this.graph;e.emit("beforeitemshow",{item:this}),t.show(),this.visible=!0,e.emit("afteritemshow",{item:this})},e.draw=function(){this._beforeDraw(),this._shouldDraw()&&this._drawInner(),this._afterDraw()},e.forceUpdate=function(){this._beforeDraw(),this._drawInner(),this._afterDraw()},e.getCenter=function(){var t=this.getBBox();return{x:t.centerX,y:t.centerY}},e.getBBox=function(){return this.bbox||this._calculateBBox()},e.layoutUpdate=function(){this.isVisible()&&this.draw()},e.update=function(){this.draw()},e.getModel=function(){return this.model},e.getKeyShape=function(){return this.keyShape},e.getGraphicGroup=function(){return this.group},e.getHierarchy=function(){return this.graph.getHierarchy(this)},e.getParent=function(){var t=this.model;return this.itemMap[t.parent]},e.getAllParents=function(){for(var t=this.model,e=this.itemMap,n=[],r=t.parent;r&&e[r];){var i=e[r],o=i.getModel();n.push(i),r=o.parent}return n},e.getAllChildren=function(){var t=[];return this.deepEach((function(e){t.push(e)})),t},e.getChildren=function(){var t=this.id;return this.graph.getItems().filter((function(e){return e.model.parent===t}))},e.toFront=function(){this.group.toFront()},e.toBack=function(){this.group.toBack()},e.destroy=function(){if(!this.destroyed){var t=this.animate,e=this.graph;e.emit("beforeitemdestroy",{item:this}),this.group.remove(!t),this.destroyed=!0,e.emit("afteritemdestroy",{item:this})}},t}();t.exports=i},function(t,e){t.exports="2.2.6"},function(t,e,n){var r=n(644),i="\t\n\v\f\r   ᠎              \u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),c=function(t){if(!t)return null;if(typeof t==typeof[])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(o,(function(t,r,i){var o=[],c=r.toLowerCase();if(i.replace(a,(function(t,e){e&&o.push(+e)})),"m"===c&&o.length>2&&(n.push([r].concat(o.splice(0,2))),c="l",r="m"===r?"l":"L"),"o"===c&&1===o.length&&n.push([r,o[0]]),"r"===c)n.push([r].concat(o));else for(;o.length>=e[c]&&(n.push([r].concat(o.splice(0,e[c]))),e[c]););})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},s=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,c=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a);o=[["M",c,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},f=function(t){if(!(t=c(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,f=0,l=0;"M"===t[0][0]&&(a=i=+t[0][1],f=o=+t[0][2],l++,r[0]=["M",i,o]);for(var h,d,p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=l,v=t.length;g<v;g++){if(r.push(h=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(h[0]=e.toUpperCase(),h[0]){case"A":h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=+d[6]+i,h[7]=+d[7]+o;break;case"V":h[1]=+d[1]+o;break;case"H":h[1]=+d[1]+i;break;case"R":for(var m=2,y=(n=[i,o].concat(d.slice(1))).length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+o;r.pop(),r=r.concat(u(n,p));break;case"O":r.pop(),(n=s(i,o,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(s(i,o,d[1],d[2],d[3])),h=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+d[1]+i,f=+d[2]+o;break;default:for(var b=1,x=d.length;b<x;b++)h[b]=+d[b]+(b%2?i:o)}else if("R"===e)n=[i,o].concat(d.slice(1)),r.pop(),r=r.concat(u(n,p)),h=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=s(i,o,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(s(i,o,d[1],d[2],d[3])),h=["U"].concat(r[r.length-1].slice(-2));else for(var w=0,_=d.length;w<_;w++)h[w]=d[w];if("O"!==(e=e.toUpperCase()))switch(h[0]){case"Z":i=+a,o=+f;break;case"H":i=h[1];break;case"V":o=h[1];break;case"M":a=h[h.length-2],f=h[h.length-1];break;default:i=h[h.length-2],o=h[h.length-1]}}return r},l=function(t,e,n,r){return[t,e,n,r,n,r]},h=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},d=function(t,e){var n,r=f(t),i=e&&f(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],u=[],s="",d="",p=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,r,i,o,a,c,u,s,f){r===i&&(r+=1);var l,h,d,p,g,v=120*Math.PI/180,m=Math.PI/180*(+o||0),y=[],b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(f)h=f[0],d=f[1],p=f[2],g=f[3];else{e=(l=b(e,n,-m)).x,n=l.y,u=(l=b(u,s,-m)).x,s=l.y,e===u&&n===s&&(u+=1,s+=1);var x=(e-u)/2,w=(n-s)/2,_=x*x/(r*r)+w*w/(i*i);_>1&&(r*=_=Math.sqrt(_),i*=_);var S=r*r,M=i*i,P=(a===c?-1:1)*Math.sqrt(Math.abs((S*M-S*w*w-M*x*x)/(S*w*w+M*x*x)));p=P*r*w/i+(e+u)/2,g=P*-i*x/r+(n+s)/2,h=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((s-g)/i).toFixed(9)),h=e<p?Math.PI-h:h,d=u<p?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),c&&h>d&&(h-=2*Math.PI),!c&&d>h&&(d-=2*Math.PI)}var O=d-h;if(Math.abs(O)>v){var E=d,A=u,C=s;d=h+v*(c&&d>h?1:-1),y=t(u=p+r*Math.cos(d),s=g+i*Math.sin(d),r,i,o,0,c,A,C,[d,E,p,g])}O=d-h;var k=Math.cos(h),j=Math.sin(h),I=Math.cos(d),T=Math.sin(d),B=Math.tan(O/4),L=4/3*r*B,N=4/3*i*B,D=[e,n],Y=[e+L*j,n-N*k],G=[u+L*T,s-N*I],X=[u,s];if(Y[0]=2*D[0]-Y[0],Y[1]=2*D[1]-Y[1],f)return[Y,G,X].concat(y);for(var F=[],R=0,z=(y=[Y,G,X].concat(y).join().split(",")).length;R<z;R++)F[R]=R%2?b(y[R-1],y[R],m).y:b(y[R],y[R+1],m).x;return F}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(h(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(h(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(l(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(l(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(l(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(l(e.x,e.y,e.X,e.Y))}return t},g=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)c[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},v=function(t,e,o,a,c){t&&e&&"M"===t[c][0]&&"M"!==e[c][0]&&(e.splice(c,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[c][1],o.y=t[c][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(s=r[m][0]),"C"!==s&&(c[m]=s,m&&(d=c[m-1])),r[m]=p(r[m],o,d),"A"!==c[m]&&"C"===s&&(c[m]="C"),g(r,m),i&&(i[m]&&(s=i[m][0]),"C"!==s&&(u[m]=s,m&&(d=u[m-1])),i[m]=p(i[m],a,d),"A"!==u[m]&&"C"===s&&(u[m]="C"),g(i,m)),v(r,i,o,a,m),v(i,r,a,o,m);var y=r[m],b=i&&i[m],x=y.length,w=i&&b.length;o.x=y[x-2],o.y=y[x-1],o.bx=parseFloat(y[x-4])||o.x,o.by=parseFloat(y[x-3])||o.y,a.bx=i&&(parseFloat(b[w-4])||a.x),a.by=i&&(parseFloat(b[w-3])||a.y),a.x=i&&b[w-2],a.y=i&&b[w-1]}return i?[r,i]:r},p=/,?([a-z]),?/gi,g=function(t){return t.join(",").replace(p,"$1")},v=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,o,a,c,u){null===u&&(u=1);for(var s=(u=u>1?1:u<0?0:u)/2,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],h=0,d=0;d<12;d++){var p=s*f[d]+s,g=v(p,t,n,i,a),m=v(p,e,r,o,c),y=g*g+m*m;h+=l[d]*Math.sqrt(y)}return s*h},y=function(t,e,n,r,i,o,a,c){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,c)||Math.min(e,r)>Math.max(o,c))){var u=(t-n)*(o-c)-(e-r)*(i-a);if(u){var s=((t*r-e*n)*(i-a)-(t-n)*(i*c-o*a))/u,f=((t*r-e*n)*(o-c)-(e-r)*(i*c-o*a))/u,l=+s.toFixed(2),h=+f.toFixed(2);if(!(l<+Math.min(t,n).toFixed(2)||l>+Math.max(t,n).toFixed(2)||l<+Math.min(i,a).toFixed(2)||l>+Math.max(i,a).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(o,c).toFixed(2)||h>+Math.max(o,c).toFixed(2)))return{x:s,y:f}}}},b=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},x=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=g,o},w=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:x(t,e,n,r),vb:[t,e,n,r].join(" ")}},_=function(t,e,n,i,o,a,c,u){r.isArray(t)||(t=[t,e,n,i,o,a,c,u]);var s=function(t,e,n,r,i,o,a,c){for(var u,s,f,l,h=[],d=[[],[]],p=0;p<2;++p)if(0===p?(s=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(s=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*c,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(s)<1e-12)continue;(l=-f/s)>0&&l<1&&h.push(l)}else{var g=s*s-4*f*u,v=Math.sqrt(g);if(!(g<0)){var m=(-s+v)/(2*u);m>0&&m<1&&h.push(m);var y=(-s-v)/(2*u);y>0&&y<1&&h.push(y)}}for(var b,x=h.length,w=x;x--;)b=1-(l=h[x]),d[0][x]=b*b*b*t+3*b*b*l*n+3*b*l*l*i+l*l*l*a,d[1][x]=b*b*b*e+3*b*b*l*r+3*b*l*l*o+l*l*l*c;return d[0][w]=t,d[1][w]=e,d[0][w+1]=a,d[1][w+1]=c,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}}.apply(null,t);return w(s.min.x,s.min.y,s.max.x-s.min.x,s.max.y-s.min.y)},S=function(t,e,n,r,i,o,a,c,u){var s=1-u,f=Math.pow(s,3),l=Math.pow(s,2),h=u*u,d=h*u,p=t+2*u*(n-t)+h*(i-2*n+t),g=e+2*u*(r-e)+h*(o-2*r+e),v=n+2*u*(i-n)+h*(a-2*i+n),m=r+2*u*(o-r)+h*(c-2*o+r);return{x:f*t+3*l*u*n+3*s*u*u*i+d*a,y:f*e+3*l*u*r+3*s*u*u*o+d*c,m:{x:p,y:g},n:{x:v,y:m},start:{x:s*t+u*n,y:s*e+u*r},end:{x:s*i+u*a,y:s*o+u*c},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},M=function(t,e,n){if(!function(t,e){return t=w(t),e=w(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(_(t),_(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),o=[],a=[],c={},u=n?0:[],s=0;s<r+1;s++){var f=S.apply(0,t.concat(s/r));o.push({x:f.x,y:f.y,t:s/r})}for(var l=0;l<i+1;l++){var h=S.apply(0,e.concat(l/i));a.push({x:h.x,y:h.y,t:l/i})}for(var d=0;d<r;d++)for(var p=0;p<i;p++){var g=o[d],v=o[d+1],x=a[p],M=a[p+1],P=Math.abs(v.x-g.x)<.001?"y":"x",O=Math.abs(M.x-x.x)<.001?"y":"x",E=y(g.x,g.y,v.x,v.y,x.x,x.y,M.x,M.y);if(E){if(c[E.x.toFixed(4)]===E.y.toFixed(4))continue;c[E.x.toFixed(4)]=E.y.toFixed(4);var A=g.t+Math.abs((E[P]-g[P])/(v[P]-g[P]))*(v.t-g.t),C=x.t+Math.abs((E[O]-x[O])/(M[O]-x[O]))*(M.t-x.t);A>=0&&A<=1&&C>=0&&C<=1&&(n?u++:u.push({x:E.x,y:E.y,t1:A,t2:C}))}}return u};function P(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}var O=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(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,c=0;c<n-1;c++){var u=P(o,a/(1-a*c));i.push(u.left),o=u.right}return i.push(o),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},E=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r.each(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function A(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function C(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=k(e)[0],c=1;c<=n;c++)o*=c,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function k(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}t.exports={parsePathString:c,parsePathArray:g,pathTocurve:d,pathToAbsolute:f,catmullRomToBezier:u,rectPath:x,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(var c=0;c<r;c++){var u=Math.floor(i*c);o[u]=(o[u]||0)+1}var s=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(O(t[i],t[i+1],r))}),[]);return s.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||s.push("Z"),s},fillPathByDiff:function(t,e){var n=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var c=[],u=0;u<=i;u++)c[u]=[],c[u][0]={min:u};for(var s=0;s<=o;s++)c[0][s]={min:s};for(var f=1;f<=i;f++){n=t[f-1];for(var l=1;l<=o;l++){r=e[l-1],a=E(n,r)?0:1;var h=c[f-1][l].min+1,d=c[f][l-1].min+1,p=c[f-1][l-1].min+a;c[f][l]=A(h,d,p)}}return c}(t,e),r=t.length,i=e.length,o=[],a=1,c=1;if(n[r][i]!==r){for(var u=1;u<=r;u++){var s=n[u][u].min;c=u;for(var f=a;f<=i;f++)n[u][f].min<s&&(s=n[u][f].min,c=f);a=c,n[u][a].type&&o.push({index:u-1,type:n[u][a].type})}for(var l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(var d=0;d<h;d++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t},formatPath:function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=k(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=C(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=C(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=C(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},intersection:function(t,e){return function(t,e,n){var r,i,o,a,c,u,s,f,l,h;t=d(t),e=d(e);for(var p=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])r=c=m[1],i=u=m[2];else{"C"===m[0]?(r=(l=[r,i].concat(m.slice(1)))[6],i=l[7]):(l=[r,i,r,i,c,u,c,u],r=c,i=u);for(var y=0,b=e.length;y<b;y++){var x=e[y];if("M"===x[0])o=s=x[1],a=f=x[2];else{"C"===x[0]?(o=(h=[o,a].concat(x.slice(1)))[6],a=h[7]):(h=[o,a,o,a,s,f,s,f],o=s,a=f);var w=M(l,h,n);if(n)p+=w;else{for(var _=0,S=w.length;_<S;_++)w[_].segment1=g,w[_].segment2=y,w[_].bez1=l,w[_].bez2=h;p=p.concat(w)}}}}}return p}(t,e)}}},function(t,e,n){var r=n(19),i=n(58),o=n(593),a=n(600),c=function t(e){t.superclass.constructor.call(this,e)};c.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},c.ATTRS={path:null,lineWidth:1},r.extend(c,i),r.augment(c,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},_getPath:function(){var t=this._attrs,e=t.x,n=t.y,i=t.radius||t.r,o=t.symbol||"circle";return(r.isFunction(o)?o:c.Symbols[o])(e,n,i)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n,r=o.parsePath(this._getPath());t.beginPath(),e=[];for(var i=0;i<r.length;i++){var c=r[i];n=new a(c,n,i===r.length-1),e.push(n),n.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=c},function(t,e,n){var r=n(19),i=r.vec2;function o(t,e,n,r,i){var o=1-i;return o*o*(o*r+3*i*n)+i*i*(i*t+3*o*e)}function a(t,e,n,r,a,c,u,s,f,l,h){var d,p,g,v,m,y,b,x,w=.005,_=1/0,S=[f,l];for(p=0;p<1;p+=.05)g=[o(t,n,a,u,p),o(e,r,c,s,p)],(v=i.squaredDistance(S,g))<_&&(d=p,_=v);_=1/0;for(var M=0;M<32&&!(w<1e-4);M++)x=d+w,g=[o(t,n,a,u,b=d-w),o(e,r,c,s,b)],v=i.squaredDistance(S,g),b>=0&&v<_?(d=b,_=v):(y=[o(t,n,a,u,x),o(e,r,c,s,x)],m=i.squaredDistance(S,y),x<=1&&m<_?(d=x,_=m):w*=.5);return h&&(h.x=o(t,n,a,u,d),h.y=o(e,r,c,s,d)),Math.sqrt(_)}function c(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}t.exports={at:o,derivativeAt:function(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)},projectPoint:function(t,e,n,r,i,o,c,u,s,f){var l={};return a(t,e,n,r,i,o,c,u,s,f,l),l},pointDistance:a,extrema:function(t,e,n,i){var o,a,c,u=3*t-9*e+9*n-3*i,s=6*e-12*n+6*i,f=3*n-3*i,l=[];if(r.isNumberEqual(u,0))r.isNumberEqual(s,0)||(o=-f/s)>=0&&o<=1&&l.push(o);else{var h=s*s-4*u*f;r.isNumberEqual(h,0)?l.push(-s/(2*u)):h>0&&(a=(-s-(c=Math.sqrt(h)))/(2*u),(o=(-s+c)/(2*u))>=0&&o<=1&&l.push(o),a>=0&&a<=1&&l.push(a))}return l},len:function(t,e,n,i,o,a,u,s,f){r.isNil(f)&&(f=1);for(var l=(f=f>1?1:f<0?0:f)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<12;g++){var v=l*h[g]+l,m=c(v,t,n,o,u),y=c(v,e,i,a,s),b=m*m+y*y;p+=d[g]*Math.sqrt(b)}return l*p}}},function(t,e,n){var r=n(603),i=n(640),o=n(612),a=n(602);t.exports={line:function(t,e,n,i,o,a,c){var u=r.box(t,e,n,i,o);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,a,c))return!1;var s=r.pointDistance(t,e,n,i,a,c);return!isNaN(s)&&s<=o/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var o=0;o<i;o++){var a=t[o][0],c=t[o][1],u=t[o+1][0],s=t[o+1][1];if(this.line(a,c,u,s,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,a,c,u,s,f,l){return o.pointDistance(t,e,n,r,i,a,c,u,f,l)<=s/2},quadraticline:function(t,e,n,r,o,a,c,u,s){return i.pointDistance(t,e,n,r,o,a,u,s)<=c/2},arcline:function(t,e,n,r,i,o,c,u,s){return a.pointDistance(t,e,n,r,i,o,u,s)<=c/2},rect:function(t,e,n,r,i,o){return t<=i&&i<=t+n&&e<=o&&o<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,o){return t<=i&&i<=e&&n<=o&&o<=r}}},function(t,e,n){var r=n(619),i=n(118),o=n(595);t.exports=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(o(e)||o(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var a=!0,c=0;c<e.length&&(a=t(e[c],n[c]));c++);return a}if(r(e)||r(n)){var u=Object.keys(e),s=Object.keys(n);if(u.length!==s.length)return!1;for(var f=!0,l=0;l<u.length&&(f=t(e[u[l]],n[u[l]]));l++);return f}return!1}},function(t,e,n){var r=n(596),i=n(45),o=5;function a(t,e,n,c){for(var u in n=n||0,c=c||o,e)if(e.hasOwnProperty(u)){var s=e[u];null!==s&&r(s)?(r(t[u])||(t[u]={}),n<c?a(t[u],s,n+1,c):t[u]=e[u]):i(s)?(t[u]=[],t[u]=t[u].concat(s)):void 0!==s&&(t[u]=s)}}t.exports=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0],i=1;i<e;i++)a(r,t[i]);return r}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(45);t.exports=function t(e){if("object"!==(void 0===e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var o=0,a=e.length;o<a;o++)"object"===r(e[o])&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o]}else for(var c in n={},e)"object"===r(e[c])&&null!=e[c]?n[c]=t(e[c]):n[c]=e[c];return n}},function(t,e,n){var r=n(256);r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},function(t,e){t.exports=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":n(t))&&null!==t}},function(t,e,n){var r=n(46),i=n(118);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,(function(t,r){e(t,r)&&n.push(t)})),n}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!==t&&"object"===e||"function"===e}},function(t,e){var n=function(){function t(){}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=n},function(t,e,n){t.exports={CompactBoxTree:n(688),Dendrogram:n(687),IndentedTree:n(686),Mindmap:n(685),Base:n(622)}},function(t,e,n){var r=n(26),i=function(t){function e(e){var n={type:"node",isNode:!0,zIndex:3,edges:[],linkable:!0};return r.mix(n,e),t.call(this,n)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.updatePosition=function(){var t=this.group,e=this.model;t.setMatrix([1,0,0,0,1,0,e.x?e.x:0,e.y?e.y:0,1]),this.bbox=this._calculateBBox()},n._shouldDraw=function(){var e=this._getDiff(),n=t.prototype._shouldDraw.call(this);return e&&!(2===e.length&&-1!==e.indexOf("x")&&-1!==e.indexOf("y"))&&!(1===e.length&&("x"===e[0]||"y"===e[0]))&&n},n._afterDraw=function(){this.updatePosition(),t.prototype._afterDraw.call(this)},n.layoutUpdate=function(){this._beforeDraw(),this._afterDraw()},n.getEdges=function(){var t=this;return this.graph.getEdges().filter((function(e){var n=e.getModel();return n.source===t.id||n.target===t.id}))},n.getInEdges=function(){var t=this;return this.getEdges().filter((function(e){return e.target===t}))},n.getOutEdges=function(){var t=this;return this.getEdges().filter((function(e){return e.source===t}))},n.getLinkPoints=function(t){var e=this.getAnchorPoints();if(r.isNumber(t)&&e[t])return[e[t]];var n=t.x,i=t.y,o=this.getBBox(),a=o.centerX,c=o.centerY,u=n-a,s=i-c,f=this.shapeObj,l=f.anchor||{},h=this.defaultIntersectBox,d=[];if(r.isEmpty(e)){switch(f.intersectBox||l.intersectBox||l.type||h){case"rect":d=[r.getIntersectPointRect(o,t)];break;case"path":if(this.keyShape&&"path"===this.keyShape.get("type")){var p=r.parsePathArray(["M",n,i,"L",a,c]);d=[r.intersection(p,this.keyShape.get("path"))]}break;default:d=[r.getIntersectPointCircle(n,i,o.centerX,o.centerY,Math.max(o.width,o.height)/2)]}r.isEmpty(d[0])&&(d=[{x:a,y:c}])}else d=e.map((function(t){var e=t.x-a,n=t.y-c,i=r.getArcOfVectors({x:u,y:s},{x:e,y:n});return r.mix({},t,{arc:i})})).sort((function(t,e){return t.arc-e.arc}));return d},n.getAnchorPoints=function(t){var e,n=this.shapeObj,i=this.getBBox(),o=[],a=n.anchor||{};return e=r.isArray(a)?a:r.isFunction(a)?a(this):r.isFunction(a.points)?a.points(this):a.points,r.each(e,(function(t,e){var n=r.mix({x:i.minX+t[0]*i.width,y:i.minY+t[1]*i.height},t[2],{index:e});o.push(n)})),this._anchorPoints=o,r.isNumber(t)?this._anchorPoints[t]:this._anchorPoints},e}(n(608));t.exports=i},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(715),n(714),n(713);var i=n(712),o=n(710),a=n(683),c=n(26),u=n(706),s=n(248),f=n(704),l=n(702),h=n(700),d=n(699),p=n(697),g=n(696),v=n(695),m=n(692),y=n(691),b=[g,l,h,f,v,m,n(690),y,d,p],x=function(t){!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(n,t);var e=n.prototype;function n(e){var n,r={};return b.forEach((function(t){c.mix(r,c.clone(t.CFG),e)})),(n=t.call(this,r)||this)._pluginInit(),n.emit("beforeinit"),n._init(),n.emit("afterinit"),n}return e.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,plugins:[],fontFamily:'"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", SimSun, "sans-serif"',nodeDefaultShape:void 0,edgeDefaultShape:void 0,groupDefaultShape:void 0,defaultIntersectBox:"circle",renderer:"canvas",_type:"graph",_controllers:{},_timers:{},_dataMap:{},_itemMap:{},_freezMap:{},_data:{},_delayRunObj:{}}},e._init=function(){var t=this;this._initData(),this._initContainer(),this._initCanvas(),b.forEach((function(e){e.INIT&&t[e.INIT]()})),this.initEvent()},e.initEvent=function(){},e._executeLayout=function(t,e,n,r){c.isFunction(t)?t(e,n,this):c.isObject(t)&&(t.nodes=e,t.edges=n,t.groups=r,t.graph=this,t.execute())},e._pluginInit=function(){var t=this;this.get("plugins").forEach((function(e){t._initPlugin(e)}))},e._initPlugin=function(t){t.graph=this,t.init&&t.init()},e._getTimer=function(t){return this.get("_timers")[t]},e._setTimer=function(t,e){this.get("_timers")[t]=e},e._getController=function(t){return this.get("_controllers")[t]},e._initContainer=function(){var t=this.get("container");t||(t=this.get("id")),t=c.initDOMContainer(t,"graph");var e=c.createDOM('<div class="graph-container"></div>',{position:"relative"});t.appendChild(e),this.set("_containerDOM",t),this.set("_graphContainer",e)},e._initCanvas=function(){var t=this.get("_graphContainer"),e=this.get("width"),n=this.get("height"),r=this.get("fontFamily"),i=this.get("renderer"),o={width:e,height:n,fontFamily:r,renderer:i,eventEnable:!1,containerDOM:t};"svg"===i&&(o.pixelRatio=1);var a=new(0,s.Canvas)(o),c=a.get("el");c.style.top=0,c.style.left=0,c.style.overflow="hidden",this.set("_canvas",a);var u=this.getMouseEventWrapper();u.style.outline="none",u.style["user-select"]="none",u.setAttribute("tabindex",20);var f=a.addGroup(),l=f.addGroup();this.set("_itemGroup",l),this.set("_rootGroup",f)},e._initData=function(){this.set("_dataMap",{}),this.set("_itemMap",{_nodes:[],_edges:[],_groups:[],_guides:[]}),this.set("_data",{})},e._refresh=function(){},e.getKeyboardEventWrapper=function(){var t=this.get("keyboardEventWrapper");return t||this.getMouseEventWrapper()},e.getMouseEventWrapper=function(){return this.get("_canvas").get("el")},e.addPlugin=function(t){var e=this.get("plugins");this._initPlugin(t),e.push(t)},e.getGraphContainer=function(){return this.get("_graphContainer")},e._sortGroup=function(t){var e=this.get("_dataMap"),n={};t.forEach((function(t){var r=t.id,i=t.parent;for(n[r]=1;i&&e[i];)n[r]++,i=e[i].parent})),t.sort((function(t,e){return n[e.id]-n[t.id]}))},e._addItems=function(t,e){var n=this;this._addDatas(t,e),"group"===t&&this._sortGroup(e);var r=c.upperFirst(t),i=o[r],a=this.get("_itemMap"),u=this.get("_itemGroup"),s=this.get("_dataMap"),f=this.get("animate"),l=this.get("defaultIntersectBox");if(!i)throw new Error("please set valid item type!");e.forEach((function(e){var r=new i({id:e.id,type:t,model:e,group:u.addGroup(),graph:n,mapper:n._getController(t+"Mapper"),itemMap:a,animate:f,dataMap:s,defaultIntersectBox:l});a[e.id]=r,a["_"+t+"s"].push(r)}))},e._removeItems=function(t){var e=this.get("_dataMap"),n=this.get("_itemMap");t.forEach((function(t){delete e[t.id],delete n[t.id],c.Array.remove(n["_"+t.type+"s"],t),t.destroy()}))},e._updateItems=function(t,e){t.forEach((function(t,n){var r=e[n];r&&c.mix(t.getModel(),r),t.update()}))},e._getShowEdge=function(t){var e=t.getSource(),n=t.getTarget();return(e.linkable&&e.isVisible()||!e.linkable)&&(n.linkable&&n.isVisible()||!n.linkable)&&t},e._addDatas=function(t,e){var n=this.get("_dataMap");e.forEach((function(t){if(c.isNil(t.id)&&(t.id=c.guid()),n[t.id])throw new Error("id:"+t.id+" has already been set, please set new one");n[t.id]=t}))},e._drawInner=function(){var t=this.get("_data"),e=this.get("_itemGroup"),n=this.get("_dataMap"),r=this.get("_itemMap");t.nodes&&this._addItems("node",t.nodes),t.groups&&this._addItems("group",t.groups),t.edges&&this._addItems("edge",t.edges),t.guides&&this._addItems("guide",t.guides),e.sortBy((function(t){var e=t.id,i=r[e],o=n[e];return o&&!c.isNil(o.index)?o.index:!i||i.destroyed||c.isNil(i.zIndex)?void 0:i.zIndex}))},e._clearInner=function(){this.getItems().forEach((function(t){t&&t.destroy()}))},e.preventAnimate=function(t){return this.set("_forcePreventAnimate",!0),t(),this.set("_forcePreventAnimate",!1),this},e.getShapeObj=function(t,e){if(!c.isObject(t)){var n=c.upperFirst(t),r=a[n],i=this.get(t+"DefaultShape");return r.getShape(e.shape,i)}return t.getShapeObj()},e.getSource=function(){return this.get("_sourceData")},e.parseSource=function(t){return t},e.getCanvas=function(){return this.get("_canvas")},e.getRootGroup=function(){return this.get("_rootGroup")},e.getItemGroup=function(){return this.get("_itemGroup")},e.source=function(t){return this.emit("beforesource"),this.set("_data",t),this.set("_sourceData",t),this.emit("aftersource"),this},e.render=function(){return this.emit("beforerender"),this.emit("beforedrawinner"),this._drawInner(),this.emit("afterdrawinner"),this.emit("afterrender"),this},e.reRender=function(){var t=this.get("_sourceData");return this.read(t),this},e.setCapture=function(t){this.get("_rootGroup").set("capture",t)},e.destroy=function(){this.emit("beforedestroy");var e=this.get("_canvas"),n=this.get("_graphContainer"),r=this.get("_controllers"),i=this.get("_timers"),o=this.get("_windowForceResizeEvent"),a=this.get("plugins");return c.each(i,(function(t){clearTimeout(t)})),c.each(r,(function(t){t.destroy()})),a.forEach((function(t){t.destroy&&t.destroy()})),e&&e.destroy(),n.destroy(),window.removeEventListener("resize",o),this.emit("afterdestroy"),t.prototype.destroy.call(this),this},e.save=function(){var t={nodes:[],edges:[],groups:[],guides:[]};return this.get("_itemGroup").get("children").forEach((function(e,n){var r=e.model;if(r){var i=e.itemType,o=c.clone(r);o.index=n,t[i+"s"].push(o)}})),0===t.nodes.length&&delete t.nodes,0===t.edges.length&&delete t.edges,0===t.groups.length&&delete t.groups,0===t.guides.length&&delete t.guides,t},e.add=function(t,e){var n=[],r={action:"add",model:e,affectedItemIds:n};this.emit("beforechange",r);var i=this.get("_itemMap");this._addItems(t,[e]);var o=i[e.id];return o.getAllParents().forEach((function(t){t.update()})),r.item=o,n.push(e.id),this.emit("afterchange",r),o},e.remove=function(t){if((t=this.getItem(t))&&!t.destroyed){var e=[],n=[],r={action:"remove",item:t,affectedItemIds:n};if(t.isNode){var i=t.getEdges();e=e.concat(i)}if(t.isGroup){var o=t.getEdges(),a=t.getAllChildren(),u=t.getCrossEdges(),s=t.getInnerEdges();e=e.concat(o,a,u,s),e=c.uniq(e)}e.push(t);var f=t.getAllParents();return f.forEach((function(t){n.push(t.id)})),e.forEach((function(t){n.push(t.id)})),this.emit("beforechange",r),this._removeItems(e),f.forEach((function(t){t.update()})),this.emit("afterchange",r),this}},e.simpleUpdate=function(t,e){return this._updateItems([t],[e]),this.draw(),this},e.update=function(t,e){var n=this.get("_itemMap");if((t=this.getItem(t))&&!t.destroyed&&e){var r=this.get("animate"),i=[],o=[],a=[],u=t.getModel(),s=c.mix({},u),f={action:"update",item:t,originModel:s,updateModel:e,affectedItemIds:a},l=n[s.parent];if(i.push(t),o.push(e),a.push(t.id),l&&l!==parent&&c.isGroup(l)&&t.getAllParents().forEach((function(t){i.push(t),o.push(null),a.push(t.id)})),e.parent){var h=n[e.parent];if(!h)throw new Error("there is no "+e.parent+" exist, please add a new one!");i.push(h),o.push(null),a.push(h.id),h.getAllParents().forEach((function(t){i.push(t),o.push(null),a.push(t.id)}))}return(t.isNode||t.isGroup)&&t.getEdges().forEach((function(t){i.push(t),o.push(null),a.push(t.id)})),t.isGroup&&!c.isNil(e.collapsed)&&(r&&t.deepEach((function(t){a.push(t.id)})),t.getCrossEdges().forEach((function(t){i.push(t),o.push(null),a.push(t.id)}))),this.emit("beforechange",f),this._updateItems(i,o),this.emit("afterchange",f),this}},e.read=function(t){var e=this;if(!t)throw new Error("please read valid data!");var n={action:"changeData",data:t};return this.emit("beforechange",n),this.preventAnimate((function(){e.clear(),e.source(t),e.render()})),this.emit("afterchange",n),this},e.clear=function(){return this.emit("beforeclear"),this._clearInner(),this._initData(),this.emit("afterclear"),this},e.hide=function(t){var e=[],n=[],r={item:t=this.getItem(t),affectedItemIds:n};return e.push(t),t.isNode&&t.getEdges().forEach((function(t){e.push(t)})),t.isGroup&&(t.getEdges().forEach((function(t){e.push(t)})),t.deepEach((function(t){e.push(t)}))),(e=c.uniq(e)).forEach((function(t){n.push(t.id)})),this.emit("beforehide",r),e.forEach((function(t){t.hide()})),this.emit("afterhide",r),this},e.show=function(t){var e=this,n=[],r=[],i={item:t=this.getItem(t),affectedItemIds:r};if(t.visible=!0,t.isEdge){var o=this._getShowEdge(t);o&&n.push(o)}else n.push(t);return t.isNode&&t.getEdges().forEach((function(t){(t=e._getShowEdge(t))&&n.push(t)})),t.isGroup&&(t.getEdges().forEach((function(t){(t=e._getShowEdge(t))&&n.push(t)})),t.deepEach((function(t){n.push(t)}))),(n=c.uniq(n)).forEach((function(t){r.push(t.id)})),this.emit("beforeshow",i),n.forEach((function(t){t.show()})),this.emit("aftershow",i),this},e.getWidth=function(){return this.get("width")},e.getHeight=function(){return this.get("height")},e.changeSize=function(t,e){if(!(Math.abs(t)>=1/0||Math.abs(e)>=1/0)){var n=this.get("_canvas");return t===this.get("width")&&e===this.get("height")||(this.emit("beforechangesize"),n.changeSize(t,e),this.set("width",t),this.set("height",e),this.emit("afterchangesize"),this.draw()),this}console.warn("size parameter more than the maximum")},e.toFront=function(t){t=this.getItem(t);var e=this.get("_itemGroup"),n=t.getGraphicGroup();c.toFront(n,e),this.draw()},e.toBack=function(t){t=this.getItem(t);var e=this.get("_itemGroup"),n=t.getGraphicGroup();c.toBack(n,e),this.draw()},e.css=function(t){var e=this.getGraphContainer();c.modifyCSS(e,t)},e.saveImage=function(t){var e=this.getBBox(),n=this.getFitViewPadding();return new u(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({graph:this,width:e.width+n[1]+n[3],height:e.height+n[0]+n[2]},t)).toCanvas()},n}(i);b.forEach((function(t){c.mix(x.prototype,t.AUGMENT)})),t.exports=x},function(t,e){var n={registerBehaviour:function(t,e,r){e.dependences=r,n[t]=e},resetMode:function(t,e){var r,i=[];e._off();for(var o=0;o<t.length;o++)(r=n[t[o]])&&(r.dependences&&r.dependences.forEach((function(t){t&&-1===i.indexOf(t)&&(n[t](e),i.push(t))})),r&&-1===i.indexOf(r)&&r(e))}};t.exports=n},function(t,e,n){var r=n(19),i=n(58),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,o=t.fontVariant;t.font=[i,o,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e)&&-1!==e.indexOf("\n")){var i=(n=e.split("\n")).length;t.lineCount=i}t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;return e>1?n*e+this._getSpaceingY()*(e-1):n},isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs,e=this._cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var n=t.x,r=t.y,i=this.measureText();if(!i)return{minX:n,minY:r,maxX:n,maxY:r};var o=this._getTextHeight(),a=t.textAlign,c=t.textBaseline,u=this.getHitLineWidth(),s={x:n,y:r-o};a&&("end"===a||"right"===a?s.x-=i:"center"===a&&(s.x-=i/2)),c&&("top"===c?s.y+=o:"middle"===c&&(s.y+=o/2)),this.set("startPoint",s);var f=u/2;return{minX:s.x-f,minY:s.y-f,maxX:s.x+i+f,maxY:s.y+o+f}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var i=e.text;if(i){var o=e.textArr,a=e.x,c=e.y;if(t.beginPath(),this.hasStroke()){var u=e.strokeOpacity;r.isNil(u)||1===u||(t.globalAlpha=u),o?this._drawTextArr(t,!1):t.strokeText(i,a,c),t.globalAlpha=1}if(this.hasFill()){var s=e.fillOpacity;r.isNil(s)||1===s||(t.globalAlpha=s),o?this._drawTextArr(t,!0):t.fillText(i,a,c)}n.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,o=this._attrs.textBaseline,a=1*this._attrs.fontSize,c=this._getSpaceingY(),u=this._attrs.x,s=this._attrs.y,f=this.getBBox(),l=f.maxY-f.minY;r.each(i,(function(r,i){n=s+i*(c+a)-l+a,"middle"===o&&(n+=l-a-(l-a)/2),"top"===o&&(n+=l-a),e?t.fillText(r,u,n):t.strokeText(r,u,n)}))},measureText:function(){var t,e=this._attrs,n=e.text,i=e.font,o=e.textArr,a=0;if(!r.isNil(n)){var c=document.createElement("canvas").getContext("2d");return c.save(),c.font=i,o?r.each(o,(function(e){t=c.measureText(e).width,a<t&&(a=t),c.restore()})):(a=c.measureText(n).width,c.restore()),a}}}),t.exports=o},function(t,e,n){var r=n(19),i=n(593).parseRadius,o=n(58),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(a,o),r.augment(a,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,o=this.getHitLineWidth()/2;return{minX:e-o,minY:n-o,maxX:e+r+o,maxY:n+i+o}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,o=e.width,a=e.height,c=e.radius;if((t=t||this.get("context")).beginPath(),0===c)t.rect(n,r,o,a);else{var u=i(c);t.moveTo(n+u.r1,r),t.lineTo(n+o-u.r2,r),0!==u.r2&&t.arc(n+o-u.r2,r+u.r2,u.r2,-Math.PI/2,0),t.lineTo(n+o,r+a-u.r3),0!==u.r3&&t.arc(n+o-u.r3,r+a-u.r3,u.r3,0,Math.PI/2),t.lineTo(n+u.r4,r+a),0!==u.r4&&t.arc(n+u.r4,r+a-u.r4,u.r4,Math.PI/2,Math.PI),t.lineTo(n,r+u.r1),0!==u.r1&&t.arc(n+u.r1,r+u.r1,u.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=a},function(t,e,n){var r=n(19),i=n(58),o=n(601),a=n(603),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(c,i),r.augment(c,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var i=1/0,o=1/0,a=-1/0,c=-1/0;r.each(n,(function(t){var e=t[0],n=t[1];e<i&&(i=e),e>a&&(a=e),n<o&&(o=n),n>c&&(c=n)}));var u=e/2;return{minX:i-u,minY:o-u,maxX:a+u,maxY:c+u}},_setTcache:function(){var t,e,n=this._attrs.points,i=0,o=0,c=[];n&&0!==n.length&&(r.each(n,(function(t,e){n[e+1]&&(i+=a.len(t[0],t[1],n[e+1][0],n[e+1][1]))})),i<=0||(r.each(n,(function(r,u){n[u+1]&&((t=[])[0]=o/i,e=a.len(r[0],r[1],n[u+1][0],n[u+1][1]),o+=e,t[1]=o/i,c.push(t))})),this.tCache=c))},createPath:function(t){var e,n,r=this._attrs.points;if(!(r.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(r[0][0],r[0][1]),n=1,e=r.length-1;n<e;n++)t.lineTo(r[n][0],r[n][1]);t.lineTo(r[e][0],r[e][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.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},afterPath:function(t){var e=this._attrs,n=e.points,r=n.length-1;t=t||this.get("context"),e.startArrow&&o.addStartArrow(t,e,n[1][0],n[1][1],n[0][0],n[0][1]),e.endArrow&&o.addEndArrow(t,e,n[r-1][0],n[r-1][1],n[r][0],n[r][1])},getPoint:function(t){var e,n,i=this._attrs.points,o=this.tCache;return o||(this._setTcache(),o=this.tCache),r.each(o,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),{x:a.at(i[n][0],i[n+1][0],e),y:a.at(i[n][1],i[n+1][1],e)}}}),t.exports=c},function(t,e,n){var r=n(19),i=n(58),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={points:null,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var n=1/0,i=1/0,o=-1/0,a=-1/0;r.each(t,(function(t){var e=t[0],r=t[1];e<n&&(n=e),e>o&&(o=e),r<i&&(i=r),r>a&&(a=r)}));var c=e/2;return{minX:n-c,minY:i-c,maxX:o+c,maxY:a+c}},createPath:function(t){var e=this._attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),r.each(e,(function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])})),t.closePath())}}),t.exports=o},function(t,e,n){var r=n(19),i=n(58),o=n(600),a=n(593),c=n(601),u=n(610),s=n(612),f=function t(e){t.superclass.constructor.call(this,e)};f.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(f,i),r.augment(f,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){if(r.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e,n=a.parsePath(t),i=[];if(r.isArray(n)&&0!==n.length&&("M"===n[0][0]||"m"===n[0][0])){for(var c=n.length,u=0;u<n.length;u++){var s=n[u];e=new o(s,e,u===c-1),i.push(e)}this.setSilent("segments",i),this.setSilent("tCache",null),this.setSilent("box",null)}},calculateBox:function(){var t=this.get("segments");if(!t)return null;var e=this.getHitLineWidth(),n=1/0,i=-1/0,o=1/0,a=-1/0;return r.each(t,(function(t){t.getBBox(e);var r=t.box;r&&(r.minX<n&&(n=r.minX),r.maxX>i&&(i=r.maxX),r.minY<o&&(o=r.minY),r.maxY>a&&(a=r.maxY))})),n===1/0||o===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:n,minY:o,maxX:i,maxY:a}},_setTcache:function(){var t,e,n,i,o=0,a=0,c=[],u=this._cfg.curve;u&&(r.each(u,(function(t,e){n=u[e+1],i=t.length,n&&(o+=s.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))})),r.each(u,(function(r,f){n=u[f+1],i=r.length,n&&((t=[])[0]=a/o,e=s.len(r[i-2],r[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),a+=e,t[1]=a/o,c.push(t))})),this._cfg.tCache=c)},_calculateCurve:function(){var t=this._attrs.path;this._cfg.curve=u.pathTocurve(t)},getStartTangent:function(){var t,e,n,i,o=this.get("segments");if(o.length>1)if(t=o[0].endPoint,e=o[1].endPoint,n=o[1].startTangent,i=[],r.isFunction(n)){var a=n();i.push([t.x-a[0],t.y-a[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,o=this.get("segments"),a=o.length;if(a>1)if(t=o[a-2].endPoint,e=o[a-1].endPoint,n=o[a-1].endTangent,i=[],r.isFunction(n)){var c=n();i.push([e.x-c[0],e.y-c[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var o=this._cfg.curve;if(!i)return o?{x:o[0][1],y:o[0][2]}:null;r.each(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var a=o[n];if(r.isNil(a)||r.isNil(n))return null;var c=a.length,u=o[n+1];return{x:s.at(a[c-2],u[1],u[3],u[5],1-e),y:s.at(a[c-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this.get("segments");if(r.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,i=0;i<n;i++)e[i].draw(t)}},afterPath:function(t){var e=this._attrs,n=this.get("segments"),i=e.path;if(t=t||this.get("context"),r.isArray(n)&&1!==n.length&&(e.startArrow||e.endArrow)&&"z"!==i[i.length-1]&&"Z"!==i[i.length-1]&&!e.fill){var o=this.getStartTangent();c.addStartArrow(t,e,o[0][0],o[0][1],o[1][0],o[1][1]);var a=this.getEndTangent();c.addEndArrow(t,e,a[0][0],a[0][1],a[1][0],a[1][1])}}}),t.exports=f},function(t,e,n){var r=n(19),i=n(58),o=n(601),a=n(603),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=this.getHitLineWidth();return a.box(e,n,r,i,o)},createPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(n,r),t.lineTo(i,o)},afterPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;t=t||this.get("context"),e.startArrow&&o.addStartArrow(t,e,i,a,n,r),e.endArrow&&o.addEndArrow(t,e,n,r,i,a)},getPoint:function(t){var e=this._attrs;return{x:a.at(e.x1,e.x2,t),y:a.at(e.y1,e.y2,t)}}}),t.exports=c},function(t,e,n){var r=n(19),i=n(58),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(o,i),r.augment(o,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,o=e.img,a=e.width,c=e.height,u=e.sx,s=e.sy,f=e.swidth,l=e.sheight;this.set("toDraw",!1);var h=o;if(h instanceof ImageData&&((h=new Image).src=o),h instanceof Image||h instanceof HTMLElement&&r.isString(h.nodeName)&&"CANVAS"===h.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(s)||r.isNil(f)||r.isNil(l))return void t.drawImage(h,n,i,a,c);if(!(r.isNil(u)||r.isNil(s)||r.isNil(f)||r.isNil(l)))return void t.drawImage(h,u,s,f,l,n,i,a,c)}}}),t.exports=o},function(t,e,n){var r=n(19),i=n(58),o=n(602),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rs,i=t.re,a=t.startAngle,c=t.endAngle,u=t.clockwise,s=this.getHitLineWidth(),f=o.box(e,n,r,a,c,u),l=o.box(e,n,i,a,c,u),h=s/2;return{minX:Math.min(f.minX,l.minX)-h,minY:Math.min(f.minY,l.minY)-h,maxX:Math.max(f.maxX,l.maxX)+h,maxY:Math.max(f.maxY,l.maxY)+h}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,o=e.re,a=e.startAngle,c=e.endAngle,u=e.clockwise,s={x:Math.cos(a)*i+n,y:Math.sin(a)*i+r},f={x:Math.cos(a)*o+n,y:Math.sin(a)*o+r},l={x:Math.cos(c)*i+n,y:Math.sin(c)*i+r};(t=t||self.get("context")).beginPath(),t.moveTo(s.x,s.y),t.lineTo(f.x,f.y),t.arc(n,r,o,a,c,u),t.lineTo(l.x,l.y),t.arc(n,r,i,c,a,!u),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(19),i=n(58),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,o=this.getHitLineWidth(),a=r+o/2,c=i+o/2;return{minX:e-a,minY:n-c,maxX:e+a,maxY:n+c}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,o=e.rx,a=e.ry;t=t||self.get("context");var c=o>a?o:a,u=o>a?1:o/a,s=o>a?a/o:1,f=[1,0,0,0,1,0,0,0,1];r.mat3.scale(f,f,[u,s]),r.mat3.translate(f,f,[n,i]),t.beginPath(),t.save(),t.transform(f[0],f[1],f[3],f[4],f[6],f[7]),t.arc(0,0,c,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(19),i=n(58),o=function t(e){t.superclass.constructor.call(this,e)};r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,o=this.getHitLineWidth()/2;return{minX:e-o,minY:n-o,maxX:e+r+o,maxY:n+i+o}}}),t.exports=o},function(t,e,n){var r=n(19),i=n(58),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(19),i=n(58),o=n(602),a=n(601);function c(t,e,n){return t+e*Math.cos(n)}function u(t,e,n){return t+e*Math.sin(n)}var s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,a=t.endAngle,c=t.clockwise,u=this.getHitLineWidth()/2,s=o.box(e,n,r,i,a,c);return s.minX-=u,s.minY-=u,s.maxX+=u,s.maxY+=u,s},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.startAngle,i=t.r,o=t.clockwise,a=Math.PI/180;o&&(a*=-1);var s=[],f=c(e,i,r+a),l=u(n,i,r+a),h=c(e,i,r),d=u(n,i,r);return s.push([f,l]),s.push([h,d]),s},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,r=t.endAngle,i=t.r,o=t.clockwise,a=Math.PI/180,s=[];o&&(a*=-1);var f=c(e,i,r+a),l=u(n,i,r+a),h=c(e,i,r),d=u(n,i,r);return s.push([h,d]),s.push([f,l]),s},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,o=e.startAngle,a=e.endAngle,c=e.clockwise;(t=t||self.get("context")).beginPath(),t.arc(n,r,i,o,a,c)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();a.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();a.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=s},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){var r=n(19),i=r.vec2;function o(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function a(t,e,n,r,a,c,u,s,f){var l,h,d,p,g,v,m,y=.005,b=1/0,x=[u,s];for(g=0;g<1;g+=.05)d=[o(t,n,a,g),o(e,r,c,g)],(h=i.squaredDistance(x,d))<b&&(l=g,b=h);for(b=1/0,m=0;m<32&&!(y<1e-4);m++){var w=l-y,_=l+y;d=[o(t,n,a,w),o(e,r,c,w)],h=i.squaredDistance(x,d),w>=0&&h<b?(l=w,b=h):(p=[o(t,n,a,_),o(e,r,c,_)],v=i.squaredDistance(x,p),_<=1&&v<b?(l=_,b=v):y*=.5)}return f&&(f.x=o(t,n,a,l),f.y=o(e,r,c,l)),Math.sqrt(b)}t.exports={at:o,projectPoint:function(t,e,n,r,i,o,c,u){var s={};return a(t,e,n,r,i,o,c,u,s),s},pointDistance:a,extrema:function(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var o=(t-e)/i;return o<=1&&o>=0?[o]:[]}}},function(t,e,n){var r=n(19),i=n(746),o=n(745),a=n(744),c=n(116),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,o,c,a,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,i=n.parent,o=n.el;return i&&r.remove(i.get("children"),this),o&&(e?i&&i._cfg.tobeRemoved.push(o):o.parentNode.removeChild(o)),(t||void 0===t)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var o=r.parentNode;o.removeChild(r),o.insertBefore(r,o.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,o=i.indexOf(this),a=n.parentNode;a.removeChild(n),o===i.length-1?a.appendChild(n):a.insertBefore(n,a.childNodes[o])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){var r=n(19),i=n(641),o=n(743),a={},c="_INDEX";function u(t,e,n){for(var r,i=t.length-1;i>=0;i--){var o=t[i];if(o._cfg.visible&&o._cfg.capture&&(o.isGroup?r=o.getShape(e,n):o.isHit(e,n)&&(r=o)),r)break}return r}var s=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};r.extend(s,i),r.augment(s,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return function t(e){if(!e._cfg&&e!==s){var n=e.superclass.constructor;n&&!n._cfg&&t(n),e._cfg={},r.merge(e._cfg,n._cfg),r.merge(e._cfg,e.CFG)}}(this.constructor),r.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var i=a[t];if(i||(i=r.upperFirst(t),a[t]=i),e.attrs&&n){var c=e.attrs;if("text"===t){var u=n.get("fontFamily");u&&(c.fontFamily=c.fontFamily?c.fontFamily:u)}}e.canvas=n,e.type=t;var s=new o[i](e);return this.add(s),s},addGroup:function(t,e){var n,i=this.get("canvas");if(e=r.merge({},e),r.isFunction(t))e?(e.canvas=i,e.parent=this,n=new t(e)):n=new t({canvas:i,parent:this}),this.add(n);else if(r.isObject(t))t.canvas=i,n=new s(t),this.add(n);else{if(void 0!==t)return!1;n=new s,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),i=this.getBBox();return r.merge(e,{x:i.minX-t[3],y:i.minY-t[0],width:i.width+t[1]+t[3],height:i.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!r.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),s.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(r.isArray(t))r.each(t,(function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)})),e._cfg.children=n.concat(t);else{var i=t,o=i.get("parent");o&&o.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,o=this.get("children");o.length>0?r.each(o,(function(r){if(r.get("visible")){if(r.isGroup&&0===r.get("children").length)return;var o=r.getBBox();if(!o)return!0;var a=[o.minX,o.minY,1],c=[o.minX,o.maxY,1],u=[o.maxX,o.minY,1],s=[o.maxX,o.maxY,1];r.apply(a),r.apply(c),r.apply(u),r.apply(s);var f=Math.min(a[0],c[0],u[0],s[0]),l=Math.max(a[0],c[0],u[0],s[0]),h=Math.min(a[1],c[1],u[1],s[1]),d=Math.max(a[1],c[1],u[1],s[1]);f<t&&(t=f),l>e&&(e=l),h<n&&(n=h),d>i&&(i=d)}})):(t=0,e=0,n=0,i=0);var a={minX:t,minY:n,maxX:e,maxY:i};return a.x=a.minX,a.y=a.minY,a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return r.each(t,(function(t,e){return t[c]=e,t})),t.sort(function(t){return function(e,n){var r=t(e,n);return 0===r?e[c]-n[c]:r}}((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this},findById:function(t){return this.find((function(e){return e.get("id")===t}))},find:function(t){if(r.isString(t))return this.findById(t);var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1})),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},findBy:function(t){var e=this.get("children"),n=null;return r.each(e,(function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1})),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return r.each(e,(function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))})),n},getShape:function(t,e){var n,r=this._attrs.clip,i=this._cfg.children;if(r){var o=[t,e,1];r.invert(o,this.get("canvas")),r.isPointInPath(o[0],o[1])&&(n=u(i,t,e))}else n=u(i,t,e);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;e<t.length;e++)t[e].clearTotalMatrix()}},clear:function(t){for(var e=this._cfg.children,n=e.length-1;n>=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),s.superclass.destroy.call(this))},clone:function(){var t=this._cfg.children,e=new s;return r.each(t,(function(t){e.add(t.clone())})),e}}),t.exports=s},function(t,e,n){var r=n(19),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){t.exports={isFunction:n(84),isObject:n(621),isBoolean:n(653),isNil:n(237),isString:n(595),isArray:n(45),isNumber:n(236),isEmpty:n(647),uniqueId:n(646),clone:n(616),deepMix:n(615),assign:n(606),merge:n(615),upperFirst:n(655),each:n(46),isEqual:n(614),toArray:n(604),extend:n(650),augment:n(651),remove:n(676),isNumberEqual:n(673),toRadian:n(669),toDegree:n(671),mod:n(672),clamp:n(618),createDom:n(681),modifyCSS:n(680),requestAnimationFrame:n(679),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(617),vec2:n(668),vec3:n(667),transform:n(666)}},function(t,e,n){var r=n(16),i=n(253),o=n(251),a="Expected a function",c=Math.max,u=Math.min;t.exports=function(t,e,n){var s,f,l,h,d,p,g=0,v=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError(a);function b(e){var n=s,r=f;return s=f=void 0,g=e,h=t.apply(r,n)}function x(t){var n=t-p;return void 0===p||n>=e||n<0||m&&t-g>=l}function w(){var t=i();if(x(t))return _(t);d=setTimeout(w,function(t){var n=e-(t-p);return m?u(n,l-(t-g)):n}(t))}function _(t){return d=void 0,y&&s?b(t):(s=f=void 0,h)}function S(){var t=i(),n=x(t);if(s=arguments,f=this,p=t,n){if(void 0===d)return function(t){return g=t,d=setTimeout(w,e),v?b(t):h}(p);if(m)return d=setTimeout(w,e),b(p)}return void 0===d&&(d=setTimeout(w,e)),h}return e=o(e)||0,r(n)&&(v=!!n.leading,l=(m="maxWait"in n)?c(o(n.maxWait)||0,e):l,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==d&&clearTimeout(d),g=0,s=p=f=d=void 0},S.flush=function(){return void 0===d?h:_(i())},S}},function(t,e){var n=function(){var t={};return function(e){return t[e=e||"g"]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},function(t,e,n){var r=n(237),i=n(118),o=n(654),a=n(652),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(r(t))return!0;if(i(t))return!t.length;var e=o(t);if("Map"===e||"Set"===e)return!t.size;if(a(t))return!Object.keys(t).length;for(var n in t)if(c.call(t,n))return!1;return!0}},function(t,e,n){var r=n(46),i=n(45),o=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!i(t))return t;var n={},a=null;return r(t,(function(t){a=e(t),o.call(n,a)?n[a].push(t):n[a]=[t]})),n}},function(t,e,n){var r=n(84),i=n(45),o=n(648);t.exports=function(t,e){if(!e)return{0:t};if(!r(e)){var n=i(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return o(t,e)}},function(t,e,n){var r=n(84),i=n(606);t.exports=function(t,e,n,o){r(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},c=a(e.prototype,t);return t.prototype=i(c,t.prototype),t.superclass=a(e.prototype,e),i(c,n),i(t,o),t}},function(t,e,n){var r=n(84),i=n(604),o=n(606);t.exports=function(t){for(var e=i(arguments),n=1;n<e.length;n++){var a=e[n];r(a)&&(a=a.prototype),o(t.prototype,a)}}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(115);t.exports=function(t){return r(t,"Boolean")}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e,n){var r=n(594);t.exports=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var r=n(594);t.exports=function(t){return r(t).toUpperCase()}},function(t,e,n){var r=n(594);t.exports=function(t){return r(t).toLowerCase()}},function(t,e){t.exports=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="\t\n\v\f\r   ᠎              \u2028\u2029",i=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");t.exports=function(t){if(!t)return null;if((void 0===t?"undefined":n(t))===n([]))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},r=[];return String(t).replace(i,(function(t,n,i){var a=[],c=n.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===c&&a.length>2&&(r.push([n].concat(a.splice(0,2))),c="l",n="m"===n?"l":"L"),"o"===c&&1===a.length&&r.push([n,a[0]]),"r"===c)r.push([n].concat(a));else for(;a.length>=e[c]&&(r.push([n].concat(a.splice(0,e[c]))),e[c]););})),r}},function(t,e,n){var r=n(659),i=n(658);function o(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,c=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a);o=[["M",c,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o}t.exports=function(t){if(!(t=r(t))||!t.length)return[["M",0,0]];var e=[],n=0,a=0,c=0,u=0,s=0,f=void 0,l=void 0;"M"===t[0][0]&&(c=n=+t[0][1],u=a=+t[0][2],s++,e[0]=["M",n,a]);for(var h,d,p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=s,v=t.length;g<v;g++){if(e.push(h=[]),(f=(d=t[g])[0])!==f.toUpperCase())switch(h[0]=f.toUpperCase(),h[0]){case"A":h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=+d[6]+n,h[7]=+d[7]+a;break;case"V":h[1]=+d[1]+a;break;case"H":h[1]=+d[1]+n;break;case"R":for(var m=2,y=(l=[n,a].concat(d.slice(1))).length;m<y;m++)l[m]=+l[m]+n,l[++m]=+l[m]+a;e.pop(),e=e.concat(i(l,p));break;case"O":e.pop(),(l=o(n,a,d[1],d[2])).push(l[0]),e=e.concat(l);break;case"U":e.pop(),e=e.concat(o(n,a,d[1],d[2],d[3])),h=["U"].concat(e[e.length-1].slice(-2));break;case"M":c=+d[1]+n,u=+d[2]+a;break;default:for(var b=1,x=d.length;b<x;b++)h[b]=+d[b]+(b%2?n:a)}else if("R"===f)l=[n,a].concat(d.slice(1)),e.pop(),e=e.concat(i(l,p)),h=["R"].concat(d.slice(-2));else if("O"===f)e.pop(),(l=o(n,a,d[1],d[2])).push(l[0]),e=e.concat(l);else if("U"===f)e.pop(),e=e.concat(o(n,a,d[1],d[2],d[3])),h=["U"].concat(e[e.length-1].slice(-2));else for(var w=0,_=d.length;w<_;w++)h[w]=d[w];if("O"!==(f=f.toUpperCase()))switch(h[0]){case"Z":n=+c,a=+u;break;case"H":n=h[1];break;case"V":a=h[1];break;case"M":c=h[h.length-2],u=h[h.length-1];break;default:n=h[h.length-2],a=h[h.length-1]}}return e}},function(t,e,n){var r=n(660),i=function(t,e,n,r){return[t,e,n,r,n,r]},o=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]};t.exports=function(t,e){var n=r(t),a=e&&r(e),c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],f=[],l="",h="",d=void 0,p=function(t,e,n){var r=void 0,a=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,r,i,o,a,c,u,s,f){r===i&&(r+=1);var l=120*Math.PI/180,h=Math.PI/180*(+o||0),d=[],p=void 0,g=void 0,v=void 0,m=void 0,y=void 0,b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(f)g=f[0],v=f[1],m=f[2],y=f[3];else{e=(p=b(e,n,-h)).x,n=p.y,u=(p=b(u,s,-h)).x,s=p.y,e===u&&n===s&&(u+=1,s+=1);var x=(e-u)/2,w=(n-s)/2,_=x*x/(r*r)+w*w/(i*i);_>1&&(r*=_=Math.sqrt(_),i*=_);var S=r*r,M=i*i,P=(a===c?-1:1)*Math.sqrt(Math.abs((S*M-S*w*w-M*x*x)/(S*w*w+M*x*x)));m=P*r*w/i+(e+u)/2,y=P*-i*x/r+(n+s)/2,g=Math.asin(((n-y)/i).toFixed(9)),v=Math.asin(((s-y)/i).toFixed(9)),g=e<m?Math.PI-g:g,v=u<m?Math.PI-v:v,g<0&&(g=2*Math.PI+g),v<0&&(v=2*Math.PI+v),c&&g>v&&(g-=2*Math.PI),!c&&v>g&&(v-=2*Math.PI)}var O=v-g;if(Math.abs(O)>l){var E=v,A=u,C=s;v=g+l*(c&&v>g?1:-1),d=t(u=m+r*Math.cos(v),s=y+i*Math.sin(v),r,i,o,0,c,A,C,[v,E,m,y])}O=v-g;var k=Math.cos(g),j=Math.sin(g),I=Math.cos(v),T=Math.sin(v),B=Math.tan(O/4),L=4/3*r*B,N=4/3*i*B,D=[e,n],Y=[e+L*j,n-N*k],G=[u+L*T,s-N*I],X=[u,s];if(Y[0]=2*D[0]-Y[0],Y[1]=2*D[1]-Y[1],f)return[Y,G,X].concat(d);for(var F=[],R=0,z=(d=[Y,G,X].concat(d).join().split(",")).length;R<z;R++)F[R]=R%2?b(d[R-1],d[R],h).y:b(d[R],d[R+1],h).x;return F}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,a=2*e.y-e.by):(r=e.x,a=e.y),t=["C",r,a].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(o(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(o(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(i(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(i(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(i(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(i(e.x,e.y,e.X,e.Y))}return t},g=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)s[e]="A",a&&(f[e]="A"),t.splice(e++,0,["C"].concat(r.splice(0,6)));t.splice(e,1),d=Math.max(n.length,a&&a.length||0)}},v=function(t,e,r,i,o){t&&e&&"M"===t[o][0]&&"M"!==e[o][0]&&(e.splice(o,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[o][1],r.y=t[o][2],d=Math.max(n.length,a&&a.length||0))};d=Math.max(n.length,a&&a.length||0);for(var m=0;m<d;m++){n[m]&&(l=n[m][0]),"C"!==l&&(s[m]=l,m&&(h=s[m-1])),n[m]=p(n[m],c,h),"A"!==s[m]&&"C"===l&&(s[m]="C"),g(n,m),a&&(a[m]&&(l=a[m][0]),"C"!==l&&(f[m]=l,m&&(h=f[m-1])),a[m]=p(a[m],u,h),"A"!==f[m]&&"C"===l&&(f[m]="C"),g(a,m)),v(n,a,c,u,m),v(a,n,u,c,m);var y=n[m],b=a&&a[m],x=y.length,w=a&&b.length;c.x=y[x-2],c.y=y[x-1],c.bx=parseFloat(y[x-4])||c.x,c.by=parseFloat(y[x-3])||c.y,u.bx=a&&(parseFloat(b[w-4])||u.x),u.by=a&&(parseFloat(b[w-3])||u.y),u.x=a&&b[w-2],u.y=a&&b[w-1]}return a?[n,a]:n}},function(t,e){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},function(t,e,n){var r=n(662);t.exports=function(t,e,n,i,o){if(o)return[["M",+t+ +o,e],["l",n-2*o,0],["a",o,o,0,0,1,o,o],["l",0,i-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-n,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-i],["a",o,o,0,0,1,o,-o],["z"]];var a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=r,a}},function(t,e,n){var r=n(46),i=n(84),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r(t,(function(n,r){i(t)&&"prototype"===r||e.push(n)})),e};t.exports=o},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var r=n(616),i=n(46),o=n(617);t.exports=function(t,e){return t=r(t),i(e,(function(e){switch(e[0]){case"t":o.translate(t,t,[e[1],e[2]]);break;case"s":o.scale(t,t,[e[1],e[2]]);break;case"r":o.rotate(t,t,e[1]);break;case"m":o.multiply(t,t,e[1]);break;default:return!1}})),t}},function(t,e,n){var r=n(254);t.exports=r},function(t,e,n){var r=n(255),i=n(618);r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),o=r.direction(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=r},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e){t.exports=parseInt},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-5;return Math.abs(t-e)<n}},function(t,e,n){var r=n(46),i=n(605);t.exports=function(t){var e=[];return r(t,(function(t){i(e,t)||e.push(t)})),e}},function(t,e,n){var r=n(118),i=Array.prototype.splice;t.exports=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var a=void 0,c=e[n];n!==o&&c===a||(a=c,i.call(t,c,1))}return t}},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,o=n.slice;t.exports=function(t){for(var e=o.call(arguments,1),n=0;n<e.length;n++)for(var a=e[n],c=-1;(c=i.call(t,a))>-1;)r.call(t,c,1);return t}},function(t,e,n){var r=n(46),i=n(84),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r(t,(function(n,r){i(t)&&"prototype"===r||e.push(r)})),e};t.exports=o},function(t,e,n){var r=n(677),i=n(237);t.exports=function(t,e){var n=r(e),o=n.length;if(i(t))return!o;for(var a=0;a<o;a+=1){var c=n[a];if(e[c]!==t[c]||!(c in t))return!1}return!0}},function(t,e){t.exports=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in o||(e="*");var n=o[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},function(t,e,n){var r=n(257),i={isBetween:function(t,e,n){return t>=e&&t<=n},getLineIntersect:function(t,e,n,r){var o=n.x-t.x,a=n.y-t.y,c=e.x-t.x,u=e.y-t.y,s=r.x-n.x,f=r.y-n.y,l=c*f-u*s,h=null;if(l*l>.001*(c*c+u*u)*(s*s+f*f)){var d=(o*f-a*s)/l,p=(o*u-a*c)/l;i.isBetween(d,0,1)&&i.isBetween(p,0,1)&&(h={x:t.x+d*c,y:t.y+d*u})}return h},getIntersectPointRect:function(t,e){var n=t.minX,r=t.minY,o=t.maxX-t.minX,a=t.maxY-t.minY,c=[],u={x:n+o/2,y:r+a/2};c.push({x:n,y:r}),c.push({x:n+o,y:r}),c.push({x:n+o,y:r+a}),c.push({x:n,y:r+a}),c.push({x:n,y:r});for(var s=null,f=1;f<c.length&&!(s=i.getLineIntersect(c[f-1],c[f],u,e));f++);return s},getIntersectPointCircle:function(t,e,n,r,i){if(Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))<i)return null;var o=t-n,a=e-r,c=Math.sign(o),u=Math.sign(a),s=Math.atan(a/o);return{x:n+Math.abs(i*Math.cos(s))*c,y:r+Math.abs(i*Math.sin(s))*u}},applyMatrix:function(t,e,n){void 0===n&&(n=1);var i=[t.x,t.y,n];return r.vec3.transformMat3(i,i,e),{x:i[0],y:i[1]}},invertMatrix:function(t,e,n){void 0===n&&(n=1);var i=r.mat3.invert([],e),o=[t.x,t.y,n];return r.vec3.transformMat3(o,o,i),{x:o[0],y:o[1]}},radixSort:function(t,e){var n,r,i,o,a,c,u,s=10,f=1,l=[],h=1;for(i=0;i<t.length;i++)n=e(t[i]),r=(n=parseInt(n,10)).toString().length,n.toString().length>h&&(h=r);for(i=0;i<h;i++,f*=10,s*=10){for(o=0;o<t.length;o++)a=e(t[o]),void 0===l[a=parseInt(a%s/f,10)]&&(l[a]=[]),l[a].push(t[o]);for(c=0,o=0;o<l.length;o++)if(u=void 0,void 0!==l[o])for(u=l[o].shift();void 0!==u;)t[c++]=u,u=l[o].shift()}return t},getArcOfVectors:function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y,a=Math.sqrt(n*n+r*r),c=Math.sqrt(i*i+o*o);return Math.acos((n*i+r*o)/(a*c))}};t.exports=r.mix({},r,i)},function(t,e,n){var r=n(258);r.registerShapeManager("node",{defaultShapeType:"common"}),r.registerShapeManager("edge",{defaultShapeType:"common"}),r.registerShapeManager("group",{defaultShapeType:"common"}),r.registerShapeManager("guide",{defaultShapeType:"common"}),n(724),n(721),n(719),n(717),t.exports=r},function(t,e,n){var r=n(247),i=n(609),o=n(26);setTimeout((function(){var t=r.track;if(r.track){var e=new Image,n={pg:document.URL,r:(new Date).getTime(),g6:!0,version:i,page_type:"syslog"};o.isObject(t)&&o.mix(n,t);var a=encodeURIComponent(JSON.stringify([n]));e.src="https://kcart.alipay.com/web/bi.do?BIProfile=merge&d="+a}}),2e3)},function(t,e,n){var r=n(598),i=function(t){function e(e){var n;return(n=t.call(this,e)||this).layout=r.mindmap,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(597));t.exports=i},function(t,e,n){var r=n(598),i=function(t){function e(e){var n;return(n=t.call(this,e)||this).layout=r.indented,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(597));t.exports=i},function(t,e,n){var r=n(598),i=function(t){function e(e){var n;return(n=t.call(this,e)||this).layout=r.dendrogram,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(597));t.exports=i},function(t,e,n){var r=n(598),i=function(t){function e(e){var n;return(n=t.call(this,e)||this).layout=r.compactBox,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(597));t.exports=i},function(t,e,n){var r=n(26),i=n(625),o=n(623),a=function(t){function e(e){var n=r.mix({layout:new o.CompactBoxTree({getHGap:function(){return 10},getVGap:function(){return 10}}),_type:"tree"},e);return t.call(this,n)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.initEvent=function(){var t=this;this.on("afterdrawinner",(function(){t.get("_sourceData").roots.forEach((function(e){var n=t.find(e.id);t._setVisibleByCollapsed(n)}))}))},n._executeLayout=function(t){var e=this.get("_sourceData");r.isFunction(t)?t(e.roots,this):r.isObject(t)&&(t.roots=e.roots,t.graph=this,t.execute())},n.getHierarchy=function(t){t=this.getItem(t);for(var e=this.get("_dataMap"),n=t.getModel().parent,r=1;n;)n=e[n].parent,r++;return r},n.parseSource=function(t){var e=t.roots,n=this.get("_dataMap"),i=[],o=[];if(!e)throw new Error("please set data.roots!");return e.forEach((function(t){r.traverseTree(t,(function(t,e){t.id||(t.id=r.guid()),e||(e=n[t.parent]),e&&(t.parent=e.id,e.id||(e.id=r.guid()),o.push({source:e.id,target:t.id,id:e.id+"-"+t.id})),i.push(t)}),(function(t){return t.children}),!0)})),{nodes:i,edges:o}},n._setVisibleByCollapsed=function(t){var e=t.getModel();t.collapsedParent?(t.hide(),t.getEdges().forEach((function(t){t.hide()})),t.deepEach((function(t){t.hide(),t.getEdges().forEach((function(t){t.hide()}))}))):e.collapsed?t.deepEach((function(t){t.hide(),t.getEdges().forEach((function(t){t.hide()}))})):t.deepEach((function(t){t.collapsedParent&&(t.hide(),t.getEdges().forEach((function(t){t.hide()})))}))},n.source=function(t){var e=this.parseSource(t);this.emit("beforesource"),this.set("_sourceData",t),this.set("_data",e),this.emit("aftersource")},n._setNodeNth=function(t,e){var n=(t=this.getItem(t)).getModel(),i=t.getParent().getModel().children;r.Array.remove(i,n),i.splice(e,0,n)},n.getNth=function(t){var e=(t=this.getItem(t)).getModel();return t.getParent().getModel().children.indexOf(e)},n.add=function(t,e){var n,i=this.get("_dataMap")[e.parent],o={action:"add",model:e};if("node"===t||"guide"===t){if(this.emit("beforechange",o),"node"===t){if(!i)throw new Error("please set available parent Id !");r.isArray(i.children)?i.children.push(e):i.children=[e];var a=this.parseSource({roots:[e]});this._addItems("node",a.nodes),this._addItems("edge",a.edges),n=this.find(e.id),this._setVisibleByCollapsed(n),r.isNil(e.nth)||this._setNodeNth(n,e.nth),this.find(i.id).forceUpdate()}else this._addItems(t,[e]),n=this.find(e.id);return o.item=n,this.emit("afterchange",o),n}console.warn("Tree do not support add type "+t+"!")},n.update=function(t,e){var n=this;if(e){var i=(t=this.getItem(t)).getModel(),o=r.mix({},i),a={action:"update",item:t,originModel:o,updateModel:e};if(this.emit("beforechange",a),this._updateItems([t],[e]),t.isNode){if("collapsed"in e&&(e.collapsed?t.deepEach((function(t){t.hide(),t.getEdges().forEach((function(t){t.hide()}))})):t.deepEach((function(t){t.show(),t.getInEdges().forEach((function(t){t.show()}))}),(function(t){return t.model.collapsed?null:t.getChildren()}))),e.parent&&e.parent!==o.parent){var c=this.find(o.parent).getModel(),u=this.find(e.parent).getModel(),s=this.find(c.id+"-"+o.id),f={id:u.id+"-"+o.id,source:u.id,target:o.id};r.Array.remove(c.children,i),u.children?u.children.push(i):u.children=[i],this._removeItems([s]),this._addItems("edge",[f]),this.find(u.id).forceUpdate()}r.isArray(e.children)&&(o.children&&r.each(o.children,(function(t){var e=n.find(t.id),r=[e];e.getEdges().forEach((function(t){r.push(t)})),n._removeItems(r)})),r.each(e.children,(function(t){var e=n.parseSource({roots:[t]}),i=r.isNil(t.id)?r.guid():t.id;n._addItems("node",e.nodes),n._addItems("edge",e.edges),!t.parent&&n._addItems("edge",[{id:o.id+"-"+i,source:o.id,target:i}])}))),r.isNil(e.nth)||this._setNodeNth(t,e.nth);var l=this.find(i.parent);l&&l.forceUpdate()}return this.emit("afterchange",a),this}},n.remove=function(t){var e=this.get("_dataMap"),n=[];if((t=this.getItem(t))&&!t.destroyed){var i={action:"remove",item:t};if(this.emit("beforechange",i),n.push(t),"node"===t.type){t.getEdges().forEach((function(t){n.push(t)}));var o=t.getModel(),a=e[o.parent];t.deepEach((function(t){n.push(t),t.getEdges().forEach((function(t){n.push(t)}))})),r.Array.remove(a.children,o),this.find(a.id).forceUpdate()}return this._removeItems(r.uniq(n)),this.emit("afterchange",i),this}},n.getRoots=function(){var t=this;return this.getSource().roots.map((function(e){return t.find(e.id)}))},n.save=function(){var t={roots:r.clone(this.getSource().roots),guides:this.getGuides().map((function(t){return t.getModel()}))};return 0===t.roots.length&&delete t.roots,0===t.guides.length&&delete t.guides,t},e}(i);t.exports=a},function(t,e,n){var r=n(26),i={INIT:"_initForceFit"};i.AUGMENT={_initForceFit:function(){var t=this.get("width"),e=this.get("height");return t||e?t?e?void 0:(this.forceFit("height"),void this._bindForceEvent("height")):(this.forceFit("width"),void this._bindForceEvent("width")):(this.forceFit(),void this._bindForceEvent())},_bindForceEvent:function(t){var e=this,n=this._getTimer("forceFit"),r=function(){var r=setTimeout((function(){e.forceFit(t)}),200);n&&clearTimeout(n),e._setTimer("forceFit",r)};window.addEventListener("resize",r),this.set("_windowForceResizeEvent",r)},forceFit:function(t){var e=this.get("_containerDOM"),n=this.get("width"),i=this.get("height"),o=r.getHeight(e),a=r.getWidth(e);return"width"===t?(this.changeSize(a,i),this):"height"===t?(this.changeSize(n,o),this):(this.changeSize(a,o),this)}},t.exports=i},function(t,e,n){var r=n(26),i={CFG:{fitView:void 0,fitViewPadding:10,minZoom:.2,maxZoom:10}};i.AUGMENT={getBBox:function(){var t=this.get("_itemGroup"),e=this.get("_itemMap"),n=t.get("children");return n.length>0?(n=n.filter((function(t){var n=e[t.id];return!!n&&!1!==n.getShapeObj().bboxCalculation})),r.getChildrenBBox(n)):{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("height")}},getFitViewPadding:function(){return r.toAllPadding(this.get("fitViewPadding"))},setFitView:function(t){if(!t)return this;if("autoZoom"===t)return this.autoZoom(),this;var e=this.getFitViewPadding(),n=this.get("width"),i=this.get("height"),o=this.getBBox(),a=o.maxX-o.minX,c=o.maxY-o.minY,u={x:0,y:0,width:n,height:i},s=r.getNineBoxPosition(t,u,a,c,e),f=[1,0,0,0,1,0,0,0,1];r.mat3.translate(f,f,[-o.minX+s.x,-o.minY+s.y]),this.updateMatrix(f)},_getZoomRatio:function(t){var e=this.get("maxZoom"),n=this.get("minZoom");return t<n&&(t=n),t>e&&(t=e),t},autoZoom:function(t){var e=this;t||(t=this.getFitViewPadding());var n=this.get("width"),i=this.get("height"),o=this.getBBox(),a=r.getAutoZoomMatrix({minX:0,minY:0,maxX:n,maxY:i},o,t,(function(t){return e._getZoomRatio(t)}));this.updateMatrix(a)},getZoom:function(){return this.getMatrix()[0]},updateMatrix:function(t){var e=this.getMatrix(),n={updateMatrix:t,originMatrix:e},r=e[0]!==t[0];return this.emit("beforeviewportchange",n),r&&this.emit("beforezoom",n),this.setMatrix(t),r&&this.emit("afterzoom",n),this.emit("afterviewportchange",n),this.draw(),this},zoom:function(t,e){if(!r.isNumber(t)){e=this._getZoomRatio(e);var n=this.get("_rootGroup"),i=r.clone(n.getMatrix()),o=i[6]+i[0]*t.x-e*t.x,a=i[7]+i[0]*t.y-e*t.y;return i[6]=0,i[7]=0,i[0]=e,i[4]=e,r.mat3.translate(i,i,[o,a]),this.updateMatrix(i),this}var c=this.get("width"),u=this.get("height");this.zoomByDom({x:c/2,y:u/2},t)},zoomByDom:function(t,e){var n=this.getPoint(t);return this.zoom(n,e),this},translate:function(t,e){var n=this.get("_rootGroup").getMatrix();return r.mat3.translate(n,n,[t,e]),this.updateMatrix(n),this},translateByDom:function(t,e){var n=this.get("_rootGroup").getMatrix()[0];return this.translate(t/n,e/n),this},getMatrix:function(){return this.get("_rootGroup").getMatrix()},setMatrix:function(t){this.get("_rootGroup").setMatrix(t)},getPoint:function(t){return this.getPointByDom(t)},getPointByDom:function(t){var e=this.get("_rootGroup").getMatrix();return r.invertMatrix(t,e)},getPointByCanvas:function(t){var e=this.get("_canvas").get("pixelRatio");return this.getPoint({x:t.x/e,y:t.y/e})},getPointByClient:function(t){var e=this.get("_canvas").getPointByClient(t.x,t.y);return this.getPointByCanvas(e)},getDomPoint:function(t){var e=this.get("_rootGroup").getMatrix();return r.applyMatrix(t,e)},getCanvasPoint:function(t){var e=this.get("_canvas").get("pixelRatio"),n=this.getDomPoint(t);return{x:n.x*e,y:n.y*e}},getClientPoint:function(t){var e=this.getCanvasPoint(t),n=this.get("_canvas").getClientByPoint(e.x,e.y);return{x:n.clientX,y:n.clientY}},focus:function(t){if(r.isString(t)&&(t=this.find(t)),t){var e=t.getCenter();this.focusPoint(e)}return this},focusPoint:function(t){var e=this.get("_rootGroup").getMatrix(),n=this.get("width"),r=this.get("height"),i=-e[6]+n/2-e[0]*t.x,o=-e[7]+r/2-e[0]*t.y;return this.translate(i,o),this},focusPointByDom:function(t){var e=this.getPoint(t);return this.focusPoint(e),this}},t.exports=i},function(t,e){var n={INIT:"_initDraw",AUGMENT:{_initDraw:function(){var t=this,e=this.get("_controllers").animate;["clear","show","hide","change","updatenodeposition"].forEach((function(n){e&&t.on("before"+n,(function(n){var r=t.get("_forcePreventAnimate"),i=n?n.affectedItemIds:void 0;!0!==r&&e&&e.cacheGraph("startCache",i)})),t.on("after"+n,(function(n){var r=n?n.affectedItemIds:void 0,i=t.get("_forcePreventAnimate");if(n&&"changeData"===n.action){var o=t.get("fitView");o&&t.setFitView(o)}!0!==i&&e?(e.cacheGraph("endCache",r),e.run()):t.draw()}))}))},draw:function(){this.get("_canvas").draw()},animateDraw:function(){this.get("_controllers").animate.run()}}};t.exports=n},function(t,e,n){var r=n(247);function i(t,e){var n=t.getGraphicGroup(),i=t.getBBox(),o=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2,c=n.getMatrix()[0];n.transform([["t",-o,-a],["s",.01/c,.01/c],["t",o,a]]),n.animate({transform:[["t",-o,-a],["s",100*c,100*c],["t",o,a]]},r.enterDuration,r.enterEasing,e)}function o(t,e){var n=t.getGraphicGroup(),i=t.getBBox(),o=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2,c=n.getMatrix()[0];n.animate({transform:[["t",-o,-a],["s",.01/c,.01/c],["t",o,a]]},r.leaveDuration,r.leaveEasing,e)}function a(t,e){t.deepEach((function(t){if(t.isShape){var n=t.attr("fillOpacity"),i=t.attr("strokeOpacity");t.attr({fillOpacity:0,strokeOpacity:0}),t.animate({fillOpacity:n,strokeOpacity:i},r.enterDuration,r.enterEasing,e)}}))}function c(t,e){t.deepEach((function(t){var n=t.attr("fillOpacity"),i=t.attr("strokeOpacity");t.isShape&&t.animate({fillOpacity:0,strokeOpacity:0},r.leaveDuration,r.leaveEasing,(function(){t.attr({fillOpacity:n,strokeOpacity:i}),e()}))}))}t.exports={enterScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&i(e)},showScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&i(e)},leaveScaleOut:function(t){var e=t.item,n=t.element,r=t.done;n.isItemContainer&&o(e,(function(){r()}))},hideScaleOut:function(t){var e=t.item,n=t.element,r=t.done;n.isItemContainer&&o(e,(function(){r()}))},enterFadeIn:function(t){var e=t.element,n=t.item;e.isItemContainer&&n.getKeyShape()&&a(e)},showFadeIn:function(t){var e=t.element,n=t.item;e.isItemContainer&&n.getKeyShape()&&a(e)},leaveFadeOut:function(t){var e=t.element,n=t.item,r=t.done;e.isItemContainer&&n.getKeyShape()&&c(e,r)},hideFadeOut:function(t){var e=t.element,n=t.item,r=t.done;e.isItemContainer&&n.getKeyShape()&&c(e,r)}}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(599),o=n(693),a=n(26),c=n(247),u=["matrix","fillStyle","strokeStyle","endArrow","startArrow"],s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{show:"scaleIn",hide:"scaleOut",enter:"scaleIn",leave:"scaleOut",update:function(t){var e=t.element,n=t.endKeyFrame.props;e.animate(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({matrix:n.matrix},n.attrs),c.updateDuration,c.updateEasing)},graph:null,startCache:{},endCache:{},keykeyCache:{}}},n._init=function(){var t=this,e=this.graph,n=this.keykeyCache;e.on("afteritemdraw",(function(e){e.item.getGraphicGroup().deepEach((function(e){n[e.gid]=t._getCache(e)}),!0)}))},n.cacheGraph=function(t,e){var n,r=this,i=this.graph;n=e?e.map((function(t){return i.find(t)})):i.getItems(),this[t]={},n.forEach((function(e){e&&r.cache(e,r[t],t)}))},n._getCache=function(t){var e=this.keykeyCache;if(!a.isObject(t))return e[t];var n={props:{matrix:a.clone(t.getMatrix()),attrs:{}}};if(t.isShape){var r=t.attr();r=a.omit(r,u),n.props.attrs=a.clone(r)}return n},n._getAnimation=function(t,e){var n=this.graph,r=t.shapeObj,i=this[e],c=r[e+"Animation"]||r[e+"Animate"],u=n.get("_"+e+"Animation"),s=c||u||i;return a.isString(s)?o[e+a.upperFirst(s)]:s},n.cache=function(t,e,n){var r=this;t.getGraphicGroup().deepEach((function(i){var o=i.gid,a="startCache"===n?r._getCache(i):r._getCache(i.gid);a.enterAnimate=r._getAnimation(t,"enter"),a.leaveAnimate=r._getAnimation(t,"leave"),a.showAnimate=r._getAnimation(t,"show"),a.hideAnimate=r._getAnimation(t,"hide"),a.updateAnimate=r._getAnimation(t,"update"),a.item=t,a.element=i,a.visible=i.get("visible"),e[o]=a}),!0)},n._compare=function(){var t=this.startCache,e=this.endCache,n=[],r=[],i=[],o=[],c=[];a.each(e,(function(e,r){var a=t[r];a?a.element.get("type")===e.element.get("type")&&(a.visible&&e.visible?i.push(r):a.visible&&!e.visible?o.push(r):!a.visible&&e.visible&&c.push(r)):n.push(r)})),a.each(t,(function(t,n){e[n]||r.push(n)})),this.enterElements=n,this.leaveElements=r,this.updateElements=i,this.hideElements=o,this.showElements=c},n._addTween=function(){var t=this.enterElements,e=this.leaveElements,n=this.updateElements,r=this.hideElements,i=this.showElements,o=this.startCache,c=this.endCache;t.forEach((function(t){var e=c[t],n=e.enterAnimate;n&&n({element:e.element,item:e.item,endKeyFrame:e,startKeyFrame:null,startCache:o,endCache:c,done:function(){}})})),e.forEach((function(t){var e=o[t],n=e.leaveAnimate;if(n){var r=o[t].element;r.isItemContainer&&r.getParent().add(r),n({element:r,item:e.item,endKeyFrame:null,startKeyFrame:e,startCache:o,endCache:c,done:function(){r.isItemContainer&&r.remove()}})}})),n.forEach((function(t){var e=c[t],n=o[t],r=e.element,i=n.element,u=n.props,s=e.props,f=e.updateAnimate;u.attrs&&r.attr(u.attrs),a.isEqual(u.matrix,s.matrix)||r.setMatrix(u.matrix),f({element:r,item:e,endKeyFrame:e,startKeyFrame:n,startCache:o,endCache:c,done:function(){}}),i!==r&&i.remove()})),r.forEach((function(t){var e=c[t],n=o[t],r=e.hideAnimate;r&&(e.element.show(),r({element:e.element,item:e.item,endKeyFrame:e,startKeyFrame:n,startCache:o,endCache:c,done:function(){var t=e.item,n=t.getGraphicGroup();!t.visible&&n.hide()}}))})),i.forEach((function(t){var e=c[t],n=o[t],r=e.showAnimate;r&&r({element:e.element,item:e.item,endKeyFrame:e,startKeyFrame:n,startCache:o,endCache:c,done:function(){}})}))},n.run=function(){this.graph.destroyed||(this._compare(),this._addTween())},e}(i);t.exports=s},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(26),o=n(694),a={INIT:"_initAnimate",CFG:{animate:!1}};a.AUGMENT={_initAnimate:function(){var t=this.get("animate");if(t){var e=this.get("_controllers"),n={graph:this};i.isPlainObject(t)&&(n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},n,t)),e.animate=new o(n)}}},t.exports=a},function(t,e,n){var r=n(26),i={INIT:"_initFilter",CFG:{filters:[]}};i.AUGMENT={_initFilter:function(){var t=this,e=this.get("filters");r.isFunction(e)&&this.set("filters",[e]),this.on("afterchange",(function(n){var r=n.action;e.length>0&&"changeData"===r&&!t.destroyed&&t.filter()}))},addFilter:function(t){return this.get("filters").push(t),t},removeFilter:function(t){var e=this.get("filters");this.set("filters",r.filter(e,t))},filter:function(){this.emit("beforefilter");var t=this.get("filters"),e=this.getItems(),n=this._getFilterItems();t.forEach((function(t){n=n.filter(t)})),e.forEach((function(t){-1===n.indexOf(t)?t.hide():t.show()})),this.draw(),this.emit("afterfilter")},_getFilterItems:function(){return this.getItems().filter((function(t){return!1!==t.getShapeObj().filter}))}},t.exports=i},function(t,e,n){var r=n(26),i=n(626),o={CFG:{modes:{default:[]},mode:"default",_eventCache:{}},INIT:"_initModes"};o.AUGMENT={_initModes:function(){var t=this.get("mode");this.changeMode(t)},changeMode:function(t){var e=this.get("modes");r.isEmpty(e)||r.isEmpty(e[t])||(i.resetMode(e[t],this),this.set("mode",t))},addBehaviour:function(t,e){var n=this.get("modes");e=e||this.get("mode"),r.isEmpty(n[e])&&(n[e]=[]);var o=n[e],a=[].concat(t);return r.each(a,(function(t){-1===o.indexOf(t)&&o.push(t)})),i.resetMode(n[e],this),this},removeBehaviour:function(t){var e=this.get("modes"),n=this.get("mode"),o=e[n];if(!r.isEmpty(o)){var a=[].concat(t);return o=o.filter((function(t){return-1===a.indexOf(t)})),e[n]=o,i.resetMode(o,this),this}},behaviourOn:function(t,e){var n=this._eventCache;n[t]||(n[t]=[]),n[t].push(e),this.on(t,e)},_off:function(){var t=this,e=this._eventCache;r.each(e,(function(e,n){r.each(e,(function(e){t.off(n,e)}))})),this._eventCache={}}},t.exports=o},function(t,e,n){var r=n(599),i=n(26),o={MOUSEMOVE:"mousemove",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",CLICK:"click",DBLCLICK:"dblclick",DRAGSTART:"dragstart",DRAG:"drag",DRAGENTER:"dragenter",DRAGLEAVE:"dragleave",DRAGEND:"dragend",DROP:"drop",CONTEXTMENU:"contextmenu",WHEEL:"wheel",KEYDOWN:"keydown",KEYUP:"keyup",KEYPRESS:"keypress",MOUSEWHEEL:"mousewheel"},a=[o.DBLCLICK,o.MOUSEDOWN,o.MOUSEUP,o.MOUSEENTER,o.MOUSELEAVE,o.MOUSEMOVE,o.CONTEXTMENU,o.WHEEL,o.MOUSEWHEEL],c=[o.KEYDOWN,o.KEYUP,o.KEYPRESS],u=function(t){function e(e){var n;return(n=t.call(this,e)||this)._domEvents=[],n._initEventStates(),n._registerEvents(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initEventStates=function(){this._pressing=!1,this._dragging=!1,this._currentEventObj={},this._dragEventObj={}},n._registerEvents=function(){this._registerMouseEvents(),this._registerKeyboardEvents()},n._registerKeyboardEvents=function(){var t=this.graph,e=t.getKeyboardEventWrapper(),n=this._domEvents,r=t.get("keyboardEnable");i.each(c,(function(o){n.push(i.addEventListener(e,o,(function(e){var n=!0;i.isFunction(r)&&(n=r()),n&&t.emit(o,{domEvent:e})})))}))},n._registerMouseEvents=function(){var t=this,e=this,n=this.graph.getMouseEventWrapper(),r=this._domEvents;i.each(a,(function(a){r.push(i.addEventListener(n,a,(function(n){if(n.type!==o.MOUSEENTER||!n.fromElement||n.fromElement.parentNode&&!function(t,e){for(var n=t.parentNode;n;){if(n.tagName===e)return!0;n=n.parentNode}return!1}(n.fromElement,"foreignObject")){var r=t._currentEventObj;t._oldEventObj=r,t._processEventObj(n);var a=t._currentEventObj;e._simulateEvents(n,r,a),-1!==[o.MOUSELEAVE,o.MOUSEENTER].indexOf(n.type)&&e._triggerEvent("canvas:"+n.type),e._triggerEvent(n.type),n.type===o.MOUSELEAVE&&(t._dragging&&e._triggerEvent(o.DRAGLEAVE,i.mix({},a,{item:null,shape:null,currentItem:t._dragEventObj.item,currentShape:t._dragEventObj.shape})),e._initEventStates())}})))}))},n.destroy=function(){var t=this._domEvents;i.each(t,(function(t){t&&t.remove()})),this._domEvents=null},n._triggerEvent=function(t,e){if(e||(e="mouseleave"===t?this._oldEventObj:this._currentEventObj),"mousedown"===t&&(e.button=this._button),e._type=t,this.emitGraphEvent(t,e),-1===["canvas:"+o.MOUSELEAVE,"canvas:"+o.MOUSEENTER].indexOf(t)){var n=e.shape&&e.shape.eventPreFix;if(-1!==[o.DRAGSTART,o.DRAG,o.DRAGEND].indexOf(t)&&(n=e.currentShape&&e.currentShape.eventPreFix),n){var r=n+":"+t;e._type=r,i.isBoolean(e._isItemChange)?e._isItemChange&&this.emitGraphEvent(r,e):this.emitGraphEvent(r,e)}}},n.emitGraphEvent=function(t,e){this.graph.emit(t,e)},n._getDistanceToPress=function(t){return Math.pow(t.clientX-this._pressX,2)+Math.pow(t.clientY-this._pressY,2)},n._simulateEvents=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=this._dragEventObj.item,a=this._dragEventObj.shape;switch(t.type){case o.MOUSEDOWN:this._pressing=!0,this._button=t.button,this._pressX=t.clientX,this._pressY=t.clientY;break;case o.MOUSEMOVE:if(this._dragging){if(this._triggerEvent(o.DRAG,i.mix({},n,{button:this._button,currentItem:r,currentShape:a})),e.shape!==n.shape){var c=this._isItemChange(e,n);e.shape&&this._triggerEvent(o.DRAGLEAVE,i.mix({},n,{button:this._button,item:e.item,shape:e.shape,toItem:n.item,toShape:n.shape,currentItem:r,currentShape:a,_isItemChange:c})),n.shape&&this._triggerEvent(o.DRAGENTER,i.mix({},n,{button:this._button,currentItem:r,currentShape:a,fromItem:e.item,fromShape:e.shape,_isItemChange:c}))}}else this._pressing&&this._getDistanceToPress(t)>9&&(this._dragging=!0,this._dragEventObj=e,r=this._dragEventObj.item,a=this._dragEventObj.shape,this._triggerEvent(o.DRAGSTART,i.mix({},e,{button:this._button,currentItem:r,currentShape:a})));if(e.shape!==n.shape){var u=this._isItemChange(e,n);e.shape&&this._triggerEvent(o.MOUSELEAVE,i.mix({},n,{item:e.item,shape:e.shape,toItem:n.item,toShape:n.shape,_isItemChange:u})),n.shape&&this._triggerEvent(o.MOUSEENTER,i.mix({},n,{fromtItem:e.item,fromShape:e.shape,_isItemChange:u}))}break;case o.MOUSEUP:!this._dragging&&this._pressing?this._triggerEvent(o.CLICK,i.mix({},n,{button:this._button})):(this._triggerEvent(o.DROP,i.mix({},n,{button:this._button,currentItem:r,currentShape:a})),this._triggerEvent(o.DRAGEND,i.mix({},n,{button:this._button,currentItem:r,currentShape:a}))),this._pressing=!1,this._dragging=!1,this._dragEventObj={};break;default:return}},n._isItemChange=function(t,e){var n=t.shape,r=e.shape,o=n&&r&&(n.get("isItemChange")||r.get("isItemChange"));return o?o(r,n):i.isObject(t.item)&&i.isObject(e.item)?t.item.id!==e.item.id:t.item!==e.item},n._processEventObj=function(t){var e=this.graph.get("_canvas"),n=this._getEventObj(t,e);this._currentEventObj=n},n._parsePoint=function(t,e){return this.graph.getPointByCanvas({x:t,y:e})},n._getEventObj=function(t,e){var n=this.graph,r=t.clientX,i=t.clientY,o=e.getPointByClient(r,i),a=this._parsePoint(o.x,o.y),c=e.getShape(o.x,o.y,t),u=n.getItemByShape(c),s=e.get("pixelRatio");return{item:u,shape:c,x:a.x,y:a.y,domX:o.x/s,domY:o.y/s,domEvent:t}},e}(r);t.exports=u},function(t,e,n){var r={},i=n(698);r.INIT="_initEvents",r.CFG={keyboardEnable:!0},r.AUGMENT={_initEvents:function(){this.get("_controllers").events=new i({graph:this})}},t.exports=r},function(t,e,n){var r=n(26),i={};i.AUGMENT={find:function(t){return this.get("_itemMap")[t]},getNodes:function(){return this.get("_itemMap")._nodes},getEdges:function(){return this.get("_itemMap")._edges},getGroups:function(){return this.get("_itemMap")._groups},getGuides:function(){return this.get("_itemMap")._guides},getItems:function(){var t=this.get("_itemMap"),e=[];return r.each(t,(function(t){t.type&&e.push(t)})),e},getItemByShape:function(t){return t?this.getItem(t.id):null},getItem:function(t){var e=this.get("_itemMap");return r.isObject(t)?t.destroyed&&(t=e[t.id]):t=e[t],t}},t.exports=i},function(t,e,n){var r=n(599),i=n(26),o=["color","shape","size","label","style"],a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._init=function(){var t=this,e={};i.each(o,(function(n){e[n]={},t[n]=function(r){return e[n].input=r,t}})),this.channels=e},n.addChannels=function(t){var e=this.channels;i.each(t,(function(t,n){e[n]={input:t}}))},n.mapping=function(t){var e=this.channels;i.each(e,(function(e,n){i.isFunction(e.input)?t[n]=e.input(t):e.input&&(t[n]=e.input)}))},e}(r);t.exports=a},function(t,e,n){var r=n(701),i={INIT:"_initMapper"};i.AUGMENT={_initMapper:function(){var t=this.get("_controllers");t.nodeMapper=new r({graph:this}),t.edgeMapper=new r({graph:this}),t.groupMapper=new r({graph:this}),t.guideMapper=new r({graph:this})},node:function(t){var e=this._getController("nodeMapper");return t&&e.addChannels(t),e},edge:function(t){var e=this._getController("edgeMapper");return t&&e.addChannels(t),e},group:function(t){var e=this._getController("groupMapper");return t&&e.addChannels(t),this._getController("groupMapper")},guide:function(t){var e=this._getController("guideMapper");return t&&e.addChannels(t),this._getController("guideMapper")}},t.exports=i},function(t,e,n){var r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{graph:null,auto:!0,processor:null}},n._init=function(){var t=this,e=this.graph;e.on("afteritemdraw",(function(t){var e=t.item,n=e.getKeyShape(),r=e.getModel();if(e.isEdge)r.lineWidth=n.attr("lineWidth");else if(e.isNode||e.isGroup){var i=e.getBBox();r.width=i.width,r.height=i.height}})),e.on("afterchange",(function(n){var r=n.action;"once"===t.auto?"changeData"===r&&(e.destroyed||e.preventAnimate((function(){t.layout()}))):t.auto&&!e.destroyed&&e.preventAnimate((function(){t.layout()}))}))},n.changeLayout=function(t){this.processor=t,this.layout()},n.layout=function(){var t=this.graph,e=this.getLayoutProcessor();t.emit("beforelayout");var n=t.getNodes().filter((function(t){return t.isVisible()})).map((function(t){return t.getModel()})),r=t.getEdges().filter((function(t){return t.isVisible()})).map((function(t){return t.getModel()})),i=t.getGroups().filter((function(t){return t.isVisible()})).map((function(t){return t.getModel()}));t._executeLayout(e,n,r,i),t.updateNodePosition(),t.emit("afterlayout")},n.getLayoutProcessor=function(){return this.processor?this.processor:this.processer},e}(n(599));t.exports=r},function(t,e,n){var r=n(26),i=n(703),o={CFG:{layout:void 0},INIT:"_initLayout"};o.AUGMENT={_initLayout:function(){var t=this.get("_controllers"),e=this._getLayoutCfg();e&&(t.layout=new i(r.mix({graph:this},e)))},_getLayoutCfg:function(){var t=this.get("layout");return r.isPlainObject(t)?t:r.isFunction(t)||r.isObject(t)?{processor:t}:null},layout:function(){return this._getController("layout").layout(),this},updateNodePosition:function(t){var e=this.getGuides(),n=[],i=[];return this.emit("beforeupdatenodeposition"),t?(t.forEach((function(t){t.getEdges().forEach((function(t){i.push(t)}));var e=t.getParent();e&&n.push(e)})),i=r.uniq(i),n=r.uniq(n)):(t=this.getNodes(),n=this.getGroups(),i=this.getEdges()),t.forEach((function(t){t.layoutUpdate()})),n.forEach((function(t){t.layoutUpdate()})),i.forEach((function(t){t.layoutUpdate()})),e.forEach((function(t){t.layoutUpdate()})),this.emit("afterupdatenodeposition"),this},changeLayout:function(t){return this._getController("layout").changeLayout(t),this},getLayout:function(){return this._getController("layout").getLayoutProcessor()}},t.exports=o},function(t,e,n){!function(e){"use strict";var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return function(){var t="application/font-woff";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}()[n]||""},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;return c.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=function(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):a("cannot fetch resource: "+t+", status: "+i.status)},i.ontimeout=function(){r?n(r):a("timeout of "+e+"ms occured while fetching resource: "+t)},i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),c.impl.options.imagePlaceholder){var o=c.impl.options.imagePlaceholder.split(/,/);o&&o[1]&&(r=o[1])}function a(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+t++}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,o){return e(t)?Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,o)}))})),r})):Promise.resolve(t)},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),o=function(){return{inlineAll:function e(i){return i instanceof Element?function(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i)},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),a={imagePlaceholder:void 0,cacheBust:!1},c={toSvg:u,toPng:function(t,e){return s(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return s(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return s(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return s(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:o,util:n,inliner:r,options:{}}};function u(t,e){return function(t){void 0===t.imagePlaceholder?c.impl.options.imagePlaceholder=a.imagePlaceholder:c.impl.options.imagePlaceholder=t.imagePlaceholder,void 0===t.cacheBust?c.impl.options.cacheBust=a.cacheBust:c.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return function(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):function(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return f(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}(e,n.asArray(i),r).then((function(){return e}))}(t,r,e)})).then((function(e){return function(t,e){return e instanceof Element?Promise.resolve().then((function(){!function(t,e){t.cssText?e.cssText=t.cssText:function(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}(t,e)}(window.getComputedStyle(t),e.style)})).then((function(){[":before",":after"].forEach((function(r){!function(r){var i=window.getComputedStyle(t,r),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var a=n.uid();e.className=e.className+" "+a;var c=document.createElement("style");c.appendChild(function(t,e,r){var i="."+t+":"+e,o=r.cssText?function(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}(r):function(t){return n.asArray(t).map((function(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")})).join("; ")+";"}(r);return document.createTextNode(i+"{"+o+"}")}(a,r,i)),e.appendChild(c)}}(r)}))})).then((function(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)})).then((function(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))})).then((function(){return e})):e}(t,e)})):Promise.resolve()}(t,e.filter,!0)})).then(l).then(h).then((function(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function s(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function f(t,e,r){return r||!e||e(t)?Promise.resolve(t).then(i).then((function(n){return o(t,n,e)})).then((function(e){return a(t,e)})):Promise.resolve();function i(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)}function o(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):function(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return f(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}(e,n.asArray(i),r).then((function(){return e}))}function a(t,e){return e instanceof Element?Promise.resolve().then((function(){!function(t,e){t.cssText?e.cssText=t.cssText:function(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}(t,e)}(window.getComputedStyle(t),e.style)})).then((function(){[":before",":after"].forEach((function(r){!function(r){var i=window.getComputedStyle(t,r),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var a=n.uid();e.className=e.className+" "+a;var c=document.createElement("style");c.appendChild(function(t,e,r){var i="."+t+":"+e,o=r.cssText?function(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}(r):function(t){return n.asArray(t).map((function(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")})).join("; ")+";"}(r);return document.createTextNode(i+"{"+o+"}")}(a,r,i)),e.appendChild(c)}}(r)}))})).then((function(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)})).then((function(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))})).then((function(){return e})):e}}function l(t){return i.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function h(t){return o.inlineAll(t).then((function(){return t}))}t.exports=c}()},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(26),o=n(248),a=n(705),c=function(){function t(t){this.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({graph:null,width:null,height:null,canvas:null,beforeTransform:function(){},afterTransform:function(){},drawCount:0},t)}var e=t.prototype;return e.getCanvas=function(){var t=this.options,e=t.width,n=t.height,r=t.canvas;if(!r){var a=i.createDOM("<canvas></canvas>");r=new o.Canvas({containerDOM:a,width:e,height:n})}return r.drawCount||(r.drawCount=0),r},e.drawInner=function(t,e){var n=this.options.graph,r=n.getCanvas(),i=n.get("renderer"),o=t.drawCount;if("svg"===i){var c=[];r.deepEach((function(t){"dom"===t.get("type")&&c.push(t)})),c.length>0?c.forEach((function(n){var r=n.get("el");if(r){n.domImageOnload=!1;var i=n.attr("width"),u=n.attr("height");a.toPng(r,{width:i,height:u}).then((function(r){var i=new Image;i.src=r,i.onload=function(){if(o===t.drawCount-1){n.domImage=i,n.domImageOnload=!0;for(var r=0;r<c.length;r++){var a=c[r];if(!a.domImageOnload||a.get("destroyed"))break;a.domImageOnload&&r===c.length-1&&e()}}}}))}})):e()}else e();t.drawCount+=1},e.toCanvas=function(){var t=this.options,e=t.graph,n=t.width,r=t.height,o=t.beforeTransform,a=t.limitRatio,c=t.afterTransform,u=this.getCanvas(),s=e.getBBox(),f=i.clone(e.getMatrix()),l=e.getFitViewPadding(),h=e.getCanvas(),d=i.getAutoZoomMatrix({minX:0,minY:0,maxX:n,maxY:r},s,l,a);return this.drawInner(u,(function(){var t=h.get("children");u.set("children",t),o(d,f),e.setMatrix(d),u.draw(),e.setMatrix(f),c(d,f)})),u.matrix=d,u.get("el")},t}();t.exports=c},function(t,e,n){var r=n(26),i=function(t){function e(e){var n={type:"guide",isGuide:!0,zIndex:4};return r.mix(n,e),t.call(this,n)||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(608));t.exports=i},function(t,e,n){var r=n(26),i=function(t){function e(e){var n={type:"group",isNode:!1,isGroup:!0,zIndex:1};return r.mix(n,e),t.call(this,n)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._beforeDraw=function(){this.deepEach((function(t,e){e&&(t.zIndex=e.zIndex+1),t.updateCollapsedParent(),t.collapsedParent?t.hide():t.show()})),this.getInnerEdges().forEach((function(t){t.linkedItemVisible()?t.show():t.hide()})),t.prototype._beforeDraw.call(this)},n.updatePosition=function(){},n._shouldDraw=function(){return!0},n.getCrossEdges=function(){var t=[],e=this.getInnerEdges();this.deepEach((function(e){t.push(e.id)}));var n=e.filter((function(e){var n=e.getModel();return-1===t.indexOf(n.source)||-1===t.indexOf(n.target)}));return r.uniq(n)},n.getInnerEdges=function(){var t=[];return this.deepEach((function(e){e.getEdges().forEach((function(e){t.push(e)}))})),r.uniq(t)},n.getChildrenBBox=function(){var t=this.getChildren().map((function(t){return t.getGraphicGroup()}));return r.getChildrenBBox(t)},e}(n(624));t.exports=i},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(26),o=function(t){function e(e){var n={type:"edge",isEdge:!0,zIndex:2};return i.mix(n,e),t.call(this,n)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._init=function(){t.prototype._init.call(this)},n._beforeDraw=function(){var e=this.model,n=this.itemMap;i.isObject(e.source)?this.source=e.source:this.source=n[e.source],i.isObject(e.target)?this.target=e.target:this.target=n[e.target],t.prototype._beforeDraw.call(this)},n._afterDraw=function(){this.linkedItemVisible()||this.hide(),this._addArrow(),t.prototype._afterDraw.call(this)},n._addArrow=function(){var t=this.model,e=this.keyShape;if("path"===e.get("type")){var n=this.shapeObj,r=e.attr("endArrow"),i=e.attr("startArrow"),o=t.endArrow||r,a=t.startArrow||i;i&&e.attr("startArrow",!1),r&&e.attr("endArrow",!1),o&&this._drawArrow(n.endArrow,"end"),a&&this._drawArrow(n.startArrow,"start")}},n._drawArrow=function(t,e){var n=t.path,o=t.shorten,a=t.tangent,c=t.ratio,u=t.style;a=a(this),o=o(this),n=n(this),u=u(this),c=c();var s=this.group,f=this.keyShape,l=i.parsePathString(f.attr("path")),h=l[l.length-1],d=l[0],p=f.getPoint(c);if(p&&!isNaN(p.x)){var g=s.addShape("path",{attrs:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({path:n},u)}),v=a[1][0]-a[0][0],m=a[1][1]-a[0][1],y=o/Math.sqrt(v*v+m*m),b=[-v*y,-m*y],x=0,w=Math.atan(v/m);0===m&&v<0?x=Math.PI:v>0&&m>0?x=Math.PI/2-w:v<0&&m<0?x=-Math.PI/2-w:v>=0&&m<0?x=-w-Math.PI/2:v<=0&&m>0&&(x=Math.PI/2-w),g.rotate(x),g.translate(p.x,p.y),"end"===e?(h[h.length-1]=b[1]+p.y,h[h.length-2]=b[0]+p.x):(d[d.length-1]=b[1]+p.y,d[d.length-2]=b[0]+p.x),f.attr("path",l),this[e+"Arrow"]=g}},n._getControlPoints=function(){var t=this.model.controlPoints;return i.isArray(t)?t:[]},n._shouldDraw=function(){return t.prototype._shouldDraw.call(this)&&this.linkedItemVisible()},n._getPoint=function(t){if(t.isItem){var e=t.getBBox();return{x:e.centerX,y:e.centerY}}return{x:t.x,y:t.y}},n.linkedItemVisible=function(){var t=this.source,e=this.target;return i.isPlainObject(t)||i.isPlainObject(e)||t.isVisible()||e.isVisible()||t.collapsedParent!==e.collapsedParent},n.getSource=function(){var t=this.source,e=t.collapsedParent,n=this.itemMap;return e?n[e.id]:t},n.getTarget=function(){var t=this.target,e=t.collapsedParent,n=this.itemMap;return e?n[e.id]:t},n.getPoints=function(){var t=this.getSource(),e=this.getTarget(),n=this.model,r=this._getControlPoints(),o=this._getPoint(t),a=this._getPoint(e),c=[o].concat(r).concat([a]),u=c.length;if(t.isItem){var s=i.isNumber(this.model.sourceAnchor)&&t.id===n.source?this.model.sourceAnchor:c[1],f=t.getLinkPoints(s);c[0]=f[0]}if(e.isItem){var l=i.isNumber(this.model.targetAnchor)&&e.id===n.target?this.model.targetAnchor:c[u-2],h=e.getLinkPoints(l);c[u-1]=h[0]}return c},n.destroy=function(){var e=this.itemMap,n=this.model,r=e[n.source],o=e[n.target];r&&r.isItem&&i.Array.remove(r.edges,this),o&&o.isItem&&i.Array.remove(o.edges,this),t.prototype.destroy.call(this)},e}(n(608));t.exports=o},function(t,e,n){t.exports={Node:n(624),Edge:n(709),Group:n(708),Guide:n(707)}},function(t,e,n){var r;
/*!
 * EventEmitter v5.2.5 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */!function(e){"use strict";function i(){}var o=i.prototype,a=e.EventEmitter;function c(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}o.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},o.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},o.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===c(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=c(i[r],e))&&i[r].splice(n,1);return this},o.off=u("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):a.call(this,r,i));return this},o.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(t,e){var n,r,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},o.trigger=u("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=a,i},void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof window?window:this||{})},function(t,e,n){var r=n(26),i=function(t){!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(n,t);var e=n.prototype;function n(e){var n,i=(n=t.call(this)||this).getDefaultCfg();return n._cfg=r.mix({},i,e),n}return e.getDefaultCfg=function(){return{}},e.get=function(t){return this._cfg[t]},e.set=function(t,e){this._cfg[t]=e},e.destroy=function(){this._cfg={},this.removeAllListeners(),this.destroyed=!0},n}(n(711));t.exports=i},function(t,e,n){var r=n(26),i=n(248),o=function(){};r.augment(o,{drawInner:function(t){var e=r.clone(this.getTotalMatrix()),n=this._attrs,i=n.x,o=n.y,a=n.width,c=n.height;t.setTransform(e[0],e[1],e[3],e[4],e[6],e[7]),t.drawImage(this.domImage,i,o,a,c)}}),r.mixin(i.Dom,[o]),t.exports=o},function(t,e,n){var r=n(26),i=n(248),o=function(){};r.augment(o,{hasClass:function(t){var e=this.get("class");return!(!e||-1===e.indexOf(t))}}),r.mixin(i.Shape,[o]),t.exports=o},function(t,e,n){var r=n(248),i=n(26),o=function(){};i.augment(o,{findByClass:function(t){var e=[];return this.deepEach((function(n){n.hasClass(t)&&e.push(n)})),e},hasClass:function(t){var e=this.get("class");return!(!e||-1===e.indexOf(t))},deepEach:function(t,e){i.traverseTree(this,t,(function(t){return t.get("children")}),e)},sort:function(){var t=this.get("children");this.set("children",i.radixSort(t,(function(t){return t.get("zIndex")})))},sortBy:function(t){var e=this.get("children");this.set("children",i.radixSort(e,t))},clear:function(t){for(var e=this._cfg.children,n=e.length-1;n>=0;n--)e[n].remove(t);return this._cfg.children=[],this}}),i.mixin(r.Group,[o]),t.exports=o},function(t,e,n){n(258).registerGuide("common",{draw:function(){console.warn("do not have this guide, please register one")}})},function(t,e,n){t.exports={common:n(716)}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(258),o=n(26),a=n(247);i.registerGroup("common",{draw:function(t){return t.getModel().collapsed?this.drawCollapsed(t):this.drawExpanded(t)},defaultWidth:184,defaultHeight:40,getLabel:function(t){return t.getModel().label},drawLabel:function(t,e,n){var r=this.getLabel(t);if(r){var i=t.getGraphicGroup(),c=[8,8];e+=c[0],n+=c[1];var u=t.getModel(),s=u.labelOffsetX,f=u.labelOffsetY,l=u.labelRotate;e=s?s+e:e,n=f?f+n:n;var h=o.mix(!0,{},a.labelStyle,{x:e,y:n,textAlign:"left",textBaseline:"top"});o.isObject(r)?o.mix(h,r):h.text=r;var d=i.addShape("text",{class:"label",attrs:h});if(l){var p=d.getBBox(),g=(p.maxX+p.minX)/2,v=(p.maxY+p.minY)/2;d.transform([["t",-g,-v],["r",l,l],["t",g,v]])}}},drawKeyShape:function(t,e){var n=e.x,r=e.y,i=e.width,c=e.height,u=t.getModel(),s=t.getGraphicGroup(),f=o.mix({},a.groupStyle,u.style),l=o.getRectPath(n,r,i,c,f.radius);return t.lastChildrenBox=e,s.addShape("path",{attrs:o.mix({},f,{path:l})})},getChildrenBBox:function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},t.lastChildrenBox),n=t.getModel();if(t.getChildren().length>0){var i=t.getChildrenBBox();e.x=i.minX-a.groupBackgroundPadding[3],e.y=i.minY-a.groupBackgroundPadding[0],e.width=i.maxX-i.minX+a.groupBackgroundPadding[3]+a.groupBackgroundPadding[1],e.height=i.maxY-i.minY+a.groupBackgroundPadding[0]+a.groupBackgroundPadding[2]}else e.width=this.defaultWidth,e.height=this.defaultHeight;return o.isNil(e.x)&&!o.isNil(n.x)&&(e.x=n.x),o.isNil(e.y)&&!o.isNil(n.y)&&(e.y=n.y),e},drawExpanded:function(t){var e=this.getChildrenBBox(t),n=this.drawKeyShape(t,e);return this.drawLabel(t,e.x,e.y),n},drawCollapsed:function(t){var e=this.getChildrenBBox(t);e.width=this.defaultWidth,e.height=this.defaultHeight;var n=this.drawKeyShape(t,e);return this.drawLabel(t,e.x,e.y),n},anchor:{intersectBox:"rect"}})},function(t,e,n){t.exports={common:n(718)}},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(258),a=n(26),c=n(247),u={path:function(t){var e=t.getKeyShape().attr("lineWidth"),n=10*(e=e>3?e:3)/3,r=4*e/3,i=4*e;return[["M",-n,r],["L",0,0],["L",-n,-r],["A",i,i,0,0,1,-n,r],["Z"]]},shorten:function(t){var e=t.getKeyShape().attr("lineWidth");return 3.1*(e>3?e:3)},style:function(t){var e=t.getKeyShape().attr();return{fillOpacity:e.strokeOpacity,fill:e.stroke}}};o.registerEdge("common",{draw:function(t){var e=this.drawKeyShape(t);return this.drawLabel(t,e),e},drawKeyShape:function(t){var e=t.getGraphicGroup(),n=this.getStyle(t),r=this.getPath(t);return e.addShape("path",{attrs:a.mix({},n,{path:r})})},getStyle:function(t){var e=t.getModel();return a.mix(!0,{},{stroke:e.color||"#A3B1BF",strokeOpacity:.92,lineAppendWidth:4,lineWidth:e.size||1},e.style)},getPath:function(t){var e=t.getPoints();return a.pointsToPolygon(e)},getLabel:function(t){return t.getModel().label},getDefaultLabelRectStyle:function(){return{fill:"white"}},getDefaultLabelRectPadding:function(){return a.toAllPadding([4,8])},drawLabel:function(t,e){var n=this.getLabel(t),r=t.getGraphicGroup(),i=t.getModel(),o=i.labelOffsetX,u=i.labelOffsetY,s=i.labelRotate;if(n){var f=e.getPoint(.5);if(!f)return;f.x=o?f.x+o:f.x,f.y=u?f.y+u:f.y;var l=a.mix(!0,{},c.labelStyle,f);a.isObject(n)?a.mix(l,n):l.text=n,n=r.addShape("text",{class:"label",attrs:l});var h=this.getDefaultLabelRectPadding(t),d=this.getDefaultLabelRectStyle(t),p=n.getBBox(),g=i.labelRectStyle?a.mix({},d,i.labelRectStyle):d,v=r.addShape("rect",{attrs:a.mix({},g,{x:p.minX-h[3],y:p.minY-h[0],width:p.maxX-p.minX+h[1]+h[3],height:p.maxY-p.minY+h[0]+h[2]})});if(s){var m=(p.maxX+p.minX)/2,y=(p.maxY+p.minY)/2;n.transform([["t",-m,-y],["r",s,s],["t",m,y]]),v.transform([["t",-m,-y],["r",s,s],["t",m,y]])}a.toFront(n)}},startArrow:r({},u,{tangent:function(t){return t.getKeyShape().getStartTangent()},ratio:function(){return 0}}),endArrow:r({},u,{tangent:function(t){return t.getKeyShape().getEndTangent()},ratio:function(){return 1}})})},function(t,e,n){t.exports={common:n(720)}},function(t,e,n){var r=n(258),i=n(26);r.registerNode("html",{getHtml:function(t){return t.getModel().html},cssSize:!0,draw:function(t){var e=i.createDOM('<div class="g6-html-node-container"></div>'),n=t.getGraphicGroup(),r=t.getGraph();if("svg"!==r.get("renderer"))throw new Error("please use svg renderer draw html element !");var o=r.getGraphContainer(),a=this.getSize(t),c=this.getStyle(t),u=this.cssSize,s=this.getHtml(t);s=i.createDOM(s),e.css({position:"absolute",padding:"0px",margin:"0px"}),e.appendChild(s),o.appendChild(e),u&&(a[0]=e.width(),a[1]=e.height());var f=-a[0]/2,l=-a[1]/2,h=a[0],d=a[1],p=n.addShape("rect",{attrs:i.mix({},c,{x:f,y:l,width:h,height:d})});return n.addShape("dom",{attrs:i.mix({x:f,y:l,width:h,height:d,html:e})}),p}})},function(t,e,n){var r=n(258),i=n(26),o=n(247);r.registerNode("common",{draw:function(t){var e=t.getGraphicGroup(),n=this.drawLabel(t),r=this.drawKeyShape(t);return n&&i.toFront(n,e),r},getSize:function(t){var e=t.getModel().size;return i.isArray(e)?e:i.isNumber(e)?[e,e]:[o.defaultNodeSize,o.defaultNodeSize]},getStyle:function(t){var e=t.getModel();return i.mix(!0,{lineWidth:1,fill:e.color||"#40a9ff",stroke:e.color||"#096dd9",fillOpacity:.92},e.style)},getLabel:function(t){return t.getModel().label},drawKeyShape:function(t){var e=t.getGraphicGroup(),n=this.getStyle(t),r=this.getPath(t);return e.addShape("path",{attrs:i.mix({},n,{path:r})})},drawLabel:function(t){var e=t.getGraphicGroup(),n=this.getLabel(t),r=t.getModel(),a=r.labelOffsetX,c=r.labelOffsetY,u=r.labelRotate;if(!i.isNil(n)){var s=i.mix(!0,{},o.labelStyle,{x:a||0,y:c||0});i.isObject(n)?i.mix(s,n):s.text=n;var f=e.addShape("text",{class:"label",attrs:s});return u&&f.rotate(u),f}},getPath:function(t){var e=this.getSize(t);return i.getEllipsePath(0,0,e[0]/2,e[1]/2)}})},function(t,e,n){t.exports={common:n(723),html:n(722)}},function(t,e,n){var r=n(682),i=n(257),o={getAutoZoomMatrix:function(t,e,n,i){var o=[1,0,0,0,1,0,0,0,1],a=t.maxX-t.minX,c=t.maxY-t.minY,u=(e.maxX+e.minX)/2,s=(e.maxY+e.minY)/2,f=a-n[1]-n[3],l=c-n[0]-n[2],h=e.maxX-e.minX,d=e.maxY-e.minY,p=Math.min(l/d,f/h);return i&&(p=i(p)),r.mat3.translate(o,o,[-u,-s]),r.mat3.scale(o,o,[p,p]),r.mat3.translate(o,o,[a/2,c/2]),o},getNineBoxPosition:function(t,e,n,r,i){var o={};switch(t){case"tl":o.y=e.x+i[0],o.x=e.y+i[3];break;case"lc":o.y=(e.height-r)/2,o.x=i[3];break;case"bl":o.y=e.height-r-i[2],o.x=i[3];break;case"cc":o.y=(e.height-r)/2,o.x=(e.width-n)/2;break;case"tc":o.y=i[0],o.x=(e.width-n)/2;break;case"tr":o.y=i[0],o.x=e.width-n-i[1];break;case"rc":o.y=(e.height-r)/2,o.x=e.width-n-i[1];break;case"br":o.y=e.height-r-i[2],o.x=e.width-n-i[1];break;case"bc":o.y=e.height-r-i[2],o.x=(e.width-n)/2;break;default:o.y=e.x+i[0],o.x=e.y+i[3]}return o.x+=e.x,o.y+=e.y,o},getTotalBBox:function(t){var e=1/0,n=-1/0,r=1/0,i=-1/0;return t.forEach((function(t){t.minX<e&&(e=t.minX),t.maxX>n&&(n=t.maxX),t.minY<r&&(r=t.minY),t.maxY>i&&(i=t.maxY)})),{minX:e,minY:r,maxX:n,maxY:i,width:n-e,height:i-r}},getChildrenBBox:function(t){var e=1/0,n=-1/0,r=1/0,a=-1/0;i.each(t,(function(t){var i=t.isGroup?o.getChildrenBBox(t.get("children")):t.getBBox();if(!i)return!0;var c=[i.minX,i.minY,1],u=[i.minX,i.maxY,1],s=[i.maxX,i.minY,1],f=[i.maxX,i.maxY,1];t.apply(c),t.apply(u),t.apply(s),t.apply(f);var l=Math.min(c[0],u[0],s[0],f[0]),h=Math.max(c[0],u[0],s[0],f[0]),d=Math.min(c[1],u[1],s[1],f[1]),p=Math.max(c[1],u[1],s[1],f[1]);l<e&&(e=l),h>n&&(n=h),d<r&&(r=d),p>a&&(a=p)}));var c={minX:e,minY:r,maxX:n,maxY:a};return c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,c.centerX=(c.minX+c.maxX)/2,c.centerY=(c.minY+c.maxY)/2,c},getBBox:function(t,e){var n,i=t.getBBox(),o={x:i.minX,y:i.minY},a={x:i.maxX,y:i.maxY};if(e.isGroup){for(n=t;n!==e;){var c=n.getMatrix();o=r.applyMatrix(o,c),a=r.applyMatrix(a,c),n=n.getParent()}var u=n.getMatrix();o=r.applyMatrix(o,u),a=r.applyMatrix(a,u)}else o=r.applyMatrix(o,e),a=r.applyMatrix(a,e);return{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y}},toBack:function(t){t.toBack()},toFront:function(t){t.toFront()}};t.exports=o},function(t,e,n){var r=n(257);t.exports={isNode:function(t){return t&&r.isObject(t)&&"node"===t.type},isEdge:function(t){return t&&r.isObject(t)&&"edge"===t.type},isGroup:function(t){return t&&r.isObject(t)&&"group"===t.type}}},function(t,e,n){var r=n(257),i={};r.mix(i,{addEventListener:function(t,e,n){return t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):void 0},createDOM:function(t,e){var n;return(n=r.isString(t)?r.createDom(t):t).bbox=n.getBoundingClientRect(),n.hide=function(){return n.style.visibility="hidden",n},n.show=function(){return n.style.visibility="visible",n},n.css=function(t){return r.modifyCSS(n,t),n},n.width=function(){return r.getWidth(n)},n.height=function(){return r.getHeight(n)},n.destroy=function(){n.parentNode&&n.parentNode.removeChild(n)},n.on=function(t,e){n.addEventListener(t,e)},n.off=function(t,e){n.removeEventListener(t,e)},n.css(e),n},initDOMContainer:function(t,e){if(!t)throw new Error("please set the container for the "+e+" !");return r.isString(t)&&(t=document.getElementById(t)),t}}),t.exports=i},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement;if(!n[i.tagName]){for(var o=i.parentNode;o&&!n[o.tagName];)o=o.parentNode;i=o}return this._cfg.el===i?this:this.find((function(t){return t._cfg&&t._cfg.el===i}))}},function(t,e,n){var r=n(19),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=document.createElementNS("http://www.w3.org/2000/svg","image");e.appendChild(n);var o=r.uniqueId("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var a=i.exec(t)[2];n.setAttribute("href",a);var c=new Image;function u(){console.log(c.width,c.height),e.setAttribute("width",c.width),e.setAttribute("height",c.height)}return a.match(/^data:/i)||(c.crossOrigin="Anonymous"),c.src=a,c.complete?u():(c.onload=u,c.src=c.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=o},function(t,e,n){var r=n(19),i=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},function(t,e,n){var r=n(19),i=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("stroke","none"),o.setAttribute("fill",t.stroke||"#000"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=i,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,o):this._setMarker(t.lineWidth,o),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,i=this.cfg.path,o=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),o&&n.setAttribute("refX",o/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},function(t,e,n){var r=n(19),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},o={x:"-40%",y:"-40%",width:"200%",height:"200%"},a=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return r.each(o,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},e.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){var n='<feDropShadow \n      dx="'+(t.dx||0)+'" \n      dy="'+(t.dy||0)+'" \n      stdDeviation="'+(t.blur?t.blur/10:0)+'"\n      flood-color="'+(t.color?t.color:"#000")+'"\n      flood-opacity="'+(t.opacity?t.opacity:1)+'"\n      />';e.innerHTML=n},t}();t.exports=a},function(t,e,n){var r=n(19),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(t){var e=t.match(a);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),r.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var u=function(){function t(t){var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,o,a=i.exec(t),u=r.mod(r.toRadian(parseFloat(a[1])),2*Math.PI),s=a[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},o={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},o={x:0,y:0}):(n={x:0,y:1},o={x:1,y:0});var f=Math.tan(u),l=f*f,h=(o.x-n.x+f*(o.y-n.y))/(l+1)+n.x,d=f*(o.x-n.x+f*(o.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",h),e.setAttribute("y2",d),e.innerHTML=c(s)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(t,e){var n=o.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),a=parseFloat(n[3]),u=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",a),e.innerHTML=c(u)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=u},function(t,e,n){var r=n(19),i=n(733),o=n(732),a=n(731),c=n(730),u=n(729),s=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},e.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},e.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},e.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new a(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},e.addGradient=function(t){var e=new i(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addArrow=function(t,e){var n=new a(t,e);return this.el.appendChild(n.el),n.id},e.addShadow=function(t){var e=new o(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addClip=function(t){var e=new c(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=s},function(t,e,n){var r=n(19),i=n(593).parseRadius,o=n(611),a=n(734),c={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},u={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},s={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},f={left:"left",start:"left",center:"middle",right:"end",end:"end"},l=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<svg id="'+e+'"></svg>');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new a(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()}));try{e._drawChildren(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e.toDraw=!1}e.toDraw=!1}()},e.drawSync=function(t){this._drawChildren(t)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(n.tobeRemoved&&(r.each(n.tobeRemoved,(function(t){t.parentNode&&t.parentNode.removeChild(t)})),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t))},e._drawChildren=function(t){var e,n=t._cfg.children;if(n)for(var r=0;r<n.length;r++)(e=n[r]).isGroup?this._drawGroup(e,r):this._drawShape(e,r)},e._drawShape=function(t,e){var n=t._attrs,r=t._cfg,i=r.el;r.removed||r.destroyed?i&&i.parentNode.removeChild(r.el):(!i&&r.parent&&(this._createDom(t,e),this._updateShape(t)),i=r.el,!1!==r.visible?(r.visible&&i.hasAttribute("visibility")&&i.removeAttribute("visibility"),r.hasUpdate&&this._updateShape(t),n.clip&&n.clip._cfg.hasUpdate&&this._updateShape(n.clip)):i.setAttribute("visibility","hidden"))},e._updateShape=function(t){var e=t._attrs,n=t._cfg.attrs;if(n)if(t._cfg.el||this._createDom(t),"clip"in e&&this._setClip(t,e.clip),("shadowOffsetX"in e||"shadowOffsetY"in e||"shadowBlur"in e||"shadowColor"in e)&&this._setShadow(t),"text"!==t.type){for(var i in"fan"===t.type&&this._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",this._assembleMarker(e)),"rect"===t.type&&t._cfg.el.setAttribute("d",this._assembleRect(e)),e)e[i]!==n[i]&&this._setAttribute(t,i,e[i]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else this._updateText(t)},e._setAttribute=function(t,e,n){var i=t.type,o=t._attrs,a=t._cfg.el,c=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))a.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=(n=n.map((function(t){return t[0]+","+t[1]}))).join(" ")),void a.setAttribute("points",n);if("path"===e&&r.isArray(n))a.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void a.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void a.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=u[e],n){var s=null;s="boolean"==typeof n?c.getDefaultArrow(o,e):c.addArrow(o,e),a.setAttribute(e,"url(#"+s+")"),t._cfg[e]=s}else t._cfg[e]=null,a.removeAttribute(e);else"html"===e&&("string"==typeof n?a.innerHTML=n:(a.innerHTML="",a.appendChild(n))),u[e]&&a.setAttribute(u[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},e._createDom=function(t,e){var n=c[t.type],r=t._attrs,i=t._cfg.parent,o=i._cfg.el;if(!n)throw new Error("the type"+t.type+"is not supported by svg");var a=document.createElementNS("http://www.w3.org/2000/svg",n);if(t._cfg.el=a,i)if(void 0===e)o.appendChild(a);else{var u=i._cfg.el.childNodes;"svg"===o.tagName&&(e+=1),u.length<=e?o.appendChild(a):o.insertBefore(a,u[e])}return t._cfg.attrs={},"text"===t.type?(a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(r.stroke||r.strokeStyle||a.setAttribute("stroke","none"),r.fill||r.fillStyle||a.setAttribute("fill","none")),a},e._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):o.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map((function(t){return t.join(" ")})).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,o=t.width,a=t.height,c=t.radius;if(!c)return"M "+e+","+n+" l "+o+",0 l 0,"+a+" l"+-o+" 0 z";var u=i(c);return r.isArray(c)?1===c.length?u.r1=u.r2=u.r3=u.r4=c[0]:2===c.length?(u.r1=u.r3=c[0],u.r2=u.r4=c[1]):3===c.length?(u.r1=c[0],u.r2=u.r4=c[1],u.r3=c[2]):(u.r1=c[0],u.r2=c[1],u.r3=c[2],u.r4=c[3]):u.r1=u.r2=u.r3=u.r4=c,[["M "+(e+u.r1)+","+n],["l "+(o-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(a-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-o)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-a)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},e._formatPath=function(t){return~(t=t.map((function(t){return t.join(" ")})).join("")).indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var o=document.createElement("canvas");o.setAttribute("width",e.width),o.setAttribute("height",e.height),o.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",o.toDataURL())}},e._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,i=t._cfg,o={x:n.x,y:n.y},a=[],c=n.startAngle,u=n.endAngle;r.isNumberEqual(u-c,2*Math.PI)&&(u-=1e-5);var s=e(c,n.re,o),f=e(u,n.re,o),l=u>c?1:0,h=Math.abs(u-c)>Math.PI?1:0,d=n.rs,p=n.re,g=e(c,n.rs,o),v=e(u,n.rs,o);n.rs>0?(a.push("M "+f.x+","+f.y),a.push("L "+v.x+","+v.y),a.push("A "+d+","+d+",0,"+h+","+(1===l?0:1)+","+g.x+","+g.y),a.push("L "+s.x+" "+s.y)):(a.push("M "+o.x+","+o.y),a.push("L "+s.x+","+s.y)),a.push("A "+p+","+p+",0,"+h+","+l+","+f.x+","+f.y),n.rs>0?a.push("L "+v.x+","+v.y):a.push("Z"),i.el.setAttribute("d",a.join(" "))},e._updateText=function(t){var e=t._attrs,n=t._cfg.attrs,r=t._cfg.el;for(var i in this._setFont(t),e)if(e[i]!==n[i]){if("text"===i){this._setText(t,""+e[i]);continue}if("fillStyle"===i||"strokeStyle"===i){this._setColor(t,i,e[i]);continue}if("matrix"===i){this._setTransform(t);continue}u[i]&&r.setAttribute(u[i],e[i])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",s[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",f[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var o=t._attrs.x,a=e.split("\n"),c=a.length-1,u="";r.each(a,(function(t,e){0===e?"alphabetic"===i?u+='<tspan x="'+o+'" dy="'+-c+'em">'+t+"</tspan>":"top"===i?u+='<tspan x="'+o+'" dy="0.9em">'+t+"</tspan>":"middle"===i?u+='<tspan x="'+o+'" dy="'+-(c-1)/2+'em">'+t+"</tspan>":"bottom"===i?u+='<tspan x="'+o+'" dy="-'+(c+.3)+'em">'+t+"</tspan>":"hanging"===i&&(u+='<tspan x="'+o+'" dy="'+(-(c-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+o+'" dy="1em">'+t+"</tspan>"})),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var o=i.find("gradient",n);o||(o=i.addGradient(n)),r.setAttribute(u[e],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var a=i.find("pattern",n);a||(a=i.addPattern(n)),r.setAttribute(u[e],"url(#"+a+")")}else r.setAttribute(u[e],n);else r.setAttribute(u[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}();t.exports=l},function(t,e,n){t.exports={painter:n(735),getShape:n(728)}},function(t,e,n){var r=n(19),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,c=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function f(t,e){var n=t.match(s);r.each(n,(function(t){t=t.split(":"),e.addColorStop(t[0],t[1])}))}t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if((e=e.match(o))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var i,o,c=a.exec(t),u=r.mod(r.toRadian(parseFloat(c[1])),2*Math.PI),s=c[2],l=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:l.minX,y:l.minY},o={x:l.maxX,y:l.maxY}):.5*Math.PI<=u&&u<Math.PI?(i={x:l.maxX,y:l.minY},o={x:l.minX,y:l.maxY}):Math.PI<=u&&u<1.5*Math.PI?(i={x:l.maxX,y:l.maxY},o={x:l.minX,y:l.minY}):(i={x:l.minX,y:l.maxY},o={x:l.maxX,y:l.minY});var h=Math.tan(u),d=h*h,p=(o.x-i.x+h*(o.y-i.y))/(d+1)+i.x,g=h*(o.x-i.x+h*(o.y-i.y))/(d+1)+i.y,v=n.createLinearGradient(i.x,i.y,p,g);return f(s,v),v}(t,e,n);if("r"===t[0])return function(t,e,n){var r=c.exec(t),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),u=r[4];if(0===a){var l=u.match(s);return l[l.length-1].split(":")[1]}var h=e.getBBox(),d=h.maxX-h.minX,p=h.maxY-h.minY,g=Math.sqrt(d*d+p*p)/2,v=n.createRadialGradient(h.minX+d*i,h.minY+p*o,a*g,h.minX+d/2,h.minY+p/2,g);return f(u,v),v}(t,e,n);if("p"===t[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var r,i,o=u.exec(t),a=o[1],c=o[2];function s(){r=n.createPattern(i,a),e.setSilent("pattern",r),e.setSilent("patternSource",t)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;case"n":a="no-repeat";break;default:a="no-repeat"}return i=new Image,c.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=c,i.complete?s():(i.onload=s,i.src=i.src),r}(t,e,n)}return t}}}},function(t,e,n){var r=n(19),i=n(737),o=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],a=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('<canvas id="'+e+'"></canvas>');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function n(){e.animateHandler=r.requestAnimationFrame((function(){e.animateHandler=void 0,e.toDraw&&n()})),e.beforeDraw();try{e._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e.toDraw=!1}e.toDraw=!1}()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,n=null;this.setContext(t);for(var r=0;r<e.length;r++)n=e[r],e[r].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(t)}},e._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},e.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},e.restoreContext=function(){this.context.restore()},e.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var a in n)if(o.indexOf(a)>-1){var c=n[a];"fillStyle"===a&&(c=i.parseStyle(c,t,e)),"strokeStyle"===a&&(c=i.parseStyle(c,t,e)),"lineDash"===a&&e.setLineDash?r.isArray(c)?e.setLineDash(c):r.isString(c)&&e.setLineDash(c.split(" ")):e[a]=c}},t}();t.exports=a},function(t,e,n){t.exports={painter:n(738)}},function(t,e,n){t.exports={canvas:n(739),svg:n(736)}},function(t,e,n){var r=n(19),i=n(610),o=n(17),a=n(44),c=n(238),u=c.interpolate,s=c.interpolateArray,f=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};function l(t,e,n){var o,c=e.startTime;if(n<c+e.delay||e.isPaused)return!1;var f=e.duration,l=e.easing;if(n=n-c-e.delay,e.toAttrs.repeat)o=n%f/f,o=a[l](o);else{if(!((o=n/f)<1))return t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;o=a[l](o)}return function(t,e,n){var o={},a=e.toAttrs,c=e.fromAttrs,f=e.toMatrix;if(!t.get("destroyed")){var l;for(var h in a)if(!r.isEqual(c[h],a[h]))if("path"===h){var d=a[h],p=c[h];d.length>p.length?(d=i.parsePathString(a[h]),p=i.parsePathString(c[h]),p=i.fillPathByDiff(p,d),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=i.parsePathString(a[h]),p=i.parsePathString(c[h]),p=i.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),o[h]=[];for(var g=0;g<d.length;g++){for(var v=d[g],m=p[g],y=[],b=0;b<v.length;b++)r.isNumber(v[b])&&m&&r.isNumber(m[b])?(l=u(m[b],v[b]),y.push(l(n))):y.push(v[b]);o[h].push(y)}}else l=u(c[h],a[h]),o[h]=l(n);if(f){var x=s(e.fromMatrix,f)(n);t.setMatrix(x)}t.attr(o)}}(t,e,o),!1}r.augment(f,{initTimer:function(){var t,e,n,r=this,i=this;i._timer=o.timer((function(o){if(i._current=o,r._animators.length>0){for(var a=r._animators.length-1;a>=0;a--)if((t=r._animators[a]).get("destroyed"))i.removeAnimator(a);else{if(!t.get("pause").isPaused)for(var c=(e=t.get("animators")).length-1;c>=0;c--)n=e[c],l(t,n,o)&&(e.splice(c,1),n.callback&&n.callback());0===e.length&&i.removeAnimator(a)}r.canvas.draw()}}))},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach((function(t){t.stopAnimate()})),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=f},function(t,e,n){var r=n(19),i=n(613),o={arc:n(602),ellipse:n(639),line:n(603)},a=r.createDom('<canvas width="500" height="500"></canvas>').getContext("2d");function c(t,e,n){return n.createPath(a),a.isPointInPath(t,e)}var u={arc:function(t,e){var n=this._attrs,r=n.x,o=n.y,a=n.r,c=n.startAngle,u=n.endAngle,s=n.clockwise,f=this.getHitLineWidth();return!!this.hasStroke()&&i.arcline(r,o,a,c,u,s,f,t,e)},circle:function(t,e){var n=this._attrs,r=n.x,o=n.y,a=n.r,c=this.getHitLineWidth(),u=this.hasFill(),s=this.hasStroke();return u&&s?i.circle(r,o,a,t,e)||i.arcline(r,o,a,0,2*Math.PI,!1,c,t,e):u?i.circle(r,o,a,t,e):!!s&&i.arcline(r,o,a,0,2*Math.PI,!1,c,t,e)},dom:function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return i.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},ellipse:function(t,e){var n=this._attrs,o=this.hasFill(),a=this.hasStroke(),c=n.x,u=n.y,s=n.rx,f=n.ry,l=this.getHitLineWidth(),h=s>f?s:f,d=s>f?1:s/f,p=s>f?f/s:1,g=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[d,p]),r.mat3.translate(v,v,[c,u]);var m=r.mat3.invert([],v);return r.vec3.transformMat3(g,g,m),o&&a?i.circle(0,0,h,g[0],g[1])||i.arcline(0,0,h,0,2*Math.PI,!1,l,g[0],g[1]):o?i.circle(0,0,h,g[0],g[1]):!!a&&i.arcline(0,0,h,0,2*Math.PI,!1,l,g[0],g[1])},fan:function(t,e){var n=this,a=n.hasFill(),c=n.hasStroke(),u=n._attrs,s=u.x,f=u.y,l=u.rs,h=u.re,d=u.startAngle,p=u.endAngle,g=u.clockwise,v=[t-s,e-f],m=r.vec2.angleTo([1,0],v);function y(){var t=o.arc.nearAngle(m,d,p,g);if(r.isNumberEqual(m,t)){var e=r.vec2.squaredLength(v);if(l*l<=e&&e<=h*h)return!0}return!1}function b(){var r=n.getHitLineWidth(),o={x:Math.cos(d)*l+s,y:Math.sin(d)*l+f},a={x:Math.cos(d)*h+s,y:Math.sin(d)*h+f},c={x:Math.cos(p)*l+s,y:Math.sin(p)*l+f},u={x:Math.cos(p)*h+s,y:Math.sin(p)*h+f};return!!(i.line(o.x,o.y,a.x,a.y,r,t,e)||i.line(c.x,c.y,u.x,u.y,r,t,e)||i.arcline(s,f,l,d,p,g,r,t,e)||i.arcline(s,f,h,d,p,g,r,t,e))}return a&&c?y()||b():a?y():!!c&&b()},image:function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,o=n.y,a=n.width,c=n.height;return i.rect(r,o,a,c,t,e)},line:function(t,e){var n=this._attrs,r=n.x1,o=n.y1,a=n.x2,c=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&i.line(r,o,a,c,u,t,e)},path:function(t,e){var n=this,i=n.get("segments"),o=n.hasFill(),a=n.hasStroke();function u(){if(!r.isEmpty(i)){for(var o=n.getHitLineWidth(),a=0,c=i.length;a<c;a++)if(i[a].isInside(t,e,o))return!0;return!1}}return o&&a?c(t,e,n)||u():o?c(t,e,n):!!a&&u()},marker:function(t,e){var n=this._attrs,r=n.x,o=n.y,a=n.radius||n.r,c=this.getHitLineWidth();return i.circle(r,o,a+c/2,t,e)},polygon:function(t,e){var n=this,r=n.hasFill(),o=n.hasStroke();function a(){var r=n._attrs.points;if(r.length<2)return!1;var o=n.getHitLineWidth(),a=r.slice(0);return r.length>=3&&a.push(r[0]),i.polyline(a,o,t,e)}return r&&o?c(t,e,n)||a():r?c(t,e,n):!!o&&a()},polyline:function(t,e){var n=this._attrs;if(this.hasStroke()){var r=n.points;if(r.length<2)return!1;var o=n.lineWidth;return i.polyline(r,o,t,e)}return!1},rect:function(t,e){var n=this,r=n.hasFill(),o=n.hasStroke();function a(){var r=n._attrs,o=r.x,a=r.y,c=r.width,u=r.height,s=r.radius,f=n.getHitLineWidth();if(0===s){var l=f/2;return i.line(o-l,a,o+c+l,a,f,t,e)||i.line(o+c,a-l,o+c,a+u+l,f,t,e)||i.line(o+c+l,a+u,o-l,a+u,f,t,e)||i.line(o,a+u+l,o,a-l,f,t,e)}return i.line(o+s,a,o+c-s,a,f,t,e)||i.line(o+c,a+s,o+c,a+u-s,f,t,e)||i.line(o+c-s,a+u,o+s,a+u,f,t,e)||i.line(o,a+u-s,o,a+s,f,t,e)||i.arcline(o+c-s,a+s,s,1.5*Math.PI,2*Math.PI,!1,f,t,e)||i.arcline(o+c-s,a+u-s,s,0,.5*Math.PI,!1,f,t,e)||i.arcline(o+s,a+u-s,s,.5*Math.PI,Math.PI,!1,f,t,e)||i.arcline(o+s,a+s,s,Math.PI,1.5*Math.PI,!1,f,t,e)}return r&&o?c(t,e,n)||a():r?c(t,e,n):!!o&&a()},text:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return i.box(n.minX,n.maxX,n.minY,n.maxY,t,e)}};t.exports={isPointInPath:function(t,e){var n=u[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){var r=n(58);r.Arc=n(638),r.Circle=n(637),r.Dom=n(636),r.Ellipse=n(635),r.Fan=n(634),r.Image=n(633),r.Line=n(632),r.Marker=n(611),r.Path=n(631),r.Polygon=n(630),r.Polyline=n(629),r.Rect=n(628),r.Text=n(627),t.exports=r},function(t,e,n){var r=n(19),i={delay:"delay",rotate:"rotate"},o={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};t.exports={animate:function(t,e,n,a,c){void 0===c&&(c=0),this.set("animating",!0);var u=this.get("timeline");u||(u=this.get("canvas").get("timeline"),this.setSilent("timeline",u));var s=this.get("animators")||[];u._timer||u.initTimer(),r.isNumber(a)&&(c=a,a=null),r.isFunction(n)?(a=n,n="easeLinear"):n=n||"easeLinear";var f=function(t,e){var n={matrix:null,attrs:{}},a=e._attrs;for(var c in t)if("transform"===c)n.matrix=r.transform(e.getMatrix(),t[c]);else if("rotate"===c)n.matrix=r.transform(e.getMatrix(),[["r",t[c]]]);else if("matrix"===c)n.matrix=t[c];else{if(o[c]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[c]))continue;i[c]||a[c]===t[c]||(n.attrs[c]=t[c])}return n}(t,this),l={fromAttrs:function(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}(f,this),toAttrs:f.attrs,fromMatrix:r.clone(this.getMatrix()),toMatrix:f.matrix,duration:e,easing:n,callback:a,delay:c,startTime:u.getTime(),id:r.uniqueId()};s.length>0?s=function(t,e){var n=e.delay,i=Object.prototype.hasOwnProperty;return r.each(e.toAttrs,(function(e,o){r.each(t,(function(t){n<t.startTime+t.duration&&i.call(t.toAttrs,o)&&(delete t.toAttrs[o],delete t.fromAttrs[o])}))})),e.toMatrix&&r.each(t,(function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix})),t}(s,l):u.addAnimator(this),s.push(l),this.setSilent("animators",s),this.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");r.each(e,(function(e){t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()})),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),this},resumeAnimate:function(){var t=this.get("timeline").getTime(),e=this.get("animators"),n=this.get("pause").pauseTime;return r.each(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null})),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",e),this}}},function(t,e,n){var r=n(19);function i(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function o(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){i(e)||(o(e)?(t[0]*=e[0],t[4]*=e[4]):r.mat3.multiply(t,t,e))}t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return r.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return r.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return r.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return r.each(t,(function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",r.mat3.multiply([],n,t[1])),e.clearTotalMatrix()}})),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),r.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var i=[1,0,0,0,1,0,0,0,1];return r.each(n,(function(t){r.mat3.multiply(i,t.attr("matrix"),i)})),i},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;e&&a(t,e.getTotalMatrix()),a(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(o(e))t[0]/=e[0],t[1]/=e[4];else{var n=r.mat3.invert([],e);n&&r.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var r=n(19);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){if(0===arguments.length)return this._attrs;if(r.isObject(t)){for(var n in t)this._setAttr(n,t[n]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return 2===arguments.length?(this._setAttr(t,e),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[t]},_setAttr:function(t,e){var n=this._attrs;n[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?this._setClip(e):"path"===t&&this._afterSetAttrPath?this._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&this.rotateAtStart(e):this.transform(e):n.globalAlpha=e:n[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){var r=n(19),i=n(643),o=n(642),a=n(741),c=n(740),u=function t(e){t.superclass.constructor.call(this,e)};u.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},r.extend(u,o),r.augment(u,{init:function(){u.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var o=new i(t,e,!0,!0);return o.x=n.x,o.y=n.y,o.clientX=e.clientX,o.clientY=e.clientY,o.currentTarget=r,o.target=r,o},_triggerEvent:function(t,e){var n,r=this.getPointByClient(e.clientX,e.clientY),i=this.getShape(r.x,r.y,e),o=this.get("el");if("mousemove"===t){var a=this.get("preShape");if(a&&a!==i){var c=this._getEventObj("mouseleave",e,r,a);(n=this.getEmitter(a,e))&&n.emit("mouseleave",c),o.style.cursor="default"}if(i){var u=this._getEventObj("mousemove",e,r,i);if((n=this.getEmitter(i,e))&&n.emit("mousemove",u),a!==i){var s=this._getEventObj("mouseenter",e,r,i);n&&n.emit("mouseenter",s,e)}}else{var f=this._getEventObj("mousemove",e,r,this);this.emit("mousemove",f)}this.set("preShape",i)}else{var l=this._getEventObj(t,e,r,i||this);(n=this.getEmitter(i,e))&&n!==this&&n.emit(t,l),this.emit(t,l)}i&&!i.get("destroyed")&&(o.style.cursor=i.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el");r.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],(function(n){e.addEventListener(n,(function(e){t._triggerEvent(n,e)}),!1)})),e.addEventListener("touchstart",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])}),!1),e.addEventListener("touchmove",(function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])}),!1),e.addEventListener("touchend",(function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])}),!1)},_scale:function(){if("svg"!==this._cfg.renderType){var t=this.get("pixelRatio");this.scale(t,t)}},_setGlobalParam:function(){var t=this.get("renderer")||"canvas";"svg"===t?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",r.getRatio()),this._cfg.renderType=t;var e=c[t];this._cfg.renderer=e,this._cfg.canvas=this;var n=new a(this);this._cfg.timeline=n},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el").getBoundingClientRect(),r=this.get("pixelRatio")||1;return{clientX:t/r+n.left,clientY:e/r+n.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):u.superclass.getShape.call(this,t,e)},getRenderer:function(){return this._cfg.renderType},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){var r=n(248),i={};n(257).mix(i,r.PathUtil,{getRectPath:r.PathUtil.rectPath,pointsToPolygon:function(t){for(var e=[["M",t[0].x,t[0].y]],n=1;n<t.length;n++){var r=t[n];e.push(["L",r.x,r.y])}return e},getEllipsePath:function(t,e,n,r){return[["M",t,e-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]]}}),t.exports=i},function(t,e,n){var r=n(645),i=n(16),o="Expected a function";t.exports=function(t,e,n){var a=!0,c=!0;if("function"!=typeof t)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,c="trailing"in n?!!n.trailing:c),r(t,e,{leading:a,maxWait:e,trailing:c})}},function(t,e){t.exports=function(t,e,n){var r=void 0,i=void 0,o=void 0,a=void 0,c=0;n||(n={});var u=function(){c=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},s=function(){var s=Date.now();c||!1!==n.leading||(c=s);var f=e-(s-c);return i=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),c=s,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,f)),a};return s.cancel=function(){clearTimeout(r),c=0,r=i=o=null},s}},function(t,e,n){var r=n(46),i=n(596),o=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(null===t||!i(t))return{};var n={};return r(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){var r=n(46),i=n(118);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,(function(t,r){n.push(e(t,r))})),n}},function(t,e,n){var r=n(84),i=n(614);t.exports=function(t,e,n){return r(n)?!!n(t,e):i(t,e)}},function(t,e,n){var r=n(118);t.exports=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i}},function(t,e,n){var r=n(649);t.exports=function(t,e){if(!e)return[t];var n=r(t,e),i=[];for(var o in n)i.push(n[o]);return i}},function(t,e){t.exports=function(t,e,n){var r=void 0;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(i,o)}),e),a&&t.apply(i,o)}}},function(t,e,n){var r=n(115);t.exports=function(t){return r(t,"Error")}},function(t,e,n){var r=n(115);t.exports=function(t){return r(t,"Arguments")}},function(t,e,n){var r=n(115);t.exports=function(t){return r(t,"Date")}},function(t,e,n){var r=n(115);t.exports=function(t){return r(t,"RegExp")}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e){t.exports=function(t){return null===t}},function(t,e,n){var r=n(115),i={getType:n(654),isArray:n(45),isArrayLike:n(118),isBoolean:n(653),isFunction:n(84),isNil:n(237),isNull:n(762),isNumber:n(236),isObject:n(621),isObjectLike:n(619),isPlainObject:n(596),isPrototype:n(652),isType:r,isUndefined:n(761),isString:n(595),isRegExp:n(760),isDate:n(759),isArguments:n(758),isError:n(757)};t.exports=i},function(t,e,n){t.exports=n(656)},function(t,e){t.exports=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){var r=n(594);t.exports=function(t){var e=r(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){t.exports=n(657)},function(t,e,n){var r={lc:n(767),lowerCase:n(657),lowerFirst:n(766),substitute:n(765),uc:n(764),upperCase:n(656),upperFirst:n(655)};t.exports=r},function(t,e){function n(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function r(t,e,r){for(var i=[].concat(t),o=void 0,a=1/(r+1),c=n(e)[0],u=1;u<=r;u++)a*=u,0===(o=Math.floor(t.length*a))?i.unshift([c[0]*a+t[o][0]*(1-a),c[1]*a+t[o][1]*(1-a)]):i.splice(o,0,[c[0]*a+t[o][0]*(1-a),c[1]*a+t[o][1]*(1-a)]);return i}t.exports=function(t,e){if(t.length<=1)return t;for(var i=void 0,o=0;o<e.length;o++)if(t[o][0]!==e[o][0])switch(i=n(t[o]),e[o][0]){case"M":t[o]=["M"].concat(i[0]);break;case"L":t[o]=["L"].concat(i[0]);break;case"A":t[o]=[].concat(e[o]),t[o][6]=i[0][0],t[o][7]=i[0][1];break;case"Q":if(i.length<2){if(!(o>0)){t[o]=e[o];break}i=r(i,t[o-1],1)}t[o]=["Q"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[o]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(o>0)){t[o]=e[o];break}i=r(i,t[o-1],2)}t[o]=["C"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(i.length<2){if(!(o>0)){t[o]=e[o];break}i=r(i,t[o-1],1)}t[o]=["S"].concat(i.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[o]=e[o]}return t}},function(t,e,n){var r=n(46);t.exports=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n}},function(t,e,n){var r=n(770);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}t.exports=function(t,e){var n=function(t,e){var n=t.length,o=e.length,a=void 0,c=void 0,u=0;if(0===n||0===o)return null;for(var s=[],f=0;f<=n;f++)s[f]=[],s[f][0]={min:f};for(var l=0;l<=o;l++)s[0][l]={min:l};for(var h=1;h<=n;h++){a=t[h-1];for(var d=1;d<=o;d++){c=e[d-1],u=r(a,c)?0:1;var p=s[h-1][d].min+1,g=s[h][d-1].min+1,v=s[h-1][d-1].min+u;s[h][d]=i(p,g,v)}}return s}(t,e),o=t.length,a=e.length,c=[],u=1,s=1;if(n[o][a]!==o){for(var f=1;f<=o;f++){var l=n[f][f].min;s=f;for(var h=u;h<=a;h++)n[f][h].min<l&&(l=n[f][h].min,s=h);u=s,n[f][u].type&&c.push({index:f-1,type:n[f][u].type})}for(var d=c.length-1;d>=0;d--)u=c[d].index,"add"===c[d].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((o=t.length)<a)for(var p=0;p<a-o;p++)"z"===t[o-1][0]||"Z"===t[o-1][0]?t.splice(o-2,0,t[o-2]):t.push(t[o-1]);return t}},function(t,e){function n(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}function r(t,e,r){if(1===r)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,r){var i=[[t[1],t[2]]];r=r||2;var o=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var a=i,c=1/r,u=0;u<r-1;u++){var s=n(a,c/(1-c*u));o.push(s.left),a=s.right}return o.push(a),o.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,r));else{var o=[].concat(t);"M"===o[0]&&(o[0]="L");for(var a=0;a<=r-1;a++)i.push(o)}return i}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,o=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var c=0;c<i-n;c++)t.push(t[0]);return t}for(var u=0;u<i;u++){var s=Math.floor(o*u);a[s]=(a[s]||0)+1}var f=a.reduce((function(e,i,o){return o===n?e.concat(t[n]):e.concat(r(t[o],t[o+1],i))}),[]);return f.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||f.push("Z"),f}},function(t,e,n){var r=n(45),i=n(663),o=n(661),a=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},c=function(t,e,n,r,i,o,c,u,s){null===s&&(s=1);for(var f=(s=s>1?1:s<0?0:s)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<12;p++){var g=f*l[p]+f,v=a(g,t,n,i,c),m=a(g,e,r,o,u),y=v*v+m*m;d+=h[p]*Math.sqrt(y)}return f*d},u=function(t,e,n,r,i,o,a,c){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,c)||Math.min(e,r)>Math.max(o,c))){var u=(t-n)*(o-c)-(e-r)*(i-a);if(u){var s=((t*r-e*n)*(i-a)-(t-n)*(i*c-o*a))/u,f=((t*r-e*n)*(o-c)-(e-r)*(i*c-o*a))/u,l=+s.toFixed(2),h=+f.toFixed(2);if(!(l<+Math.min(t,n).toFixed(2)||l>+Math.max(t,n).toFixed(2)||l<+Math.min(i,a).toFixed(2)||l>+Math.max(i,a).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(o,c).toFixed(2)||h>+Math.max(o,c).toFixed(2)))return{x:s,y:f}}}},s=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},f=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:i(t,e,n,r),vb:[t,e,n,r].join(" ")}},l=function(t,e,n,i,o,a,c,u){r(t)||(t=[t,e,n,i,o,a,c,u]);var s=function(t,e,n,r,i,o,a,c){for(var u=[],s=[[],[]],f=void 0,l=void 0,h=void 0,d=void 0,p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,f=-3*t+9*n-9*i+3*a,h=3*n-3*t):(l=6*e-12*r+6*o,f=-3*e+9*r-9*o+3*c,h=3*r-3*e),Math.abs(f)<1e-12){if(Math.abs(l)<1e-12)continue;(d=-h/l)>0&&d<1&&u.push(d)}else{var g=l*l-4*h*f,v=Math.sqrt(g);if(!(g<0)){var m=(-l+v)/(2*f);m>0&&m<1&&u.push(m);var y=(-l-v)/(2*f);y>0&&y<1&&u.push(y)}}for(var b=u.length,x=b,w=void 0;b--;)w=1-(d=u[b]),s[0][b]=w*w*w*t+3*w*w*d*n+3*w*d*d*i+d*d*d*a,s[1][b]=w*w*w*e+3*w*w*d*r+3*w*d*d*o+d*d*d*c;return s[0][x]=t,s[1][x]=e,s[0][x+1]=a,s[1][x+1]=c,s[0].length=s[1].length=x+2,{min:{x:Math.min.apply(0,s[0]),y:Math.min.apply(0,s[1])},max:{x:Math.max.apply(0,s[0]),y:Math.max.apply(0,s[1])}}}.apply(null,t);return f(s.min.x,s.min.y,s.max.x-s.min.x,s.max.y-s.min.y)},h=function(t,e,n,r,i,o,a,c,u){var s=1-u,f=Math.pow(s,3),l=Math.pow(s,2),h=u*u,d=h*u,p=t+2*u*(n-t)+h*(i-2*n+t),g=e+2*u*(r-e)+h*(o-2*r+e),v=n+2*u*(i-n)+h*(a-2*i+n),m=r+2*u*(o-r)+h*(c-2*o+r);return{x:f*t+3*l*u*n+3*s*u*u*i+d*a,y:f*e+3*l*u*r+3*s*u*u*o+d*c,m:{x:p,y:g},n:{x:v,y:m},start:{x:s*t+u*n,y:s*e+u*r},end:{x:s*i+u*a,y:s*o+u*c},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},d=function(t,e,n){if(!function(t,e){return t=f(t),e=f(e),s(e,t.x,t.y)||s(e,t.x2,t.y)||s(e,t.x,t.y2)||s(e,t.x2,t.y2)||s(t,e.x,e.y)||s(t,e.x2,e.y)||s(t,e.x,e.y2)||s(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(l(t),l(e)))return n?0:[];for(var r=~~(c.apply(0,t)/8),i=~~(c.apply(0,e)/8),o=[],a=[],d={},p=n?0:[],g=0;g<r+1;g++){var v=h.apply(0,t.concat(g/r));o.push({x:v.x,y:v.y,t:g/r})}for(var m=0;m<i+1;m++){var y=h.apply(0,e.concat(m/i));a.push({x:y.x,y:y.y,t:m/i})}for(var b=0;b<r;b++)for(var x=0;x<i;x++){var w=o[b],_=o[b+1],S=a[x],M=a[x+1],P=Math.abs(_.x-w.x)<.001?"y":"x",O=Math.abs(M.x-S.x)<.001?"y":"x",E=u(w.x,w.y,_.x,_.y,S.x,S.y,M.x,M.y);if(E){if(d[E.x.toFixed(4)]===E.y.toFixed(4))continue;d[E.x.toFixed(4)]=E.y.toFixed(4);var A=w.t+Math.abs((E[P]-w[P])/(_[P]-w[P]))*(_.t-w.t),C=S.t+Math.abs((E[O]-S[O])/(M[O]-S[O]))*(M.t-S.t);A>=0&&A<=1&&C>=0&&C<=1&&(n?p++:p.push({x:E.x,y:E.y,t1:A,t2:C}))}}return p};t.exports=function(t,e){return function(t,e,n){t=o(t),e=o(e);for(var r=void 0,i=void 0,a=void 0,c=void 0,u=void 0,s=void 0,f=void 0,l=void 0,h=void 0,p=void 0,g=n?0:[],v=0,m=t.length;v<m;v++){var y=t[v];if("M"===y[0])r=u=y[1],i=s=y[2];else{"C"===y[0]?(r=(h=[r,i].concat(y.slice(1)))[6],i=h[7]):(h=[r,i,r,i,u,s,u,s],r=u,i=s);for(var b=0,x=e.length;b<x;b++){var w=e[b];if("M"===w[0])a=f=w[1],c=l=w[2];else{"C"===w[0]?(a=(p=[a,c].concat(w.slice(1)))[6],c=p[7]):(p=[a,c,a,c,f,l,f,l],a=f,c=l);var _=d(h,p,n);if(n)g+=_;else{for(var S=0,M=_.length;S<M;S++)_[S].segment1=v,_[S].segment2=b,_[S].bez1=h,_[S].bez2=p;g=g.concat(_)}}}}}return g}(t,e)}},function(t,e,n){var r=n(773),i=n(660),o=n(661),a=n(658);t.exports={catmullRom2Bezier:a,catmullRomToBezier:a,fillPath:n(772),fillPathByDiff:n(771),formatPath:n(769),intersection:r,pathIntersection:r,parsePathArray:n(662),parsePathString:n(659),pathToAbsolute:i,path2absolute:i,pathTocurve:o,path2curve:o,rectPath:n(663)}},function(t,e,n){var r=n(605),i=n(664);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){t.exports=n(665)},function(t,e,n){t.exports=n(46)},function(t,e,n){t.exports={forIn:n(777),has:n(665),hasKey:n(776),hasValue:n(775),keys:n(677),isMatch:n(678),values:n(664)}},function(t,e,n){t.exports={mat3:n(617),vec2:n(668),vec3:n(667),transform:n(666)}},function(t,e,n){var r=n(45),i=n(84),o=n(46);t.exports=function(t,e){if(r(t)){var n=t[0],a=void 0;a=i(e)?e(t[0]):t[0][e];var c=void 0;return o(t,(function(t){(c=i(e)?e(t):t[e])<a&&(n=t,a=c)})),n}}},function(t,e,n){var r=n(45),i=n(84),o=n(46);t.exports=function(t,e){if(r(t)){var n=t[0],a=void 0;a=i(e)?e(t[0]):t[0][e];var c=void 0;return o(t,(function(t){(c=i(e)?e(t):t[e])>a&&(n=t,a=c)})),n}}},function(t,e,n){var r=n(236);t.exports=function(t){return r(t)&&t>0}},function(t,e,n){var r=n(236);t.exports=function(t){return r(t)&&t%2!=0}},function(t,e,n){var r=n(236);t.exports=function(t){return r(t)&&t<0}},function(t,e,n){var r=n(236),i=Number.isInteger?Number.isInteger:function(t){return r(t)&&t%1==0};t.exports=i},function(t,e,n){var r=n(236);t.exports=function(t){return r(t)&&t%2==0}},function(t,e,n){var r=n(236);t.exports=function(t){return r(t)&&t%1!=0}},function(t,e){t.exports=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){var r=n(673);t.exports={clamp:n(618),fixedBase:n(788),isDecimal:n(787),isEven:n(786),isInteger:n(785),isNegative:n(784),isNumberEqual:r,isOdd:n(783),isPositive:n(782),maxBy:n(781),minBy:n(780),mod:n(672),snapEqual:r,toDegree:n(671),toInt:n(670),toInteger:n(670),toRadian:n(669)}},function(t,e,n){var r=n(45);t.exports=function(t){var e=0,n=0,i=0,o=0;return r(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}},function(t,e,n){var r=n(45),i=n(595),o=n(46),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,c=/[^\s\,]+/gi;t.exports=function(t){return r(t=t||[])?t:i(t)?(t=t.match(a),o(t,(function(e,n){if((e=e.match(c))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}o(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e){var n={};t.exports=function(t){var e=n[t];if(!e){for(var r=t.toString(16),i=r.length;i<6;i++)r="0"+r;e="#"+r,n[t]=e}return e}},function(t,e,n){var r=n(792);t.exports={number2color:r,numberToColor:r,parsePath:n(791),parseRadius:n(790)}},function(t,e){t.exports=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e){t.exports=function(t,e){return t["_wrap_"+e]}},function(t,e,n){t.exports={getWrapBehavior:n(795),wrapBehavior:n(794)}},function(t,e,n){var r=n(237),i=n(45),o=n(46);t.exports=function(t,e){for(var n=[],a={},c=0;c<t.length;c++){var u=t[c][e];r(u)||(i(u)||(u=[u]),o(u,(function(t){a[t]||(n.push(t),a[t]=!0)})))}return n}},function(t,e,n){var r=n(46),i=n(604),o=n(674);t.exports=function(){var t=[],e=i(arguments);return r(e,(function(e){t=t.concat(e)})),o(t)}},function(t,e,n){var r=n(595),i=n(84),o=n(45);t.exports=function(t,e){var n=void 0;if(i(e))n=function(t,n){return e(t)-e(n)};else{var a=[];r(e)?a.push(e):o(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}},function(t,e,n){var r=n(118),i=n(675);t.exports=function(t,e){var n=[];if(!r(t))return n;for(var o=-1,a=[],c=t.length;++o<c;){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return i(t,a),n}},function(t,e,n){var r=n(45),i=n(596),o=n(46);t.exports=function(t,e,n){if(!r(t)&&!i(t))return t;var a=n;return o(t,(function(t,n){a=e(a,t,n)})),a}},function(t,e){t.exports=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){var r=n(620),i=n(45);t.exports=function(t){if(!(t=r(t,(function(t){return!isNaN(t)}))).length)return{min:0,max:0};if(i(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var o=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:o}}},function(t,e,n){var r=n(45);t.exports=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){var r=n(45),i=n(46);t.exports=function(t){if(!r(t))return t;var e=[];return i(t,(function(t){r(t)?i(t,(function(t){e.push(t)})):e.push(t)})),e}},function(t,e,n){var r=n(237),i=n(45);t.exports=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o][e];if(!r(a)){n=i(a)?a[0]:a;break}}return n}},function(t,e,n){var r=n(84),i=n(596),o=n(678);t.exports=function(t,e){var n=void 0;if(r(e)&&(n=e),i(e)&&(n=function(t){return o(t,e)}),n)for(var a=0;a<t.length;a+=1)if(n(t[a]))return t[a];return null}},function(t,e,n){var r=n(620),i=n(605);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r(t,(function(t){return!i(e,t)}))}},function(t,e,n){t.exports={contains:n(605),difference:n(808),find:n(807),firstValue:n(806),flatten:n(805),flattenDeep:n(804),getRange:n(803),merge:n(802),pull:n(676),pullAt:n(675),reduce:n(801),remove:n(800),sortBy:n(799),union:n(798),uniq:n(674),valuesOfKey:n(797)}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){var r=n(237);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r(n)?null:n}}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,o=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+i+o}},function(t,e){t.exports=function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,o=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+i+o}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e){t.exports=function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return e||null}},function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e,n){t.exports={addEventListener:n(817),createDom:n(681),getBoundingClientRect:n(816),getHeight:n(815),getOuterHeight:n(814),getOuterWidth:n(813),getRatio:n(812),getStyle:n(811),getWidth:n(810),modifyCSS:n(680),requestAnimationFrame:n(679)}},function(t,e,n){var r=n(46),i=n(606),o=n(818),a=n(809),c=n(796),u=n(793),s=n(789),f=n(779),l=n(778),h=n(774),d=n(768),p=n(763),g={DOMUtil:o,DomUtil:o,MatrixUtil:f,PathUtil:h,arrayUtil:a,domUtil:o,eventUtil:c,formatUtil:u,mathUtil:s,matrixUtil:f,objectUtil:l,stringUtil:d,pathUtil:h,typeUtil:p,augment:n(651),clone:n(616),debounce:n(756),deepMix:n(615),each:r,extend:n(650),filter:n(620),group:n(755),groupBy:n(648),groupToMap:n(649),indexOf:n(754),isEmpty:n(647),isEqual:n(614),isEqualWith:n(753),map:n(752),mix:i,pick:n(751),throttle:n(750),toArray:n(604),toString:n(594),uniqueId:n(646)};r([o,a,c,u,s,f,l,h,d,p],(function(t){i(g,t)})),t.exports=g},function(t,e,n){var r=n(683),i=n(626),o=n(247),a=n(609),c=n(248),u={Graph:n(625),Tree:n(689),Util:n(26),Layouts:n(623),G:c,Plugins:{},Components:{},Global:o,Shape:r,registerNode:r.registerNode,registerEdge:r.registerEdge,registerGroup:r.registerGroup,registerGuide:r.registerGuide,registerBehaviour:i.registerBehaviour,version:a,track:function(t){o.track=t}};n(684),t.exports=u}])}))},"087d":function(t,e){function n(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}t.exports=n},"09e1":function(t,e,n){t.exports=n("d339")},"0b07":function(t,e,n){var r=n("34ac"),i=n("3698");function o(t,e){var n=i(t,e);return r(n)?n:void 0}t.exports=o},"0b11":function(t,e,n){t.exports=n("2f74")},"0b7b":function(t,e,n){var r=n("8f95"),i=n("7463"),o=n("0363"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"0c82":function(t,e,n){var r=n("9bfb");r("asyncDispose")},"0cf0":function(t,e,n){var r=n("b323"),i=n("9e57"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d24":function(t,e,n){(function(t){var r=n("2b3e"),i=n("07c7"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,c=a&&a.exports===o,u=c?r.Buffer:void 0,s=u?u.isBuffer:void 0,f=s||i;t.exports=f}).call(this,n("62e4")(t))},"0e67":function(t,e,n){var r=n("9bfb");r("iterator")},"100e":function(t,e,n){var r=n("cd9d"),i=n("2286"),o=n("c1c9");function a(t,e){return o(i(t,e,r),t+"")}t.exports=a},"126d":function(t,e,n){var r=n("6da8"),i=n("aaec"),o=n("d094");function a(t){return i(t)?o(t):r(t)}t.exports=a},1290:function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},1310:function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},1316:function(t,e,n){t.exports=n("9cd3")},1368:function(t,e,n){var r=n("da03"),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function o(t){return!!i&&i in t}t.exports=o},1561:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"159a":function(t,e,n){var r=n("32b3"),i=n("e2e4"),o=n("c098"),a=n("1a8c"),c=n("f4d6");function u(t,e,n,u){if(!a(t))return t;e=i(e,t);var s=-1,f=e.length,l=f-1,h=t;while(null!=h&&++s<f){var d=c(e[s]),p=n;if(s!=l){var g=h[d];p=u?u(g,d,h):void 0,void 0===p&&(p=a(g)?g:o(e[s+1])?[]:{})}r(h,d,p),h=h[d]}return t}t.exports=u},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var c in i){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==o)try{a(s,"forEach",o)}catch(f){s.forEach=o}}},"15f3":function(t,e,n){var r=n("89d9"),i=n("8604");function o(t,e){return r(t,e,(function(e,n){return i(t,n)}))}t.exports=o},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("b301");t.exports=i("forEach")?function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach},1875:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"18d8":function(t,e,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},"194a":function(t,e,n){var r=n("cc94");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1a8c":function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0a":function(t,e,n){"use strict";var r=n("8f95"),i=n("0363"),o=i("toStringTag"),a={};a[o]="z",t.exports="[object z]"!==String(a)?function(){return"[object "+r(this)+"]"}:a.toString},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c29":function(t,e,n){n("fc93"),n("6f89"),n("8b7b"),n("e363"),n("64db"),n("22a9"),n("9080"),n("0e67"),n("e699"),n("e7cc"),n("2e85"),n("980e"),n("9ac4"),n("274e"),n("8d05"),n("ef09"),n("aa1b"),n("8176"),n("522d");var r=n("764b");t.exports=r.Symbol},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){o=!0}};c[i]=function(){return this},Array.from(c,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("60ae"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1e63":function(t,e,n){var r=n("06fa");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"1efc":function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},"1fc8":function(t,e,n){var r=n("4245");function i(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}t.exports=i},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("f8c2"),c=n("35a1"),u=n("9bdd"),s=function(t,e){this.stopped=t,this.result=e},f=t.exports=function(t,e,n,f,l){var h,d,p,g,v,m,y,b=a(e,n,f?2:1);if(l)h=t;else{if(d=c(t),"function"!=typeof d)throw TypeError("Target is not iterable");if(i(d)){for(p=0,g=o(t.length);g>p;p++)if(v=f?b(r(y=t[p])[0],y[1]):b(t[p]),v&&v instanceof s)return v;return new s(!1)}h=d.call(t)}m=h.next;while(!(y=m.call(h)).done)if(v=u(h,b,y.value,f),"object"==typeof v&&v&&v instanceof s)return v;return new s(!1)};f.stop=function(t){return new s(!0,t)}},2286:function(t,e,n){var r=n("85e3"),i=Math.max;function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){var o=arguments,a=-1,c=i(o.length-e,0),u=Array(c);while(++a<c)u[a]=o[e+a];a=-1;var s=Array(e+1);while(++a<e)s[a]=o[a];return s[e]=n(u),r(t,this,s)}}t.exports=o},"22a9":function(t,e,n){var r=n("9bfb");r("hasInstance")},"234d":function(t,e,n){var r=n("e380"),i=500;function o(t){var e=r(t,(function(t){return n.size===i&&n.clear(),t})),n=e.cache;return e}t.exports=o},2364:function(t,e,n){n("0e67"),n("3e47"),n("5145");var r=n("fbcc");t.exports=r.f("iterator")},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),c=n("ce4e"),u=n("e893"),s=n("94ca");t.exports=function(t,e){var n,f,l,h,d,p,g=t.target,v=t.global,m=t.stat;if(f=v?r:m?r[g]||c(g,{}):(r[g]||{}).prototype,f)for(l in e){if(d=e[l],t.noTargetGet?(p=i(f,l),h=p&&p.value):h=f[l],n=s(v?l:g+(m?".":"#")+l,t.forced),!n&&void 0!==h){if(typeof d===typeof h)continue;u(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(f,l,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2474:function(t,e,n){var r=n("2b3e"),i=r.Uint8Array;t.exports=i},2478:function(t,e,n){var r=n("4245");function i(t){return r(this,t).get(t)}t.exports=i},2524:function(t,e,n){var r=n("6044"),i="__lodash_hash_undefined__";function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}t.exports=o},"253c":function(t,e,n){var r=n("3729"),i=n("1310"),o="[object Arguments]";function a(t){return i(t)&&r(t)==o}t.exports=a},2593:function(t,e,n){var r=n("15f3"),i=n("c6cf"),o=i((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},2616:function(t,e,n){var r=n("0363"),i=n("7463"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),c=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},"266f":function(t,e,n){var r=n("9bfb");r("patternMatch")},"26e8":function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},"274e":function(t,e,n){var r=n("9bfb");r("split")},2874:function(t,e,n){var r=n("4180").f,i=n("0273"),o=n("78e7"),a=n("1c0a"),c=n("0363"),u=c("toStringTag"),s=a!=={}.toString;t.exports=function(t,e,n,c){if(t){var f=n?t:t.prototype;o(f,u)||r(f,u,{configurable:!0,value:e}),c&&s&&i(f,"toString",a)}}},"28c9":function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},"29f3":function(t,e){var n=Object.prototype,r=n.toString;function i(t){return r.call(t)}t.exports=i},"2b10":function(t,e){function n(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}t.exports=n},"2b3e":function(t,e,n){var r=n("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},"2c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),c=n("d039"),u=n("c6b6"),s=n("f8c2"),f=n("1be4"),l=n("cc12"),h=n("b629"),d=a.location,p=a.setImmediate,g=a.clearImmediate,v=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,x={},w="onreadystatechange",_=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},S=function(t){return function(){_(t)}},M=function(t){_(t.data)},P=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&g||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return x[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},g=function(t){delete x[t]},"process"==u(v)?r=function(t){v.nextTick(S(t))}:y&&y.now?r=function(t){y.now(S(t))}:m&&!h?(i=new m,o=i.port2,i.port1.onmessage=M,r=s(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(P)?r=w in l("script")?function(t){f.appendChild(l("script"))[w]=function(){f.removeChild(this),_(t)}}:function(t){setTimeout(S(t),0)}:(r=P,a.addEventListener("message",M,!1))),t.exports={set:p,clear:g}},"2dc0":function(t,e,n){t.exports=n("588c")},"2dcb":function(t,e,n){var r=n("91e9"),i=r(Object.getPrototypeOf,Object);t.exports=i},"2e85":function(t,e,n){var r=n("9bfb");r("replace")},"2ec1":function(t,e,n){var r=n("100e"),i=n("9aff");function o(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,c=o>2?n[2]:void 0;a=t.length>3&&"function"==typeof a?(o--,a):void 0,c&&i(n[0],n[1],c)&&(a=o<3?void 0:a,o=1),e=Object(e);while(++r<o){var u=n[r];u&&t(e,u,r,a)}return e}))}t.exports=o},"2f5a":function(t,e,n){var r,i,o,a=n("96e9"),c=n("3ac6"),u=n("dfdb"),s=n("0273"),f=n("78e7"),l=n("b2ed"),h=n("6e9a"),d=c.WeakMap,p=function(t){return o(t)?i(t):r(t,{})},g=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var v=new d,m=v.get,y=v.has,b=v.set;r=function(t,e){return b.call(v,t,e),e},i=function(t){return m.call(v,t)||{}},o=function(t){return y.call(v,t)}}else{var x=l("state");h[x]=!0,r=function(t,e){return s(t,x,e),e},i=function(t){return f(t,x)?t[x]:{}},o=function(t){return f(t,x)}}t.exports={set:r,get:i,has:o,enforce:p,getterFor:g}},"2f74":function(t,e,n){t.exports=n("68ec")},"2f97":function(t,e,n){var r=n("dfdb");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"2fcc":function(t,e){function n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=n},"30c9":function(t,e,n){var r=n("9520"),i=n("b218");function o(t){return null!=t&&i(t.length)&&!r(t)}t.exports=o},"32b3":function(t,e,n){var r=n("872a"),i=n("9638"),o=Object.prototype,a=o.hasOwnProperty;function c(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}t.exports=c},"34ac":function(t,e,n){var r=n("9520"),i=n("1368"),o=n("1a8c"),a=n("dc57"),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,s=Function.prototype,f=Object.prototype,l=s.toString,h=f.hasOwnProperty,d=RegExp("^"+l.call(h).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(t){if(!o(t)||i(t))return!1;var e=r(t)?d:u;return e.test(a(t))}t.exports=p},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},3698:function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},3729:function(t,e,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;function s(t){return null==t?void 0===t?c:a:u&&u in Object(t)?i(t):o(t)}t.exports=s},"373a":function(t,e,n){t.exports=n("2364")},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),c=r.length,u=0;while(c>u)i.f(t,n=r[u++],e[n]);return t}},"3ac6":function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},"3b4a":function(t,e,n){var r=n("0b07"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3e47":function(t,e,n){"use strict";var r=n("cbd0").charAt,i=n("2f5a"),o=n("4056"),a="String Iterator",c=i.set,u=i.getterFor(a);o(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3e476":function(t,e,n){var r=n("a5eb"),i=n("c1b2"),o=n("4180");r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:o.f})},"3e80":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"3f8c":function(t,e){t.exports={}},4056:function(t,e,n){"use strict";var r=n("a5eb"),i=n("f575"),o=n("5779"),a=n("ec62"),c=n("2874"),u=n("0273"),s=n("d666"),f=n("0363"),l=n("7042"),h=n("7463"),d=n("bb83"),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,v=f("iterator"),m="keys",y="values",b="entries",x=function(){return this};t.exports=function(t,e,n,f,d,w,_){i(n,e,f);var S,M,P,O=function(t){if(t===d&&j)return j;if(!g&&t in C)return C[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case b:return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",A=!1,C=t.prototype,k=C[v]||C["@@iterator"]||d&&C[d],j=!g&&k||O(d),I="Array"==e&&C.entries||k;if(I&&(S=o(I.call(new t)),p!==Object.prototype&&S.next&&(l||o(S)===p||(a?a(S,p):"function"!=typeof S[v]&&u(S,v,x)),c(S,E,!0,!0),l&&(h[E]=x))),d==y&&k&&k.name!==y&&(A=!0,j=function(){return k.call(this)}),l&&!_||C[v]===j||u(C,v,j),h[e]=j,d)if(M={values:O(y),keys:w?j:O(m),entries:O(b)},_)for(P in M)(g||A||!(P in C))&&s(C,P,M[P]);else r({target:e,proto:!0,forced:g||A},M);return M}},4069:function(t,e,n){var r=n("44d2");r("flat")},4160:function(t,e,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},4180:function(t,e,n){var r=n("c1b2"),i=n("77b2"),o=n("6f8d"),a=n("7168"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"41c3":function(t,e,n){var r=n("1a8c"),i=n("eac5"),o=n("ec8c"),a=Object.prototype,c=a.hasOwnProperty;function u(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&c.call(t,a))&&n.push(a);return n}t.exports=u},4245:function(t,e,n){var r=n("1290");function i(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}t.exports=i},42454:function(t,e,n){var r=n("f909"),i=n("2ec1"),o=i((function(t,e,n){r(t,e,n)}));t.exports=o},"428f":function(t,e,n){t.exports=n("da84")},4344:function(t,e,n){var r=n("dfdb"),i=n("6220"),o=n("0363"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},4359:function(t,e){function n(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}t.exports=n},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44ba":function(t,e,n){var r=n("c1b2"),i=n("7043"),o=n("2c6c"),a=n("a421"),c=n("7168"),u=n("78e7"),s=n("77b2"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e,!0),s)try{return f(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9112"),a=r("unscopables"),c=Array.prototype;void 0==c[a]&&o(c,a,i(null)),t.exports=function(t){c[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},4508:function(t,e,n){var r=n("1561"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"471b":function(t,e,n){"use strict";var r=n("194a"),i=n("4fff"),o=n("faaa"),a=n("2616"),c=n("6725"),u=n("6c15"),s=n("0b7b");t.exports=function(t){var e,n,f,l,h,d=i(t),p="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,m=void 0!==v,y=0,b=s(d);if(m&&(v=r(v,g>2?arguments[2]:void 0,2)),void 0==b||p==Array&&a(b))for(e=c(d.length),n=new p(e);e>y;y++)u(n,y,m?v(d[y],y):d[y]);else for(l=b.call(d),h=l.next,n=new p;!(f=h.call(l)).done;y++)u(n,y,m?o(l,v,[f.value,y],!0):f.value);return n.length=y,n}},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},"484e":function(t,e,n){var r=n("a5eb"),i=n("471b"),o=n("7de7"),a=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:i})},4896:function(t,e,n){var r=n("6f8d"),i=n("c230"),o=n("9e57"),a=n("6e9a"),c=n("edbd"),u=n("7a37"),s=n("b2ed"),f=s("IE_PROTO"),l="prototype",h=function(){},d=function(){var t,e=u("iframe"),n=o.length,r="<",i="script",a=">",s="java"+i+":";e.style.display="none",c.appendChild(e),e.src=String(s),t=e.contentWindow.document,t.open(),t.write(r+i+a+"document.F=Object"+r+"/"+i+a),t.close(),d=t.F;while(n--)delete d[l][o[n]];return d()};t.exports=Object.create||function(t,e){var n;return null!==t?(h[l]=r(t),n=new h,h[l]=null,n[f]=t):n=d(),void 0===e?n:i(n,e)},a[f]=!0},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},4963:function(t,e,n){var r,i,o=n("3ac6"),a=n("c4b8"),c=o.process,u=c&&c.versions,s=u&&u.v8;s?(r=s.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"49f4":function(t,e,n){var r=n("6044");function i(){this.__data__=r?r(null):{},this.size=0}t.exports=i},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var c,u=r(e),s=i(u.length),f=o(a,s);if(t&&n!=n){while(s>f)if(c=u[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d8c":function(t,e,n){var r=n("5c69");function i(t){var e=null==t?0:t.length;return e?r(t,1):[]}t.exports=i},"4de4":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde");r({target:"Array",proto:!0,forced:!o("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4f50":function(t,e,n){var r=n("b760"),i=n("e538"),o=n("c8fe"),a=n("4359"),c=n("fa21"),u=n("d370"),s=n("6747"),f=n("dcbe"),l=n("0d24"),h=n("9520"),d=n("1a8c"),p=n("60ed"),g=n("73ac"),v=n("8adb"),m=n("8de2");function y(t,e,n,y,b,x,w){var _=v(t,n),S=v(e,n),M=w.get(S);if(M)r(t,n,M);else{var P=x?x(_,S,n+"",t,e,w):void 0,O=void 0===P;if(O){var E=s(S),A=!E&&l(S),C=!E&&!A&&g(S);P=S,E||A||C?s(_)?P=_:f(_)?P=a(_):A?(O=!1,P=i(S,!0)):C?(O=!1,P=o(S,!0)):P=[]:p(S)||u(S)?(P=_,u(_)?P=m(_):d(_)&&!h(_)||(P=c(S))):O=!1}O&&(w.set(S,P),b(P,S,y,x,w),w["delete"](S)),r(t,n,P)}}t.exports=y},"4fff":function(t,e,n){var r=n("1875");t.exports=function(t){return Object(r(t))}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"50d8":function(t,e){function n(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}t.exports=n},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5145:function(t,e,n){n("9103");var r=n("78a2"),i=n("3ac6"),o=n("0273"),a=n("7463"),c=n("0363"),u=c("toStringTag");for(var s in r){var f=i[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),a[s]=a.Array}},"522d":function(t,e,n){var r=n("3ac6"),i=n("2874");i(r.JSON,"JSON",!0)},"55a3":function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.1",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"56c5":function(t,e,n){var r=n("a5eb"),i=n("ec62");r({target:"Object",stat:!0},{setPrototypeOf:i})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5779:function(t,e,n){var r=n("78e7"),i=n("4fff"),o=n("b2ed"),a=n("f5fb"),c=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"585a":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("c8ba"))},"588c":function(t,e,n){n("5145"),n("3e47"),t.exports=n("59d7")},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),u=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},"59d7":function(t,e,n){var r=n("8f95"),i=n("0363"),o=n("7463"),a=i("iterator");t.exports=function(t){var e=Object(t);return void 0!==e[a]||"@@iterator"in e||o.hasOwnProperty(r(e))}},"5ab9":function(t,e,n){n("e519");var r=n("764b");t.exports=r.Array.isArray},"5c69":function(t,e,n){var r=n("087d"),i=n("0621");function o(t,e,n,a,c){var u=-1,s=t.length;n||(n=i),c||(c=[]);while(++u<s){var f=t[u];e>0&&n(f)?e>1?o(f,e-1,n,a,c):r(c,f):a||(c[c.length]=f)}return c}t.exports=o},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5d24":function(t,e,n){t.exports=n("6426")},"5e2e":function(t,e,n){var r=n("28c9"),i=n("69d5"),o=n("b4c0"),a=n("fba5"),c=n("67ca");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,t.exports=u},6044:function(t,e,n){var r=n("0b07"),i=r(Object,"create");t.exports=i},"60ae":function(t,e,n){var r,i,o=n("da84"),a=n("b39a"),c=o.process,u=c&&c.versions,s=u&&u.v8;s?(r=s.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"60ed":function(t,e,n){var r=n("3729"),i=n("2dcb"),o=n("1310"),a="[object Object]",c=Function.prototype,u=Object.prototype,s=c.toString,f=u.hasOwnProperty,l=s.call(Object);function h(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}t.exports=h},6220:function(t,e,n){var r=n("fc48");t.exports=Array.isArray||function(t){return"Array"==r(t)}},6271:function(t,e,n){t.exports=n("373a")},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6386:function(t,e,n){var r=n("a421"),i=n("6725"),o=n("4508"),a=function(t){return function(e,n,a){var c,u=r(e),s=i(u.length),f=o(a,s);if(t&&n!=n){while(s>f)if(c=u[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"638c":function(t,e,n){var r=n("06fa"),i=n("fc48"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},6426:function(t,e,n){t.exports=n("ac0c")},"64db":function(t,e){},"656b":function(t,e,n){var r=n("e2e4"),i=n("f4d6");function o(t,e){e=r(e,t);var n=0,o=e.length;while(null!=t&&n<o)t=t[i(e[n++])];return n&&n==o?t:void 0}t.exports=o},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},6725:function(t,e,n){var r=n("1561"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},6747:function(t,e){var n=Array.isArray;t.exports=n},"67ca":function(t,e,n){var r=n("cb5a");function i(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}t.exports=i},"68ec":function(t,e,n){n("56c5");var r=n("764b");t.exports=r.Object.setPrototypeOf},"69d5":function(t,e,n){var r=n("cb5a"),i=Array.prototype,o=i.splice;function a(t){var e=this.__data__,n=r(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():o.call(e,n,1),--this.size,!0}t.exports=a},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),c=n("da84"),u=n("861d"),s=n("9112"),f=n("5135"),l=n("f772"),h=n("d012"),d=c.WeakMap,p=function(t){return o(t)?i(t):r(t,{})},g=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var v=new d,m=v.get,y=v.has,b=v.set;r=function(t,e){return b.call(v,t,e),e},i=function(t){return m.call(v,t)||{}},o=function(t){return y.call(v,t)}}else{var x=l("state");h[x]=!0,r=function(t,e){return s(t,x,e),e},i=function(t){return f(t,x)?t[x]:{}},o=function(t){return f(t,x)}}t.exports={set:r,get:i,has:o,enforce:p,getterFor:g}},"6c15":function(t,e,n){"use strict";var r=n("7168"),i=n("4180"),o=n("2c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"6da8":function(t,e){function n(t){return t.split("")}t.exports=n},"6e9a":function(t,e){t.exports={}},"6eeb":function(t,e,n){var r=n("da84"),i=n("5692"),o=n("9112"),a=n("5135"),c=n("ce4e"),u=n("9e81"),s=n("69f3"),f=s.get,l=s.enforce,h=String(u).split("toString");i("inspectSource",(function(t){return u.call(t)})),(t.exports=function(t,e,n,i){var u=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||a(n,"name")||o(n,"name",e),l(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u.call(this)}))},"6f89":function(t,e){},"6f8d":function(t,e,n){var r=n("dfdb");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"6fcd":function(t,e,n){var r=n("50d8"),i=n("d370"),o=n("6747"),a=n("0d24"),c=n("c098"),u=n("73ac"),s=Object.prototype,f=s.hasOwnProperty;function l(t,e){var n=o(t),s=!n&&i(t),l=!n&&!s&&a(t),h=!n&&!s&&!l&&u(t),d=n||s||l||h,p=d?r(t.length,String):[],g=p.length;for(var v in t)!e&&!f.call(t,v)||d&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,g))||p.push(v);return p}t.exports=l},7042:function(t,e){t.exports=!0},7043:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},"70a1":function(t,e,n){!function(e,r){t.exports=r(n("07cd"))}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=25)}([function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e,n){return t.addShape("path",{attrs:r({},n,{path:e})})}function a(t){return[{x:t.centerX,y:t.minY},{x:t.maxX,y:t.centerY},{x:t.centerX,y:t.maxY},{x:t.minX,y:t.centerY}]}function c(t,e){var n,r,i=a(e),o=1/0;return i.forEach((function(e,i){var a,c,u=(a=t,c=e,Math.sqrt(Math.pow(a.x-c.x,2)+Math.pow(a.y-c.y,2)));u<o&&(n=e,o=u,r=i)})),{point:n,index:r}}function u(t,e){return{x:(t[e].x+t[e+1].x)/2,y:(t[e].y+t[e+1].y)/2}}function s(t,e){var n=t.point,r=t.index,i=e.point,o=e.index;return n.x===i.x||n.y===i.y?[n,i]:2===r&&0===o||0===r&&2===o?[n,{x:n.x,y:(n.y+i.y)/2},{x:i.x,y:(n.y+i.y)/2},i]:2!==r&&0!==r||3!==o&&1!==o?1!==r&&3!==r||2!==o&&0!==o?[n,{x:(n.x+i.x)/2,y:n.y},{x:(n.x+i.x)/2,y:i.y},i]:[n,{x:i.x,y:n.y},i]:[n,{x:n.x,y:i.y},i]}function f(t,e){return t[e].x===t[e+1].x}function l(t,e,n){return f(e,n)?t.x===e[n].x&&(t.y-e[n].y)*(t.y-e[n+1].y)<=0:t.y===e[n].y&&(t.x-e[n].x)*(t.x-e[n+1].x)<=0}function h(t,e){for(var n,r,i,o,a,c=1/0,u=0;u<e.length-1;u++){var s=f(e,u),h=void 0;if(l(h=s?{x:e[u].x,y:t.y}:{x:t.x,y:e[u].y},e,u)){var d=(o=t,a=h,Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2));c>d&&(c=d,n=u,r=h,i=s)}}return{verticalPoint:r,index:n,vertical:i}}function d(t,e,n){var r,i,o,u=function(t){if(!t)return{x:void 0,y:void 0};var e=t.getBBox();return{x:e.centerX,y:e.centerY}}(e),s=t.getLinkPoints(u)[0];if(n){var f=a(t.getBBox())[n];r=t.getBBox(),i=f,o={x:e.getBBox().centerX,y:e.getBBox().centerY},((r.centerX-i.x)*(r.centerX-o.x)>0||(r.centerY-i.y)*(r.centerY-o.y)>0)&&(s=f)}s=c(s,t.getBBox());var l=e.getLinkPoints(s.point)[0];return{sourcePoint:s,targetPoint:l=c(l,e.getBBox())}}function p(t,e,n){return f(e,n)?t.minX>e[n].x?1:t.maxX<e[n].x?-1:0:t.minY>e[n].y?1:t.maxY<e.y?-1:0}function g(t,e,n){return f(e,n)?{x:e[n].x,y:t.y}:{x:t.x,y:e[n].y}}function v(t){var e;switch(t){case 0:e=2;break;case 1:e=3;break;case 3:e=1;break;default:e=0}return e}n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"j",(function(){return u})),n.d(e,"h",(function(){return s})),n.d(e,"i",(function(){return f})),n.d(e,"l",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"k",(function(){return v}))},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(7),a=n(3),c=n(4),u={getActivedStyle:function(){},getSelectedStyle:function(){},getStyle:function(){},getPath:function(){}};function s(t,e,n){var r=[];return c.isString(t)?r=[e,t]:c.isArray(t)?(t.unshift(e),r=t):r=[e],n&&r.unshift(n+"-base"),r}o.registerNode("page-base",r({},u)),o.registerEdge("page-base",r({},u)),o.registerGroup("page-base",r({},u)),o.registerGuide("page-base",r({},u)),a.setRegister=function(t,e,n){t.registerNode=function(t,r,i){o.registerNode(t,r,s(i,e+"-base",n))},t.registerEdge=function(t,r,i){o.registerEdge(t,r,s(i,e+"-base",n))},t.registerGroup=function(t,r,i){o.registerGroup(t,r,s(i,e+"-base",n))},t.registerGuide=function(t,r,i){o.registerGuide(t,r,s(i,e+"-base",n))},t.registerBehaviour=function(t,e,n){o.registerBehaviour(t,(function(t){var n=t.get("page");n.set("_graph",t),e(n)}),n)}},a.setRegister(a,"page"),n(44),t.exports=a},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(7),o=n(22),a=n(63),c=n(64),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},i.Util,o,a,c);t.exports=u},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=n(21),l=n(4),h=n(14),d=n(34),p=n(35),g=n(37),v=[d,n(38),n(39),p,g,n(40),n(42),n(43)],m=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r={defaultData:null,shortcut:{redo:!0,undo:!0,delete:!0,resetZoom:!0,autoZoom:!0,zoomIn:!0,zoomOut:!0},_controllers:{},_signals:{}};return l.each(v,(function(t){l.mix(r,t.CFG)})),l.mix(!0,r,t),(n=c(this,u(e).call(this,r))).isPage=!0,n.type="page",n._init(),n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,f),n=e,(r=[{key:"getDelegation",value:function(t,e){var n;if(e||(e=this.getGraph().getRootGroup()),1!==t.length||t[0].isNode||t[0].isGroup){var r=l.getTotalBBox(t.map((function(t){return t.getBBox()})));(n=l.getRectByBox(r,e,h.nodeDelegationStyle)).set("capture",!1)}else t[0].isEdge?n=e.addShape("path",{attrs:i({path:"M0 0L 1 1"},h.edgeDelegationStyle),capture:!1}):(n=l.getRectByBox(t[0],e,h.nodeDelegationStyle)).set("capture",!1);return n}},{key:"focusGraphWrapper",value:function(){this.getGraph().getKeyboardEventWrapper().focus()}},{key:"saveImage",value:function(t){var e,n,r=this,o=this.getGraph(),a=o.getBBox(),c=o.getFitViewPadding();return o.saveImage(i({width:a.width+c[1]+c[3],height:a.height+c[0]+c[2],beforeTransform:function(){e=r.getSelected().map((function(t){return t.id})),n=r.getSelected().map((function(t){return t.id})),r.clearSelected(),r.clearActived()},afterTransform:function(){r.setSelected(e,!0),r.setActived(n,!0)}},t))}},{key:"_init",value:function(){var t=this;l.each(v,(function(e){e.INIT&&t[e.INIT]()})),this.bindEvent(),this._cacheBBox()}},{key:"executeCommand",value:function(t,e){var n=this.editor;n?n.executeCommand(t,e):t()}},{key:"_cacheBBox",value:function(){var t=this.getGraph();this.set("bboxCache",t.getBBox())}},{key:"bindEvent",value:function(){var t=this;this.getGraph().on("afterchange",(function(){t._cacheBBox()}))}},{key:"translateLimt",value:function(t){var e=this.getGraph(),n=this.get("bboxCache"),r=e.getWidth(),i=e.getHeight(),o=[n.minX,n.minY,1],a=[n.maxX,n.maxY,1];return l.vec3.transformMat3(o,o,t),l.vec3.transformMat3(a,a,t),a[0]<100&&l.mat3.translate(t,t,[100-a[0],0]),a[1]<100&&l.mat3.translate(t,t,[0,100-a[1]]),o[1]>i-100&&l.mat3.translate(t,t,[0,i-100-o[1]]),o[0]>r-100&&l.mat3.translate(t,t,[r-100-o[0],0]),!0}},{key:"setSignal",value:function(t,e){this.get("_signals")[t]=e}},{key:"getSignal",value:function(t){return this.get("_signals")[t]}},{key:"setController",value:function(t,e){this.get("_controllers")[t]=e}},{key:"getController",value:function(t){return this.get("_controllers")[t]}},{key:"destroy",value:function(){var t=this.get("_graph"),e=this.get("_controllers");l.each(e,(function(t){t.destroy()})),t.destroy()}}])&&a(n.prototype,r),o&&a(n,o),e}();l.each(v,(function(t){l.mix(m.prototype,t.AUGMENT)})),t.exports=m},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(6),o=n(14),a=i.createDOM("<canvas>").getContext("2d");t.exports=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},i,{getPanCanvasBehaviour:function(t){return function(e){var n,r,a=e.getGraph();a.behaviourOn("canvas:mouseenter",(function(){e.css({cursor:o.cursor.beforePanCanvas})})),a.behaviourOn("mouseleave",(function(t){t.toShape||e.css({cursor:o.cursor.beforePanCanvas})})),a.behaviourOn("mousedown",(function(i){(2!==i.button&&!t||!i.shape||i.item&&!1===i.item.dragable&&"mind-root"!==i.item.shapeObj.type&&!e.getSignal("dragEdge"))&&(n={x:i.domX,y:i.domY},e.css({cursor:o.cursor.panningCanvas}),r=a.getMatrix(),e.setCapture(!1))})),a.behaviourOn("drag",(function(t){if(n){var o=t.domX-n.x,c=t.domY-n.y,u=[];i.mat3.translate(u,r,[o,c]),e.translateLimt(u)&&(a.updateMatrix(u),a.draw())}})),a.behaviourOn("mouseup",(function(){n&&(n=void 0,r=void 0,e.setCapture(!0),e.css({cursor:o.cursor.beforePanCanvas}))}))}},getLabelTextByTextLineWidth:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:320;a.font=e;var r=a.measureText(t).width;if(r>n){r=0;for(var i=1;i<t.length;i++)(r+=a.measureText(t[i]).width)>=n&&(t=t.substring(0,i)+"\n"+t.substring(i,t.length),i+=1,r=0)}return t}})},function(t,e){t.exports={orbitGap:10,nodeDefaultShape:"flow-node",edgeDefaultShape:"flow-smooth",groupDefaultShape:"flow-group",nodeActivedOutterStyle:{lineWidth:0},groupSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},nodeSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},edgeActivedStyle:{stroke:"#1890FF",strokeOpacity:.92},nodeActivedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupActivedStyle:{stroke:"#1890FF"},edgeSelectedStyle:{lineWidth:2,strokeOpacity:.92,stroke:"#A3B1BF"},nodeSelectedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupSelectedStyle:{stroke:"#1890FF",fillOpacity:.92},nodeStyle:{stroke:"#CED4D9",fill:"#FFFFFF",shadowOffsetX:0,shadowOffsetY:4,shadowBlur:10,shadowColor:"rgba(13, 26, 38, 0.08)",lineWidth:1,radius:4,fillOpacity:.92},edgeStyle:{stroke:"#A3B1BF",strokeOpacity:.92,lineWidth:1,lineAppendWidth:8,endArrow:!0},groupBackgroundPadding:[40,10,10,10],groupLabelOffsetX:10,groupLabelOffsetY:10,edgeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},edgeLabelRectPadding:4,edgeLabelRectStyle:{fill:"white"},nodeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},groupStyle:{stroke:"#CED4D9",radius:4},groupLabelStyle:{fill:"#666",textAlign:"left",textBaseline:"top"},multiSelectRectStyle:{fill:"#1890FF",fillOpacity:.08,stroke:"#1890FF",opacity:.1},dragNodeHoverToGroupStyle:{stroke:"#1890FF",lineWidth:2},dragNodeLeaveFromGroupStyle:{stroke:"#BAE7FF",lineWidth:2},anchorPointStyle:{radius:3.5,fill:"#fff",stroke:"#1890FF",lineAppendWidth:12},anchorHotsoptStyle:{radius:12,fill:"#1890FF",fillOpacity:.25},anchorHotsoptActivedStyle:{radius:14},anchorPointHoverStyle:{radius:4,fill:"#1890FF",fillOpacity:1,stroke:"#1890FF"},nodeControlPointStyle:{radius:4,fill:"#fff",shadowBlur:4,shadowColor:"#666"},edgeControlPointStyle:{radius:6,symbol:"square",lineAppendWidth:6,fillOpacity:0,strokeOpacity:0},nodeSelectedBoxStyle:{stroke:"#C2C2C2"},cursor:{panningCanvas:"-webkit-grabbing",beforePanCanvas:"-webkit-grab",hoverNode:"move",hoverEffectiveAnchor:"crosshair",hoverEdge:"default",hoverGroup:"move",hoverUnEffectiveAnchor:"default",hoverEdgeControllPoint:"crosshair",multiSelect:"crosshair"},zIndex:{anchorPoint:3,anchorHotsopt:2,selectedBox:1,controlPoint:4},polylineEdgeStyle:{offset:10,borderRadius:5},addToGroupDelayTime:400,outFromGroupDelayTime:400}},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(7),a=n(28),c=n(29),u={whitespace:{9:"Tab",13:"Enter",32:"Space"},fn:{112:"f1 ",113:"f2 ",114:"f3 ",115:"f4 ",116:"f5 ",117:"f6 ",118:"f7 ",119:"f8 ",120:"f9 ",121:"f10",122:"f11",123:"f12"},letter:{65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z"},number:{48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9"},navigation:{37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},symbol:{110:"decimal point",186:"semi-colon",187:"=",188:"comma",189:"-",190:"period ",191:"/",192:"grave accent",219:"open bracket ",220:"back slash ",221:"close bracket ",222:"single quote "},smallNumberKey:{96:"numpad 0 ",97:"numpad 1 ",98:"numpad 2 ",99:"numpad 3 ",100:"numpad 4 ",101:"numpad 5 ",102:"numpad 6 ",103:"numpad 7 ",104:"numpad 8 ",105:"numpad 9 "},modifierKey:{16:"Shift",17:"Ctrl ",18:"Alt",20:"caps lock"},escKey:{8:"Backspace",46:"Delete",27:"Escape"},homeKey:{91:"Windows Key / Left command",92:"right window key ",93:"Windows Menu"},computeKey:{106:"multiply ",107:"add",109:"subtract ",111:"divide "}},s=r({},o.Util,a,{getNodeSize:function(t){if(t){if(o.Util.isNumber(t))return[t,t];if(o.Util.isString(t)){if(-1===t.indexOf("*")){var e=Number(t);return[e,e]}return t.split("*")}return t}return[96,48]},getTypeAndChar:function(t){var e;for(var n in t=""+t,u)for(var r in e=n,u[n])if(r===t)return{type:e,character:u[n][r]};return{}},getKeyboradKey:function(t){return t.key||s.getTypeAndChar(t.keyCode).character},getIndex:function(t){return t.getParent().get("children").indexOf(t)},setId:function(t){t.id||(t.id=o.Util.guid())},pointLineDistance:function(t,e,n,r,i,a){var c=[n-t,r-e];if(o.Util.vec2.exactEquals(c,[0,0]))return NaN;var u=[-c[1],c[0]];o.Util.vec2.normalize(u,u);var s=[i-t,a-e];return Math.abs(o.Util.vec2.dot(s,u))},getRectByBox:function(t,e,n){return e.addShape("rect",{attrs:r({},n,{x:t.minX,y:t.minY,width:t.maxX-t.minX,height:t.maxY-t.minY})})},objectToValues:function(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(t[e]);return n},getValue:function(t){return o.Util.isFunction(t)?t():t},getContrast:function(t,e){var n={};return o.Util.each(e,(function(e,r){n[r]=t[r]})),n},arrowTo:function(t,e,n,r,i,a,c){var u=[a-r,c-i],s=o.Util.vec2.angleTo(u,[1,0],!0);return t.transform([["r",s],["t",e,n]]),t},setEndOfContenteditable:function(t){var e,n;document.createRange?((e=document.createRange()).selectNodeContents(t),e.collapse(!1),(n=window.getSelection()).removeAllRanges(),n.addRange(e)):document.selection&&((e=document.body.createTextRange()).moveToElementText(t),e.collapse(!1),e.select())},matches:function(t,e){return(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1}).call(t,e)},delegateEvent:function(t,e,n,r){return s.addEventListener(t,e,(function(e){for(var i=e.target||e.srcElement;i!==t;)s.matches(i,n)&&r.call(i,Array.prototype.slice.call(arguments)),i=i.parentNode}))},Palettes:c});t.exports=s},function(e,n){e.exports=t},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var l=n(7),h=n(1),d=n(10),p=[],g=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r={showHotArea:!1,defaultData:{roots:[{label:"思维导图",children:[{label:"新建节点"},{label:"新建节点"},{label:"新建节点"}]}]},shortcut:{append:!0,appendChild:!0,collapseExpand:!0,selectAll:!0},labelEditable:!0,graph:{modes:{default:["clickNodeSelected","keydownMoveSelection","clickCanvasSelected","keydownEditLabel","panBlank","wheelChangeViewport","panMindNode","clickCollapsedButton","clickExpandedButton","hoverButton","hoverNodeActived","dblclickItemEditLabel"],readOnly:["clickNodeSelected","wheelChangeViewport","keydownMoveSelection","hoverNodeActived","panCanvas","clickExpandedButton","hoverButton","clickCanvasSelected"]},layout:new l.Layouts.Mindmap({direction:"H",getSubTreeSep:function(t){return t.children&&t.children.length>0?t.hierarchy<=2?8:2:0},getHGap:function(t){return 1===t.hierarchy?8:2===t.hierarchy?24:18},getVGap:function(t){return 1===t.hierarchy||2===t.hierarchy?24:2},getSide:function(t){return t.data.side?t.data.side:"right"}}),mode:"default",defaultIntersectBox:"rect",nodeDefaultShape:"mind-base",edgeDefaultShape:"mind-edge",minZoom:.2,maxZoom:2},align:{item:!1},rootShape:"mind-root",firstSubShape:"mind-first-sub",secondSubShape:"mind-second-sub",subShape:"mind-base",nodeDefaultShape:"mind-base",graphConstructor:l.Tree,defaultSide:"right"},i={};return d.each(p,(function(t){d.mix(i,t.CFG)})),d.mix(!0,r,i,t),(n=c(this,s(e).call(this,r))).isMind=!0,n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(e,h),n=e,(r=[{key:"_init",value:function(){var t=this;u(s(e.prototype),"_init",this).call(this),d.each(p,(function(e){e.INIT&&t[e.INIT]()}));var n=this.getGraph(),r=this.get("defaultData"),i=n.get("mode"),o=n.getRootGroup().addGroup();if(this.set("hotAreaGroup",o),n.edge().shape((function(t){if(n.find(t.target).getModel().isPlaceholder)return"mind-placeholder-edge"})),r&&this.read(r),"default"===i){if(r){var a=this.getRoot(),c=n.find(a.id);this.setSelected(c,!0)}}else if("readOnly"===i){var f=this.get("shortcut");f.append=!1,f.appendChild=!1,f.selectAll=!1,f.delete=!1}if(r){var l=this.getRoot();this.focus(l.id)}}},{key:"bindEvent",value:function(){var t=this;u(s(e.prototype),"bindEvent",this).call(this);var n=this.get("_graph");n.on("keydown",(function(t){t.domEvent.preventDefault()})),n.on("beforechange",(function(e){"add"===e.action?t._beforeAdd(e):"changeData"===e.action&&t._beforeChangeData(e)})),n.on("aftersource",(function(){t._setHierarchy()})),n.on("afterchange",(function(){t._setHotArea()})),n.on("afteritemdraw",(function(t){var e=t.item,n=e.getModel();if(e.isEdge){var r=e.getGraphicGroup();d.toBack(r,r.getParent()),r.setSilent("capture",!1)}n.parent||(e.isRoot=!0,e.deleteable=!1,e.collapseExpand=!1,e.appendable=!1,e.dragable=!1)})),this.on("beforedelete",(function(e){var n=e.items[0],r=t._getBrothers(n),i=t._getNth(n);r[i-1]?t.setSelected(r[i-1].id,!0):r[i+1]?t.setSelected(r[i+1].id,!0):t.setSelected(n.getParent(),!0)})),this.on("afteritemselected",(function(e){t._tryAdjustViewport(e.item)}))}},{key:"getRoot",value:function(){return this.getGraph().getSource().roots[0]}},{key:"_setHierarchy",value:function(t){var e=this.getGraph(),n=this.get("firstSubShape"),r=this.get("secondSubShape"),i=this.get("defaultSide");if(t){var o=e.find(t.parent);if(o){var a=o.getModel();t.hierarchy=a.hierarchy+1,"mind-placeholder"!==t.shape&&(2===t.hierarchy&&(t.shape=n,t.side||(t.side=i)),3===t.hierarchy&&(t.shape=r))}}else(t=this.getRoot()).hierarchy=1;d.traverseTree(t,(function(t,e){t.hierarchy=e.hierarchy+1,t.side||(t.side=i),e.side&&(t.side=e.side),2===t.hierarchy?t.shape=n:3===t.hierarchy&&(t.shape=r)}),(function(t){return t.children}))}},{key:"getFirstChildrenBySide",value:function(t){var e=this.getRoot(),n=[];return e.children.forEach((function(e){e.side===t&&n.push(e)})),n}},{key:"_getNth",value:function(t){return this.getGraph().getNth(t)}},{key:"_getBrothers",value:function(t){return t.getParent().getModel().children}},{key:"_getMoveChildModel",value:function(t){if(t&&t.length>0){var e=t.length;return t[parseInt(e/2)]}}},{key:"_getVerticalMoveItem",value:function(t,e,n){for(var r,i=this.getGraph().getNodes(),o=t.getBBox(),a=[o.minX,o.maxX],c=[],u=0;u<a.length;u++)for(var s=a[u],f=0;f<i.length;f++){var l=i[f],h=l.getBBox();e(h,o,s)&&c.push({long:n(h,o),node:l})}return c.length>0&&(c.sort((function(t,e){return t.long-e.long})),r=c[0].node),r}},{key:"_arrowTopItem",value:function(t){var e=this._getBrothers(t),n=this._getNth(t);return e[n-1]?e[n-1]:this._getVerticalMoveItem(t,(function(t,e,n){return t.centerY<e.centerY&&n<=t.maxX&&n>=t.minX}),(function(t,e){return e.centerY-t.centerY}))}},{key:"_arrowBottomItem",value:function(t){var e=this._getBrothers(t),n=this._getNth(t);return e[n+1]?e[n+1]:this._getVerticalMoveItem(t,(function(t,e,n){return t.centerY>e.centerY&&n<=t.maxX&&n>=t.minX}),(function(t,e){return t.centerY-e.centerY}))}},{key:"_arrowLeftItem",value:function(t){var e=d.getMindNodeSide(t);if(t.isRoot){var n=this.getFirstChildrenBySide("left");return this._getMoveChildModel(n)}if("left"===e){var r=t.getModel().children;return this._getMoveChildModel(r)}return t.getParent()}},{key:"_arrowRightItem",value:function(t){var e=d.getMindNodeSide(t);if(t.isRoot){var n=this.getFirstChildrenBySide("right");return this._getMoveChildModel(n)}if("right"===e){var r=t.getModel().children;return this._getMoveChildModel(r)}return t.getParent()}},{key:"_moveItemSelection",value:function(t){var e=this.getGraph(),n=this.getSelected()[0];if(n){var r,i=t.domEvent,o=d.getKeyboradKey(i);"ArrowUp"!==o||n.isRoot?"ArrowDown"!==o||n.isRoot?"ArrowLeft"===o?r=this._arrowLeftItem(n):"ArrowRight"===o&&(r=this._arrowRightItem(n)):r=this._arrowBottomItem(n):r=this._arrowTopItem(n),r&&(r=e.find(r.id)).isVisible()&&(this.clearSelected(),this.setSelected(r,!0))}}},{key:"showLabelEditor",value:function(t){var e=t.domEvent,n=this.getSelected()[0],r=d.getKeyboradKey(e);if(n&&1===r.length&&!e.metaKey&&!e.ctrlKey){var i=this.get("labelTextArea");n&&(this.beginEditLabel(n),i.innerHTML=r,d.setEndOfContenteditable(i))}}},{key:"_tryAdjustViewport",value:function(t){var e=this.get("_graph"),n=t.getBBox(),r={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY},o=e.getDomPoint(r),a=e.getDomPoint(i),c=e.getWidth(),u=e.getHeight();o.x<0&&e.translate(16-o.x,0),o.y<0&&e.translate(0,16-o.y),a.x>c&&e.translate(c-a.x-16,0),a.y>u&&e.translate(0,u-a.y-16)}},{key:"_beforeChangeData",value:function(t){var e=t.data.roots[0],n=this.get("rootShape");e.shape=n,this._setHierarchy(e)}},{key:"_beforeAdd",value:function(t){var e=this.get("_graph"),n=t.model,r=e.find(n.parent);r.getModel().collapsed&&e.update(r,{collapsed:!1}),this._setHierarchy(n)}},{key:"_drawHotAreaShape",value:function(){var t=this.get("_graph"),e=this.get("hotAreaGroup"),n=this.get("hotAreas");e.clear(),n.forEach((function(t){e.addShape("rect",{attrs:{x:t.minX,y:t.minY,width:t.maxX-t.minX,height:t.maxY-t.minY,fill:t.color,fillOpacity:.4},capture:!1})})),t.draw()}},{key:"_setHotArea",value:function(){var t=[],e=this.get("_graph"),n=this.getRoot(),r="placeholder",o=this.get("showHotArea"),a=e.find(n.id).getBBox();t.push({minX:a.minX-90,minY:a.minY-60,maxX:(a.minX+a.maxX)/2,maxY:a.maxY+60,parent:n,current:n,id:n.id+"left"+r,nth:n.children.length,side:"left",color:"orange"}),t.push({minX:(a.minX+a.maxX)/2,minY:a.minY-60,maxX:a.maxX+90,maxY:a.maxY+60,parent:n,current:n,id:n.id+"right"+r,nth:n.children.length,side:"right",color:"pink"}),d.traverseTree(n,(function(n,o,a){var c=e.find(n.id);if(!n.isPlaceholder&&c&&c.isVisible()){var u,s=function(t,e,n){var r=n.children,i=t;if(!n.parent)for(;r[i]&&r[i].side!==e.side;)i++;for(;r[i]&&r[i].isPlaceholder;)i++;if(r[i]&&r[i].side===e.side)return r[i]}(a+1,n,o),f=function(t,e,n){var r=n.children,i=t;if(!n.parent)for(;r[i]&&r[i].side!==e.side;)i--;for(;r[i]&&r[i].isPlaceholder;)i--;if(r[i]&&r[i].side===e.side)return r[i]}(a-1,n,o),l=e.find(n.id).getBBox(),h=o.children,d=2===n.hierarchy&&"right"===n.side,p=2===n.hierarchy&&"left"===n.side;if(f||t.push({minX:d?l.minX-90:l.minX,minY:function(){var t=f?l.minY:l.minY-16;return h[a-1]&&h[a-1].isPlaceholder&&h[a-1].side===n.side&&(t=e.find(h[a-1].id).getBBox().minY),t}(),maxX:p?l.maxX+90:l.maxX,maxY:(l.minY+l.maxY)/2,parent:o,id:(f?f.id:void 0)+n.id+o.id+r,side:n.side,color:"yellow",nth:a}),s){var g=e.find(s.id).getBBox();t.push({minX:"left"===n.side?Math.max(l.minX,g.minX):d?l.minX-90:l.minX,minY:(l.minY+l.maxY)/2,maxX:"right"===n.side?Math.min(l.maxX,g.maxX):p?l.maxX+90:l.maxX,maxY:(g.minY+g.maxY)/2,parent:o,id:n.id+(s?s.id:void 0)+o.id+r,side:n.side,color:"blue",nth:a+1})}else t.push({minX:d?l.minX-90:l.minX,minY:(l.minY+l.maxY)/2,maxX:p?l.maxX+90:l.maxX,maxY:function(){var t=l.maxY+16;return h[a+1]&&h[a+1].isPlaceholder&&h[a+1].side===n.side&&(t=e.find(h[a+1].id).getBBox().maxY),t}(),parent:o,id:n.id+void 0+o.id+r,color:"red",nth:a+1,addOrder:"push",side:n.side});if(!n.children||0===n.children.length||1===n.children.length&&n.children[0].isPlaceholder)u=n.x>o.x?{minX:l.maxX,minY:l.minY-0,maxX:l.maxX+100,maxY:l.maxY+0}:{minX:l.minX-100,minY:l.minY-0,maxX:l.minX,maxY:l.maxY+0},t.push(i({},u,{parent:n,id:NaN+n.id+r,nth:0,color:"green",side:n.side,addOrder:"push"}))}}),(function(t){return t.children})),this.set("hotAreas",t),o&&this._drawHotAreaShape()}},{key:"hideHotArea",value:function(){var t=this.get("_graph");this.get("hotAreaGroup").clear(),t.draw(),this.set("showHotArea",!1)}},{key:"showHotArea",value:function(){this._drawHotAreaShape(),this.set("showHotArea",!0)}},{key:"getHotArea",value:function(t){var e;return this.get("hotAreas").forEach((function(n){if(t.x>n.minX&&t.x<n.maxX&&t.y>n.minY&&t.y<n.maxY)return e=n,!1})),e}},{key:"saveExpandImage",value:function(t){var e,n,r,o=this,a=this.getGraph(),c=a.getBBox(),u=a.getFitViewPadding();return a.saveImage(i({width:c.width+u[1]+u[3],height:c.height+u[0]+u[2],beforeTransform:function(){var t=a.getNodes();(e=t.filter((function(t){return t.getModel().collapsed})).map((function(t){return t.getModel().id}))).forEach((function(t){a.update(t,{collapsed:!1})})),a.layout(),n=o.getSelected().map((function(t){return t.id})),r=o.getSelected().map((function(t){return t.id})),o.clearSelected(),o.clearActived()},afterTransform:function(){e.forEach((function(t){a.update(t,{collapsed:!0})})),o.setSelected(n,!0),o.setActived(r,!0)}},t))}},{key:"save",value:function(){var t=this.get("_graph").save();return t.roots.forEach((function(t){d.traverseTree(t,(function(t){delete t.x,delete t.y,delete t.width,delete t.height,delete t.parent,delete t.nth,delete t.hierarchy,delete t.index,delete t.shape}),(function(t){return t.children}),!0)})),t}}])&&a(n.prototype,r),o&&a(n,o),e}();d.each(p,(function(t){d.mix(g.prototype,t.AUGMENT)})),h.setRegister(g,"mind","page"),t.exports=g},function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}var o=n(7).Util,a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.getDefaultCfg();o.mix(!0,this,n,e),this.init()}return i(t,[{key:"getDefaultCfg",value:function(){return{}}}]),i(t,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t}();t.exports=a},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},n(4),{getMindNodeSide:function(t){var e=t.getModel();if(e.side)return e.side;var n=t.getParent();return n?n.getModel().side?n.getModel().side:i.getMindNodeSide(n):void 0}});t.exports=i},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=n(1),u=n(16),s=n(19),f=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r={graph:{modes:{default:["panBlank","hoverGroupActived","keydownCmdWheelZoom","clickEdgeSelected","clickNodeSelected","clickCanvasSelected","clickGroupSelected","hoverNodeActived","hoverEdgeActived","hoverButton","clickCollapsedButton","clickExpandedButton","wheelChangeViewport","keydownShiftMultiSelected","dragNodeAddToGroup","dragOutFromGroup","panItem","hoverEdgeControlPoint","dragEdgeControlPoint"],add:["dragPanelItemAddNode"],readOnly:["panCanvas"],move:["panCanvas"],multiSelect:["dragMultiSelect"]},mode:"default",defaultIntersectBox:"rect",nodeDefaultShape:"flow-base",edgeDefaultShape:"flow-smooth",groupDefaultShape:"flow-base"},linkNode:!1};return s.mix(!0,r,{},t),(n=i(this,o(e).call(this,r))).isFlow=!0,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,u),e}();c.setRegister(f,"flow","diagram"),t.exports=f},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s=n(16),f=n(1),l=n(6),h=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r={graph:{modes:{default:["panBlank","keydownCmdWheelZoom","clickEdgeSelected","clickNodeSelected","clickCanvasSelected","hoverNodeActived","hoverEdgeActived","hoverButton","wheelChangeViewport","keydownShiftMultiSelected","panItem","hoverNodeShowArrowController","hoverEdgeControlPoint","dragEdgeControlPoint","bpmnMoveEdgeController"],add:["dragPanelItemAddNode","processAddEdge"],readOnly:["panCanvas"],move:["panCanvas"],multiSelect:["dragMultiSelect"]},mode:"default",defaultIntersectBox:"rect",nodeDefaultShape:"bpmn-base",edgeDefaultShape:"bpmn-base"},arrowController:{thickness:32,long:32,controllers:[]}};return l.mix(!0,r,{},t),(n=o(this,c(e).call(this,r))).isBPMN=!0,n}var n,r,f;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,s),n=e,(r=[{key:"_init",value:function(){a(c(e.prototype),"_init",this).call(this),this._initArrowController()}},{key:"_createArrowController",value:function(t,e){var n=this,r=this.get("arrowController").controllers,i=l.createDOM('<div class="g6-bpmn-arrow"><svg t="1543840367375" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1061" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M906.77248 512c0 4.77184-2.21184 9.2672-5.9904 12.17536l-376.5248 289.4848c-2.7648 2.11968-6.06208 3.18464-9.3696 3.18464-3.25632 0-6.5024-1.03424-9.24672-3.09248-5.50912-4.15744-7.5776-11.48928-5.03808-17.90976l75.71456-191.67232L132.58752 604.17024c-8.48896 0-15.36-6.88128-15.36-15.36l0-153.6c0-8.48896 6.87104-15.36 15.36-15.36l443.72992 0-75.71456-191.68256c-2.53952-6.42048-0.47104-13.75232 5.04832-17.90976 5.50912-4.15744 13.12768-4.13696 18.60608 0.09216l376.5248 289.4848C904.56064 502.7328 906.77248 507.22816 906.77248 512z" p-id="1062" fill="#34B7EF"></path></svg></div>',{visibility:"hidden",width:t+"px",height:e+"px",position:"absolute"});return i.setAttribute("draggable","true"),l.addEventListener(i,"dragstart",(function(){var t=i.hoverNode,e={shape:"bpmn-base",source:t.id,anchorIndex:i.getAttribute("anchorIndex")},r=t.getBBox(),o=n.getDelegation([{isEdge:!0}]);n.setSignal("dragEdge",!0),n.beginAdd("edge",e),n.set("addEdgeConfig",{addModel:e,delegation:o,startPoint:{x:r.centerX,y:r.centerY},sourceItem:t}),n.hideArrowController()})),r.push(i),i}},{key:"showArrowController",value:function(t){this.get("arrowController").controllers.forEach((function(e){e.show(),e.hoverNode=t}))}},{key:"hideArrowController",value:function(){this.get("arrowController").controllers.forEach((function(t){t.hide()}))}},{key:"_initArrowController",value:function(){var t=this.getGraph().getGraphContainer(),e=this.get("arrowController"),n=e.thickness,r=e.long,i=this._createArrowController(n,r),o=this._createArrowController(n,r),a=this._createArrowController(r,n),c=this._createArrowController(r,n);t.appendChild(i),t.appendChild(o),t.appendChild(a),t.appendChild(c),e.topArrow=i,e.bottomArrow=o,e.leftArrow=a,e.rightArrow=c}},{key:"bindEvent",value:function(){var t=this;a(c(e.prototype),"bindEvent",this).call(this);var n=this.getGraph();n.on("beforepanitem",(function(){t.hideArrowController()})),n.on("afterviewportchange",(function(){t.hideArrowController()}))}}])&&i(n.prototype,r),f&&i(n,f),e}();f.setRegister(h,"bpmn","diagram"),t.exports=h},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s=n(7),f=n(1),l=n(2),h=n(65),d=n(66),p=n(68),g=n(72),v=[h,n(73),g,d,p,n(74)],m=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r={shortcut:{copy:!0,paste:!0,selectAll:!0,addGroup:!0,unGroup:!0},graph:{minZoom:.2,maxZoom:2},graphConstructor:s.Graph,noEndEdge:!0},i={};return l.each(v,(function(t){l.mix(i,t.CFG)})),l.mix(!0,r,i,t),(n=o(this,c(e).call(this,r))).isFlow=!0,n}var n,r,h;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,f),n=e,(r=[{key:"_init",value:function(){var t=this;a(c(e.prototype),"_init",this).call(this),l.each(v,(function(e){e.INIT&&t[e.INIT]()}))}},{key:"bindEvent",value:function(){var t=this;a(c(e.prototype),"bindEvent",this).call(this),this.on("beforeitemactived",(function(e){var n=e.item,r=t.get("_graph").getShapeObj(n).getActivedOutterStyle(n);n.isNode&&t.addOutterShape(n,r)})),this.on("beforeitemunactived",(function(e){var n=e.item;(n.isNode||n.isGroup)&&t.clearOutterShape(n)})),this.on("beforeitemselected",(function(e){var n=e.item,r=t.get("_graph").getShapeObj(n).getSelectedOutterStyle(n);(n.isNode||n.isGroup)&&t.addOutterShape(n,r)})),this.on("beforeitemunselected",(function(e){var n=e.item;(n.isNode||n.isGroup)&&t.clearOutterShape(n)}))}}])&&i(n.prototype,r),h&&i(n,h),e}();l.each(v,(function(t){l.mix(m.prototype,t.AUGMENT)})),f.setRegister(m,"diagram","page"),t.exports=m},function(t,e){t.exports={gridStyle:{stroke:"#A3B1BF",lineWidth:.5},cursor:{panningCanvas:"-webkit-grabbing",beforePanCanvas:"-webkit-grab"},wheelPanRatio:.3,alignLineStyle:{stroke:"#FA8C16",lineWidth:1},nodeDelegationStyle:{stroke:"#1890FF",fill:"#1890FF",fillOpacity:.08,lineDash:[4,4],radius:4,lineWidth:1},edgeDelegationStyle:{stroke:"#1890FF",lineDash:[4,4],lineWidth:1}}},function(t,e,n){var r=n(18);n(32),n(33),t.exports=r},function(t,e,n){var r=n(13);n(75),n(80),t.exports=r},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s=n(1),f=n(16),l=n(24),h=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r={graph:{modes:{default:["panBlank","hoverGroupActived","keydownCmdWheelZoom","clickEdgeSelected","clickNodeSelected","clickCanvasSelected","clickGroupSelected","hoverNodeActived","hoverEdgeActived","hoverButton","clickCollapsedButton","clickExpandedButton","wheelChangeViewport","keydownShiftMultiSelected","dragNodeAddToGroup","dragOutFromGroup","panItem","hoverEdgeControlPoint","dragEdgeControlPoint"],add:["dragPanelItemAddNode","processAddEdge"],readOnly:["panCanvas"],move:["panCanvas"],multiSelect:["dragMultiSelect"]},mode:"default",defaultIntersectBox:"circle",nodeDefaultShape:"koni-base",edgeDefaultShape:"koni-base",groupDefaultShape:"koni-base",minZoom:.5,maxZoom:2},orbit:{satellite:["forkAndLink"]},anchorLink:!1,noEndEdge:!1};return l.mix(!0,r,{},t),(n=o(this,c(e).call(this,r))).isKoni=!0,n}var n,r,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,f),n=e,(r=[{key:"bindEvent",value:function(){a(c(e.prototype),"bindEvent",this).call(this);var t=this.getGraph();t.on("afterchange",(function(e){var n=e.item,r=e.action,i=e.originModel,o=e.updateModel;if(n&&n.isEdge)if("add"===r||"remove"===r){var a=n.getSource(),c=n.getTarget();l.getParallelEdges(a,c,!0).forEach((function(t){t.update()}))}else if("update"===r){var u=t.find(i.source),s=t.find(i.target),f=[];if(l.getParallelEdges(u,s,!0).forEach((function(t){t.update()})),l.isNil(o.target)&&!l.isNil(o.source)){var h=t.find(o.source);f=l.getParallelEdges(h,s,!0)}else if(!l.isNil(o.target)&&l.isNil(o.source)){var d=t.find(o.target);f=l.getParallelEdges(u,d,!0)}else if(!l.isNil(o.target)&&!l.isNil(o.source)){var p=t.find(o.source),g=t.find(o.target);f=l.getParallelEdges(p,g,!0)}f.forEach((function(t){t.update()}))}"changeData"===r&&t.getEdges().forEach((function(t){t.update()})),t.draw()}))}}])&&i(n.prototype,r),s&&i(n,s),e}();s.setRegister(h,"koni","diagram"),t.exports=h},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(6),a={};function c(t){return t.getCurrentPage().getSelected().length>0}function u(t){var e=t.getCurrentPage();this.snapShot=e.save(),this.selectedItems=e.getSelected().map((function(t){return t.id})),this.method&&(o.isString(this.method)?e[this.method]():this.method(t))}function s(t){var e=t.getCurrentPage();e.read(this.snapShot),e.setSelected(this.selectedItems,!0)}function f(t){return t.getCurrentPage().getMode()!==this.toMode}function l(t){var e=t.getCurrentPage();this.fromMode=e.getMode(),e.changeMode(this.toMode)}function h(t){t.getCurrentPage().changeMode(this.fromMode)}function d(t){var e={},n=[];return t.forEach((function(t){var i=t.model,a=o.mix(!0,{},r({},i,{id:o.guid()}));e[i.id]=a.id,n.push(r({},t,{model:a}))})),n.forEach((function(t){var n=t.model;if(n.parent){var r=e[n.parent];r?n.parent=r:delete n.parent}})),n.sort((function(t,e){return t.index-e.index})),n}a.list=[],a.registerCommand=function(t,e,n){if(a[t])o.mix(a[t],e);else{var i=r({enable:function(){return!0},init:function(){},execute:u,back:s,shortcutCodes:void 0,executeTimes:1,name:t,queue:!0},e);n&&a[n]&&(i=o.mix({},a[n],e)),a[t]=i,a.list.push(i)}},a.execute=function(t,e,n){var r=o.mix(!0,{},a[t],n),i=e.get("_command");return r.enable(e)&&(r.init(),r.queue&&(i.queue.splice(i.current,i.queue.length-i.current,r),i.current+=1),e.emit("beforecommandexecute",{command:r}),r.execute(e),e.emit("aftercommandexecute",{command:r}),e.setCommandDOMenable()),r},a.enable=function(t,e){return a[t].enable(e)},a.registerCommand("common",{back:s}),a.registerCommand("copyAdjacent",{enable:function(){return this.copyNode&&this.copyNode.isNode&&this.x&&this.y},execute:function(t){var e=this.copyNode,n=t.getCurrentPage(),r=n.getGraph(),i=e.getModel(),a=o.clone(i);a.id=o.guid(),a.x=this.x,a.y=this.y;var c=r.add("node",a),u=r.add("edge",{source:i.id,target:a.id});1===this.executeTimes&&(this.addIds=[c.id,u.id],this.page=n)},back:function(){var t=this.page.getGraph();this.addIds.forEach((function(e){t.remove(e)}))}}),a.registerCommand("add",{enable:function(){return this.type&&this.addModel},execute:function(t){var e=t.getCurrentPage(),n=e.getGraph().add(this.type,this.addModel);1===this.executeTimes&&(this.addId=n.id,this.page=e)},back:function(){this.page.getGraph().remove(this.addId)}}),a.registerCommand("update",{enable:function(){return this.itemId&&this.updateModel},execute:function(t){var e=t.getCurrentPage(),n=e.getGraph(),r=n.find(this.itemId);1===this.executeTimes&&(this.originModel=o.getContrast(r.getModel(),this.updateModel),this.page=e),n.update(r,this.updateModel)},back:function(){var t=this.page.getGraph(),e=t.find(this.itemId);t.update(e,this.originModel)}}),a.registerCommand("redo",{queue:!1,enable:function(t){var e=t.get("_command"),n=e.queue;return e.current<n.length},execute:function(t){var e=t.get("_command");e.queue[e.current].execute(t),e.current+=1},shortcutCodes:[["metaKey","shiftKey","z"],["ctrlKey","shiftKey","z"]]}),a.registerCommand("undo",{queue:!1,enable:function(t){return t.get("_command").current>0},execute:function(t){var e=t.get("_command"),n=e.queue[e.current-1];n.executeTimes++,n.back(t),e.current-=1},shortcutCodes:[["metaKey","z"],["ctrlKey","z"]]}),a.registerCommand("copy",{queue:!1,enable:c,method:function(t){var e=t.getCurrentPage().getSelected(),n=t.get("_command"),i=e.map((function(t){return t.getGraphicGroup()})),a=o.getChildrenBBox(i);n.clipboard=[],e.forEach((function(t){o.traverseTree(t,(function(t){var e=t.getModel(),r=t.getGraphicGroup();n.clipboard.push({type:t.type,index:o.getIndex(r),model:e})}),(function(t){return t.getChildren&&t.getChildren()}),!0)})),t.set("copyCenterBox",r({},a))}}),a.registerCommand("pasteHere",{enable:function(t){return t.get("_command").clipboard.length>0},method:function(t){var e=t.getCurrentPage(),n=t.get("_command"),r=this.pasteData?this.pasteData:d(n.clipboard),i=this.copyCenterBox?this.copyCenterBox:t.get("copyCenterBox"),a=this.contextmenuPoint?this.contextmenuPoint:t.get("contextmenuPoint");e.clearSelected(),this.copyCenterBox=o.clone(i),this.pasteData=o.clone(r),this.contextmenuPoint=o.clone(a),r.forEach((function(t){var n=t.model;n.x&&(n.x+=a.x-i.minX),n.y&&(n.y+=a.y-i.minY),e.add(t.type,n)}))},back:s}),a.registerCommand("paste",{enable:function(t){return t.get("_command").clipboard.length>0},method:function(t){var e=t.getCurrentPage(),n=t.get("_command"),r=this.pasteData?this.pasteData:d(n.clipboard);e.clearSelected(),this.pasteData=o.clone(r),r.forEach((function(t){var n=t.model;n.x&&(n.x+=10),n.y&&(n.y+=10),e.add(t.type,n)}))},back:s}),a.registerCommand("addGroup",{init:function(){this.addGroupId=o.guid()},enable:function(t){return t.getCurrentPage().getSelected().length>1},method:function(t){t.getCurrentPage().addGroup({id:this.addGroupId})},back:s}),a.registerCommand("unGroup",{enable:function(t){var e=t.getCurrentPage().getSelected();return 1===e.length&&e[0].isGroup},method:"unGroup",back:s}),a.registerCommand("delete",{getDeleteItems:function(t){var e=t.getCurrentPage(),n=e.getGraph(),r=this.itemIds?this.itemIds.map((function(t){return n.find(t)})):e.getSelected();return r.filter((function(t){return!1!==t.deleteable}))},enable:function(t){return this.getDeleteItems(t).length>0},method:function(t){var e=t.getCurrentPage(),n=this.getDeleteItems(t),r=e.getGraph();e.emit("beforedelete",{items:n}),o.each(n,(function(t){r.remove(t)})),e.emit("afterdelete",{items:n}),this.itemIds=n.map((function(t){return t.getModel().id}))},back:s,shortcutCodes:["Delete","Backspace"]}),a.registerCommand("selectAll",{method:function(t){var e=t.getCurrentPage();e.getGraph().getItems().forEach((function(t){e.setSelected(t,!0)}))},back:s,shortcutCodes:[["metaKey","a"]]}),a.registerCommand("toBack",{enable:c,method:"toBack",back:s}),a.registerCommand("toFront",{enable:c,method:"toFront",back:s}),a.registerCommand("clear",{enable:function(t){return t.getCurrentPage().getItems().length>0},method:"clear",back:s}),a.registerCommand("multiSelect",{enable:f,toMode:"multiSelect",execute:l,back:h}),a.registerCommand("move",{enable:f,toMode:"move",execute:l,back:h}),t.exports=a},function(t,e,n){t.exports=n(2)},function(t,e,n){"use strict";n.r(e),n.d(e,"mouseEnterEdge",(function(){return i})),n.d(e,"mouseLeaveEdge",(function(){return o})),n.d(e,"startMove",(function(){return a})),n.d(e,"endMove",(function(){return c})),n.d(e,"mouseMoveEdge",(function(){return u})),n.d(e,"mergeLine",(function(){return s}));var r=n(0);function i(t){var e=t.graph,n=t.bpmn,i=t.ev,o=t.backUpCursor,a=i.item,c=a.model.controlPoints,u=Object(r.e)({x:i.x,y:i.y},c),s=u.index,f=u.vertical;null!=s&&(o&&(a._cursor=n.getGraph().getMouseEventWrapper().style.cursor),e.update(a,{hold:{index:s,vertical:f}}),f?n.css({cursor:"col-resize"}):n.css({cursor:"row-resize"}))}function o(t){var e=t.graph,n=t.bpmn,r=t.item;r._cursor&&n.css({cursor:r._cursor}),delete r._cursor,e.update(r,{hold:void 0})}function a(t,e){var n=e.item;t.update(n,{lastMouse:{x:e.x,y:e.y}})}function c(t){var e=t.graph,n=t.item;e.update(n,{lastMouse:void 0,moveDelta:void 0})}function u(t,e,n){var r;r=e.model&&e.model.hold&&e.model.hold.vertical?{x:n.x-e.model.lastMouse.x,y:0}:{x:0,y:n.y-e.model.lastMouse.y},t.update(e,{edgeMoved:r,modifiedByMouse:!0})}function s(t,e,n){var r,i=t.model,o=e||i.hold.index,a=i.controlPoints;null===n&&(n=i.hold.vertical);var c=[];return o>=2&&(n?Math.abs(a[o-2].x-a[o].x)<=3&&(r=[{x:a[o-2].x,y:a[o-2].y},{x:a[o-2].x,y:a[o+1].y}],c.push(o-1,o),i.hold.index=o-2,i.controlPoints[o+1].x=a[o-2].x):Math.abs(a[o-2].y-a[o].y)<=3&&(r=[{x:a[o-2].x,y:a[o-2].y},{x:a[o+1].x,y:a[o-2].y}],c.push(o-1,o),i.hold.index=o-2,i.controlPoints[o+1].y=a[o-2].y)),o<=a.length-4&&(n?Math.abs(a[o].x-a[o+2].x)<=3&&(r?(r[1]={x:a[o-2].x,y:a[o+3].y},i.controlPoints[o+3].x=a[o-2].x):(r=[{x:a[o+3].x,y:a[o].y},{x:a[o+3].x,y:a[o+3].y}],i.controlPoints[o].x=a[o+3].x),c.push(o+1,o+2)):Math.abs(a[o].y-a[o+2].y)<=3&&(r?(r[1]={x:a[o+3].x,y:a[o-2].y},i.controlPoints[o+3].y=a[o-2].y):(r=[{x:a[o].x,y:a[o+3].y},{x:a[o+3].x,y:a[o+3].y}],i.controlPoints[o].y=a[o+3].y),c.push(o+1,o+2))),c&&c.length&&a.splice(c[0],c.length),r}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s=n(27),f=n(6),l=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=(n=i(this,o(e).call(this))).getDefaultCfg();return n._cfg=f.mix(!0,{},n._cfg,r,t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,s),c(e,[{key:"getDefaultCfg",value:function(){return{}}}]),c(e,[{key:"get",value:function(t){return this._cfg[t]}},{key:"set",value:function(t,e){this._cfg[t]=e}},{key:"destroy",value:function(){this._cfg={},this.destroyed=!0}}]),e}();t.exports=l},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(4);t.exports=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},i,{getParallelEdges:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.getEdges().filter((function(t){var r=t.getModel();return r.target===e.id||n&&r.source===e.id}))},object2array:function(t){var e=[];return i.each(t,(function(t){e.push(t)})),e}})},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=n(9),s=n(2),f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var n,r,f;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u),n=e,(r=[{key:"getDefaultCfg",value:function(){return{name:"",render:function(){return"<button>satellite</button>"},bindEvent:function(){return[]}}}},{key:"_renderDOM",value:function(){var t=s.createDOM(this.render(this.diagram));return this.dom=t,t.isSatellite=!0,t}},{key:"getDOM",value:function(){return this.dom||this._renderDOM()}},{key:"init",value:function(){var t=this.getDOM(),e=this.diagram.getGraph().getGraphContainer();t&&(t.css({position:"absolute",visibility:"hidden"}),e.appendChild(t),t&&this.bindEvent(t,this.diagram))}},{key:"enable",value:function(){return!0}},{key:"show",value:function(){this.getDOM().show()}},{key:"hide",value:function(){this.getDOM().hide()}},{key:"isVisible",value:function(){return"hidden"!==this.getDOM().style.visibility}},{key:"destroy",value:function(){var t=this.events;t&&t.forEach((function(t){t.remove()}))}}])&&i(n.prototype,r),f&&i(n,f),e}();t.exports=f},function(t,e,n){t.exports=n(2)},function(t,e,n){var r=n(26),i=n(6),o=n(15);n(7),r.Editor=r,r.Util=i,r.Diagram=n(16),r.Page=n(1),r.Flow=n(95),r.Koni=n(102),r.Mind=n(107),r.Toolbar=n(121),r.Contextmenu=n(122),r.Command=n(15),r.BPMN=n(123),r.registerBehaviour=r.Page.registerBehaviour,r.registerNode=r.Page.registerNode,r.registerEdge=r.Page.registerEdge,r.registerGroup=r.Page.registerGroup,r.registerGuide=r.Page.registerGuide,r.registerCommand=o.registerCommand,t.exports=r},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=n(21),s=n(6),f=n(15),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var n,r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u),n=e,(r=[{key:"getDefaultCfg",value:function(){return{_components:[],_command:{zoomDelta:.1,queue:[],current:0,clipboard:[]}}}},{key:"_getComponentsBy",value:function(t){return this.get("_components").filter(t)}},{key:"_bindCommands",value:function(t){var e=this;s.each(t,(function(t){var n=t.dataset,r=n.command;f[r]?s.addEventListener(t,"click",(function(){e.getCurrentPage().focusGraphWrapper(),e.executeCommand(r,n)})):console.warn("请设置有效的命令!")}))}},{key:"getCommands",value:function(){return this.get("_command").queue}},{key:"getCurrentCommand",value:function(){var t=this.get("_command");return t.queue[t.current-1]}},{key:"executeCommand",value:function(t,e){s.isString(t)?f.execute(t,this,e):f.execute("common",this,{method:t},e)}},{key:"commandEnable",value:function(t){return f.enable(t,this)}},{key:"setCommandDOMenable",value:function(){var t=this,e=this.getComponentsByType("toolbar"),n=this.getComponentsByType("contextmenu"),r=[];e.forEach((function(t){s.each(t.getCommandDoms(),(function(t){r.push(t)}))})),n.forEach((function(t){s.each(t.getCommandDoms(),(function(t){r.push(t)}))})),s.each(r,(function(e){var n=e.dataset.command;f.enable(n,t)?e.classList.remove("disable"):e.classList.add("disable")}))}},{key:"_onPageStatusChange",value:function(){this.setCommandDOMenable()}},{key:"_afterAddContextmenu",value:function(){this.getCurrentPage()&&this.setCommandDOMenable()}},{key:"_afterAddPage",value:function(t){var e=this;this.setCommandDOMenable(),t.on("statuschange",(function(t){e._onPageStatusChange(t)})),t.on("mousedown",(function(){e.getComponentsByType("contextmenu").forEach((function(t){t.hide()}))})),t.on("contextmenu",(function(n){var r=e.getComponentsByType("contextmenu"),i=t.getGraph().getCanvas().get("el"),o=s.getBoundingClientRect(i),a={x:n.x,y:n.y},c=n.item;c&&!c.isSelected&&(t.clearSelected(),t.setSelected(n.item,!0)),e.set("contextmenuPoint",a),n.domEvent.preventDefault(),r.forEach((function(t){t.show(),t.contextmenuPoint=a,t.move(o.left+n.domX,o.top+n.domY)}))})),t.on("statuschange",(function(t){e.getComponentsByType("contextmenu").forEach((function(e){e.switch(t.status)}))})),this._bindShortcut(t)}},{key:"_beforeAddToolbar",value:function(t){var e=t.getCommandDoms();this._bindCommands(e)}},{key:"_beforeAddContextmenu",value:function(t){var e=t.getCommandDoms();t.bindEvent(),this._bindCommands(e)}},{key:"getComponentsByType",value:function(t){return this._getComponentsBy((function(e){return e.type===t}))}},{key:"getCurrentPage",value:function(){var t,e=this.getComponentsByType("page");return e.every((function(e){return!e.isActived||(t=e,!1)})),t||(t=e[0]),t}},{key:"getComponents",value:function(){return this.get("_components")}},{key:"_shortcutEnable",value:function(t,e){for(var n=t.shortcutCodes,r=s.getKeyboradKey(e),i=!1,o=0;o<n.length;o++){var a=n[o];if(s.isArray(a)){for(var c=a.length,u=!0,f=0;f<c-1;f++)if(!e[a[f]]){u=!1;break}a[c-1]!==r&&a[c-1]!==s.lowerFirst(r)||!u||(i=!0)}else a===r&&(i=!0);if(i)break}return i}},{key:"_bindShortcut",value:function(t){var e=this,n=t.get("shortcut");t.getGraph().on("keydown",(function(t){var r=e.getComponentsByType("contextmenu"),i=t.domEvent;r.forEach((function(t){t.hide()})),i.preventDefault();for(var o=f.list.filter((function(t){return t.shortcutCodes&&n[t.name]})),a=0;a<o.length;a++){var c=o[a];if(e._shortcutEnable(c,i))return e.executeCommand(c.name),!1}}))}},{key:"add",value:function(t){var e=this.get("_components"),n=s.upperFirst(t.type);t.editor=this,this["_beforeAdd"+n]&&this["_beforeAdd"+n](t),e.push(t),this["_afterAdd"+n]&&this["_afterAdd"+n](t)}},{key:"destroy",value:function(){this.get("_components").forEach((function(t){t.destroy()}))}}])&&i(n.prototype,r),l&&i(n,l),e}();t.exports=l},function(t,e,n){var r;
/*!
 * EventEmitter v5.2.6 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - https://oli.me.uk/
 * @preserve
 */!function(e){"use strict";function i(){}var o=i.prototype,a=e.EventEmitter;function c(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}o.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},o.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},o.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===c(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=c(i[r],e))&&i[r].splice(n,1);return this},o.off=u("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):a.call(this,r,i));return this},o.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(t,e){var n,r,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},o.trigger=u("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return e.EventEmitter=a,i},void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}("undefined"!=typeof window?window:this||{})},function(t,e,n){var r=n(7).Util;t.exports={getGroupIconPath:function(){return"M9.75,9.60000014 L3.75,9.60000014 C3.33578644,9.60000014 3,9.2865995 3,8.90000022 C3,8.51340093 3.33578644,8.20000029 3.75,8.20000029 L9.75,8.20000029 C10.1642136,8.20000029 10.5,8.51340093 10.5,8.90000022 C10.5,9.2865995 10.1642136,9.60000014 9.75,9.60000014 M3,11.6999999 C3,11.3134006 3.33578644,11 3.75,11 L6.75,11 C7.16421356,11 7.5,11.3134006 7.5,11.6999999 C7.5,12.0865992 7.16421356,12.3999999 6.75,12.3999999 L3.75,12.3999999 C3.33578644,12.3999999 3,12.0865992 3,11.6999999 M3.75,13.7999997 L6.75,13.7999997 C7.16421356,13.7999997 7.5,14.1134004 7.5,14.4999996 C7.5,14.8865989 7.16421356,15.1999996 6.75,15.1999996 L3.75,15.1999996 C3.33578644,15.1999996 3,14.8865989 3,14.4999996 C3,14.1134004 3.33578644,13.7999997 3.75,13.7999997 M16.4985,4.00000072 L1.5015,4.00000072 C0.674533504,3.99922416 0.00289396564,4.6232696 0,5.39510058 L0,16.6048994 C0.00289396564,17.3767304 0.674533504,18.0007758 1.5015,17.9999993 L16.4985,17.9999993 C17.3254665,18.0007758 17.997106,17.3767304 18,16.6048994 L18,5.39510058 C17.997106,4.6232696 17.3254665,3.99922416 16.4985,4.00000072M19,13.9999993 L19,3 L5,3 L5,1.39510058 C5.00289397,0.623269599 5.6745335,-0.00077583787 6.5015,7.23978642e-07 L21.4985,7.23978642e-07 C22.3254665,-0.00077583787 22.997106,0.623269599 23,1.39510058 L23,12.6048994 C22.997106,13.3767304 22.3254665,14.0007758 21.4985,13.9999993 L19,13.9999993 Z"},getCollapsedButtonPath:function(){return r.getRectPath(0,0,14,14,2)+"M3,7L11,7"},getExpandedButtonPath:function(){return r.getRectPath(0,0,14,14,2)+"M3,7L11,7M7,3L7,11"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.presetPrimaryColors=e.presetPalettes=e.generate=void 0;var r,i=n(30),o=(r=i)&&r.__esModule?r:{default:r},a={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},c={};Object.keys(a).forEach((function(t){c[t]=(0,o.default)(a[t])})),e.generate=o.default,e.presetPalettes=c,e.presetPrimaryColors=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=[],n=(0,o.default)(t),r=l;r>0;r-=1){var i=n.toHsv(),a=(0,o.default)({h:d(i,r,!0),s:p(i,r,!0),v:g(i,r,!0)}).toHexString();e.push(a)}e.push(n.toHexString());for(var c=1;c<=h;c+=1){var u=n.toHsv(),s=(0,o.default)({h:d(u,c),s:p(u,c),v:g(u,c)}).toHexString();e.push(s)}return e};var r,i=n(31),o=(r=i)&&r.__esModule?r:{default:r},a=2,c=16,u=5,s=5,f=15,l=5,h=4;function d(t,e,n){var r=void 0;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-a*e:Math.round(t.h)+a*e:n?Math.round(t.h)+a*e:Math.round(t.h)-a*e)<0?r+=360:r>=360&&(r-=360),r}function p(t,e,n){if(0===t.h&&0===t.s)return t.s;var r=void 0;return(r=n?Math.round(100*t.s)-c*e:e===h?Math.round(100*t.s)+c:Math.round(100*t.s)+u*e)>100&&(r=100),n&&e===l&&r>10&&(r=10),r<6&&(r=6),r}function g(t,e,n){return n?Math.round(100*t.v)+s*e:Math.round(100*t.v)-f*e}},function(t,e,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,c=0,u=i.round,s=i.min,f=i.max,l=i.random;function h(t,e){if(e=e||{},(t=t||"")instanceof h)return t;if(!(this instanceof h))return new h(t,e);var n=function(t){var e,n,r,c={r:0,g:0,b:0},u=1,l=null,h=null,d=null,p=!1,g=!1;return"string"==typeof t&&(t=function(t){t=t.replace(o,"").replace(a,"").toLowerCase();var e,n=!1;if(k[t])t=k[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=z.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=z.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=z.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=z.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=z.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=z.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=z.hex8.exec(t))?{r:L(e[1]),g:L(e[2]),b:L(e[3]),a:G(e[4]),format:n?"name":"hex8"}:(e=z.hex6.exec(t))?{r:L(e[1]),g:L(e[2]),b:L(e[3]),format:n?"name":"hex"}:(e=z.hex4.exec(t))?{r:L(e[1]+""+e[1]),g:L(e[2]+""+e[2]),b:L(e[3]+""+e[3]),a:G(e[4]+""+e[4]),format:n?"name":"hex8"}:!!(e=z.hex3.exec(t))&&{r:L(e[1]+""+e[1]),g:L(e[2]+""+e[2]),b:L(e[3]+""+e[3]),format:n?"name":"hex"}}(t)),"object"==typeof t&&(H(t.r)&&H(t.g)&&H(t.b)?(e=t.r,n=t.g,r=t.b,c={r:255*T(e,255),g:255*T(n,255),b:255*T(r,255)},p=!0,g="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(l=D(t.s),h=D(t.v),c=function(t,e,n){t=6*T(t,360),e=T(e,100),n=T(n,100);var r=i.floor(t),o=t-r,a=n*(1-e),c=n*(1-o*e),u=n*(1-(1-o)*e),s=r%6;return{r:255*[n,c,a,a,u,n][s],g:255*[u,n,n,c,a,a][s],b:255*[a,a,u,n,n,c][s]}}(t.h,l,h),p=!0,g="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(l=D(t.s),d=D(t.l),c=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=T(t,360),e=T(e,100),n=T(n,100),0===e)r=i=o=n;else{var c=n<.5?n*(1+e):n+e-n*e,u=2*n-c;r=a(u,c,t+1/3),i=a(u,c,t),o=a(u,c,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,l,d),p=!0,g="hsl"),t.hasOwnProperty("a")&&(u=t.a)),u=I(u),{ok:p,format:t.format||g,r:s(255,f(c.r,0)),g:s(255,f(c.g,0)),b:s(255,f(c.b,0)),a:u}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=c++}function d(t,e,n){t=T(t,255),e=T(e,255),n=T(n,255);var r,i,o=f(t,e,n),a=s(t,e,n),c=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=c>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,l:c}}function p(t,e,n){t=T(t,255),e=T(e,255),n=T(n,255);var r,i,o=f(t,e,n),a=s(t,e,n),c=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,v:c}}function g(t,e,n,r){var i=[N(u(t).toString(16)),N(u(e).toString(16)),N(u(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function v(t,e,n,r){return[N(Y(r)),N(u(t).toString(16)),N(u(e).toString(16)),N(u(n).toString(16))].join("")}function m(t,e){e=0===e?0:e||10;var n=h(t).toHsl();return n.s-=e/100,n.s=B(n.s),h(n)}function y(t,e){e=0===e?0:e||10;var n=h(t).toHsl();return n.s+=e/100,n.s=B(n.s),h(n)}function b(t){return h(t).desaturate(100)}function x(t,e){e=0===e?0:e||10;var n=h(t).toHsl();return n.l+=e/100,n.l=B(n.l),h(n)}function w(t,e){e=0===e?0:e||10;var n=h(t).toRgb();return n.r=f(0,s(255,n.r-u(-e/100*255))),n.g=f(0,s(255,n.g-u(-e/100*255))),n.b=f(0,s(255,n.b-u(-e/100*255))),h(n)}function _(t,e){e=0===e?0:e||10;var n=h(t).toHsl();return n.l-=e/100,n.l=B(n.l),h(n)}function S(t,e){var n=h(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,h(n)}function M(t){var e=h(t).toHsl();return e.h=(e.h+180)%360,h(e)}function P(t){var e=h(t).toHsl(),n=e.h;return[h(t),h({h:(n+120)%360,s:e.s,l:e.l}),h({h:(n+240)%360,s:e.s,l:e.l})]}function O(t){var e=h(t).toHsl(),n=e.h;return[h(t),h({h:(n+90)%360,s:e.s,l:e.l}),h({h:(n+180)%360,s:e.s,l:e.l}),h({h:(n+270)%360,s:e.s,l:e.l})]}function E(t){var e=h(t).toHsl(),n=e.h;return[h(t),h({h:(n+72)%360,s:e.s,l:e.l}),h({h:(n+216)%360,s:e.s,l:e.l})]}function A(t,e,n){e=e||6,n=n||30;var r=h(t).toHsl(),i=360/n,o=[h(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(h(r));return o}function C(t,e){e=e||6;for(var n=h(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],c=1/e;e--;)a.push(h({h:r,s:i,v:o})),o=(o+c)%1;return a}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=I(t),this._roundA=u(100*this._a)/100,this},toHsv:function(){var t=p(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=p(this._r,this._g,this._b),e=u(360*t.h),n=u(100*t.s),r=u(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=d(this._r,this._g,this._b),e=u(360*t.h),n=u(100*t.s),r=u(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[N(u(t).toString(16)),N(u(e).toString(16)),N(u(n).toString(16)),N(Y(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*T(this._r,255))+"%",g:u(100*T(this._g,255))+"%",b:u(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*T(this._r,255))+"%, "+u(100*T(this._g,255))+"%, "+u(100*T(this._b,255))+"%)":"rgba("+u(100*T(this._r,255))+"%, "+u(100*T(this._g,255))+"%, "+u(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+v(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=h(t);n="#"+v(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},h.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:D(t[r]));t=n}return h(t,e)},h.equals=function(t,e){return!(!t||!e)&&h(t).toRgbString()==h(e).toRgbString()},h.random=function(){return h.fromRatio({r:l(),g:l(),b:l()})},h.mix=function(t,e,n){n=0===n?0:n||50;var r=h(t).toRgb(),i=h(e).toRgb(),o=n/100;return h({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},h.readability=function(t,e){var n=h(t),r=h(e);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(t,e,n){var r,i,o=h.readability(t,e);switch(i=!1,(r=function(t){var e,n;return e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},h.mostReadable=function(t,e,n){var r,i,o,a,c=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var s=0;s<e.length;s++)(r=h.readability(t,e[s]))>u&&(u=r,c=h(e[s]));return h.isReadable(t,c,{level:o,size:a})||!i?c:(n.includeFallbackColors=!1,h.mostReadable(t,["#fff","#000"],n))};var k=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=h.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(k);function I(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function T(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=s(e,f(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function B(t){return s(1,f(0,t))}function L(t){return parseInt(t,16)}function N(t){return 1==t.length?"0"+t:""+t}function D(t){return t<=1&&(t=100*t+"%"),t}function Y(t){return i.round(255*parseFloat(t)).toString(16)}function G(t){return L(t)/255}var X,F,R,z=(F="[\\s|\\(]+("+(X="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",R="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",{CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+R),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+R),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+R),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(t){return!!z.CSS_UNIT.exec(t)}t.exports?t.exports=h:void 0===(r=function(){return h}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){var r=n(18);function i(t){var e=t.getCurrentPage();this.matrixCache=e.getMatrix().slice(0),this._zoom(t),e.updateStatus()}function o(t){t.getCurrentPage().updateMatrix(this.matrixCache)}r.registerCommand("zoomTo",{_zoom:function(t){t.getCurrentPage().zoom(Number(this.zoom))},queue:!1,execute:i,back:o}),r.registerCommand("zoomIn",{enable:function(t){var e=t.getCurrentPage(),n=e.getMaxZoom(),r=e.getMinZoom(),i=e.getZoom();return i<n||i===r},_zoom:function(t){var e=t.getCurrentPage(),n=t.get("_command"),r=e.getZoom(),i=e.getMaxZoom(),o=r+n.zoomDelta;o>=i&&(o=i),e.zoom(o)},queue:!1,execute:i,back:o,shortcutCodes:[["metaKey","="],["ctrlKey","="]]}),r.registerCommand("zoomOut",{enable:function(t){var e=t.getCurrentPage(),n=e.getMaxZoom(),r=e.getMinZoom(),i=e.getZoom();return i>r||i===n},_zoom:function(t){var e=t.getCurrentPage(),n=e.getZoom(),r=e.getMinZoom(),i=n-t.get("_command").zoomDelta;i<=r&&(i=r),e.zoom(i)},queue:!1,execute:i,back:o,shortcutCodes:[["metaKey","-"],["ctrlKey","-"]]}),r.registerCommand("autoZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().autoZoom()},queue:!1,execute:i,back:o}),r.registerCommand("resetZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().resetZoom()},queue:!1,execute:i,back:o,shortcutCodes:[["metaKey","0"],["ctrlKey","0"]]})},function(t,e,n){var r=n(18);r.registerCommand("collapseExpand",{getItem:function(t){var e=t.getCurrentPage(),n=e.getGraph();return this.itemId?n.find(this.itemId):e.getSelected()[0]},enable:function(t){var e=this.getItem(t);return e&&!1!==e.collapseExpand&&e.getChildren().length>0},execute:function(t){var e=t.getCurrentPage(),n=e.getGraph(),r=this.getItem(t);r.getModel().collapsed?(n.update(r,{collapsed:!1}),r.getInnerEdges&&r.getInnerEdges().forEach((function(t){t.update()})),this.toCollapsed=!1):(n.update(r,{collapsed:!0}),this.toCollapsed=!0),e.clearSelected(),e.setSelected(r,!0),1===this.executeTimes&&(this.itemId=r.id)},back:function(t){var e=t.getCurrentPage(),n=e.getGraph(),r=this.getItem(t);this.toCollapsed?n.update(r,{collapsed:!1}):n.update(r,{collapsed:!0}),e.clearSelected(),e.setSelected(r,!0)},shortcutCodes:[["metaKey","/"],["ctrlKey","/"]]}),r.registerCommand("collapse",{enable:function(t){var e=this.getItem(t);return e&&!1!==e.collapseExpand&&e.getChildren().length>0&&!e.getModel().collapsed}},"collapseExpand"),r.registerCommand("expand",{enable:function(t){var e=this.getItem(t);return e&&!1!==e.collapseExpand&&e.getChildren().length>0&&e.getModel().collapsed}},"collapseExpand")},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(4),o={INIT:"_initGraph"};o.AUGMENT={_initGraph:function(){var t=this.get("graph"),e=new(this.get("graphConstructor"))(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({page:this},t));e.draw(),this.set("_graph",e)},changeMode:function(t){this.get("_graph").changeMode(t)},updateMatrix:function(t){this.get("_graph").updateMatrix(t)},getMode:function(){return this.get("_graph").get("mode")},getMatrix:function(){return this.get("_graph").getMatrix()},getZoom:function(){return this.get("_graph").getMatrix()[0]},getMaxZoom:function(){return this.get("_graph").get("maxZoom")},getMinZoom:function(){return this.get("_graph").get("minZoom")},getGraph:function(){return this.get("_graph")},getItems:function(){return this.get("_graph").getItems()},getNodes:function(){return this.get("_graph").getNodes()},translate:function(t,e){return this.get("_graph").translate(t,e)},getEdges:function(){return this.get("_graph").getEdges()},getGroups:function(){return this.get("_graph").getGroups()},render:function(){return this.get("_graph").render(),this},add:function(t,e){return this.get("_graph").add(t,e),this},focusPointByDom:function(t){return this.get("_graph").focusPointByDom(t),this},focusPoint:function(t){return this.get("_graph").focusPoint(t),this},find:function(t){return this.get("_graph").find(t)},focus:function(t){var e=this.get("_graph"),n=e.find(t);if(n){var r=n.getCenter();e.focusPoint(r)}return this},save:function(){return this.get("_graph").save()},read:function(t){this.get("_graph").read(t)},clear:function(){this.get("_graph").clear()},remove:function(t){return this.get("_graph").remove(t),this},update:function(t,e){return this.get("_graph").update(t,e),this},zoom:function(t,e){return this.get("_graph").zoom(t,e),this},getDomPoint:function(t){return this.get("_graph").getDomPoint(t)},getPoint:function(t){return this.get("_graph").getPoint(t)},zoomByDom:function(t,e){var n=this.get("_graph"),r=n.getPoint(t);return n.zoom(r,e),this},autoZoom:function(){return this.get("_graph").autoZoom(),this},resetZoom:function(){var t=this.get("_graph"),e=t.getWidth(),n=t.getHeight();return t.zoomByDom({x:e/2,y:n/2},1),this},css:function(t){var e=this.get("_graph").getMouseEventWrapper();i.modifyCSS(e,t)},setCapture:function(t){this.get("_graph").getRootGroup().set("capture",t)},destroy:function(){this.get("_graph").destroy()},delete:function(){var t=this.getSelected(),e=this.get("_graph");i.each(t,(function(t){e.remove(t)}))}},t.exports=o},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(36),o=n(4),a={CFG:{grid:void 0},INIT:"_initGrid"};a.AUGMENT={_initGrid:function(){var t=this.get("grid"),e=this.get("_graph");if(t){var n=new i(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({page:this,graph:e},t));this.setController("grid",n)}},showGrid:function(t){var e=this.get("_graph"),n=this.getController("grid");n||(t?o.isObject(t)&&this.set("grid",t):this.set("grid",!0),this._initGrid()),(n=this.getController("grid")).show(),e.draw()},hideGrid:function(){var t=this.get("_graph"),e=this.getController("grid");e&&e.hide(),t.draw()},getGridCell:function(){return this.getController("grid").getCell()}},t.exports=a},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=n(9),s=n(14),f=n(4),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var n,r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u),n=e,(r=[{key:"getDefaultCfg",value:function(){return{cell:16,line:s.gridStyle,type:"point",visible:!0}}},{key:"init",value:function(){this._draw(),this._onViewPortChange(),!this.visible&&this.hide()}},{key:"_onViewPortChange",value:function(){var t=this,e=this.graph;e.on("afterviewportchange",(function(){t.update()})),e.on("beforechangesize",(function(){t.update()}))}},{key:"_draw",value:function(){var t=this.graph,e=this._getPath(),n=t.getRootGroup(),r=f.mix({},this.line),i=t.getMatrix(),o=this.type,a="line"===o?1/i[0]:2/i[0];"point"===o&&(r.lineDash=null),r.lineWidth=a,r.path=e;var c=n.addShape("path",{attrs:r,capture:!1,zIndex:0});f.toBack(c,n),this.gridEl=c}},{key:"show",value:function(){this.gridEl.show(),this.visible=!0}},{key:"hide",value:function(){this.gridEl.hide(),this.visible=!1}},{key:"_getLinePath",value:function(){for(var t=this.graph,e=t.get("width"),n=t.get("height"),r=t.getPoint({x:0,y:0}),i=t.getPoint({x:e,y:n}),o=this.cell,a=Math.ceil(r.x/o)*o,c=Math.ceil(r.y/o)*o,u=[],s=0;s<=i.x-r.x;s+=o){var f=a+s;u.push(["M",f,r.y]),u.push(["L",f,i.y])}for(var l=0;l<=i.y-r.y;l+=o){var h=c+l;u.push(["M",r.x,h]),u.push(["L",i.x,h])}return u}},{key:"_getPointPath",value:function(){for(var t=this.graph,e=t.get("width"),n=t.get("height"),r=t.getPoint({x:0,y:0}),i=2/t.getMatrix()[0],o=t.getPoint({x:e,y:n}),a=this.getCell(),c=Math.ceil(r.x/a)*a,u=Math.ceil(r.y/a)*a,s=[],f=0;f<=o.x-r.x;f+=a)for(var l=c+f,h=0;h<=o.y-r.y;h+=a){var d=u+h;s.push(["M",l,d]),s.push(["L",l+i,d])}return s}},{key:"getCell",value:function(){var t=this.cell,e=this.graph.getMatrix()[0];return t*e<9.6?9.6/e:t}},{key:"_getPath",value:function(){var t=this.type;return this["_get"+f.upperFirst(t)+"Path"]()}},{key:"update",value:function(t){f.mix(this,t);var e=this._getPath(),n=this.gridEl,r=this.graph.getMatrix(),i="line"===this.type?1/r[0]:2/r[0];n.attr("lineWidth",i),n.attr("path",e)}},{key:"destroy",value:function(){var t=this.gridEl;t&&t.remove()}}])&&i(n.prototype,r),l&&i(n,l),e}();t.exports=l},function(t,e){var n={};function r(t,e,n){t.on(n,(function(t){e.emit(n,t)})),t.on("node:"+n,(function(t){e.emit("node:"+n,t)})),t.on("edge:"+n,(function(t){e.emit("edge:"+n,t)})),t.on("group:"+n,(function(t){e.emit("group:"+n,t)})),t.on("anchor:"+n,(function(t){e.emit("anchor:"+n,t)}))}n.INIT="_initEvent",n.AUGMENT={_initEvent:function(){var t=this,e=this.get("_graph");r(e,this,"click"),r(e,this,"dblclick"),r(e,this,"mouseenter"),r(e,this,"mouseleave"),r(e,this,"mousedown"),r(e,this,"mouseup"),r(e,this,"contextmenu"),e.on("keydown",(function(e){t.emit("keydown",e)})),e.on("keyup",(function(e){t.emit("keyup",e)})),e.on("beforechange",(function(e){t.emit("beforechange",e)})),e.on("afterchange",(function(e){t.emit("afterchange",e)})),e.on("afterviewportchange",(function(e){t.emit("afterviewportchange",e),e.updateMatrix[0]!==e.originMatrix[0]&&t.emit("afterzoom",e)})),e.on("beforeviewportchange",(function(e){t.emit("beforeviewportchange",e),e.updateMatrix[0]!==e.originMatrix[0]&&t.emit("beforezoom",e)}))}},t.exports=n},function(t,e,n){var r=n(4),i={CFG:{selectable:!0,multiSelectable:!0,_selectedCache:{}},INIT:"_initSelected"};i.AUGMENT={_initSelected:function(){var t=this,e=this.get("_graph");e.on("afteritemdraw",(function(e){var n=e.item;n.isSelected&&t.setItemSelected(n)})),e.on("beforeitemdestroy",(function(e){t.clearItemSelected(e.item)}))},setItemSelected:function(t){var e=this.get("_graph").getShapeObj(t).getSelectedStyle(t),n=t.getKeyShape();this.get("_selectedCache")[t.id]=t,e&&n.attr(e),t.isEdge&&(t.startArrow&&t.startArrow.attr({fill:e.stroke}),t.endArrow&&t.endArrow.attr({fill:e.stroke}))},clearItemSelected:function(t){var e=this.get("_graph"),n=t.getKeyShape(),i=e.getShapeObj(t),o=i.getStyle(t),a=i.getSelectedStyle(t),c=this.get("_selectedCache"),u=r.getContrast(o,a);n.attr(u),t.isEdge&&(t.startArrow&&t.startArrow.attr({fill:u.stroke}),t.endArrow&&t.endArrow.attr({fill:u.stroke})),delete c[t.id]},setSelected:function(t,e){var n,i=this,o=this.get("selectable"),a=this.get("_graph");o&&(n=r.isArray(t)?t:[t],r.each(n,(function(t){r.isString(t)&&(t=a.find(t)),t&&!t.destroyed&&(e?(i.emit("beforeitemselected",{item:t}),i.setItemSelected(t),i.emit("afteritemselected",{item:t})):(i.emit("beforeitemunselected",{item:t}),i.clearItemSelected(t),i.emit("afteritemunselected",{item:t})),t.isSelected=e,i.updateStatus(),a.draw())})))},getSelected:function(){var t=this.get("_selectedCache");return r.objectToValues(t)},clearSelected:function(){var t=this,e=this.get("_graph"),n=this.get("_selectedCache");r.each(n,(function(e){e.isSelected&&t.setSelected(e,!1)})),e.draw()}},t.exports=i},function(t,e,n){var r=n(4),i={CFG:{activeable:!0,_activedCache:{}},INIT:"_initActived"};i.AUGMENT={_initActived:function(){var t=this,e=this.get("_graph");e.on("afteritemdraw",(function(e){var n=e.item;n.isActived&&t.setItemActived(n)})),e.on("beforeitemdestroy",(function(e){t.clearItemActived(e.item)}))},setItemActived:function(t){var e=this.get("_graph").getShapeObj(t),n=this.get("_activedCache"),r=e.getActivedStyle(t),i=t.getKeyShape();n[t.id]=t,r&&i.attr(r),t.isEdge&&(t.startArrow&&t.startArrow.attr({fill:r.stroke}),t.endArrow&&t.endArrow.attr({fill:r.stroke}))},clearItemActived:function(t){var e=this.get("_graph"),n=t.getKeyShape(),i=e.getShapeObj(t),o=i.getStyle(t),a=this.get("_activedCache"),c=i.getActivedStyle(t),u=r.getContrast(o,c);n.attr(u),t.isEdge&&(t.startArrow&&t.startArrow.attr({fill:u.stroke}),t.endArrow&&t.endArrow.attr({fill:u.stroke})),delete a[t.id]},setActived:function(t,e){var n,i=this,o=this.get("activeable"),a=this.get("_graph");o&&(n=r.isArray(t)?t:[t],r.each(n,(function(t){r.isString(t)&&(t=a.find(t)),t&&!t.destroyed&&(e?(i.emit("beforeitemactived",{item:t}),i.setItemActived(t),i.emit("afteritemactived",{item:t})):(i.emit("beforeitemunactived",{item:t}),i.clearItemActived(t),i.emit("afteritemunactived",{item:t})),t.isActived=e)})),a.draw())},getActived:function(){var t=this.get("_activedCache");return r.objectToValues(t)},clearActived:function(){var t=this,e=this.get("_graph"),n=this.get("_activedCache");r.each(n,(function(e){e.isActived&&t.setActived(e,!1)})),e.draw()}},t.exports=i},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(41),o={CFG:{align:{}},INIT:"_initAlign"};o.AUGMENT={_initAlign:function(){var t=this.get("align"),e=this.get("_graph"),n=new i(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({flow:this,graph:e},t));this.setController("align",n)},align:function(t,e,n){return this.getController("align").align(t,e,n)},clearAlignLine:function(){return this.getController("align").clearAlignLine()}},t.exports=o},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=n(9),s=n(14),f=n(4);function l(t,e){return{line:t,point:e,dis:f.pointLineDistance(t[0],t[1],t[2],t[3],e.x,e.y)}}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var n,r,h;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,u),n=e,(r=[{key:"getDefaultCfg",value:function(){return{line:s.alignLineStyle,item:!0,grid:!1,tolerance:5,_horizontalLines:{},_verticalLines:{},_alignLines:[]}}},{key:"init",value:function(){this.item&&this._cacheBoxLine()}},{key:"_cacheBoxLine",value:function(){var t=this.graph,e=this._horizontalLines,n=this._verticalLines,r=this.item;t.on("afteritemdraw",(function(t){var i=t.item;if(!f.isEdge(i)){var o=i.getBBox();!0===r||"horizontal"===r?(e[i.id+"tltr"]=[o.minX,o.minY,o.maxX,o.minY,i],e[i.id+"lcrc"]=[o.minX,o.centerY,o.maxX,o.centerY,i],e[i.id+"blbr"]=[o.minX,o.maxY,o.maxX,o.maxY,i]):"center"===r&&(e[i.id+"lcrc"]=[o.minX,o.centerY,o.maxX,o.centerY,i]),!0===r||"vertical"===r?(n[i.id+"tlbl"]=[o.minX,o.minY,o.minX,o.maxY,i],n[i.id+"tcbc"]=[o.centerX,o.minY,o.centerX,o.maxY,i],n[i.id+"trbr"]=[o.maxX,o.minY,o.maxX,o.maxY,i]):"center"===r&&(n[i.id+"tcbc"]=[o.centerX,o.minY,o.centerX,o.maxY,i])}})),t.on("beforeitemdestroy",(function(t){var r=t.item;delete e[r.id+"tltr"],delete e[r.id+"lcrc"],delete e[r.id+"blbr"],delete n[r.id+"tlbl"],delete n[r.id+"tcbc"],delete n[r.id+"trbr"]}))}},{key:"align",value:function(t,e){var n=f.mix({},t),r=this.flow.getController("grid");return this.grid&&r&&r.visible&&this._gridAlign(t,e),this.item&&this._itemAlign(t,e,n),t}},{key:"_gridAlign",value:function(t,e){var n=this.flow,r=this.grid,i=n.getGridCell();if("cc"===r){var o=Math.round((t.x+e.width/2)/i)*i,a=Math.round((t.y+e.height/2)/i)*i;t.x=o-e.width/2,t.y=a-e.height/2}else t.x=Math.round(t.x/i)*i,t.y=Math.round(t.y/i)*i}},{key:"_itemAlign",value:function(t,e,n){var r=this._horizontalLines,i=this._verticalLines,o=this.tolerance,a={x:n.x+e.width/2,y:n.y},c={x:n.x+e.width/2,y:n.y+e.height/2},u={x:n.x+e.width/2,y:n.y+e.height},s={x:n.x,y:n.y+e.height/2},h={x:n.x+e.width,y:n.y+e.height/2},d=[],p=[],g=null;if(this.clearAlignLine(),f.each(r,(function(t){t[4].isVisible()&&(d.push(l(t,a)),d.push(l(t,c)),d.push(l(t,u)))})),f.each(i,(function(t){t[4].isVisible()&&(p.push(l(t,s)),p.push(l(t,c)),p.push(l(t,h)))})),d.sort((function(t,e){return t.dis-e.dis})),p.sort((function(t,e){return t.dis-e.dis})),0!==d.length&&d[0].dis<o){t.y=d[0].line[1]-d[0].point.y+n.y,g={type:"item",horizontals:[d[0]]};for(var v=1;v<3;v++)d[0].dis===d[v].dis&&g.horizontals.push(d[v])}if(0!==p.length&&p[0].dis<o){t.x=p[0].line[0]-p[0].point.x+n.x,g?g.verticals=[p[0]]:g={type:"item",verticals:[p[0]]};for(var m=1;m<3;m++)p[0].dis===p[m].dis&&g.verticals.push(p[m])}g&&(g.bbox=e,this._addAlignLine(g))}},{key:"clearAlignLine",value:function(){var t=this._alignLines;f.each(t,(function(t){t.remove()})),this._alignLines=[]}},{key:"_addAlignLine",value:function(t){var e=t.bbox,n=this.graph.getRootGroup(),r=this.line,i=this._alignLines;"item"===t.type&&(t.horizontals&&f.each(t.horizontals,(function(t){var o,a,c=t.line,u=t.point,s=(c[0]+c[2])/2;u.x<s?(o=u.x-e.width/2,a=Math.max(c[0],c[2])):(o=u.x+e.width/2,a=Math.min(c[0],c[2]));var l=n.addShape("line",{attrs:f.mix({x1:o,y1:c[1],x2:a,y2:c[1]},r),capture:!1});i.push(l)})),t.verticals&&f.each(t.verticals,(function(t){var o,a,c=t.line,u=t.point,s=(c[1]+c[3])/2;u.y<s?(o=u.y-e.height/2,a=Math.max(c[1],c[3])):(o=u.y+e.height/2,a=Math.min(c[1],c[3]));var l=n.addShape("line",{attrs:f.mix({x1:c[0],y1:o,x2:c[0],y2:a},r),capture:!1});i.push(l)})))}}])&&i(n.prototype,r),h&&i(n,h),e}();t.exports=h},function(t,e,n){var r=n(4),i={CFG:{labelEditable:!1},INIT:"_initLabelEditor"};i.AUGMENT={_initLabelEditor:function(){var t=this;if(this.get("labelEditable")){var e=this.getGraph(),n=r.createDOM('<div contenteditable="true" role="textbox" tabindex="1" class="g6-label-editor"></div>',{position:"absolute",visibility:"hidden","z-index":"2",padding:"0px 2px 0px 0px",resize:"none",width:"auto",height:"auto",outline:"none",border:"1px solid #1890FF","transform-origin":"left top","max-width":"320px",background:"white","box-sizing":"content-box"});e.getGraphContainer().appendChild(n),n.on("blur",(function(n){n.stopPropagation(),!e.destroyed&&t.endEditLabel()})),n.on("keydown",(function(e){e.stopPropagation();var n=r.getKeyboradKey(e);(e.metaKey&&"s"===n||e.ctrlKey&&"s"===n)&&e.preventDefault(),"Enter"!==n&&"Escape"!==n||t.endEditLabel()})),this.set("labelTextArea",n),e.on("beforeviewportchange",(function(){n.focusItem&&t.setLabelEditorBeginPosition(n.focusItem)}))}},_getLabelTextAreaBox:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];e&&t.attr("text",e);var i=this.getGraph().getRootGroup(),o=r.getBBox(t,i);return{minX:o.minX-n[1],minY:o.minY-n[0],maxX:o.maxX+n[1],maxY:o.maxY+n[0]}},setLabelEditorBeginPosition:function(t){var e=this.get("labelTextArea"),n=t.getLabel();if(n){var i=this._getLabelTextAreaBox(n),o=n.attr("lineHeight"),a=n.attr("fontSize"),c={x:i.minX,y:i.minY-o/4+a/4-1,width:i.maxX-i.minX,height:i.maxY-i.minY};e.css({top:c.y+"px",left:c.x+"px"}),e.labelPoint=c}else{var u=this.getGraph().getRootGroup(),s=t.getKeyShape(),f=r.getBBox(s,u),l={x:f.minY+(f.maxY-f.minY-e.height())/2,y:(f.minX+f.maxX)/2};e.css({top:l.x+"px",left:l.y+"px"}),e.labelPoint=l}},beginEditLabel:function(t){var e=this.get("labelTextArea"),n=this.getGraph();if(r.isString(t)&&(t=n.find(t)),t&&!t.destroyed&&e){this.setSignal("preventWheelPan",!0);var i=t.getModel(),o=t.getLabel(),a=n.getZoom();if(e.focusItem=t,o){var c=o.attr("lineHeight"),u=this._getLabelTextAreaBox(o),s=(u.maxX-u.minX)/a,f=(u.maxY-u.minY+c/4)/a;e.innerHTML=i.label,e.innerHTML=i.label,e.css({"min-width":s+"px","min-height":f+"px",visibility:"visible","font-family":o.attr("fontFamily"),"line-height":c+"px","font-size":o.attr("fontSize")+"px",transform:"scale("+a+")"})}else e.innerHTML="",e.css({"min-width":"auto","min-height":"auto"});this.setLabelEditorBeginPosition(t),e.css({visibility:"visible"}),e.focus(),document.execCommand("selectAll",!1,null)}},endEditLabel:function(){var t=this.get("labelTextArea");if(this.setSignal("preventWheelPan",!1),t){var e=t.focusItem;if(e){var n=e.getModel(),r=this.editor;n.label!==t.textContent&&r.executeCommand("update",{action:"updateLabel",itemId:e.id,updateModel:{label:t.textContent}}),t.hide(),t.focusItem=void 0,this.focusGraphWrapper()}}}},t.exports=i},function(t,e){var n={AUGMENT:{updateStatus:function(){var t,e=this.getSelected();0===e.length?t="canvas-selected":1===e.length?e[0].isNode?t="node-selected":e[0].isEdge?t="edge-selected":e[0].isGroup&&(t="group-selected"):t="multi-selected",this.emit("statuschange",{status:t})}}};t.exports=n},function(t,e,n){n(45),n(46),n(47),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(59),n(60),n(61),n(62)},function(t,e,n){var r=n(3),i=n(4);r.registerBehaviour("panBlank",i.getPanCanvasBehaviour(!0))},function(t,e,n){n(3).registerBehaviour("hoverButton",(function(t){t.getGraph().behaviourOn("mouseenter",(function(e){t.getSignal("panningItem")||e.shape&&e.shape.isButton&&t.css({cursor:"pointer"})}))}))},function(t,e,n){var r=n(3),i=n(4);r.registerBehaviour("panCanvas",i.getPanCanvasBehaviour())},function(t,e,n){var r=n(3),i=n(14),o=n(4);r.registerBehaviour("wheelChangeViewport",(function(t){var e,n=t.getGraph();n.behaviourOn("wheel",(function(t){t.domEvent.preventDefault()})),n.behaviourOn("wheel",o.throttle((function(r){if(!t.getSignal("preventWheelPan")){var a=r.domEvent,c=t.getSignal("wheelZoom");if(e||t.setCapture(!1),c){var u=a.wheelDelta;if(Math.abs(u)>10){var s=n.getMatrix()[0];u>0?n.zoom({x:r.x,y:r.y},1.05*s):n.zoom({x:r.x,y:r.y},s*(1/1.05))}}else{var f=[],l=n.getMatrix();o.mat3.translate(f,l,[a.wheelDeltaX*i.wheelPanRatio,a.wheelDeltaY*i.wheelPanRatio]),t.translateLimt(f)&&n.updateMatrix(f)}e&&clearTimeout(e),e=setTimeout((function(){t.setCapture(!0),e=void 0}),50)}}),16))}))},function(t,e,n){n(3).registerBehaviour("processPanItem",(function(t){var e=t.getGraph();e.behaviourOn("mousemove",(function(n){var r=t.get("panItemDelegation");if(r){var i=t.get("panItemStartPoint"),o=t.get("panItemStartBox"),a=n.x-i.x,c=n.y-i.y,u=t.align({x:o.minX+a,y:o.minY+c},{width:o.width,height:o.height});r.attr({x:u.x,y:u.y}),e.emit("itempanning",n),e.draw()}}))}))},function(t,e,n){n(3).registerBehaviour("startPanItem",(function(t){var e=t.getGraph(),n=e.getRootGroup();e.behaviourOn("dragstart",(function(r){if(2!==r.button&&r.item&&(r.item.isNode||r.item.isGroup)){var i,o=r.item;if((i=(i=o.isSelected?t.getSelected():[o]).filter((function(t){return t.isNode||t.isGroup})))[0]&&!1!==i[0].dragable){e.emit("beforepanitem",{items:i}),e.emit("beforeshowdelegation",{items:i});var a=t.getDelegation(i,n),c=a.getBBox();t.setSignal("panningItem",!0),t.set("panItems",i),t.set("panItemDelegation",a),t.set("panItemStartBox",c),t.set("panItemStartPoint",{x:r.x,y:r.y}),e.draw()}}}))}))},function(t,e,n){n(3).registerBehaviour("endPanItem",(function(t){var e=t.getGraph();e.behaviourOn("panitemend",(function(){var n=t.get("panItemDelegation");n&&(n.remove(),e.draw()),t.setSignal("panningItem",!1),t.set("panItemDelegation",void 0),t.set("panItemStartPoint",void 0),t.set("panItemStartBox",void 0),t.set("panItems",void 0)})),e.behaviourOn("canvas:mouseleave",(function(){t.get("panItems")&&(t.clearAlignLine(),e.emit("panitemend"))}))}))},function(t,e,n){n(3).registerBehaviour("dblclickItemEditLabel",(function(t){t.getGraph().behaviourOn("node:dblclick",(function(e){e.shape&&!e.shape.isButton&&t.beginEditLabel(e.item)}))}))},function(t,e,n){n(3).registerBehaviour("clickCanvasSelected",(function(t){var e=t.getGraph();e.behaviourOn("click",(function(e){e.shape||(t.clearSelected(),t.clearActived(),t.updateStatus())})),e.behaviourOn("contextmenu",(function(e){e.shape||(t.clearSelected(),t.clearActived(),t.updateStatus())}))}))},function(t,e,n){n(3).registerBehaviour("clickCollapsedButton",(function(t){var e=t.getGraph();e.behaviourOn("click",(function(n){var r=n.item,i=n.shape;if(r&&i&&i.isCollapsedButton){var o=t.editor;o?o.executeCommand("collapseExpand",{itemId:r.id}):e.update(r,{collapsed:!0})}}))}))},function(t,e,n){n(3).registerBehaviour("clickEdgeSelected",(function(t){t.getGraph().behaviourOn("edge:click",(function(e){t.get("multiSelectable")&&!0===t.getSignal("shiftKeyDown")||(t.clearActived(),t.clearSelected()),t.setSelected(e.item.id,!0)}))}))},function(t,e,n){n(3).registerBehaviour("clickExpandedButton",(function(t){var e=t.getGraph();e.behaviourOn("click",(function(n){var r=n.item,i=n.shape;if(r&&i&&i.isExpandedButton){var o=t.editor;o?o.executeCommand("collapseExpand",{itemId:r.id}):e.update(r,{collapsed:!1})}}))}))},function(t,e,n){n(3).registerBehaviour("clickGroupSelected",(function(t){t.getGraph().behaviourOn("group:click",(function(e){t.get("multiSelectable")&&!0===t.getSignal("shiftKeyDown")||(t.clearActived(),t.clearSelected()),t.setSelected(e.item.id,!0)}))}))},function(t,e,n){n(3).registerBehaviour("clickNodeSelected",(function(t){t.getGraph().behaviourOn("node:click",(function(e){t.get("multiSelectable")&&!0===t.getSignal("shiftKeyDown")||(t.clearActived(),t.clearSelected()),t.setSelected(e.item.id,!0)}))}))},function(t,e,n){n(3).registerBehaviour("hoverNodeActived",(function(t){var e,n=t.getGraph();n.behaviourOn("node:mouseenter",(function(n){!1!==n.item.getShapeObj().panAble&&t.css({cursor:"move"}),t.getSignal("panningItem")||t.getSignal("dragEdge")||n.item&&n.item.isSelected||(e=n.item,t.setActived(e,!0))})),n.behaviourOn("node:mouseleave",(function(n){var r=n.toShape;e&&(r&&r.isAnchor&&r.getItem()===e||t.getSignal("dragEdge")||(e.isSelected||t.setActived(e,!1),e=void 0))}))}))},function(t,e,n){n(3).registerBehaviour("hoverGroupActived",(function(t){var e=t.getGraph();e.behaviourOn("mouseenter",(function(e){t.getSignal("panningItem")||e.item&&e.item.isSelected||t.getSignal("dragEdge")||e.shape&&e.shape.isGroupKeyShape&&(t.css({cursor:"move"}),t.setActived(e.item,!0))})),e.behaviourOn("group:mouseleave",(function(e){e.item.isActived&&!e.item.isSelected&&t.setActived(e.item,!1)}))}))},function(t,e,n){n(3).registerBehaviour("hoverEdgeActived",(function(t){var e=t.getGraph();e.behaviourOn("edge:mouseenter",(function(e){t.getSignal("panningItem")||e.item&&e.item.isSelected||t.getSignal("dragEdge")||t.setActived(e.item,!0)})),e.behaviourOn("edge:mouseleave",(function(e){t.setActived(e.item,!1)}))}))},function(t,e,n){n(3).registerBehaviour("keydownCmdWheelZoom",(function(t){var e=t.getGraph();e.behaviourOn("keydown",(function(e){91===e.domEvent.keyCode&&t.setSignal("wheelZoom",!0)})),e.behaviourOn("keyup",(function(e){91===e.domEvent.keyCode&&t.setSignal("wheelZoom",!1)}))}))},function(t,e,n){var r=n(22);t.exports={dragingEdgeEndPoint:function(t){var e=t.endPointType,n=t.edgeModel,r=t.graph,i=t.delegation,o=t.startPoint,a=t.ev,c=t.source,u=t.target,s=a.item,f="source"===e?[a,o]:[o,a];s&&("source"===e?u=s:c=s);var l=r.getShapeObj("edge",n).getPathByPoints({points:f,source:c,target:u});i.attr("path",l),r.draw()},panGroup:function(t,e,n,i){var o=t.getModel();r.traverseTree(t,(function(r){if("node"===r.type){var o=r.getModel();i.update(r,{x:o.x+e,y:o.y+n})}t.getCrossEdges&&t.getCrossEdges().forEach((function(t){t.update()}))}),(function(t){return"group"===t.type?t.getChildren():[]})),i.update(t,{x:o.x+e,y:o.y+n})},dropUpdateEdge:function(t){var e=t.ev,n=t.endPointType,r=t.model,i=t.diagram,o=i.get("noEndEdge"),a=i.get("linkAnchor"),c=i.get("linkNode"),u=e.item,s=e.shape,f=e.x,l=e.y;if(i.getGraph().emit("beforedropedge"),s){if(a&&s.isAnchor&&s.hasHotspot){var h=s,d=h.getItem();return"target"===n?(r.target=d.id,r.targetAnchor=h.getIndex(),!0):(r.source=d.id,r.sourceAnchor=h.getIndex(),!0)}if(c&&u&&u.isNode)return"target"===n?(r.target=u.id,!0):(r.source=u.id,!0)}else if(o)return"target"===n?(r.target={x:f,y:l},!0):(r.source={x:f,y:l},!0);return!1}}},function(t,e){t.exports={rectRectCrossAlgorithm:function(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return n>i||r>o},euclideanDistance:{pointPoint:function(t,e){var n=Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2);return Math.sqrt(n)}}}},function(t,e,n){var r={},i=n(2);r.AUGMENT={changeAddEdgeModel:function(t){this.set("addEdgeModel",t)},cancelAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},beginAdd:function(t,e){this.set("addType",t),this.set("addModel",e),this.changeMode("add")},endAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},delete:function(){var t=this.getSelected(),e=this.get("_graph");i.each(t,(function(t){e.remove(t)}))},toBack:function(){var t=this.getSelected(),e=this.get("_graph");t.sort((function(t,e){var n=t.getGraphicGroup(),r=e.getGraphicGroup();return i.getIndex(r)-i.getIndex(n)})),t.forEach((function(t){e.toBack(t)}))},toFront:function(){var t=this.getSelected(),e=this.get("_graph");t.sort((function(t,e){var n=t.getGraphicGroup(),r=e.getGraphicGroup();return i.getIndex(n)-i.getIndex(r)})),t.forEach((function(t){e.toFront(t)}))},addGroup:function(t){var e,n=this.get("_graph"),r=this.getSelected(),o=!0;if(0!==r.length){t||(t={label:"新建分组"}),i.setId(t),n.add("group",t),n.toFront(t.id);var a=n.find(t.id);if(r.forEach((function(t){var n=t.getParent();n&&(e?e!==n&&(o=!1):e=n)})),o){e&&(t.parent=e.getModel().id),r.forEach((function(e){n.update(e,{parent:t.id})}));var c=a.getInnerEdges();a.deepEach((function(t){n.toFront(t)})),c.forEach((function(t){n.toFront(t)}))}else console.warn("add group elements must have the same parent")}},unGroup:function(){var t=this.get("_graph"),e=this.getSelected(),n=e[0];1===e.length&&i.isGroup(n)&&(n.getChildren().forEach((function(e){t.update(e,{parent:void 0}),e.collapsedParent||e.show(),e.isGroup&&e.deepEach((function(t){t.collapsedParent||t.show()}))})),t.remove(n))},newGroup:function(t){this.addGroup(t)}},t.exports=r},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(67),o=n(2),a={CFG:{anchor:{}},INIT:"_initAnchor"};a.AUGMENT={_initAnchor:function(){var t=this.get("anchor"),e=this.get("_graph");if(t){var n=new i(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({diagram:this,graph:e},t));this.setController("anchor",n)}},showAnchor:function(t,e,n){this.getController("anchor").showAnchor(t,e,n)},clearAnchor:function(t){this.getController("anchor").clearAnchor(t)},setHotspotActived:function(t,e){this.getController("anchor").setHotspotActived(t,e)},hoverShowAnchor:function(t){var e=this,n=t.getAnchorPoints(),r=[];n.forEach((function(n,i){var o={anchor:n,item:t};e.emit("hovernode:beforeshowanchor",o),o.cancel||r.push(i)})),this.showAnchor(t,r)},anchorHasBeenLinked:function(t,e){var n=t.getEdges(),r=[];return n.forEach((function(e){var n=e.getModel();n.source!==t.id||o.isNil(n.sourceAnchor)||r.push(n.sourceAnchor),n.target!==t.id||o.isNil(n.targetAnchor)||r.push(n.targetAnchor)})),o.isObject(e)?-1!==r.indexOf(e.index):-1!==r.indexOf(e)},dragEdgeBeforeShowAnchor:function(t,e,n){var r=this;this.getGraph().getNodes().forEach((function(i){var o,a=[],c=i.getAnchorPoints();if(t.isNode){var u=t.getAnchorPoints();c.forEach((function(c,s){o="target"===n?{source:t,sourceAnchor:u[e],target:i,targetAnchor:c,dragEndPointType:n}:{target:t,targetAnchor:u[e],source:i,sourceAnchor:c,dragEndPointType:n},r.emit("dragedge:beforeshowanchor",o),o.cancel||a.push(s)}))}else c.forEach((function(t,e){a.push(e)}));i===t&&i.isAnchorShow?a.forEach((function(t){var n=i.getAnchor(t);e!==t&&n&&n.showHotspot()})):r.showAnchor(i,a,!0)}))}},t.exports=a},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=n(9),l=n(5),h=n(2),d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,u(e).apply(this,arguments))}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,f),n=e,(r=[{key:"getDefaultCfg",value:function(){return{_anchorItemCache:{}}}},{key:"init",value:function(){var t=this,e=this.graph;e.on("afteritemdraw",(function(e){e.item.isAnchorShow&&t.showAnchor(e.item)})),e.on("beforeitemdestroy",(function(e){t._clearAnchor(e.item)})),e.on("afteritemhide",(function(e){e.item.isNode&&t._clearAnchor(e.item)}))}},{key:"_updateAnchor",value:function(t){var e=this.graph;t.anchorShapes.forEach((function(t){t.updatePosition()})),e.draw()}},{key:"_drawAnchor",value:function(t,e,n,r){var o=t.getAnchorPoints();this._clearAnchor(t),h.each(o,(function(o,a){if(!n||-1!==n.indexOf(a)){var c,u=e.addShape("marker",{attrs:i({symbol:"circle"},l.anchorPointStyle,{x:o.x,y:o.y}),freezePoint:o,item:t,index:a,eventPreFix:"anchor",isItemChange:function(){},zIndex:l.zIndex.anchorPoint});u.toFront(),u.eventPreFix="anchor",u.showHotspot=function(){c=e.addShape("marker",{attrs:i({symbol:"circle"},l.anchorHotsoptStyle,{x:o.x,y:o.y}),freezePoint:o,capture:!1,zIndex:l.zIndex.anchorHotsopt}),t.anchorShapes.push(c),u.hasHotspot=!0,c.toFront(),u.toFront()},u.getIndex=function(){return a},u.getItem=function(){return t},u.getPoint=function(){return o},u.updatePosition=function(){var e=t.getAnchorPoints()[a];u.attr(e)},u.setActived=function(){u.attr(l.anchorPointHoverStyle)},u.clearActived=function(){u.attr(l.anchorPointStyle)},u.isAnchor=!0,u.setHotspotActived=function(t){c&&(t?c.attr(l.anchorHotsoptActivedStyle):c.attr(l.anchorHotsoptStyle))},r&&u.showHotspot(),t.anchorShapes.push(u),t.getAllAnchors=function(){return t.anchorShapes.filter((function(t){return t.isAnchor}))},t.getAnchor=function(e){return t.anchorShapes.find((function(t){return t.get("index")===e}))}}}))}},{key:"_clearAnchor",value:function(t){t.anchorShapes&&t.anchorShapes.forEach((function(t){t.remove()})),t.anchorShapes=[]}},{key:"setHotspotActived",value:function(t,e){var n=this.diagram.getGraph();t.setHotspotActived(e),n.draw()}},{key:"showAnchor",value:function(t,e,n){if(t.isVisible()){var r=this.graph,i=this._anchorItemCache,o=r.getRootGroup();this._drawAnchor(t,o,e,n),t.isAnchorShow=!0,i[t.id]=t}}},{key:"clearAnchor",value:function(t){var e=this,n=this.graph,r=n.get("itemCache"),i=this._anchorItemCache,o=t;o=h.isObject(t)?[t]:h.isString(t)?[r[t]]:i,h.each(o,(function(t){e._clearAnchor(t),t.isAnchorShow=!1,delete i[t.id]})),n.draw()}}])&&a(n.prototype,r),o&&a(n,o),e}();t.exports=d},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(69),o={CFG:{orbit:null},INIT:"_initOrbit"};o.AUGMENT={_initOrbit:function(){var t=this.get("orbit");if(t){var e=new i(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({diagram:this},t));this.setController("orbit",e)}},showOrbit:function(t){this.getController("orbit").show(t)},hideOrbit:function(){this.getController("orbit").hide()},layoutOrbit:function(t,e){this.getController("orbit").layout(t,e)}},t.exports=o},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s=n(9),f=n(5),l=n(70),h=n(2),d=h.vec2,p=h.isString,g=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,c(e).apply(this,arguments))}var n,r,h;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,s),n=e,(r=[{key:"getDefaultCfg",value:function(){return{satellite:[],satelliteCache:[]}}},{key:"init",value:function(){var t=this,e=this.satellite,n=this.diagram,r={diagram:n};n.getGraph().addBehaviour("orbit"),e.forEach((function(e){p(e)?t.satelliteCache.push(new l[e](r)):t.satelliteCache.push(new l(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}({},r,e)))}))}},{key:"layout",value:function(t,e){var n=this.diagram,r=n.getGraph(),i=this.satelliteCache,o=t.getBBox(),a=o.centerX,c=o.centerY,u=n.getZoom(),s=f.orbitGap/u,l=i.filter((function(t){return t.isVisible()})),h=[e.x-a,e.y-c],p=d.length(h),g=o.width/2+s,v=d.scale([],h,g/p);l.forEach((function(t){var e=t.getDOM(),n=e.width()/2,i=r.getDomPoint({x:v[0]+a,y:v[1]+c});e.css({top:i.y-n+"px",left:i.x-n+"px"})}))}},{key:"show",value:function(t){this.satelliteCache.forEach((function(e){e.enable()&&(e.item=t,e.show())}))}},{key:"hide",value:function(){this.satelliteCache.forEach((function(t){t.hide()}))}}])&&o(n.prototype,r),h&&o(n,h),e}();t.exports=g},function(t,e,n){var r=n(23);r.forkAndLink=n(71),t.exports=r},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s=n(23),f=n(2),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,c(e).apply(this,arguments))}var n,r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,s),n=e,(r=[{key:"getDefaultCfg",value:function(){return{name:"forkAndLink",render:function(){return'\n          <div style="\n            width: 11px;\n            height: 11px;\n            cursor: copy;\n            background-image: url(https://gw.alipayobjects.com/zos/rmsportal/yWAiQOmucbYMCpwkvTBP.svg)\n          "></div>\n        '},bindEvent:function(t,e){var n=this,r=e.getGraph(),o=r.getRootGroup();return t.setAttribute("draggable","true"),[f.addEventListener(t,"dragstart",(function(){var r=n.item,a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}({},e.get("addEdgeModel"),{source:r.id}),c=r.getBBox(),u=e.getDelegation([{isEdge:!0}],o);e.setSignal("dragEdge",!0),e.beginAdd("edge",a),e.set("addEdgeConfig",{addModel:a,delegation:u,startPoint:{x:c.centerX,y:c.centerY},sourceItem:r}),t.hide()})),f.addEventListener(t,"click",(function(t){var i=t.clientX,o=t.clientY,a=e.editor,c=n.item,u=r.getPointByClient({x:i,y:o}),s=c.getBBox(),l=c.getModel(),h=[u.x-s.centerX,u.y-s.centerY],d=f.vec2.length(h);if(f.vec2.scale(h,h,160/d),a)a.executeCommand("copyAdjacent",{copyNode:c,x:u.x+h[0],y:u.y+h[1]});else{var p=f.clone(l);p.x=u.x+h[0],p.y=u.y+h[1],r.add(c.type,p)}}))]}}}}])&&o(n.prototype,r),l&&o(n,l),e}();t.exports=l},function(t,e,n){var r=n(2),i=n(5),o={};function a(t){t.controlPointShapes&&r.each(t.controlPointShapes,(function(t){t.remove()})),t.controlPointShapes=[],t.isControlPointShow=!1}o.INIT="_initResize",o.CFG={nodeResizeable:!1,edgeResizeable:!0},o.AUGMENT={_initResize:function(){var t=this,e=this.get("_graph"),n=this.get("nodeResizeable"),i=this.get("edgeResizeable");n&&e.on("afteritemdraw",(function(e){"node"===e.item.type&&e.item.isVisible()&&t.drawControlPoints(e.item)})),i&&e.on("afteritemdraw",(function(e){"edge"===e.item.type&&e.item.isVisible()&&t.drawControlPoints(e.item)})),e.on("afteritemhide",(function(t){var e;t.item.isControlPointShow&&((e=t.item).controlPointShapes&&r.each(e.controlPointShapes,(function(t){t.hide()})),e.isControlPointShow=!1)})),e.on("afteritemshow",(function(t){var e;!t.item.isControlPointShow&&((e=t.item).controlPointShapes&&r.each(e.controlPointShapes,(function(t){t.show()})),e.isControlPointShow=!0)})),e.on("beforeitemdestroy",(function(t){t.item.isControlPointShow&&a(t.item)}))},drawControlPoints:function(t){var e,n,o,c,u,s,f,l,h,d=this.get("_graph").getRootGroup(),p=this.get("nodeResizeable"),g=this.get("edgeResizeable");"node"===t.type?p&&function(t,e){var n=t.getBBox(),o=[{x:n.minX,y:n.minY},{x:n.maxX,y:n.minY},{x:n.minX,y:n.maxY},{x:n.maxX,y:n.maxY}];a(t);var c=e.addShape("rect",{attrs:r.mix({},i.nodeSelectedBoxStyle,{symbol:"square",x:n.minX,y:n.minY,width:n.maxX-n.minX,height:n.maxY-n.minY})});t.controlPointShapes.push(c),r.each(o,(function(n){var o=e.addShape("marker",{attrs:r.mix({},i.nodeControlPointStyle,{symbol:"square",x:n.x,y:n.y}),freezePoint:{x:n.x,y:n.y},item:t});t.controlPointShapes.push(o)}))}(t,d):"edge"===t.type&&g&&(n=d,o=(e=t).getKeyShape().attr("path"),c=o[0],u=c.length,s=o[o.length-1],f=s.length,l=[{x:c[u-2],y:c[u-1]},{x:s[f-2],y:s[f-1]}],h=e.getModel(),a(e),r.each(l,(function(t,o){var a=n.addShape("marker",{attrs:r.mix({},i.edgeControlPointStyle,{x:t.x,y:t.y}),freezePoint:{x:t.x,y:t.y},item:e});a.eventPreFix="edgeControlPoint",a.getSourcePoint=function(){return l[0]},a.getTargetPoint=function(){return l[l.length-1]},a.getItem=function(){return e},a.isSourceEndPoint=function(){return h.source&&0===o},a.isTargetEndPoint=function(){return h.target&&o===l.length-1},e.controlPointShapes.push(a)}))),t.isControlPointShow=!0}},t.exports=o},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(2),a={};a.AUGMENT={addOutterShape:function(t,e){this.clearOutterShape(t);var n=e.lineWidth,i=t.getKeyShape(),a=t.getGraphicGroup(),c=i.attr(),u=i.get("type"),s=i.attr("lineWidth"),f=o.clone(c);delete f.fillStyle,delete f.strokeStyle,delete f.matrix;var l=a.addShape(u,{attrs:r({},f,{fill:null},e)});o.toBack(l,a);var h=l.getBBox(),d=h.maxX-h.minX,p=h.maxY-h.minY,g=(h.minX+h.maxX)/2,v=(h.minY+h.maxY)/2;l.transform([["t",-g,-v],["s",(n+d+s)/d,(n+p+s)/p],["t",g,v]]),l.isOutter=!0,t.outterShape=l},clearOutterShape:function(t){t.outterShape&&t.outterShape.remove()}},t.exports=a},function(t,e){var n={CFG:{linkNode:!0,linkAnchor:!0},INIT:"_initLink",AUGMENT:{_initLink:function(){var t=this,e=this.getGraph(),n=this.get("linkAnchor"),r=this.get("linkNode"),i=e.get("mode");n&&(this.on("beforeitemactived",(function(e){var n=e.item;n.isNode&&t.hoverShowAnchor(n)})),this.on("beforeitemunactived",(function(e){var n=e.item;(n.isNode||n.isGroup)&&t.clearAnchor(n)})),this.on("beforeitemselected",(function(e){var n=e.item;(n.isNode||n.isGroup)&&t.hoverShowAnchor(n)})),this.on("beforeitemunselected",(function(e){var n=e.item;(n.isNode||n.isGroup)&&t.clearAnchor(n)})),e.addBehaviour("dragAnchorAddEdge","add"),e.addBehaviour("hoverAnchorActived","default"),e.changeMode(i)),r&&(e.addBehaviour("hoverNodeAddOutter","add"),e.addBehaviour("hoverNodeAddOutter","default"),e.changeMode(i))}}};t.exports=n},function(t,e,n){n(76),n(77),n(78),n(79)},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(13),a=n(2),c=n(5);o.registerNode("diagram-base",{getSize:function(t){var e=t.getModel();return a.getNodeSize(e.size)},defaultFillPalette:0,defaultStrokePalette:3,activedFillPalette:0,activedStrokePalette:5,selectedFillPalette:2,selectedStrokePalette:5,getDefaulStyle:function(){return c.nodeStyle},getDefaulActivedStyle:function(){return c.nodeActivedStyle},getDefaulSelectedtyle:function(){return c.nodeSelectedStyle},getStyle:function(t){var e,n,r=t.getModel(),i=r.color;if(i){var o=a.Palettes.generate(i);e=o[this.defaultFillPalette],n=o[this.defaultStrokePalette]}return a.mix(!0,{},this.getDefaulStyle(),{fill:e,stroke:n},r.style)},getPath:function(t){var e=this.getSize(t),n=this.getStyle(t);return a.getRectPath(-e[0]/2,-e[1]/2,e[0],e[1],n.radius)},getActivedOutterStyle:function(){return c.nodeActivedOutterStyle},getActivedStyle:function(t){var e=t.getModel(),n=this.getDefaulActivedStyle(t),i=e.color;if(i){var o=a.Palettes.generate(i);return r({},n,{fill:o[this.activedFillPalette],stroke:o[this.activedStrokePalette]})}return n},getSelectedStyle:function(t){var e=t.getModel(),n=this.getDefaulSelectedtyle(t),i=e.color;if(i){var o=a.Palettes.generate(i);return r({},n,{fill:o[this.selectedFillPalette],stroke:o[this.selectedStrokePalette]})}return n},getSelectedOutterStyle:function(t){var e=t.getModel().color;if(e){var n=a.Palettes.generate(e);return r({},c.nodeSelectedOutterStyle,{stroke:n[1],fill:n[1]})}return c.nodeSelectedOutterStyle},anchor:[[.5,0],[1,.5],[.5,1],[0,.5]]}),o.registerNode("capsule",{getPath:function(t){var e=this.getSize(t);return a.getRectPath(-e[0]/2,-e[1]/2,e[0],e[1],e[1]/2)}}),o.registerNode("circle",{getPath:function(t){var e=this.getSize(t),n=e[0],r=e[1];return a.getEllipsePath(0,0,n/2,r/2)}}),o.registerNode("rhombus",{getPath:function(t){var e=this.getSize(t),n=e[0],r=e[1],i=[{x:0,y:0-r/2},{x:0+n/2,y:0},{x:0,y:0+r/2},{x:0-n/2,y:0},{x:0,y:0-r/2}];return a.pointsToPolygon(i)}})},function(t,e,n){var r=n(13),i=n(2),o=n(5);r.registerEdge("diagram-base",{getPath:function(t){var e=t.getPoints(),n=t.getSource(),r=t.getTarget();return this.getPathByPoints({points:e,source:n,target:r,item:t})},getPathByPoints:function(t){var e=t.points;return i.pointsToPolygon(e)},getStyle:function(t){var e=t.getModel();return i.mix(!0,{},o.edgeStyle,{stroke:e.color},e.style)},getActivedStyle:function(){return o.edgeActivedStyle},getSelectedStyle:function(){return o.edgeSelectedStyle},getActivedOutterStyle:function(){},getSelectedOutterStyle:function(){}})},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(13),a=n(5),c=n(2),u=c.getGroupIconPath(),s=c.getCollapsedButtonPath(),f=c.getExpandedButtonPath(),l={fill:"#CED4D9"},h={stroke:"#697B8C",fill:"#fff",fillOpacity:0},d={stroke:"#697B8C",fill:"#fff",fillOpacity:0},p={fill:"#000000",textBaseline:"top",textAlign:"left"},g={stroke:"#CED4D9",fill:"#F2F4F5",radius:4},v=a.groupBackgroundPadding,m=40,y=13,b=12,x=12,w=8,_=12,S=184-v[1]-v[3],M=40-v[0]-v[2];o.registerGroup("diagram-base",{draw:function(t){var e=t.getModel(),n=t.getGraphicGroup(),i=t.getChildrenBBox(),o=this.getStyle(t),a=e.collapsed,g=e.padding?e.padding:v;if(i.minX===1/0&&(i.minX=e.x,i.maxX=e.x+S,i.minY=e.y,i.maxY=e.y+M),a&&(i.minX=i.maxX-S,i.maxY=i.minY+M),i.maxX-i.minX<S){var P=S-i.maxX+i.minX;i.minX-=P/2,i.maxX+=P/2}var O=function(t,e){return t.minX-e[3]}(i,g),E=function(t,e){return t.minY-e[0]}(i,g),A=function(t,e){return t.maxX-t.minX+e[3]+e[1]}(i,g),C=function(t,e){return t.maxY-t.minY+e[0]+e[2]}(i,g),k=function(t,e,n,i){var o=e.addShape("path",{attrs:r({},i,{path:n})});return o.isGroupKeyShape=!0,o}(0,n,c.getRectPath(O,E,A,C,o.radius),o);return function(t,e,n,r){var i=c.mix(!0,{},p,{x:n+m,y:r+y});c.isString(t)?i.text=t:c.mix(i,t),e.addShape("text",{attrs:i})}(c.isNil(e.label)?"新建分组":e.label,n,O,E),function(t,e,n,i){var o=e.addShape("path",{attrs:r({path:t},l)}),a=o.getBBox();o.translate(n-a.minX+w,i-a.minY+_)}(c.isNil(e.icon)?u:e.icon,n,O,E),(function(t,e,n,i,o){var a;if(t){var c=(a=e.addShape("path",{attrs:r({path:f},d)})).getBBox(),u=c.maxX-c.minX;a.isExpandedButton=!0,a.translate(n+o-c.minX-u-x,i-c.minY+b)}else{var l=(a=e.addShape("path",{attrs:r({path:s},h)})).getBBox(),p=l.maxX-l.minX;a.isCollapsedButton=!0,a.translate(n+o-l.minX-p-x,i-l.minY+b)}return a.isButton=!0,a}(a,n,O,E,A)).item=t,e.x=i.minX,e.y=i.minY,k},getStyle:function(t){var e=t.getModel();return c.mix(!0,{},g,{fill:e.color,stroke:e.color},e.style)},getActivedStyle:function(){return a.groupActivedStyle},getSelectedStyle:function(){return a.groupSelectedStyle},getSelectedOutterStyle:function(){return a.groupSelectedOutterStyle},getActivedOutterStyle:function(){},intersectBox:"rect"})},function(t,e,n){n(13).registerGuide("diagram-base")},function(t,e,n){n(81),n(82),n(83),n(84),n(85),n(86),n(87),n(88),n(89),n(90),n(91),n(92),n(93),n(94)},function(t,e,n){var r=n(1),i=n(2);r.registerBehaviour("panItem",(function(t){var e=t.getGraph();e.behaviourOn("drop",(function(){var n=t.get("panItems");if(n){var r=n[0],o=n.map((function(t){return t.id})),a=t.get("panItemDelegation"),c=t.get("panItemStartBox"),u=r.id,s=a.attr("x")-c.minX,f=a.attr("y")-c.minY;e.emit("afterpanitemdrop",{panItems:n}),t.clearAlignLine();var l=t.editor;e.emit("panitemend"),!l||t.getSignal("dragaddnodetogroup")?h():l.executeCommand(h)}function h(){o.forEach((function(t){var n=e.find(t),r=n.getModel();n.isGroup?i.panGroup(n,s,f,e):(e.update(n,{x:r.x+s,y:r.y+f}),e.toFront(n))})),1===o.length&&(t.clearSelected(),t.setSelected(u,!0))}}))}),["startPanItem","processPanItem","endPanItem"])},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(1),o=n(5);i.registerBehaviour("hoverAnchorActived",(function(t){var e=t.getGraph();e.behaviourOn("anchor:mouseenter",(function(n){if(!t.getSignal("panningItem")&&!t.getSignal("dragEdge")){var i=n.shape,a=i.getItem(),c=a.getModel(),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},t.get("addEdgeModel"),{source:c.id}),s={anchor:i.getPoint(),item:a};t.emit("hoveranchor:beforeaddedge",s),s.cancel?t.css({cursor:o.cursor.hoverUnEffectiveAnchor}):(t.css({cursor:o.cursor.hoverEffectiveAnchor}),!i.get("destroyed")&&i.setActived(),t.beginAdd("edge",u),e.draw())}})),e.behaviourOn("anchor:mouseleave",(function(n){if(!t.getSignal("dragEdge")&&!t.getSignal("panningItem")){var r=n.shape,i=r.getItem();t.css({cursor:o.cursor.beforePanCanvas}),i.isSelected||(t.clearAnchor(i),t.setActived(i,!1)),!r.get("destroyed")&&r.clearActived(),t.cancelAdd(),e.draw()}}))}))},function(t,e,n){var r=n(1),i=n(5);r.registerBehaviour("hoverEdgeControlPoint",(function(t){t.getGraph().behaviourOn("edgeControlPoint:mouseenter",(function(e){if(!t.getSignal("dragEdge")&&!t.getSignal("panningItem")){var n=e.shape;(n.isTargetEndPoint()||n.isSourceEndPoint())&&t.css({cursor:i.cursor.hoverEdgeControllPoint})}}))}))},function(t,e,n){var r=n(1),i=n(5),o=n(2);r.registerBehaviour("dragEdgeControlPoint",(function(t){var e,n,r,a,c,u,s,f,l,h,d=t.getGraph(),p=d.getRootGroup();function g(p){if(r){var g={};d.getNodes().forEach((function(e){t.clearAnchor(e)})),t.css({cursor:i.cursor.beforePanCanvas}),r.remove();var v=o.dropUpdateEdge({ev:p,endPointType:e?"target":"source",model:g,diagram:t});d.show(l);var m=l.id;if(v){var y=t.editor;y?y.executeCommand("update",{itemId:m,updateModel:g}):d.update(m,g)}t.setSignal("dragEdge",!1),e=void 0,n=void 0,r=void 0,a=void 0,c=void 0,u=void 0,s=void 0,f=void 0,l=void 0,h=void 0}}d.behaviourOn("edgeControlPoint:mousedown",(function(i){if(2!==i.button){var o=i.shape;o.isTargetEndPoint()?(l=o.getItem(),h=l.getModel(),e=o,a=o.getSourcePoint(),c=l.getSource(),s=h.sourceAnchor):o.isSourceEndPoint()&&(l=o.getItem(),h=l.getModel(),n=o,a=o.getTargetPoint(),u=l.getTarget(),f=h.targetAnchor),l&&(r=t.getDelegation([l],p),c?t.dragEdgeBeforeShowAnchor(c,s,"target"):u&&t.dragEdgeBeforeShowAnchor(u,f,"source"),d.hide(l),t.setSignal("dragEdge",!0))}})),d.behaviourOn("mousemove",(function(t){r&&o.dragingEdgeEndPoint({endPointType:c?"target":"source",edgeModel:h,graph:d,delegation:r,startPoint:a,ev:t,originSource:c,originTarget:u})})),d.behaviourOn("edgeControlPoint:mouseleave",(function(r){e||n||r.toShape||t.css({cursor:i.cursor.beforePanCanvas})})),d.behaviourOn("mouseup",g),d.behaviourOn("canvas:mouseleave",g)}),["dragHoverAnchorHotspot"])},function(t,e,n){var r=n(1),i=n(2);r.registerBehaviour("dragPanelItemAddNode",(function(t){var e,n,r,o,a,c=t.getGraph(),u=c.getRootGroup();function s(){t.setSignal("panningItem",!1),t.set("panItemDelegation",void 0),t.set("panItemStartBox",void 0),t.set("panItemStartPoint",void 0),n=void 0,r=void 0,o=void 0,a=void 0}c.behaviourOn("canvas:mouseenter",(function(c){if(!n&&(o=t.get("addType"),a=t.get("addModel"),a=i.clone(a),"node"===o)){var s=(r=i.getNodeSize(a.size))[0]/2,f=r[1]/2;e={minX:c.x-s,minY:c.y-f,maxX:c.x+s,maxY:c.y+f,width:r[0],height:r[1]},n=t.getDelegation([e],u),t.setSignal("panningItem",!0),t.set("panItemDelegation",n),t.set("panItemStartBox",e),t.set("panItemStartPoint",{x:c.x,y:c.y})}})),c.behaviourOn("mouseup",(function(e){if(n){a.x=e.x,a.y=e.y;var r=o;i.setId(a);var u=t.editor;n.remove(),t.endAdd(),t.clearAlignLine(),t.clearSelected(),t.focusGraphWrapper(),u?u.executeCommand("add",{type:"node",addModel:a}):c.add(r,a),t.setSelected(c.find(a.id),!0),s()}})),c.behaviourOn("canvas:mouseleave",(function(){n&&(t.clearAlignLine(),n.remove(),c.draw(),t.cancelAdd(),s())}))}),["processPanItem"])},function(t,e,n){n(1).registerBehaviour("dragHoverAnchorHotspot",(function(t){var e=t.getGraph();e.behaviourOn("anchor:dragenter",(function(e){if(t.getSignal("dragEdge")){var n=e.shape;t.setHotspotActived(n,!0)}})),e.behaviourOn("anchor:dragleave",(function(e){if(t.getSignal("dragEdge")){var n=e.shape;t.setHotspotActived(n,!1)}}))}))},function(t,e,n){var r=n(1),i=n(2);r.registerBehaviour("dragAnchorAddEdge",(function(t){var e=t.getGraph(),n=e.getRootGroup();e.behaviourOn("anchor:dragstart",(function(e){if(2!==e.button){var r=e.shape,o=r.get("freezePoint"),a=r.getItem(),c=i.clone(t.get("addModel")),u=r.getIndex();c.source=a.id,c.sourceAnchor=u;var s={x:o.x,y:o.y},f=t.getDelegation([{isEdge:!0}],n);t.setSignal("dragEdge",!0),t.dragEdgeBeforeShowAnchor(a,u,"target"),t.set("addEdgeConfig",{addModel:c,delegation:f,startPoint:s,sourceItem:a})}}))}),["processAddEdge","dragHoverAnchorHotspot","hoverAnchorActived"])},function(t,e,n){var r=n(1),i=n(5);r.registerBehaviour("dragMultiSelect",(function(t){var e,n,r=t.getGraph(),o=r.getRootGroup();function a(){t.css({cursor:i.cursor.beforePanCanvas}),e=void 0,n=void 0}t.css({cursor:i.cursor.multiSelect}),r.behaviourOn("dragstart",(function(t){2!==t.button&&(e={x:t.x,y:t.y},n=o.addShape("rect",{attrs:i.multiSelectRectStyle}))})),r.behaviourOn("drag",(function(t){n&&(n.attr({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),width:Math.abs(t.x-e.x),height:Math.abs(t.y-e.y)}),r.draw())})),r.behaviourOn("dragend",(function(){if(n){var e=r.getNodes().map((function(t){return t.id})),i=n.getBBox(),o=t.editor;o?o.executeCommand(c):c(),n.remove(),t.changeMode("default"),t.updateStatus(),r.draw(),a()}function c(){t.clearSelected(),e.forEach((function(e){var n=r.find(e),o=n.getBBox();o.minX>i.minX&&o.minY>i.minY&&o.maxX<i.maxX&&o.maxY<i.maxY&&t.setSelected(n,!0)}))}})),r.behaviourOn("canvas:mouseleave",(function(){n&&(n.remove(),r.draw(),a())}))}))},function(t,e,n){n(1).registerBehaviour("keydownShiftMultiSelected",(function(t){var e=t.getGraph();e.behaviourOn("keydown",(function(e){e.domEvent.shiftKey&&t.setSignal("shiftKeyDown",!0)})),e.behaviourOn("keyup",(function(e){e.domEvent.shiftKey||t.setSignal("shiftKeyDown",!1)}))}))},function(t,e,n){var r=n(1),i=n(5);r.registerBehaviour("dragNodeAddToGroup",(function(t){var e,n,r=t.getGraph();function o(){t.setSignal("dragaddnodetogroup",!1),e=void 0,n=void 0}r.behaviourOn("dragenter",(function(o){if(t.getSignal("panningItem")){var a=t.get("panItems");a[0]&&a[0].isNode&&1===a.length&&o.item&&o.item.isGroup&&a[0].getParent()!==o.item&&(e=a[0],n=o.item,r.update(n,{padding:i.groupBackgroundPadding.map((function(t){return t+4})),style:i.dragNodeHoverToGroupStyle}))}})),r.behaviourOn("dragleave",(function(){n&&e&&r.update(n,{padding:void 0,style:void 0})})),r.behaviourOn("drop",(function(i){if(n&&e&&n===i.item){t.setSignal("dragaddnodetogroup",!0);var o=e.id,a=n.id;r.update(a,{padding:void 0,style:void 0,collapsed:!1});var c=t.editor;c?c.executeCommand(u):u()}function u(){r.update(o,{parent:a})}})),r.behaviourOn("dragend",(function(){o()})),r.behaviourOn("canvas:mouseleave",(function(){n&&(r.update(n,{padding:void 0,style:void 0}),o())}))}))},function(t,e,n){var r=n(1),i=n(5),o=n(2);r.registerBehaviour("dragOutFromGroup",(function(t){var e,n,r,a=t.getGraph(),c=!1;function u(){clearTimeout(r),n&&a.update(n,{padding:void 0,style:void 0}),c=!1,e=void 0,n=void 0}a.behaviourOn("drag",(function(u){t.getSignal("panningItem")&&!c&&(clearTimeout(r),r=setTimeout((function(){var r=t.get("panItems");if(r){if(e=r[0],n=r[0].getParent(),e&&1===r.length&&n&&!u.shape){var s=t.get("panItemDelegation").getBBox(),f=n.getBBox();o.rectRectCrossAlgorithm(s,f)&&(a.update(n,{padding:i.groupBackgroundPadding.map((function(t){return t-8})),style:i.dragNodeLeaveFromGroupStyle}),c=!0)}c||(e=void 0,n=void 0)}}),i.outFromGroupDelayTime))})),a.behaviourOn("dragenter",(function(t){e&&n&&(n===t.item&&a.update(n,{padding:i.groupBackgroundPadding.map((function(t){return t+4})),style:i.dragNodeHoverToGroupStyle}),c=!1)})),a.on("drop",(function(t){n&&e&&!t.shape&&(a.update(e,{parent:void 0}),a.update(n,{style:void 0}),u())})),a.on("dragend",(function(){u()})),a.behaviourOn("canvas:mouseleave",(function(){u()}))}))},function(t,e,n){var r=n(1),i=n(2),o=n(5);r.registerBehaviour("processAddEdge",(function(t){var e=t.getGraph();function n(){t.setSignal("dragEdge",!1),t.set("addEdgeConfig",{addModel:void 0,delegation:void 0,startPoint:void 0,sourceItem:void 0})}e.behaviourOn("mousemove",(function(n){var r=t.get("addEdgeConfig");if(r){var o=r.addModel,a=r.delegation,c=r.startPoint,u=r.sourceItem;a&&i.dragingEdgeEndPoint({endPointType:"target",edgeModel:o,graph:e,delegation:a,startPoint:c,ev:n,sourceItem:u})}})),e.behaviourOn("mouseup",(function(r){var a=t.get("addEdgeConfig");if(a){var c=a.addModel,u=a.delegation,s=a.sourceItem,f=t.editor;u?(e.getNodes().forEach((function(e){t.clearAnchor(e)})),t.clearAnchor(s),t.setActived(s,!1),t.setSelected(s,!1),t.css({cursor:o.cursor.beforePanCanvas}),u.remove(),i.dropUpdateEdge({ev:r,endPointType:"target",model:c,diagram:t})&&(f?f.executeCommand("add",{type:"edge",addModel:c}):e.add("edge",c)),e.draw(),t.endAdd(),n()):n()}})),e.behaviourOn("canvas:mouseleave",(function(){var r=t.get("addEdgeConfig");if(r){var i=r.delegation,o=r.sourceItem;i?(e.getNodes().forEach((function(e){t.clearAnchor(e)})),t.setActived(o,!1),t.clearAnchor(o),i.remove(),t.cancelAdd(),e.draw(),n()):n()}}))}))},function(t,e,n){n(1).registerBehaviour("hoverNodeAddOutter",(function(t){var e,n=t.getGraph();n.behaviourOn("node:mouseenter",(function(n){var r=n.item;t.getSignal("dragEdge")&&(e=r,t.addOutterShape(r,{stroke:"#52C41A",strokeOpacity:.45,lineWidth:4}))})),n.behaviourOn("node:mouseleave",(function(){e&&t.clearOutterShape(e)})),n.behaviourOn("beforedropedge",(function(){e&&t.clearOutterShape(e)}))}))},function(t,e,n){var r=n(1),i=n(5),o=n(2);r.registerBehaviour("orbit",(function(t){var e,n=t.getGraph();n.behaviourOn("beforepanitem",(function(){t.hideOrbit()})),n.behaviourOn("node:mouseenter",(function(n){var r=n.item;t.getSignal("panningItem")||t.getSignal("dragEdge")||(e=r,t.showOrbit(r))})),n.on("beforeviewportchange",(function(){t.hideOrbit()})),n.behaviourOn("mousemove",(function(r){var a=r.item,c=r.x,u=r.y;if(e){var s=e.getBBox(),f=o.euclideanDistance.pointPoint({x:s.centerX,y:s.centerY},{x:c,y:u}),l=n.getMatrix()[0];a!==e&&f>s.width/2+i.orbitGap/l&&(t.hideOrbit(),e=void 0),e&&t.layoutOrbit(e,{x:c,y:u})}}))}))},function(t,e,n){var r=n(11);n(96),t.exports=r},function(t,e,n){n(97),n(98),n(99),n(100),n(101)},function(t,e,n){var r=n(11);r.registerNode("flow-base",{}),r.registerNode("flow-html",{},["html"]),r.registerNode("flow-rect",{},"flow-base"),r.registerNode("flow-capsule",{},"capsule"),r.registerNode("flow-circle",{},"circle"),r.registerNode("flow-rhombus",{},"rhombus")},function(t,e,n){n(11).registerEdge("flow-base",{})},function(t,e,n){var r=n(19),i=n(11);function o(t,e,n,r){var i=r?r/2:30,o=r;if(t<=e&&e<=n||t>=e&&e>=n){var a=(n-e)/2,c=Math.abs(a);if(0===a)return t===e?0:(e-t)/Math.abs(e-t)*i;if(c>o){var u=a/c*o;return Math.abs(u)<i?a/c*i:u}return c<i?a/c*i:a}var s=i;return(s=Math.abs(e-n)<2*Math.abs(e-t)?r*Math.abs(e-n)/(2*Math.abs(e-t)):r)>o&&(s=o),s<i&&(s=i),e>t?s:-s}function a(t,e,n,r){var i,a,c=t.bbox,u=function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return n/e.width>r/e.height}(e,c);i=a=0;var s=Math.min(c.height,c.width);return r&&r.bbox&&(s=Math.min(s,r.bbox.height,r.bbox.width)),u?i=o(c.centerX,e.x,n.x,s):a=o(c.centerY,e.y,n.y,s),{x:e.x+i,y:e.y+a}}var c=.1;function u(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:n+(i-n)*c,y:r+(o-r)*c}}function s(t,e,n){var i=t[0],o=t[t.length-1],c=["M",i.x,i.y],s=function(t,e,n,r){return[n&&n.bbox?a(n,t,e,r):u(t,e),r&&r.bbox?a(r,e,t,n):u(e,t)]}(i,o,e,n),f=["C"],l=[c];return r.each(s,(function(t){f.push(t.x,t.y)})),f.push(o.x,o.y),l.push(f),l}i.registerEdge("flow-smooth",{getPathByPoints:function(t){return s(t.points,t.source,t.target)}},"flow-edge")},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=n(19),a=n(11),c=16,u=5;function s(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+o)/2,minX:n,minY:r,maxX:i,maxY:o,height:o-r,width:i-n}}function f(t,e){return 2*Math.abs(t.centerX-e.centerX)<t.width+e.width&&2*Math.abs(t.centerY-e.centerY)<t.height+e.height}function l(t){var e=t.x,n=t.y;return{centerX:e,centerY:n,minX:e,minY:n,maxX:e,maxY:n,height:0,width:0}}function h(t,e){return 0===t.width&&0===t.height?t:{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}}function d(t,e){return function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return n/e.width>r/e.height}(e,t)?{x:e.x>t.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}}function p(t){var e=t.minX,n=t.minY,r=t.maxX,i=t.maxY;return[{x:e,y:n},{x:r,y:n},{x:r,y:i},{x:e,y:i}]}function g(t,e){var n=t.x,r=t.y;return n<e.minX||n>e.maxX||r<e.minY||r>e.maxY}function v(t,e,n,r){var i=e.x-t.x,o=e.y-t.y,a=r.x-n.x,c=r.y-n.y,u=(-o*(t.x-n.x)+i*(t.y-n.y))/(-a*o+i*c),s=(a*(t.y-n.y)-c*(t.x-n.x))/(-a*o+i*c);return u>=0&&u<=1&&s>=0&&s<=1}function m(t,e,n){if(n.width===n.height===0)return!1;var r=i(p(n),4),o=r[0],a=r[1],c=r[2],u=r[3];return v(t,e,o,a)||v(t,e,o,u)||v(t,e,a,c)||v(t,e,c,u)}function y(t){return x(t)}function b(t,e){return[t,{x:t.x,y:e.y},e]}function x(t){var e=[],n={};return t.forEach((function(t){var e=t.id="".concat(t.x,"-").concat(t.y);n[e]=t})),o.each(n,(function(t){e.push(t)})),e}function w(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)}function _(t,e,n,r,i){return w(t,e)+w(t,n)+function(t,e){var n=0;return e.forEach((function(e){e&&(t.x===e.x&&(n+=-2),t.y===e.y&&(n+=-2))})),n}(t,[e,n,r,i])}function S(t,e,n,i,o,a,c){var u=[],s=[e],f={},l={},h={};l[e.id]=0,h[e.id]=_(e,n,e);var d={};t.forEach((function(t){d[t.id]=t}));for(var p=function(){var r,p,g,v=void 0,y=1/0;if(s.forEach((function(t){h[t.id]<y&&(y=h[t.id],v=t)})),v===n){var b=[];return function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;e.unshift(n[i]),r[i]&&r[i]!==i&&o<=100&&t(e,n,r,r[i],o+1)}(b,d,f,n.id),{v:b}}p=v,(g=(r=s).indexOf(p))>-1&&r.splice(g,1),u.push(v),function(t,e,n,r){var i=[];return t.forEach((function(t){t!==e&&(t.x!==e.x&&t.y!==e.y||m(t,e,n)||m(t,e,r)||i.push(t))})),x(i)}(t,v,i,o).forEach((function(t){if(-1===u.indexOf(t)){-1===s.indexOf(t)&&s.push(t);var r=h[v.id]+w(v,t);l[t.id]&&r>=l[t.id]||(f[t.id]=v.id,l[t.id]=r,h[t.id]=l[t.id]+_(t,n,e,a,c))}}))};s.length;){var g=p();if("object"===r(g))return g.v}return console.error("cannot find path: ",t,e,n),[e,n]}function M(t,e,n,r,i){var o=n&&n.bbox?n.bbox:l(t),a=r&&r.bbox?r.bbox:l(e);if(f(o,a))return y(b(t,e));var c=h(o,i),u=h(a,i);if(f(c,u))return y(b(t,e));var v=d(c,t),m=d(u,e),w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],n=[];t.forEach((function(t){e.push(t.x),n.push(t.y)}));var r=Math.min.apply(Math,e),i=Math.max.apply(Math,e),o=Math.min.apply(Math,n),a=Math.max.apply(Math,n);return{centerX:(r+i)/2,centerY:(o+a)/2,maxX:i,maxY:a,minX:r,minY:o,height:a-o,width:i-r}}([v,m]),_=(s(c,u),s(c,w)),M=s(u,w),P=[];P=(P=P.concat(p(_))).concat(p(M));var O={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[w,_,M].forEach((function(t){P=P.concat(function(t,e){return function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]}(t,e.x).concat(function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]}(t,e.y))}(t,O).filter((function(t){return g(t,c)&&g(t,u)})))})),[{x:v.x,y:m.y},{x:m.x,y:v.y}].forEach((function(t){g(t,c)&&g(t,u)&&P.push(t)})),P.unshift(v),P.push(m);var E=S(P=x(P),v,m,o,a,t,e);return E.unshift(t),E.push(e),y(E)}function P(t,e){var n=[],r=t[0];return n.push("M".concat(r.x," ").concat(r.y)),t.forEach((function(r,o){var a=t[o+1],c=t[o+2];if(a&&c)if(function(t,e,n){return!(t.x===e.x===n.x||t.y===e.y===n.y)}(r,a,c)){var u=i(function(t,e,n,r){var i=w(t,e),o=w(n,e);return i<r&&(r=i),o<r&&(r=o),[{x:e.x-r/i*(e.x-t.x),y:e.y-r/i*(e.y-t.y)},{x:e.x-r/o*(e.x-n.x),y:e.y-r/o*(e.y-n.y)}]}(r,a,c,e),2),s=u[0],f=u[1];n.push("L".concat(s.x," ").concat(s.y)),n.push("Q".concat(a.x," ").concat(a.y," ").concat(f.x," ").concat(f.y)),n.push("L".concat(f.x," ").concat(f.y))}else n.push("L".concat(a.x," ").concat(a.y));else a&&n.push("L".concat(a.x," ").concat(a.y))})),n.join("")}a.registerEdge("flow-polyline",{getPathByPoints:function(t){var e=t.points,n=t.source,r=t.target,i=c,a=M(e[0],e[e.length-1],n,r,i);return o.pointsToPolygon(a)}}),a.registerEdge("flow-polyline-round",{getPathByPoints:function(t){var e=t.points,n=t.source,r=t.target,i=c,o=u;return P(y(M(e[0],e[e.length-1],n,r,i)),o)}})},function(t,e,n){n(11).registerGroup("flow-base",{})},function(t,e,n){var r=n(17);n(103),t.exports=r},function(t,e,n){n(104),n(105),n(106)},function(t,e,n){n(17).registerNode("koni-base",{defaultFillPalette:5,defaultStrokePalette:5,activedFillPalette:4,activedStrokePalette:6,selectedFillPalette:5,selectedStrokePalette:6,anchor:null},"circle")},function(t,e,n){var r=n(17),i=n(24),o=i.vec2;r.registerEdge("koni-base",{getDefaultLabelRectPadding:function(){return i.toAllPadding([0,2])},getPathByPoints:function(t){var e=t.points,n=t.source,r=t.target,a=t.item;if(n&&r){var c=i.getParallelEdges(r,n),u=i.getParallelEdges(n,r),s=u.indexOf(a);return n===r?(s=(u=u.filter((function(t){var e=t.getModel();return e.source===n.id&&e.target===r.id}))).indexOf(a),function(t,e){var n=t.getBBox(),r=[n.centerX,n.centerY],i=n.width/2,a=50*(e+1)+50,c=[r[0]-i/2,r[1]-Math.sqrt(3)/2*i],u=[c[0]-r[0],c[1]-r[1]],s=o.scale([],u,(i+a)/i),f=[r[0]+s[0],r[1]+s[1]],l=[r[0]+i/2,r[1]-Math.sqrt(3)/2*i],h=[l[0]-r[0],l[1]-r[1]],d=o.scale([],h,(i+a)/i),p=[r[0]+d[0],r[1]+d[1]];return[["M",c[0],c[1]],["C",f[0],f[1],p[0],p[1],l[0],l[1]]]}(n,s)):(0===c.length&&s--,function(t,e,n){var r=t.getBBox(),i=e.getBBox(),a=r.centerX,c=r.centerY,u=20*(n+1),s=[.5*(i.centerX+a)-a,.5*(i.centerY+c)-c],f=[-s[1],s[0]],l=o.length(f);o.scale(f,f,u/l);var h={x:s[0]+f[0]+a,y:s[1]+f[1]+c},d=t.getLinkPoints(h)[0],p=e.getLinkPoints(h)[0];return[["M",d.x,d.y],["Q",h.x,h.y,p.x,p.y]]}(n,r,s))}return i.pointsToPolygon(e)}})},function(t,e,n){n(17).registerGroup("koni-base",{})},function(t,e,n){var r=n(8);r.Util=n(10),n(108),n(112),n(120),t.exports=r},function(t,e,n){n(109),n(110),n(111)},function(t,e,n){var r=n(1),i=n(10);r.registerBehaviour("panMindNode",(function(t){var e,n,r,o=t.getGraph();function a(){e.nth=n;var i=o.add("node",e);t.setSelected(i,!0),r&&o.remove(r.id)}function c(){o.emit("panitemend"),e=void 0,r=void 0,n=void 0}o.behaviourOn("beforeshowdelegation",(function(){t.clearSelected(),t.clearActived()})),o.behaviourOn("node:dragstart",(function(t){if(2!==t.button){var r=t.item;!(e=r.getModel()).parent||t.shape.isCollapsedButton||t.shape.isExpandedButton?c():(n=o.getNth(r),o.remove(r))}})),o.behaviourOn("itempanning",(function(e){if(!e.shape||!e.shape.isPlaceholder){var n=t.getHotArea(e),i=t.getRoot();if(r&&(n?r.id!==n.id&&o.remove(o.find(r.id)):o.remove(o.find(r.id))),r=n,n){var a=n.parent;if(!o.find(n.id)){var c={id:n.id,parent:a.id,isPlaceholder:!0,parentModel:a,baseline:r.parent.id===i.id?"center":void 0,shape:"mind-placeholder",nth:n.nth};n.side&&(c.side=n.side),o.add("node",c)}}}})),o.behaviourOn("drop",(function(){if(e)if(r){var u=i.clone(e);o.remove(r.id),t.executeCommand("moveMindNode",{model:u,newParentId:r.parent.id,newNth:r.nth,newSide:r.side,originParentId:e.parent,originNth:n,originSide:e.side})}else a();c()})),o.behaviourOn("canvas:mouseleave",(function(){e&&(a(),c())}))}),["startPanItem","processPanItem","endPanItem"])},function(t,e,n){n(1).registerBehaviour("keydownMoveSelection",(function(t){t.getGraph().on("keydown",(function(e){t._moveItemSelection(e)}))}))},function(t,e,n){n(1).registerBehaviour("keydownEditLabel",(function(t){t.getGraph().behaviourOn("keydown",(function(e){t.showLabelEditor(e)}))}))},function(t,e,n){n(113),n(114),n(115),n(116),n(117),n(118),n(119)},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(8),a=n(10),c={fill:"#000",textAlign:"left",textBaseline:"top"},u={stroke:"#959EA6",strokeOpacity:0,fill:"#959EA6",cursor:"pointer"},s={stroke:"#434B54",fill:"#fff",cursor:"pointer"};o.registerNode("mind-base",{dy:4,afterDraw:function(t){var e=t.getModel();e.children&&e.children.length>0&&e.collapsed&&this.drawExpandedButton(t)},debugDrawLayoutPoint:function(t){var e=t.getModel();t.getGraphicGroup().addShape("circle",{attrs:{x:e.x,y:e.y,r:5,fill:"red"}})},drawExpandedButton:function(t){var e=t.getKeyShape().getBBox(),n=t.getGraphicGroup().addGroup(),i=n.addShape("path",{attrs:r({path:a.getRectPath(0,0,16,7,3)},u)}),o=i.getBBox(),c=a.getMindNodeSide(t),s=this.getButtonPositon(e,o,c),f={fill:"white",r:1};n.addShape("circle",{attrs:r({},f,{x:4,y:3.5}),capture:!1}),n.addShape("circle",{attrs:r({},f,{x:8,y:3.5}),capture:!1}),n.addShape("circle",{attrs:r({},f,{x:12,y:3.5}),capture:!1}),i.attr("lineAppendWidth",20),n.translate(s.x,s.y),i.isExpandedButton=!0,i.isButton=!0},drawCollapsedButton:function(t){var e=t.getKeyShape().getBBox(),n=t.getGraphicGroup().addShape("path",{attrs:r({path:a.getCollapsedButtonPath()},s)}),i=n.getBBox(),o=a.getMindNodeSide(t),c=this.getButtonPositon(e,i,o);n.translate(c.x,c.y),n.isCollapsedButton=!0,n.isButton=!0},getButtonPositon:function(t,e,n){return"right"===n?{x:t.maxX+2,y:t.maxY-(e.maxY-e.minY)/2}:{x:t.minX-(e.maxX-e.minX)-2,y:t.maxY-(e.maxY-e.minY)/2}},getLabel:function(t){return t.getModel().label},getPadding:function(){return[4,8,4,8]},getSize:function(t){var e=t.getModel(),n=t.getGraphicGroup(),r=e.size;if(e.size){if(a.isArray(r))return r;if(a.isNumber(r))return[r,r]}var i=n.findByClass("label")[0],o=this.getPadding(t),c=i.getBBox();return[c.width+o[1]+o[3],c.height+o[0]+o[2]]},getPath:function(t){var e=this.getSize(t),n=this.getStyle(t);return a.getRectPath(-e[0]/2,-e[1]/2+this.dy,e[0],e[1],n.radius)},drawLabel:function(t){var e=t.getGraphicGroup(),n=this.getLabel(t),r=this.getLabelStyle(t);n||(n=" ");var i=a.mix(!0,{},c,r,{x:0,y:0});a.isObject(n)?a.mix(i,n):i.text=n;var o=e.addShape("text",{class:"label",attrs:i});return this.adjustLabelText(o),this.adjustLabelPosition(t,o),o},adjustLabelText:function(t){var e=t.attr("text"),n=t.getBBox();if(n.maxX-n.minX>400){var r=t.attr("font");e=a.getLabelTextByTextLineWidth(e,r),t.attr("text",e)}},adjustLabelPosition:function(t,e){var n=this.getSize(t),r=this.getPadding(),i=n[0],o=e.getBBox();e.attr({x:-i/2+r[3],y:-o.height/2+this.dy})},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",lineHeight:18,fontSize:12}},getStyle:function(){return{fill:"#ccc",fillOpacity:0,radius:4,lineWidth:2}},getActivedStyle:function(){return{stroke:"#44C0FF",lineWidth:2}},getSelectedStyle:function(){return{stroke:"#1AA7EE",lineWidth:2}},anchor:[[0,1],[1,1]]})},function(t,e,n){n(8).registerNode("mind-first-sub",{dy:0,getPadding:function(){return[6,12,8,12]},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",fontWeight:500,fontSize:14,lineHeight:20}}})},function(t,e,n){n(8).registerNode("mind-second-sub",{dy:0,getPadding:function(){return[8,4,8,4]},getLabelStyle:function(){return{fill:"rgba(38,38,38,0.85)",fontSize:12,lineHeight:20}}})},function(t,e,n){var r=n(8),i=n(10);r.registerNode("mind-root",{adjustLabelPosition:function(t,e){var n=e.getBBox();e.attr({x:-n.width/2,y:-n.height/2-1})},getPath:function(t){var e=this.getSize(t),n=this.getStyle(t);return i.getRectPath(-e[0]/2,-e[1]/2,e[0],e[1],n.radius)},getButtonPositon:function(t,e,n){return"right"===n?{x:t.maxX+2,y:(t.maxY+t.minY)/2-(e.maxY-e.minY)/2}:{x:t.minX-(e.maxX-e.minX)-2,y:(t.maxY+t.minY)/2-(e.maxY-e.minY)/2}},getPadding:function(){return i.toAllPadding([12,24])},getStyle:function(){return{fill:"#587EF7",stroke:"#587EF7",fillOpacity:1,radius:4}},getLabelStyle:function(){return{fontSize:20,fill:"white",lineHeight:28}},drawExpandedButton:function(){},drawCollapsedButton:function(){},panAble:!1,anchor:[[.45,.5],[.55,.5]]},"mind-first-sub")},function(t,e,n){var r=n(8),i=n(10);r.registerNode("mind-placeholder",{afterDraw:function(t){t.getKeyShape().isPlaceholder=!0},getPath:function(t){var e,n=t.getModel().parentModel,r=this.getStyle(t),o=0;return n.hierarchy<=2?e=28:(e=20,o=4),i.getRectPath(-27.5,-e/2+o,55,e,r.radius)},getStyle:function(){return{fill:"#91D5FF",radius:4,lineWidth:3}},drawExpandedButton:function(){},drawCollapsedButton:function(){},anchor:function(){return[[0,1],[1,1]]}})},function(t,e,n){n(8).registerEdge("mind-edge",{getEdetal:function(t){return t.children&&t.children.length>0&&!t.collapsed?2===t.hierarchy?24:18:0},getPath:function(t){var e=t.getPoints(),n=t.getSource(),r=t.getTarget(),i=n.getBBox(),o=r.getBBox(),a=r.getModel(),c=14,u=4;if(2===a.hierarchy&&(c=66,u=30),e[0].y===e[1].y){var s=3===a.hierarchy?24:18,f=this.getEdetal(a);return i.centerX<o.centerX?[["M",e[0].x+s,e[0].y],["L",o.maxX+f,o.maxY]]:[["M",e[0].x+2,e[0].y],["L",o.minX-f,o.maxY]]}if(a.hierarchy>=3){var l=3===a.hierarchy?24:18,h=this.getEdetal(a);if(i.centerX<o.centerX){var d=e[0].x+l;return[["M",e[0].x,e[0].y],["M",d,e[0].y],["C",d+u,e[0].y,o.minX-c,o.maxY,o.minX,o.maxY],["L",o.maxX+h,o.maxY]]}var p=e[0].x-l;return[["M",e[0].x,e[0].y],["M",p,e[0].y],["C",p-u,e[0].y,o.maxX+c,o.maxY,o.maxX,o.maxY],["L",o.minX-h,o.maxY]]}var g=this.getEdetal(a);return i.centerX<o.centerX?[["M",e[0].x,e[0].y],["C",e[0].x+u,e[0].y,o.minX-c,o.maxY,o.minX,o.maxY],["L",o.maxX+g,o.maxY]]:[["M",e[0].x,e[0].y],["C",e[0].x-u,e[0].y,o.maxX+c,o.maxY,o.maxX,o.maxY],["L",o.minX-g,o.maxY]]},getStyle:function(t){var e=t.getTarget(),n=1;if(e){var r=e.getModel();n=r.hierarchy<=3?3:r.hierarchy<=5?2:1}return{stroke:"#959EA6",lineWidth:n}}})},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(8).registerEdge("mind-placeholder-edge",{getOriginShapeObject:function(t){return t.getGraph().getShapeObj("edge",{shape:"mind-edge"})},getPath:function(t){return this.getOriginShapeObject(t).getPath(t)},getStyle:function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({},this.getOriginShapeObject(t).getStyle(t),{stroke:"#91D5FF"})}})},function(t,e,n){var r=n(15),i=n(10);function o(t,e,n){var r=t.getGraph(),i=e.getModel(),o=t.getFirstChildrenBySide("left"),a=o[0]&&r.find(o[0].id);return r.add("node",{id:n,parent:e.id,label:"新建节点",side:i.children.length>2?"left":"right",nth:a?r.getNth(a):void 0})}r.registerCommand("append",{enable:function(t){var e=t.getCurrentPage(),n=e.getSelected();return e.isMind&&1===n.length},getItem:function(t){var e=t.getCurrentPage(),n=e.getGraph();return this.selectedItemId?n.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,n=t.getCurrentPage(),r=n.getGraph(),i=n.getRoot(),a=this.getItem(t),c=a.getModel(),u=c.hierarchy,s=a.getParent();if(a.isRoot)e=o(n,a,this.addItemId);else{var f=r.getNth(a);e=r.add("node",{id:this.addItemId,parent:s.id,side:2===u&&3===i.children.length?"left":c.side,label:"新建节点",nth:"left"===c.side&&2===u?f:f+1})}n.clearSelected(),n.clearActived(),n.setSelected(e,!0),1===this.executeTimes&&(this.selectedItemId=a.id,this.addItemId=e.id,n.beginEditLabel(e))},back:function(t){var e=t.getCurrentPage();e.getGraph().remove(this.addItemId),e.clearSelected(),e.clearActived(),e.setSelected(this.selectedItemId,!0)},shortcutCodes:["Enter"]}),r.registerCommand("appendChild",{enable:function(t){var e=t.getCurrentPage(),n=e.getSelected();return e.isMind&&n.length>0},getItem:function(t){var e=t.getCurrentPage(),n=e.getGraph();return this.selectedItemId?n.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,n=t.getCurrentPage(),r=n.getGraph(),i=this.getItem(t);e=i.isRoot?o(n,i,this.addItemId):r.add("node",{id:this.addItemId,parent:i.id,label:"新建节点"}),n.clearSelected(),n.clearActived(),n.setSelected(e,!0),1===this.executeTimes&&(this.selectedItemId=i.id,this.addItemId=e.id,n.beginEditLabel(e))},back:function(t){var e=t.getCurrentPage();e.getGraph().remove(this.addItemId),e.clearSelected(),e.clearActived(),e.setSelected(this.selectedItemId,!0)},shortcutCodes:["Tab"]}),r.registerCommand("moveMindNode",{enable:function(t){var e=t.getCurrentPage(),n=e.get("panItems");return e.isMind&&n&&n.length>0},execute:function(t){var e=t.getCurrentPage(),n=e.getGraph(),r=this.newParentId,o=this.newNth,a=this.newSide,c=i.clone(this.model);delete c.shape,delete c.side,n.remove(c.id),i.mix(c,{parent:r,nth:o,side:a});var u=n.add("node",c);e.clearSelected(),e.setSelected(u,!0)},back:function(t){var e=t.getCurrentPage(),n=e.getGraph(),r=this.originParentId,o=this.originNth,a=this.originSide,c=i.clone(this.model);delete c.shape,delete c.side,n.remove(c.id),i.mix(c,{parent:r,nth:o,side:a});var u=n.add("node",c);e.clearSelected(),e.setSelected(u,!0)}})},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=n(6),s=n(9),f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var n,r,f;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,s),n=e,(r=[{key:"getDefaultCfg",value:function(){return{type:"toolbar",container:null}}},{key:"init",value:function(){this._initContainer()}},{key:"_initContainer",value:function(){var t=this.container;if(!t)throw new Error("please set the container for the toolbar !");u.isString(t)&&(t=document.getElementById(t));var e=t.getElementsByClassName("command");this.commands=e}},{key:"getCommandDoms",value:function(){return this.commands}}])&&i(n.prototype,r),f&&i(n,f),e}();t.exports=f},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=n(6),s=n(9),f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var n,r,f;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,s),n=e,(r=[{key:"getDefaultCfg",value:function(){return{type:"contextmenu",container:null}}},{key:"init",value:function(){this._initContainer()}},{key:"_initContainer",value:function(){var t=this.container;if(!t)throw new Error("please set the container for the tontextmenu !");u.isString(t)&&(t=document.getElementById(t));var e=t.getElementsByClassName("command");t.style.position="absolute",t.style["z-index"]=2,t.style.top="0px",t.style.left="0px",this.commands=e,this.containerDom=t}},{key:"bindEvent",value:function(){var t=this,e=this.commands;u.each(e,(function(e){u.addEventListener(e,"click",(function(){-1===e.className.indexOf("disable")&&t.hide()}))}))}},{key:"switch",value:function(t){var e=this.containerDom.getElementsByClassName("menu");u.each(e,(function(e){e.dataset.status===t?e.style.display="block":e.style.display="none"}))}},{key:"getCommandDoms",value:function(){return this.commands}},{key:"show",value:function(){var t=this.containerDom;this.editor.getCurrentPage().setSignal("preventWheelPan",!0),t.style.display="block"}},{key:"hide",value:function(){var t=this.containerDom;this.editor.getCurrentPage().setSignal("preventWheelPan",!1),t.style.display="none"}},{key:"move",value:function(t,e){var n=this.containerDom,r=u.getBoundingClientRect(n),i=parseFloat(u.getStyle(n,"top")),o=parseFloat(u.getStyle(n,"left"));n.style.left=o+(t-r.left)+"px",n.style.top=i+(e-r.top)+"px"}}])&&i(n.prototype,r),f&&i(n,f),e}();t.exports=f},function(t,e,n){var r=n(12);n(124),n(127),t.exports=r},function(t,e,n){n(125),n(126)},function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,a,c=n(20),u=c.mouseEnterEdge,s=c.startMove,f=c.mouseLeaveEdge,l=c.mouseMoveEdge,h=c.endMove;n(12).registerBehaviour("bpmnMoveEdgeController",(function(t){var e,n=t.getGraph(),i=n.getRootGroup();function c(){t.set("panItemDelegation",void 0),t.set("panItemStartBox",void 0),t.set("panItemStartPoint",void 0),e=void 0}n.behaviourOn("edge:mouseenter",(function(e){!o&&e.item&&(a=e.item,u({graph:n,bpmn:t,ev:e,backUpCursor:!0}))})),n.behaviourOn("edge:mousedown",(function(t){var e=t.item;s(n,t),o=e})),n.behaviourOn("mouseup",(function(){o&&(h({graph:n,item:o}),o=void 0)})),n.behaviourOn("mousemove",(function(e){o?l(n,o,e):a&&u({graph:n,bpmn:t,ev:r({},e,{item:a}),backUpCursor:!1})})),n.behaviourOn("edge:mouseleave",(function(){o||a&&(f({graph:n,bpmn:t,item:a}),a=void 0)})),n.behaviourOn("node:dragstart",(function(n){var r=n.item.getBBox();e=t.getDelegation([r],i),t.set("bpmnNodePanDelegation",e),t.set("bpmnNodePanStartBox",r),t.set("bpmnNodePanStartPoint",{x:n.x,y:n.y}),t.set("bpmnNodePanStartItem",n.item)})),n.behaviourOn("node:dragend",(function(e){var r=t.get("bpmnNodePanDelegation"),i=t.get("bpmnNodePanStartPoint"),o=t.get("bpmnNodePanStartItem");o&&o.getEdges().forEach((function(t){n.update(t,{nodeMoved:{item:o.id,start:i,delta:{x:e.x-i.x,y:e.y-i.y}}})})),r.remove(),c()}))}),["startPanItem","processPanItem","endPanItem"])},function(t,e,n){n(12).registerBehaviour("hoverNodeShowArrowController",(function(t){var e,n=t.getGraph(),r=t.get("arrowController"),i=r.long,o=r.thickness;n.on("node:mouseenter",(function(a){if(!t.getSignal("panningItem")&&!t.getSignal("dragEdge")){var c=r.topArrow,u=r.bottomArrow,s=r.leftArrow,f=r.rightArrow,l=(e=a.item).getBBox(),h=n.getDomPoint({x:l.centerX,y:l.minY}),d=n.getDomPoint({x:l.minX,y:l.centerY}),p=n.getDomPoint({x:l.centerX,y:l.maxY}),g=n.getDomPoint({x:l.maxX,y:l.centerY});c.css({top:h.y-(i+10)+"px",left:h.x-o/2+"px",transform:"rotate(-90deg)"}),u.css({top:p.y+10+"px",left:p.x-o/2+"px",transform:"rotate(90deg)"}),s.css({top:d.y-o/2+"px",left:d.x-(i+10)+"px",transform:"rotate(180deg)"}),f.css({top:g.y-o/2+"px",left:g.x+10+"px"}),c.setAttribute("anchorIndex",0),u.setAttribute("anchorIndex",2),s.setAttribute("anchorIndex",3),f.setAttribute("anchorIndex",1),t.showArrowController(e)}})),n.behaviourOn("mousemove",(function(n){var r=n.x,o=n.y;if(e){var a=e.getBBox(),c=i+10,u=a.minX-c,s=a.minY-c,f=a.maxX+c,l=a.maxY+c;(r<u||o<s||r>f||o>l)&&(t.hideArrowController(),e=void 0)}}))}))},function(t,e,n){n(128),n(12).registerNode("bpmn-base",{anchor:null})},function(t,e,n){"use strict";n.r(e);var r=n(12),i=n.n(r),o=n(0);function a(t){var e=t.bbox,n=t.shape,r=void 0===n?"ROUNDED_RECT":n,i=t.point,o=t.vertical;o=!!o;var a={true:"x",false:"y"},c={true:"minX",false:"minY"},u={true:"maxX",false:"maxY"};switch(r){case"ROUNDED_RECT":if(i[a[o]]>=e[c[o]]+4&&i[a[o]]<=e[u[o]]-4)return{added:void 0,joint:{x:o?i.x:i.x>e.centerX?e.maxX:e.minX,y:o?i.y>e.centerY?e.maxY:e.minY:i.y}};if(i[a[o]]>=e[c[o]]&&i[a[o]]<e[c[o]]+4)return{added:void 0,joint:{x:o?i.x:i.x>e.centerX?e.maxX-4+Math.sqrt(16-Math.pow(e.minY+4-i.y,2)):e.minX+4-Math.sqrt(16-Math.pow(e.minY+4-i.y,2)),y:o?i.y>e.centerY?e.maxY-4+Math.sqrt(16-Math.pow(e.minX+4-i.x,2)):e.minY+4-Math.sqrt(16-Math.pow(e.minX+4-i.x,2)):i.y}};if(i[a[o]]>=e[u[o]]-4&&i[a[o]]<=e[u[o]])return{added:void 0,joint:{x:o?i.x:i.x>e.centerX?e.maxX-4+Math.sqrt(16-Math.pow(i.y-e.maxY+4,2)):e.minX+4-Math.sqrt(16-Math.pow(i.y-e.maxY+4,2)),y:o?i.y>e.centerY?e.maxY-4+Math.sqrt(16-Math.pow(i.x-e.maxX+4,2)):e.minY+4-Math.sqrt(16-Math.pow(i.x-e.maxX+4,2)):i.y}};break;case"CIRCLE":if(i[a[o]]>=e[c[o]]&&i[a[o]]<=e[u[o]])return{added:void 0,joint:{x:o?i.x:i.x>e.centerX?e.centerX+Math.sqrt(16-Math.pow(e.centerY-i.y)):e.centerX-Math.sqrt(16-Math.pow(e.centerY-i.y)),y:o?i.y>e.centerY?e.centerY+Math.sqrt(16-Math.pow(e.centerX-i.x)):e.centerY-Math.sqrt(16-Math.pow(e.centerX-i.x)):i.y}};break;case"RHOMEBUS":if(i[a[o]]>=e[c[o]]&&i[a[o]]<=e[u[o]])return{added:void 0,joint:{x:o?i.x:i.x>e.centerX?i.y<e.centerY?(i.y-e.minY)*(e.maxX-e.centerX)/(e.centerY-e.minY)+e.centerX:(e.maxY-i.y)*(e.maxX-e.centerX)/(e.maxY-e.centerY)+e.centerX:i.y<e.centerY?e.centerX-(i.y-e.minY)*(e.centerX-e.minX)/(e.centerY-e.minY):e.centerX-(e.maxY-i.y)*(e.centerX-e.minX)/(e.maxY-e.centerY),y:o?i.y>e.centerY?i.x<e.centerX?(i.x-e.minX)*(e.maxY-e.centerY)/(e.centerX-e.minX)+e.centerY:(e.maxX-i.x)*(e.maxY-e.centerY)/(e.maxX-e.centerX)+e.centerY:i.x<e.centerX?e.centerY-(i.x-e.minX)*(e.centerY-e.minY)/(e.centerX-e.minX):e.centerY-(e.maxX-i.x)*(e.centerY-e.minY)/(e.maxX-e.centerX):i.y}};break;case"RECT":default:if(i[a[o]]>=e[c[o]]&&i[a[o]]<=e[u[o]])return{added:void 0,joint:{x:o?i.x:i.x>e.centerX?e.maxX:e.minX,y:o?i.y>e.centerY?e.maxY:e.minY:i.y}}}return o?i.x<e.centerX?{added:{x:i.x,y:e.centerY},joint:{x:e.minX,y:e.centerY}}:{added:{x:i.x,y:e.centerY},joint:{x:e.maxX,y:e.centerY}}:i.y<e.centerY?{added:{x:e.centerX,y:i.y},joint:{x:e.centerX,y:e.minY}}:{added:{x:e.centerX,y:i.y},joint:{x:e.centerX,y:e.maxY}}}var c=n(20);i.a.registerEdge("bpmn-base",{getPath:function(t){var e,n=t.getSource(),r=t.getTarget(),i=t.model;if(i.edgeMoved&&i.lastMouse){var u,s,f,l,h,d=i.controlPoints,p=i.hold.index,g=[{x:d[p].x+i.edgeMoved.x,y:d[p].y+i.edgeMoved.y},{x:d[p+1].x+i.edgeMoved.x,y:d[p+1].y+i.edgeMoved.y}],v=Object(o.j)(g,0);if(n){var m=a({bbox:n.getBBox(),point:v,vertical:i.hold.vertical,shape:n.model.shape});s=m.added,f=m.joint}if(0===p&&n&&(g[0]=f,s&&(g.splice(1,0,s),t.model.hold.index+=1)),r){var y=a({bbox:r.getBBox(),point:v,vertical:i.hold.vertical,shape:r.model.shape});l=y.added,h=y.joint}p===d.length-2&&r&&(s&&0===p?(g[2]=h,l&&g.splice(2,0,l)):(g[1]=h,l&&g.splice(1,0,l))),(u=i.controlPoints).splice.apply(u,[p,2].concat(g)),n&&Object(o.l)(f,d,i.hold.index)&&(d.splice(0,i.hold.index),i.hold.index=0,d[0]=f),r&&Object(o.l)(h,d,i.hold.index)&&(i.controlPoints.splice(i.hold.index+1),d[i.hold.index+1]=h),e=Object(c.mergeLine)(t,p),function(t,e,n){var r=t.controlPoints;if(e){var i=Object(o.f)(r[0],e.getBBox()),a=i.point,c=i.index;t.sourceJoint={index:c,delta:{x:r[0].x-a.x,y:r[0].y-a.y}}}if(n){var u=Object(o.f)(r[r.length-1],n.getBBox()),s=u.point,f=u.index;t.targetJoint={index:f,delta:{x:r[r.length-1].x-s.x,y:r[r.length-1].y-s.y}}}}(i,n,r),i.lastMouse={x:i.lastMouse.x+i.edgeMoved.x,y:i.lastMouse.y+i.edgeMoved.y}}else if(i.modifiedByMouse&&i.nodeMoved)!function(t,e,n){if(t.nodeMoved){var r=t.nodeMoved.item===e.id,i=t.nodeMoved.item===n.id,a=r?e.getBBox():n.getBBox(),c=t.nodeMoved.delta,u={minX:a.minX-c.x,maxX:a.maxX-c.x,centerX:a.centerX-c.x,minY:a.minY-c.y,maxY:a.maxY-c.y,centerY:a.centerY+c.y,height:a.height,width:a.width},s=t.controlPoints;if(2===s.length){var f=Object(o.d)(e,n),l=f.sourcePoint,h=f.targetPoint;t.sourceJoint&&l.index===t.sourceJoint.index&&(l.point=Object(o.c)(e.getBBox())[l.index],l.point.x+=t.sourceJoint.delta.x,l.point.y+=t.sourceJoint.delta.y),t.targetJoint&&h.index===t.targetJoint.index&&(h.point=Object(o.c)(n.getBBox())[h.index],h.point.x+=t.targetJoint.delta.x,h.point.y+=t.targetJoint.delta.y);var d=Object(o.h)(l,h);t.controlPoints=d}else{var p;p=r?1:s.length-3;var g=Object(o.i)(s,p),v=Object(o.a)(u,s,p),m=Object(o.a)(a,s,p),y=r?t.sourceJoint:t.targetJoint;if(v===m){var b=Object(o.c)(a)[y.index],x={x:b.x+y.delta.x,y:b.y+y.delta.y},w=Object(o.g)(x,s,p);r?t.controlPoints.splice(0,2,x,w):i&&t.controlPoints.splice(p+1,2,w,x)}else if(0===m)if(3===s.length){var _=Object(o.d)(e,n),S=_.sourcePoint,M=_.targetPoint,P=Object(o.h)(S,M);t.controlPoints=P}else{var O,E=Object(o.j)(s,p);O=g?E.y<a.centerY?0:2:E.x<a.centerX?3:1;var A=Object(o.c)(a)[O];if(r){var C=Object(o.g)(A,s,p+1);t.controlPoints.splice(0,3,A,C),t.sourceJoint={index:O,delta:{x:0,y:0}}}else if(i){var k=Object(o.g)(A,s,p-1);t.controlPoints.splice(p,3,k,A),t.targetJoint={index:O,delta:{x:0,y:0}}}}else{var j=Object(o.k)(y.index),I=Object(o.c)(a)[j],T=Object(o.g)(I,s,p);r?(t.controlPoints.splice(0,2,I,T),t.sourceJoint={index:j,delta:{x:0,y:0}}):i&&(t.controlPoints.splice(p+1,2,T,I),t.targetJoint={index:j,delta:{x:0,y:0}})}}}}(i,n,r);else if(!i.modifiedByMouse){var b=i.anchorIndex,x=Object(o.d)(n,r,!i.initialed&&b),w=x.sourcePoint,_=x.targetPoint,S=Object(o.h)(w,_);t.model.controlPoints=S}return i.nodeMoved=void 0,{path:this.getPathByPoints({points:i.controlPoints}),helpLine:e}},draw:function(t){var e=t.getGraphicGroup(),n=t.model,r=this.getPath(t),i=r.path,a=r.helpLine,c=this.getStyle(t),u=Object(o.b)(e,i,c);if(null!=n.hold){var s=Object(o.j)(n.controlPoints,n.hold.index);e.addShape("circle",{attrs:{x:s.x,y:s.y,r:3,fill:"rgb(0,182,239)"}})}return a&&(n.helpLine=a,n.helpLineTime=(new Date).getTime()),!a&&(new Date).getTime()-n.helpLineTime>=150&&(n.helpLine=void 0,n.helpLineTime=void 0),n.helpLine&&e.addShape("path",{attrs:{path:[["M",n.helpLine[0].x,n.helpLine[0].y],["L",n.helpLine[1].x,n.helpLine[1].y]],lineAppendWidth:8,lineWidth:1,strokeOpacity:.92,stroke:"rgba(255,139,48)"}}),u}})}])}))},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},7168:function(t,e,n){var r=n("dfdb");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7201:function(t,e,n){var r=n("9bfb");r("dispose")},"72af":function(t,e,n){var r=n("99cd"),i=r();t.exports=i},"72f0":function(t,e){function n(t){return function(){return t}}t.exports=n},"73ac":function(t,e,n){var r=n("743f"),i=n("b047"),o=n("99d3"),a=o&&o.isTypedArray,c=a?i(a):r;t.exports=c},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"743f":function(t,e,n){var r=n("3729"),i=n("b218"),o=n("1310"),a="[object Arguments]",c="[object Array]",u="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Function]",h="[object Map]",d="[object Number]",p="[object Object]",g="[object RegExp]",v="[object Set]",m="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",M="[object Int16Array]",P="[object Int32Array]",O="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",C="[object Uint32Array]",k={};function j(t){return o(t)&&i(t.length)&&!!k[r(t)]}k[w]=k[_]=k[S]=k[M]=k[P]=k[O]=k[E]=k[A]=k[C]=!0,k[a]=k[c]=k[b]=k[u]=k[x]=k[s]=k[f]=k[l]=k[h]=k[d]=k[p]=k[g]=k[v]=k[m]=k[y]=!1,t.exports=j},7463:function(t,e){t.exports={}},"746f":function(t,e,n){var r=n("428f"),i=n("5135"),o=n("c032"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"74e7":function(t,e,n){t.exports=n("bc59")},"74fd":function(t,e,n){var r=n("9bfb");r("observable")},7530:function(t,e,n){var r=n("1a8c"),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},"764b":function(t,e){t.exports={}},7685:function(t,e,n){var r=n("3ac6"),i=n("8fad"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},"76dd":function(t,e,n){var r=n("ce86");function i(t){return null==t?"":r(t)}t.exports=i},"77b2":function(t,e,n){var r=n("c1b2"),i=n("06fa"),o=n("7a37");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"78a2":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"78e7":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},7948:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}t.exports=n},"79bc":function(t,e,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Map");t.exports=o},"7a37":function(t,e,n){var r=n("3ac6"),i=n("dfdb"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},"7a48":function(t,e,n){var r=n("6044"),i=Object.prototype,o=i.hasOwnProperty;function a(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}t.exports=a},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7b83":function(t,e,n){var r=n("7c64"),i=n("93ed"),o=n("2478"),a=n("a524"),c=n("1fc8");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,t.exports=u},"7c64":function(t,e,n){var r=n("e24b"),i=n("5e2e"),o=n("79bc");function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}t.exports=a},"7c73":function(t,e,n){var r=n("825a"),i=n("37e8"),o=n("7839"),a=n("d012"),c=n("1be4"),u=n("cc12"),s=n("f772"),f=s("IE_PROTO"),l="prototype",h=function(){},d=function(){var t,e=u("iframe"),n=o.length,r="<",i="script",a=">",s="java"+i+":";e.style.display="none",c.appendChild(e),e.src=String(s),t=e.contentWindow.document,t.open(),t.write(r+i+a+"document.F=Object"+r+"/"+i+a),t.close(),d=t.F;while(n--)delete d[l][o[n]];return d()};t.exports=Object.create||function(t,e){var n;return null!==t?(h[l]=r(t),n=new h,h[l]=null,n[f]=t):n=d(),void 0===e?n:i(n,e)},a[f]=!0},"7de7":function(t,e,n){var r=n("0363"),i=r("iterator"),o=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){o=!0}};c[i]=function(){return this},Array.from(c,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"7e64":function(t,e,n){var r=n("5e2e"),i=n("efb6"),o=n("2fcc"),a=n("802a"),c=n("55a3"),u=n("d02c");function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=i,s.prototype["delete"]=o,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},"7f9a":function(t,e,n){var r=n("da84"),i=n("9e81"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i.call(o))},"802a":function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},8103:function(t,e,n){var r=n("d194"),i=r("toUpperCase");t.exports=i},8176:function(t,e,n){var r=n("2874");r(Math,"Math",!0)},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"85d3":function(t,e,n){t.exports=n("9a13")},"85e3":function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},8604:function(t,e,n){var r=n("26e8"),i=n("e2c0");function o(t,e){return null!=t&&i(t,e,r)}t.exports=o},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"872a":function(t,e,n){var r=n("3b4a");function i(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}t.exports=i},"89d9":function(t,e,n){var r=n("656b"),i=n("159a"),o=n("e2e4");function a(t,e,n){var a=-1,c=e.length,u={};while(++a<c){var s=e[a],f=r(t,s);n(f,s)&&i(u,o(s,t),f)}return u}t.exports=a},"8adb":function(t,e){function n(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=n},"8b7b":function(t,e,n){"use strict";var r=n("a5eb"),i=n("3ac6"),o=n("9883"),a=n("7042"),c=n("c1b2"),u=n("1e63"),s=n("06fa"),f=n("78e7"),l=n("6220"),h=n("dfdb"),d=n("6f8d"),p=n("4fff"),g=n("a421"),v=n("7168"),m=n("2c6c"),y=n("4896"),b=n("a016"),x=n("0cf0"),w=n("8e11"),_=n("a205"),S=n("44ba"),M=n("4180"),P=n("7043"),O=n("0273"),E=n("d666"),A=n("d659"),C=n("b2ed"),k=n("6e9a"),j=n("3e80"),I=n("0363"),T=n("fbcc"),B=n("9bfb"),L=n("2874"),N=n("2f5a"),D=n("dee0").forEach,Y=C("hidden"),G="Symbol",X="prototype",F=I("toPrimitive"),R=N.set,z=N.getterFor(G),H=Object[X],q=i.Symbol,U=o("JSON","stringify"),W=S.f,V=M.f,K=w.f,Z=P.f,$=A("symbols"),Q=A("op-symbols"),J=A("string-to-symbol-registry"),tt=A("symbol-to-string-registry"),et=A("wks"),nt=i.QObject,rt=!nt||!nt[X]||!nt[X].findChild,it=c&&s((function(){return 7!=y(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=W(H,e);r&&delete H[e],V(t,e,n),r&&t!==H&&V(H,e,r)}:V,ot=function(t,e){var n=$[t]=y(q[X]);return R(n,{type:G,tag:t,description:e}),c||(n.description=e),n},at=u&&"symbol"==typeof q.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},ct=function(t,e,n){t===H&&ct(Q,e,n),d(t);var r=v(e,!0);return d(n),f($,r)?(n.enumerable?(f(t,Y)&&t[Y][r]&&(t[Y][r]=!1),n=y(n,{enumerable:m(0,!1)})):(f(t,Y)||V(t,Y,m(1,{})),t[Y][r]=!0),it(t,r,n)):V(t,r,n)},ut=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return D(r,(function(e){c&&!ft.call(n,e)||ct(t,e,n[e])})),t},st=function(t,e){return void 0===e?y(t):ut(y(t),e)},ft=function(t){var e=v(t,!0),n=Z.call(this,e);return!(this===H&&f($,e)&&!f(Q,e))&&(!(n||!f(this,e)||!f($,e)||f(this,Y)&&this[Y][e])||n)},lt=function(t,e){var n=g(t),r=v(e,!0);if(n!==H||!f($,r)||f(Q,r)){var i=W(n,r);return!i||!f($,r)||f(n,Y)&&n[Y][r]||(i.enumerable=!0),i}},ht=function(t){var e=K(g(t)),n=[];return D(e,(function(t){f($,t)||f(k,t)||n.push(t)})),n},dt=function(t){var e=t===H,n=K(e?Q:g(t)),r=[];return D(n,(function(t){!f($,t)||e&&!f(H,t)||r.push($[t])})),r};if(u||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=j(t),n=function(t){this===H&&n.call(Q,t),f(this,Y)&&f(this[Y],e)&&(this[Y][e]=!1),it(this,e,m(1,t))};return c&&rt&&it(H,e,{configurable:!0,set:n}),ot(e,t)},E(q[X],"toString",(function(){return z(this).tag})),P.f=ft,M.f=ct,S.f=lt,x.f=w.f=ht,_.f=dt,c&&(V(q[X],"description",{configurable:!0,get:function(){return z(this).description}}),a||E(H,"propertyIsEnumerable",ft,{unsafe:!0})),T.f=function(t){return ot(I(t),t)}),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),D(b(et),(function(t){B(t)})),r({target:G,stat:!0,forced:!u},{for:function(t){var e=String(t);if(f(J,e))return J[e];var n=q(e);return J[e]=n,tt[n]=e,n},keyFor:function(t){if(!at(t))throw TypeError(t+" is not a symbol");if(f(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:st,defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ht,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:s((function(){_.f(1)}))},{getOwnPropertySymbols:function(t){return _.f(p(t))}}),U){var pt=!u||s((function(){var t=q();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))}));r({target:"JSON",stat:!0,forced:pt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(h(e)||void 0!==t)&&!at(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!at(e))return e}),i[1]=e,U.apply(null,i)}})}q[X][F]||O(q[X],F,q[X].valueOf),L(q,G),k[Y]=!0},"8d05":function(t,e,n){var r=n("9bfb");r("toPrimitive")},"8de2":function(t,e,n){var r=n("8eeb"),i=n("9934");function o(t){return r(t,i(t))}t.exports=o},"8e11":function(t,e,n){var r=n("a421"),i=n("0cf0").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?c(t):i(r(t))}},"8eeb":function(t,e,n){var r=n("32b3"),i=n("872a");function o(t,e,n,o){var a=!n;n||(n={});var c=-1,u=e.length;while(++c<u){var s=e[c],f=o?o(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),a?i(n,s,f):r(n,s,f)}return n}t.exports=o},"8f95":function(t,e,n){var r=n("fc48"),i=n("0363"),o=i("toStringTag"),a="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},"8fad":function(t,e,n){var r=n("3ac6"),i=n("0273");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},9080:function(t,e,n){var r=n("9bfb");r("isConcatSpreadable")},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9103:function(t,e,n){"use strict";var r=n("a421"),i=n("c44e"),o=n("7463"),a=n("2f5a"),c=n("4056"),u="Array Iterator",s=a.set,f=a.getterFor(u);t.exports=c(Array,"Array",(function(t,e){s(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"91e9":function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},"93ed":function(t,e,n){var r=n("4245");function i(t){var e=r(this,t)["delete"](t);return this.size-=e?1:0,e}t.exports=i},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";t.exports=o},9520:function(t,e,n){var r=n("3729"),i=n("1a8c"),o="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";function s(t){if(!i(t))return!1;var e=r(t);return e==a||e==c||e==o||e==u}t.exports=s},9638:function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},"96e9":function(t,e,n){var r=n("3ac6"),i=n("ab85"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i.call(o))},9802:function(t,e,n){var r=n("9bfb");r("replaceAll")},"980e":function(t,e,n){var r=n("9bfb");r("search")},9883:function(t,e,n){var r=n("764b"),i=n("3ac6"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},"98dc":function(t,e,n){var r=n("76dd"),i=0;function o(t){var e=++i;return r(t)+e}t.exports=o},9934:function(t,e,n){var r=n("6fcd"),i=n("41c3"),o=n("30c9");function a(t){return o(t)?r(t,!0):i(t)}t.exports=a},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),c=n("7b0b"),u=n("50c4"),s=n("8418"),f=n("65f0"),l=n("1dde"),h=n("b622"),d=n("60ae"),p=h("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=l("concat"),b=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},x=!m||!y;r({target:"Array",proto:!0,forced:x},{concat:function(t){var e,n,r,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],b(o)){if(i=u(o.length),h+i>g)throw TypeError(v);for(n=0;n<i;n++,h++)n in o&&s(l,h,o[n])}else{if(h>=g)throw TypeError(v);s(l,h++,o)}return l.length=h,l}})},"99cd":function(t,e){function n(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),c=a.length;while(c--){var u=a[t?c:++i];if(!1===n(o[u],u,o))break}return e}}t.exports=n},"99d3":function(t,e,n){(function(t){var r=n("585a"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,c=a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(e){}}();t.exports=u}).call(this,n("62e4")(t))},"9a13":function(t,e,n){t.exports=n("a38c")},"9ac4":function(t,e,n){var r=n("9bfb");r("species")},"9aff":function(t,e,n){var r=n("9638"),i=n("30c9"),o=n("c098"),a=n("1a8c");function c(t,e,n){if(!a(n))return!1;var c=typeof e;return!!("number"==c?i(n)&&o(e,n.length):"string"==c&&e in n)&&r(n[e],t)}t.exports=c},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9bfb":function(t,e,n){var r=n("764b"),i=n("78e7"),o=n("fbcc"),a=n("4180").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"9c96":function(t,e,n){var r=n("06fa"),i=n("0363"),o=n("4963"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"9cd3":function(t,e,n){t.exports=n("5ab9")},"9e57":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"9e69":function(t,e,n){var r=n("2b3e"),i=r.Symbol;t.exports=i},"9e81":function(t,e,n){var r=n("5692");t.exports=r("native-function-to-string",Function.toString)},a016:function(t,e,n){var r=n("b323"),i=n("9e57");t.exports=Object.keys||function(t){return r(t,i)}},a06f:function(t,e,n){t.exports=n("74e7")},a0e5:function(t,e,n){var r=n("06fa"),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";t.exports=o},a205:function(t,e){e.f=Object.getOwnPropertySymbols},a2bf:function(t,e,n){"use strict";var r=n("e8b5"),i=n("50c4"),o=n("f8c2"),a=function(t,e,n,c,u,s,f,l){var h,d=u,p=0,g=!!f&&o(f,l,3);while(p<c){if(p in n){if(h=g?g(n[p],p,e):n[p],s>0&&r(h))d=a(t,e,h,i(h.length),d,s-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[d]=h}d++}p++}return d};t.exports=a},a38c:function(t,e,n){n("3e476");var r=n("764b"),i=r.Object,o=t.exports=function(t,e,n){return i.defineProperty(t,e,n)};i.defineProperty.sham&&(o.sham=!0)},a421:function(t,e,n){var r=n("638c"),i=n("1875");t.exports=function(t){return r(i(t))}},a454:function(t,e,n){var r=n("72f0"),i=n("3b4a"),o=n("cd9d"),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},a4d3:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),c=n("83ab"),u=n("4930"),s=n("d039"),f=n("5135"),l=n("e8b5"),h=n("861d"),d=n("825a"),p=n("7b0b"),g=n("fc6a"),v=n("c04e"),m=n("5c6c"),y=n("7c73"),b=n("df75"),x=n("241c"),w=n("057f"),_=n("7418"),S=n("06cf"),M=n("9bf2"),P=n("d1e7"),O=n("9112"),E=n("6eeb"),A=n("5692"),C=n("f772"),k=n("d012"),j=n("90e3"),I=n("b622"),T=n("c032"),B=n("746f"),L=n("d44e"),N=n("69f3"),D=n("b727").forEach,Y=C("hidden"),G="Symbol",X="prototype",F=I("toPrimitive"),R=N.set,z=N.getterFor(G),H=Object[X],q=i.Symbol,U=o("JSON","stringify"),W=S.f,V=M.f,K=w.f,Z=P.f,$=A("symbols"),Q=A("op-symbols"),J=A("string-to-symbol-registry"),tt=A("symbol-to-string-registry"),et=A("wks"),nt=i.QObject,rt=!nt||!nt[X]||!nt[X].findChild,it=c&&s((function(){return 7!=y(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=W(H,e);r&&delete H[e],V(t,e,n),r&&t!==H&&V(H,e,r)}:V,ot=function(t,e){var n=$[t]=y(q[X]);return R(n,{type:G,tag:t,description:e}),c||(n.description=e),n},at=u&&"symbol"==typeof q.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},ct=function(t,e,n){t===H&&ct(Q,e,n),d(t);var r=v(e,!0);return d(n),f($,r)?(n.enumerable?(f(t,Y)&&t[Y][r]&&(t[Y][r]=!1),n=y(n,{enumerable:m(0,!1)})):(f(t,Y)||V(t,Y,m(1,{})),t[Y][r]=!0),it(t,r,n)):V(t,r,n)},ut=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return D(r,(function(e){c&&!ft.call(n,e)||ct(t,e,n[e])})),t},st=function(t,e){return void 0===e?y(t):ut(y(t),e)},ft=function(t){var e=v(t,!0),n=Z.call(this,e);return!(this===H&&f($,e)&&!f(Q,e))&&(!(n||!f(this,e)||!f($,e)||f(this,Y)&&this[Y][e])||n)},lt=function(t,e){var n=g(t),r=v(e,!0);if(n!==H||!f($,r)||f(Q,r)){var i=W(n,r);return!i||!f($,r)||f(n,Y)&&n[Y][r]||(i.enumerable=!0),i}},ht=function(t){var e=K(g(t)),n=[];return D(e,(function(t){f($,t)||f(k,t)||n.push(t)})),n},dt=function(t){var e=t===H,n=K(e?Q:g(t)),r=[];return D(n,(function(t){!f($,t)||e&&!f(H,t)||r.push($[t])})),r};if(u||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=j(t),n=function(t){this===H&&n.call(Q,t),f(this,Y)&&f(this[Y],e)&&(this[Y][e]=!1),it(this,e,m(1,t))};return c&&rt&&it(H,e,{configurable:!0,set:n}),ot(e,t)},E(q[X],"toString",(function(){return z(this).tag})),P.f=ft,M.f=ct,S.f=lt,x.f=w.f=ht,_.f=dt,c&&(V(q[X],"description",{configurable:!0,get:function(){return z(this).description}}),a||E(H,"propertyIsEnumerable",ft,{unsafe:!0})),T.f=function(t){return ot(I(t),t)}),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),D(b(et),(function(t){B(t)})),r({target:G,stat:!0,forced:!u},{for:function(t){var e=String(t);if(f(J,e))return J[e];var n=q(e);return J[e]=n,tt[n]=e,n},keyFor:function(t){if(!at(t))throw TypeError(t+" is not a symbol");if(f(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:st,defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ht,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:s((function(){_.f(1)}))},{getOwnPropertySymbols:function(t){return _.f(p(t))}}),U){var pt=!u||s((function(){var t=q();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))}));r({target:"JSON",stat:!0,forced:pt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(h(e)||void 0!==t)&&!at(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!at(e))return e}),i[1]=e,U.apply(null,i)}})}q[X][F]||O(q[X],F,q[X].valueOf),L(q,G),k[Y]=!0},a524:function(t,e,n){var r=n("4245");function i(t){return r(this,t).has(t)}t.exports=i},a5eb:function(t,e,n){"use strict";var r=n("3ac6"),i=n("44ba").f,o=n("a0e5"),a=n("764b"),c=n("194a"),u=n("0273"),s=n("78e7"),f=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,l,h,d,p,g,v,m,y,b=t.target,x=t.global,w=t.stat,_=t.proto,S=x?r:w?r[b]:(r[b]||{}).prototype,M=x?a:a[b]||(a[b]={}),P=M.prototype;for(d in e)n=o(x?d:b+(w?".":"#")+d,t.forced),l=!n&&S&&s(S,d),g=M[d],l&&(t.noTargetGet?(y=i(S,d),v=y&&y.value):v=S[d]),p=l&&v?v:e[d],l&&typeof g===typeof p||(m=t.bind&&l?c(p,r):t.wrap&&l?f(p):_&&"function"==typeof p?c(Function.call,p):p,(t.sham||p&&p.sham||g&&g.sham)&&u(m,"sham",!0),M[d]=m,_&&(h=b+"Prototype",s(a,h)||u(a,h,{}),a[h][d]=p,t.real&&P&&!P[d]&&u(P,d,p)))}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),c=n("5135"),u=n("c6b6"),s=n("7156"),f=n("c04e"),l=n("d039"),h=n("7c73"),d=n("241c").f,p=n("06cf").f,g=n("9bf2").f,v=n("58a8").trim,m="Number",y=i[m],b=y.prototype,x=u(h(b))==m,w=function(t){var e,n,r,i,o,a,c,u,s=f(t,!1);if("string"==typeof s&&s.length>2)if(s=v(s),e=s.charCodeAt(0),43===e||45===e){if(n=s.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+s}for(o=s.slice(2),a=o.length,c=0;c<a;c++)if(u=o.charCodeAt(c),u<48||u>i)return NaN;return parseInt(o,r)}return+s};if(o(m,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var _,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(x?l((function(){b.valueOf.call(n)})):u(n)!=m)?s(new y(w(e)),n,S):w(e)},M=r?d(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),P=0;M.length>P;P++)c(y,_=M[P])&&!c(S,_)&&g(S,_,p(y,_));S.prototype=b,b.constructor=S,a(i,m,S)}},aa1b:function(t,e,n){var r=n("9bfb");r("unscopables")},aaec:function(t,e){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,c="\\ufe0e\\ufe0f",u="\\u200d",s=RegExp("["+u+n+a+c+"]");function f(t){return s.test(t)}t.exports=f},ab85:function(t,e,n){var r=n("d659");t.exports=r("native-function-to-string",Function.toString)},ab88:function(t,e,n){t.exports=n("b5f1")},ac0c:function(t,e,n){n("de6a");var r=n("764b");t.exports=r.Object.getPrototypeOf},b041:function(t,e,n){"use strict";var r=n("f5df"),i=n("b622"),o=i("toStringTag"),a={};a[o]="z",t.exports="[object z]"!==String(a)?function(){return"[object "+r(this)+"]"}:a.toString},b047:function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,c=/^\s*function ([^ (]*)/,u="name";r&&!(u in o)&&i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},b218:function(t,e){var n=9007199254740991;function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}t.exports=r},b2ed:function(t,e,n){var r=n("d659"),i=n("3e80"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},b301:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!n||!r((function(){n.call(null,e||function(){throw 1},1)}))}},b323:function(t,e,n){var r=n("78e7"),i=n("a421"),o=n("6386").indexOf,a=n("6e9a");t.exports=function(t,e){var n,c=i(t),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);while(e.length>u)r(c,n=e[u++])&&(~o(s,n)||s.push(n));return s}},b39a:function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},b4c0:function(t,e,n){var r=n("cb5a");function i(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}t.exports=i},b575:function(t,e,n){var r,i,o,a,c,u,s,f,l=n("da84"),h=n("06cf").f,d=n("c6b6"),p=n("2cf4").set,g=n("b629"),v=l.MutationObserver||l.WebKitMutationObserver,m=l.process,y=l.Promise,b="process"==d(m),x=h(l,"queueMicrotask"),w=x&&x.value;w||(r=function(){var t,e;b&&(t=m.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},b?a=function(){m.nextTick(r)}:v&&!g?(c=!0,u=document.createTextNode(""),new v(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):y&&y.resolve?(s=y.resolve(void 0),f=s.then,a=function(){f.call(s,r)}):a=function(){p.call(l,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b5f1:function(t,e,n){t.exports=n("1c29"),n("0c82"),n("7201"),n("74fd"),n("266f"),n("9802")},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("90e3"),a=n("4930"),c=r.Symbol,u=i("wks");t.exports=function(t){return u[t]||(u[t]=a&&c[t]||(a?c:o)("Symbol."+t))}},b629:function(t,e,n){var r=n("b39a");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},b64b:function(t,e,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),c=a((function(){o(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return o(i(t))}})},b727:function(t,e,n){var r=n("f8c2"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),c=n("65f0"),u=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l;return function(d,p,g,v){for(var m,y,b=o(d),x=i(b),w=r(p,g,3),_=a(x.length),S=0,M=v||c,P=e?M(d,_):n?M(d,0):void 0;_>S;S++)if((h||S in x)&&(m=x[S],y=w(m,S,b),t))if(e)P[S]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:u.call(P,m)}else if(f)return!1;return l?-1:s||f?f:P}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},b760:function(t,e,n){var r=n("872a"),i=n("9638");function o(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}t.exports=o},bb83:function(t,e,n){"use strict";var r,i,o,a=n("5779"),c=n("0273"),u=n("78e7"),s=n("0363"),f=n("7042"),l=s("iterator"),h=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):h=!0),void 0==r&&(r={}),f||u(r,l)||c(r,l,d),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},bbc0:function(t,e,n){var r=n("6044"),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function c(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return a.call(e,t)?e[t]:void 0}t.exports=c},bc59:function(t,e,n){n("3e47"),n("484e");var r=n("764b");t.exports=r.Array.from},c032:function(t,e,n){e.f=n("b622")},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c098:function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(t,e){var i=typeof t;return e=null==e?n:e,!!e&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}t.exports=i},c1b2:function(t,e,n){var r=n("06fa");t.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},c1bb:function(t,e,n){!function(e,r){t.exports=r(n("07cd"))}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=267)}({266:function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(3),a=o.Util,c=o.G.Canvas,u=function(){function t(t){a.mix(this,r({type:"minimap",container:null,isMinimap:!0,backgroundCSS:{height:"100%",position:"absolute",margin:"auto",left:0,right:0,"z-index":0},minimapContainerCSS:{background:"#fff",position:"relative",overflow:"hidden"},viewportCSS:{height:"100%",position:"absolute",margin:"auto",left:0,right:0,"z-index":1},controlLayerCSS:{width:"100%",height:"100%",cursor:"move",position:"absolute","z-index":2},viewportWindowStyle:{stroke:"#91D5FF"},viewportBackStyle:{fill:"#EBEEF2",fillOpacity:.65},getGraph:function(){}},t)),this._initContainer(),this._initMiniMap(),this._bindEvent(),this._assignDebounceRender()}var e=t.prototype;return e._assignDebounceRender=function(){var t=this;this.debounceRender=a.debounce((function(){t.renderBackground(),t.renderViewPort()}),32)},e.bindGraph=function(t){var e=this;t.on("afterchange",(function(){e.debounceRender()})),t.on("afterlayout",(function(){e.debounceRender()})),t.on("afterviewportchange",(function(){e.renderViewPort()})),t.on("afterfilter",(function(){e.debounceRender()}))},e.renderBackground=function(t){t||(t=this.getGraph());var e=this.miniMapCanvas,n=this.width,r=this.height,i=[];t.saveImage({graph:t,width:n,height:r,canvas:e,beforeTransform:function(e){var n=e[0];t.getNodes().forEach((function(t){var e=t.getBBox(),r=t.getModel(),o=e.width;if(o*n<2){var c=t.getGraphicGroup(),u=a.clone(c.getMatrix());c.transform([["t",-r.x,-r.y],["s",2/(o*n),2/(o*n)],["t",r.x,r.y]]),i.push({item:t,originMatrix:u})}}))},afterTransform:function(){i.forEach((function(t){var e=t.item,n=t.originMatrix;e.getGraphicGroup().setMatrix(n)}))}}),this.miniMapMatrix=e.matrix},e._bindEvent=function(){var t,e,n,r,i,o=this,c=this.controlLayer,u=!1;function s(){u=!1,e=void 0,r=void 0,t=void 0,n=void 0,i=void 0}c.on("mousedown",(function(c){o.miniMapMatrix&&(i=o.getGraph(),u=!0,t=a.clone(i.getMatrix()),e=o.miniMapMatrix[0],n=t[0],r={clientX:c.clientX,clientY:c.clientY})})),c.on("mouseup",(function(){s()})),c.on("mouseleave",(function(){s()})),c.on("mousemove",(function(o){if(u&&i){var c=r.clientX-o.clientX,s=r.clientY-o.clientY,f=a.clone(t);a.mat3.translate(f,f,[n*c/e,n*s/e]),i.updateMatrix(f)}}))},e._initMiniMap=function(){var t=this.background,e=this.viewPort,n=this.width,i=this.height,o=this.viewportWindowStyle,a=this.viewportBackStyle,u=new c({containerDOM:t,width:n,height:i}),s=new c({containerDOM:e,width:n,height:i}),f=s.addShape("rect",{attrs:r({x:0,y:0,width:n,height:i},o)}),l=s.addShape("path",{attrs:r({path:"M0,0 L1,1"},a)});t.css({width:n+"px",height:i+"px"}),e.css({position:"absolute"}),this.miniMapCanvas=u,this.viewportCanvas=s,this.viewportWindow=f,this.viewportBack=l},e._initContainer=function(){var t=this.container,e=this.width,n=this.height;t=a.initDOMContainer(t,"minimap"),e||(e=a.getWidth(t),this.width=e),n||(n=a.getHeight(t),this.height=n);var r=this.minimapContainerCSS;r.width=e+"px",r.height=n+"px";var i=this.backgroundCSS,o=this.viewportCSS,c=this.controlLayerCSS,u=a.createDOM('<div class="g6-editor-minimap-container"></div>',r),s=a.createDOM('<div class="g6-editor-minimap-background"></div>',i),f=a.createDOM('<div class="g6-editor-minimap-viewport">',o),l=a.createDOM('<div class="g6-editor-minimap-control-layer">',c);t.appendChild(u),u.appendChild(l),u.appendChild(f),u.appendChild(s),this.minimapContainer=u,this.background=s,this.viewPort=f,this.controlLayer=l},e.renderViewPort=function(t){if(t||(t=this.getGraph()),0!==t.getItems().length){var e=this.viewportWindow,n=this.viewportCanvas,r=this.viewportBack,i=this.miniMapMatrix,o=t.getWidth(),c=t.getHeight(),u=this.width,s=this.height,f=t.getMatrix();if(i){var l=a.invertMatrix({x:0,y:0},f),h=a.invertMatrix({x:o,y:c},f),d=a.applyMatrix(l,i),p=a.applyMatrix(h,i),g=p.x-d.x,v=p.y-d.y;r.attr({path:[["M",0,0],["L",u,0],["L",u,s],["L",0,s],["L",0,0],["M",d.x,d.y],["L",d.x,p.y],["L",p.x,p.y],["L",p.x,d.y],["L",d.x,d.y]]}),e.attr({x:d.x,y:d.y,width:g,height:v}),n.draw()}}},e.destroy=function(){this.minimapContainer.destroy()},t}();t.exports=u},267:function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(3),o=n(266),a=function(){function t(t){this.options=t}var e=t.prototype;return e.init=function(){var t=this.graph,e=new o(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}({getGraph:function(){return t}},this.options));e.bindGraph(t),this.minimap=e},e.destroy=function(){this.minimap.destroy()},t}();i.Plugins["tool.minimap"]=a,i.Components.Minimap=o,t.exports=a},3:function(e,n){e.exports=t}})}))},c1c9:function(t,e,n){var r=n("a454"),i=n("f3c1"),o=i(r);t.exports=o},c230:function(t,e,n){var r=n("c1b2"),i=n("4180"),o=n("6f8d"),a=n("a016");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),c=r.length,u=0;while(c>u)i.f(t,n=r[u++],e[n]);return t}},c32f:function(t,e,n){var r=n("2b10");function i(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}t.exports=i},c430:function(t,e){t.exports=!1},c44e:function(t,e){t.exports=function(){}},c4b8:function(t,e,n){var r=n("9883");t.exports=r("navigator","userAgent")||""},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c6cf:function(t,e,n){var r=n("4d8c"),i=n("2286"),o=n("c1c9");function a(t){return o(i(t,void 0,r),t+"")}t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8fe:function(t,e,n){var r=n("f8af");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=i},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,c=i(t),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);while(e.length>u)r(c,n=e[u++])&&(~o(s,n)||s.push(n));return s}},cb5a:function(t,e,n){var r=n("9638");function i(t,e){var n=t.length;while(n--)if(r(t[n][0],e))return n;return-1}t.exports=i},cbd0:function(t,e,n){var r=n("1561"),i=n("1875"),o=function(t){return function(e,n){var o,a,c=String(i(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(o=c.charCodeAt(u),o<55296||o>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):o:t?c.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cc94:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},cd9d:function(t,e){function n(t){return t}t.exports=n},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},ce86:function(t,e,n){var r=n("9e69"),i=n("7948"),o=n("6747"),a=n("ffd6"),c=1/0,u=r?r.prototype:void 0,s=u?u.toString:void 0;function f(t){if("string"==typeof t)return t;if(o(t))return i(t,f)+"";if(a(t))return s?s.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}t.exports=f},d012:function(t,e){t.exports={}},d02c:function(t,e,n){var r=n("5e2e"),i=n("79bc"),o=n("7b83"),a=200;function c(t,e){var n=this.__data__;if(n instanceof r){var c=n.__data__;if(!i||c.length<a-1)return c.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(c)}return n.set(t,e),this.size=n.size,this}t.exports=c},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d094:function(t,e){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,c="\\ufe0e\\ufe0f",u="["+n+"]",s="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+f+")",h="[^"+n+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",v=l+"?",m="["+c+"]?",y="(?:"+g+"(?:"+[h,d,p].join("|")+")"+m+v+")*",b=m+v+y,x="(?:"+[h+s+"?",s,d,p,u].join("|")+")",w=RegExp(f+"(?="+f+")|"+x+b,"g");function _(t){return t.match(w)||[]}t.exports=_},d194:function(t,e,n){var r=n("c32f"),i=n("aaec"),o=n("126d"),a=n("76dd");function c(t){return function(e){e=a(e);var n=i(e)?o(e):void 0,c=n?n[0]:e.charAt(0),u=n?r(n,1).join(""):e.slice(1);return c[t]()+u}}t.exports=c},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d339:function(t,e,n){t.exports=n("f446")},d370:function(t,e,n){var r=n("253c"),i=n("1310"),o=Object.prototype,a=o.hasOwnProperty,c=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},d3b7:function(t,e,n){var r=n("6eeb"),i=n("b041"),o=Object.prototype;i!==o.toString&&r(o,"toString",i,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d659:function(t,e,n){var r=n("7042"),i=n("7685");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.1",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},d666:function(t,e,n){var r=n("0273");t.exports=function(t,e,n,i){i&&i.enumerable?t[e]=n:r(t,e,n)}},d81d:function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde");r({target:"Array",proto:!0,forced:!o("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},d925:function(t,e,n){var r=n("a5eb"),i=n("c1b2"),o=n("4896");r({target:"Object",stat:!0,sham:!i},{create:o})},da03:function(t,e,n){var r=n("2b3e"),i=r["__core-js_shared__"];t.exports=i},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),c=n("06cf"),u=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),i=c.f,s=o(r),f={},l=0;while(s.length>l)n=i(r,e=s[l++]),void 0!==n&&u(f,e,n);return f}})},dc57:function(t,e){var n=Function.prototype,r=n.toString;function i(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=i},dcbe:function(t,e,n){var r=n("30c9"),i=n("1310");function o(t){return i(t)&&r(t)}t.exports=o},de6a:function(t,e,n){var r=n("a5eb"),i=n("06fa"),o=n("4fff"),a=n("5779"),c=n("f5fb"),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:u,sham:!c},{getPrototypeOf:function(t){return a(o(t))}})},dee0:function(t,e,n){var r=n("194a"),i=n("638c"),o=n("4fff"),a=n("6725"),c=n("4344"),u=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l;return function(d,p,g,v){for(var m,y,b=o(d),x=i(b),w=r(p,g,3),_=a(x.length),S=0,M=v||c,P=e?M(d,_):n?M(d,0):void 0;_>S;S++)if((h||S in x)&&(m=x[S],y=w(m,S,b),t))if(e)P[S]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:u.call(P,m)}else if(f)return!1;return l?-1:s||f?f:P}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},dfdb:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},e24b:function(t,e,n){var r=n("49f4"),i=n("1efc"),o=n("bbc0"),a=n("7a48"),c=n("2524");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,t.exports=u},e2c0:function(t,e,n){var r=n("e2e4"),i=n("d370"),o=n("6747"),a=n("c098"),c=n("b218"),u=n("f4d6");function s(t,e,n){e=r(e,t);var s=-1,f=e.length,l=!1;while(++s<f){var h=u(e[s]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++s!=f?l:(f=null==t?0:t.length,!!f&&c(f)&&a(h,f)&&(o(t)||i(t)))}t.exports=s},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e2e4:function(t,e,n){var r=n("6747"),i=n("f608"),o=n("18d8"),a=n("76dd");function c(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}t.exports=c},e363:function(t,e,n){var r=n("9bfb");r("asyncIterator")},e380:function(t,e,n){var r=n("7b83"),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,c=n("83ab"),u=i((function(){a(1)})),s=!c||u;r({target:"Object",stat:!0,forced:s,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},e519:function(t,e,n){var r=n("a5eb"),i=n("6220");r({target:"Array",stat:!0},{isArray:i})},e538:function(t,e,n){(function(t){var r=n("2b3e"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,c=a?r.Buffer:void 0,u=c?c.allocUnsafe:void 0;function s(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}t.exports=s}).call(this,n("62e4")(t))},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e699:function(t,e,n){var r=n("9bfb");r("match")},e6cf:function(t,e,n){"use strict";var r,i,o,a,c=n("23e7"),u=n("c430"),s=n("da84"),f=n("d066"),l=n("fea9"),h=n("6eeb"),d=n("e2cc"),p=n("5692"),g=n("d44e"),v=n("2626"),m=n("861d"),y=n("1c0b"),b=n("19aa"),x=n("c6b6"),w=n("2266"),_=n("1c7e"),S=n("4840"),M=n("2cf4").set,P=n("b575"),O=n("cdf9"),E=n("44de"),A=n("f069"),C=n("e667"),k=n("69f3"),j=n("94ca"),I=n("b622"),T=n("60ae"),B=I("species"),L="Promise",N=k.get,D=k.set,Y=k.getterFor(L),G=l,X=s.TypeError,F=s.document,R=s.process,z=p("inspectSource"),H=f("fetch"),q=A.f,U=q,W="process"==x(R),V=!!(F&&F.createEvent&&s.dispatchEvent),K="unhandledrejection",Z="rejectionhandled",$=0,Q=1,J=2,tt=1,et=2,nt=j(L,(function(){var t=z(G)!==String(G);if(66===T)return!0;if(!t&&!W&&"function"!=typeof PromiseRejectionEvent)return!0;if(u&&!G.prototype["finally"])return!0;if(T>=51&&/native code/.test(G))return!1;var e=G.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[B]=n,!(e.then((function(){}))instanceof n)})),rt=nt||!_((function(t){G.all(t)["catch"]((function(){}))})),it=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},ot=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;P((function(){var i=e.value,o=e.state==Q,a=0;while(r.length>a){var c,u,s,f=r[a++],l=o?f.ok:f.fail,h=f.resolve,d=f.reject,p=f.domain;try{l?(o||(e.rejection===et&&st(t,e),e.rejection=tt),!0===l?c=i:(p&&p.enter(),c=l(i),p&&(p.exit(),s=!0)),c===f.promise?d(X("Promise-chain cycle")):(u=it(c))?u.call(c,h,d):h(c)):d(i)}catch(g){p&&!s&&p.exit(),d(g)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&ct(t,e)}))}},at=function(t,e,n){var r,i;V?(r=F.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},(i=s["on"+t])?i(r):t===K&&E("Unhandled promise rejection",n)},ct=function(t,e){M.call(s,(function(){var n,r=e.value,i=ut(e);if(i&&(n=C((function(){W?R.emit("unhandledRejection",r,t):at(K,t,r)})),e.rejection=W||ut(e)?et:tt,n.error))throw n.value}))},ut=function(t){return t.rejection!==tt&&!t.parent},st=function(t,e){M.call(s,(function(){W?R.emit("rejectionHandled",t):at(Z,t,e.value)}))},ft=function(t,e,n,r){return function(i){t(e,n,i,r)}},lt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=J,ot(t,e,!0))},ht=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw X("Promise can't be resolved itself");var i=it(n);i?P((function(){var r={done:!1};try{i.call(n,ft(ht,t,r,e),ft(lt,t,r,e))}catch(o){lt(t,r,o,e)}})):(e.value=n,e.state=Q,ot(t,e,!1))}catch(o){lt(t,{done:!1},o,e)}}};nt&&(G=function(t){b(this,G,L),y(t),r.call(this);var e=N(this);try{t(ft(ht,this,e),ft(lt,this,e))}catch(n){lt(this,e,n)}},r=function(t){D(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:$,value:void 0})},r.prototype=d(G.prototype,{then:function(t,e){var n=Y(this),r=q(S(this,G));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=W?R.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=$&&ot(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=N(t);this.promise=t,this.resolve=ft(ht,t,e),this.reject=ft(lt,t,e)},A.f=q=function(t){return t===G||t===o?new i(t):U(t)},u||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var n=this;return new G((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof H&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return O(G,H.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:nt},{Promise:G}),g(G,L,!1,!0),v(L),o=f(L),c({target:L,stat:!0,forced:nt},{reject:function(t){var e=q(this);return e.reject.call(void 0,t),e.promise}}),c({target:L,stat:!0,forced:u||nt},{resolve:function(t){return O(u&&this===o?G:this,t)}}),c({target:L,stat:!0,forced:rt},{all:function(t){var e=this,n=q(e),r=n.resolve,i=n.reject,o=C((function(){var n=y(e.resolve),o=[],a=0,c=1;w(t,(function(t){var u=a++,s=!1;o.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,o[u]=t,--c||r(o))}),i)})),--c||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=q(e),r=n.reject,i=C((function(){var i=y(e.resolve);w(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e7cc:function(t,e,n){var r=n("9bfb");r("matchAll")},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),c=a.f,u=o.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||c(t,f,u(e,f))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},eac5:function(t,e){var n=Object.prototype;function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}t.exports=r},ec62:function(t,e,n){var r=n("6f8d"),i=n("2f97");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},ec8c:function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},edbd:function(t,e,n){var r=n("9883");t.exports=r("document","documentElement")},ef09:function(t,e,n){var r=n("9bfb");r("toStringTag")},efb6:function(t,e,n){var r=n("5e2e");function i(){this.__data__=new r,this.size=0}t.exports=i},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f3c1:function(t,e){var n=800,r=16,i=Date.now;function o(t){var e=0,o=0;return function(){var a=i(),c=r-(a-o);if(o=a,c>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=o},f446:function(t,e,n){n("d925");var r=n("764b"),i=r.Object;t.exports=function(t,e){return i.create(t,e)}},f4d6:function(t,e,n){var r=n("ffd6"),i=1/0;function o(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}t.exports=o},f575:function(t,e,n){"use strict";var r=n("bb83").IteratorPrototype,i=n("4896"),o=n("2c6c"),a=n("2874"),c=n("7463"),u=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,s,!1,!0),c[s]=u,t}},f5df:function(t,e,n){var r=n("c6b6"),i=n("b622"),o=i("toStringTag"),a="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},f5fb:function(t,e,n){var r=n("06fa");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},f608:function(t,e,n){var r=n("6747"),i=n("ffd6"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function c(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}t.exports=c},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},f8af:function(t,e,n){var r=n("2474");function i(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}t.exports=i},f8c2:function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},f909:function(t,e,n){var r=n("7e64"),i=n("b760"),o=n("72af"),a=n("4f50"),c=n("1a8c"),u=n("9934"),s=n("8adb");function f(t,e,n,l,h){t!==e&&o(e,(function(o,u){if(h||(h=new r),c(o))a(t,e,u,n,f,l,h);else{var d=l?l(s(t,u),o,u+"",t,e,h):void 0;void 0===d&&(d=o),i(t,u,d)}}),u)}t.exports=f},fa21:function(t,e,n){var r=n("7530"),i=n("2dcb"),o=n("eac5");function a(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}t.exports=a},faaa:function(t,e,n){var r=n("6f8d");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("4160"),n("d81d"),n("159b");var i=n("1316"),o=n.n(i);function a(t){if(o()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var c=n("a06f"),u=n.n(c),s=n("2dc0"),f=n.n(s);function l(t){if(f()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return u()(t)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){return a(t)||l(t)||h()}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var g=n("6271"),v=n.n(g),m=n("ab88"),y=n.n(m);function b(t){return b="function"===typeof y.a&&"symbol"===typeof v.a?function(t){return typeof t}:function(t){return t&&"function"===typeof y.a&&t.constructor===y.a&&t!==y.a.prototype?"symbol":typeof t},b(t)}function x(t){return x="function"===typeof y.a&&"symbol"===b(v.a)?function(t){return b(t)}:function(t){return t&&"function"===typeof y.a&&t.constructor===y.a&&t!==y.a.prototype?"symbol":b(t)},x(t)}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,e){return!e||"object"!==x(e)&&"function"!==typeof e?w(t):e}var S=n("5d24"),M=n.n(S),P=n("0b11"),O=n.n(P);function E(t){return E=O.a?M.a:function(t){return t.__proto__||M()(t)},E(t)}var A=n("09e1"),C=n.n(A);function k(t,e){return k=O.a||function(t,e){return t.__proto__=e,t},k(t,e)}function j(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=C()(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}var I=n("70a1"),T=n.n(I),B=n("42454"),L=n.n(B),N=(n("2593"),n("98dc")),D=n.n(N),Y=n("8103"),G=n.n(Y),X=function(t){function e(t){var n;return p(this,e),n=_(this,E(e).call(this,t)),n.id=D()(),n}return j(e,t),e}(T.a),F=(n("b64b"),"J_FlowContainer"),R="J_MindContainer",z="J_KoniContainer",H="J_ToolbarContainer",q="J_MinimapContainer",U="J_ContextMenuContainer",W="Flow",V="Mind",K="Koni",Z="beforeAddPage",$="afterAddPage",Q="canvas-selected",J={click:"Click",contextmenu:"ContextMenu",dblclick:"DoubleClick",drag:"Drag",dragend:"DragEnd",dragenter:"DragEnter",dragleave:"DragLeave",dragstart:"DragStart",drop:"Drop",mousedown:"MouseDown",mouseenter:"MouseEnter",mouseleave:"MouseLeave",mousemove:"MouseMove",mouseup:"MouseUp"},tt={afterchange:"onAfterChange",afterchangesize:"onAfterChangeSize",afterviewportchange:"onAfterViewportChange",beforechange:"onBeforeChange",beforechangesize:"onBeforeChangeSize",beforeviewportchange:"onBeforeViewportChange",keydown:"onKeyDown",keyup:"onKeyUp",mousewheel:"onMouseWheel"},et={afteritemactived:"onAfterItemActived",afteriteminactivated:"onAfterItemInactivated",afteritemselected:"onAfterItemSelected",afteritemunactived:"onAfterItemInactivated",afteritemunselected:"onAfterItemUnselected",beforeitemactived:"onBeforeItemActived",beforeiteminactivated:"onBeforeItemInactivated",beforeitemselected:"onBeforeItemSelected",beforeitemunactived:"onBeforeItemInactivated",beforeitemunselected:"onBeforeItemUnselected",keyUpEditLabel:"onKeyUpEditLabel"},nt={aftercommandexecute:"onAfterCommandExecute",beforecommandexecute:"onBeforeCommandExecute"},rt=Object.keys(J),it=Object.keys(tt),ot=Object.keys(et),at=Object.keys(nt),ct=n("85d3"),ut=n.n(ct);function st(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),ut()(t,r.key,r)}}function ft(t,e,n){return e&&st(t.prototype,e),n&&st(t,n),t}function lt(t,e,n){return e in t?ut()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ht=function(){function t(e){var n=this;p(this,t),lt(this,"editor",null),this.editor=e,["executeCommand"].forEach((function(t){n[t]=function(){var e;return(e=n.editor)[t].apply(e,arguments)}})),["read","save","add","find","update","remove","getSelected"].forEach((function(t){n[t]=function(){var e;return(e=n.currentPage)[t].apply(e,arguments)}}))}return ft(t,[{key:"currentPage",get:function(){return this.editor.getCurrentPage()}}]),t}(),dt=ht,pt={name:"VueFlowchartEditor",props:d(at.map((function(t){return nt[t]}))),data:function(){return{editor:null,propsAPI:null}},provide:function(){return{root:this}},created:function(){this.init(),this.bindEvent()},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.propsAPI=null},methods:{addListener:function(t,e,n){"function"===typeof n&&t.on(e,n)},handleBeforeAddPage:function(t){this.editor.on(Z,t)},handleAfterAddPage:function(t){var e=this.editor.getCurrentPage();e?t({page:e}):this.editor.on($,t)},init:function(){this.editor=new X,this.propsAPI=new dt(this.editor)},bindEvent:function(){var t=this;at.forEach((function(e){t.addListener(t.editor,[e],t[nt[e]])}))}},render:function(){var t=arguments[0];return t("div",[this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default])}},gt=(n("99af"),n("0481"),n("4069"),n("d3b7"),n("e6cf"),{inject:["root"],props:[].concat(d(rt.map((function(t){var e=J[t];return["on".concat(e),"onNode".concat(e),"onEdge".concat(e),"onGroup".concat(e),"onGuide".concat(e),"onAnchor".concat(e)]})).flat()),d(it.map((function(t){return tt[t]}))),d(ot.map((function(t){return et[t]})))),data:function(){return{config:{},page:null,pageId:""}},mounted:function(){this.init().then(this.bindEvent)},methods:{getPageId:function(){return""},initPage:function(){},readData:function(){this.data&&this.page.read(this.data)},addListener:function(t,e,n){"function"===typeof n&&t.on(e,n)},init:function(){var t=this;return new Promise((function(e){t.pageId=t.getPageId(),L()(t.config,t.$props,{graph:{container:t.pageId}}),t.$nextTick((function(){t.initPage(),t.readData(),e()}))}))},bindEvent:function(){var t=this,e=this.addListener,n=this.getGraph();rt.forEach((function(r){var i=J[r];e(n,"".concat(r),t["on".concat(i)]),e(n,"node:".concat(r),t["onNode".concat(i)]),e(n,"edge:".concat(r),t["onEdge".concat(i)]),e(n,"group:".concat(r),t["onGroup".concat(i)]),e(n,"guide:".concat(r),t["onGuide".concat(i)]),e(n,"anchor:".concat(r),t["onAnchor".concat(i)])})),it.forEach((function(r){e(n,[r],t[tt[r]])})),ot.forEach((function(n){e(t.page,[n],t[et[n]])}))},getGraph:function(){return this.page.getGraph()}},render:function(){var t=arguments[0],e=this.page,n=this.pageId;return t("div",{attrs:{id:n},style:{height:"100%"}},[e?this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default:null])}}),vt={mixins:[gt],name:"Flow",props:{data:{default:function(){return{nodes:[],edges:[]}}},graph:Object,align:Object,grid:Object,shortcut:Object,noEndEdge:{default:!0,type:Boolean}},methods:{getPageId:function(){return"".concat(F,"_").concat(this.root.editor.id)},initPage:function(){var t=this.root.editor;t.emit(Z,{className:W}),this.page=new X.Flow(this.config),t.add(this.page),t.emit($,{page:this.page})}}},mt={mixins:[gt],name:"Koni",props:{data:{default:function(){return{nodes:[],edges:[]}}},graph:Object,align:Object,grid:Object,shortcut:Object,noEndEdge:{default:!0,type:Boolean}},methods:{getPageId:function(){return"".concat(z,"_").concat(this.root.editor.id)},initPage:function(){var t=this.root.editor;t.emit(Z,{className:K}),this.page=new X.Koni(this.config),t.add(this.page),t.emit($,{page:this.page})}}},yt={mixins:[gt],name:"Mind",props:{data:{default:function(){return{roots:[]}}},graph:Object,shortcut:Object},methods:{bindEvent:function(){gt.methods.bindEvent.call(this),this.bindKeyUpEditLabel()},bindKeyUpEditLabel:function(){var t=this,e=this.page.get("labelTextArea");e.on("keyup",(function(n){n.stopPropagation();var r=e.focusItem,i=e.textContent;t.page.emit("keyUpEditLabel",{item:r,text:i})}))},getPageId:function(){return"".concat(R,"_").concat(this.root.editor.id)},initPage:function(){var t=this.root.editor;t.emit(Z,{className:V}),this.page=new X.Mind(this.config),t.add(this.page),t.emit($,{page:this.page})}}},bt=function(t){return{name:"Register".concat(t),inject:["root"],props:{name:String,config:Object,extend:String,behaviour:Function,dependences:Array},data:function(){return{type:t.toLowerCase()}},created:function(){this.bindEvent()},methods:{bindEvent:function(){var t=this,e=this.type,n=this.root.handleBeforeAddPage;n((function(n){var r,i=n.className,o=X[i],a=["name","config","extend"];"command"===e&&(o=X),"behaviour"===e&&(a=["name","behaviour","dependences"]);var c=a.map((function(e){return t[e]}));(r=o)["register".concat(G()(e))].apply(r,d(c))}))}},render:function(){return null}}},xt=bt("Node"),wt=bt("Edge"),_t=bt("Group"),St=bt("Guide"),Mt=bt("Command"),Pt=bt("Behaviour"),Ot=(n("b0c0"),{name:"Command",props:{name:String,required:!0},render:function(){var t=arguments[0],e=this.name;return t("div",{attrs:{"data-command":e},class:"command"},[this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default])}}),Et=(n("a9e3"),n("07cd")),At=n.n(Et);n("c1bb");var Ct={name:"Minimap",inject:["root"],props:{container:String,width:Number,height:Number,viewportWindowStyle:Object,viewportBackStyle:Object},data:function(){return{containerId:"",minimap:null}},created:function(){this.bindEvent()},mounted:function(){this.init().then(this.bindPage)},beforeDestroy:function(){this.minimap&&this.minimap.destroy()},methods:{bindEvent:function(){this.root.handleAfterAddPage(this.bindPage)},init:function(){var t=this;return new Promise((function(e){t.containerId="".concat(q,"_").concat(t.root.editor.id);var n=t.container||t.containerId,r=t.width,i=t.height,o=t.viewportWindowStyle,a=t.viewportBackStyle;t.$nextTick((function(){var c=document.getElementById(n),u=c.clientWidth,s=c.clientHeight;t.minimap=new At.a.Components.Minimap({container:n,width:r||u,height:i||s,viewportWindowStyle:o,viewportBackStyle:a});var f=t.getCurrentPage();t.minimap.getGraph=function(){return f.getGraph()},e()}))}))},bindPage:function(){var t=this.getCurrentPage();if(this.minimap&&t){var e=t.getGraph();this.minimap.bindGraph(e),this.minimap.debounceRender()}},getCurrentPage:function(){var t=this.root.editor.getCurrentPage();return t}},render:function(){var t=arguments[0];return t("div",{attrs:{id:this.containerId}})}},kt=function(t){return{name:"".concat(t,"Menu"),data:function(){return{type:t.toLowerCase()}},render:function(){var t=arguments[0],e=this.type;return t("div",{class:"menu",attrs:{"data-status":"".concat(e,"-selected")}},[this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default])}}},jt=kt("Node"),It=kt("Edge"),Tt=kt("Group"),Bt=kt("Multi"),Lt=kt("Canvas"),Nt={name:"ContextMenu",inject:["root"],data:function(){return{contextMenu:null,containerId:""}},mounted:function(){var t=this,e=this.root.editor;this.getContainerId(),this.$nextTick((function(){t.contextMenu=new X.Contextmenu({container:t.containerId}),e.add(t.contextMenu)}))},beforeDestroy:function(){this.contextMenu&&this.contextMenu.destroy(),this.contextMenu=null},methods:{getContainerId:function(){var t=this.root.editor;this.containerId="".concat(U,"_").concat(t.id)}},render:function(){var t=arguments[0];return t("div",{attrs:{id:this.containerId}},[this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default])}},Dt={name:"Toolbar",inject:["root"],data:function(){return{containerId:"",toolbar:null}},created:function(){this.getContainerId()},mounted:function(){var t=this,e=this.root,n=e.editor,r=e.handleAfterAddPage;r((function(){t.toolbar=new X.Toolbar({container:t.containerId}),n.add(t.toolbar)}))},beforeDestroy:function(){this.toolbar&&this.toolbar.destroy(),this.toolbar=null},methods:{getContainerId:function(){var t=this.root.editor;this.containerId="".concat(H,"_").concat(t.id)}},render:function(){var t=arguments[0],e=this.containerId;return t("div",{attrs:{id:e}},[this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default])}};n("a4d3"),n("4de4"),n("e439"),n("dbb4");function Yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yt(n,!0).forEach((function(e){lt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Xt={name:"Item",inject:["root"],props:{type:{type:String,default:"node"},size:String,shape:String,src:String,model:{type:Object,default:function(){return{}}}},data:function(){return{page:null}},created:function(){this.bindEvent()},methods:{bindEvent:function(){var t=this;this.root.handleAfterAddPage((function(e){var n=e.page;t.page=n}))},handleMouseDown:function(){var t=this.type,e=this.size,n=this.shape,r=this.model;this.page&&this.page.beginAdd(t,Gt({type:t,size:e,shape:n},r))}},render:function(){var t=arguments[0],e=this.src,n=this.shape;return t("div",{style:{cursor:"pointer"},on:{mousedown:this.handleMouseDown}},[e?t("img",{attrs:{src:e,alt:n,draggable:!1}}):this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default])}},Ft={name:"ItemPanel",created:function(){this.bindEvent()},beforeDestroy:function(){document.removeEventListener("mouseup",this.handleMouseUp)},methods:{bindEvent:function(){var t=this;this.root.handleAfterAddPage((function(e){var n=e.page;t.page=n,document.addEventListener("mouseup",t.handleMouseUp)}))},handleMouseUp:function(){this.page.cancelAdd()}},inject:["root"],render:function(){var t=arguments[0];return t("div",[this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default])}},Rt=function(t){return{name:"".concat(t,"Panel"),props:["status"],data:function(){return{type:t.toLowerCase()}},render:function(){var t=arguments[0],e=this.type,n=this.status;return"".concat(e,"-selected")!==n?null:t("div",[this.$scopedSlots.default?this.$scopedSlots.default():this.$slots.default])}}},zt=Rt("Node"),Ht=Rt("Edge"),qt=Rt("Group"),Ut=Rt("Multi"),Wt=Rt("Canvas"),Vt={name:"DetailPanel",inject:["root"],data:function(){return{status:"",uniqueId:""}},created:function(){this.bindEvent()},methods:{bindEvent:function(){var t=this;this.root.handleAfterAddPage((function(e){var n=e.page;t.status=Q,n.on("statuschange",(function(e){var n=e.status;t.status=n,t.uniqueId=D()()}))}))}},render:function(){var t=arguments[0],e=this.status,n=this.uniqueId;return e?t("div",{key:n},[this.$scopedSlots.default({status:e,uniqueId:n})]):null}},Kt=pt;n.d(e,"Flow",(function(){return vt})),n.d(e,"Mind",(function(){return yt})),n.d(e,"Koni",(function(){return mt})),n.d(e,"RegisterNode",(function(){return xt})),n.d(e,"RegisterEdge",(function(){return wt})),n.d(e,"RegisterGroup",(function(){return _t})),n.d(e,"RegisterGuide",(function(){return St})),n.d(e,"RegisterCommand",(function(){return Mt})),n.d(e,"RegisterBehaviour",(function(){return Pt})),n.d(e,"Command",(function(){return Ot})),n.d(e,"Minimap",(function(){return Ct})),n.d(e,"NodeMenu",(function(){return jt})),n.d(e,"EdgeMenu",(function(){return It})),n.d(e,"GroupMenu",(function(){return Tt})),n.d(e,"MultiMenu",(function(){return Bt})),n.d(e,"CanvasMenu",(function(){return Lt})),n.d(e,"ContextMenu",(function(){return Nt})),n.d(e,"Toolbar",(function(){return Dt})),n.d(e,"Item",(function(){return Xt})),n.d(e,"ItemPanel",(function(){return Ft})),n.d(e,"NodePanel",(function(){return zt})),n.d(e,"EdgePanel",(function(){return Ht})),n.d(e,"GroupPanel",(function(){return qt})),n.d(e,"MultiPanel",(function(){return Ut})),n.d(e,"CanvasPanel",(function(){return Wt})),n.d(e,"DetailPanel",(function(){return Vt}));e["default"]=Kt},fba5:function(t,e,n){var r=n("cb5a");function i(t){return r(this.__data__,t)>-1}t.exports=i},fbcc:function(t,e,n){e.f=n("0363")},fc48:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fc93:function(t,e,n){"use strict";var r=n("a5eb"),i=n("06fa"),o=n("6220"),a=n("dfdb"),c=n("4fff"),u=n("6725"),s=n("6c15"),f=n("4344"),l=n("9c96"),h=n("0363"),d=n("4963"),p=h("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=l("concat"),b=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},x=!m||!y;r({target:"Array",proto:!0,forced:x},{concat:function(t){var e,n,r,i,o,a=c(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],b(o)){if(i=u(o.length),h+i>g)throw TypeError(v);for(n=0;n<i;n++,h++)n in o&&s(l,h,o[n])}else{if(h>=g)throw TypeError(v);s(l,h++,o)}return l.length=h,l}})},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise},ffd6:function(t,e,n){var r=n("3729"),i=n("1310"),o="[object Symbol]";function a(t){return"symbol"==typeof t||i(t)&&r(t)==o}t.exports=a}})}))}}]);