(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[77914,42270],{20532:function(N){(function(M,x){N.exports=x()})(window,function(){return function(M){var x={};function g(f){if(x[f])return x[f].exports;var p=x[f]={i:f,l:!1,exports:{}};return M[f].call(p.exports,p,p.exports,g),p.l=!0,p.exports}return g.m=M,g.c=x,g.d=function(f,p,l){g.o(f,p)||Object.defineProperty(f,p,{enumerable:!0,get:l})},g.r=function(f){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},g.t=function(f,p){if(1&p&&(f=g(f)),8&p||4&p&&typeof f=="object"&&f&&f.__esModule)return f;var l=Object.create(null);if(g.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:f}),2&p&&typeof f!="string")for(var i in f)g.d(l,i,function(o){return f[o]}.bind(null,i));return l},g.n=function(f){var p=f&&f.__esModule?function(){return f.default}:function(){return f};return g.d(p,"a",p),p},g.o=function(f,p){return Object.prototype.hasOwnProperty.call(f,p)},g.p="",g(g.s=820)}([,function(M,x,g){"use strict";var f=function(Z,lt,it){Z.prototype=lt.prototype=it,it.constructor=Z};function p(z,Z){var lt=Object.create(z.prototype);for(var it in Z)lt[it]=Z[it];return lt}function l(){}var i="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",t=/^#([0-9a-f]{3})$/,e=/^#([0-9a-f]{6})$/,r=new RegExp("^rgb\\("+[i,i,i]+"\\)$"),a=new RegExp("^rgb\\("+[n,n,n]+"\\)$"),u=new RegExp("^rgba\\("+[i,i,i,o]+"\\)$"),c=new RegExp("^rgba\\("+[n,n,n,o]+"\\)$"),s=new RegExp("^hsl\\("+[o,n,n]+"\\)$"),h=new RegExp("^hsla\\("+[o,n,n,o]+"\\)$"),d={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(z){var Z;return z=(z+"").trim().toLowerCase(),(Z=t.exec(z))?new P((Z=parseInt(Z[1],16))>>8&15|Z>>4&240,Z>>4&15|240&Z,(15&Z)<<4|15&Z,1):(Z=e.exec(z))?y(parseInt(Z[1],16)):(Z=r.exec(z))?new P(Z[1],Z[2],Z[3],1):(Z=a.exec(z))?new P(255*Z[1]/100,255*Z[2]/100,255*Z[3]/100,1):(Z=u.exec(z))?m(Z[1],Z[2],Z[3],Z[4]):(Z=c.exec(z))?m(255*Z[1]/100,255*Z[2]/100,255*Z[3]/100,Z[4]):(Z=s.exec(z))?O(Z[1],Z[2]/100,Z[3]/100,1):(Z=h.exec(z))?O(Z[1],Z[2]/100,Z[3]/100,Z[4]):d.hasOwnProperty(z)?y(d[z]):z==="transparent"?new P(NaN,NaN,NaN,0):null}function y(z){return new P(z>>16&255,z>>8&255,255&z,1)}function m(z,Z,lt,it){return it<=0&&(z=Z=lt=NaN),new P(z,Z,lt,it)}function b(z){return z instanceof l||(z=v(z)),z?new P((z=z.rgb()).r,z.g,z.b,z.opacity):new P}function w(z,Z,lt,it){return arguments.length===1?b(z):new P(z,Z,lt,it==null?1:it)}function P(z,Z,lt,it){this.r=+z,this.g=+Z,this.b=+lt,this.opacity=+it}function S(z){return((z=Math.max(0,Math.min(255,Math.round(z)||0)))<16?"0":"")+z.toString(16)}function O(z,Z,lt,it){return it<=0?z=Z=lt=NaN:lt<=0||lt>=1?z=Z=NaN:Z<=0&&(z=NaN),new E(z,Z,lt,it)}function A(z,Z,lt,it){return arguments.length===1?function(dt){if(dt instanceof E)return new E(dt.h,dt.s,dt.l,dt.opacity);if(dt instanceof l||(dt=v(dt)),!dt)return new E;if(dt instanceof E)return dt;var yt=(dt=dt.rgb()).r/255,wt=dt.g/255,Mt=dt.b/255,At=Math.min(yt,wt,Mt),xt=Math.max(yt,wt,Mt),St=NaN,Et=xt-At,Pt=(xt+At)/2;return Et?(St=yt===xt?(wt-Mt)/Et+6*(wt0&&Pt<1?0:St,new E(St,Et,Pt,dt.opacity)}(z):new E(z,Z,lt,it==null?1:it)}function E(z,Z,lt,it){this.h=+z,this.s=+Z,this.l=+lt,this.opacity=+it}function _(z,Z,lt){return 255*(z<60?Z+(lt-Z)*z/60:z<180?lt:z<240?Z+(lt-Z)*(240-z)/60:Z)}f(l,v,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),f(P,w,p(l,{brighter:function(Z){return Z=Z==null?1/.7:Math.pow(1/.7,Z),new P(this.r*Z,this.g*Z,this.b*Z,this.opacity)},darker:function(Z){return Z=Z==null?.7:Math.pow(.7,Z),new P(this.r*Z,this.g*Z,this.b*Z,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"#"+S(this.r)+S(this.g)+S(this.b)},toString:function(){var Z=this.opacity;return((Z=isNaN(Z)?1:Math.max(0,Math.min(1,Z)))===1?"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))+(Z===1?")":", "+Z+")")}})),f(E,A,p(l,{brighter:function(Z){return Z=Z==null?1/.7:Math.pow(1/.7,Z),new E(this.h,this.s,this.l*Z,this.opacity)},darker:function(Z){return Z=Z==null?.7:Math.pow(.7,Z),new E(this.h,this.s,this.l*Z,this.opacity)},rgb:function(){var Z=this.h%360+360*(this.h<0),lt=isNaN(Z)||isNaN(this.s)?0:this.s,it=this.l,dt=it+(it<.5?it:1-it)*lt,yt=2*it-dt;return new P(_(Z>=240?Z-240:Z+120,yt,dt),_(Z,yt,dt),_(Z<120?Z+240:Z-120,yt,dt),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,T=.96422,I=1,R=.82521,F=4/29,j=6/29,B=3*j*j,H=j*j*j;function et(z){if(z instanceof K)return new K(z.l,z.a,z.b,z.opacity);if(z instanceof L){if(isNaN(z.h))return new K(z.l,0,0,z.opacity);var Z=z.h*C;return new K(z.l,Math.cos(Z)*z.c,Math.sin(Z)*z.c,z.opacity)}z instanceof P||(z=b(z));var lt,it,dt=tt(z.r),yt=tt(z.g),wt=tt(z.b),Mt=nt((.2225045*dt+.7168786*yt+.0606169*wt)/I);return dt===yt&&yt===wt?lt=it=Mt:(lt=nt((.4360747*dt+.3850649*yt+.1430804*wt)/T),it=nt((.0139322*dt+.0971045*yt+.7141733*wt)/R)),new K(116*Mt-16,500*(lt-Mt),200*(Mt-it),z.opacity)}function Q(z,Z){return new K(z,0,0,Z==null?1:Z)}function J(z,Z,lt,it){return arguments.length===1?et(z):new K(z,Z,lt,it==null?1:it)}function K(z,Z,lt,it){this.l=+z,this.a=+Z,this.b=+lt,this.opacity=+it}function nt(z){return z>H?Math.pow(z,1/3):z/B+F}function st(z){return z>j?z*z*z:B*(z-F)}function V(z){return 255*(z<=.0031308?12.92*z:1.055*Math.pow(z,1/2.4)-.055)}function tt(z){return(z/=255)<=.04045?z/12.92:Math.pow((z+.055)/1.055,2.4)}function $(z){if(z instanceof L)return new L(z.h,z.c,z.l,z.opacity);if(z instanceof K||(z=et(z)),z.a===0&&z.b===0)return new L(NaN,0,z.l,z.opacity);var Z=Math.atan2(z.b,z.a)*k;return new L(Z<0?Z+360:Z,Math.sqrt(z.a*z.a+z.b*z.b),z.l,z.opacity)}function ot(z,Z,lt,it){return arguments.length===1?$(z):new L(lt,Z,z,it==null?1:it)}function Y(z,Z,lt,it){return arguments.length===1?$(z):new L(z,Z,lt,it==null?1:it)}function L(z,Z,lt,it){this.h=+z,this.c=+Z,this.l=+lt,this.opacity=+it}f(K,J,p(l,{brighter:function(Z){return new K(this.l+18*(Z==null?1:Z),this.a,this.b,this.opacity)},darker:function(Z){return new K(this.l-18*(Z==null?1:Z),this.a,this.b,this.opacity)},rgb:function(){var Z=(this.l+16)/116,lt=isNaN(this.a)?Z:Z+this.a/500,it=isNaN(this.b)?Z:Z-this.b/200;return new P(V(3.1338561*(lt=T*st(lt))-1.6168667*(Z=I*st(Z))-.4906146*(it=R*st(it))),V(-.9787684*lt+1.9161415*Z+.033454*it),V(.0719453*lt-.2289914*Z+1.4052427*it),this.opacity)}})),f(L,Y,p(l,{brighter:function(Z){return new L(this.h,this.c,this.l+18*(Z==null?1:Z),this.opacity)},darker:function(Z){return new L(this.h,this.c,this.l-18*(Z==null?1:Z),this.opacity)},rgb:function(){return et(this).rgb()}}));var D=-.14861,G=1.78277,U=-.29227,X=-.90649,q=1.97294,ut=q*X,rt=q*G,at=G*U-X*D;function pt(z,Z,lt,it){return arguments.length===1?function(dt){if(dt instanceof gt)return new gt(dt.h,dt.s,dt.l,dt.opacity);dt instanceof P||(dt=b(dt));var yt=dt.r/255,wt=dt.g/255,Mt=dt.b/255,At=(at*Mt+ut*yt-rt*wt)/(at+ut-rt),xt=Mt-At,St=(q*(wt-At)-U*xt)/X,Et=Math.sqrt(St*St+xt*xt)/(q*At*(1-At)),Pt=Et?Math.atan2(St,xt)*k-120:NaN;return new gt(Pt<0?Pt+360:Pt,Et,At,dt.opacity)}(z):new gt(z,Z,lt,it==null?1:it)}function gt(z,Z,lt,it){this.h=+z,this.s=+Z,this.l=+lt,this.opacity=+it}f(gt,pt,p(l,{brighter:function(Z){return Z=Z==null?1/.7:Math.pow(1/.7,Z),new gt(this.h,this.s,this.l*Z,this.opacity)},darker:function(Z){return Z=Z==null?.7:Math.pow(.7,Z),new gt(this.h,this.s,this.l*Z,this.opacity)},rgb:function(){var Z=isNaN(this.h)?0:(this.h+120)*C,lt=+this.l,it=isNaN(this.s)?0:this.s*lt*(1-lt),dt=Math.cos(Z),yt=Math.sin(Z);return new P(255*(lt+it*(D*dt+G*yt)),255*(lt+it*(U*dt+X*yt)),255*(lt+it*(q*dt)),this.opacity)}})),g.d(x,"a",function(){return v}),g.d(x,"h",function(){return w}),g.d(x,"e",function(){return A}),g.d(x,"f",function(){return J}),g.d(x,"d",function(){return Y}),g.d(x,"g",function(){return ot}),g.d(x,"c",function(){return Q}),g.d(x,"b",function(){return pt})},,,,,,,,,,,,,,,function(M,x){M.exports=function(g){var f=typeof g;return g!=null&&(f=="object"||f=="function")}},function(M,x,g){"use strict";g.r(x);var f,p,l=0,i=0,o=0,n=1e3,t=0,e=0,r=0,a=typeof performance=="object"&&performance.now?performance:Date,u=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(S){setTimeout(S,17)};function c(){return e||(u(s),e=a.now()+r)}function s(){e=0}function h(){this._call=this._time=this._next=null}function d(S,O,A){var E=new h;return E.restart(S,O,A),E}function v(){c(),++l;for(var S,O=f;O;)(S=e-O._time)>=0&&O._call.call(null,S),O=O._next;--l}function y(){e=(t=a.now())+r,l=i=0;try{v()}finally{l=0,function(){for(var S,O,A=f,E=1/0;A;)A._call?(E>A._time&&(E=A._time),S=A,A=A._next):(O=A._next,A._next=null,A=S?S._next=O:f=O);p=S,b(E)}(),e=0}}function m(){var S=a.now(),O=S-t;O>n&&(r-=O,t=S)}function b(S){l||(i&&(i=clearTimeout(i)),S-e>24?(S<1/0&&(i=setTimeout(y,S-a.now()-r)),o&&(o=clearInterval(o))):(o||(t=a.now(),o=setInterval(m,n)),l=1,u(y)))}h.prototype=d.prototype={constructor:h,restart:function(O,A,E){if(typeof O!="function")throw new TypeError("callback is not a function");E=(E==null?c():+E)+(A==null?0:+A),this._next||p===this||(p?p._next=this:f=this,p=this),this._call=O,this._time=E,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};var w=function(O,A,E){var _=new h;return A=A==null?0:+A,_.restart(function(C){_.stop(),O(C+A)},A,E),_},P=function(O,A,E){var _=new h,C=A;return A==null?(_.restart(O,A,E),_):(A=+A,E=E==null?c():+E,_.restart(function k(T){T+=C,_.restart(k,C+=A,E),O(T)},A,E),_)};g.d(x,"now",function(){return c}),g.d(x,"timer",function(){return d}),g.d(x,"timerFlush",function(){return v}),g.d(x,"timeout",function(){return w}),g.d(x,"interval",function(){return P})},,function(M,x,g){var f=g(644),p={};f.merge(p,f,{mixin:function(i,o){var n=i.CFG?"CFG":"ATTRS";if(i&&o){i._mixins=o,i[n]=i[n]||{};var t={};p.each(o,function(e){p.augment(i,e);var r=e[n];r&&p.merge(t,r)}),i[n]=p.merge(t,i[n])}}}),M.exports=p},function(M,x,g){var f=g(117),p=typeof self=="object"&&self&&self.Object===Object&&self,l=f||p||Function("return this")();M.exports=l},,,function(M,x){M.exports=function(g){return g!=null&&typeof g=="object"}},,,function(M,x,g){var f={},p=g(682),l=g(748),i=g(257),o=g(727),n=g(726),t=g(725);i.mix(f,i,n,t,o,l,p),M.exports=f},,,,,,,,function(M,x,g){var f=g(38),p=g(250),l=g(249),i="[object Null]",o="[object Undefined]",n=f?f.toStringTag:void 0;M.exports=function(t){return t==null?t===void 0?o:i:n&&n in Object(t)?p(t):l(t)}},,,,function(M,x,g){var f=g(20).Symbol;M.exports=f},function(M,x,g){var f=g(34),p=g(23),l="[object Symbol]";M.exports=function(i){return typeof i=="symbol"||p(i)&&f(i)==l}},,,,,function(M,x,g){"use strict";function f(V){return+V}function p(V){return V*V}function l(V){return V*(2-V)}function i(V){return((V*=2)<=1?V*V:--V*(2-V)+1)/2}function o(V){return V*V*V}function n(V){return--V*V*V+1}function t(V){return((V*=2)<=1?V*V*V:(V-=2)*V*V+2)/2}g.r(x);var e=function V(tt){function $(ot){return Math.pow(ot,tt)}return tt=+tt,$.exponent=V,$}(3),r=function V(tt){function $(ot){return 1-Math.pow(1-ot,tt)}return tt=+tt,$.exponent=V,$}(3),a=function V(tt){function $(ot){return((ot*=2)<=1?Math.pow(ot,tt):2-Math.pow(2-ot,tt))/2}return tt=+tt,$.exponent=V,$}(3),u=Math.PI,c=u/2;function s(V){return 1-Math.cos(V*c)}function h(V){return Math.sin(V*c)}function d(V){return(1-Math.cos(u*V))/2}function v(V){return Math.pow(2,10*V-10)}function y(V){return 1-Math.pow(2,-10*V)}function m(V){return((V*=2)<=1?Math.pow(2,10*V-10):2-Math.pow(2,10-10*V))/2}function b(V){return 1-Math.sqrt(1-V*V)}function w(V){return Math.sqrt(1- --V*V)}function P(V){return((V*=2)<=1?1-Math.sqrt(1-V*V):Math.sqrt(1-(V-=2)*V)+1)/2}var S=4/11,O=6/11,A=8/11,E=.75,_=9/11,C=10/11,k=.9375,T=21/22,I=63/64,R=1/S/S;function F(V){return 1-j(1-V)}function j(V){return(V=+V)0){var c=r.strokeOpacity;f.isNil(c)||c===1||(e.globalAlpha=c),e.stroke()}this.afterPath(e)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(e,r){var a=[e,r,1];if(this.invert(a),this.isHitBox()){var u=this.getBBox();if(u&&!i.box(u.minX,u.maxX,u.minY,u.maxY,a[0],a[1]))return!1}var c=this._attrs.clip;return c?(c.invert(a,this.get("canvas")),!!c.isPointInPath(a[0],a[1])&&this.isPointInPath(a[0],a[1])):this.isPointInPath(a[0],a[1])},calculateBox:function(){return null},getHitLineWidth:function(){var e=this._attrs,r=e.lineAppendWidth||0;return(e.lineWidth||0)+r},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var e=this._cfg.box;return e||((e=this.calculateBox())&&(e.x=e.minX,e.y=e.minY,e.width=e.maxX-e.minX,e.height=e.maxY-e.minY),this._cfg.box=e),e},clone:function(){var e=null,r=this._attrs,a={};return f.each(r,function(u,c){n[c]&&f.isArray(r[c])?a[c]=function(s){for(var h=[],d=0;d=1?(U=1,G-1):Math.floor(U*G),q=D[X],ut=D[X+1],rt=X>0?D[X-1]:2*q-ut,at=X180||G<-180?G-360*Math.round(G/360):G):o(isNaN(L)?D:L)}function e(L){return(L=+L)==1?r:function(D,G){return G-D?function(U,X,q){return U=Math.pow(U,q),X=Math.pow(X,q)-U,q=1/q,function(ut){return Math.pow(U+ut*X,q)}}(D,G,L):o(isNaN(D)?G:D)}}function r(L,D){var G=D-L;return G?n(L,G):o(isNaN(L)?D:L)}var a=function L(D){var G=e(D);function U(X,q){var ut=G((X=Object(f.h)(X)).r,(q=Object(f.h)(q)).r),rt=G(X.g,q.g),at=G(X.b,q.b),pt=r(X.opacity,q.opacity);return function(gt){return X.r=ut(gt),X.g=rt(gt),X.b=at(gt),X.opacity=pt(gt),X+""}}return U.gamma=L,U}(1);function u(L){return function(D){var G,U,X=D.length,q=new Array(X),ut=new Array(X),rt=new Array(X);for(G=0;Gut&&(q=G.slice(ut,q),at[rt]?at[rt]+=q:at[++rt]=q),(U=U[0])===(X=X[0])?at[rt]?at[rt]+=X:at[++rt]=X:(at[++rt]=null,pt.push({i:rt,x:v(U,X)})),ut=b.lastIndex;return ut180?gt+=360:gt-pt>180&&(pt+=360),Z.push({i:z.push(X(z)+"rotate(",null,U)-2,x:v(pt,gt)})):gt&&z.push(X(z)+"rotate("+gt+U)}(q.rotate,ut.rotate,rt,at),function(pt,gt,z,Z){pt!==gt?Z.push({i:z.push(X(z)+"skewX(",null,U)-2,x:v(pt,gt)}):gt&&z.push(X(z)+"skewX("+gt+U)}(q.skewX,ut.skewX,rt,at),function(pt,gt,z,Z,lt,it){if(pt!==z||gt!==Z){var dt=lt.push(X(lt)+"scale(",null,",",null,")");it.push({i:dt-4,x:v(pt,z)},{i:dt-2,x:v(gt,Z)})}else z===1&&Z===1||lt.push(X(lt)+"scale("+z+","+Z+")")}(q.scaleX,q.scaleY,ut.scaleX,ut.scaleY,rt,at),q=ut=null,function(pt){for(var gt,z=-1,Z=at.length;++z1?0:y<-1?Math.PI:Math.acos(y)},x.str=function(s){return"vec3("+s[0]+", "+s[1]+", "+s[2]+")"},x.exactEquals=function(s,h){return s[0]===h[0]&&s[1]===h[1]&&s[2]===h[2]},x.equals=function(s,h){var d=s[0],v=s[1],y=s[2],m=h[0],b=h[1],w=h[2];return Math.abs(d-m)<=f.EPSILON*Math.max(1,Math.abs(d),Math.abs(m))&&Math.abs(v-b)<=f.EPSILON*Math.max(1,Math.abs(v),Math.abs(b))&&Math.abs(y-w)<=f.EPSILON*Math.max(1,Math.abs(y),Math.abs(w))};var f=function(s){if(s&&s.__esModule)return s;var h={};if(s!=null)for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(h[d]=s[d]);return h.default=s,h}(g(59));function p(){var s=new f.ARRAY_TYPE(3);return f.ARRAY_TYPE!=Float32Array&&(s[0]=0,s[1]=0,s[2]=0),s}function l(s){var h=s[0],d=s[1],v=s[2];return Math.sqrt(h*h+d*d+v*v)}function i(s,h,d){var v=new f.ARRAY_TYPE(3);return v[0]=s,v[1]=h,v[2]=d,v}function o(s,h,d){return s[0]=h[0]-d[0],s[1]=h[1]-d[1],s[2]=h[2]-d[2],s}function n(s,h,d){return s[0]=h[0]*d[0],s[1]=h[1]*d[1],s[2]=h[2]*d[2],s}function t(s,h,d){return s[0]=h[0]/d[0],s[1]=h[1]/d[1],s[2]=h[2]/d[2],s}function e(s,h){var d=h[0]-s[0],v=h[1]-s[1],y=h[2]-s[2];return Math.sqrt(d*d+v*v+y*y)}function r(s,h){var d=h[0]-s[0],v=h[1]-s[1],y=h[2]-s[2];return d*d+v*v+y*y}function a(s){var h=s[0],d=s[1],v=s[2];return h*h+d*d+v*v}function u(s,h){var d=h[0],v=h[1],y=h[2],m=d*d+v*v+y*y;return m>0&&(m=1/Math.sqrt(m),s[0]=h[0]*m,s[1]=h[1]*m,s[2]=h[2]*m),s}function c(s,h){return s[0]*h[0]+s[1]*h[1]+s[2]*h[2]}x.sub=o,x.mul=n,x.div=t,x.dist=e,x.sqrDist=r,x.len=l,x.sqrLen=a,x.forEach=function(){var s=p();return function(h,d,v,y,m,b){var w=void 0,P=void 0;for(d||(d=3),v||(v=0),P=y?Math.min(y*d+v,h.length):h.length,w=v;w0&&(h=1/Math.sqrt(h),a[0]=u[0]*h,a[1]=u[1]*h),a},x.dot=function(a,u){return a[0]*u[0]+a[1]*u[1]},x.cross=function(a,u,c){var s=u[0]*c[1]-u[1]*c[0];return a[0]=a[1]=0,a[2]=s,a},x.lerp=function(a,u,c,s){var h=u[0],d=u[1];return a[0]=h+s*(c[0]-h),a[1]=d+s*(c[1]-d),a},x.random=function(a,u){u=u||1;var c=2*f.RANDOM()*Math.PI;return a[0]=Math.cos(c)*u,a[1]=Math.sin(c)*u,a},x.transformMat2=function(a,u,c){var s=u[0],h=u[1];return a[0]=c[0]*s+c[2]*h,a[1]=c[1]*s+c[3]*h,a},x.transformMat2d=function(a,u,c){var s=u[0],h=u[1];return a[0]=c[0]*s+c[2]*h+c[4],a[1]=c[1]*s+c[3]*h+c[5],a},x.transformMat3=function(a,u,c){var s=u[0],h=u[1];return a[0]=c[0]*s+c[3]*h+c[6],a[1]=c[1]*s+c[4]*h+c[7],a},x.transformMat4=function(a,u,c){var s=u[0],h=u[1];return a[0]=c[0]*s+c[4]*h+c[12],a[1]=c[1]*s+c[5]*h+c[13],a},x.rotate=function(a,u,c,s){var h=u[0]-c[0],d=u[1]-c[1],v=Math.sin(s),y=Math.cos(s);return a[0]=h*y-d*v+c[0],a[1]=h*v+d*y+c[1],a},x.angle=function(a,u){var c=a[0],s=a[1],h=u[0],d=u[1],v=c*c+s*s;v>0&&(v=1/Math.sqrt(v));var y=h*h+d*d;y>0&&(y=1/Math.sqrt(y));var m=(c*h+s*d)*v*y;return m>1?0:m<-1?Math.PI:Math.acos(m)},x.str=function(a){return"vec2("+a[0]+", "+a[1]+")"},x.exactEquals=function(a,u){return a[0]===u[0]&&a[1]===u[1]},x.equals=function(a,u){var c=a[0],s=a[1],h=u[0],d=u[1];return Math.abs(c-h)<=f.EPSILON*Math.max(1,Math.abs(c),Math.abs(h))&&Math.abs(s-d)<=f.EPSILON*Math.max(1,Math.abs(s),Math.abs(d))};var f=function(a){if(a&&a.__esModule)return a;var u={};if(a!=null)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(u[c]=a[c]);return u.default=a,u}(g(59));function p(){var a=new f.ARRAY_TYPE(2);return f.ARRAY_TYPE!=Float32Array&&(a[0]=0,a[1]=0),a}function l(a,u,c){return a[0]=u[0]-c[0],a[1]=u[1]-c[1],a}function i(a,u,c){return a[0]=u[0]*c[0],a[1]=u[1]*c[1],a}function o(a,u,c){return a[0]=u[0]/c[0],a[1]=u[1]/c[1],a}function n(a,u){var c=u[0]-a[0],s=u[1]-a[1];return Math.sqrt(c*c+s*s)}function t(a,u){var c=u[0]-a[0],s=u[1]-a[1];return c*c+s*s}function e(a){var u=a[0],c=a[1];return Math.sqrt(u*u+c*c)}function r(a){var u=a[0],c=a[1];return u*u+c*c}x.len=e,x.sub=l,x.mul=i,x.div=o,x.dist=n,x.sqrDist=t,x.sqrLen=r,x.forEach=function(){var a=p();return function(u,c,s,h,d,v){var y=void 0,m=void 0;for(c||(c=2),s||(s=0),m=h?Math.min(h*c+s,u.length):u.length,y=s;y0?1:-1};var i=function(n){for(var t=1;t1){var e=n[0].charAt(0);n.splice(1,0,n[0].substr(1)),n[0]=e}f.each(n,function(r,a){isNaN(r)||(n[a]=+r)}),o[t]=n}),o):void 0}}},function(M,x,g){var f=g(237);M.exports=function(p){return f(p)?"":p.toString()}},function(M,x,g){var f=g(115);M.exports=function(p){return f(p,"String")}},function(M,x,g){var f=g(619),p=g(115);M.exports=function(l){if(!f(l)||!p(l,"Object"))return!1;if(Object.getPrototypeOf(l)===null)return!0;for(var i=l;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(l)===i}},function(M,x,g){var f=function(p){function l(i){var o;return(o=p.call(this)||this).options=i,o}return function(i,o){i.prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o}(l,p),l.prototype.execute=function(){var i=this,o=this.options;this.roots.forEach(function(n){i.layout(n,o).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})})},l}(g(622));M.exports=f},function(M,x,g){(function(f,p){M.exports=p()})(typeof self!="undefined"&&self,function(){return function(f){var p={};function l(i){if(p[i])return p[i].exports;var o=p[i]={i,l:!1,exports:{}};return f[i].call(o.exports,o,o.exports,l),o.l=!0,o.exports}return l.m=f,l.c=p,l.d=function(i,o,n){l.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:n})},l.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return l.d(o,"a",o),o},l.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},l.p="",l(l.s=5)}([function(f,p,l){var i=l(7);f.exports={assign:i}},function(f,p,l){var i=l(3),o=function(){function n(t,e){e===void 0&&(e={}),this.options=e,this.rootNode=i(t,e)}return n.prototype.execute=function(){throw new Error("please override this method")},n}();f.exports=o},function(f,p,l){var i=l(4),o=["LR","RL","TB","BT","H","V"],n=["LR","RL","H"],t=o[0];f.exports=function(e,r,a){var u=r.direction||t;if(r.isHorizontal=function(v){return n.indexOf(v)>-1}(u),u&&o.indexOf(u)===-1)throw new TypeError("Invalid direction: "+u);if(u===o[0])a(e,r);else if(u===o[1])a(e,r),e.right2left();else if(u===o[2])a(e,r);else if(u===o[3])a(e,r),e.bottom2top();else if(u===o[4]||u===o[5]){var c=i(e,r),s=c.left,h=c.right;a(s,r),a(h,r),r.isHorizontal?s.right2left():s.bottom2top(),h.translate(s.x-h.x,s.y-h.y),e.x=s.x,e.y=h.y;var d=e.getBoundingBox();r.isHorizontal?d.top<0&&e.translate(0,-d.top):d.left<0&&e.translate(-d.left,0)}return e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),e}},function(f,p,l){var i=l(0),o={getId:function(e){return e.id||e.name},getHGap:function(e){return e.hgap||18},getVGap:function(e){return e.vgap||18},getChildren:function(e){return e.children},getHeight:function(e){return e.height||36},getWidth:function(e){var r=e.name||" ";return e.width||18*r.split("").length}};function n(t,e){var r=this;if(r.vgap=r.hgap=0,t instanceof n)return t;r.data=t;var a=e.getHGap(t),u=e.getVGap(t);return r.width=e.getWidth(t),r.height=e.getHeight(t),r.id=e.getId(t),r.x=r.y=0,r.depth=0,r.children||(r.children=[]),r.addGap(a,u),r}i.assign(n.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,r){this.hgap+=e,this.vgap+=r,this.width+=2*e,this.height+=2*r},eachNode:function(e){for(var r,a=[this];r=a.pop();)e(r),a=a.concat(r.children)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var r,a=[this];r=a.shift();)e(r),a=a.concat(r.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(r){e.left=Math.min(e.left,r.x),e.top=Math.min(e.top,r.y),e.width=Math.max(e.width,r.x+r.width),e.height=Math.max(e.height,r.y+r.height)}),e},translate:function(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this.eachNode(function(a){a.x+=e,a.y+=r})},right2left:function(){var e=this.getBoundingBox();this.eachNode(function(r){r.x=r.x-2*(r.x-e.left)-r.width}),this.translate(e.width,0)},bottom2top:function(){var e=this.getBoundingBox();this.eachNode(function(r){r.y=r.y-2*(r.y-e.top)-r.height}),this.translate(0,e.height)}}),f.exports=function(t,e,r){e===void 0&&(e={});var a,u=new n(t,e=i.assign({},o,e)),c=[u];if(!r&&!t.collapsed){for(;a=c.pop();)if(!a.data.collapsed){var s=e.getChildren(a.data),h=s?s.length:0;if(a.children=new Array(h),s&&h)for(var d=0;dm.low&&(m=m.nxt);var O=w+b.prelim+b.w-(S+P.prelim);O>0&&(S+=O,a(v,y,m.index,O));var A=s(b),E=s(P);A<=E&&(b=c(b))!==null&&(w+=b.mod),A>=E&&(P=u(P))!==null&&(S+=P.mod)}!b&&P?function(_,C,k,T){var I=_.c[0].el;I.tl=k;var R=T-k.mod-_.c[0].msel;I.mod+=R,I.prelim-=R,_.c[0].el=_.c[C].el,_.c[0].msel=_.c[C].msel}(v,y,P,S):b&&!P&&function(_,C,k,T){var I=_.c[C].er;I.tr=k;var R=T-k.mod-_.c[C].mser;I.mod+=R,I.prelim-=R,_.c[C].er=_.c[C-1].er,_.c[C].mser=_.c[C-1].mser}(v,y,b,w)}function a(v,y,m,b){v.c[y].mod+=b,v.c[y].msel+=b,v.c[y].mser+=b,function(w,P,S,O){if(S!==P-1){var A=P-S;w.c[S+1].shift+=O/A,w.c[P].shift-=O/A,w.c[P].change-=O-O/A}}(v,y,m,b)}function u(v){return v.cs===0?v.tl:v.c[0]}function c(v){return v.cs===0?v.tr:v.c[v.cs-1]}function s(v){return v.y+v.h}function h(v,y,m){for(;m!==null&&v>=m.low;)m=m.nxt;return{low:v,index:y,nxt:m}}(function v(y,m,b){b===void 0&&(b=0),m?(y.x=b,b+=y.width):(y.y=b,b+=y.height),y.children.forEach(function(w){v(w,m,b)})})(o,t);var d=l.fromNode(o,t);return function v(y){if(y.cs!==0){v(y.c[0]);for(var m=h(s(y.c[0].el),0,null),b=1;br&&(r=c.depth);var s=c.children,h=s.length,d=new function(v,y){v===void 0&&(v=0),y===void 0&&(y=[]);var m=this;m.x=m.y=0,m.leftChild=m.rightChild=null,m.height=0,m.children=y}(c.height,[]);return s.forEach(function(v,y){var m=u(v);d.children.push(m),y===0&&(d.leftChild=m),y===h-1&&(d.rightChild=m)}),d.originNode=c,d.isLeaf=c.isLeaf(),d}(n);return function u(c){if(c.isLeaf||c.children.length===0)c.drawingDepth=r;else{var s=c.children.map(function(d){return u(d)}),h=Math.min.apply(null,s);c.drawingDepth=h-1}return c.drawingDepth}(a),function u(c){c.x=c.drawingDepth*t.rankSep,c.isLeaf?(c.y=0,e&&(c.y=e.y+e.height+t.nodeSep,c.originNode.parent!==e.originNode.parent&&(c.y+=t.subTreeSep)),e=c):(c.children.forEach(function(s){u(s)}),c.y=(c.leftChild.y+c.rightChild.y)/2)}(a),function u(c,s,h){h?(s.x=c.x,s.y=c.y):(s.x=c.y,s.y=c.x),c.children.forEach(function(d,v){u(d,s.children[v],h)})}(a,n,t.isHorizontal),n}},function(f,p,l){var i=l(1),o=l(12),n=l(4),t=l(0),e=["LR","RL","H"],r=e[0],a=function(c){function s(){return c.apply(this,arguments)||this}return function(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,h.__proto__=d}(s,c),s.prototype.execute=function(){var h=this.options,d=this.rootNode;h.isHorizontal=!0;var v=h.indent,y=h.direction||r;if(y&&e.indexOf(y)===-1)throw new TypeError("Invalid direction: "+y);if(y===e[0])o(d,v);else if(y===e[1])o(d,v),d.right2left();else if(y===e[2]){var m=n(d,h),b=m.left,w=m.right;o(b,v),b.right2left(),o(w,v);var P=b.getBoundingBox();w.translate(P.width,0),d.x=w.x-d.width/2}return d},s}(i),u={};f.exports=function(c,s){return s=t.assign({},u,s),new a(c,s).execute()}},function(f,p){f.exports=function(l,i){i===void 0&&(i=20);var o=null;l.eachNode(function(n){(function(t,e,r){t.x+=r*t.depth,t.y=e?e.y+e.height:0})(n,o,i),o=n})}},function(f,p,l){var i=l(1),o=l(14),n=l(2),t=l(0),e=function(a){function u(){return a.apply(this,arguments)||this}return function(c,s){c.prototype=Object.create(s.prototype),c.prototype.constructor=c,c.__proto__=s}(u,a),u.prototype.execute=function(){return n(this.rootNode,this.options,o)},u}(i),r={};f.exports=function(a,u){return u=t.assign({},r,u),new e(a,u).execute()}},function(f,p,l){var i=l(0),o={getSubTreeSep:function(){return 0}};f.exports=function(n,t){t===void 0&&(t={}),t=i.assign({},o,t),n.parent={x:0,width:0,height:0,y:0},n.BFTraverse(function(e){e.x=e.parent.x+e.parent.width}),n.parent=null,function e(r,a){var u=0;return r.children.length?r.children.forEach(function(c){u+=e(c,a)}):u=r.height,r._subTreeSep=a.getSubTreeSep(r.data),r.totalHeight=Math.max(r.height,u)+2*r._subTreeSep,r.totalHeight}(n,t),n.startY=0,n.y=n.totalHeight/2-n.height/2,n.eachNode(function(e){var r=e.children,a=r.length;if(a){var u=r[0];if(u.startY=e.startY+e._subTreeSep,a===1)u.y=e.y+e.height/2-u.height/2;else{u.y=u.startY+u.totalHeight/2-u.height/2;for(var c=1;cr.height)r.y=c.y+h/2-r.height/2;else if(a.length!==1||r.height>d){var v=r.y+(r.height-h)/2-c.y;a.forEach(function(y){y.translate(0,v)})}else r.y=(c.y+c.height/2+s.y+s.height/2)/2-r.height/2}}(n)}}])})},function(M,x,g){var f=g(26),p=function(){var l=i.prototype;function i(o){var n=this.getDefaultCfg();f.mix(this,n,o),this._init()}return l.getDefaultCfg=function(){return{}},l._init=function(){},l.destroy=function(){},i}();M.exports=p},function(M,x,g){var f=g(19),p=g(613),l=g(612),i=g(640),o=g(639),n=f.vec3,t=f.mat3,e=["m","l","c","a","q","h","v","t","s","z"];function r(d,v,y){return{x:y.x+d,y:y.y+v}}function a(d,v){return{x:v.x+(v.x-d.x),y:v.y+(v.y-d.y)}}function u(d){return Math.sqrt(d[0]*d[0]+d[1]*d[1])}function c(d,v){return(d[0]*v[0]+d[1]*v[1])/(u(d)*u(v))}function s(d,v){return(d[0]*v[1]=0,A=O?m.toUpperCase():m,E=v,_=y.endPoint,C=E[1],k=E[2];switch(A){default:break;case"M":S=O?r(C,k,_):{x:C,y:k},this.command="M",this.params=[_,S],this.subStart=S,this.endPoint=S;break;case"L":S=O?r(C,k,_):{x:C,y:k},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"H":S=O?r(C,0,_):{x:C,y:_.y},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"V":S=O?r(0,C,_):{x:_.x,y:C},this.command="L",this.params=[_,S],this.subStart=y.subStart,this.endPoint=S,this.endTangent=function(){return[S.x-_.x,S.y-_.y]},this.startTangent=function(){return[_.x-S.x,_.y-S.y]};break;case"Q":O?(b=r(C,k,_),w=r(E[3],E[4],_)):(b={x:C,y:k},w={x:E[3],y:E[4]}),this.command="Q",this.params=[_,b,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-b.x,w.y-b.y]},this.startTangent=function(){return[_.x-b.x,_.y-b.y]};break;case"T":w=O?r(C,k,_):{x:C,y:k},y.command==="Q"?(b=a(y.params[1],_),this.command="Q",this.params=[_,b,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-b.x,w.y-b.y]},this.startTangent=function(){return[_.x-b.x,_.y-b.y]}):(this.command="TL",this.params=[_,w],this.subStart=y.subStart,this.endPoint=w,this.endTangent=function(){return[w.x-_.x,w.y-_.y]},this.startTangent=function(){return[_.x-w.x,_.y-w.y]});break;case"C":O?(b=r(C,k,_),w=r(E[3],E[4],_),P=r(E[5],E[6],_)):(b={x:C,y:k},w={x:E[3],y:E[4]},P={x:E[5],y:E[6]}),this.command="C",this.params=[_,b,w,P],this.subStart=y.subStart,this.endPoint=P,this.endTangent=function(){return[P.x-w.x,P.y-w.y]},this.startTangent=function(){return[_.x-b.x,_.y-b.y]};break;case"S":O?(w=r(C,k,_),P=r(E[3],E[4],_)):(w={x:C,y:k},P={x:E[3],y:E[4]}),y.command==="C"?(b=a(y.params[2],_),this.command="C",this.params=[_,b,w,P],this.subStart=y.subStart,this.endPoint=P,this.endTangent=function(){return[P.x-w.x,P.y-w.y]},this.startTangent=function(){return[_.x-b.x,_.y-b.y]}):(this.command="SQ",this.params=[_,w,P],this.subStart=y.subStart,this.endPoint=P,this.endTangent=function(){return[P.x-w.x,P.y-w.y]},this.startTangent=function(){return[_.x-w.x,_.y-w.y]});break;case"A":var T=C,I=k,R=E[3],F=E[4],j=E[5];S=O?r(E[6],E[7],_):{x:E[6],y:E[7]},this.command="A";var B=function(K,nt,st,V,tt,$,ot){var Y=f.mod(f.toRadian(ot),2*Math.PI),L=K.x,D=K.y,G=nt.x,U=nt.y,X=Math.cos(Y)*(L-G)/2+Math.sin(Y)*(D-U)/2,q=-1*Math.sin(Y)*(L-G)/2+Math.cos(Y)*(D-U)/2,ut=X*X/(tt*tt)+q*q/($*$);ut>1&&(tt*=Math.sqrt(ut),$*=Math.sqrt(ut));var rt=tt*tt*(q*q)+$*$*(X*X),at=Math.sqrt((tt*tt*($*$)-rt)/rt);st===V&&(at*=-1),isNaN(at)&&(at=0);var pt=at*tt*q/$,gt=at*-$*X/tt,z=(L+G)/2+Math.cos(Y)*pt-Math.sin(Y)*gt,Z=(D+U)/2+Math.sin(Y)*pt+Math.cos(Y)*gt,lt=s([1,0],[(X-pt)/tt,(q-gt)/$]),it=[(X-pt)/tt,(q-gt)/$],dt=[(-1*X-pt)/tt,(-1*q-gt)/$],yt=s(it,dt);return c(it,dt)<=-1&&(yt=Math.PI),c(it,dt)>=1&&(yt=0),V===0&&yt>0&&(yt-=2*Math.PI),V===1&&yt<0&&(yt+=2*Math.PI),[K,z,Z,tt,$,lt,yt,Y,V]}(_,S,F,j,T,I,R);this.params=B;var H=y.subStart;this.subStart=H,this.endPoint=S;var et=B[5]%(2*Math.PI);f.isNumberEqual(et,2*Math.PI)&&(et=0);var Q=B[6]%(2*Math.PI);f.isNumberEqual(Q,2*Math.PI)&&(Q=0);var J=.001;this.startTangent=function(){j===0&&(J*=-1);var K=B[3]*Math.cos(et-J)+B[1],nt=B[4]*Math.sin(et-J)+B[2];return[K-H.x,nt-H.y]},this.endTangent=function(){var K=B[6];K-2*Math.PI<1e-4&&(K=0);var nt=B[3]*Math.cos(et+K+J)+B[1],st=B[4]*Math.sin(et+K-J)+B[2];return[_.x-nt,_.y-st]};break;case"Z":this.command="Z",this.params=[_,y.subStart],this.subStart=y.subStart,this.endPoint=y.subStart}},isInside:function(v,y,m){var b=this.command,w=this.params,P=this.box;if(P&&!p.box(P.minX,P.maxX,P.minY,P.maxY,v,y))return!1;switch(b){default:break;case"M":return!1;case"TL":case"L":case"Z":return p.line(w[0].x,w[0].y,w[1].x,w[1].y,m,v,y);case"SQ":case"Q":return p.quadraticline(w[0].x,w[0].y,w[1].x,w[1].y,w[2].x,w[2].y,m,v,y);case"C":return p.cubicline(w[0].x,w[0].y,w[1].x,w[1].y,w[2].x,w[2].y,w[3].x,w[3].y,m,v,y);case"A":var S=w,O=S[1],A=S[2],E=S[3],_=S[4],C=S[5],k=S[6],T=S[7],I=S[8],R=E>_?E:_,F=E>_?1:E/_,j=E>_?_/E:1;S=[v,y,1];var B=[1,0,0,0,1,0,0,0,1];return t.translate(B,B,[-O,-A]),t.rotate(B,B,-T),t.scale(B,B,[1/F,1/j]),n.transformMat3(S,S,B),p.arcline(0,0,R,C,C+k,1-I,m,S[0],S[1])}return!1},draw:function(v){var y,m,b,w=this.command,P=this.params;switch(w){default:break;case"M":v.moveTo(P[1].x,P[1].y);break;case"TL":case"L":v.lineTo(P[1].x,P[1].y);break;case"SQ":case"Q":y=P[1],m=P[2],v.quadraticCurveTo(y.x,y.y,m.x,m.y);break;case"C":y=P[1],m=P[2],b=P[3],v.bezierCurveTo(y.x,y.y,m.x,m.y,b.x,b.y);break;case"A":var S=P,O=S[1],A=S[2],E=S[3],_=S[4],C=S[5],k=S[6],T=S[7],I=S[8],R=E>_?E:_,F=E>_?1:E/_,j=E>_?_/E:1;v.translate(O,A),v.rotate(T),v.scale(F,j),v.arc(0,0,R,C,C+k,1-I),v.scale(1/F,1/j),v.rotate(-T),v.translate(-O,-A);break;case"Z":v.closePath()}},getBBox:function(v){var y,m,b,w,P=v/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)-P,maxX:Math.max(S[0].x,S[1].x)+P,minY:Math.min(S[0].y,S[1].y)-P,maxY:Math.max(S[0].y,S[1].y)+P};break;case"SQ":case"Q":for(b=0,w=(m=i.extrema(S[0].x,S[1].x,S[2].x)).length;bet&&(et=K)}var nt=o.yExtrema(I,_,C),st=1/0,V=-1/0,tt=[F,j];for(b=2*-Math.PI;b<=2*Math.PI;b+=Math.PI){var $=nt+b;R===1?F<$&&$V&&(V=ot)}this.box={minX:H-P,maxX:et+P,minY:st-P,maxY:V+P}}}}),M.exports=h},function(M,x,g){var f=g(593),p=g(600),l=Math.PI,i=Math.sin,o=Math.cos,n=Math.atan2,t=10,e=l/3;function r(u,c,s,h,d,v,y){var m,b,w,P,S,O,A;if(!c.fill){var E=c.arrowLength||t,_=c.arrowAngle?c.arrowAngle*l/180:e;A=n(h-v,s-d),S=Math.abs(c.lineWidth*o(A))/2,O=Math.abs(c.lineWidth*i(A))/2,y&&(S=-S,O=-O),m=d+E*o(A+_/2),b=v+E*i(A+_/2),w=d+E*o(A-_/2),P=v+E*i(A-_/2),u.beginPath(),u.moveTo(m-S,b-O),u.lineTo(d-S,v-O),u.lineTo(w-S,P-O),u.moveTo(d-S,v-O),u.lineTo(d+S,v+O),u.moveTo(d,v),u.stroke()}}function a(u,c,s,h,d,v,y){var m=y?c.startArrow:c.endArrow,b=m.d,w=0,P=d-s,S=v-h,O=Math.atan(P/S);S===0&&P<0?w=Math.PI:P>0&&S>0?w=Math.PI/2-O:P<0&&S<0?w=-Math.PI/2-O:P>=0&&S<0?w=-O-Math.PI/2:P<=0&&S>0&&(w=Math.PI/2-O);var A=function(_){var C,k=[],T=f.parsePath(_.path);if(!Array.isArray(T)||T.length===0||T[0][0]!=="M"&&T[0][0]!=="m")return!1;for(var I=T.length,R=0;Re&&(a=2*Math.PI-n+t,u=n-e):(a=n-t,u=e-n),a>u?e:t}function i(n,t,e,r){var a=0;return e-t>=2*Math.PI&&(a=2*Math.PI),t=f.mod(t,2*Math.PI),e=f.mod(e,2*Math.PI)+a,n=f.mod(n,2*Math.PI),r?t>=e?n>e&&ne?n:l(n,t,e):t<=e?tt||nS.x&&(m=S.x),bS.y&&(w=S.y),P-1}},function(M,x){function g(f,p){for(var l in p)p.hasOwnProperty(l)&&l!=="constructor"&&p[l]!==void 0&&(f[l]=p[l])}M.exports=function(f,p,l,i){return p&&g(f,p),l&&g(f,l),i&&g(f,i),f}},,function(M,x,g){var f=g(26),p=function(){function l(o){f.mix(this,{id:"",type:null,model:{},group:null,animate:!1,modelCache:{},isItem:!0,visible:!0},o),this._init()}var i=l.prototype;return i._init=function(){this._initGroup(),this.draw()},i._mapping=function(){var o=this.mapper,n=this.model;o.mapping(n)},i._initGroup=function(){var o=this.group,n=this.model,t=this.type;o.isItemContainer=!0,o.id=n.id,o.itemType=t,o.model=n,o.item=this},i._calculateBBox=function(){var o=this.keyShape,n=this.group,t=f.getBBox(o,n);return t.width=t.maxX-t.minX,t.height=t.maxY-t.minY,t.centerX=(t.minX+t.maxX)/2,t.centerY=(t.minY+t.maxY)/2,t},i.getLabel=function(){return this.group.findByClass("label")[0]},i.getGraph=function(){return this.graph},i._setShapeObj=function(){var o=this.graph,n=this.type,t=this.getModel();this.shapeObj=o.getShapeObj(n,t)},i._afterDraw=function(){var o=this.graph;this._setGId(),this._cacheModel(),o.emit("afteritemdraw",{item:this})},i._cacheModel=function(){this.modelCache=f.mix({},this.model)},i._setGId=function(){var o=this.group,n=this.id,t=this.type;o.gid=n,o.deepEach(function(e,r,a){var u=r.gid;if(e.id=n,e.eventPreFix=t,e.gid=u+"-"+a,e.isShape){var c=e.get("type");e.gid+="-"+c}})},i._beforeDraw=function(){var o=this.graph,n=this.group;o.emit("beforeitemdraw",{item:this}),n.resetMatrix(),this.updateCollapsedParent()},i._shouldDraw=function(){return!0},i._getDiff=function(){var o=[],n=this.model,t=this.modelCache;return f.each(n,function(e,r){f.isEqual(e,t[r])||o.push(r)}),o.length!==0&&o},i._drawInner=function(){var o=this.animate;this.group.clear(!o),this._mapping(),this._setShapeObj();var n=this.shapeObj,t=n.draw(this);t&&(t.isKeyShape=!0,this.keyShape=t),n.afterDraw&&n.afterDraw(this)},i.deepEach=function(o,n){f.traverseTree(this,o,n||function(t){return t.getChildren()})},i.getShapeObj=function(){return this.shapeObj},i.updateCollapsedParent=function(){var o=this.dataMap;this.collapsedParent=function n(t,e){var r=e[t.parent];if(!r)return!1;if(r){var a=n(r,e);if(a)return a}return r.collapsed?r:void 0}(this.model,o)},i.isVisible=function(){return this.visible},i.hide=function(){var o=this.group,n=this.graph;n.emit("beforeitemhide",{item:this}),o.hide(),this.visible=!1,n.emit("afteritemhide",{item:this})},i.show=function(){var o=this.group,n=this.graph;n.emit("beforeitemshow",{item:this}),o.show(),this.visible=!0,n.emit("afteritemshow",{item:this})},i.draw=function(){this._beforeDraw(),this._shouldDraw()&&this._drawInner(),this._afterDraw()},i.forceUpdate=function(){this._beforeDraw(),this._drawInner(),this._afterDraw()},i.getCenter=function(){var o=this.getBBox();return{x:o.centerX,y:o.centerY}},i.getBBox=function(){return this.bbox||this._calculateBBox()},i.layoutUpdate=function(){this.isVisible()&&this.draw()},i.update=function(){this.draw()},i.getModel=function(){return this.model},i.getKeyShape=function(){return this.keyShape},i.getGraphicGroup=function(){return this.group},i.getHierarchy=function(){return this.graph.getHierarchy(this)},i.getParent=function(){var o=this.model;return this.itemMap[o.parent]},i.getAllParents=function(){for(var o=this.model,n=this.itemMap,t=[],e=o.parent;e&&n[e];){var r=n[e],a=r.getModel();t.push(r),e=a.parent}return t},i.getAllChildren=function(){var o=[];return this.deepEach(function(n){o.push(n)}),o},i.getChildren=function(){var o=this.id;return this.graph.getItems().filter(function(n){return n.model.parent===o})},i.toFront=function(){this.group.toFront()},i.toBack=function(){this.group.toBack()},i.destroy=function(){if(!this.destroyed){var o=this.animate,n=this.graph;n.emit("beforeitemdestroy",{item:this}),this.group.remove(!o),this.destroyed=!0,n.emit("afteritemdestroy",{item:this})}},l}();M.exports=p},function(M,x){M.exports="2.2.6"},function(M,x,g){var f=g(644),p=` \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,l=new RegExp("([a-z])["+p+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+p+"]*,?["+p+"]*)+)","ig"),i=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+p+"]*,?["+p+"]*","ig"),o=function(I){if(!I)return null;if(typeof I==typeof[])return I;var R={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},F=[];return String(I).replace(l,function(j,B,H){var et=[],Q=B.toLowerCase();if(H.replace(i,function(J,K){K&&et.push(+K)}),Q==="m"&&et.length>2&&(F.push([B].concat(et.splice(0,2))),Q="l",B=B==="m"?"l":"L"),Q==="o"&&et.length===1&&F.push([B,et[0]]),Q==="r")F.push([B].concat(et));else for(;et.length>=R[Q]&&(F.push([B].concat(et.splice(0,R[Q]))),R[Q]););}),F},n=function(I,R){for(var F=[],j=0,B=I.length;B-2*!R>j;j+=2){var H=[{x:+I[j-2],y:+I[j-1]},{x:+I[j],y:+I[j+1]},{x:+I[j+2],y:+I[j+3]},{x:+I[j+4],y:+I[j+5]}];R?j?B-4===j?H[3]={x:+I[0],y:+I[1]}:B-2===j&&(H[2]={x:+I[0],y:+I[1]},H[3]={x:+I[2],y:+I[3]}):H[0]={x:+I[B-2],y:+I[B-1]}:B-4===j?H[3]=H[2]:j||(H[0]={x:+I[j],y:+I[j+1]}),F.push(["C",(-H[0].x+6*H[1].x+H[2].x)/6,(-H[0].y+6*H[1].y+H[2].y)/6,(H[1].x+6*H[2].x-H[3].x)/6,(H[1].y+6*H[2].y-H[3].y)/6,H[2].x,H[2].y])}return F},t=function(I,R,F,j,B){var H=[];if(B===null&&j===null&&(j=F),I=+I,R=+R,F=+F,j=+j,B!==null){var et=Math.PI/180,Q=I+F*Math.cos(-j*et),J=I+F*Math.cos(-B*et);H=[["M",Q,R+F*Math.sin(-j*et)],["A",F,F,0,+(B-j>180),0,J,R+F*Math.sin(-B*et)]]}else H=[["M",I,R],["m",0,-j],["a",F,j,0,1,1,0,2*j],["a",F,j,0,1,1,0,-2*j],["z"]];return H},e=function(I){if(!(I=o(I))||!I.length)return[["M",0,0]];var R,F,j=[],B=0,H=0,et=0,Q=0,J=0;I[0][0]==="M"&&(et=B=+I[0][1],Q=H=+I[0][2],J++,j[0]=["M",B,H]);for(var K,nt,st=I.length===3&&I[0][0]==="M"&&I[1][0].toUpperCase()==="R"&&I[2][0].toUpperCase()==="Z",V=J,tt=I.length;V1&&(z*=Xt=Math.sqrt(Xt),Z*=Xt);var zt=z*z,Zt=Z*Z,Vt=(it===dt?-1:1)*Math.sqrt(Math.abs((zt*Zt-zt*It*It-Zt*kt*kt)/(zt*It*It+Zt*kt*kt)));Et=Vt*z*It/Z+(pt+yt)/2,Pt=Vt*-Z*kt/z+(gt+wt)/2,xt=Math.asin(((gt-Pt)/Z).toFixed(9)),St=Math.asin(((wt-Pt)/Z).toFixed(9)),xt=ptSt&&(xt-=2*Math.PI),!dt&&St>xt&&(St-=2*Math.PI)}var Ht=St-xt;if(Math.abs(Ht)>Ot){var Jt=St,qt=yt,ue=wt;St=xt+Ot*(dt&&St>xt?1:-1),Tt=at(yt=Et+z*Math.cos(St),wt=Pt+Z*Math.sin(St),z,Z,lt,0,dt,qt,ue,[St,Jt,Et,Pt])}Ht=St-xt;var Ut=Math.cos(xt),Rt=Math.sin(xt),te=Math.cos(St),ce=Math.sin(St),ee=Math.tan(Ht/4),ne=4/3*z*ee,re=4/3*Z*ee,ie=[pt,gt],Ft=[pt+ne*Rt,gt-re*Ut],Wt=[yt+ne*ce,wt-re*te],oe=[yt,wt];if(Ft[0]=2*ie[0]-Ft[0],Ft[1]=2*ie[1]-Ft[1],Mt)return[Ft,Wt,oe].concat(Tt);for(var Kt=[],Bt=0,ae=(Tt=[Ft,Wt,oe].concat(Tt).join().split(",")).length;Bt7){U[X].shift();for(var q=U[X];q.length;)Q[X]="A",B&&(J[X]="A"),U.splice(X++,0,["C"].concat(q.splice(0,6)));U.splice(X,1),F=Math.max(j.length,B&&B.length||0)}},tt=function(U,X,q,ut,rt){U&&X&&U[rt][0]==="M"&&X[rt][0]!=="M"&&(X.splice(rt,0,["M",ut.x,ut.y]),q.bx=0,q.by=0,q.x=U[rt][1],q.y=U[rt][2],F=Math.max(j.length,B&&B.length||0))};F=Math.max(j.length,B&&B.length||0);for(var $=0;$1?1:J<0?0:J)/2,nt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],st=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],V=0,tt=0;tt<12;tt++){var $=K*nt[tt]+K,ot=h($,I,F,B,et),Y=h($,R,j,H,Q),L=ot*ot+Y*Y;V+=st[tt]*Math.sqrt(L)}return K*V},v=function(I,R,F,j,B,H,et,Q){if(!(Math.max(I,F)Math.max(B,et)||Math.max(R,j)Math.max(H,Q))){var J=(I-F)*(H-Q)-(R-j)*(B-et);if(J){var K=((I*j-R*F)*(B-et)-(I-F)*(B*Q-H*et))/J,nt=((I*j-R*F)*(H-Q)-(R-j)*(B*Q-H*et))/J,st=+K.toFixed(2),V=+nt.toFixed(2);if(!(st<+Math.min(I,F).toFixed(2)||st>+Math.max(I,F).toFixed(2)||st<+Math.min(B,et).toFixed(2)||st>+Math.max(B,et).toFixed(2)||V<+Math.min(R,j).toFixed(2)||V>+Math.max(R,j).toFixed(2)||V<+Math.min(H,Q).toFixed(2)||V>+Math.max(H,Q).toFixed(2)))return{x:K,y:nt}}}},y=function(I,R,F){return R>=I.x&&R<=I.x+I.width&&F>=I.y&&F<=I.y+I.height},m=function(I,R,F,j,B){if(B)return[["M",+I+ +B,R],["l",F-2*B,0],["a",B,B,0,0,1,B,B],["l",0,j-2*B],["a",B,B,0,0,1,-B,B],["l",2*B-F,0],["a",B,B,0,0,1,-B,-B],["l",0,2*B-j],["a",B,B,0,0,1,B,-B],["z"]];var H=[["M",I,R],["l",F,0],["l",0,j],["l",-F,0],["z"]];return H.parsePathArray=s,H},b=function(I,R,F,j){return I===null&&(I=R=F=j=0),R===null&&(R=I.y,F=I.width,j=I.height,I=I.x),{x:I,y:R,width:F,w:F,height:j,h:j,x2:I+F,y2:R+j,cx:I+F/2,cy:R+j/2,r1:Math.min(F,j)/2,r2:Math.max(F,j)/2,r0:Math.sqrt(F*F+j*j)/2,path:m(I,R,F,j),vb:[I,R,F,j].join(" ")}},w=function(I,R,F,j,B,H,et,Q){f.isArray(I)||(I=[I,R,F,j,B,H,et,Q]);var J=function(K,nt,st,V,tt,$,ot,Y){for(var L,D,G,U,X=[],q=[[],[]],ut=0;ut<2;++ut)if(ut===0?(D=6*K-12*st+6*tt,L=-3*K+9*st-9*tt+3*ot,G=3*st-3*K):(D=6*nt-12*V+6*$,L=-3*nt+9*V-9*$+3*Y,G=3*V-3*nt),Math.abs(L)<1e-12){if(Math.abs(D)<1e-12)continue;(U=-G/D)>0&&U<1&&X.push(U)}else{var rt=D*D-4*G*L,at=Math.sqrt(rt);if(!(rt<0)){var pt=(-D+at)/(2*L);pt>0&&pt<1&&X.push(pt);var gt=(-D-at)/(2*L);gt>0&><1&&X.push(gt)}}for(var z,Z=X.length,lt=Z;Z--;)z=1-(U=X[Z]),q[0][Z]=z*z*z*K+3*z*z*U*st+3*z*U*U*tt+U*U*U*ot,q[1][Z]=z*z*z*nt+3*z*z*U*V+3*z*U*U*$+U*U*U*Y;return q[0][lt]=K,q[1][lt]=nt,q[0][lt+1]=ot,q[1][lt+1]=Y,q[0].length=q[1].length=lt+2,{min:{x:Math.min.apply(0,q[0]),y:Math.min.apply(0,q[1])},max:{x:Math.max.apply(0,q[0]),y:Math.max.apply(0,q[1])}}}.apply(null,I);return b(J.min.x,J.min.y,J.max.x-J.min.x,J.max.y-J.min.y)},P=function(I,R,F,j,B,H,et,Q,J){var K=1-J,nt=Math.pow(K,3),st=Math.pow(K,2),V=J*J,tt=V*J,$=I+2*J*(F-I)+V*(B-2*F+I),ot=R+2*J*(j-R)+V*(H-2*j+R),Y=F+2*J*(B-F)+V*(et-2*B+F),L=j+2*J*(H-j)+V*(Q-2*H+j);return{x:nt*I+3*st*J*F+3*K*J*J*B+tt*et,y:nt*R+3*st*J*j+3*K*J*J*H+tt*Q,m:{x:$,y:ot},n:{x:Y,y:L},start:{x:K*I+J*F,y:K*R+J*j},end:{x:K*B+J*et,y:K*H+J*Q},alpha:90-180*Math.atan2($-Y,ot-L)/Math.PI}},S=function(I,R,F){if(!function(rt,at){return rt=b(rt),at=b(at),y(at,rt.x,rt.y)||y(at,rt.x2,rt.y)||y(at,rt.x,rt.y2)||y(at,rt.x2,rt.y2)||y(rt,at.x,at.y)||y(rt,at.x2,at.y)||y(rt,at.x,at.y2)||y(rt,at.x2,at.y2)||(rt.xat.x||at.xrt.x)&&(rt.yat.y||at.yrt.y)}(w(I),w(R)))return F?0:[];for(var j=~~(d.apply(0,I)/8),B=~~(d.apply(0,R)/8),H=[],et=[],Q={},J=F?0:[],K=0;K=0&&q<=1&&ut>=0&&ut<=1&&(F?J++:J.push({x:X.x,y:X.y,t1:q,t2:ut}))}}return J};function O(T,I){var R=[],F=[];return T.length&&function j(B,H){if(B.length===1)R.push(B[0]),F.push(B[0]);else{for(var et=[],Q=0;Q=3&&(ot.length===3&&Y.push("Q"),Y=Y.concat(ot[1])),ot.length===2&&Y.push("L"),Y=Y.concat(ot[ot.length-1])})}(I,R,F));else{var B=[].concat(I);B[0]==="M"&&(B[0]="L");for(var H=0;H<=F-1;H++)j.push(B)}return j},E=function(I,R){if(I.length!==R.length)return!1;var F=!0;return f.each(I,function(j,B){if(j!==R[B])return F=!1,!1}),F};function _(T,I,R){var F=null,j=R;return I=0;st--)et=H[st].index,H[st].type==="add"?I.splice(et,0,[].concat(I[et])):I.splice(et,1)}var V=B-(j=I.length);if(j0)){I[j]=R[j];break}F=C(F,I[j-1],1)}I[j]=["Q"].concat(F.reduce(function(B,H){return B.concat(H)},[]));break;case"T":I[j]=["T"].concat(F[0]);break;case"C":if(F.length<3){if(!(j>0)){I[j]=R[j];break}F=C(F,I[j-1],2)}I[j]=["C"].concat(F.reduce(function(B,H){return B.concat(H)},[]));break;case"S":if(F.length<2){if(!(j>0)){I[j]=R[j];break}F=C(F,I[j-1],1)}I[j]=["S"].concat(F.reduce(function(B,H){return B.concat(H)},[]));break;default:I[j]=R[j]}return I},intersection:function(I,R){return function(F,j,B){var H,et,Q,J,K,nt,st,V,tt,$;F=u(F),j=u(j);for(var ot=B?0:[],Y=0,L=F.length;Y=0&&w<_?(y=O,_=w):(S=[l(n,e,a,c,A),l(t,r,u,s,A)],P=p.squaredDistance(C,S),A<=1&&P<_?(y=A,_=P):E*=.5);return v&&(v.x=l(n,e,a,c,y),v.y=l(t,r,u,s,y)),Math.sqrt(_)}function o(n,t,e,r,a){return n*(n*(-3*t+9*e-9*r+3*a)+6*t-12*e+6*r)-3*t+3*e}M.exports={at:l,derivativeAt:function(t,e,r,a,u){var c=1-u;return 3*(((e-t)*c+2*(r-e)*u)*c+(a-r)*u*u)},projectPoint:function(t,e,r,a,u,c,s,h,d,v){var y={};return i(t,e,r,a,u,c,s,h,d,v,y),y},pointDistance:i,extrema:function(t,e,r,a){var u,c,s,h=3*t-9*e+9*r-3*a,d=6*e-12*r+6*a,v=3*r-3*a,y=[];if(f.isNumberEqual(h,0))f.isNumberEqual(d,0)||(u=-v/d)>=0&&u<=1&&y.push(u);else{var m=d*d-4*h*v;f.isNumberEqual(m,0)?y.push(-d/(2*h)):m>0&&(c=(-d-(s=Math.sqrt(m)))/(2*h),(u=(-d+s)/(2*h))>=0&&u<=1&&y.push(u),c>=0&&c<=1&&y.push(c))}return y},len:function(t,e,r,a,u,c,s,h,d){f.isNil(d)&&(d=1);for(var v=(d=d>1?1:d<0?0:d)/2,y=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],b=0,w=0;w<12;w++){var P=v*y[w]+v,S=o(P,t,r,u,s),O=o(P,e,a,c,h),A=S*S+O*O;b+=m[w]*Math.sqrt(A)}return v*b}}},function(M,x,g){var f=g(603),p=g(640),l=g(612),i=g(602);M.exports={line:function(n,t,e,r,a,u,c){var s=f.box(n,t,e,r,a);if(!this.box(s.minX,s.maxX,s.minY,s.maxY,u,c))return!1;var h=f.pointDistance(n,t,e,r,u,c);return!isNaN(h)&&h<=a/2},polyline:function(n,t,e,r){var a=n.length-1;if(a<1)return!1;for(var u=0;up?p:g}},function(M,x){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};M.exports=function(f){return(f===void 0?"undefined":g(f))==="object"&&f!==null}},function(M,x,g){var f=g(46),p=g(118);M.exports=function(l,i){if(!p(l))return l;var o=[];return f(l,function(n,t){i(n,t)&&o.push(n)}),o}},function(M,x){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};M.exports=function(f){var p=f===void 0?"undefined":g(f);return f!==null&&p==="object"||p==="function"}},function(M,x){var g=function(){function f(){}return f.prototype.execute=function(){throw new Error("please override this method")},f}();M.exports=g},function(M,x,g){M.exports={CompactBoxTree:g(688),Dendrogram:g(687),IndentedTree:g(686),Mindmap:g(685),Base:g(622)}},function(M,x,g){var f=g(26),p=function(l){function i(n){var t={type:"node",isNode:!0,zIndex:3,edges:[],linkable:!0};return f.mix(t,n),l.call(this,t)||this}(function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t})(i,l);var o=i.prototype;return o.updatePosition=function(){var n=this.group,t=this.model;n.setMatrix([1,0,0,0,1,0,t.x?t.x:0,t.y?t.y:0,1]),this.bbox=this._calculateBBox()},o._shouldDraw=function(){var n=this._getDiff(),t=l.prototype._shouldDraw.call(this);return n&&!(n.length===2&&n.indexOf("x")!==-1&&n.indexOf("y")!==-1)&&!(n.length===1&&(n[0]==="x"||n[0]==="y"))&&t},o._afterDraw=function(){this.updatePosition(),l.prototype._afterDraw.call(this)},o.layoutUpdate=function(){this._beforeDraw(),this._afterDraw()},o.getEdges=function(){var n=this;return this.graph.getEdges().filter(function(t){var e=t.getModel();return e.source===n.id||e.target===n.id})},o.getInEdges=function(){var n=this;return this.getEdges().filter(function(t){return t.target===n})},o.getOutEdges=function(){var n=this;return this.getEdges().filter(function(t){return t.source===n})},o.getLinkPoints=function(n){var t=this.getAnchorPoints();if(f.isNumber(n)&&t[n])return[t[n]];var e=n.x,r=n.y,a=this.getBBox(),u=a.centerX,c=a.centerY,s=e-u,h=r-c,d=this.shapeObj,v=d.anchor||{},y=this.defaultIntersectBox,m=[];if(f.isEmpty(t)){switch(d.intersectBox||v.intersectBox||v.type||y){case"rect":m=[f.getIntersectPointRect(a,n)];break;case"path":if(this.keyShape&&this.keyShape.get("type")==="path"){var b=f.parsePathArray(["M",e,r,"L",u,c]);m=[f.intersection(b,this.keyShape.get("path"))]}break;default:m=[f.getIntersectPointCircle(e,r,a.centerX,a.centerY,Math.max(a.width,a.height)/2)]}f.isEmpty(m[0])&&(m=[{x:u,y:c}])}else m=t.map(function(w){var P=w.x-u,S=w.y-c,O=f.getArcOfVectors({x:s,y:h},{x:P,y:S});return f.mix({},w,{arc:O})}).sort(function(w,P){return w.arc-P.arc});return m},o.getAnchorPoints=function(n){var t,e=this.shapeObj,r=this.getBBox(),a=[],u=e.anchor||{};return t=f.isArray(u)?u:f.isFunction(u)?u(this):f.isFunction(u.points)?u.points(this):u.points,f.each(t,function(c,s){var h=f.mix({x:r.minX+c[0]*r.width,y:r.minY+c[1]*r.height},c[2],{index:s});a.push(h)}),this._anchorPoints=a,f.isNumber(n)?this._anchorPoints[n]:this._anchorPoints},i}(g(608));M.exports=p},function(M,x,g){function f(b,w,P){return w in b?Object.defineProperty(b,w,{value:P,enumerable:!0,configurable:!0,writable:!0}):b[w]=P,b}g(715),g(714),g(713);var p=g(712),l=g(710),i=g(683),o=g(26),n=g(706),t=g(248),e=g(704),r=g(702),a=g(700),u=g(699),c=g(697),s=g(696),h=g(695),d=g(692),v=g(691),y=[s,r,a,e,h,d,g(690),v,u,c],m=function(b){(function(S,O){S.prototype=Object.create(O.prototype),S.prototype.constructor=S,S.__proto__=O})(P,b);var w=P.prototype;function P(S){var O,A={};return y.forEach(function(E){o.mix(A,o.clone(E.CFG),S)}),(O=b.call(this,A)||this)._pluginInit(),O.emit("beforeinit"),O._init(),O.emit("afterinit"),O}return w.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,plugins:[],fontFamily:'"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\u5FAE\u8F6F\u96C5\u9ED1", 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:{}}},w._init=function(){var S=this;this._initData(),this._initContainer(),this._initCanvas(),y.forEach(function(O){O.INIT&&S[O.INIT]()}),this.initEvent()},w.initEvent=function(){},w._executeLayout=function(S,O,A,E){o.isFunction(S)?S(O,A,this):o.isObject(S)&&(S.nodes=O,S.edges=A,S.groups=E,S.graph=this,S.execute())},w._pluginInit=function(){var S=this;this.get("plugins").forEach(function(O){S._initPlugin(O)})},w._initPlugin=function(S){S.graph=this,S.init&&S.init()},w._getTimer=function(S){return this.get("_timers")[S]},w._setTimer=function(S,O){this.get("_timers")[S]=O},w._getController=function(S){return this.get("_controllers")[S]},w._initContainer=function(){var S=this.get("container");S||(S=this.get("id")),S=o.initDOMContainer(S,"graph");var O=o.createDOM('
',{position:"relative"});S.appendChild(O),this.set("_containerDOM",S),this.set("_graphContainer",O)},w._initCanvas=function(){var S=this.get("_graphContainer"),O=this.get("width"),A=this.get("height"),E=this.get("fontFamily"),_=this.get("renderer"),C={width:O,height:A,fontFamily:E,renderer:_,eventEnable:!1,containerDOM:S};_==="svg"&&(C.pixelRatio=1);var k=new t.Canvas(C),T=k.get("el");T.style.top=0,T.style.left=0,T.style.overflow="hidden",this.set("_canvas",k);var I=this.getMouseEventWrapper();I.style.outline="none",I.style["user-select"]="none",I.setAttribute("tabindex",20);var R=k.addGroup(),F=R.addGroup();this.set("_itemGroup",F),this.set("_rootGroup",R)},w._initData=function(){this.set("_dataMap",{}),this.set("_itemMap",{_nodes:[],_edges:[],_groups:[],_guides:[]}),this.set("_data",{})},w._refresh=function(){},w.getKeyboardEventWrapper=function(){var S=this.get("keyboardEventWrapper");return S||this.getMouseEventWrapper()},w.getMouseEventWrapper=function(){return this.get("_canvas").get("el")},w.addPlugin=function(S){var O=this.get("plugins");this._initPlugin(S),O.push(S)},w.getGraphContainer=function(){return this.get("_graphContainer")},w._sortGroup=function(S){var O=this.get("_dataMap"),A={};S.forEach(function(E){var _=E.id,C=E.parent;for(A[_]=1;C&&O[C];)A[_]++,C=O[C].parent}),S.sort(function(E,_){return A[_.id]-A[E.id]})},w._addItems=function(S,O){var A=this;this._addDatas(S,O),S==="group"&&this._sortGroup(O);var E=o.upperFirst(S),_=l[E],C=this.get("_itemMap"),k=this.get("_itemGroup"),T=this.get("_dataMap"),I=this.get("animate"),R=this.get("defaultIntersectBox");if(!_)throw new Error("please set valid item type!");O.forEach(function(F){var j=new _({id:F.id,type:S,model:F,group:k.addGroup(),graph:A,mapper:A._getController(S+"Mapper"),itemMap:C,animate:I,dataMap:T,defaultIntersectBox:R});C[F.id]=j,C["_"+S+"s"].push(j)})},w._removeItems=function(S){var O=this.get("_dataMap"),A=this.get("_itemMap");S.forEach(function(E){delete O[E.id],delete A[E.id],o.Array.remove(A["_"+E.type+"s"],E),E.destroy()})},w._updateItems=function(S,O){S.forEach(function(A,E){var _=O[E];_&&o.mix(A.getModel(),_),A.update()})},w._getShowEdge=function(S){var O=S.getSource(),A=S.getTarget();return(O.linkable&&O.isVisible()||!O.linkable)&&(A.linkable&&A.isVisible()||!A.linkable)&&S},w._addDatas=function(S,O){var A=this.get("_dataMap");O.forEach(function(E){if(o.isNil(E.id)&&(E.id=o.guid()),A[E.id])throw new Error("id:"+E.id+" has already been set, please set new one");A[E.id]=E})},w._drawInner=function(){var S=this.get("_data"),O=this.get("_itemGroup"),A=this.get("_dataMap"),E=this.get("_itemMap");S.nodes&&this._addItems("node",S.nodes),S.groups&&this._addItems("group",S.groups),S.edges&&this._addItems("edge",S.edges),S.guides&&this._addItems("guide",S.guides),O.sortBy(function(_){var C=_.id,k=E[C],T=A[C];return T&&!o.isNil(T.index)?T.index:!k||k.destroyed||o.isNil(k.zIndex)?void 0:k.zIndex})},w._clearInner=function(){this.getItems().forEach(function(S){S&&S.destroy()})},w.preventAnimate=function(S){return this.set("_forcePreventAnimate",!0),S(),this.set("_forcePreventAnimate",!1),this},w.getShapeObj=function(S,O){if(!o.isObject(S)){var A=o.upperFirst(S),E=i[A],_=this.get(S+"DefaultShape");return E.getShape(O.shape,_)}return S.getShapeObj()},w.getSource=function(){return this.get("_sourceData")},w.parseSource=function(S){return S},w.getCanvas=function(){return this.get("_canvas")},w.getRootGroup=function(){return this.get("_rootGroup")},w.getItemGroup=function(){return this.get("_itemGroup")},w.source=function(S){return this.emit("beforesource"),this.set("_data",S),this.set("_sourceData",S),this.emit("aftersource"),this},w.render=function(){return this.emit("beforerender"),this.emit("beforedrawinner"),this._drawInner(),this.emit("afterdrawinner"),this.emit("afterrender"),this},w.reRender=function(){var S=this.get("_sourceData");return this.read(S),this},w.setCapture=function(S){this.get("_rootGroup").set("capture",S)},w.destroy=function(){this.emit("beforedestroy");var S=this.get("_canvas"),O=this.get("_graphContainer"),A=this.get("_controllers"),E=this.get("_timers"),_=this.get("_windowForceResizeEvent"),C=this.get("plugins");return o.each(E,function(k){clearTimeout(k)}),o.each(A,function(k){k.destroy()}),C.forEach(function(k){k.destroy&&k.destroy()}),S&&S.destroy(),O.destroy(),window.removeEventListener("resize",_),this.emit("afterdestroy"),b.prototype.destroy.call(this),this},w.save=function(){var S={nodes:[],edges:[],groups:[],guides:[]};return this.get("_itemGroup").get("children").forEach(function(O,A){var E=O.model;if(E){var _=O.itemType,C=o.clone(E);C.index=A,S[_+"s"].push(C)}}),S.nodes.length===0&&delete S.nodes,S.edges.length===0&&delete S.edges,S.groups.length===0&&delete S.groups,S.guides.length===0&&delete S.guides,S},w.add=function(S,O){var A=[],E={action:"add",model:O,affectedItemIds:A};this.emit("beforechange",E);var _=this.get("_itemMap");this._addItems(S,[O]);var C=_[O.id];return C.getAllParents().forEach(function(k){k.update()}),E.item=C,A.push(O.id),this.emit("afterchange",E),C},w.remove=function(S){if((S=this.getItem(S))&&!S.destroyed){var O=[],A=[],E={action:"remove",item:S,affectedItemIds:A};if(S.isNode){var _=S.getEdges();O=O.concat(_)}if(S.isGroup){var C=S.getEdges(),k=S.getAllChildren(),T=S.getCrossEdges(),I=S.getInnerEdges();O=O.concat(C,k,T,I),O=o.uniq(O)}O.push(S);var R=S.getAllParents();return R.forEach(function(F){A.push(F.id)}),O.forEach(function(F){A.push(F.id)}),this.emit("beforechange",E),this._removeItems(O),R.forEach(function(F){F.update()}),this.emit("afterchange",E),this}},w.simpleUpdate=function(S,O){return this._updateItems([S],[O]),this.draw(),this},w.update=function(S,O){var A=this.get("_itemMap");if((S=this.getItem(S))&&!S.destroyed&&O){var E=this.get("animate"),_=[],C=[],k=[],T=S.getModel(),I=o.mix({},T),R={action:"update",item:S,originModel:I,updateModel:O,affectedItemIds:k},F=A[I.parent];if(_.push(S),C.push(O),k.push(S.id),F&&F!==parent&&o.isGroup(F)&&S.getAllParents().forEach(function(B){_.push(B),C.push(null),k.push(B.id)}),O.parent){var j=A[O.parent];if(!j)throw new Error("there is no "+O.parent+" exist, please add a new one!");_.push(j),C.push(null),k.push(j.id),j.getAllParents().forEach(function(B){_.push(B),C.push(null),k.push(B.id)})}return(S.isNode||S.isGroup)&&S.getEdges().forEach(function(B){_.push(B),C.push(null),k.push(B.id)}),S.isGroup&&!o.isNil(O.collapsed)&&(E&&S.deepEach(function(B){k.push(B.id)}),S.getCrossEdges().forEach(function(B){_.push(B),C.push(null),k.push(B.id)})),this.emit("beforechange",R),this._updateItems(_,C),this.emit("afterchange",R),this}},w.read=function(S){var O=this;if(!S)throw new Error("please read valid data!");var A={action:"changeData",data:S};return this.emit("beforechange",A),this.preventAnimate(function(){O.clear(),O.source(S),O.render()}),this.emit("afterchange",A),this},w.clear=function(){return this.emit("beforeclear"),this._clearInner(),this._initData(),this.emit("afterclear"),this},w.hide=function(S){var O=[],A=[],E={item:S=this.getItem(S),affectedItemIds:A};return O.push(S),S.isNode&&S.getEdges().forEach(function(_){O.push(_)}),S.isGroup&&(S.getEdges().forEach(function(_){O.push(_)}),S.deepEach(function(_){O.push(_)})),(O=o.uniq(O)).forEach(function(_){A.push(_.id)}),this.emit("beforehide",E),O.forEach(function(_){_.hide()}),this.emit("afterhide",E),this},w.show=function(S){var O=this,A=[],E=[],_={item:S=this.getItem(S),affectedItemIds:E};if(S.visible=!0,S.isEdge){var C=this._getShowEdge(S);C&&A.push(C)}else A.push(S);return S.isNode&&S.getEdges().forEach(function(k){(k=O._getShowEdge(k))&&A.push(k)}),S.isGroup&&(S.getEdges().forEach(function(k){(k=O._getShowEdge(k))&&A.push(k)}),S.deepEach(function(k){A.push(k)})),(A=o.uniq(A)).forEach(function(k){E.push(k.id)}),this.emit("beforeshow",_),A.forEach(function(k){k.show()}),this.emit("aftershow",_),this},w.getWidth=function(){return this.get("width")},w.getHeight=function(){return this.get("height")},w.changeSize=function(S,O){if(!(Math.abs(S)>=1/0||Math.abs(O)>=1/0)){var A=this.get("_canvas");return S===this.get("width")&&O===this.get("height")||(this.emit("beforechangesize"),A.changeSize(S,O),this.set("width",S),this.set("height",O),this.emit("afterchangesize"),this.draw()),this}console.warn("size parameter more than the maximum")},w.toFront=function(S){S=this.getItem(S);var O=this.get("_itemGroup"),A=S.getGraphicGroup();o.toFront(A,O),this.draw()},w.toBack=function(S){S=this.getItem(S);var O=this.get("_itemGroup"),A=S.getGraphicGroup();o.toBack(A,O),this.draw()},w.css=function(S){var O=this.getGraphContainer();o.modifyCSS(O,S)},w.saveImage=function(S){var O=this.getBBox(),A=this.getFitViewPadding();return new n(function(E){for(var _=1;_1?t*n+this._getSpaceingY()*(n-1):t},isHitBox:function(){return!1},calculateBox:function(){var o=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),o.textArr||this._setAttrText();var t=o.x,e=o.y,r=this.measureText();if(!r)return{minX:t,minY:e,maxX:t,maxY:e};var a=this._getTextHeight(),u=o.textAlign,c=o.textBaseline,s=this.getHitLineWidth(),h={x:t,y:e-a};u&&(u==="end"||u==="right"?h.x-=r:u==="center"&&(h.x-=r/2)),c&&(c==="top"?h.y+=a:c==="middle"&&(h.y+=a/2)),this.set("startPoint",h);var d=s/2;return{minX:h.x-d,minY:h.y-d,maxX:h.x+r+d,maxY:h.y+a+d}},_getSpaceingY:function(){var o=this._attrs,n=o.lineHeight,t=1*o.fontSize;return n?n-t:.14*t},drawInner:function(o){var n=this._attrs,t=this._cfg;t.attrs&&!t.hasUpdate||(this._assembleFont(),this._setAttrText()),o.font=n.font;var e=n.text;if(e){var r=n.textArr,a=n.x,u=n.y;if(o.beginPath(),this.hasStroke()){var c=n.strokeOpacity;f.isNil(c)||c===1||(o.globalAlpha=c),r?this._drawTextArr(o,!1):o.strokeText(e,a,u),o.globalAlpha=1}if(this.hasFill()){var s=n.fillOpacity;f.isNil(s)||s===1||(o.globalAlpha=s),r?this._drawTextArr(o,!0):o.fillText(e,a,u)}t.hasUpdate=!1}},_drawTextArr:function(o,n){var t,e=this._attrs.textArr,r=this._attrs.textBaseline,a=1*this._attrs.fontSize,u=this._getSpaceingY(),c=this._attrs.x,s=this._attrs.y,h=this.getBBox(),d=h.maxY-h.minY;f.each(e,function(v,y){t=s+y*(u+a)-d+a,r==="middle"&&(t+=d-a-(d-a)/2),r==="top"&&(t+=d-a),n?o.fillText(v,c,t):o.strokeText(v,c,t)})},measureText:function(){var o,n=this._attrs,t=n.text,e=n.font,r=n.textArr,a=0;if(!f.isNil(t)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=e,r?f.each(r,function(c){o=u.measureText(c).width,ac&&(c=v),ys&&(s=y)});var h=e/2;return{minX:a-h,minY:u-h,maxX:c+h,maxY:s+h}},_setTcache:function(){var t,e,r=this._attrs.points,a=0,u=0,c=[];r&&r.length!==0&&(f.each(r,function(s,h){r[h+1]&&(a+=i.len(s[0],s[1],r[h+1][0],r[h+1][1]))}),a<=0||(f.each(r,function(s,h){r[h+1]&&((t=[])[0]=u/a,e=i.len(s[0],s[1],r[h+1][0],r[h+1][1]),u+=e,t[1]=u/a,c.push(t))}),this.tCache=c))},createPath:function(t){var e,r,a=this._attrs.points;if(!(a.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(a[0][0],a[0][1]),r=1,e=a.length-1;r=c[0]&&t<=c[1]&&(e=(t-c[0])/(c[1]-c[0]),r=s)}),{x:i.at(a[r][0],a[r+1][0],e),y:i.at(a[r][1],a[r+1][1],e)}}}),M.exports=o},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};l.ATTRS={points:null,lineWidth:1},f.extend(l,p),f.augment(l,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs.points,n=this.getHitLineWidth();if(!o||o.length===0)return null;var t=1/0,e=1/0,r=-1/0,a=-1/0;f.each(o,function(c){var s=c[0],h=c[1];sr&&(r=s),ha&&(a=h)});var u=n/2;return{minX:t-u,minY:e-u,maxX:r+u,maxY:a+u}},createPath:function(o){var n=this._attrs.points;n.length<2||((o=o||this.get("context")).beginPath(),f.each(n,function(t,e){e===0?o.moveTo(t[0],t[1]):o.lineTo(t[0],t[1])}),o.closePath())}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=g(600),i=g(593),o=g(601),n=g(610),t=g(612),e=function r(a){r.superclass.constructor.call(this,a)};e.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},f.extend(e,p),f.augment(e,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(a){if(f.isNil(a))return this.setSilent("segments",null),void this.setSilent("box",void 0);var u,c=i.parsePath(a),s=[];if(f.isArray(c)&&c.length!==0&&(c[0][0]==="M"||c[0][0]==="m")){for(var h=c.length,d=0;ds&&(s=y.maxX),y.minYd&&(d=y.maxY))}),c===1/0||h===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:c,minY:h,maxX:s,maxY:d}},_setTcache:function(){var a,u,c,s,h=0,d=0,v=[],y=this._cfg.curve;y&&(f.each(y,function(m,b){c=y[b+1],s=m.length,c&&(h+=t.len(m[s-2],m[s-1],c[1],c[2],c[3],c[4],c[5],c[6]))}),f.each(y,function(m,b){c=y[b+1],s=m.length,c&&((a=[])[0]=d/h,u=t.len(m[s-2],m[s-1],c[1],c[2],c[3],c[4],c[5],c[6]),d+=u,a[1]=d/h,v.push(a))}),this._cfg.tCache=v)},_calculateCurve:function(){var a=this._attrs.path;this._cfg.curve=n.pathTocurve(a)},getStartTangent:function(){var a,u,c,s,h=this.get("segments");if(h.length>1)if(a=h[0].endPoint,u=h[1].endPoint,c=h[1].startTangent,s=[],f.isFunction(c)){var d=c();s.push([a.x-d[0],a.y-d[1]]),s.push([a.x,a.y])}else s.push([u.x,u.y]),s.push([a.x,a.y]);return s},getEndTangent:function(){var a,u,c,s,h=this.get("segments"),d=h.length;if(d>1)if(a=h[d-2].endPoint,u=h[d-1].endPoint,c=h[d-1].endTangent,s=[],f.isFunction(c)){var v=c();s.push([u.x-v[0],u.y-v[1]]),s.push([u.x,u.y])}else s.push([a.x,a.y]),s.push([u.x,u.y]);return s},getPoint:function(a){var u,c,s=this._cfg.tCache;s||(this._calculateCurve(),this._setTcache(),s=this._cfg.tCache);var h=this._cfg.curve;if(!s)return h?{x:h[0][1],y:h[0][2]}:null;f.each(s,function(m,b){a>=m[0]&&a<=m[1]&&(u=(a-m[0])/(m[1]-m[0]),c=b)});var d=h[c];if(f.isNil(d)||f.isNil(c))return null;var v=d.length,y=h[c+1];return{x:t.at(d[v-2],y[1],y[3],y[5],1-u),y:t.at(d[v-1],y[2],y[4],y[6],1-u)}},createPath:function(a){var u=this.get("segments");if(f.isArray(u)){(a=a||this.get("context")).beginPath();for(var c=u.length,s=0;sa?r:a,c=r>a?1:r/a,s=r>a?a/r:1,h=[1,0,0,0,1,0,0,0,1];f.mat3.scale(h,h,[c,s]),f.mat3.translate(h,h,[t,e]),o.beginPath(),o.save(),o.transform(h[0],h[1],h[3],h[4],h[6],h[7]),o.arc(0,0,u,0,2*Math.PI),o.restore(),o.closePath()}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};f.extend(l,p),f.augment(l,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.width,r=o.height,a=this.getHitLineWidth()/2;return{minX:n-a,minY:t-a,maxX:n+e+a,maxY:t+r+a}}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=function i(o){i.superclass.constructor.call(this,o)};l.ATTRS={x:0,y:0,r:0,lineWidth:1},f.extend(l,p),f.augment(l,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var o=this._attrs,n=o.x,t=o.y,e=o.r,r=this.getHitLineWidth()/2+e;return{minX:n-r,minY:t-r,maxX:n+r,maxY:t+r}},createPath:function(o){var n=this._attrs,t=n.x,e=n.y,r=n.r;o.beginPath(),o.arc(t,e,r,0,2*Math.PI,!1),o.closePath()}}),M.exports=l},function(M,x,g){var f=g(19),p=g(58),l=g(602),i=g(601);function o(e,r,a){return e+r*Math.cos(a)}function n(e,r,a){return e+r*Math.sin(a)}var t=function e(r){e.superclass.constructor.call(this,r)};t.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},f.extend(t,p),f.augment(t,{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 r=this._attrs,a=r.x,u=r.y,c=r.r,s=r.startAngle,h=r.endAngle,d=r.clockwise,v=this.getHitLineWidth()/2,y=l.box(a,u,c,s,h,d);return y.minX-=v,y.minY-=v,y.maxX+=v,y.maxY+=v,y},getStartTangent:function(){var r=this._attrs,a=r.x,u=r.y,c=r.startAngle,s=r.r,h=r.clockwise,d=Math.PI/180;h&&(d*=-1);var v=[],y=o(a,s,c+d),m=n(u,s,c+d),b=o(a,s,c),w=n(u,s,c);return v.push([y,m]),v.push([b,w]),v},getEndTangent:function(){var r=this._attrs,a=r.x,u=r.y,c=r.endAngle,s=r.r,h=r.clockwise,d=Math.PI/180,v=[];h&&(d*=-1);var y=o(a,s,c+d),m=n(u,s,c+d),b=o(a,s,c),w=n(u,s,c);return v.push([b,w]),v.push([y,m]),v},createPath:function(r){var a=this._attrs,u=a.x,c=a.y,s=a.r,h=a.startAngle,d=a.endAngle,v=a.clockwise;(r=r||self.get("context")).beginPath(),r.arc(u,c,s,h,d,v)},afterPath:function(r){var a=this._attrs;if(r=r||this.get("context"),a.startArrow){var u=this.getStartTangent();i.addStartArrow(r,a,u[0][0],u[0][1],u[1][0],u[1][1])}if(a.endArrow){var c=this.getEndTangent();i.addEndArrow(r,a,c[0][0],c[0][1],c[1][0],c[1][1])}}}),M.exports=t},function(M,x){M.exports={xAt:function(f,p,l,i,o){return p*Math.cos(f)*Math.cos(o)-l*Math.sin(f)*Math.sin(o)+i},yAt:function(f,p,l,i,o){return p*Math.sin(f)*Math.cos(o)+l*Math.cos(f)*Math.sin(o)+i},xExtrema:function(f,p,l){return Math.atan(-l/p*Math.tan(f))},yExtrema:function(f,p,l){return Math.atan(l/(p*Math.tan(f)))}}},function(M,x,g){var f=g(19),p=f.vec2;function l(o,n,t,e){var r=1-e;return r*(r*o+2*e*n)+e*e*t}function i(o,n,t,e,r,a,u,c,s){var h,d,v,y,m,b,w,P=.005,S=1/0,O=[u,c];for(m=0;m<1;m+=.05)v=[l(o,t,r,m),l(n,e,a,m)],(d=p.squaredDistance(O,v))=0&&d=0?[a]:[]}}},function(M,x,g){var f=g(19),p=g(746),l=g(745),i=g(744),o=g(116),n=function(e){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},f.assign(this._cfg,this.getDefaultCfg(),e),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};n.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},f.augment(n,p,l,o,i,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(e,r){return e==="zIndex"&&this._beforeSetZIndex&&this._beforeSetZIndex(r),e==="loading"&&this._beforeSetLoading&&this._beforeSetLoading(r),this._cfg[e]=r,this},setSilent:function(e,r){this._cfg[e]=r},get:function(e){return this._cfg[e]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(e,r){var a=this._cfg,u=a.parent,c=a.el;return u&&f.remove(u.get("children"),this),c&&(r?u&&u._cfg.tobeRemoved.push(c):c.parentNode.removeChild(c)),(e||e===void 0)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var e=this._cfg,r=e.parent;if(r){var a=r._cfg.children,u=e.el,c=a.indexOf(this);a.splice(c,1),a.push(this),u&&(u.parentNode.removeChild(u),e.el=null)}},toBack:function(){var e=this._cfg,r=e.parent;if(r){var a=r._cfg.children,u=e.el,c=a.indexOf(this);if(a.splice(c,1),a.unshift(this),u){var s=u.parentNode;s.removeChild(u),s.insertBefore(u,s.firstChild)}}},_beforeSetZIndex:function(e){var r=this._cfg.parent;this._cfg.zIndex=e,f.isNil(r)||r.sort();var a=this._cfg.el;if(a){var u=r._cfg.children,c=u.indexOf(this),s=a.parentNode;s.removeChild(a),c===u.length-1?s.appendChild(a):s.insertBefore(a,s.childNodes[c])}return e},_setAttrs:function(e){return this.attr(e),e},setZIndex:function(e){return this._cfg.zIndex=e,this._beforeSetZIndex(e)},clone:function(){return f.clone(this)},getBBox:function(){}}),M.exports=n},function(M,x,g){var f=g(19),p=g(641),l=g(743),i={},o="_INDEX";function n(e,r,a){for(var u,c=e.length-1;c>=0;c--){var s=e[c];if(s._cfg.visible&&s._cfg.capture&&(s.isGroup?u=s.getShape(r,a):s.isHit(r,a)&&(u=s)),u)break}return u}var t=function e(r){e.superclass.constructor.call(this,r),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};f.extend(t,p),f.augment(t,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return function r(a){if(!a._cfg&&a!==t){var u=a.superclass.constructor;u&&!u._cfg&&r(u),a._cfg={},f.merge(a._cfg,u._cfg),f.merge(a._cfg,a.CFG)}}(this.constructor),f.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(r,a){var u=this.get("canvas");a=a||{};var c=i[r];if(c||(c=f.upperFirst(r),i[r]=c),a.attrs&&u){var s=a.attrs;if(r==="text"){var h=u.get("fontFamily");h&&(s.fontFamily=s.fontFamily?s.fontFamily:h)}}a.canvas=u,a.type=r;var d=new l[c](a);return this.add(d),d},addGroup:function(r,a){var u,c=this.get("canvas");if(a=f.merge({},a),f.isFunction(r))a?(a.canvas=c,a.parent=this,u=new r(a)):u=new r({canvas:c,parent:this}),this.add(u);else if(f.isObject(r))r.canvas=c,u=new t(r),this.add(u);else{if(r!==void 0)return!1;u=new t,this.add(u)}return u},renderBack:function(r,a){var u=this.get("backShape"),c=this.getBBox();return f.merge(a,{x:c.minX-r[3],y:c.minY-r[0],width:c.width+r[1]+r[3],height:c.height+r[0]+r[2]}),u?u.attr(a):u=this.addShape("rect",{zIndex:-1,attrs:a}),this.set("backShape",u),this.sort(),u},removeChild:function(r,a){if(arguments.length>=2)this.contain(r)&&r.remove(a);else{if(arguments.length===1){if(!f.isBoolean(r))return this.contain(r)&&r.remove(!0),this;a=r}arguments.length===0&&(a=!0),t.superclass.remove.call(this,a)}return this},add:function(r){var a=this,u=a.get("children");if(f.isArray(r))f.each(r,function(h){var d=h.get("parent");d&&d.removeChild(h,!1),a._setCfgProperty(h)}),a._cfg.children=u.concat(r);else{var c=r,s=c.get("parent");s&&s.removeChild(c,!1),a._setCfgProperty(c),u.push(c)}return a},_setCfgProperty:function(r){var a=this._cfg;r.set("parent",this),r.set("canvas",a.canvas),a.timeline&&r.set("timeline",a.timeline)},contain:function(r){return this.get("children").indexOf(r)>-1},getChildByIndex:function(r){return this.get("children")[r]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var r=this.get("children").length-1;return this.getChildByIndex(r)},getBBox:function(){var r=1/0,a=-1/0,u=1/0,c=-1/0,s=this.get("children");s.length>0?f.each(s,function(d){if(d.get("visible")){if(d.isGroup&&d.get("children").length===0)return;var v=d.getBBox();if(!v)return!0;var y=[v.minX,v.minY,1],m=[v.minX,v.maxY,1],b=[v.maxX,v.minY,1],w=[v.maxX,v.maxY,1];d.apply(y),d.apply(m),d.apply(b),d.apply(w);var P=Math.min(y[0],m[0],b[0],w[0]),S=Math.max(y[0],m[0],b[0],w[0]),O=Math.min(y[1],m[1],b[1],w[1]),A=Math.max(y[1],m[1],b[1],w[1]);Pa&&(a=S),Oc&&(c=A)}}):(r=0,a=0,u=0,c=0);var h={minX:r,minY:u,maxX:a,maxY:c};return h.x=h.minX,h.y=h.minY,h.width=h.maxX-h.minX,h.height=h.maxY-h.minY,h},getCount:function(){return this.get("children").length},sort:function(){var r=this.get("children");return f.each(r,function(a,u){return a[o]=u,a}),r.sort(function(a){return function(u,c){var s=a(u,c);return s===0?u[o]-c[o]:s}}(function(a,u){return a.get("zIndex")-u.get("zIndex")})),this},findById:function(r){return this.find(function(a){return a.get("id")===r})},find:function(r){if(f.isString(r))return this.findById(r);var a=this.get("children"),u=null;return f.each(a,function(c){if(r(c)?u=c:c.find&&(u=c.find(r)),u)return!1}),u},findAll:function(r){var a=this.get("children"),u=[],c=[];return f.each(a,function(s){r(s)&&u.push(s),s.findAllBy&&(c=s.findAllBy(r),u=u.concat(c))}),u},findBy:function(r){var a=this.get("children"),u=null;return f.each(a,function(c){if(r(c)?u=c:c.findBy&&(u=c.findBy(r)),u)return!1}),u},findAllBy:function(r){var a=this.get("children"),u=[],c=[];return f.each(a,function(s){r(s)&&u.push(s),s.findAllBy&&(c=s.findAllBy(r),u=u.concat(c))}),u},getShape:function(r,a){var u,c=this._attrs.clip,s=this._cfg.children;if(c){var h=[r,a,1];c.invert(h,this.get("canvas")),c.isPointInPath(h[0],h[1])&&(u=n(s,r,a))}else u=n(s,r,a);return u},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var r=this._cfg.children,a=0;a=0;u--)a[u].remove(!0,r);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),t.superclass.destroy.call(this))},clone:function(){var r=this._cfg.children,a=new t;return f.each(r,function(u){a.add(u.clone())}),a}}),M.exports=t},function(M,x,g){var f=g(19),p=function(i,o,n,t){this.type=i,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=t,this.timeStamp=new Date().getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=o};f.augment(p,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return f.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),M.exports=p},function(M,x,g){M.exports={isFunction:g(84),isObject:g(621),isBoolean:g(653),isNil:g(237),isString:g(595),isArray:g(45),isNumber:g(236),isEmpty:g(647),uniqueId:g(646),clone:g(616),deepMix:g(615),assign:g(606),merge:g(615),upperFirst:g(655),each:g(46),isEqual:g(614),toArray:g(604),extend:g(650),augment:g(651),remove:g(676),isNumberEqual:g(673),toRadian:g(669),toDegree:g(671),mod:g(672),clamp:g(618),createDom:g(681),modifyCSS:g(680),requestAnimationFrame:g(679),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:g(617),vec2:g(668),vec3:g(667),transform:g(666)}},function(M,x,g){var f=g(16),p=g(253),l=g(251),i="Expected a function",o=Math.max,n=Math.min;M.exports=function(t,e,r){var a,u,c,s,h,d,v=0,y=!1,m=!1,b=!0;if(typeof t!="function")throw new TypeError(i);function w(E){var _=a,C=u;return a=u=void 0,v=E,s=t.apply(C,_)}function P(E){var _=E-d;return d===void 0||_>=e||_<0||m&&E-v>=c}function S(){var E=p();if(P(E))return O(E);h=setTimeout(S,function(_){var C=e-(_-d);return m?n(C,c-(_-v)):C}(E))}function O(E){return h=void 0,b&&a?w(E):(a=u=void 0,s)}function A(){var E=p(),_=P(E);if(a=arguments,u=this,d=E,_){if(h===void 0)return function(C){return v=C,h=setTimeout(S,e),y?w(C):s}(d);if(m)return h=setTimeout(S,e),w(d)}return h===void 0&&(h=setTimeout(S,e)),s}return e=l(e)||0,f(r)&&(y=!!r.leading,c=(m="maxWait"in r)?o(l(r.maxWait)||0,e):c,b="trailing"in r?!!r.trailing:b),A.cancel=function(){h!==void 0&&clearTimeout(h),v=0,a=d=u=h=void 0},A.flush=function(){return h===void 0?s:O(p())},A}},function(M,x){var g=function(){var f={};return function(p){return f[p=p||"g"]?f[p]+=1:f[p]=1,p+f[p]}}();M.exports=g},function(M,x,g){var f=g(237),p=g(118),l=g(654),i=g(652),o=Object.prototype.hasOwnProperty;M.exports=function(n){if(f(n))return!0;if(p(n))return!n.length;var t=l(n);if(t==="Map"||t==="Set")return!n.size;if(i(n))return!Object.keys(n).length;for(var e in n)if(o.call(n,e))return!1;return!0}},function(M,x,g){var f=g(46),p=g(45),l=Object.prototype.hasOwnProperty;M.exports=function(i,o){if(!o||!p(i))return i;var n={},t=null;return f(i,function(e){t=o(e),l.call(n,t)?n[t].push(e):n[t]=[e]}),n}},function(M,x,g){var f=g(84),p=g(45),l=g(648);M.exports=function(i,o){if(!o)return{0:i};if(!f(o)){var n=p(o)?o:o.replace(/\s+/g,"").split("*");o=function(e){for(var r="_",a=0,u=n.length;al;l+=2){var o=[{x:+g[l-2],y:+g[l-1]},{x:+g[l],y:+g[l+1]},{x:+g[l+2],y:+g[l+3]},{x:+g[l+4],y:+g[l+5]}];f?l?i-4===l?o[3]={x:+g[0],y:+g[1]}:i-2===l&&(o[2]={x:+g[0],y:+g[1]},o[3]={x:+g[2],y:+g[3]}):o[0]={x:+g[i-2],y:+g[i-1]}:i-4===l?o[3]=o[2]:l||(o[0]={x:+g[l],y:+g[l+1]}),p.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 p}},function(M,x){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},f=` \v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,p=new RegExp("([a-z])["+f+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+f+"]*,?["+f+"]*)+)","ig"),l=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+f+"]*,?["+f+"]*","ig");M.exports=function(i){if(!i)return null;if((i===void 0?"undefined":g(i))===g([]))return i;var o={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(i).replace(p,function(t,e,r){var a=[],u=e.toLowerCase();if(r.replace(l,function(c,s){s&&a.push(+s)}),u==="m"&&a.length>2&&(n.push([e].concat(a.splice(0,2))),u="l",e=e==="m"?"l":"L"),u==="o"&&a.length===1&&n.push([e,a[0]]),u==="r")n.push([e].concat(a));else for(;a.length>=o[u]&&(n.push([e].concat(a.splice(0,o[u]))),o[u]););}),n}},function(M,x,g){var f=g(659),p=g(658);function l(i,o,n,t,e){var r=[];if(e===null&&t===null&&(t=n),i=+i,o=+o,n=+n,t=+t,e!==null){var a=Math.PI/180,u=i+n*Math.cos(-t*a),c=i+n*Math.cos(-e*a);r=[["M",u,o+n*Math.sin(-t*a)],["A",n,n,0,+(e-t>180),0,c,o+n*Math.sin(-e*a)]]}else r=[["M",i,o],["m",0,-t],["a",n,t,0,1,1,0,2*t],["a",n,t,0,1,1,0,-2*t],["z"]];return r}M.exports=function(i){if(!(i=f(i))||!i.length)return[["M",0,0]];var o=[],n=0,t=0,e=0,r=0,a=0,u=void 0,c=void 0;i[0][0]==="M"&&(e=n=+i[0][1],r=t=+i[0][2],a++,o[0]=["M",n,t]);for(var s,h,d=i.length===3&&i[0][0]==="M"&&i[1][0].toUpperCase()==="R"&&i[2][0].toUpperCase()==="Z",v=a,y=i.length;v1&&(F*=X=Math.sqrt(X),j*=X);var q=F*F,ut=j*j,rt=(H===et?-1:1)*Math.sqrt(Math.abs((q*ut-q*U*U-ut*G*G)/(q*U*U+ut*G*G)));Y=rt*F*U/j+(I+Q)/2,L=rt*-j*G/F+(R+J)/2,$=Math.asin(((R-L)/j).toFixed(9)),ot=Math.asin(((J-L)/j).toFixed(9)),$=Iot&&($-=2*Math.PI),!et&&ot>$&&(ot-=2*Math.PI)}var at=ot-$;if(Math.abs(at)>nt){var pt=ot,gt=Q,z=J;ot=$+nt*(et&&ot>$?1:-1),V=T(Q=Y+F*Math.cos(ot),J=L+j*Math.sin(ot),F,j,B,0,et,gt,z,[ot,pt,Y,L])}at=ot-$;var Z=Math.cos($),lt=Math.sin($),it=Math.cos(ot),dt=Math.sin(ot),yt=Math.tan(at/4),wt=4/3*F*yt,Mt=4/3*j*yt,At=[I,R],xt=[I+wt*lt,R-Mt*Z],St=[Q+wt*dt,J-Mt*it],Et=[Q,J];if(xt[0]=2*At[0]-xt[0],xt[1]=2*At[1]-xt[1],K)return[xt,St,Et].concat(V);for(var Pt=[],Ot=0,Dt=(V=[xt,St,Et].concat(V).join().split(",")).length;Ot7){A[E].shift();for(var _=A[E];_.length;)a[E]="A",t&&(u[E]="A"),A.splice(E++,0,["C"].concat(_.splice(0,6)));A.splice(E,1),h=Math.max(n.length,t&&t.length||0)}},y=function(A,E,_,C,k){A&&E&&A[k][0]==="M"&&E[k][0]!=="M"&&(E.splice(k,0,["M",C.x,C.y]),_.bx=0,_.by=0,_.x=A[k][1],_.y=A[k][2],h=Math.max(n.length,t&&t.length||0))};h=Math.max(n.length,t&&t.length||0);for(var m=0;m=0;return o?t?2*Math.PI-n:n:t?n:2*Math.PI-n},f.vertical=function(l,i,o){return o?(l[0]=i[1],l[1]=-1*i[0]):(l[0]=-1*i[1],l[1]=i[0]),l},M.exports=f},function(M,x){var g=Math.PI/180;M.exports=function(f){return g*f}},function(M,x){M.exports=parseInt},function(M,x){var g=180/Math.PI;M.exports=function(f){return g*f}},function(M,x){M.exports=function(g,f){return(g%f+f)%f}},function(M,x){M.exports=function(g,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e-5;return Math.abs(g-f)-1;)f.call(i,e,1);return i}},function(M,x,g){var f=g(46),p=g(84),l=Object.keys?function(i){return Object.keys(i)}:function(i){var o=[];return f(i,function(n,t){p(i)&&t==="prototype"||o.push(t)}),o};M.exports=l},function(M,x,g){var f=g(677),p=g(237);M.exports=function(l,i){var o=f(i),n=o.length;if(p(l))return!n;for(var t=0;t]*>/,l={tr:document.createElement("tbody"),tbody:g,thead:g,tfoot:g,td:f,th:f,"*":document.createElement("div")};M.exports=function(i){var o=p.test(i)&&RegExp.$1;o in l||(o="*");var n=l[o];i=i.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+i;var t=n.childNodes[0];return n.removeChild(t),t}},function(M,x,g){var f=g(257),p={isBetween:function(i,o,n){return i>=o&&i<=n},getLineIntersect:function(i,o,n,t){var e=n.x-i.x,r=n.y-i.y,a=o.x-i.x,u=o.y-i.y,c=t.x-n.x,s=t.y-n.y,h=a*s-u*c,d=null;if(h*h>.001*(a*a+u*u)*(c*c+s*s)){var v=(e*s-r*c)/h,y=(e*u-r*a)/h;p.isBetween(v,0,1)&&p.isBetween(y,0,1)&&(d={x:i.x+v*a,y:i.y+v*u})}return d},getIntersectPointRect:function(i,o){var n=i.minX,t=i.minY,e=i.maxX-i.minX,r=i.maxY-i.minY,a=[],u={x:n+e/2,y:t+r/2};a.push({x:n,y:t}),a.push({x:n+e,y:t}),a.push({x:n+e,y:t+r}),a.push({x:n,y:t+r}),a.push({x:n,y:t});for(var c=null,s=1;sv&&(v=t);for(e=0;e0?(n=n.filter(function(t){var e=o[t.id];return!!e&&e.getShapeObj().bboxCalculation!==!1}),f.getChildrenBBox(n)):{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("height")}},getFitViewPadding:function(){return f.toAllPadding(this.get("fitViewPadding"))},setFitView:function(i){if(!i)return this;if(i==="autoZoom")return this.autoZoom(),this;var o=this.getFitViewPadding(),n=this.get("width"),t=this.get("height"),e=this.getBBox(),r=e.maxX-e.minX,a=e.maxY-e.minY,u={x:0,y:0,width:n,height:t},c=f.getNineBoxPosition(i,u,r,a,o),s=[1,0,0,0,1,0,0,0,1];f.mat3.translate(s,s,[-e.minX+c.x,-e.minY+c.y]),this.updateMatrix(s)},_getZoomRatio:function(i){var o=this.get("maxZoom"),n=this.get("minZoom");return io&&(i=o),i},autoZoom:function(i){var o=this;i||(i=this.getFitViewPadding());var n=this.get("width"),t=this.get("height"),e=this.getBBox(),r=f.getAutoZoomMatrix({minX:0,minY:0,maxX:n,maxY:t},e,i,function(a){return o._getZoomRatio(a)});this.updateMatrix(r)},getZoom:function(){return this.getMatrix()[0]},updateMatrix:function(i){var o=this.getMatrix(),n={updateMatrix:i,originMatrix:o},t=o[0]!==i[0];return this.emit("beforeviewportchange",n),t&&this.emit("beforezoom",n),this.setMatrix(i),t&&this.emit("afterzoom",n),this.emit("afterviewportchange",n),this.draw(),this},zoom:function(i,o){if(!f.isNumber(i)){o=this._getZoomRatio(o);var n=this.get("_rootGroup"),t=f.clone(n.getMatrix()),e=t[6]+t[0]*i.x-o*i.x,r=t[7]+t[0]*i.y-o*i.y;return t[6]=0,t[7]=0,t[0]=o,t[4]=o,f.mat3.translate(t,t,[e,r]),this.updateMatrix(t),this}var a=this.get("width"),u=this.get("height");this.zoomByDom({x:a/2,y:u/2},i)},zoomByDom:function(i,o){var n=this.getPoint(i);return this.zoom(n,o),this},translate:function(i,o){var n=this.get("_rootGroup").getMatrix();return f.mat3.translate(n,n,[i,o]),this.updateMatrix(n),this},translateByDom:function(i,o){var n=this.get("_rootGroup").getMatrix()[0];return this.translate(i/n,o/n),this},getMatrix:function(){return this.get("_rootGroup").getMatrix()},setMatrix:function(i){this.get("_rootGroup").setMatrix(i)},getPoint:function(i){return this.getPointByDom(i)},getPointByDom:function(i){var o=this.get("_rootGroup").getMatrix();return f.invertMatrix(i,o)},getPointByCanvas:function(i){var o=this.get("_canvas").get("pixelRatio");return this.getPoint({x:i.x/o,y:i.y/o})},getPointByClient:function(i){var o=this.get("_canvas").getPointByClient(i.x,i.y);return this.getPointByCanvas(o)},getDomPoint:function(i){var o=this.get("_rootGroup").getMatrix();return f.applyMatrix(i,o)},getCanvasPoint:function(i){var o=this.get("_canvas").get("pixelRatio"),n=this.getDomPoint(i);return{x:n.x*o,y:n.y*o}},getClientPoint:function(i){var o=this.getCanvasPoint(i),n=this.get("_canvas").getClientByPoint(o.x,o.y);return{x:n.clientX,y:n.clientY}},focus:function(i){if(f.isString(i)&&(i=this.find(i)),i){var o=i.getCenter();this.focusPoint(o)}return this},focusPoint:function(i){var o=this.get("_rootGroup").getMatrix(),n=this.get("width"),t=this.get("height"),e=-o[6]+n/2-o[0]*i.x,r=-o[7]+t/2-o[0]*i.y;return this.translate(e,r),this},focusPointByDom:function(i){var o=this.getPoint(i);return this.focusPoint(o),this}},M.exports=p},function(M,x){var g={INIT:"_initDraw",AUGMENT:{_initDraw:function(){var p=this,l=this.get("_controllers").animate;["clear","show","hide","change","updatenodeposition"].forEach(function(i){l&&p.on("before"+i,function(o){var n=p.get("_forcePreventAnimate"),t=o?o.affectedItemIds:void 0;n!==!0&&l&&l.cacheGraph("startCache",t)}),p.on("after"+i,function(o){var n=o?o.affectedItemIds:void 0,t=p.get("_forcePreventAnimate");if(o&&o.action==="changeData"){var e=p.get("fitView");e&&p.setFitView(e)}t!==!0&&l?(l.cacheGraph("endCache",n),l.run()):p.draw()})})},draw:function(){this.get("_canvas").draw()},animateDraw:function(){this.get("_controllers").animate.run()}}};M.exports=g},function(M,x,g){var f=g(247);function p(n,t){var e=n.getGraphicGroup(),r=n.getBBox(),a=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2,c=e.getMatrix()[0];e.transform([["t",-a,-u],["s",.01/c,.01/c],["t",a,u]]),e.animate({transform:[["t",-a,-u],["s",100*c,100*c],["t",a,u]]},f.enterDuration,f.enterEasing,t)}function l(n,t){var e=n.getGraphicGroup(),r=n.getBBox(),a=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2,c=e.getMatrix()[0];e.animate({transform:[["t",-a,-u],["s",.01/c,.01/c],["t",a,u]]},f.leaveDuration,f.leaveEasing,t)}function i(n,t){n.deepEach(function(e){if(e.isShape){var r=e.attr("fillOpacity"),a=e.attr("strokeOpacity");e.attr({fillOpacity:0,strokeOpacity:0}),e.animate({fillOpacity:r,strokeOpacity:a},f.enterDuration,f.enterEasing,t)}})}function o(n,t){n.deepEach(function(e){var r=e.attr("fillOpacity"),a=e.attr("strokeOpacity");e.isShape&&e.animate({fillOpacity:0,strokeOpacity:0},f.leaveDuration,f.leaveEasing,function(){e.attr({fillOpacity:r,strokeOpacity:a}),t()})})}M.exports={enterScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&p(e)},showScaleIn:function(t){var e=t.item;t.element.isItemContainer&&e.getKeyShape()&&p(e)},leaveScaleOut:function(t){var e=t.item,r=t.element,a=t.done;r.isItemContainer&&l(e,function(){a()})},hideScaleOut:function(t){var e=t.item,r=t.element,a=t.done;r.isItemContainer&&l(e,function(){a()})},enterFadeIn:function(t){var e=t.element,r=t.item;e.isItemContainer&&r.getKeyShape()&&i(e)},showFadeIn:function(t){var e=t.element,r=t.item;e.isItemContainer&&r.getKeyShape()&&i(e)},leaveFadeOut:function(t){var e=t.element,r=t.item,a=t.done;e.isItemContainer&&r.getKeyShape()&&o(e,a)},hideFadeOut:function(t){var e=t.element,r=t.item,a=t.done;e.isItemContainer&&r.getKeyShape()&&o(e,a)}}},function(M,x,g){function f(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var p=g(599),l=g(693),i=g(26),o=g(247),n=["matrix","fillStyle","strokeStyle","endArrow","startArrow"],t=function(e){function r(){return e.apply(this,arguments)||this}(function(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c})(r,e);var a=r.prototype;return a.getDefaultCfg=function(){return{show:"scaleIn",hide:"scaleOut",enter:"scaleIn",leave:"scaleOut",update:function(c){var s=c.element,h=c.endKeyFrame.props;s.animate(function(d){for(var v=1;v0&&t==="changeData"&&!i.destroyed&&i.filter()})},addFilter:function(i){return this.get("filters").push(i),i},removeFilter:function(i){var o=this.get("filters");this.set("filters",f.filter(o,i))},filter:function(){this.emit("beforefilter");var i=this.get("filters"),o=this.getItems(),n=this._getFilterItems();i.forEach(function(t){n=n.filter(t)}),o.forEach(function(t){n.indexOf(t)===-1?t.hide():t.show()}),this.draw(),this.emit("afterfilter")},_getFilterItems:function(){return this.getItems().filter(function(i){return i.getShapeObj().filter!==!1})}},M.exports=p},function(M,x,g){var f=g(26),p=g(626),l={CFG:{modes:{default:[]},mode:"default",_eventCache:{}},INIT:"_initModes"};l.AUGMENT={_initModes:function(){var o=this.get("mode");this.changeMode(o)},changeMode:function(o){var n=this.get("modes");f.isEmpty(n)||f.isEmpty(n[o])||(p.resetMode(n[o],this),this.set("mode",o))},addBehaviour:function(o,n){var t=this.get("modes");n=n||this.get("mode"),f.isEmpty(t[n])&&(t[n]=[]);var e=t[n],r=[].concat(o);return f.each(r,function(a){e.indexOf(a)===-1&&e.push(a)}),p.resetMode(t[n],this),this},removeBehaviour:function(o){var n=this.get("modes"),t=this.get("mode"),e=n[t];if(!f.isEmpty(e)){var r=[].concat(o);return e=e.filter(function(a){return r.indexOf(a)===-1}),n[t]=e,p.resetMode(e,this),this}},behaviourOn:function(o,n){var t=this._eventCache;t[o]||(t[o]=[]),t[o].push(n),this.on(o,n)},_off:function(){var o=this,n=this._eventCache;f.each(n,function(t,e){f.each(t,function(r){o.off(e,r)})}),this._eventCache={}}},M.exports=l},function(M,x,g){var f=g(599),p=g(26),l={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"},i=[l.DBLCLICK,l.MOUSEDOWN,l.MOUSEUP,l.MOUSEENTER,l.MOUSELEAVE,l.MOUSEMOVE,l.CONTEXTMENU,l.WHEEL,l.MOUSEWHEEL],o=[l.KEYDOWN,l.KEYUP,l.KEYPRESS],n=function(t){function e(a){var u;return(u=t.call(this,a)||this)._domEvents=[],u._initEventStates(),u._registerEvents(),u}(function(a,u){a.prototype=Object.create(u.prototype),a.prototype.constructor=a,a.__proto__=u})(e,t);var r=e.prototype;return r._initEventStates=function(){this._pressing=!1,this._dragging=!1,this._currentEventObj={},this._dragEventObj={}},r._registerEvents=function(){this._registerMouseEvents(),this._registerKeyboardEvents()},r._registerKeyboardEvents=function(){var a=this.graph,u=a.getKeyboardEventWrapper(),c=this._domEvents,s=a.get("keyboardEnable");p.each(o,function(h){c.push(p.addEventListener(u,h,function(d){var v=!0;p.isFunction(s)&&(v=s()),v&&a.emit(h,{domEvent:d})}))})},r._registerMouseEvents=function(){var a=this,u=this,c=this.graph.getMouseEventWrapper(),s=this._domEvents;p.each(i,function(h){s.push(p.addEventListener(c,h,function(d){if(d.type!==l.MOUSEENTER||!d.fromElement||d.fromElement.parentNode&&!function(m,b){for(var w=m.parentNode;w;){if(w.tagName===b)return!0;w=w.parentNode}return!1}(d.fromElement,"foreignObject")){var v=a._currentEventObj;a._oldEventObj=v,a._processEventObj(d);var y=a._currentEventObj;u._simulateEvents(d,v,y),[l.MOUSELEAVE,l.MOUSEENTER].indexOf(d.type)!==-1&&u._triggerEvent("canvas:"+d.type),u._triggerEvent(d.type),d.type===l.MOUSELEAVE&&(a._dragging&&u._triggerEvent(l.DRAGLEAVE,p.mix({},y,{item:null,shape:null,currentItem:a._dragEventObj.item,currentShape:a._dragEventObj.shape})),u._initEventStates())}}))})},r.destroy=function(){var a=this._domEvents;p.each(a,function(u){u&&u.remove()}),this._domEvents=null},r._triggerEvent=function(a,u){if(u||(u=a==="mouseleave"?this._oldEventObj:this._currentEventObj),a==="mousedown"&&(u.button=this._button),u._type=a,this.emitGraphEvent(a,u),["canvas:"+l.MOUSELEAVE,"canvas:"+l.MOUSEENTER].indexOf(a)===-1){var c=u.shape&&u.shape.eventPreFix;if([l.DRAGSTART,l.DRAG,l.DRAGEND].indexOf(a)!==-1&&(c=u.currentShape&&u.currentShape.eventPreFix),c){var s=c+":"+a;u._type=s,p.isBoolean(u._isItemChange)?u._isItemChange&&this.emitGraphEvent(s,u):this.emitGraphEvent(s,u)}}},r.emitGraphEvent=function(a,u){this.graph.emit(a,u)},r._getDistanceToPress=function(a){return Math.pow(a.clientX-this._pressX,2)+Math.pow(a.clientY-this._pressY,2)},r._simulateEvents=function(a,u,c){u===void 0&&(u={}),c===void 0&&(c={});var s=this._dragEventObj.item,h=this._dragEventObj.shape;switch(a.type){case l.MOUSEDOWN:this._pressing=!0,this._button=a.button,this._pressX=a.clientX,this._pressY=a.clientY;break;case l.MOUSEMOVE:if(this._dragging){if(this._triggerEvent(l.DRAG,p.mix({},c,{button:this._button,currentItem:s,currentShape:h})),u.shape!==c.shape){var d=this._isItemChange(u,c);u.shape&&this._triggerEvent(l.DRAGLEAVE,p.mix({},c,{button:this._button,item:u.item,shape:u.shape,toItem:c.item,toShape:c.shape,currentItem:s,currentShape:h,_isItemChange:d})),c.shape&&this._triggerEvent(l.DRAGENTER,p.mix({},c,{button:this._button,currentItem:s,currentShape:h,fromItem:u.item,fromShape:u.shape,_isItemChange:d}))}}else this._pressing&&this._getDistanceToPress(a)>9&&(this._dragging=!0,this._dragEventObj=u,s=this._dragEventObj.item,h=this._dragEventObj.shape,this._triggerEvent(l.DRAGSTART,p.mix({},u,{button:this._button,currentItem:s,currentShape:h})));if(u.shape!==c.shape){var v=this._isItemChange(u,c);u.shape&&this._triggerEvent(l.MOUSELEAVE,p.mix({},c,{item:u.item,shape:u.shape,toItem:c.item,toShape:c.shape,_isItemChange:v})),c.shape&&this._triggerEvent(l.MOUSEENTER,p.mix({},c,{fromtItem:u.item,fromShape:u.shape,_isItemChange:v}))}break;case l.MOUSEUP:!this._dragging&&this._pressing?this._triggerEvent(l.CLICK,p.mix({},c,{button:this._button})):(this._triggerEvent(l.DROP,p.mix({},c,{button:this._button,currentItem:s,currentShape:h})),this._triggerEvent(l.DRAGEND,p.mix({},c,{button:this._button,currentItem:s,currentShape:h}))),this._pressing=!1,this._dragging=!1,this._dragEventObj={};break;default:return}},r._isItemChange=function(a,u){var c=a.shape,s=u.shape,h=c&&s&&(c.get("isItemChange")||s.get("isItemChange"));return h?h(s,c):p.isObject(a.item)&&p.isObject(u.item)?a.item.id!==u.item.id:a.item!==u.item},r._processEventObj=function(a){var u=this.graph.get("_canvas"),c=this._getEventObj(a,u);this._currentEventObj=c},r._parsePoint=function(a,u){return this.graph.getPointByCanvas({x:a,y:u})},r._getEventObj=function(a,u){var c=this.graph,s=a.clientX,h=a.clientY,d=u.getPointByClient(s,h),v=this._parsePoint(d.x,d.y),y=u.getShape(d.x,d.y,a),m=c.getItemByShape(y),b=u.get("pixelRatio");return{item:m,shape:y,x:v.x,y:v.y,domX:d.x/b,domY:d.y/b,domEvent:a}},e}(f);M.exports=n},function(M,x,g){var f={},p=g(698);f.INIT="_initEvents",f.CFG={keyboardEnable:!0},f.AUGMENT={_initEvents:function(){this.get("_controllers").events=new p({graph:this})}},M.exports=f},function(M,x,g){var f=g(26),p={};p.AUGMENT={find:function(i){return this.get("_itemMap")[i]},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 i=this.get("_itemMap"),o=[];return f.each(i,function(n){n.type&&o.push(n)}),o},getItemByShape:function(i){return i?this.getItem(i.id):null},getItem:function(i){var o=this.get("_itemMap");return f.isObject(i)?i.destroyed&&(i=o[i.id]):i=o[i],i}},M.exports=p},function(M,x,g){var f=g(599),p=g(26),l=["color","shape","size","label","style"],i=function(o){function n(){return o.apply(this,arguments)||this}(function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r})(n,o);var t=n.prototype;return t._init=function(){var e=this,r={};p.each(l,function(a){r[a]={},e[a]=function(u){return r[a].input=u,e}}),this.channels=r},t.addChannels=function(e){var r=this.channels;p.each(e,function(a,u){r[u]={input:a}})},t.mapping=function(e){var r=this.channels;p.each(r,function(a,u){p.isFunction(a.input)?e[u]=a.input(e):a.input&&(e[u]=a.input)})},n}(f);M.exports=i},function(M,x,g){var f=g(701),p={INIT:"_initMapper"};p.AUGMENT={_initMapper:function(){var i=this.get("_controllers");i.nodeMapper=new f({graph:this}),i.edgeMapper=new f({graph:this}),i.groupMapper=new f({graph:this}),i.guideMapper=new f({graph:this})},node:function(i){var o=this._getController("nodeMapper");return i&&o.addChannels(i),o},edge:function(i){var o=this._getController("edgeMapper");return i&&o.addChannels(i),o},group:function(i){var o=this._getController("groupMapper");return i&&o.addChannels(i),this._getController("groupMapper")},guide:function(i){var o=this._getController("guideMapper");return i&&o.addChannels(i),this._getController("guideMapper")}},M.exports=p},function(M,x,g){var f=function(p){function l(){return p.apply(this,arguments)||this}(function(o,n){o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.__proto__=n})(l,p);var i=l.prototype;return i.getDefaultCfg=function(){return{graph:null,auto:!0,processor:null}},i._init=function(){var o=this,n=this.graph;n.on("afteritemdraw",function(t){var e=t.item,r=e.getKeyShape(),a=e.getModel();if(e.isEdge)a.lineWidth=r.attr("lineWidth");else if(e.isNode||e.isGroup){var u=e.getBBox();a.width=u.width,a.height=u.height}}),n.on("afterchange",function(t){var e=t.action;o.auto==="once"?e==="changeData"&&(n.destroyed||n.preventAnimate(function(){o.layout()})):o.auto&&!n.destroyed&&n.preventAnimate(function(){o.layout()})})},i.changeLayout=function(o){this.processor=o,this.layout()},i.layout=function(){var o=this.graph,n=this.getLayoutProcessor();o.emit("beforelayout");var t=o.getNodes().filter(function(a){return a.isVisible()}).map(function(a){return a.getModel()}),e=o.getEdges().filter(function(a){return a.isVisible()}).map(function(a){return a.getModel()}),r=o.getGroups().filter(function(a){return a.isVisible()}).map(function(a){return a.getModel()});o._executeLayout(n,t,e,r),o.updateNodePosition(),o.emit("afterlayout")},i.getLayoutProcessor=function(){return this.processor?this.processor:this.processer},l}(g(599));M.exports=f},function(M,x,g){var f=g(26),p=g(703),l={CFG:{layout:void 0},INIT:"_initLayout"};l.AUGMENT={_initLayout:function(){var o=this.get("_controllers"),n=this._getLayoutCfg();n&&(o.layout=new p(f.mix({graph:this},n)))},_getLayoutCfg:function(){var o=this.get("layout");return f.isPlainObject(o)?o:f.isFunction(o)||f.isObject(o)?{processor:o}:null},layout:function(){return this._getController("layout").layout(),this},updateNodePosition:function(o){var n=this.getGuides(),t=[],e=[];return this.emit("beforeupdatenodeposition"),o?(o.forEach(function(r){r.getEdges().forEach(function(u){e.push(u)});var a=r.getParent();a&&t.push(a)}),e=f.uniq(e),t=f.uniq(t)):(o=this.getNodes(),t=this.getGroups(),e=this.getEdges()),o.forEach(function(r){r.layoutUpdate()}),t.forEach(function(r){r.layoutUpdate()}),e.forEach(function(r){r.layoutUpdate()}),n.forEach(function(r){r.layoutUpdate()}),this.emit("afterupdatenodeposition"),this},changeLayout:function(o){return this._getController("layout").changeLayout(o),this},getLayout:function(){return this._getController("layout").getLayoutProcessor()}},M.exports=l},function(M,x,g){(function(f){"use strict";var p=function(){return{escape:function(v){return v.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:s,mimeType:function(v){var y=s(v).toLowerCase();return function(){var m="application/font-woff";return{woff:m,woff2:m,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"}}()[y]||""},dataAsUrl:function(v,y){return"data:"+y+";base64,"+v},isDataUrl:function(v){return v.search(/^(data:)/)!==-1},canvasToBlob:function(v){return v.toBlob?new Promise(function(y){v.toBlob(y)}):function(y){return new Promise(function(m){for(var b=window.atob(y.toDataURL().split(",")[1]),w=b.length,P=new Uint8Array(w),S=0;S'+b+""}).then(function(b){return''+b+""}).then(function(b){return"data:image/svg+xml;charset=utf-8,"+b})}(d,h.width||p.width(s),h.height||p.height(s))})}function r(s,h){return e(s,h).then(p.makeImage).then(p.delay(100)).then(function(d){var v=function(y){var m=document.createElement("canvas");if(m.width=h.width||p.width(y),m.height=h.height||p.height(y),h.bgcolor){var b=m.getContext("2d");b.fillStyle=h.bgcolor,b.fillRect(0,0,m.width,m.height)}return m}(s);return v.getContext("2d").drawImage(d,0,0),v})}function a(s,h,d){if(!d&&h&&!h(s))return Promise.resolve();return Promise.resolve(s).then(v).then(function(b){return y(s,b,h)}).then(function(b){return m(s,b)});function v(b){return b instanceof HTMLCanvasElement?p.makeImage(b.toDataURL()):b.cloneNode(!1)}function y(b,w,P){var S=b.childNodes;return S.length===0?Promise.resolve(w):function(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return a(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}(w,p.asArray(S),P).then(function(){return w});function O(A,E,_){var C=Promise.resolve();return E.forEach(function(k){C=C.then(function(){return a(k,_)}).then(function(T){T&&A.appendChild(T)})}),C}}function m(b,w){return w instanceof Element?Promise.resolve().then(function(){(function(E,_){E.cssText?_.cssText=E.cssText:function(C,k){p.asArray(C).forEach(function(T){k.setProperty(T,C.getPropertyValue(T),C.getPropertyPriority(T))})}(E,_)})(window.getComputedStyle(b),w.style)}).then(function(){[":before",":after"].forEach(function(E){(function(_){var C=window.getComputedStyle(b,_),k=C.getPropertyValue("content");if(!(k===""||k==="none")){var T=p.uid();w.className=w.className+" "+T;var I=document.createElement("style");I.appendChild(function(R,F,j){var B="."+R+":"+F,H=j.cssText?function(et){var Q=et.getPropertyValue("content");return et.cssText+" content: "+Q+";"}(j):function(et){return p.asArray(et).map(function(Q){return Q+": "+et.getPropertyValue(Q)+(et.getPropertyPriority(Q)?" !important":"")}).join("; ")+";"}(j);return document.createTextNode(B+"{"+H+"}")}(T,_,C)),w.appendChild(I)}})(E)})}).then(function(){b instanceof HTMLTextAreaElement&&(w.innerHTML=b.value),b instanceof HTMLInputElement&&w.setAttribute("value",b.value)}).then(function(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(E){var _=w.getAttribute(E);_&&w.style.setProperty(E,_)}))}).then(function(){return w}):w;function P(){function E(_,C){_.cssText?C.cssText=_.cssText:k(_,C);function k(T,I){p.asArray(T).forEach(function(R){I.setProperty(R,T.getPropertyValue(R),T.getPropertyPriority(R))})}}E(window.getComputedStyle(b),w.style)}function S(){function E(_){var C=window.getComputedStyle(b,_),k=C.getPropertyValue("content");if(k===""||k==="none")return;var T=p.uid();w.className=w.className+" "+T;var I=document.createElement("style");function R(F,j,B){var H="."+F+":"+j,et=B.cssText?Q(B):J(B);return document.createTextNode(H+"{"+et+"}");function Q(K){var nt=K.getPropertyValue("content");return K.cssText+" content: "+nt+";"}function J(K){return p.asArray(K).map(nt).join("; ")+";";function nt(st){return st+": "+K.getPropertyValue(st)+(K.getPropertyPriority(st)?" !important":"")}}}I.appendChild(R(T,_,C)),w.appendChild(I)}[":before",":after"].forEach(function(_){E(_)})}function O(){b instanceof HTMLTextAreaElement&&(w.innerHTML=b.value),b instanceof HTMLInputElement&&w.setAttribute("value",b.value)}function A(){w instanceof SVGElement&&(w.setAttribute("xmlns","http://www.w3.org/2000/svg"),w instanceof SVGRectElement&&["width","height"].forEach(function(E){var _=w.getAttribute(E);!_||w.style.setProperty(E,_)}))}}}function u(s){return i.resolveAll().then(function(h){var d=document.createElement("style");return s.appendChild(d),d.appendChild(document.createTextNode(h)),s})}function c(s){return o.inlineAll(s).then(function(){return s})}M.exports=t})()},function(M,x,g){function f(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var p=g(26),l=g(248),i=g(705),o=function(){function n(e){this.options=function(r){for(var a=1;a");u=new l.Canvas({containerDOM:c,width:r,height:a})}return u.drawCount||(u.drawCount=0),u},t.drawInner=function(e,r){var a=this.options.graph,u=a.getCanvas(),c=a.get("renderer"),s=e.drawCount;if(c==="svg"){var h=[];u.deepEach(function(d){d.get("type")==="dom"&&h.push(d)}),h.length>0?h.forEach(function(d){var v=d.get("el");if(v){d.domImageOnload=!1;var y=d.attr("width"),m=d.attr("height");i.toPng(v,{width:y,height:m}).then(function(b){var w=new Image;w.src=b,w.onload=function(){if(s===e.drawCount-1){d.domImage=w,d.domImageOnload=!0;for(var P=0;P0&&S>0?E=Math.PI/2-_:P<0&&S<0?E=-Math.PI/2-_:P>=0&&S<0?E=-_-Math.PI/2:P<=0&&S>0&&(E=Math.PI/2-_),w.rotate(E),w.translate(b.x,b.y),e==="end"?(y[y.length-1]=A[1]+b.y,y[y.length-2]=A[0]+b.x):(m[m.length-1]=A[1]+b.y,m[m.length-2]=A[0]+b.x),d.attr("path",v),this[e+"Arrow"]=w}},n._getControlPoints=function(){var t=this.model.controlPoints;return p.isArray(t)?t:[]},n._shouldDraw=function(){return i.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 p.isPlainObject(t)||p.isPlainObject(e)||t.isVisible()||e.isVisible()||t.collapsedParent!==e.collapsedParent},n.getSource=function(){var t=this.source,e=t.collapsedParent,r=this.itemMap;return e?r[e.id]:t},n.getTarget=function(){var t=this.target,e=t.collapsedParent,r=this.itemMap;return e?r[e.id]:t},n.getPoints=function(){var t=this.getSource(),e=this.getTarget(),r=this.model,a=this._getControlPoints(),u=this._getPoint(t),c=this._getPoint(e),s=[u].concat(a).concat([c]),h=s.length;if(t.isItem){var d=p.isNumber(this.model.sourceAnchor)&&t.id===r.source?this.model.sourceAnchor:s[1],v=t.getLinkPoints(d);s[0]=v[0]}if(e.isItem){var y=p.isNumber(this.model.targetAnchor)&&e.id===r.target?this.model.targetAnchor:s[h-2],m=e.getLinkPoints(y);s[h-1]=m[0]}return s},n.destroy=function(){var t=this.itemMap,e=this.model,r=t[e.source],a=t[e.target];r&&r.isItem&&p.Array.remove(r.edges,this),a&&a.isItem&&p.Array.remove(a.edges,this),i.prototype.destroy.call(this)},o}(g(608));M.exports=l},function(M,x,g){M.exports={Node:g(624),Edge:g(709),Group:g(708),Guide:g(707)}},function(M,x,g){var f;/*! * EventEmitter v5.2.5 - git.io/ee * Unlicense - http://unlicense.org/ * Oliver Caldwell - http://oli.me.uk/ * @preserve */(function(p){"use strict";function l(){}var i=l.prototype,o=p.EventEmitter;function n(e,r){for(var a=e.length;a--;)if(e[a].listener===r)return a;return-1}function t(e){return function(){return this[e].apply(this,arguments)}}i.getListeners=function(e){var r,a,u=this._getEvents();if(e instanceof RegExp)for(a in r={},u)u.hasOwnProperty(a)&&e.test(a)&&(r[a]=u[a]);else r=u[e]||(u[e]=[]);return r},i.flattenListeners=function(e){var r,a=[];for(r=0;r=0;t--)n[t].remove(o);return this._cfg.children=[],this}}),p.mixin(f.Group,[l]),M.exports=l},function(M,x,g){g(258).registerGuide("common",{draw:function(){console.warn("do not have this guide, please register one")}})},function(M,x,g){M.exports={common:g(716)}},function(M,x,g){function f(o,n,t){return n in o?Object.defineProperty(o,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[n]=t,o}var p=g(258),l=g(26),i=g(247);p.registerGroup("common",{draw:function(n){return n.getModel().collapsed?this.drawCollapsed(n):this.drawExpanded(n)},defaultWidth:184,defaultHeight:40,getLabel:function(n){return n.getModel().label},drawLabel:function(n,t,e){var r=this.getLabel(n);if(r){var a=n.getGraphicGroup(),u=[8,8];t+=u[0],e+=u[1];var c=n.getModel(),s=c.labelOffsetX,h=c.labelOffsetY,d=c.labelRotate;t=s?s+t:t,e=h?h+e:e;var v=l.mix(!0,{},i.labelStyle,{x:t,y:e,textAlign:"left",textBaseline:"top"});l.isObject(r)?l.mix(v,r):v.text=r;var y=a.addShape("text",{class:"label",attrs:v});if(d){var m=y.getBBox(),b=(m.maxX+m.minX)/2,w=(m.maxY+m.minY)/2;y.transform([["t",-b,-w],["r",d,d],["t",b,w]])}}},drawKeyShape:function(n,t){var e=t.x,r=t.y,a=t.width,u=t.height,c=n.getModel(),s=n.getGraphicGroup(),h=l.mix({},i.groupStyle,c.style),d=l.getRectPath(e,r,a,u,h.radius);return n.lastChildrenBox=t,s.addShape("path",{attrs:l.mix({},h,{path:d})})},getChildrenBBox:function(n){var t=function(a){for(var u=1;u0){var r=n.getChildrenBBox();t.x=r.minX-i.groupBackgroundPadding[3],t.y=r.minY-i.groupBackgroundPadding[0],t.width=r.maxX-r.minX+i.groupBackgroundPadding[3]+i.groupBackgroundPadding[1],t.height=r.maxY-r.minY+i.groupBackgroundPadding[0]+i.groupBackgroundPadding[2]}else t.width=this.defaultWidth,t.height=this.defaultHeight;return l.isNil(t.x)&&!l.isNil(e.x)&&(t.x=e.x),l.isNil(t.y)&&!l.isNil(e.y)&&(t.y=e.y),t},drawExpanded:function(n){var t=this.getChildrenBBox(n),e=this.drawKeyShape(n,t);return this.drawLabel(n,t.x,t.y),e},drawCollapsed:function(n){var t=this.getChildrenBBox(n);t.width=this.defaultWidth,t.height=this.defaultHeight;var e=this.drawKeyShape(n,t);return this.drawLabel(n,t.x,t.y),e},anchor:{intersectBox:"rect"}})},function(M,x,g){M.exports={common:g(718)}},function(M,x,g){function f(t){for(var e=1;e3?r:3)/3,u=4*r/3,c=4*r;return[["M",-a,u],["L",0,0],["L",-a,-u],["A",c,c,0,0,1,-a,u],["Z"]]},shorten:function(e){var r=e.getKeyShape().attr("lineWidth");return 3.1*(r>3?r:3)},style:function(e){var r=e.getKeyShape().attr();return{fillOpacity:r.strokeOpacity,fill:r.stroke}}};l.registerEdge("common",{draw:function(e){var r=this.drawKeyShape(e);return this.drawLabel(e,r),r},drawKeyShape:function(e){var r=e.getGraphicGroup(),a=this.getStyle(e),u=this.getPath(e);return r.addShape("path",{attrs:i.mix({},a,{path:u})})},getStyle:function(e){var r=e.getModel();return i.mix(!0,{},{stroke:r.color||"#A3B1BF",strokeOpacity:.92,lineAppendWidth:4,lineWidth:r.size||1},r.style)},getPath:function(e){var r=e.getPoints();return i.pointsToPolygon(r)},getLabel:function(e){return e.getModel().label},getDefaultLabelRectStyle:function(){return{fill:"white"}},getDefaultLabelRectPadding:function(){return i.toAllPadding([4,8])},drawLabel:function(e,r){var a=this.getLabel(e),u=e.getGraphicGroup(),c=e.getModel(),s=c.labelOffsetX,h=c.labelOffsetY,d=c.labelRotate;if(a){var v=r.getPoint(.5);if(!v)return;v.x=s?v.x+s:v.x,v.y=h?v.y+h:v.y;var y=i.mix(!0,{},o.labelStyle,v);i.isObject(a)?i.mix(y,a):y.text=a,a=u.addShape("text",{class:"label",attrs:y});var m=this.getDefaultLabelRectPadding(e),b=this.getDefaultLabelRectStyle(e),w=a.getBBox(),P=c.labelRectStyle?i.mix({},b,c.labelRectStyle):b,S=u.addShape("rect",{attrs:i.mix({},P,{x:w.minX-m[3],y:w.minY-m[0],width:w.maxX-w.minX+m[1]+m[3],height:w.maxY-w.minY+m[0]+m[2]})});if(d){var O=(w.maxX+w.minX)/2,A=(w.maxY+w.minY)/2;a.transform([["t",-O,-A],["r",d,d],["t",O,A]]),S.transform([["t",-O,-A],["r",d,d],["t",O,A]])}i.toFront(a)}},startArrow:f({},n,{tangent:function(e){return e.getKeyShape().getStartTangent()},ratio:function(){return 0}}),endArrow:f({},n,{tangent:function(e){return e.getKeyShape().getEndTangent()},ratio:function(){return 1}})})},function(M,x,g){M.exports={common:g(720)}},function(M,x,g){var f=g(258),p=g(26);f.registerNode("html",{getHtml:function(i){return i.getModel().html},cssSize:!0,draw:function(i){var o=p.createDOM('
'),n=i.getGraphicGroup(),t=i.getGraph();if(t.get("renderer")!=="svg")throw new Error("please use svg renderer draw html element !");var e=t.getGraphContainer(),r=this.getSize(i),a=this.getStyle(i),u=this.cssSize,c=this.getHtml(i);c=p.createDOM(c),o.css({position:"absolute",padding:"0px",margin:"0px"}),o.appendChild(c),e.appendChild(o),u&&(r[0]=o.width(),r[1]=o.height());var s=-r[0]/2,h=-r[1]/2,d=r[0],v=r[1],y=n.addShape("rect",{attrs:p.mix({},a,{x:s,y:h,width:d,height:v})});return n.addShape("dom",{attrs:p.mix({x:s,y:h,width:d,height:v,html:o})}),y}})},function(M,x,g){var f=g(258),p=g(26),l=g(247);f.registerNode("common",{draw:function(o){var n=o.getGraphicGroup(),t=this.drawLabel(o),e=this.drawKeyShape(o);return t&&p.toFront(t,n),e},getSize:function(o){var n=o.getModel().size;return p.isArray(n)?n:p.isNumber(n)?[n,n]:[l.defaultNodeSize,l.defaultNodeSize]},getStyle:function(o){var n=o.getModel();return p.mix(!0,{lineWidth:1,fill:n.color||"#40a9ff",stroke:n.color||"#096dd9",fillOpacity:.92},n.style)},getLabel:function(o){return o.getModel().label},drawKeyShape:function(o){var n=o.getGraphicGroup(),t=this.getStyle(o),e=this.getPath(o);return n.addShape("path",{attrs:p.mix({},t,{path:e})})},drawLabel:function(o){var n=o.getGraphicGroup(),t=this.getLabel(o),e=o.getModel(),r=e.labelOffsetX,a=e.labelOffsetY,u=e.labelRotate;if(!p.isNil(t)){var c=p.mix(!0,{},l.labelStyle,{x:r||0,y:a||0});p.isObject(t)?p.mix(c,t):c.text=t;var s=n.addShape("text",{class:"label",attrs:c});return u&&s.rotate(u),s}},getPath:function(o){var n=this.getSize(o);return p.getEllipsePath(0,0,n[0]/2,n[1]/2)}})},function(M,x,g){M.exports={common:g(723),html:g(722)}},function(M,x,g){var f=g(682),p=g(257),l={getAutoZoomMatrix:function(o,n,t,e){var r=[1,0,0,0,1,0,0,0,1],a=o.maxX-o.minX,u=o.maxY-o.minY,c=(n.maxX+n.minX)/2,s=(n.maxY+n.minY)/2,h=a-t[1]-t[3],d=u-t[0]-t[2],v=n.maxX-n.minX,y=n.maxY-n.minY,m=Math.min(d/y,h/v);return e&&(m=e(m)),f.mat3.translate(r,r,[-c,-s]),f.mat3.scale(r,r,[m,m]),f.mat3.translate(r,r,[a/2,u/2]),r},getNineBoxPosition:function(o,n,t,e,r){var a={};switch(o){case"tl":a.y=n.x+r[0],a.x=n.y+r[3];break;case"lc":a.y=(n.height-e)/2,a.x=r[3];break;case"bl":a.y=n.height-e-r[2],a.x=r[3];break;case"cc":a.y=(n.height-e)/2,a.x=(n.width-t)/2;break;case"tc":a.y=r[0],a.x=(n.width-t)/2;break;case"tr":a.y=r[0],a.x=n.width-t-r[1];break;case"rc":a.y=(n.height-e)/2,a.x=n.width-t-r[1];break;case"br":a.y=n.height-e-r[2],a.x=n.width-t-r[1];break;case"bc":a.y=n.height-e-r[2],a.x=(n.width-t)/2;break;default:a.y=n.x+r[0],a.x=n.y+r[3]}return a.x+=n.x,a.y+=n.y,a},getTotalBBox:function(o){var n=1/0,t=-1/0,e=1/0,r=-1/0;return o.forEach(function(a){a.minXt&&(t=a.maxX),a.minYr&&(r=a.maxY)}),{minX:n,minY:e,maxX:t,maxY:r,width:t-n,height:r-e}},getChildrenBBox:function(o){var n=1/0,t=-1/0,e=1/0,r=-1/0;p.each(o,function(u){var c=u.isGroup?l.getChildrenBBox(u.get("children")):u.getBBox();if(!c)return!0;var s=[c.minX,c.minY,1],h=[c.minX,c.maxY,1],d=[c.maxX,c.minY,1],v=[c.maxX,c.maxY,1];u.apply(s),u.apply(h),u.apply(d),u.apply(v);var y=Math.min(s[0],h[0],d[0],v[0]),m=Math.max(s[0],h[0],d[0],v[0]),b=Math.min(s[1],h[1],d[1],v[1]),w=Math.max(s[1],h[1],d[1],v[1]);yt&&(t=m),br&&(r=w)});var a={minX:n,minY:e,maxX:t,maxY:r};return a.x=a.minX,a.y=a.minY,a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a.centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2,a},getBBox:function(o,n){var t,e=o.getBBox(),r={x:e.minX,y:e.minY},a={x:e.maxX,y:e.maxY};if(n.isGroup){for(t=o;t!==n;){var u=t.getMatrix();r=f.applyMatrix(r,u),a=f.applyMatrix(a,u),t=t.getParent()}var c=t.getMatrix();r=f.applyMatrix(r,c),a=f.applyMatrix(a,c)}else r=f.applyMatrix(r,n),a=f.applyMatrix(a,n);return{minX:r.x,minY:r.y,maxX:a.x,maxY:a.y}},toBack:function(o){o.toBack()},toFront:function(o){o.toFront()}};M.exports=l},function(M,x,g){var f=g(257);M.exports={isNode:function(l){return l&&f.isObject(l)&&l.type==="node"},isEdge:function(l){return l&&f.isObject(l)&&l.type==="edge"},isGroup:function(l){return l&&f.isObject(l)&&l.type==="group"}}},function(M,x,g){var f=g(257),p={};f.mix(p,{addEventListener:function(i,o,n){return i.attachEvent?(i.attachEvent("on"+o,n),{remove:function(){i.detachEvent("on"+o,n)}}):i.addEventListener?(i.addEventListener(o,n,!1),{remove:function(){i.removeEventListener(o,n,!1)}}):void 0},createDOM:function(i,o){var n;return(n=f.isString(i)?f.createDom(i):i).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 f.modifyCSS(n,t),n},n.width=function(){return f.getWidth(n)},n.height=function(){return f.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(o),n},initDOMContainer:function(i,o){if(!i)throw new Error("please set the container for the "+o+" !");return f.isString(i)&&(i=document.getElementById(i)),i}}),M.exports=p},function(M,x){var g={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};M.exports=function(f,p,l){var i=l.target||l.srcElement;if(!g[i.tagName]){for(var o=i.parentNode;o&&!g[o.tagName];)o=o.parentNode;i=o}return this._cfg.el===i?this:this.find(function(n){return n._cfg&&n._cfg.el===i})}},function(M,x,g){var f=g(19),p=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=function(){function i(o){var n=document.createElementNS("http://www.w3.org/2000/svg","pattern");n.setAttribute("patternUnits","userSpaceOnUse");var t=document.createElementNS("http://www.w3.org/2000/svg","image");n.appendChild(t);var e=f.uniqueId("pattern_");n.id=e,this.el=n,this.id=e,this.cfg=o;var r=p.exec(o)[2];t.setAttribute("href",r);var a=new Image;function u(){console.log(a.width,a.height),n.setAttribute("width",a.width),n.setAttribute("height",a.height)}return r.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=r,a.complete?u():(a.onload=u,a.src=a.src),this}return i.prototype.match=function(o,n){return this.cfg===n},i}();M.exports=l},function(M,x,g){var f=g(19),p=function(){function l(o){this.type="clip";var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=n,this.id=f.uniqueId("clip_"),n.id=this.id;var t=o._cfg.el;return n.appendChild(t.cloneNode(!0)),this.cfg=o,this}var i=l.prototype;return i.match=function(){return!1},i.remove=function(){var o=this.el;o.parentNode.removeChild(o)},l}();M.exports=p},function(M,x,g){var f=g(19),p=function(){function l(o,n){var t=document.createElementNS("http://www.w3.org/2000/svg","marker"),e=f.uniqueId("marker_");t.setAttribute("id",e);var r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("stroke","none"),r.setAttribute("fill",o.stroke||"#000"),t.appendChild(r),t.setAttribute("overflow","visible"),t.setAttribute("orient","auto-start-reverse"),this.el=t,this.child=r,this.id=e,this.cfg=o[n==="marker-start"?"startArrow":"endArrow"],this.stroke=o.stroke||"#000",this.cfg===!0?this._setDefaultPath(n,r):this._setMarker(o.lineWidth,r),this}var i=l.prototype;return i.match=function(){return!1},i._setDefaultPath=function(o,n){var t=this.el;n.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),t.setAttribute("refX",3),t.setAttribute("refY",3)},i._setMarker=function(o,n){var t=this.el,e=this.cfg.path,r=this.cfg.d;f.isArray(e)&&(e=e.map(function(a){return a.join(" ")}).join("")),n.setAttribute("d",e),t.appendChild(n),r&&t.setAttribute("refX",r/o)},i.update=function(o){var n=this.child;n.attr?n.attr("fill",o):n.setAttribute("fill",o)},l}();M.exports=p},function(M,x,g){var f=g(19),p={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},l={x:"-40%",y:"-40%",width:"200%",height:"200%"},i=function(){function o(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return f.each(l,function(r,a){e.setAttribute(a,r)}),this.el=e,this.id=f.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var n=o.prototype;return n.match=function(t,e){if(this.type!==t)return!1;var r=!0,a=this.cfg;return f.each(Object.keys(a),function(u){if(a[u]!==e[u])return r=!1,!1}),r},n.update=function(t,e){var r=this.cfg;return r[p[t]]=e,this._parseShadow(r,this.el),this},n._parseShadow=function(t,e){var r=``;e.innerHTML=r},o}();M.exports=i},function(M,x,g){var f=g(19),p=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,l=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,i=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function o(t){var e=t.match(i);if(!e)return"";var r="";return e.sort(function(a,u){return a=a.split(":"),u=u.split(":"),Number(a[0])-Number(u[0])}),f.each(e,function(a){a=a.split(":"),r+=''}),r}var n=function(){function t(e){var r=null,a=f.uniqueId("gradient_");return e.toLowerCase()[0]==="l"?function(u,c){var s,h,d=p.exec(u),v=f.mod(f.toRadian(parseFloat(d[1])),2*Math.PI),y=d[2];v>=0&&v<.5*Math.PI?(s={x:0,y:0},h={x:1,y:1}):.5*Math.PI<=v&&v');return c.appendChild(h),this.type="svg",this.canvas=h,this.context=new i(h),this.toDraw=!1,this}var u=a.prototype;return u.draw=function(c){var s=this;s.animateHandler?s.toDraw=!0:function h(){s.animateHandler=f.requestAnimationFrame(function(){s.animateHandler=void 0,s.toDraw&&h()});try{s._drawChildren(c)}catch(d){console.warn("error in draw canvas, detail as:"),console.warn(d),s.toDraw=!1}s.toDraw=!1}()},u.drawSync=function(c){this._drawChildren(c)},u._drawGroup=function(c,s){var h=c._cfg;h.removed||h.destroyed||(h.tobeRemoved&&(f.each(h.tobeRemoved,function(d){d.parentNode&&d.parentNode.removeChild(d)}),h.tobeRemoved=[]),this._drawShape(c,s),h.children&&h.children.length>0&&this._drawChildren(c))},u._drawChildren=function(c){var s,h=c._cfg.children;if(h)for(var d=0;dm?1:0,O=Math.abs(b-m)>Math.PI?1:0,A=h.rs,E=h.re,_=s(m,h.rs,v),C=s(b,h.rs,v);h.rs>0?(y.push("M "+P.x+","+P.y),y.push("L "+C.x+","+C.y),y.push("A "+A+","+A+",0,"+O+","+(S===1?0:1)+","+_.x+","+_.y),y.push("L "+w.x+" "+w.y)):(y.push("M "+v.x+","+v.y),y.push("L "+w.x+","+w.y)),y.push("A "+E+","+E+",0,"+O+","+S+","+P.x+","+P.y),h.rs>0?y.push("L "+C.x+","+C.y):y.push("Z"),d.el.setAttribute("d",y.join(" "))},u._updateText=function(c){var s=c._attrs,h=c._cfg.attrs,d=c._cfg.el;for(var v in this._setFont(c),s)if(s[v]!==h[v]){if(v==="text"){this._setText(c,""+s[v]);continue}if(v==="fillStyle"||v==="strokeStyle"){this._setColor(c,v,s[v]);continue}if(v==="matrix"){this._setTransform(c);continue}n[v]&&d.setAttribute(n[v],s[v])}c._cfg.attrs=Object.assign({},c._attrs),c._cfg.hasUpdate=!1},u._setFont=function(c){var s=c.get("el"),h=c._attrs,d=h.fontSize;s.setAttribute("alignment-baseline",t[h.textBaseline]||"baseline"),s.setAttribute("text-anchor",e[h.textAlign]||"left"),d&&+d<12&&(h.matrix=[1,0,0,0,1,0,0,0,1],c.transform([["t",-h.x,-h.y],["s",+d/12,+d/12],["t",h.x,h.y]]))},u._setText=function(c,s){var h=c._cfg.el,d=c._attrs.textBaseline||"bottom";if(s)if(~s.indexOf(` `)){var v=c._attrs.x,y=s.split(` `),m=y.length-1,b="";f.each(y,function(w,P){P===0?d==="alphabetic"?b+=''+w+"":d==="top"?b+=''+w+"":d==="middle"?b+=''+w+"":d==="bottom"?b+=''+w+"":d==="hanging"&&(b+=''+w+""):b+=''+w+""}),h.innerHTML=b}else h.innerHTML=s;else h.innerHTML=""},u._setClip=function(c,s){var h=c._cfg.el;if(s)if(h.hasAttribute("clip-path"))s._cfg.hasUpdate&&this._updateShape(s);else{this._createDom(s),this._updateShape(s);var d=this.context.addClip(s);h.setAttribute("clip-path","url(#"+d+")")}else h.removeAttribute("clip-path")},u._setColor=function(c,s,h){var d=c._cfg.el,v=this.context;if(h)if(h=h.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(h)){var y=v.find("gradient",h);y||(y=v.addGradient(h)),d.setAttribute(n[s],"url(#"+y+")")}else if(/^[p,P]{1}[\s]*\(/.test(h)){var m=v.find("pattern",h);m||(m=v.addPattern(h)),d.setAttribute(n[s],"url(#"+m+")")}else d.setAttribute(n[s],h);else d.setAttribute(n[s],"none")},u._setShadow=function(c){var s=c._cfg.el,h=c._attrs,d={dx:h.shadowOffsetX,dy:h.shadowOffsetY,blur:h.shadowBlur,color:h.shadowColor};if(d.dx||d.dy||d.blur||d.color){var v=this.context.find("filter",d);v||(v=this.context.addShadow(d,this)),s.setAttribute("filter","url(#"+v+")")}else s.removeAttribute("filter")},a}();M.exports=r},function(M,x,g){M.exports={painter:g(735),getShape:g(728)}},function(M,x,g){var f=g(19),p=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,l=/[^\s\,]+/gi,i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,t=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function e(r,a){var u=r.match(t);f.each(u,function(c){c=c.split(":"),a.addColorStop(c[0],c[1])})}M.exports={parsePath:function(a){return a=a||[],f.isArray(a)?a:f.isString(a)?(a=a.match(p),f.each(a,function(u,c){if((u=u.match(l))[0].length>1){var s=u[0].charAt(0);u.splice(1,0,u[0].substr(1)),u[0]=s}f.each(u,function(h,d){isNaN(h)||(u[d]=+h)}),a[c]=u}),a):void 0},parseStyle:function(a,u,c){if(f.isString(a)){if(a[1]==="("||a[2]==="("){if(a[0]==="l")return function(s,h,d){var v,y,m=i.exec(s),b=f.mod(f.toRadian(parseFloat(m[1])),2*Math.PI),w=m[2],P=h.getBBox();b>=0&&b<.5*Math.PI?(v={x:P.minX,y:P.minY},y={x:P.maxX,y:P.maxY}):.5*Math.PI<=b&&b');return t.appendChild(r),this.type="canvas",this.canvas=r,this.context=r.getContext("2d"),this.toDraw=!1,this}var n=o.prototype;return n.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},n.draw=function(t){var e=this;e.animateHandler?e.toDraw=!0:function r(){e.animateHandler=f.requestAnimationFrame(function(){e.animateHandler=void 0,e.toDraw&&r()}),e.beforeDraw();try{e._drawGroup(t)}catch(a){console.warn("error in draw canvas, detail as:"),console.warn(a),e.toDraw=!1}e.toDraw=!1}()},n.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},n._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,r=null;this.setContext(t);for(var a=0;a-1){var u=r[a];a==="fillStyle"&&(u=p.parseStyle(u,t,e)),a==="strokeStyle"&&(u=p.parseStyle(u,t,e)),a==="lineDash"&&e.setLineDash?f.isArray(u)?e.setLineDash(u):f.isString(u)&&e.setLineDash(u.split(" ")):e[a]=u}}},o}();M.exports=i},function(M,x,g){M.exports={painter:g(738)}},function(M,x,g){M.exports={canvas:g(739),svg:g(736)}},function(M,x,g){var f=g(19),p=g(610),l=g(17),i=g(44),o=g(238),n=o.interpolate,t=o.interpolateArray,e=function(u){this._animators=[],this._current=0,this._timer=null,this.canvas=u};function r(a,u,c){var s,h=u.startTime;if(cC.length?(_=p.parsePathString(P[E]),C=p.parsePathString(S[E]),C=p.fillPathByDiff(C,_),C=p.formatPath(C,_),m.fromAttrs.path=C,m.toAttrs.path=_):m.pathFormatted||(_=p.parsePathString(P[E]),C=p.parsePathString(S[E]),C=p.formatPath(C,_),m.fromAttrs.path=C,m.toAttrs.path=_,m.pathFormatted=!0),w[E]=[];for(var k=0;k<_.length;k++){for(var T=_[k],I=C[k],R=[],F=0;F0){for(var y=h._animators.length-1;y>=0;y--)if((u=h._animators[y]).get("destroyed"))d.removeAnimator(y);else{if(!u.get("pause").isPaused)for(var m=(c=u.get("animators")).length-1;m>=0;m--)s=c[m],r(u,s,v)&&(c.splice(m,1),s.callback&&s.callback());c.length===0&&d.removeAnimator(y)}h.canvas.draw()}})},addAnimator:function(u){this._animators.push(u)},removeAnimator:function(u){this._animators.splice(u,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(u){u.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),M.exports=e},function(M,x,g){var f=g(19),p=g(613),l={arc:g(602),ellipse:g(639),line:g(603)},i=f.createDom('').getContext("2d");function o(t,e,r){return r.createPath(i),i.isPointInPath(t,e)}var n={arc:function(e,r){var a=this._attrs,u=a.x,c=a.y,s=a.r,h=a.startAngle,d=a.endAngle,v=a.clockwise,y=this.getHitLineWidth();return!!this.hasStroke()&&p.arcline(u,c,s,h,d,v,y,e,r)},circle:function(e,r){var a=this._attrs,u=a.x,c=a.y,s=a.r,h=this.getHitLineWidth(),d=this.hasFill(),v=this.hasStroke();return d&&v?p.circle(u,c,s,e,r)||p.arcline(u,c,s,0,2*Math.PI,!1,h,e,r):d?p.circle(u,c,s,e,r):!!v&&p.arcline(u,c,s,0,2*Math.PI,!1,h,e,r)},dom:function(e,r){if(!this._cfg.el)return!1;var a=this._cfg.el.getBBox();return p.box(a.x,a.x+a.width,a.y,a.y+a.height,e,r)},ellipse:function(e,r){var a=this._attrs,u=this.hasFill(),c=this.hasStroke(),s=a.x,h=a.y,d=a.rx,v=a.ry,y=this.getHitLineWidth(),m=d>v?d:v,b=d>v?1:d/v,w=d>v?v/d:1,P=[e,r,1],S=[1,0,0,0,1,0,0,0,1];f.mat3.scale(S,S,[b,w]),f.mat3.translate(S,S,[s,h]);var O=f.mat3.invert([],S);return f.vec3.transformMat3(P,P,O),u&&c?p.circle(0,0,m,P[0],P[1])||p.arcline(0,0,m,0,2*Math.PI,!1,y,P[0],P[1]):u?p.circle(0,0,m,P[0],P[1]):!!c&&p.arcline(0,0,m,0,2*Math.PI,!1,y,P[0],P[1])},fan:function(e,r){var a=this,u=a.hasFill(),c=a.hasStroke(),s=a._attrs,h=s.x,d=s.y,v=s.rs,y=s.re,m=s.startAngle,b=s.endAngle,w=s.clockwise,P=[e-h,r-d],S=f.vec2.angleTo([1,0],P);function O(){var E=l.arc.nearAngle(S,m,b,w);if(f.isNumberEqual(S,E)){var _=f.vec2.squaredLength(P);if(v*v<=_&&_<=y*y)return!0}return!1}function A(){var E=a.getHitLineWidth(),_={x:Math.cos(m)*v+h,y:Math.sin(m)*v+d},C={x:Math.cos(m)*y+h,y:Math.sin(m)*y+d},k={x:Math.cos(b)*v+h,y:Math.sin(b)*v+d},T={x:Math.cos(b)*y+h,y:Math.sin(b)*y+d};return!!(p.line(_.x,_.y,C.x,C.y,E,e,r)||p.line(k.x,k.y,T.x,T.y,E,e,r)||p.arcline(h,d,v,m,b,w,E,e,r)||p.arcline(h,d,y,m,b,w,E,e,r))}return u&&c?O()||A():u?O():!!c&&A()},image:function(e,r){var a=this._attrs;if(this.get("toDraw")||!a.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===a.img||this._setAttrImg();var u=a.x,c=a.y,s=a.width,h=a.height;return p.rect(u,c,s,h,e,r)},line:function(e,r){var a=this._attrs,u=a.x1,c=a.y1,s=a.x2,h=a.y2,d=this.getHitLineWidth();return!!this.hasStroke()&&p.line(u,c,s,h,d,e,r)},path:function(e,r){var a=this,u=a.get("segments"),c=a.hasFill(),s=a.hasStroke();function h(){if(!f.isEmpty(u)){for(var d=a.getHitLineWidth(),v=0,y=u.length;v=3&&v.push(h[0]),p.polyline(v,d,e,r)}return u&&c?o(e,r,a)||s():u?o(e,r,a):!!c&&s()},polyline:function(e,r){var a=this._attrs;if(this.hasStroke()){var u=a.points;if(u.length<2)return!1;var c=a.lineWidth;return p.polyline(u,c,e,r)}return!1},rect:function(e,r){var a=this,u=a.hasFill(),c=a.hasStroke();function s(){var h=a._attrs,d=h.x,v=h.y,y=h.width,m=h.height,b=h.radius,w=a.getHitLineWidth();if(b===0){var P=w/2;return p.line(d-P,v,d+y+P,v,w,e,r)||p.line(d+y,v-P,d+y,v+m+P,w,e,r)||p.line(d+y+P,v+m,d-P,v+m,w,e,r)||p.line(d,v+m+P,d,v-P,w,e,r)}return p.line(d+b,v,d+y-b,v,w,e,r)||p.line(d+y,v+b,d+y,v+m-b,w,e,r)||p.line(d+y-b,v+m,d+b,v+m,w,e,r)||p.line(d,v+m-b,d,v+b,w,e,r)||p.arcline(d+y-b,v+b,b,1.5*Math.PI,2*Math.PI,!1,w,e,r)||p.arcline(d+y-b,v+m-b,b,0,.5*Math.PI,!1,w,e,r)||p.arcline(d+b,v+m-b,b,.5*Math.PI,Math.PI,!1,w,e,r)||p.arcline(d+b,v+b,b,Math.PI,1.5*Math.PI,!1,w,e,r)}return u&&c?o(e,r,a)||s():u?o(e,r,a):!!c&&s()},text:function(e,r){var a=this.getBBox();if(this.hasFill()||this.hasStroke())return p.box(a.minX,a.maxX,a.minY,a.maxY,e,r)}};M.exports={isPointInPath:function(e,r){var a=n[this.type];return!!a&&a.call(this,e,r)}}},function(M,x,g){var f=g(58);f.Arc=g(638),f.Circle=g(637),f.Dom=g(636),f.Ellipse=g(635),f.Fan=g(634),f.Image=g(633),f.Line=g(632),f.Marker=g(611),f.Path=g(631),f.Polygon=g(630),f.Polyline=g(629),f.Rect=g(628),f.Text=g(627),M.exports=f},function(M,x,g){var f=g(19),p={delay:"delay",rotate:"rotate"},l={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};M.exports={animate:function(o,n,t,e,r){r===void 0&&(r=0),this.set("animating",!0);var a=this.get("timeline");a||(a=this.get("canvas").get("timeline"),this.setSilent("timeline",a));var u=this.get("animators")||[];a._timer||a.initTimer(),f.isNumber(e)&&(r=e,e=null),f.isFunction(t)?(e=t,t="easeLinear"):t=t||"easeLinear";var c=function(h,d){var v={matrix:null,attrs:{}},y=d._attrs;for(var m in h)if(m==="transform")v.matrix=f.transform(d.getMatrix(),h[m]);else if(m==="rotate")v.matrix=f.transform(d.getMatrix(),[["r",h[m]]]);else if(m==="matrix")v.matrix=h[m];else{if(l[m]&&/^[r,R,L,l]{1}[\s]*\(/.test(h[m]))continue;p[m]||y[m]===h[m]||(v.attrs[m]=h[m])}return v}(o,this),s={fromAttrs:function(h,d){var v={},y=d._attrs;for(var m in h.attrs)v[m]=y[m];return v}(c,this),toAttrs:c.attrs,fromMatrix:f.clone(this.getMatrix()),toMatrix:c.matrix,duration:n,easing:t,callback:e,delay:r,startTime:a.getTime(),id:f.uniqueId()};u.length>0?u=function(h,d){var v=d.delay,y=Object.prototype.hasOwnProperty;return f.each(d.toAttrs,function(m,b){f.each(h,function(w){v2*Math.PI&&(n=n/180*Math.PI),this.transform([["t",-t,-e],["r",n],["t",t,e]])},move:function(n,t){var e=this.get("x")||0,r=this.get("y")||0;return this.translate(n-e,t-r),this.set("x",n),this.set("y",t),this},transform:function(n){var t=this,e=this._attrs.matrix;return f.each(n,function(r){switch(r[0]){case"t":t.translate(r[1],r[2]);break;case"s":t.scale(r[1],r[2]);break;case"r":t.rotate(r[1]);break;case"m":t.attr("matrix",f.mat3.multiply([],e,r[1])),t.clearTotalMatrix()}}),t},setTransform:function(n){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(n)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(n){return this.attr("matrix",n),this.clearTotalMatrix(),this},apply:function(n,t){var e;return e=t?this._getMatrixByRoot(t):this.attr("matrix"),f.vec3.transformMat3(n,n,e),this},_getMatrixByRoot:function(n){n=n||this;for(var t=this,e=[];t!==n;)e.unshift(t),t=t.get("parent");e.unshift(t);var r=[1,0,0,0,1,0,0,0,1];return f.each(e,function(a){f.mat3.multiply(r,a.attr("matrix"),r)}),r},getTotalMatrix:function(){var n=this._cfg.totalMatrix;if(!n){n=[1,0,0,0,1,0,0,0,1];var t=this._cfg.parent;t&&i(n,t.getTotalMatrix()),i(n,this.attr("matrix")),this._cfg.totalMatrix=n}return n},clearTotalMatrix:function(){},invert:function(n){var t=this.getTotalMatrix();if(l(t))n[0]/=t[0],n[1]/=t[4];else{var e=f.mat3.invert([],t);e&&f.vec3.transformMat3(n,n,e)}return this},resetTransform:function(n){var t=this.attr("matrix");p(t)||n.transform(t[0],t[1],t[3],t[4],t[6],t[7])}}},function(M,x,g){var f=g(19);M.exports={canFill:!1,canStroke:!1,initAttrs:function(l){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(f.assign(this.getDefaultAttrs(),l)),this},getDefaultAttrs:function(){return{}},attr:function(l,i){if(arguments.length===0)return this._attrs;if(f.isObject(l)){for(var o in l)this._setAttr(o,l[o]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return arguments.length===2?(this._setAttr(l,i),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[l]},_setAttr:function(l,i){var o=this._attrs;o[l]=i,l!=="fill"&&l!=="stroke"?l!=="opacity"?l==="clip"&&i?this._setClip(i):l==="path"&&this._afterSetAttrPath?this._afterSetAttrPath(i):l!=="transform"?l==="rotate"&&this.rotateAtStart(i):this.transform(i):o.globalAlpha=i:o[l+"Style"]=i},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(l){l._cfg.renderer=this._cfg.renderer,l._cfg.canvas=this._cfg.canvas,l._cfg.parent=this._cfg.parent,l.hasFill=function(){return!0}}}},function(M,x,g){var f=g(19),p=g(643),l=g(642),i=g(741),o=g(740),n=function t(e){t.superclass.constructor.call(this,e)};n.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},f.extend(n,l),f.augment(n,{init:function(){n.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(e,r){if(e){if(!f.isEmpty(e._getEvents()))return e;var a=e.get("parent");if(a&&!r.propagationStopped)return this.getEmitter(a,r)}},_getEventObj:function(e,r,a,u){var c=new p(e,r,!0,!0);return c.x=a.x,c.y=a.y,c.clientX=r.clientX,c.clientY=r.clientY,c.currentTarget=u,c.target=u,c},_triggerEvent:function(e,r){var a,u=this.getPointByClient(r.clientX,r.clientY),c=this.getShape(u.x,u.y,r),s=this.get("el");if(e==="mousemove"){var h=this.get("preShape");if(h&&h!==c){var d=this._getEventObj("mouseleave",r,u,h);(a=this.getEmitter(h,r))&&a.emit("mouseleave",d),s.style.cursor="default"}if(c){var v=this._getEventObj("mousemove",r,u,c);if((a=this.getEmitter(c,r))&&a.emit("mousemove",v),h!==c){var y=this._getEventObj("mouseenter",r,u,c);a&&a.emit("mouseenter",y,r)}}else{var m=this._getEventObj("mousemove",r,u,this);this.emit("mousemove",m)}this.set("preShape",c)}else{var b=this._getEventObj(e,r,u,c||this);(a=this.getEmitter(c,r))&&a!==this&&a.emit(e,b),this.emit(e,b)}c&&!c.get("destroyed")&&(s.style.cursor=c.attr("cursor")||"default")},_registEvents:function(){var e=this,r=e.get("el");f.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],function(a){r.addEventListener(a,function(u){e._triggerEvent(a,u)},!1)}),r.addEventListener("touchstart",function(a){f.isEmpty(a.touches)||e._triggerEvent("touchstart",a.touches[0])},!1),r.addEventListener("touchmove",function(a){f.isEmpty(a.touches)||e._triggerEvent("touchmove",a.touches[0])},!1),r.addEventListener("touchend",function(a){f.isEmpty(a.changedTouches)||e._triggerEvent("touchend",a.changedTouches[0])},!1)},_scale:function(){if(this._cfg.renderType!=="svg"){var e=this.get("pixelRatio");this.scale(e,e)}},_setGlobalParam:function(){var e=this.get("renderer")||"canvas";e==="svg"?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",f.getRatio()),this._cfg.renderType=e;var r=o[e];this._cfg.renderer=r,this._cfg.canvas=this;var a=new i(this);this._cfg.timeline=a},_setContainer:function(){var e=this.get("containerId"),r=this.get("containerDOM");r||(r=document.getElementById(e),this.set("containerDOM",r)),f.modifyCSS(r,{position:"relative"})},_initPainter:function(){var e=this.get("containerDOM"),r=new this._cfg.renderer.painter(e);this._cfg.painter=r,this._cfg.canvasDOM=this._cfg.el=r.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var e=this.get("canvasDOM"),r=this.get("widthCanvas"),a=this.get("heightCanvas"),u=this.get("widthStyle"),c=this.get("heightStyle");e.style.width=u,e.style.height=c,e.setAttribute("width",r),e.setAttribute("height",a)},getWidth:function(){var e=this.get("pixelRatio");return this.get("width")*e},getHeight:function(){var e=this.get("pixelRatio");return this.get("height")*e},changeSize:function(e,r){var a=this.get("pixelRatio"),u=e*a,c=r*a;this.set("widthCanvas",u),this.set("heightCanvas",c),this.set("widthStyle",e+"px"),this.set("heightStyle",r+"px"),this.set("width",e),this.set("height",r),this._resize()},getPointByClient:function(e,r){var a=this.get("el"),u=this.get("pixelRatio")||1,c=a.getBoundingClientRect();return{x:(e-c.left)*u,y:(r-c.top)*u}},getClientByPoint:function(e,r){var a=this.get("el").getBoundingClientRect(),u=this.get("pixelRatio")||1;return{clientX:e/u+a.left,clientY:r/u+a.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(e,r,a){return arguments.length===3&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,e,r,a):n.superclass.getShape.call(this,e,r)},getRenderer:function(){return this._cfg.renderType},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var e=this._cfg,r=e.containerDOM,a=e.canvasDOM;a&&r&&r.removeChild(a),e.timeline.stop(),n.superclass.destroy.call(this)}}),M.exports=n},function(M,x,g){var f=g(248),p={};g(257).mix(p,f.PathUtil,{getRectPath:f.PathUtil.rectPath,pointsToPolygon:function(i){for(var o=[["M",i[0].x,i[0].y]],n=1;nf?(l&&(clearTimeout(l),l=null),t=u,n=g.apply(i,o),l||(i=o=null)):l||p.trailing===!1||(l=setTimeout(e,c)),n};return r.cancel=function(){clearTimeout(l),t=0,l=i=o=null},r}},function(M,x,g){var f=g(46),p=g(596),l=Object.prototype.hasOwnProperty;M.exports=function(i,o){if(i===null||!p(i))return{};var n={};return f(o,function(t){l.call(i,t)&&(n[t]=i[t])}),n}},function(M,x,g){var f=g(46),p=g(118);M.exports=function(l,i){if(!p(l))return l;var o=[];return f(l,function(n,t){o.push(i(n,t))}),o}},function(M,x,g){var f=g(84),p=g(614);M.exports=function(l,i,o){return f(o)?!!o(l,i):p(l,i)}},function(M,x,g){var f=g(118);M.exports=function(p,l){if(!f(p))return-1;var i=Array.prototype.indexOf;if(i)return i.call(p,l);for(var o=-1,n=0;n0)){p[o]=l[o];break}i=f(i,p[o-1],1)}p[o]=["Q"].concat(i.reduce(function(n,t){return n.concat(t)},[]));break;case"T":p[o]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(!(o>0)){p[o]=l[o];break}i=f(i,p[o-1],2)}p[o]=["C"].concat(i.reduce(function(n,t){return n.concat(t)},[]));break;case"S":if(i.length<2){if(!(o>0)){p[o]=l[o];break}i=f(i,p[o-1],1)}p[o]=["S"].concat(i.reduce(function(n,t){return n.concat(t)},[]));break;default:p[o]=l[o]}return p}},function(M,x,g){var f=g(46);M.exports=function(p,l){if(p.length!==l.length)return!1;var i=!0;return f(p,function(o,n){if(o!==l[n])return i=!1,!1}),i}},function(M,x,g){var f=g(770);function p(l,i,o){var n=null,t=o;return i=0;h--)r=e[h].index,e[h].type==="add"?l.splice(r,0,[].concat(l[r])):l.splice(r,1)}if((n=l.length)=3&&(y.length===3&&m.push("Q"),m=m.concat(y[1])),y.length===2&&m.push("L"),m=m.concat(y[y.length-1])})}(p,l,i));else{var n=[].concat(p);n[0]==="M"&&(n[0]="L");for(var t=0;t<=i-1;t++)o.push(n)}return o}M.exports=function(p,l){if(p.length===1)return p;var i=p.length-1,o=l.length-1,n=i/o,t=[];if(p.length===1&&p[0][0]==="M"){for(var e=0;e1?1:P<0?0:P)/2,O=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],A=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],E=0,_=0;_<12;_++){var C=S*O[_]+S,k=i(C,s,d,y,b),T=i(C,h,v,m,w),I=k*k+T*T;E+=A[_]*Math.sqrt(I)}return S*E},n=function(s,h,d,v,y,m,b,w){if(!(Math.max(s,d)Math.max(y,b)||Math.max(h,v)Math.max(m,w))){var P=(s-d)*(m-w)-(h-v)*(y-b);if(P){var S=((s*v-h*d)*(y-b)-(s-d)*(y*w-m*b))/P,O=((s*v-h*d)*(m-w)-(h-v)*(y*w-m*b))/P,A=+S.toFixed(2),E=+O.toFixed(2);if(!(A<+Math.min(s,d).toFixed(2)||A>+Math.max(s,d).toFixed(2)||A<+Math.min(y,b).toFixed(2)||A>+Math.max(y,b).toFixed(2)||E<+Math.min(h,v).toFixed(2)||E>+Math.max(h,v).toFixed(2)||E<+Math.min(m,w).toFixed(2)||E>+Math.max(m,w).toFixed(2)))return{x:S,y:O}}}},t=function(s,h,d){return h>=s.x&&h<=s.x+s.width&&d>=s.y&&d<=s.y+s.height},e=function(s,h,d,v){return s===null&&(s=h=d=v=0),h===null&&(h=s.y,d=s.width,v=s.height,s=s.x),{x:s,y:h,width:d,w:d,height:v,h:v,x2:s+d,y2:h+v,cx:s+d/2,cy:h+v/2,r1:Math.min(d,v)/2,r2:Math.max(d,v)/2,r0:Math.sqrt(d*d+v*v)/2,path:p(s,h,d,v),vb:[s,h,d,v].join(" ")}},r=function(s,h,d,v,y,m,b,w){f(s)||(s=[s,h,d,v,y,m,b,w]);var P=function(S,O,A,E,_,C,k,T){for(var I=[],R=[[],[]],F=void 0,j=void 0,B=void 0,H=void 0,et=0;et<2;++et)if(et===0?(j=6*S-12*A+6*_,F=-3*S+9*A-9*_+3*k,B=3*A-3*S):(j=6*O-12*E+6*C,F=-3*O+9*E-9*C+3*T,B=3*E-3*O),Math.abs(F)<1e-12){if(Math.abs(j)<1e-12)continue;(H=-B/j)>0&&H<1&&I.push(H)}else{var Q=j*j-4*B*F,J=Math.sqrt(Q);if(!(Q<0)){var K=(-j+J)/(2*F);K>0&&K<1&&I.push(K);var nt=(-j-J)/(2*F);nt>0&&nt<1&&I.push(nt)}}for(var st=I.length,V=st,tt=void 0;st--;)tt=1-(H=I[st]),R[0][st]=tt*tt*tt*S+3*tt*tt*H*A+3*tt*H*H*_+H*H*H*k,R[1][st]=tt*tt*tt*O+3*tt*tt*H*E+3*tt*H*H*C+H*H*H*T;return R[0][V]=S,R[1][V]=O,R[0][V+1]=k,R[1][V+1]=T,R[0].length=R[1].length=V+2,{min:{x:Math.min.apply(0,R[0]),y:Math.min.apply(0,R[1])},max:{x:Math.max.apply(0,R[0]),y:Math.max.apply(0,R[1])}}}.apply(null,s);return e(P.min.x,P.min.y,P.max.x-P.min.x,P.max.y-P.min.y)},a=function(s,h,d,v,y,m,b,w,P){var S=1-P,O=Math.pow(S,3),A=Math.pow(S,2),E=P*P,_=E*P,C=s+2*P*(d-s)+E*(y-2*d+s),k=h+2*P*(v-h)+E*(m-2*v+h),T=d+2*P*(y-d)+E*(b-2*y+d),I=v+2*P*(m-v)+E*(w-2*m+v);return{x:O*s+3*A*P*d+3*S*P*P*y+_*b,y:O*h+3*A*P*v+3*S*P*P*m+_*w,m:{x:C,y:k},n:{x:T,y:I},start:{x:S*s+P*d,y:S*h+P*v},end:{x:S*y+P*b,y:S*m+P*w},alpha:90-180*Math.atan2(C-T,k-I)/Math.PI}},u=function(s,h,d){if(!function(Q,J){return Q=e(Q),J=e(J),t(J,Q.x,Q.y)||t(J,Q.x2,Q.y)||t(J,Q.x,Q.y2)||t(J,Q.x2,Q.y2)||t(Q,J.x,J.y)||t(Q,J.x2,J.y)||t(Q,J.x,J.y2)||t(Q,J.x2,J.y2)||(Q.xJ.x||J.xQ.x)&&(Q.yJ.y||J.yQ.y)}(r(s),r(h)))return d?0:[];for(var v=~~(o.apply(0,s)/8),y=~~(o.apply(0,h)/8),m=[],b=[],w={},P=d?0:[],S=0;S=0&&H<=1&&et>=0&&et<=1&&(d?P++:P.push({x:B.x,y:B.y,t1:H,t2:et}))}}return P};M.exports=function(c,s){return function(h,d,v){h=l(h),d=l(d);for(var y=void 0,m=void 0,b=void 0,w=void 0,P=void 0,S=void 0,O=void 0,A=void 0,E=void 0,_=void 0,C=v?0:[],k=0,T=h.length;kt&&(n=r,t=e)}),n}}},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p>0}},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p%2!=0}},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p<0}},function(M,x,g){var f=g(236),p=Number.isInteger?Number.isInteger:function(l){return f(l)&&l%1==0};M.exports=p},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p%2==0}},function(M,x,g){var f=g(236);M.exports=function(p){return f(p)&&p%1!=0}},function(M,x){M.exports=function(g,f){var p=f.toString(),l=p.indexOf(".");if(l===-1)return Math.round(g);var i=p.substr(l+1).length;return i>20&&(i=20),parseFloat(g.toFixed(i))}},function(M,x,g){var f=g(673);M.exports={clamp:g(618),fixedBase:g(788),isDecimal:g(787),isEven:g(786),isInteger:g(785),isNegative:g(784),isNumberEqual:f,isOdd:g(783),isPositive:g(782),maxBy:g(781),minBy:g(780),mod:g(672),snapEqual:f,toDegree:g(671),toInt:g(670),toInteger:g(670),toRadian:g(669)}},function(M,x,g){var f=g(45);M.exports=function(p){var l=0,i=0,o=0,n=0;return f(p)?p.length===1?l=i=o=n=p[0]:p.length===2?(l=o=p[0],i=n=p[1]):p.length===3?(l=p[0],i=n=p[1],o=p[2]):(l=p[0],i=p[1],o=p[2],n=p[3]):l=i=o=n=p,{r1:l,r2:i,r3:o,r4:n}}},function(M,x,g){var f=g(45),p=g(595),l=g(46),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;M.exports=function(n){return f(n=n||[])?n:p(n)?(n=n.match(i),l(n,function(t,e){if((t=t.match(o))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}l(t,function(a,u){isNaN(a)||(t[u]=+a)}),n[e]=t}),n):void 0}},function(M,x){var g={};M.exports=function(f){var p=g[f];if(!p){for(var l=f.toString(16),i=l.length;i<6;i++)l="0"+l;p="#"+l,g[f]=p}return p}},function(M,x,g){var f=g(792);M.exports={number2color:f,numberToColor:f,parsePath:g(791),parseRadius:g(790)}},function(M,x){M.exports=function(g,f){if(g["_wrap_"+f])return g["_wrap_"+f];var p=function(i){g[f](i)};return g["_wrap_"+f]=p,p}},function(M,x){M.exports=function(g,f){return g["_wrap_"+f]}},function(M,x,g){M.exports={getWrapBehavior:g(795),wrapBehavior:g(794)}},function(M,x,g){var f=g(237),p=g(45),l=g(46);M.exports=function(i,o){for(var n=[],t={},e=0;ea[c])return 1;if(r[c]1&&arguments[1]!==void 0?arguments[1]:[];if(f(l))for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:[];return f(l,function(o){return!p(i,o)})}},function(M,x,g){M.exports={contains:g(605),difference:g(808),find:g(807),firstValue:g(806),flatten:g(805),flattenDeep:g(804),getRange:g(803),merge:g(802),pull:g(676),pullAt:g(675),reduce:g(801),remove:g(800),sortBy:g(799),union:g(798),uniq:g(674),valuesOfKey:g(797)}},function(M,x){M.exports=function(g,f){var p=this.getStyle(g,"width",f);return p==="auto"&&(p=g.offsetWidth),parseFloat(p)}},function(M,x,g){var f=g(237);M.exports=function(p,l,i){try{return window.getComputedStyle?window.getComputedStyle(p,null)[l]:p.currentStyle[l]}catch(o){return f(i)?null:i}}},function(M,x){M.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(M,x){M.exports=function(g,f){var p=this.getWidth(g,f),l=parseFloat(this.getStyle(g,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(g,"paddingLeft"))||0,o=parseFloat(this.getStyle(g,"paddingRight"))||0;return p+l+(parseFloat(this.getStyle(g,"borderRightWidth"))||0)+i+o}},function(M,x){M.exports=function(g,f){var p=this.getHeight(g,f),l=parseFloat(this.getStyle(g,"borderTopWidth"))||0,i=parseFloat(this.getStyle(g,"paddingTop"))||0,o=parseFloat(this.getStyle(g,"paddingBottom"))||0;return p+l+(parseFloat(this.getStyle(g,"borderBottomWidth"))||0)+i+o}},function(M,x){M.exports=function(g,f){var p=this.getStyle(g,"height",f);return p==="auto"&&(p=g.offsetHeight),parseFloat(p)}},function(M,x){M.exports=function(g,f){if(g&&g.getBoundingClientRect){var p=g.getBoundingClientRect(),l=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:p.top-l,bottom:p.bottom-l,left:p.left-i,right:p.right-i}}return f||null}},function(M,x){M.exports=function(g,f,p){if(g){if(g.addEventListener)return g.addEventListener(f,p,!1),{remove:function(){g.removeEventListener(f,p,!1)}};if(g.attachEvent)return g.attachEvent("on"+f,p),{remove:function(){g.detachEvent("on"+f,p)}}}}},function(M,x,g){M.exports={addEventListener:g(817),createDom:g(681),getBoundingClientRect:g(816),getHeight:g(815),getOuterHeight:g(814),getOuterWidth:g(813),getRatio:g(812),getStyle:g(811),getWidth:g(810),modifyCSS:g(680),requestAnimationFrame:g(679)}},function(M,x,g){var f=g(46),p=g(606),l=g(818),i=g(809),o=g(796),n=g(793),t=g(789),e=g(779),r=g(778),a=g(774),u=g(768),c=g(763),s={DOMUtil:l,DomUtil:l,MatrixUtil:e,PathUtil:a,arrayUtil:i,domUtil:l,eventUtil:o,formatUtil:n,mathUtil:t,matrixUtil:e,objectUtil:r,stringUtil:u,pathUtil:a,typeUtil:c,augment:g(651),clone:g(616),debounce:g(756),deepMix:g(615),each:f,extend:g(650),filter:g(620),group:g(755),groupBy:g(648),groupToMap:g(649),indexOf:g(754),isEmpty:g(647),isEqual:g(614),isEqualWith:g(753),map:g(752),mix:p,pick:g(751),throttle:g(750),toArray:g(604),toString:g(594),uniqueId:g(646)};f([l,i,o,n,t,e,r,a,u,c],function(h){p(s,h)}),M.exports=s},function(M,x,g){var f=g(683),p=g(626),l=g(247),i=g(609),o=g(248),n={Graph:g(625),Tree:g(689),Util:g(26),Layouts:g(623),G:o,Plugins:{},Components:{},Global:l,Shape:f,registerNode:f.registerNode,registerEdge:f.registerEdge,registerGroup:f.registerGroup,registerGuide:f.registerGuide,registerBehaviour:p.registerBehaviour,version:i,track:function(e){l.track=e}};g(684),M.exports=n}])})},26857:function(N,M,x){(function(g,f){N.exports=f(x(20532))})(window,function(g){return function(f){var p={};function l(i){if(p[i])return p[i].exports;var o=p[i]={i,l:!1,exports:{}};return f[i].call(o.exports,o,o.exports,l),o.l=!0,o.exports}return l.m=f,l.c=p,l.d=function(i,o,n){l.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:n})},l.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},l.t=function(i,o){if(1&o&&(i=l(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var t in i)l.d(n,t,function(e){return i[e]}.bind(null,t));return n},l.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return l.d(o,"a",o),o},l.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},l.p="",l(l.s=267)}({266:function(p,l,i){function o(u){for(var c=1;c',v),P=e.createDOM('
',y),S=e.createDOM('
',m),O=e.createDOM('
',b);s.appendChild(w),w.appendChild(O),w.appendChild(S),w.appendChild(P),this.minimapContainer=w,this.background=P,this.viewPort=S,this.controlLayer=O},c.renderViewPort=function(s){if(s||(s=this.getGraph()),s.getItems().length!==0){var h=this.viewportWindow,d=this.viewportCanvas,v=this.viewportBack,y=this.miniMapMatrix,m=s.getWidth(),b=s.getHeight(),w=this.width,P=this.height,S=s.getMatrix();if(y){var O=e.invertMatrix({x:0,y:0},S),A=e.invertMatrix({x:m,y:b},S),E=e.applyMatrix(O,y),_=e.applyMatrix(A,y),C=_.x-E.x,k=_.y-E.y;v.attr({path:[["M",0,0],["L",w,0],["L",w,P],["L",0,P],["L",0,0],["M",E.x,E.y],["L",E.x,_.y],["L",_.x,_.y],["L",_.x,E.y],["L",E.x,E.y]]}),h.attr({x:E.x,y:E.y,width:C,height:k}),d.draw()}}},c.destroy=function(){this.minimapContainer.destroy()},u}();p.exports=a},267:function(p,l,i){function o(r,a,u){return a in r?Object.defineProperty(r,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[a]=u,r}var n=i(3),t=i(266),e=function(){function r(u){this.options=u}var a=r.prototype;return a.init=function(){var u=this.graph,c=new t(function(s){for(var h=1;hT&&(E=T,w=_,P=k,S=C)}}return{verticalPoint:P,index:w,vertical:S}}function h(m,b,w){var P,S,O,A=function(k){if(!k)return{x:void 0,y:void 0};var T=k.getBBox();return{x:T.centerX,y:T.centerY}}(b),E=m.getLinkPoints(A)[0];if(w){var _=t(m.getBBox())[w];P=m.getBBox(),S=_,O={x:b.getBBox().centerX,y:b.getBBox().centerY},((P.centerX-S.x)*(P.centerX-O.x)>0||(P.centerY-S.y)*(P.centerY-O.y)>0)&&(E=_)}E=e(E,m.getBBox());var C=b.getLinkPoints(E.point)[0];return{sourcePoint:E,targetPoint:C=e(C,b.getBBox())}}function d(m,b,w){return u(b,w)?m.minX>b[w].x?1:m.maxXb[w].y?1:m.maxYk-100&&c.mat3.translate(A,A,[0,k-100-T[1]]),T[0]>C-100&&c.mat3.translate(A,A,[C-100-T[0],0]),!0}},{key:"setSignal",value:function(A,E){this.get("_signals")[A]=E}},{key:"getSignal",value:function(A){return this.get("_signals")[A]}},{key:"setController",value:function(A,E){this.get("_controllers")[A]=E}},{key:"getController",value:function(A){return this.get("_controllers")[A]}},{key:"destroy",value:function(){var A=this.get("_graph"),E=this.get("_controllers");c.each(E,function(_){_.destroy()}),A.destroy()}}])&&t(P.prototype,S),O&&t(P,O),w}();c.each(y,function(b){c.mix(m.prototype,b.AUGMENT)}),f.exports=m},function(f,p,l){function i(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var o=l(6),n=l(14),t=o.createDOM("").getContext("2d");f.exports=function(e){for(var r=1;r2&&arguments[2]!==void 0?arguments[2]:320;t.font=r;var u=t.measureText(e).width;if(u>a){u=0;for(var c=1;c=a&&(e=e.substring(0,c)+` `+e.substring(c,e.length),c+=1,u=0)}return e}})},function(f,p){f.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(f,p,l){function i(u){for(var c=1;c=0&&h.item(d)!==this;);return d>-1}).call(u,c)},delegateEvent:function(u,c,s,h){return a.addEventListener(u,c,function(d){for(var v=d.target||d.srcElement;v!==u;)a.matches(v,s)&&h.call(v,Array.prototype.slice.call(arguments)),v=v.parentNode})},Palettes:e});f.exports=a},function(f,p){f.exports=g},function(f,p,l){function i(y){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(y)}function o(y){for(var m=1;m0?_.hierarchy<=2?8:2:0},getHGap:function(_){return _.hierarchy===1?8:_.hierarchy===2?24:18},getVGap:function(_){return _.hierarchy===1||_.hierarchy===2?24:2},getSide:function(_){return _.data.side?_.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:c.Tree,defaultSide:"right"},E={};return h.each(d,function(_){h.mix(E,_.CFG)}),h.mix(!0,A,E,S),(O=e(this,a(m).call(this,A))).isMind=!0,O}var b,w,P;return function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),O&&u(S,O)}(m,s),b=m,(w=[{key:"_init",value:function(){var S=this;r(a(m.prototype),"_init",this).call(this),h.each(d,function(R){R.INIT&&S[R.INIT]()});var O=this.getGraph(),A=this.get("defaultData"),E=O.get("mode"),_=O.getRootGroup().addGroup();if(this.set("hotAreaGroup",_),O.edge().shape(function(R){if(O.find(R.target).getModel().isPlaceholder)return"mind-placeholder-edge"}),A&&this.read(A),E==="default"){if(A){var C=this.getRoot(),k=O.find(C.id);this.setSelected(k,!0)}}else if(E==="readOnly"){var T=this.get("shortcut");T.append=!1,T.appendChild=!1,T.selectAll=!1,T.delete=!1}if(A){var I=this.getRoot();this.focus(I.id)}}},{key:"bindEvent",value:function(){var S=this;r(a(m.prototype),"bindEvent",this).call(this);var O=this.get("_graph");O.on("keydown",function(A){A.domEvent.preventDefault()}),O.on("beforechange",function(A){A.action==="add"?S._beforeAdd(A):A.action==="changeData"&&S._beforeChangeData(A)}),O.on("aftersource",function(){S._setHierarchy()}),O.on("afterchange",function(){S._setHotArea()}),O.on("afteritemdraw",function(A){var E=A.item,_=E.getModel();if(E.isEdge){var C=E.getGraphicGroup();h.toBack(C,C.getParent()),C.setSilent("capture",!1)}_.parent||(E.isRoot=!0,E.deleteable=!1,E.collapseExpand=!1,E.appendable=!1,E.dragable=!1)}),this.on("beforedelete",function(A){var E=A.items[0],_=S._getBrothers(E),C=S._getNth(E);_[C-1]?S.setSelected(_[C-1].id,!0):_[C+1]?S.setSelected(_[C+1].id,!0):S.setSelected(E.getParent(),!0)}),this.on("afteritemselected",function(A){S._tryAdjustViewport(A.item)})}},{key:"getRoot",value:function(){return this.getGraph().getSource().roots[0]}},{key:"_setHierarchy",value:function(S){var O=this.getGraph(),A=this.get("firstSubShape"),E=this.get("secondSubShape"),_=this.get("defaultSide");if(S){var C=O.find(S.parent);if(C){var k=C.getModel();S.hierarchy=k.hierarchy+1,S.shape!=="mind-placeholder"&&(S.hierarchy===2&&(S.shape=A,S.side||(S.side=_)),S.hierarchy===3&&(S.shape=E))}}else(S=this.getRoot()).hierarchy=1;h.traverseTree(S,function(T,I){T.hierarchy=I.hierarchy+1,T.side||(T.side=_),I.side&&(T.side=I.side),T.hierarchy===2?T.shape=A:T.hierarchy===3&&(T.shape=E)},function(T){return T.children})}},{key:"getFirstChildrenBySide",value:function(S){var O=this.getRoot(),A=[];return O.children.forEach(function(E){E.side===S&&A.push(E)}),A}},{key:"_getNth",value:function(S){return this.getGraph().getNth(S)}},{key:"_getBrothers",value:function(S){return S.getParent().getModel().children}},{key:"_getMoveChildModel",value:function(S){if(S&&S.length>0){var O=S.length;return S[parseInt(O/2)]}}},{key:"_getVerticalMoveItem",value:function(S,O,A){for(var E,_=this.getGraph().getNodes(),C=S.getBBox(),k=[C.minX,C.maxX],T=[],I=0;I0&&(T.sort(function(H,et){return H.long-et.long}),E=T[0].node),E}},{key:"_arrowTopItem",value:function(S){var O=this._getBrothers(S),A=this._getNth(S);return O[A-1]?O[A-1]:this._getVerticalMoveItem(S,function(E,_,C){return E.centerY<_.centerY&&C<=E.maxX&&C>=E.minX},function(E,_){return _.centerY-E.centerY})}},{key:"_arrowBottomItem",value:function(S){var O=this._getBrothers(S),A=this._getNth(S);return O[A+1]?O[A+1]:this._getVerticalMoveItem(S,function(E,_,C){return E.centerY>_.centerY&&C<=E.maxX&&C>=E.minX},function(E,_){return E.centerY-_.centerY})}},{key:"_arrowLeftItem",value:function(S){var O=h.getMindNodeSide(S);if(S.isRoot){var A=this.getFirstChildrenBySide("left");return this._getMoveChildModel(A)}if(O==="left"){var E=S.getModel().children;return this._getMoveChildModel(E)}return S.getParent()}},{key:"_arrowRightItem",value:function(S){var O=h.getMindNodeSide(S);if(S.isRoot){var A=this.getFirstChildrenBySide("right");return this._getMoveChildModel(A)}if(O==="right"){var E=S.getModel().children;return this._getMoveChildModel(E)}return S.getParent()}},{key:"_moveItemSelection",value:function(S){var O=this.getGraph(),A=this.getSelected()[0];if(A){var E,_=S.domEvent,C=h.getKeyboradKey(_);C!=="ArrowUp"||A.isRoot?C!=="ArrowDown"||A.isRoot?C==="ArrowLeft"?E=this._arrowLeftItem(A):C==="ArrowRight"&&(E=this._arrowRightItem(A)):E=this._arrowBottomItem(A):E=this._arrowTopItem(A),E&&(E=O.find(E.id)).isVisible()&&(this.clearSelected(),this.setSelected(E,!0))}}},{key:"showLabelEditor",value:function(S){var O=S.domEvent,A=this.getSelected()[0],E=h.getKeyboradKey(O);if(A&&E.length===1&&!O.metaKey&&!O.ctrlKey){var _=this.get("labelTextArea");A&&(this.beginEditLabel(A),_.innerHTML=E,h.setEndOfContenteditable(_))}}},{key:"_tryAdjustViewport",value:function(S){var O=this.get("_graph"),A=S.getBBox(),E={x:A.minX,y:A.minY},_={x:A.maxX,y:A.maxY},C=O.getDomPoint(E),k=O.getDomPoint(_),T=O.getWidth(),I=O.getHeight();C.x<0&&O.translate(16-C.x,0),C.y<0&&O.translate(0,16-C.y),k.x>T&&O.translate(T-k.x-16,0),k.y>I&&O.translate(0,I-k.y-16)}},{key:"_beforeChangeData",value:function(S){var O=S.data.roots[0],A=this.get("rootShape");O.shape=A,this._setHierarchy(O)}},{key:"_beforeAdd",value:function(S){var O=this.get("_graph"),A=S.model,E=O.find(A.parent);E.getModel().collapsed&&O.update(E,{collapsed:!1}),this._setHierarchy(A)}},{key:"_drawHotAreaShape",value:function(){var S=this.get("_graph"),O=this.get("hotAreaGroup"),A=this.get("hotAreas");O.clear(),A.forEach(function(E){O.addShape("rect",{attrs:{x:E.minX,y:E.minY,width:E.maxX-E.minX,height:E.maxY-E.minY,fill:E.color,fillOpacity:.4},capture:!1})}),S.draw()}},{key:"_setHotArea",value:function(){var S=[],O=this.get("_graph"),A=this.getRoot(),E="placeholder",_=this.get("showHotArea"),C=O.find(A.id).getBBox();S.push({minX:C.minX-90,minY:C.minY-60,maxX:(C.minX+C.maxX)/2,maxY:C.maxY+60,parent:A,current:A,id:A.id+"left"+E,nth:A.children.length,side:"left",color:"orange"}),S.push({minX:(C.minX+C.maxX)/2,minY:C.minY-60,maxX:C.maxX+90,maxY:C.maxY+60,parent:A,current:A,id:A.id+"right"+E,nth:A.children.length,side:"right",color:"pink"}),h.traverseTree(A,function(k,T,I){var R=O.find(k.id);if(!k.isPlaceholder&&R&&R.isVisible()){var F=function(nt,st,V){var tt=V.children,$=nt;if(!V.parent)for(;tt[$]&&tt[$].side!==st.side;)$++;for(;tt[$]&&tt[$].isPlaceholder;)$++;if(tt[$]&&tt[$].side===st.side)return tt[$]}(I+1,k,T),j=function(nt,st,V){var tt=V.children,$=nt;if(!V.parent)for(;tt[$]&&tt[$].side!==st.side;)$--;for(;tt[$]&&tt[$].isPlaceholder;)$--;if(tt[$]&&tt[$].side===st.side)return tt[$]}(I-1,k,T),B=O.find(k.id).getBBox(),H=T.children,et=k.hierarchy===2&&k.side==="right",Q=k.hierarchy===2&&k.side==="left";if(j||S.push({minX:et?B.minX-90:B.minX,minY:function(){var nt=j?B.minY:B.minY-16;return H[I-1]&&H[I-1].isPlaceholder&&H[I-1].side===k.side&&(nt=O.find(H[I-1].id).getBBox().minY),nt}(),maxX:Q?B.maxX+90:B.maxX,maxY:(B.minY+B.maxY)/2,parent:T,id:(j?j.id:void 0)+k.id+T.id+E,side:k.side,color:"yellow",nth:I}),F){var J=O.find(F.id).getBBox();S.push({minX:k.side==="left"?Math.max(B.minX,J.minX):et?B.minX-90:B.minX,minY:(B.minY+B.maxY)/2,maxX:k.side==="right"?Math.min(B.maxX,J.maxX):Q?B.maxX+90:B.maxX,maxY:(J.minY+J.maxY)/2,parent:T,id:k.id+(F?F.id:void 0)+T.id+E,side:k.side,color:"blue",nth:I+1})}else S.push({minX:et?B.minX-90:B.minX,minY:(B.minY+B.maxY)/2,maxX:Q?B.maxX+90:B.maxX,maxY:function(){var nt=B.maxY+16;return H[I+1]&&H[I+1].isPlaceholder&&H[I+1].side===k.side&&(nt=O.find(H[I+1].id).getBBox().maxY),nt}(),parent:T,id:k.id+void 0+T.id+E,color:"red",nth:I+1,addOrder:"push",side:k.side});if(!k.children||k.children.length===0||k.children.length===1&&k.children[0].isPlaceholder){var K;K=k.x>T.x?{minX:B.maxX,minY:B.minY-0,maxX:B.maxX+100,maxY:B.maxY+0}:{minX:B.minX-100,minY:B.minY-0,maxX:B.minX,maxY:B.maxY+0},S.push(o({},K,{parent:k,id:NaN+k.id+E,nth:0,color:"green",side:k.side,addOrder:"push"}))}}},function(k){return k.children}),this.set("hotAreas",S),_&&this._drawHotAreaShape()}},{key:"hideHotArea",value:function(){var S=this.get("_graph");this.get("hotAreaGroup").clear(),S.draw(),this.set("showHotArea",!1)}},{key:"showHotArea",value:function(){this._drawHotAreaShape(),this.set("showHotArea",!0)}},{key:"getHotArea",value:function(S){var O;return this.get("hotAreas").forEach(function(A){if(S.x>A.minX&&S.xA.minY&&S.y
',{visibility:"hidden",width:b+"px",height:w+"px",position:"absolute"});return O.setAttribute("draggable","true"),c.addEventListener(O,"dragstart",function(){var A=O.hoverNode,E={shape:"bpmn-base",source:A.id,anchorIndex:O.getAttribute("anchorIndex")},_=A.getBBox(),C=P.getDelegation([{isEdge:!0}]);P.setSignal("dragEdge",!0),P.beginAdd("edge",E),P.set("addEdgeConfig",{addModel:E,delegation:C,startPoint:{x:_.centerX,y:_.centerY},sourceItem:A}),P.hideArrowController()}),S.push(O),O}},{key:"showArrowController",value:function(b){this.get("arrowController").controllers.forEach(function(w){w.show(),w.hoverNode=b})}},{key:"hideArrowController",value:function(){this.get("arrowController").controllers.forEach(function(b){b.hide()})}},{key:"_initArrowController",value:function(){var b=this.getGraph().getGraphContainer(),w=this.get("arrowController"),P=w.thickness,S=w.long,O=this._createArrowController(P,S),A=this._createArrowController(P,S),E=this._createArrowController(S,P),_=this._createArrowController(S,P);b.appendChild(O),b.appendChild(A),b.appendChild(E),b.appendChild(_),w.topArrow=O,w.bottomArrow=A,w.leftArrow=E,w.rightArrow=_}},{key:"bindEvent",value:function(){var b=this;t(e(d.prototype),"bindEvent",this).call(this);var w=this.getGraph();w.on("beforepanitem",function(){b.hideArrowController()}),w.on("afterviewportchange",function(){b.hideArrowController()})}}])&&o(v.prototype,y),m&&o(v,m),d}();u.setRegister(s,"bpmn","diagram"),f.exports=s},function(f,p,l){function i(b){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(b)}function o(b,w){for(var P=0;P0}function r(d){var v=d.getCurrentPage();this.snapShot=v.save(),this.selectedItems=v.getSelected().map(function(y){return y.id}),this.method&&(n.isString(this.method)?v[this.method]():this.method(d))}function a(d){var v=d.getCurrentPage();v.read(this.snapShot),v.setSelected(this.selectedItems,!0)}function u(d){return d.getCurrentPage().getMode()!==this.toMode}function c(d){var v=d.getCurrentPage();this.fromMode=v.getMode(),v.changeMode(this.toMode)}function s(d){d.getCurrentPage().changeMode(this.fromMode)}function h(d){var v={},y=[];return d.forEach(function(m){var b=m.model,w=n.mix(!0,{},i({},b,{id:n.guid()}));v[b.id]=w.id,y.push(i({},m,{model:w}))}),y.forEach(function(m){var b=m.model;if(b.parent){var w=v[b.parent];w?b.parent=w:delete b.parent}}),y.sort(function(m,b){return m.index-b.index}),y}t.list=[],t.registerCommand=function(d,v,y){if(t[d])n.mix(t[d],v);else{var m=i({enable:function(){return!0},init:function(){},execute:r,back:a,shortcutCodes:void 0,executeTimes:1,name:d,queue:!0},v);y&&t[y]&&(m=n.mix({},t[y],v)),t[d]=m,t.list.push(m)}},t.execute=function(d,v,y){var m=n.mix(!0,{},t[d],y),b=v.get("_command");return m.enable(v)&&(m.init(),m.queue&&(b.queue.splice(b.current,b.queue.length-b.current,m),b.current+=1),v.emit("beforecommandexecute",{command:m}),m.execute(v),v.emit("aftercommandexecute",{command:m}),v.setCommandDOMenable()),m},t.enable=function(d,v){return t[d].enable(v)},t.registerCommand("common",{back:a}),t.registerCommand("copyAdjacent",{enable:function(){return this.copyNode&&this.copyNode.isNode&&this.x&&this.y},execute:function(d){var v=this.copyNode,y=d.getCurrentPage(),m=y.getGraph(),b=v.getModel(),w=n.clone(b);w.id=n.guid(),w.x=this.x,w.y=this.y;var P=m.add("node",w),S=m.add("edge",{source:b.id,target:w.id});this.executeTimes===1&&(this.addIds=[P.id,S.id],this.page=y)},back:function(){var d=this.page.getGraph();this.addIds.forEach(function(v){d.remove(v)})}}),t.registerCommand("add",{enable:function(){return this.type&&this.addModel},execute:function(d){var v=d.getCurrentPage(),y=v.getGraph().add(this.type,this.addModel);this.executeTimes===1&&(this.addId=y.id,this.page=v)},back:function(){this.page.getGraph().remove(this.addId)}}),t.registerCommand("update",{enable:function(){return this.itemId&&this.updateModel},execute:function(d){var v=d.getCurrentPage(),y=v.getGraph(),m=y.find(this.itemId);this.executeTimes===1&&(this.originModel=n.getContrast(m.getModel(),this.updateModel),this.page=v),y.update(m,this.updateModel)},back:function(){var d=this.page.getGraph(),v=d.find(this.itemId);d.update(v,this.originModel)}}),t.registerCommand("redo",{queue:!1,enable:function(d){var v=d.get("_command"),y=v.queue;return v.current0},execute:function(d){var v=d.get("_command"),y=v.queue[v.current-1];y.executeTimes++,y.back(d),v.current-=1},shortcutCodes:[["metaKey","z"],["ctrlKey","z"]]}),t.registerCommand("copy",{queue:!1,enable:e,method:function(d){var v=d.getCurrentPage().getSelected(),y=d.get("_command"),m=v.map(function(w){return w.getGraphicGroup()}),b=n.getChildrenBBox(m);y.clipboard=[],v.forEach(function(w){n.traverseTree(w,function(P){var S=P.getModel(),O=P.getGraphicGroup();y.clipboard.push({type:P.type,index:n.getIndex(O),model:S})},function(P){return P.getChildren&&P.getChildren()},!0)}),d.set("copyCenterBox",i({},b))}}),t.registerCommand("pasteHere",{enable:function(d){return d.get("_command").clipboard.length>0},method:function(d){var v=d.getCurrentPage(),y=d.get("_command"),m=this.pasteData?this.pasteData:h(y.clipboard),b=this.copyCenterBox?this.copyCenterBox:d.get("copyCenterBox"),w=this.contextmenuPoint?this.contextmenuPoint:d.get("contextmenuPoint");v.clearSelected(),this.copyCenterBox=n.clone(b),this.pasteData=n.clone(m),this.contextmenuPoint=n.clone(w),m.forEach(function(P){var S=P.model;S.x&&(S.x+=w.x-b.minX),S.y&&(S.y+=w.y-b.minY),v.add(P.type,S)})},back:a}),t.registerCommand("paste",{enable:function(d){return d.get("_command").clipboard.length>0},method:function(d){var v=d.getCurrentPage(),y=d.get("_command"),m=this.pasteData?this.pasteData:h(y.clipboard);v.clearSelected(),this.pasteData=n.clone(m),m.forEach(function(b){var w=b.model;w.x&&(w.x+=10),w.y&&(w.y+=10),v.add(b.type,w)})},back:a}),t.registerCommand("addGroup",{init:function(){this.addGroupId=n.guid()},enable:function(d){return d.getCurrentPage().getSelected().length>1},method:function(d){d.getCurrentPage().addGroup({id:this.addGroupId})},back:a}),t.registerCommand("unGroup",{enable:function(d){var v=d.getCurrentPage().getSelected();return v.length===1&&v[0].isGroup},method:"unGroup",back:a}),t.registerCommand("delete",{getDeleteItems:function(d){var v=d.getCurrentPage(),y=v.getGraph(),m=this.itemIds?this.itemIds.map(function(b){return y.find(b)}):v.getSelected();return m=m.filter(function(b){return b.deleteable!==!1})},enable:function(d){return this.getDeleteItems(d).length>0},method:function(d){var v=d.getCurrentPage(),y=this.getDeleteItems(d),m=v.getGraph();v.emit("beforedelete",{items:y}),n.each(y,function(b){m.remove(b)}),v.emit("afterdelete",{items:y}),this.itemIds=y.map(function(b){return b.getModel().id})},back:a,shortcutCodes:["Delete","Backspace"]}),t.registerCommand("selectAll",{method:function(d){var v=d.getCurrentPage();v.getGraph().getItems().forEach(function(y){v.setSelected(y,!0)})},back:a,shortcutCodes:[["metaKey","a"]]}),t.registerCommand("toBack",{enable:e,method:"toBack",back:a}),t.registerCommand("toFront",{enable:e,method:"toFront",back:a}),t.registerCommand("clear",{enable:function(d){return d.getCurrentPage().getItems().length>0},method:"clear",back:a}),t.registerCommand("multiSelect",{enable:u,toMode:"multiSelect",execute:c,back:s}),t.registerCommand("move",{enable:u,toMode:"move",execute:c,back:s}),f.exports=t},function(f,p,l){f.exports=l(2)},function(f,p,l){"use strict";l.r(p),l.d(p,"mouseEnterEdge",function(){return o}),l.d(p,"mouseLeaveEdge",function(){return n}),l.d(p,"startMove",function(){return t}),l.d(p,"endMove",function(){return e}),l.d(p,"mouseMoveEdge",function(){return r}),l.d(p,"mergeLine",function(){return a});var i=l(0);function o(u){var c=u.graph,s=u.bpmn,h=u.ev,d=u.backUpCursor,v=h.item,y=v.model.controlPoints,m=Object(i.e)({x:h.x,y:h.y},y),b=m.index,w=m.vertical;b!=null&&(d&&(v._cursor=s.getGraph().getMouseEventWrapper().style.cursor),c.update(v,{hold:{index:b,vertical:w}}),w?s.css({cursor:"col-resize"}):s.css({cursor:"row-resize"}))}function n(u){var c=u.graph,s=u.bpmn,h=u.item;h._cursor&&s.css({cursor:h._cursor}),delete h._cursor,c.update(h,{hold:void 0})}function t(u,c){var s=c.item;u.update(s,{lastMouse:{x:c.x,y:c.y}})}function e(u){var c=u.graph,s=u.item;c.update(s,{lastMouse:void 0,moveDelta:void 0})}function r(u,c,s){var h;h=c.model&&c.model.hold&&c.model.hold.vertical?{x:s.x-c.model.lastMouse.x,y:0}:{x:0,y:s.y-c.model.lastMouse.y},u.update(c,{edgeMoved:h,modifiedByMouse:!0})}function a(u,c,s){var h,d=u.model,v=c||d.hold.index,y=d.controlPoints;s===null&&(s=d.hold.vertical);var m=[];return v>=2&&(s?Math.abs(y[v-2].x-y[v].x)<=3&&(h=[{x:y[v-2].x,y:y[v-2].y},{x:y[v-2].x,y:y[v+1].y}],m.push(v-1,v),d.hold.index=v-2,d.controlPoints[v+1].x=y[v-2].x):Math.abs(y[v-2].y-y[v].y)<=3&&(h=[{x:y[v-2].x,y:y[v-2].y},{x:y[v+1].x,y:y[v-2].y}],m.push(v-1,v),d.hold.index=v-2,d.controlPoints[v+1].y=y[v-2].y)),v<=y.length-4&&(s?Math.abs(y[v].x-y[v+2].x)<=3&&(h?(h[1]={x:y[v-2].x,y:y[v+3].y},d.controlPoints[v+3].x=y[v-2].x):(h=[{x:y[v+3].x,y:y[v].y},{x:y[v+3].x,y:y[v+3].y}],d.controlPoints[v].x=y[v+3].x),m.push(v+1,v+2)):Math.abs(y[v].y-y[v+2].y)<=3&&(h?(h[1]={x:y[v+3].x,y:y[v-2].y},d.controlPoints[v+3].y=y[v-2].y):(h=[{x:y[v].x,y:y[v+3].y},{x:y[v+3].x,y:y[v+3].y}],d.controlPoints[v].y=y[v+3].y),m.push(v+1,v+2))),m&&m.length&&y.splice(m[0],m.length),h}},function(f,p,l){function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(s)}function o(s,h){return!h||i(h)!=="object"&&typeof h!="function"?function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(s):h}function n(s){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(s)}function t(s,h){for(var d=0;d2&&arguments[2]!==void 0&&arguments[2];return n.getEdges().filter(function(r){var a=r.getModel();return a.target===t.id||e&&a.source===t.id})},object2array:function(n){var t=[];return o.each(n,function(e){t.push(e)}),t}})},function(f,p,l){function i(c){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var h=0;hsatellite"},bindEvent:function(){return[]}}}},{key:"_renderDOM",value:function(){var y=a.createDOM(this.render(this.diagram));return this.dom=y,y.isSatellite=!0,y}},{key:"getDOM",value:function(){return this.dom||this._renderDOM()}},{key:"init",value:function(){var y=this.getDOM(),m=this.diagram.getGraph().getGraphContainer();y&&(y.css({position:"absolute",visibility:"hidden"}),m.appendChild(y),y&&this.bindEvent(y,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 this.getDOM().style.visibility!=="hidden"}},{key:"destroy",value:function(){var y=this.events;y&&y.forEach(function(m){m.remove()})}}])&&o(h.prototype,d),v&&o(h,v),s}();f.exports=u},function(f,p,l){f.exports=l(2)},function(f,p,l){var i=l(26),o=l(6),n=l(15);l(7),i.Editor=i,i.Util=o,i.Diagram=l(16),i.Page=l(1),i.Flow=l(95),i.Koni=l(102),i.Mind=l(107),i.Toolbar=l(121),i.Contextmenu=l(122),i.Command=l(15),i.BPMN=l(123),i.registerBehaviour=i.Page.registerBehaviour,i.registerNode=i.Page.registerNode,i.registerEdge=i.Page.registerEdge,i.registerGroup=i.Page.registerGroup,i.registerGuide=i.Page.registerGuide,i.registerCommand=n.registerCommand,f.exports=i},function(f,p,l){function i(s){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(s)}function o(s,h){for(var d=0;d0;w-=1){var P=b.toHsv(),S=(0,n.default)({h:h(P,w,!0),s:d(P,w,!0),v:v(P,w,!0)}).toHexString();m.push(S)}m.push(b.toHexString());for(var O=1;O<=s;O+=1){var A=b.toHsv(),E=(0,n.default)({h:h(A,O),s:d(A,O),v:v(A,O)}).toHexString();m.push(E)}return m};var i,o=l(31),n=(i=o)&&i.__esModule?i:{default:i},t=2,e=16,r=5,a=5,u=15,c=5,s=4;function h(y,m,b){var w=void 0;return(w=Math.round(y.h)>=60&&Math.round(y.h)<=240?b?Math.round(y.h)-t*m:Math.round(y.h)+t*m:b?Math.round(y.h)+t*m:Math.round(y.h)-t*m)<0?w+=360:w>=360&&(w-=360),w}function d(y,m,b){if(y.h===0&&y.s===0)return y.s;var w=void 0;return(w=b?Math.round(100*y.s)-e*m:m===s?Math.round(100*y.s)+e:Math.round(100*y.s)+r*m)>100&&(w=100),b&&m===c&&w>10&&(w=10),w<6&&(w=6),w}function v(y,m,b){return b?Math.round(100*y.v)+a*m:Math.round(100*y.v)-u*m}},function(f,p,l){var i;(function(o){var n=/^\s+/,t=/\s+$/,e=0,r=o.round,a=o.min,u=o.max,c=o.random;function s(Y,L){if(L=L||{},(Y=Y||"")instanceof s)return Y;if(!(this instanceof s))return new s(Y,L);var D=function(G){var U={r:0,g:0,b:0},X=1,q=null,ut=null,rt=null,at=!1,pt=!1;typeof G=="string"&&(G=function(lt){lt=lt.replace(n,"").replace(t,"").toLowerCase();var it,dt=!1;if(R[lt])lt=R[lt],dt=!0;else if(lt=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(it=$.rgb.exec(lt))?{r:it[1],g:it[2],b:it[3]}:(it=$.rgba.exec(lt))?{r:it[1],g:it[2],b:it[3],a:it[4]}:(it=$.hsl.exec(lt))?{h:it[1],s:it[2],l:it[3]}:(it=$.hsla.exec(lt))?{h:it[1],s:it[2],l:it[3],a:it[4]}:(it=$.hsv.exec(lt))?{h:it[1],s:it[2],v:it[3]}:(it=$.hsva.exec(lt))?{h:it[1],s:it[2],v:it[3],a:it[4]}:(it=$.hex8.exec(lt))?{r:et(it[1]),g:et(it[2]),b:et(it[3]),a:nt(it[4]),format:dt?"name":"hex8"}:(it=$.hex6.exec(lt))?{r:et(it[1]),g:et(it[2]),b:et(it[3]),format:dt?"name":"hex"}:(it=$.hex4.exec(lt))?{r:et(it[1]+""+it[1]),g:et(it[2]+""+it[2]),b:et(it[3]+""+it[3]),a:nt(it[4]+""+it[4]),format:dt?"name":"hex8"}:(it=$.hex3.exec(lt))?{r:et(it[1]+""+it[1]),g:et(it[2]+""+it[2]),b:et(it[3]+""+it[3]),format:dt?"name":"hex"}:!1}(G)),typeof G=="object"&&(ot(G.r)&&ot(G.g)&&ot(G.b)?(gt=G.r,z=G.g,Z=G.b,U={r:255*B(gt,255),g:255*B(z,255),b:255*B(Z,255)},at=!0,pt=String(G.r).substr(-1)==="%"?"prgb":"rgb"):ot(G.h)&&ot(G.s)&&ot(G.v)?(q=J(G.s),ut=J(G.v),U=function(lt,it,dt){lt=6*B(lt,360),it=B(it,100),dt=B(dt,100);var yt=o.floor(lt),wt=lt-yt,Mt=dt*(1-it),At=dt*(1-wt*it),xt=dt*(1-(1-wt)*it),St=yt%6;return{r:255*[dt,At,Mt,Mt,xt,dt][St],g:255*[xt,dt,dt,At,Mt,Mt][St],b:255*[Mt,Mt,xt,dt,dt,At][St]}}(G.h,q,ut),at=!0,pt="hsv"):ot(G.h)&&ot(G.s)&&ot(G.l)&&(q=J(G.s),rt=J(G.l),U=function(lt,it,dt){var yt,wt,Mt;function At(Et,Pt,Ot){return Ot<0&&(Ot+=1),Ot>1&&(Ot-=1),Ot<1/6?Et+6*(Pt-Et)*Ot:Ot<.5?Pt:Ot<2/3?Et+(Pt-Et)*(2/3-Ot)*6:Et}if(lt=B(lt,360),it=B(it,100),dt=B(dt,100),it===0)yt=wt=Mt=dt;else{var xt=dt<.5?dt*(1+it):dt+it-dt*it,St=2*dt-xt;yt=At(St,xt,lt+1/3),wt=At(St,xt,lt),Mt=At(St,xt,lt-1/3)}return{r:255*yt,g:255*wt,b:255*Mt}}(G.h,q,rt),at=!0,pt="hsl"),G.hasOwnProperty("a")&&(X=G.a));var gt,z,Z;return X=j(X),{ok:at,format:G.format||pt,r:a(255,u(U.r,0)),g:a(255,u(U.g,0)),b:a(255,u(U.b,0)),a:X}}(Y);this._originalInput=Y,this._r=D.r,this._g=D.g,this._b=D.b,this._a=D.a,this._roundA=r(100*this._a)/100,this._format=L.format||D.format,this._gradientType=L.gradientType,this._r<1&&(this._r=r(this._r)),this._g<1&&(this._g=r(this._g)),this._b<1&&(this._b=r(this._b)),this._ok=D.ok,this._tc_id=e++}function h(Y,L,D){Y=B(Y,255),L=B(L,255),D=B(D,255);var G,U,X=u(Y,L,D),q=a(Y,L,D),ut=(X+q)/2;if(X==q)G=U=0;else{var rt=X-q;switch(U=ut>.5?rt/(2-X-q):rt/(X+q),X){case Y:G=(L-D)/rt+(L>1)+720)%360;--L;)G.h=(G.h+U)%360,X.push(s(G));return X}function I(Y,L){L=L||6;for(var D=s(Y).toHsv(),G=D.h,U=D.s,X=D.v,q=[],ut=1/L;L--;)q.push(s({h:G,s:U,v:X})),X=(X+ut)%1;return q}s.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 Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,L,D,G=this.toRgb();return Y=G.r/255,L=G.g/255,D=G.b/255,.2126*(Y<=.03928?Y/12.92:o.pow((Y+.055)/1.055,2.4))+.7152*(L<=.03928?L/12.92:o.pow((L+.055)/1.055,2.4))+.0722*(D<=.03928?D/12.92:o.pow((D+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=r(100*this._a)/100,this},toHsv:function(){var Y=d(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=d(this._r,this._g,this._b),L=r(360*Y.h),D=r(100*Y.s),G=r(100*Y.v);return this._a==1?"hsv("+L+", "+D+"%, "+G+"%)":"hsva("+L+", "+D+"%, "+G+"%, "+this._roundA+")"},toHsl:function(){var Y=h(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=h(this._r,this._g,this._b),L=r(360*Y.h),D=r(100*Y.s),G=r(100*Y.l);return this._a==1?"hsl("+L+", "+D+"%, "+G+"%)":"hsla("+L+", "+D+"%, "+G+"%, "+this._roundA+")"},toHex:function(Y){return v(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(L,D,G,U,X){var q=[Q(r(L).toString(16)),Q(r(D).toString(16)),Q(r(G).toString(16)),Q(K(U))];return X&&q[0].charAt(0)==q[0].charAt(1)&&q[1].charAt(0)==q[1].charAt(1)&&q[2].charAt(0)==q[2].charAt(1)&&q[3].charAt(0)==q[3].charAt(1)?q[0].charAt(0)+q[1].charAt(0)+q[2].charAt(0)+q[3].charAt(0):q.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:r(this._r),g:r(this._g),b:r(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+r(this._r)+", "+r(this._g)+", "+r(this._b)+")":"rgba("+r(this._r)+", "+r(this._g)+", "+r(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:r(100*B(this._r,255))+"%",g:r(100*B(this._g,255))+"%",b:r(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+r(100*B(this._r,255))+"%, "+r(100*B(this._g,255))+"%, "+r(100*B(this._b,255))+"%)":"rgba("+r(100*B(this._r,255))+"%, "+r(100*B(this._g,255))+"%, "+r(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(F[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var L="#"+y(this._r,this._g,this._b,this._a),D=L,G=this._gradientType?"GradientType = 1, ":"";if(Y){var U=s(Y);D="#"+y(U._r,U._g,U._b,U._a)}return"progid:DXImageTransform.Microsoft.gradient("+G+"startColorstr="+L+",endColorstr="+D+")"},toString:function(Y){var L=!!Y;Y=Y||this._format;var D=!1,G=this._a<1&&this._a>=0;return L||!G||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(D=this.toRgbString()),Y==="prgb"&&(D=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(D=this.toHexString()),Y==="hex3"&&(D=this.toHexString(!0)),Y==="hex4"&&(D=this.toHex8String(!0)),Y==="hex8"&&(D=this.toHex8String()),Y==="name"&&(D=this.toName()),Y==="hsl"&&(D=this.toHslString()),Y==="hsv"&&(D=this.toHsvString()),D||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(Y,L){var D=Y.apply(null,[this].concat([].slice.call(L)));return this._r=D._r,this._g=D._g,this._b=D._b,this.setAlpha(D._a),this},lighten:function(){return this._applyModification(P,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(Y,L){return Y.apply(null,[this].concat([].slice.call(L)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},s.fromRatio=function(Y,L){if(typeof Y=="object"){var D={};for(var G in Y)Y.hasOwnProperty(G)&&(D[G]=G==="a"?Y[G]:J(Y[G]));Y=D}return s(Y,L)},s.equals=function(Y,L){return!(!Y||!L)&&s(Y).toRgbString()==s(L).toRgbString()},s.random=function(){return s.fromRatio({r:c(),g:c(),b:c()})},s.mix=function(Y,L,D){D=D===0?0:D||50;var G=s(Y).toRgb(),U=s(L).toRgb(),X=D/100;return s({r:(U.r-G.r)*X+G.r,g:(U.g-G.g)*X+G.g,b:(U.b-G.b)*X+G.b,a:(U.a-G.a)*X+G.a})},s.readability=function(Y,L){var D=s(Y),G=s(L);return(o.max(D.getLuminance(),G.getLuminance())+.05)/(o.min(D.getLuminance(),G.getLuminance())+.05)},s.isReadable=function(Y,L,D){var G,U,X=s.readability(Y,L);switch(U=!1,(G=function(q){var ut,rt;return ut=((q=q||{level:"AA",size:"small"}).level||"AA").toUpperCase(),rt=(q.size||"small").toLowerCase(),ut!=="AA"&&ut!=="AAA"&&(ut="AA"),rt!=="small"&&rt!=="large"&&(rt="small"),{level:ut,size:rt}}(D)).level+G.size){case"AAsmall":case"AAAlarge":U=X>=4.5;break;case"AAlarge":U=X>=3;break;case"AAAsmall":U=X>=7}return U},s.mostReadable=function(Y,L,D){var G,U,X,q,ut=null,rt=0;U=(D=D||{}).includeFallbackColors,X=D.level,q=D.size;for(var at=0;atrt&&(rt=G,ut=s(L[at]));return s.isReadable(Y,ut,{level:X,size:q})||!U?ut:(D.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],D))};var R=s.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"},F=s.hexNames=function(Y){var L={};for(var D in Y)Y.hasOwnProperty(D)&&(L[Y[D]]=D);return L}(R);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function B(Y,L){(function(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1})(Y)&&(Y="100%");var D=function(G){return typeof G=="string"&&G.indexOf("%")!=-1}(Y);return Y=a(L,u(0,parseFloat(Y))),D&&(Y=parseInt(Y*L,10)/100),o.abs(Y-L)<1e-6?1:Y%L/parseFloat(L)}function H(Y){return a(1,u(0,Y))}function et(Y){return parseInt(Y,16)}function Q(Y){return Y.length==1?"0"+Y:""+Y}function J(Y){return Y<=1&&(Y=100*Y+"%"),Y}function K(Y){return o.round(255*parseFloat(Y)).toString(16)}function nt(Y){return et(Y)/255}var st,V,tt,$=(V="[\\s|\\(]+("+(st="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+st+")[,|\\s]+("+st+")\\s*\\)?",tt="[\\s|\\(]+("+st+")[,|\\s]+("+st+")[,|\\s]+("+st+")[,|\\s]+("+st+")\\s*\\)?",{CSS_UNIT:new RegExp(st),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+tt),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+tt),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+tt),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 ot(Y){return!!$.CSS_UNIT.exec(Y)}f.exports?f.exports=s:(i=function(){return s}.call(p,l,p,f))===void 0||(f.exports=i)})(Math)},function(f,p,l){var i=l(18);function o(t){var e=t.getCurrentPage();this.matrixCache=e.getMatrix().slice(0),this._zoom(t),e.updateStatus()}function n(t){t.getCurrentPage().updateMatrix(this.matrixCache)}i.registerCommand("zoomTo",{_zoom:function(t){t.getCurrentPage().zoom(Number(this.zoom))},queue:!1,execute:o,back:n}),i.registerCommand("zoomIn",{enable:function(t){var e=t.getCurrentPage(),r=e.getMaxZoom(),a=e.getMinZoom(),u=e.getZoom();return u=u&&(c=u),e.zoom(c)},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","="],["ctrlKey","="]]}),i.registerCommand("zoomOut",{enable:function(t){var e=t.getCurrentPage(),r=e.getMaxZoom(),a=e.getMinZoom(),u=e.getZoom();return u>a||u===r},_zoom:function(t){var e=t.getCurrentPage(),r=e.getZoom(),a=e.getMinZoom(),u=r-t.get("_command").zoomDelta;u<=a&&(u=a),e.zoom(u)},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","-"],["ctrlKey","-"]]}),i.registerCommand("autoZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().autoZoom()},queue:!1,execute:o,back:n}),i.registerCommand("resetZoom",{enable:function(){return!0},_zoom:function(t){t.getCurrentPage().resetZoom()},queue:!1,execute:o,back:n,shortcutCodes:[["metaKey","0"],["ctrlKey","0"]]})},function(f,p,l){var i=l(18);i.registerCommand("collapseExpand",{getItem:function(o){var n=o.getCurrentPage(),t=n.getGraph();return this.itemId?t.find(this.itemId):n.getSelected()[0]},enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0},execute:function(o){var n=o.getCurrentPage(),t=n.getGraph(),e=this.getItem(o);e.getModel().collapsed?(t.update(e,{collapsed:!1}),e.getInnerEdges&&e.getInnerEdges().forEach(function(r){r.update()}),this.toCollapsed=!1):(t.update(e,{collapsed:!0}),this.toCollapsed=!0),n.clearSelected(),n.setSelected(e,!0),this.executeTimes===1&&(this.itemId=e.id)},back:function(o){var n=o.getCurrentPage(),t=n.getGraph(),e=this.getItem(o);this.toCollapsed?t.update(e,{collapsed:!1}):t.update(e,{collapsed:!0}),n.clearSelected(),n.setSelected(e,!0)},shortcutCodes:[["metaKey","/"],["ctrlKey","/"]]}),i.registerCommand("collapse",{enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0&&!n.getModel().collapsed}},"collapseExpand"),i.registerCommand("expand",{enable:function(o){var n=this.getItem(o);return n&&n.collapseExpand!==!1&&n.getChildren().length>0&&n.getModel().collapsed}},"collapseExpand")},function(f,p,l){function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=l(4),n={INIT:"_initGraph"};n.AUGMENT={_initGraph:function(){var t=this.get("graph"),e=new(this.get("graphConstructor"))(function(r){for(var a=1;a
',{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"});t.getGraphContainer().appendChild(e),e.on("blur",function(r){r.stopPropagation(),!t.destroyed&&n.endEditLabel()}),e.on("keydown",function(r){r.stopPropagation();var a=i.getKeyboradKey(r);(r.metaKey&&a==="s"||r.ctrlKey&&a==="s")&&r.preventDefault(),a!=="Enter"&&a!=="Escape"||n.endEditLabel()}),this.set("labelTextArea",e),t.on("beforeviewportchange",function(){e.focusItem&&n.setLabelEditorBeginPosition(e.focusItem)})}},_getLabelTextAreaBox:function(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];t&&n.attr("text",t);var r=this.getGraph().getRootGroup(),a=i.getBBox(n,r);return{minX:a.minX-e[1],minY:a.minY-e[0],maxX:a.maxX+e[1],maxY:a.maxY+e[0]}},setLabelEditorBeginPosition:function(n){var t=this.get("labelTextArea"),e=n.getLabel();if(e){var r=this._getLabelTextAreaBox(e),a=e.attr("lineHeight"),u=e.attr("fontSize"),c={x:r.minX,y:r.minY-a/4+u/4-1,width:r.maxX-r.minX,height:r.maxY-r.minY};t.css({top:c.y+"px",left:c.x+"px"}),t.labelPoint=c}else{var s=this.getGraph().getRootGroup(),h=n.getKeyShape(),d=i.getBBox(h,s),v={x:d.minY+(d.maxY-d.minY-t.height())/2,y:(d.minX+d.maxX)/2};t.css({top:v.x+"px",left:v.y+"px"}),t.labelPoint=v}},beginEditLabel:function(n){var t=this.get("labelTextArea"),e=this.getGraph();if(i.isString(n)&&(n=e.find(n)),n&&!n.destroyed&&t){this.setSignal("preventWheelPan",!0);var r=n.getModel(),a=n.getLabel(),u=e.getZoom();if(t.focusItem=n,a){var c=a.attr("lineHeight"),s=this._getLabelTextAreaBox(a),h=(s.maxX-s.minX)/u,d=(s.maxY-s.minY+c/4)/u;t.innerHTML=r.label,t.innerHTML=r.label,t.css({"min-width":h+"px","min-height":d+"px",visibility:"visible","font-family":a.attr("fontFamily"),"line-height":c+"px","font-size":a.attr("fontSize")+"px",transform:"scale("+u+")"})}else t.innerHTML="",t.css({"min-width":"auto","min-height":"auto"});this.setLabelEditorBeginPosition(n),t.css({visibility:"visible"}),t.focus(),document.execCommand("selectAll",!1,null)}},endEditLabel:function(){var n=this.get("labelTextArea");if(this.setSignal("preventWheelPan",!1),n){var t=n.focusItem;if(t){var e=t.getModel(),r=this.editor;e.label!==n.textContent&&r.executeCommand("update",{action:"updateLabel",itemId:t.id,updateModel:{label:n.textContent}}),n.hide(),n.focusItem=void 0,this.focusGraphWrapper()}}}},f.exports=o},function(f,p){var l={AUGMENT:{updateStatus:function(){var i,o=this.getSelected();o.length===0?i="canvas-selected":o.length===1?o[0].isNode?i="node-selected":o[0].isEdge?i="edge-selected":o[0].isGroup&&(i="group-selected"):i="multi-selected",this.emit("statuschange",{status:i})}}};f.exports=l},function(f,p,l){l(45),l(46),l(47),l(48),l(49),l(50),l(51),l(52),l(53),l(54),l(55),l(56),l(57),l(58),l(59),l(60),l(61),l(62)},function(f,p,l){var i=l(3),o=l(4);i.registerBehaviour("panBlank",o.getPanCanvasBehaviour(!0))},function(f,p,l){l(3).registerBehaviour("hoverButton",function(i){i.getGraph().behaviourOn("mouseenter",function(o){i.getSignal("panningItem")||o.shape&&o.shape.isButton&&i.css({cursor:"pointer"})})})},function(f,p,l){var i=l(3),o=l(4);i.registerBehaviour("panCanvas",o.getPanCanvasBehaviour())},function(f,p,l){var i=l(3),o=l(14),n=l(4);i.registerBehaviour("wheelChangeViewport",function(t){var e,r=t.getGraph();r.behaviourOn("wheel",function(a){a.domEvent.preventDefault()}),r.behaviourOn("wheel",n.throttle(function(a){if(!t.getSignal("preventWheelPan")){var u=a.domEvent,c=t.getSignal("wheelZoom");if(e||t.setCapture(!1),c){var s=u.wheelDelta;if(Math.abs(s)>10){var h=r.getMatrix()[0];s>0?r.zoom({x:a.x,y:a.y},1.05*h):r.zoom({x:a.x,y:a.y},h*(1/1.05))}}else{var d=[],v=r.getMatrix();n.mat3.translate(d,v,[u.wheelDeltaX*o.wheelPanRatio,u.wheelDeltaY*o.wheelPanRatio]),t.translateLimt(d)&&r.updateMatrix(d)}e&&clearTimeout(e),e=setTimeout(function(){t.setCapture(!0),e=void 0},50)}},16))})},function(f,p,l){l(3).registerBehaviour("processPanItem",function(i){var o=i.getGraph();o.behaviourOn("mousemove",function(n){var t=i.get("panItemDelegation");if(t){var e=i.get("panItemStartPoint"),r=i.get("panItemStartBox"),a=n.x-e.x,u=n.y-e.y,c=i.align({x:r.minX+a,y:r.minY+u},{width:r.width,height:r.height});t.attr({x:c.x,y:c.y}),o.emit("itempanning",n),o.draw()}})})},function(f,p,l){l(3).registerBehaviour("startPanItem",function(i){var o=i.getGraph(),n=o.getRootGroup();o.behaviourOn("dragstart",function(t){if(t.button!==2&&t.item&&(t.item.isNode||t.item.isGroup)){var e,r=t.item;if((e=(e=r.isSelected?i.getSelected():[r]).filter(function(c){return c.isNode||c.isGroup}))[0]&&e[0].dragable!==!1){o.emit("beforepanitem",{items:e}),o.emit("beforeshowdelegation",{items:e});var a=i.getDelegation(e,n),u=a.getBBox();i.setSignal("panningItem",!0),i.set("panItems",e),i.set("panItemDelegation",a),i.set("panItemStartBox",u),i.set("panItemStartPoint",{x:t.x,y:t.y}),o.draw()}}})})},function(f,p,l){l(3).registerBehaviour("endPanItem",function(i){var o=i.getGraph();o.behaviourOn("panitemend",function(){var n=i.get("panItemDelegation");n&&(n.remove(),o.draw()),i.setSignal("panningItem",!1),i.set("panItemDelegation",void 0),i.set("panItemStartPoint",void 0),i.set("panItemStartBox",void 0),i.set("panItems",void 0)}),o.behaviourOn("canvas:mouseleave",function(){i.get("panItems")&&(i.clearAlignLine(),o.emit("panitemend"))})})},function(f,p,l){l(3).registerBehaviour("dblclickItemEditLabel",function(i){i.getGraph().behaviourOn("node:dblclick",function(o){o.shape&&!o.shape.isButton&&i.beginEditLabel(o.item)})})},function(f,p,l){l(3).registerBehaviour("clickCanvasSelected",function(i){var o=i.getGraph();o.behaviourOn("click",function(n){n.shape||(i.clearSelected(),i.clearActived(),i.updateStatus())}),o.behaviourOn("contextmenu",function(n){n.shape||(i.clearSelected(),i.clearActived(),i.updateStatus())})})},function(f,p,l){l(3).registerBehaviour("clickCollapsedButton",function(i){var o=i.getGraph();o.behaviourOn("click",function(n){var t=n.item,e=n.shape;if(t&&e&&e.isCollapsedButton){var r=i.editor;r?r.executeCommand("collapseExpand",{itemId:t.id}):o.update(t,{collapsed:!0})}})})},function(f,p,l){l(3).registerBehaviour("clickEdgeSelected",function(i){i.getGraph().behaviourOn("edge:click",function(o){i.get("multiSelectable")&&i.getSignal("shiftKeyDown")===!0||(i.clearActived(),i.clearSelected()),i.setSelected(o.item.id,!0)})})},function(f,p,l){l(3).registerBehaviour("clickExpandedButton",function(i){var o=i.getGraph();o.behaviourOn("click",function(n){var t=n.item,e=n.shape;if(t&&e&&e.isExpandedButton){var r=i.editor;r?r.executeCommand("collapseExpand",{itemId:t.id}):o.update(t,{collapsed:!1})}})})},function(f,p,l){l(3).registerBehaviour("clickGroupSelected",function(i){i.getGraph().behaviourOn("group:click",function(o){i.get("multiSelectable")&&i.getSignal("shiftKeyDown")===!0||(i.clearActived(),i.clearSelected()),i.setSelected(o.item.id,!0)})})},function(f,p,l){l(3).registerBehaviour("clickNodeSelected",function(i){i.getGraph().behaviourOn("node:click",function(o){i.get("multiSelectable")&&i.getSignal("shiftKeyDown")===!0||(i.clearActived(),i.clearSelected()),i.setSelected(o.item.id,!0)})})},function(f,p,l){l(3).registerBehaviour("hoverNodeActived",function(i){var o,n=i.getGraph();n.behaviourOn("node:mouseenter",function(t){t.item.getShapeObj().panAble!==!1&&i.css({cursor:"move"}),i.getSignal("panningItem")||i.getSignal("dragEdge")||t.item&&t.item.isSelected||(o=t.item,i.setActived(o,!0))}),n.behaviourOn("node:mouseleave",function(t){var e=t.toShape;o&&(e&&e.isAnchor&&e.getItem()===o||i.getSignal("dragEdge")||(o.isSelected||i.setActived(o,!1),o=void 0))})})},function(f,p,l){l(3).registerBehaviour("hoverGroupActived",function(i){var o=i.getGraph();o.behaviourOn("mouseenter",function(n){i.getSignal("panningItem")||n.item&&n.item.isSelected||i.getSignal("dragEdge")||n.shape&&n.shape.isGroupKeyShape&&(i.css({cursor:"move"}),i.setActived(n.item,!0))}),o.behaviourOn("group:mouseleave",function(n){n.item.isActived&&!n.item.isSelected&&i.setActived(n.item,!1)})})},function(f,p,l){l(3).registerBehaviour("hoverEdgeActived",function(i){var o=i.getGraph();o.behaviourOn("edge:mouseenter",function(n){i.getSignal("panningItem")||n.item&&n.item.isSelected||i.getSignal("dragEdge")||i.setActived(n.item,!0)}),o.behaviourOn("edge:mouseleave",function(n){i.setActived(n.item,!1)})})},function(f,p,l){l(3).registerBehaviour("keydownCmdWheelZoom",function(i){var o=i.getGraph();o.behaviourOn("keydown",function(n){n.domEvent.keyCode===91&&i.setSignal("wheelZoom",!0)}),o.behaviourOn("keyup",function(n){n.domEvent.keyCode===91&&i.setSignal("wheelZoom",!1)})})},function(f,p,l){var i=l(22);f.exports={dragingEdgeEndPoint:function(o){var n=o.endPointType,t=o.edgeModel,e=o.graph,r=o.delegation,a=o.startPoint,u=o.ev,c=o.source,s=o.target,h=u.item,d=n==="source"?[u,a]:[a,u];h&&(n==="source"?s=h:c=h);var v=e.getShapeObj("edge",t).getPathByPoints({points:d,source:c,target:s});r.attr("path",v),e.draw()},panGroup:function(o,n,t,e){var r=o.getModel();i.traverseTree(o,function(a){if(a.type==="node"){var u=a.getModel();e.update(a,{x:u.x+n,y:u.y+t})}o.getCrossEdges&&o.getCrossEdges().forEach(function(c){c.update()})},function(a){return a.type==="group"?a.getChildren():[]}),e.update(o,{x:r.x+n,y:r.y+t})},dropUpdateEdge:function(o){var n=o.ev,t=o.endPointType,e=o.model,r=o.diagram,a=r.get("noEndEdge"),u=r.get("linkAnchor"),c=r.get("linkNode"),s=n.item,h=n.shape,d=n.x,v=n.y;if(r.getGraph().emit("beforedropedge"),h){if(u&&h.isAnchor&&h.hasHotspot){var y=h,m=y.getItem();return t==="target"?(e.target=m.id,e.targetAnchor=y.getIndex(),!0):(e.source=m.id,e.sourceAnchor=y.getIndex(),!0)}if(c&&s&&s.isNode)return t==="target"?(e.target=s.id,!0):(e.source=s.id,!0)}else if(a)return t==="target"?(e.target={x:d,y:v},!0):(e.source={x:d,y:v},!0);return!1}}},function(f,p){f.exports={rectRectCrossAlgorithm:function(l,i){var o=Math.max(l.minX,i.minX),n=Math.max(l.minY,i.minY),t=Math.min(l.maxX,i.maxX),e=Math.min(l.maxY,i.maxY);return o>t||n>e},euclideanDistance:{pointPoint:function(l,i){var o=Math.pow(l.x-i.x,2)+Math.pow(l.y-i.y,2);return Math.sqrt(o)}}}},function(f,p,l){var i={},o=l(2);i.AUGMENT={changeAddEdgeModel:function(n){this.set("addEdgeModel",n)},cancelAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},beginAdd:function(n,t){this.set("addType",n),this.set("addModel",t),this.changeMode("add")},endAdd:function(){this.set("addType",void 0),this.set("addModel",void 0),this.changeMode("default")},delete:function(){var n=this.getSelected(),t=this.get("_graph");o.each(n,function(e){t.remove(e)})},toBack:function(){var n=this.getSelected(),t=this.get("_graph");n.sort(function(e,r){var a=e.getGraphicGroup(),u=r.getGraphicGroup();return o.getIndex(u)-o.getIndex(a)}),n.forEach(function(e){t.toBack(e)})},toFront:function(){var n=this.getSelected(),t=this.get("_graph");n.sort(function(e,r){var a=e.getGraphicGroup(),u=r.getGraphicGroup();return o.getIndex(a)-o.getIndex(u)}),n.forEach(function(e){t.toFront(e)})},addGroup:function(n){var t,e=this.get("_graph"),r=this.getSelected(),a=!0;if(r.length!==0){n||(n={label:"\u65B0\u5EFA\u5206\u7EC4"}),o.setId(n),e.add("group",n),e.toFront(n.id);var u=e.find(n.id);if(r.forEach(function(s){var h=s.getParent();h&&(t?t!==h&&(a=!1):t=h)}),a){t&&(n.parent=t.getModel().id),r.forEach(function(s){e.update(s,{parent:n.id})});var c=u.getInnerEdges();u.deepEach(function(s){e.toFront(s)}),c.forEach(function(s){e.toFront(s)})}else console.warn("add group elements must have the same parent")}},unGroup:function(){var n=this.get("_graph"),t=this.getSelected(),e=t[0];t.length===1&&o.isGroup(e)&&(e.getChildren().forEach(function(r){n.update(r,{parent:void 0}),r.collapsedParent||r.show(),r.isGroup&&r.deepEach(function(a){a.collapsedParent||a.show()})}),n.remove(e))},newGroup:function(n){this.addGroup(n)}},f.exports=i},function(f,p,l){function i(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var o=l(67),n=l(2),t={CFG:{anchor:{}},INIT:"_initAnchor"};t.AUGMENT={_initAnchor:function(){var e=this.get("anchor"),r=this.get("_graph");if(e){var a=new o(function(u){for(var c=1;c `},bindEvent:function(m,b){var w=this,P=b.getGraph(),S=P.getRootGroup();return m.setAttribute("draggable","true"),[u.addEventListener(m,"dragstart",function(){var O=w.item,A=function(C){for(var k=1;ks.minX&&m.minY>s.minY&&m.maxXh.width/2+o.orbitGap/v&&(t.hideOrbit(),e=void 0),e&&t.layoutOrbit(e,{x:c,y:s})}})})},function(f,p,l){var i=l(11);l(96),f.exports=i},function(f,p,l){l(97),l(98),l(99),l(100),l(101)},function(f,p,l){var i=l(11);i.registerNode("flow-base",{}),i.registerNode("flow-html",{},["html"]),i.registerNode("flow-rect",{},"flow-base"),i.registerNode("flow-capsule",{},"capsule"),i.registerNode("flow-circle",{},"circle"),i.registerNode("flow-rhombus",{},"rhombus")},function(f,p,l){l(11).registerEdge("flow-base",{})},function(f,p,l){var i=l(19),o=l(11);function n(u,c,s,h){var d=h?h/2:30,v=h;if(u<=c&&c<=s||u>=c&&c>=s){var y=(s-c)/2,m=Math.abs(y);if(y===0)return u===c?0:(c-u)/Math.abs(c-u)*d;if(m>v){var b=y/m*v;return Math.abs(b)v&&(w=v),wu?w:-w}function t(u,c,s,h){var d,v,y=u.bbox,m=function(w,P){var S=Math.abs(w.x-P.centerX),O=Math.abs(w.y-P.centerY);return S/P.width>O/P.height}(c,y);d=v=0;var b=Math.min(y.height,y.width);return h&&h.bbox&&(b=Math.min(b,h.bbox.height,h.bbox.width)),m?d=n(y.centerX,c.x,s.x,b):v=n(y.centerY,c.y,s.y,b),{x:c.x+d,y:c.y+v}}var e=.1;function r(u,c){var s=u.x,h=u.y,d=c.x,v=c.y;return{x:s+(d-s)*e,y:h+(v-h)*e}}function a(u,c,s){var h=u[0],d=u[u.length-1],v=["M",h.x,h.y],y=function(w,P,S,O){return[S&&S.bbox?t(S,w,P,O):r(w,P),O&&O.bbox?t(O,P,w,S):r(P,w)]}(h,d,c,s),m=["C"],b=[v];return i.each(y,function(w){m.push(w.x,w.y)}),m.push(d.x,d.y),b.push(m),b}o.registerEdge("flow-smooth",{getPathByPoints:function(u){return a(u.points,u.source,u.target)}},"flow-edge")},function(f,p,l){function i(C){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(C)}function o(C,k){return function(T){if(Array.isArray(T))return T}(C)||function(T,I){var R=[],F=!0,j=!1,B=void 0;try{for(var H,et=T[Symbol.iterator]();!(F=(H=et.next()).done)&&(R.push(H.value),!I||R.length!==I);F=!0);}catch(Q){j=!0,B=Q}finally{try{F||et.return==null||et.return()}finally{if(j)throw B}}return R}(C,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var n=l(19),t=l(11),e=16,r=5;function a(C,k){var T=Math.min(C.minX,k.minX),I=Math.min(C.minY,k.minY),R=Math.max(C.maxX,k.maxX),F=Math.max(C.maxY,k.maxY);return{centerX:(T+R)/2,centerY:(I+F)/2,minX:T,minY:I,maxX:R,maxY:F,height:F-I,width:R-T}}function u(C,k){return 2*Math.abs(C.centerX-k.centerX)F/I.height}(k,C)?{x:k.x>C.centerX?C.maxX:C.minX,y:k.y}:{x:k.x,y:k.y>C.centerY?C.maxY:C.minY}}function d(C){var k=C.minX,T=C.minY,I=C.maxX,R=C.maxY;return[{x:k,y:T},{x:I,y:T},{x:I,y:R},{x:k,y:R}]}function v(C,k){var T=C.x,I=C.y;return Tk.maxX||Ik.maxY}function y(C,k,T,I){var R=k.x-C.x,F=k.y-C.y,j=I.x-T.x,B=I.y-T.y,H=(-F*(C.x-T.x)+R*(C.y-T.y))/(-j*F+R*B),et=(j*(C.y-T.y)-B*(C.x-T.x))/(-j*F+R*B);return H>=0&&H<=1&&et>=0&&et<=1}function m(C,k,T){if(T.width===T.height===0)return!1;var I=o(d(T),4),R=I[0],F=I[1],j=I[2],B=I[3];return y(C,k,R,F)||y(C,k,R,B)||y(C,k,F,j)||y(C,k,j,B)}function b(C){return C=P(C)}function w(C,k){return[C,{x:C.x,y:k.y},k]}function P(C){var k=[],T={};return C.forEach(function(I){var R=I.id="".concat(I.x,"-").concat(I.y);T[R]=I}),n.each(T,function(I){k.push(I)}),k}function S(C,k){return Math.abs(C.x-k.x)+Math.abs(C.y-k.y)}function O(C,k,T,I,R){return S(C,k)+S(C,T)+function(F,j){var B=0;return j.forEach(function(H){H&&(F.x===H.x&&(B+=-2),F.y===H.y&&(B+=-2))}),B}(C,[k,T,I,R])}function A(C,k,T,I,R,F,j){var B=[],H=[k],et={},Q={},J={};Q[k.id]=0,J[k.id]=O(k,T,k);var K={};C.forEach(function(V){K[V.id]=V});for(var nt=function(){var V,tt,$,ot=void 0,Y=1/0;if(H.forEach(function(D){J[D.id]4&&arguments[4]!==void 0?arguments[4]:0;G.unshift(U[q]),X[q]&&X[q]!==q&&ut<=100&&D(G,U,X,X[q],ut+1)}(L,K,et,T.id),{v:L}}tt=ot,($=(V=H).indexOf(tt))>-1&&V.splice($,1),B.push(ot),function(D,G,U,X){var q=[];return D.forEach(function(ut){ut!==G&&(ut.x!==G.x&&ut.y!==G.y||m(ut,G,U)||m(ut,G,X)||q.push(ut))}),P(q)}(C,ot,I,R).forEach(function(D){if(B.indexOf(D)===-1){H.indexOf(D)===-1&&H.push(D);var G=J[ot.id]+S(ot,D);Q[D.id]&&G>=Q[D.id]||(et[D.id]=ot.id,Q[D.id]=G,J[D.id]=Q[D.id]+O(D,T,k,F,j))}})};H.length;){var st=nt();if(i(st)==="object")return st.v}return console.error("cannot find path: ",C,k,T),[k,T]}function E(C,k,T,I,R){var F=T&&T.bbox?T.bbox:c(C),j=I&&I.bbox?I.bbox:c(k);if(u(F,j))return b(w(C,k));var B=s(F,R),H=s(j,R);if(u(B,H))return b(w(C,k));var et=h(B,C),Q=h(H,k),J=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ot=[],Y=[];$.forEach(function(X){ot.push(X.x),Y.push(X.y)});var L=Math.min.apply(Math,ot),D=Math.max.apply(Math,ot),G=Math.min.apply(Math,Y),U=Math.max.apply(Math,Y);return{centerX:(L+D)/2,centerY:(G+U)/2,maxX:D,maxY:U,minX:L,minY:G,height:U-G,width:D-L}}([et,Q]),K=(a(B,H),a(B,J)),nt=a(H,J),st=[];st=(st=st.concat(d(K))).concat(d(nt));var V={x:(C.x+k.x)/2,y:(C.y+k.y)/2};[J,K,nt].forEach(function($){st=st.concat(function(ot,Y){return function(L,D){return DL.maxX?[]:[{x:D,y:L.minY},{x:D,y:L.maxY}]}(ot,Y.x).concat(function(L,D){return DL.maxY?[]:[{x:L.minX,y:D},{x:L.maxX,y:D}]}(ot,Y.y))}($,V).filter(function(ot){return v(ot,B)&&v(ot,H)}))}),[{x:et.x,y:Q.y},{x:Q.x,y:et.y}].forEach(function($){v($,B)&&v($,H)&&st.push($)}),st.unshift(et),st.push(Q);var tt=A(st=P(st),et,Q,F,j,C,k);return tt.unshift(C),tt.push(k),b(tt)}function _(C,k){var T=[],I=C[0];return T.push("M".concat(I.x," ").concat(I.y)),C.forEach(function(R,F){var j=C[F+1],B=C[F+2];if(j&&B)if(function(J,K,nt){return!(J.x===K.x===nt.x||J.y===K.y===nt.y)}(R,j,B)){var H=o(function(J,K,nt,st){var V=S(J,K),tt=S(nt,K);return V0&&c.collapsed&&this.drawExpandedButton(u)},debugDrawLayoutPoint:function(u){var c=u.getModel();u.getGraphicGroup().addShape("circle",{attrs:{x:c.x,y:c.y,r:5,fill:"red"}})},drawExpandedButton:function(u){var c=u.getKeyShape().getBBox(),s=u.getGraphicGroup().addGroup(),h=s.addShape("path",{attrs:i({path:t.getRectPath(0,0,16,7,3)},r)}),d=h.getBBox(),v=t.getMindNodeSide(u),y=this.getButtonPositon(c,d,v),m={fill:"white",r:1};s.addShape("circle",{attrs:i({},m,{x:4,y:3.5}),capture:!1}),s.addShape("circle",{attrs:i({},m,{x:8,y:3.5}),capture:!1}),s.addShape("circle",{attrs:i({},m,{x:12,y:3.5}),capture:!1}),h.attr("lineAppendWidth",20),s.translate(y.x,y.y),h.isExpandedButton=!0,h.isButton=!0},drawCollapsedButton:function(u){var c=u.getKeyShape().getBBox(),s=u.getGraphicGroup().addShape("path",{attrs:i({path:t.getCollapsedButtonPath()},a)}),h=s.getBBox(),d=t.getMindNodeSide(u),v=this.getButtonPositon(c,h,d);s.translate(v.x,v.y),s.isCollapsedButton=!0,s.isButton=!0},getButtonPositon:function(u,c,s){return s==="right"?{x:u.maxX+2,y:u.maxY-(c.maxY-c.minY)/2}:{x:u.minX-(c.maxX-c.minX)-2,y:u.maxY-(c.maxY-c.minY)/2}},getLabel:function(u){return u.getModel().label},getPadding:function(){return[4,8,4,8]},getSize:function(u){var c=u.getModel(),s=u.getGraphicGroup(),h=c.size;if(c.size){if(t.isArray(h))return h;if(t.isNumber(h))return[h,h]}var d=s.findByClass("label")[0],v=this.getPadding(u),y=d.getBBox();return[y.width+v[1]+v[3],y.height+v[0]+v[2]]},getPath:function(u){var c=this.getSize(u),s=this.getStyle(u);return t.getRectPath(-c[0]/2,-c[1]/2+this.dy,c[0],c[1],s.radius)},drawLabel:function(u){var c=u.getGraphicGroup(),s=this.getLabel(u),h=this.getLabelStyle(u);s||(s=" ");var d=t.mix(!0,{},e,h,{x:0,y:0});t.isObject(s)?t.mix(d,s):d.text=s;var v=c.addShape("text",{class:"label",attrs:d});return this.adjustLabelText(v),this.adjustLabelPosition(u,v),v},adjustLabelText:function(u){var c=u.attr("text"),s=u.getBBox();if(s.maxX-s.minX>400){var h=u.attr("font");c=t.getLabelTextByTextLineWidth(c,h),u.attr("text",c)}},adjustLabelPosition:function(u,c){var s=this.getSize(u),h=this.getPadding(),d=s[0],v=c.getBBox();c.attr({x:-d/2+h[3],y:-v.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(f,p,l){l(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(f,p,l){l(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(f,p,l){var i=l(8),o=l(10);i.registerNode("mind-root",{adjustLabelPosition:function(n,t){var e=t.getBBox();t.attr({x:-e.width/2,y:-e.height/2-1})},getPath:function(n){var t=this.getSize(n),e=this.getStyle(n);return o.getRectPath(-t[0]/2,-t[1]/2,t[0],t[1],e.radius)},getButtonPositon:function(n,t,e){return e==="right"?{x:n.maxX+2,y:(n.maxY+n.minY)/2-(t.maxY-t.minY)/2}:{x:n.minX-(t.maxX-t.minX)-2,y:(n.maxY+n.minY)/2-(t.maxY-t.minY)/2}},getPadding:function(){return o.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(f,p,l){var i=l(8),o=l(10);i.registerNode("mind-placeholder",{afterDraw:function(n){n.getKeyShape().isPlaceholder=!0},getPath:function(n){var t,e=n.getModel().parentModel,r=this.getStyle(n),a=0;return e.hierarchy<=2?t=28:(t=20,a=4),o.getRectPath(-27.5,-t/2+a,55,t,r.radius)},getStyle:function(){return{fill:"#91D5FF",radius:4,lineWidth:3}},drawExpandedButton:function(){},drawCollapsedButton:function(){},anchor:function(){return[[0,1],[1,1]]}})},function(f,p,l){l(8).registerEdge("mind-edge",{getEdetal:function(i){return i.children&&i.children.length>0&&!i.collapsed?i.hierarchy===2?24:18:0},getPath:function(i){var o=i.getPoints(),n=i.getSource(),t=i.getTarget(),e=n.getBBox(),r=t.getBBox(),a=t.getModel(),u=14,c=4;if(a.hierarchy===2&&(u=66,c=30),o[0].y===o[1].y){var s=a.hierarchy===3?24:18,h=this.getEdetal(a);return e.centerX=3){var d=a.hierarchy===3?24:18,v=this.getEdetal(a);if(e.centerX2?"left":"right",nth:s?a.getNth(s):void 0})}i.registerCommand("append",{enable:function(t){var e=t.getCurrentPage(),r=e.getSelected();return e.isMind&&r.length===1},getItem:function(t){var e=t.getCurrentPage(),r=e.getGraph();return this.selectedItemId?r.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,r=t.getCurrentPage(),a=r.getGraph(),u=r.getRoot(),c=this.getItem(t),s=c.getModel(),h=s.hierarchy,d=c.getParent();if(c.isRoot)e=n(r,c,this.addItemId);else{var v=a.getNth(c);e=a.add("node",{id:this.addItemId,parent:d.id,side:h===2&&u.children.length===3?"left":s.side,label:"\u65B0\u5EFA\u8282\u70B9",nth:s.side==="left"&&h===2?v:v+1})}r.clearSelected(),r.clearActived(),r.setSelected(e,!0),this.executeTimes===1&&(this.selectedItemId=c.id,this.addItemId=e.id,r.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"]}),i.registerCommand("appendChild",{enable:function(t){var e=t.getCurrentPage(),r=e.getSelected();return e.isMind&&r.length>0},getItem:function(t){var e=t.getCurrentPage(),r=e.getGraph();return this.selectedItemId?r.find(this.selectedItemId):e.getSelected()[0]},execute:function(t){var e,r=t.getCurrentPage(),a=r.getGraph(),u=this.getItem(t);e=u.isRoot?n(r,u,this.addItemId):a.add("node",{id:this.addItemId,parent:u.id,label:"\u65B0\u5EFA\u8282\u70B9"}),r.clearSelected(),r.clearActived(),r.setSelected(e,!0),this.executeTimes===1&&(this.selectedItemId=u.id,this.addItemId=e.id,r.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"]}),i.registerCommand("moveMindNode",{enable:function(t){var e=t.getCurrentPage(),r=e.get("panItems");return e.isMind&&r&&r.length>0},execute:function(t){var e=t.getCurrentPage(),r=e.getGraph(),a=this.newParentId,u=this.newNth,c=this.newSide,s=o.clone(this.model);delete s.shape,delete s.side,r.remove(s.id),o.mix(s,{parent:a,nth:u,side:c});var h=r.add("node",s);e.clearSelected(),e.setSelected(h,!0)},back:function(t){var e=t.getCurrentPage(),r=e.getGraph(),a=this.originParentId,u=this.originNth,c=this.originSide,s=o.clone(this.model);delete s.shape,delete s.side,r.remove(s.id),o.mix(s,{parent:a,nth:u,side:c});var h=r.add("node",s);e.clearSelected(),e.setSelected(h,!0)}})},function(f,p,l){function i(c){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(c)}function o(c,s){for(var h=0;hy||c>m)&&(i.hideArrowController(),o=void 0)}})})},function(f,p,l){l(128),l(12).registerNode("bpmn-base",{anchor:null})},function(f,p,l){"use strict";l.r(p);var i=l(12),o=l.n(i),n=l(0);function t(r){var a=r.bbox,u=r.shape,c=u===void 0?"ROUNDED_RECT":u,s=r.point,h=r.vertical;h=!!h;var d={true:"x",false:"y"},v={true:"minX",false:"minY"},y={true:"maxX",false:"maxY"};switch(c){case"ROUNDED_RECT":if(s[d[h]]>=a[v[h]]+4&&s[d[h]]<=a[y[h]]-4)return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.maxX:a.minX,y:h?s.y>a.centerY?a.maxY:a.minY:s.y}};if(s[d[h]]>=a[v[h]]&&s[d[h]]a.centerX?a.maxX-4+Math.sqrt(16-Math.pow(a.minY+4-s.y,2)):a.minX+4-Math.sqrt(16-Math.pow(a.minY+4-s.y,2)),y:h?s.y>a.centerY?a.maxY-4+Math.sqrt(16-Math.pow(a.minX+4-s.x,2)):a.minY+4-Math.sqrt(16-Math.pow(a.minX+4-s.x,2)):s.y}};if(s[d[h]]>=a[y[h]]-4&&s[d[h]]<=a[y[h]])return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.maxX-4+Math.sqrt(16-Math.pow(s.y-a.maxY+4,2)):a.minX+4-Math.sqrt(16-Math.pow(s.y-a.maxY+4,2)),y:h?s.y>a.centerY?a.maxY-4+Math.sqrt(16-Math.pow(s.x-a.maxX+4,2)):a.minY+4-Math.sqrt(16-Math.pow(s.x-a.maxX+4,2)):s.y}};break;case"CIRCLE":if(s[d[h]]>=a[v[h]]&&s[d[h]]<=a[y[h]])return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.centerX+Math.sqrt(16-Math.pow(a.centerY-s.y)):a.centerX-Math.sqrt(16-Math.pow(a.centerY-s.y)),y:h?s.y>a.centerY?a.centerY+Math.sqrt(16-Math.pow(a.centerX-s.x)):a.centerY-Math.sqrt(16-Math.pow(a.centerX-s.x)):s.y}};break;case"RHOMEBUS":if(s[d[h]]>=a[v[h]]&&s[d[h]]<=a[y[h]])return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?s.ya.centerY?s.x=a[v[h]]&&s[d[h]]<=a[y[h]])return{added:void 0,joint:{x:h?s.x:s.x>a.centerX?a.maxX:a.minX,y:h?s.y>a.centerY?a.maxY:a.minY:s.y}}}return h?s.x=150&&(u.helpLine=void 0,u.helpLineTime=void 0),u.helpLine&&a.addShape("path",{attrs:{path:[["M",u.helpLine[0].x,u.helpLine[0].y],["L",u.helpLine[1].x,u.helpLine[1].y]],lineAppendWidth:8,lineWidth:1,strokeOpacity:.92,stroke:"rgba(255,139,48)"}}),v}})}])})},77396:function(N,M,x){"use strict";var g=x(21261),f=x(6610),p=x(5991),l=x(46070),i=x(77608),o=x(10379),n=x(42328),t=x.n(n),e=x(7654),r="J_FlowContainer",a="J_MindContainer",u="J_KoniContainer",c="J_ToolbarContainer",s="J_MinimapContainer",h="J_ContextMenuContainer",d="Flow",v="Mind",y="Koni",m="beforeAddPage",b="afterAddPage",w="canvas-selected",P="node-selected",S="edge-selected",O="group-selected",A="multi-selected",E={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"},_={afterchange:"onAfterChange",afterchangesize:"onAfterChangeSize",afterviewportchange:"onAfterViewportChange",beforechange:"onBeforeChange",beforechangesize:"onBeforeChangeSize",beforeviewportchange:"onBeforeViewportChange",keydown:"onKeyDown",keyup:"onKeyUp",mousewheel:"onMouseWheel"},C={afteritemactived:"onAfterItemActived",afteriteminactivated:"onAfterItemInactivated",afteritemselected:"onAfterItemSelected",afteritemunactived:"onAfterItemInactivated",afteritemunselected:"onAfterItemUnselected",beforeitemactived:"onBeforeItemActived",beforeiteminactivated:"onBeforeItemInactivated",beforeitemselected:"onBeforeItemSelected",beforeitemunactived:"onBeforeItemInactivated",beforeitemunselected:"onBeforeItemUnselected",keyUpEditLabel:"onKeyUpEditLabel"},k={aftercommandexecute:"onAfterCommandExecute",beforecommandexecute:"onBeforeCommandExecute"},T=Object.keys(E),I=Object.keys(_),R=Object.keys(C),F=Object.keys(k),j=x(58241),B=x(54153),H={trackable:!0,version:"2.0.4"},et={get:function(ct){return H[ct]},set:function(ct,ht){H[ct]=ht}},Q=x(19177),J=x(13515),K=x(82492),nt=x.n(K),st=x(78718),V=x.n(st),tt=x(73955),$=x.n(tt),ot=x(11700),Y=x.n(ot),L=function(ct){return Object.keys(ct).map(function(ht){return"".concat(encodeURIComponent(ht),"=").concat(encodeURIComponent(ct[ht]))}).join("&")},D="http://gm.mmstat.com/fsp.1.1",G=function(ct){var ht=et.get("trackable"),W=et.get("version");if(!!ht){var ft=window,vt=ft.location,bt=ft.navigator,_t=new Image,Ct=L((0,B.Z)({pid:"ggeditor",code:"11",msg:"syslog",page:"".concat(vt.protocol,"//").concat(vt.host).concat(vt.pathname),hash:vt.hash,ua:bt.userAgent,rel:W},ct));_t.src="".concat(D,"?").concat(Ct)}},U=function(mt){setTimeout(function(){G(mt)},1e3)},X=function(mt){(0,o.Z)(ct,mt);function ct(ht){var W;return(0,f.Z)(this,ct),W=(0,l.Z)(this,(0,i.Z)(ct).call(this,ht)),W.id=$()(),W.on(m,function(ft){var vt=ft.className;U({c1:vt})}),W}return ct}(t()),q=x(98566),ut=x(73257),rt=x(22122),at=x(67294),pt=function(mt){(0,o.Z)(ct,mt);function ct(){var ht,W;(0,f.Z)(this,ct);for(var ft=arguments.length,vt=new Array(ft),bt=0;bt1?arguments[1]:void 0)}},13765:function(N,M,x){var g=x(67485),f=x(41430),p=x(90411),l=function(i){return function(o,n,t){var e=g(o),r=p(e),a=f(t,r),u;if(i&&n!=n){for(;r>a;)if(u=e[a++],u!=u)return!0}else for(;r>a;a++)if((i||a in e)&&e[a]===n)return i||a||0;return!i&&-1}};N.exports={includes:l(!0),indexOf:l(!1)}},85291:function(N,M,x){var g=x(57945),f=x(90838),p=x(54593),l=x(18080),i=x(90411),o=x(54874),n=f([].push),t=function(e){var r=e==1,a=e==2,u=e==3,c=e==4,s=e==6,h=e==7,d=e==5||s;return function(v,y,m,b){for(var w=l(v),P=p(w),S=g(y,m),O=i(P),A=0,E=b||o,_=r?E(v,O):a||h?E(v,0):void 0,C,k;O>A;A++)if((d||A in P)&&(C=P[A],k=S(C,A,w),e))if(r)_[A]=k;else if(k)switch(e){case 3:return!0;case 5:return C;case 6:return A;case 2:n(_,C)}else switch(e){case 4:return!1;case 7:n(_,C)}return s?-1:u||c?c:_}};N.exports={forEach:t(0),map:t(1),filter:t(2),some:t(3),every:t(4),find:t(5),findIndex:t(6),filterReject:t(7)}},67207:function(N,M,x){var g=x(10978),f=x(23476),p=x(68497),l=f("species");N.exports=function(i){return p>=51||!g(function(){var o=[],n=o.constructor={};return n[l]=function(){return{foo:1}},o[i](Boolean).foo!==1})}},10455:function(N,M,x){"use strict";var g=x(10978);N.exports=function(f,p){var l=[][f];return!!l&&g(function(){l.call(null,p||function(){return 1},1)})}},35109:function(N,M,x){var g=x(90838);N.exports=g([].slice)},11990:function(N,M,x){var g=x(51405),f=x(71478),p=x(63188),l=x(23476),i=l("species"),o=Array;N.exports=function(n){var t;return g(n)&&(t=n.constructor,f(t)&&(t===o||g(t.prototype))?t=void 0:p(t)&&(t=t[i],t===null&&(t=void 0))),t===void 0?o:t}},54874:function(N,M,x){var g=x(11990);N.exports=function(f,p){return new(g(f))(p===0?0:p)}},78298:function(N,M,x){var g=x(90838),f=g({}.toString),p=g("".slice);N.exports=function(l){return p(f(l),8,-1)}},19582:function(N,M,x){var g=x(60054),f=x(61395),p=x(78298),l=x(23476),i=l("toStringTag"),o=Object,n=p(function(){return arguments}())=="Arguments",t=function(e,r){try{return e[r]}catch(a){}};N.exports=g?p:function(e){var r,a,u;return e===void 0?"Undefined":e===null?"Null":typeof(a=t(r=o(e),i))=="string"?a:n?p(r):(u=p(r))=="Object"&&f(r.callee)?"Arguments":u}},91650:function(N,M,x){var g=x(30266),f=x(1615),p=x(65133),l=x(71328);N.exports=function(i,o,n){for(var t=f(o),e=l.f,r=p.f,a=0;ax)throw M("Maximum allowed index exceeded");return g}},88739:function(N){N.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}},25517:function(N,M,x){var g=x(54076),f=g("span").classList,p=f&&f.constructor&&f.constructor.prototype;N.exports=p===Object.prototype?void 0:p},4372:function(N){N.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},62679:function(N){N.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},68497:function(N,M,x){var g=x(24700),f=x(62679),p=g.process,l=g.Deno,i=p&&p.versions||l&&l.version,o=i&&i.v8,n,t;o&&(n=o.split("."),t=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!t&&f&&(n=f.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=f.match(/Chrome\/(\d+)/),n&&(t=+n[1]))),N.exports=t},72414:function(N){N.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},26725:function(N,M,x){var g=x(24700),f=x(65133).f,p=x(61782),l=x(6737),i=x(57496),o=x(91650),n=x(93415);N.exports=function(t,e){var r=t.target,a=t.global,u=t.stat,c,s,h,d,v,y;if(a?s=g:u?s=g[r]||i(r,{}):s=(g[r]||{}).prototype,s)for(h in e){if(v=e[h],t.dontCallGetSet?(y=f(s,h),d=y&&y.value):d=s[h],c=n(a?h:r+(u?".":"#")+h,t.forced),!c&&d!==void 0){if(typeof v==typeof d)continue;o(v,d)}(t.sham||d&&d.sham)&&p(v,"sham",!0),l(s,h,v,t)}}},10978:function(N){N.exports=function(M){try{return!!M()}catch(x){return!0}}},42713:function(N,M,x){var g=x(92094),f=Function.prototype,p=f.apply,l=f.call;N.exports=typeof Reflect=="object"&&Reflect.apply||(g?l.bind(p):function(){return l.apply(p,arguments)})},57945:function(N,M,x){var g=x(43021),f=x(84185),p=x(92094),l=g(g.bind);N.exports=function(i,o){return f(i),o===void 0?i:p?l(i,o):function(){return i.apply(o,arguments)}}},92094:function(N,M,x){var g=x(10978);N.exports=!g(function(){var f=function(){}.bind();return typeof f!="function"||f.hasOwnProperty("prototype")})},24442:function(N,M,x){var g=x(92094),f=Function.prototype.call;N.exports=g?f.bind(f):function(){return f.apply(f,arguments)}},24320:function(N,M,x){var g=x(40632),f=x(30266),p=Function.prototype,l=g&&Object.getOwnPropertyDescriptor,i=f(p,"name"),o=i&&function(){}.name==="something",n=i&&(!g||g&&l(p,"name").configurable);N.exports={EXISTS:i,PROPER:o,CONFIGURABLE:n}},43021:function(N,M,x){var g=x(78298),f=x(90838);N.exports=function(p){if(g(p)==="Function")return f(p)}},90838:function(N,M,x){var g=x(92094),f=Function.prototype,p=f.call,l=g&&f.bind.bind(p,p);N.exports=g?l:function(i){return function(){return p.apply(i,arguments)}}},40367:function(N,M,x){var g=x(24700),f=x(61395),p=function(l){return f(l)?l:void 0};N.exports=function(l,i){return arguments.length<2?p(g[l]):g[l]&&g[l][i]}},26242:function(N,M,x){var g=x(84185),f=x(92785);N.exports=function(p,l){var i=p[l];return f(i)?void 0:g(i)}},24700:function(N,M,x){var g=function(f){return f&&f.Math==Math&&f};N.exports=g(typeof globalThis=="object"&&globalThis)||g(typeof window=="object"&&window)||g(typeof self=="object"&&self)||g(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},30266:function(N,M,x){var g=x(90838),f=x(18080),p=g({}.hasOwnProperty);N.exports=Object.hasOwn||function(i,o){return p(f(i),o)}},4428:function(N){N.exports={}},79234:function(N,M,x){var g=x(40632),f=x(10978),p=x(54076);N.exports=!g&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},54593:function(N,M,x){var g=x(90838),f=x(10978),p=x(78298),l=Object,i=g("".split);N.exports=f(function(){return!l("z").propertyIsEnumerable(0)})?function(o){return p(o)=="String"?i(o,""):l(o)}:l},11192:function(N,M,x){var g=x(90838),f=x(61395),p=x(57004),l=g(Function.toString);f(p.inspectSource)||(p.inspectSource=function(i){return l(i)}),N.exports=p.inspectSource},87943:function(N,M,x){var g=x(61351),f=x(24700),p=x(63188),l=x(61782),i=x(30266),o=x(57004),n=x(1512),t=x(4428),e="Object already initialized",r=f.TypeError,a=f.WeakMap,u,c,s,h=function(m){return s(m)?c(m):u(m,{})},d=function(m){return function(b){var w;if(!p(b)||(w=c(b)).type!==m)throw r("Incompatible receiver, "+m+" required");return w}};if(g||o.state){var v=o.state||(o.state=new a);v.get=v.get,v.has=v.has,v.set=v.set,u=function(m,b){if(v.has(m))throw r(e);return b.facade=m,v.set(m,b),b},c=function(m){return v.get(m)||{}},s=function(m){return v.has(m)}}else{var y=n("state");t[y]=!0,u=function(m,b){if(i(m,y))throw r(e);return b.facade=m,l(m,y,b),b},c=function(m){return i(m,y)?m[y]:{}},s=function(m){return i(m,y)}}N.exports={set:u,get:c,has:s,enforce:h,getterFor:d}},51405:function(N,M,x){var g=x(78298);N.exports=Array.isArray||function(p){return g(p)=="Array"}},61395:function(N,M,x){var g=x(79896),f=g.all;N.exports=g.IS_HTMLDDA?function(p){return typeof p=="function"||p===f}:function(p){return typeof p=="function"}},71478:function(N,M,x){var g=x(90838),f=x(10978),p=x(61395),l=x(19582),i=x(40367),o=x(11192),n=function(){},t=[],e=i("Reflect","construct"),r=/^\s*(?:class|function)\b/,a=g(r.exec),u=!r.exec(n),c=function(d){if(!p(d))return!1;try{return e(n,t,d),!0}catch(v){return!1}},s=function(d){if(!p(d))return!1;switch(l(d)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!a(r,o(d))}catch(v){return!0}};s.sham=!0,N.exports=!e||f(function(){var h;return c(c.call)||!c(Object)||!c(function(){h=!0})||h})?s:c},93415:function(N,M,x){var g=x(10978),f=x(61395),p=/#|\.prototype\./,l=function(e,r){var a=o[i(e)];return a==t?!0:a==n?!1:f(r)?g(r):!!r},i=l.normalize=function(e){return String(e).replace(p,".").toLowerCase()},o=l.data={},n=l.NATIVE="N",t=l.POLYFILL="P";N.exports=l},92785:function(N){N.exports=function(M){return M==null}},63188:function(N,M,x){var g=x(61395),f=x(79896),p=f.all;N.exports=f.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:g(l)||l===p}:function(l){return typeof l=="object"?l!==null:g(l)}},44193:function(N){N.exports=!1},1952:function(N,M,x){var g=x(40367),f=x(61395),p=x(36993),l=x(1076),i=Object;N.exports=l?function(o){return typeof o=="symbol"}:function(o){var n=g("Symbol");return f(n)&&p(n.prototype,i(o))}},90411:function(N,M,x){var g=x(86979);N.exports=function(f){return g(f.length)}},69541:function(N,M,x){var g=x(90838),f=x(10978),p=x(61395),l=x(30266),i=x(40632),o=x(24320).CONFIGURABLE,n=x(11192),t=x(87943),e=t.enforce,r=t.get,a=String,u=Object.defineProperty,c=g("".slice),s=g("".replace),h=g([].join),d=i&&!f(function(){return u(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),y=N.exports=function(m,b,w){c(a(b),0,7)==="Symbol("&&(b="["+s(a(b),/^Symbol\(([^)]*)\)/,"$1")+"]"),w&&w.getter&&(b="get "+b),w&&w.setter&&(b="set "+b),(!l(m,"name")||o&&m.name!==b)&&(i?u(m,"name",{value:b,configurable:!0}):m.name=b),d&&w&&l(w,"arity")&&m.length!==w.arity&&u(m,"length",{value:w.arity});try{w&&l(w,"constructor")&&w.constructor?i&&u(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch(S){}var P=e(m);return l(P,"source")||(P.source=h(v,typeof b=="string"?b:"")),m};Function.prototype.toString=y(function(){return p(this)&&r(this).source||n(this)},"toString")},47423:function(N){var M=Math.ceil,x=Math.floor;N.exports=Math.trunc||function(f){var p=+f;return(p>0?x:M)(p)}},71328:function(N,M,x){var g=x(40632),f=x(79234),p=x(64992),l=x(86444),i=x(59691),o=TypeError,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,e="enumerable",r="configurable",a="writable";M.f=g?p?function(c,s,h){if(l(c),s=i(s),l(h),typeof c=="function"&&s==="prototype"&&"value"in h&&a in h&&!h[a]){var d=t(c,s);d&&d[a]&&(c[s]=h.value,h={configurable:r in h?h[r]:d[r],enumerable:e in h?h[e]:d[e],writable:!1})}return n(c,s,h)}:n:function(c,s,h){if(l(c),s=i(s),l(h),f)try{return n(c,s,h)}catch(d){}if("get"in h||"set"in h)throw o("Accessors not supported");return"value"in h&&(c[s]=h.value),c}},65133:function(N,M,x){var g=x(40632),f=x(24442),p=x(47051),l=x(32590),i=x(67485),o=x(59691),n=x(30266),t=x(79234),e=Object.getOwnPropertyDescriptor;M.f=g?e:function(a,u){if(a=i(a),u=o(u),t)try{return e(a,u)}catch(c){}if(n(a,u))return l(!f(p.f,a,u),a[u])}},42385:function(N,M,x){var g=x(87073),f=x(72414),p=f.concat("length","prototype");M.f=Object.getOwnPropertyNames||function(i){return g(i,p)}},2443:function(N,M){M.f=Object.getOwnPropertySymbols},36993:function(N,M,x){var g=x(90838);N.exports=g({}.isPrototypeOf)},87073:function(N,M,x){var g=x(90838),f=x(30266),p=x(67485),l=x(13765).indexOf,i=x(4428),o=g([].push);N.exports=function(n,t){var e=p(n),r=0,a=[],u;for(u in e)!f(i,u)&&f(e,u)&&o(a,u);for(;t.length>r;)f(e,u=t[r++])&&(~l(a,u)||o(a,u));return a}},16740:function(N,M,x){var g=x(87073),f=x(72414);N.exports=Object.keys||function(l){return g(l,f)}},47051:function(N,M){"use strict";var x={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,f=g&&!x.call({1:2},1);M.f=f?function(l){var i=g(this,l);return!!i&&i.enumerable}:x},22319:function(N,M,x){var g=x(24442),f=x(61395),p=x(63188),l=TypeError;N.exports=function(i,o){var n,t;if(o==="string"&&f(n=i.toString)&&!p(t=g(n,i))||f(n=i.valueOf)&&!p(t=g(n,i))||o!=="string"&&f(n=i.toString)&&!p(t=g(n,i)))return t;throw l("Can't convert object to primitive value")}},1615:function(N,M,x){var g=x(40367),f=x(90838),p=x(42385),l=x(2443),i=x(86444),o=f([].concat);N.exports=g("Reflect","ownKeys")||function(t){var e=p.f(i(t)),r=l.f;return r?o(e,r(t)):e}},94920:function(N,M,x){var g=x(92785),f=TypeError;N.exports=function(p){if(g(p))throw f("Can't call method on "+p);return p}},68387:function(N,M,x){"use strict";var g=x(24700),f=x(42713),p=x(61395),l=x(4372),i=x(62679),o=x(35109),n=x(25465),t=g.Function,e=/MSIE .\./.test(i)||l&&function(){var r=g.Bun.version.split(".");return r.length<3||r[0]==0&&(r[1]<3||r[1]==3&&r[2]==0)}();N.exports=function(r,a){var u=a?2:1;return e?function(c,s){var h=n(arguments.length,1)>u,d=p(c)?c:t(c),v=h?o(arguments,u):[],y=h?function(){f(d,this,v)}:d;return a?r(y,s):r(y)}:r}},1512:function(N,M,x){var g=x(22959),f=x(57641),p=g("keys");N.exports=function(l){return p[l]||(p[l]=f(l))}},57004:function(N,M,x){var g=x(24700),f=x(57496),p="__core-js_shared__",l=g[p]||f(p,{});N.exports=l},22959:function(N,M,x){var g=x(44193),f=x(57004);(N.exports=function(p,l){return f[p]||(f[p]=l!==void 0?l:{})})("versions",[]).push({version:"3.29.1",mode:g?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},14003:function(N,M,x){var g=x(68497),f=x(10978);N.exports=!!Object.getOwnPropertySymbols&&!f(function(){var p=Symbol();return!String(p)||!(Object(p)instanceof Symbol)||!Symbol.sham&&g&&g<41})},41430:function(N,M,x){var g=x(80584),f=Math.max,p=Math.min;N.exports=function(l,i){var o=g(l);return o<0?f(o+i,0):p(o,i)}},67485:function(N,M,x){var g=x(54593),f=x(94920);N.exports=function(p){return g(f(p))}},80584:function(N,M,x){var g=x(47423);N.exports=function(f){var p=+f;return p!==p||p===0?0:g(p)}},86979:function(N,M,x){var g=x(80584),f=Math.min;N.exports=function(p){return p>0?f(g(p),9007199254740991):0}},18080:function(N,M,x){var g=x(94920),f=Object;N.exports=function(p){return f(g(p))}},96035:function(N,M,x){var g=x(24442),f=x(63188),p=x(1952),l=x(26242),i=x(22319),o=x(23476),n=TypeError,t=o("toPrimitive");N.exports=function(e,r){if(!f(e)||p(e))return e;var a=l(e,t),u;if(a){if(r===void 0&&(r="default"),u=g(a,e,r),!f(u)||p(u))return u;throw n("Can't convert object to primitive value")}return r===void 0&&(r="number"),i(e,r)}},59691:function(N,M,x){var g=x(96035),f=x(1952);N.exports=function(p){var l=g(p,"string");return f(l)?l:l+""}},60054:function(N,M,x){var g=x(23476),f=g("toStringTag"),p={};p[f]="z",N.exports=String(p)==="[object z]"},89112:function(N){var M=String;N.exports=function(x){try{return M(x)}catch(g){return"Object"}}},57641:function(N,M,x){var g=x(90838),f=0,p=Math.random(),l=g(1 .toString);N.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+l(++f+p,36)}},1076:function(N,M,x){var g=x(14003);N.exports=g&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},64992:function(N,M,x){var g=x(40632),f=x(10978);N.exports=g&&f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},25465:function(N){var M=TypeError;N.exports=function(x,g){if(x=51||!f(function(){var v=[];return v[c]=!1,v.concat()[0]!==v}),h=function(v){if(!l(v))return!1;var y=v[c];return y!==void 0?!!y:p(v)},d=!s||!r("concat");g({target:"Array",proto:!0,arity:1,forced:d},{concat:function(y){var m=i(this),b=e(m,0),w=0,P,S,O,A,E;for(P=-1,O=arguments.length;P1?arguments[1]:void 0)}})},16869:function(N,M,x){var g=x(40632),f=x(24320).EXISTS,p=x(90838),l=x(43295),i=Function.prototype,o=p(i.toString),n=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,t=p(n.exec),e="name";g&&!f&&l(i,e,{configurable:!0,get:function(){try{return t(n,o(this))[1]}catch(r){return""}}})},7654:function(N,M,x){var g=x(26725),f=x(18080),p=x(16740),l=x(10978),i=l(function(){p(1)});g({target:"Object",stat:!0,forced:i},{keys:function(n){return p(f(n))}})},73257:function(N,M,x){var g=x(24700),f=x(88739),p=x(25517),l=x(51759),i=x(61782),o=function(t){if(t&&t.forEach!==l)try{i(t,"forEach",l)}catch(e){t.forEach=l}};for(var n in f)f[n]&&o(g[n]&&g[n].prototype);o(p)},81557:function(N,M,x){var g=x(26725),f=x(24700),p=x(68387),l=p(f.setInterval,!0);g({global:!0,bind:!0,forced:f.setInterval!==l},{setInterval:l})},72455:function(N,M,x){var g=x(26725),f=x(24700),p=x(68387),l=p(f.setTimeout,!0);g({global:!0,bind:!0,forced:f.setTimeout!==l},{setTimeout:l})},58241:function(N,M,x){x(81557),x(72455)},1989:function(N,M,x){var g=x(51789),f=x(80401),p=x(57667),l=x(21327),i=x(81866);function o(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t0&&o(a)?i>1?p(a,i-1,o,n,t):g(t,a):n||(t[t.length]=a)}return t}N.exports=p},28483:function(N,M,x){var g=x(25063),f=g();N.exports=f},97786:function(N,M,x){var g=x(71811),f=x(40327);function p(l,i){i=g(i,l);for(var o=0,n=i.length;l!=null&&ol?0:l+g),f=f>l?l:f,f<0&&(f+=l),l=g>f?0:f-g>>>0,g>>>=0;for(var i=Array(l);++p=o?p:g(p,l,i)}N.exports=f},74318:function(N,M,x){var g=x(11149);function f(p){var l=new p.constructor(p.byteLength);return new g(l).set(new g(p)),l}N.exports=f},64626:function(N,M,x){N=x.nmd(N);var g=x(55639),f=M&&!M.nodeType&&M,p=f&&!0&&N&&!N.nodeType&&N,l=p&&p.exports===f,i=l?g.Buffer:void 0,o=i?i.allocUnsafe:void 0;function n(t,e){if(e)return t.slice();var r=t.length,a=o?o(r):new t.constructor(r);return t.copy(a),a}N.exports=n},77133:function(N,M,x){var g=x(74318);function f(p,l){var i=l?g(p.buffer):p.buffer;return new p.constructor(i,p.byteOffset,p.length)}N.exports=f},278:function(N){function M(x,g){var f=-1,p=x.length;for(g||(g=Array(p));++f-1}N.exports=f},54705:function(N,M,x){var g=x(18470);function f(p,l){var i=this.__data__,o=g(i,p);return o<0?(++this.size,i.push([p,l])):i[o][1]=l,this}N.exports=f},24785:function(N,M,x){var g=x(1989),f=x(38407),p=x(57071);function l(){this.size=0,this.__data__={hash:new g,map:new(p||f),string:new g}}N.exports=l},11285:function(N,M,x){var g=x(45050);function f(p){var l=g(this,p).delete(p);return this.size-=l?1:0,l}N.exports=f},96e3:function(N,M,x){var g=x(45050);function f(p){return g(this,p).get(p)}N.exports=f},49916:function(N,M,x){var g=x(45050);function f(p){return g(this,p).has(p)}N.exports=f},95265:function(N,M,x){var g=x(45050);function f(p,l){var i=g(this,p),o=i.size;return i.set(p,l),this.size+=i.size==o?0:1,this}N.exports=f},24523:function(N,M,x){var g=x(15644),f=500;function p(l){var i=g(l,function(n){return o.size===f&&o.clear(),n}),o=i.cache;return i}N.exports=p},94536:function(N,M,x){var g=x(10852),f=g(Object,"create");N.exports=f},33498:function(N){function M(x){var g=[];if(x!=null)for(var f in Object(x))g.push(f);return g}N.exports=M},36390:function(N){function M(x,g){if(!(g==="constructor"&&typeof x[g]=="function")&&g!="__proto__")return x[g]}N.exports=M},37465:function(N,M,x){var g=x(38407);function f(){this.__data__=new g,this.size=0}N.exports=f},63779:function(N){function M(x){var g=this.__data__,f=g.delete(x);return this.size=g.size,f}N.exports=M},67599:function(N){function M(x){return this.__data__.get(x)}N.exports=M},44758:function(N){function M(x){return this.__data__.has(x)}N.exports=M},34309:function(N,M,x){var g=x(38407),f=x(57071),p=x(83369),l=200;function i(o,n){var t=this.__data__;if(t instanceof g){var e=t.__data__;if(!f||e.length