index-47840897.js 754 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. var K3=Object.defineProperty,Z3=Object.defineProperties;var q3=Object.getOwnPropertyDescriptors;var Mw=Object.getOwnPropertySymbols;var $3=Object.prototype.hasOwnProperty,Q3=Object.prototype.propertyIsEnumerable;var Dw=(rr,zn,An)=>zn in rr?K3(rr,zn,{enumerable:!0,configurable:!0,writable:!0,value:An}):rr[zn]=An,pb=(rr,zn)=>{for(var An in zn||(zn={}))$3.call(zn,An)&&Dw(rr,An,zn[An]);if(Mw)for(var An of Mw(zn))Q3.call(zn,An)&&Dw(rr,An,zn[An]);return rr},Nw=(rr,zn)=>Z3(rr,q3(zn));var vp=(rr,zn,An)=>new Promise((jy,Tp)=>{var Fc=xo=>{try{Uc(An.next(xo))}catch(wl){Tp(wl)}},Sy=xo=>{try{Uc(An.throw(xo))}catch(wl){Tp(wl)}},Uc=xo=>xo.done?jy(xo.value):Promise.resolve(xo.value).then(Fc,Sy);Uc((An=An.apply(rr,zn)).next())});import{dJ as ar,dK as Cw,ca as Nc,dL as mp,b2 as pa,dM as Cc,dN as Rw,ck as ii,cs as Fa,a$ as Xr,dO as J3,dP as Mi,cT as tI,dQ as eI,c_ as bp,dR as ai,dS as rI,cZ as yl,cf as yy,dT as zo,dU as Iw,cg as Ua,aH as Lw,dV as Rc,ct as _p,cn as hb,cc as gr,dW as gy,ce as Op,dX as Ga,dY as cn,dZ as ha,d_ as gl,d$ as wp,cW as ui,cQ as Zn,cw as er,e0 as zw,e1 as nI,cd as vl,e2 as Di,cj as qn,e3 as ml,e4 as oI,e5 as iI,e6 as Ic,e7 as vy,e8 as Bw,e9 as Lc,ea as Xa,eb as Fw,ec as aI,cq as uI,aS as bl,ed as cI,ee as _l,ef as db,eg as Uw,eh as Gw,ei as Xw,ej as Yw,ek as sI,el as Ol,cR as zc,em as lI,en as Hw,eo as Vw,ep as Ww,eq as fI,er as Kw,es as pI,et as hI,eu as dI,ev as yI,ew as gI,ex as my,ey as Bc,ez as vI,eA as mI,eB as bI,eC as Zw,eD as yb,eE as qw,eF as $w,eG as Qw,eH as _I,cu as gb,eI as OI,c9 as xp,eJ as Jw,eK as Ep,aT as tx,eL as ex,eM as rx,eN as wI,ch as nx,ci as ox,eO as xI,eP as EI,cv as jp,eQ as jI,eR as SI,eS as PI,cz as AI,eT as kI,eU as TI,eV as MI,eW as DI,eX as NI,eY as CI,eZ as RI,D as II,co as LI,at as zI,e_ as BI,e$ as FI,a_ as UI,f0 as GI,f1 as XI,K as YI,bE as HI,f2 as VI,f3 as WI,f4 as KI,f5 as ZI,aZ as qI,aN as $I,d as ix,aL as QI,aW as JI,aj as t4,r as by,a6 as e4,u as fo,p as vb,ah as r4,_ as mb,y as Pu,o as Au,l as Sp,N as ax,O as n4,e as Pp,w as _y,b as o4,t as i4,X as Oy,H as bb,P as a4,c as _b,bX as u4,W as c4,bY as s4,A as l4,j as ux,n as f4,a as p4,ax as h4,__tla as d4}from"./index-fd0fd824.js";import{_ as Ap,b as cx}from"./preact.module-c336cfe0.js";import{b as sx,c as wy,a as lx,d as y4,w as g4,__tla as v4}from"./_createCompounder-115b936a.js";import{c as kp,b as fx,a as xy,i as m4,t as b4,m as _4,s as O4,__tla as w4}from"./set-9898d689.js";import{i as Ni,__tla as x4}from"./_isIterateeCall-58465fa8.js";import{c as px,d as hx,e as dx,f as E4,m as j4,b as S4,a as P4,__tla as A4}from"./min-1adf9c3a.js";import{i as k4,__tla as T4}from"./isEmpty-d58c7f35.js";import{b as Ey,d as M4,__tla as D4}from"./difference-f0fad6aa.js";import{b as N4,c as C4,__tla as R4}from"./_baseOrderBy-f1e97edf.js";import{u as I4,__tla as L4}from"./unionWith-90866e7e.js";import{u as z4,__tla as B4}from"./uniqBy-ded1e1b7.js";import{g as F4,__tla as U4}from"./groupBy-6f411b71.js";import{o as G4,__tla as X4}from"./orderBy-96b3cb87.js";import{b as yx,r as Y4,__tla as H4}from"./random-0a5191f6.js";import{s as V4,__tla as W4}from"./sortBy-dfc72399.js";import{c as K4,a as Z4,__tla as q4}from"./camelCase-c2662bfe.js";import{s as $4,__tla as Q4}from"./snakeCase-8c9a2f12.js";import{c as J4,a as tL,t as eL,__tla as rL}from"./trim-e38e8465.js";import{c as Ob,m as nL,__tla as oL}from"./multiply-2d383cf6.js";import{b as iL,s as aL,__tla as uL}from"./sum-42c3df95.js";import{B as cL,u as sL,__tla as lL}from"./index-2901f384.js";import{J as fL,__tla as pL}from"./index-00a023e3.js";import{P as hL,__tla as dL}from"./index-d35460c6.js";import{__tla as yL}from"./useWindowSizeFn-0280681a.js";import{__tla as gL}from"./FullscreenOutlined-e2cd9f87.js";import{__tla as vL}from"./onMountedOrActivated-c075b0f3.js";import{__tla as mL}from"./useContentViewHeight-3f9f9984.js";let gx,bL=Promise.all([(()=>{try{return d4}catch(rr){}})(),(()=>{try{return v4}catch(rr){}})(),(()=>{try{return w4}catch(rr){}})(),(()=>{try{return x4}catch(rr){}})(),(()=>{try{return A4}catch(rr){}})(),(()=>{try{return T4}catch(rr){}})(),(()=>{try{return D4}catch(rr){}})(),(()=>{try{return R4}catch(rr){}})(),(()=>{try{return L4}catch(rr){}})(),(()=>{try{return B4}catch(rr){}})(),(()=>{try{return U4}catch(rr){}})(),(()=>{try{return X4}catch(rr){}})(),(()=>{try{return H4}catch(rr){}})(),(()=>{try{return W4}catch(rr){}})(),(()=>{try{return q4}catch(rr){}})(),(()=>{try{return Q4}catch(rr){}})(),(()=>{try{return rL}catch(rr){}})(),(()=>{try{return oL}catch(rr){}})(),(()=>{try{return uL}catch(rr){}})(),(()=>{try{return lL}catch(rr){}})(),(()=>{try{return pL}catch(rr){}})(),(()=>{try{return dL}catch(rr){}})(),(()=>{try{return yL}catch(rr){}})(),(()=>{try{return gL}catch(rr){}})(),(()=>{try{return vL}catch(rr){}})(),(()=>{try{return mL}catch(rr){}})()]).then(()=>vp(void 0,null,function*(){var rr=Ob(function(a,c){return a+c},0);const zn=rr;var An="Expected a function";function jy(a,c){if(typeof c!="function")throw new TypeError(An);return a=ar(a),function(){if(--a<1)return c.apply(this,arguments)}}var Tp=Cw&&new Cw;const Fc=Tp;var Sy=Fc?function(a,c){return Fc.set(a,c),a}:Nc;const Uc=Sy;function xo(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var i=mp(a.prototype),f=a.apply(i,c);return pa(f)?f:i}}var wl=1;function vx(a,c,i){var f=c&wl,o=xo(a);function h(){var y=this&&this!==Cc&&this instanceof h?o:a;return y.apply(f?i:this,arguments)}return h}var mx=Math.max;function wb(a,c,i,f){for(var o=-1,h=a.length,y=i.length,b=-1,v=c.length,E=mx(h-y,0),S=Array(v+E),k=!f;++b<v;)S[b]=c[b];for(;++o<y;)(k||o<h)&&(S[i[o]]=a[o]);for(;E--;)S[b++]=a[o++];return S}var bx=Math.max;function xb(a,c,i,f){for(var o=-1,h=a.length,y=-1,b=i.length,v=-1,E=c.length,S=bx(h-b,0),k=Array(S+E),T=!f;++o<S;)k[o]=a[o];for(var M=o;++v<E;)k[M+v]=c[v];for(;++y<b;)(T||o<h)&&(k[M+i[y]]=a[o++]);return k}function _x(a,c){for(var i=a.length,f=0;i--;)a[i]===c&&++f;return f}function Mp(){}var Ox=4294967295;function lr(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ox,this.__views__=[]}lr.prototype=mp(Mp.prototype),lr.prototype.constructor=lr;var wx=Fc?function(a){return Fc.get(a)}:Rw;const Py=wx;var xx={};const Gc=xx;var Ex=Object.prototype,jx=Ex.hasOwnProperty;function Dp(a){for(var c=a.name+"",i=Gc[c],f=jx.call(Gc,c)?i.length:0;f--;){var o=i[f],h=o.func;if(h==null||h==a)return o.name}return c}function Bo(a,c){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=void 0}Bo.prototype=mp(Mp.prototype),Bo.prototype.constructor=Bo;function Eb(a){if(a instanceof lr)return a.clone();var c=new Bo(a.__wrapped__,a.__chain__);return c.__actions__=ii(a.__actions__),c.__index__=a.__index__,c.__values__=a.__values__,c}var Sx=Object.prototype,Px=Sx.hasOwnProperty;function F(a){if(Fa(a)&&!Xr(a)&&!(a instanceof lr)){if(a instanceof Bo)return a;if(Px.call(a,"__wrapped__"))return Eb(a)}return new Bo(a)}F.prototype=Mp.prototype,F.prototype.constructor=F;function Ay(a){var c=Dp(a),i=F[c];if(typeof i!="function"||!(c in lr.prototype))return!1;if(a===i)return!0;var f=Py(i);return!!f&&a===f[0]}var Ax=J3(Uc);const jb=Ax;var kx=/\{\n\/\* \[wrapped with (.+)\] \*/,Tx=/,? & /;function Mx(a){var c=a.match(kx);return c?c[1].split(Tx):[]}var Dx=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Nx(a,c){var i=c.length;if(!i)return a;var f=i-1;return c[f]=(i>1?"& ":"")+c[f],c=c.join(i>2?", ":" "),a.replace(Dx,`{
  2. /* [wrapped with `+c+`] */
  3. `)}var Cx=1,Rx=2,Ix=8,Lx=16,zx=32,Bx=64,Fx=128,Ux=256,Gx=512,Xx=[["ary",Fx],["bind",Cx],["bindKey",Rx],["curry",Ix],["curryRight",Lx],["flip",Gx],["partial",zx],["partialRight",Bx],["rearg",Ux]];function Yx(a,c){return Mi(Xx,function(i){var f="_."+i[0];c&i[1]&&!tI(a,f)&&a.push(f)}),a.sort()}function Sb(a,c,i){var f=c+"";return eI(a,Nx(f,Yx(Mx(f),i)))}var Hx=1,Vx=2,Wx=4,Kx=8,Pb=32,Ab=64;function kb(a,c,i,f,o,h,y,b,v,E){var S=c&Kx,k=S?y:void 0,T=S?void 0:y,M=S?h:void 0,I=S?void 0:h;c|=S?Pb:Ab,c&=~(S?Ab:Pb),c&Wx||(c&=~(Hx|Vx));var C=[a,c,o,M,k,I,T,b,v,E],z=i.apply(void 0,C);return Ay(a)&&jb(z,C),z.placeholder=f,Sb(z,a,c)}function Xc(a){var c=a;return c.placeholder}var Zx=Math.min;function qx(a,c){for(var i=a.length,f=Zx(c.length,i),o=ii(a);f--;){var h=c[f];a[f]=bp(h,i)?o[h]:void 0}return a}var Tb="__lodash_placeholder__";function Ya(a,c){for(var i=-1,f=a.length,o=0,h=[];++i<f;){var y=a[i];(y===c||y===Tb)&&(a[i]=Tb,h[o++]=i)}return h}var $x=1,Qx=2,Jx=8,tE=16,eE=128,rE=512;function Np(a,c,i,f,o,h,y,b,v,E){var S=c&eE,k=c&$x,T=c&Qx,M=c&(Jx|tE),I=c&rE,C=T?void 0:xo(a);function z(){for(var W=arguments.length,K=Array(W),et=W;et--;)K[et]=arguments[et];if(M)var at=Xc(z),ot=_x(K,at);if(f&&(K=wb(K,f,o,M)),h&&(K=xb(K,h,y,M)),W-=ot,M&&W<E){var tt=Ya(K,at);return kb(a,c,Np,z.placeholder,i,K,tt,b,v,E-W)}var $=k?i:this,X=T?$[a]:a;return W=K.length,b?K=qx(K,b):I&&W>1&&K.reverse(),S&&v<W&&(K.length=v),this&&this!==Cc&&this instanceof z&&(X=C||xo(X)),X.apply($,K)}return z}function nE(a,c,i){var f=xo(a);function o(){for(var h=arguments.length,y=Array(h),b=h,v=Xc(o);b--;)y[b]=arguments[b];var E=h<3&&y[0]!==v&&y[h-1]!==v?[]:Ya(y,v);if(h-=E.length,h<i)return kb(a,c,Np,o.placeholder,void 0,y,E,void 0,void 0,i-h);var S=this&&this!==Cc&&this instanceof o?f:a;return ai(S,this,y)}return o}var oE=1;function iE(a,c,i,f){var o=c&oE,h=xo(a);function y(){for(var b=-1,v=arguments.length,E=-1,S=f.length,k=Array(S+v),T=this&&this!==Cc&&this instanceof y?h:a;++E<S;)k[E]=f[E];for(;v--;)k[E++]=arguments[++b];return ai(T,o?i:this,k)}return y}var Mb="__lodash_placeholder__",ky=1,aE=2,uE=4,Db=8,xl=128,Nb=256,cE=Math.min;function sE(a,c){var i=a[1],f=c[1],o=i|f,h=o<(ky|aE|xl),y=f==xl&&i==Db||f==xl&&i==Nb&&a[7].length<=c[8]||f==(xl|Nb)&&c[7].length<=c[8]&&i==Db;if(!(h||y))return a;f&ky&&(a[2]=c[2],o|=i&ky?0:uE);var b=c[3];if(b){var v=a[3];a[3]=v?wb(v,b,c[4]):b,a[4]=v?Ya(a[3],Mb):c[4]}return b=c[5],b&&(v=a[5],a[5]=v?xb(v,b,c[6]):b,a[6]=v?Ya(a[5],Mb):c[6]),b=c[7],b&&(a[7]=b),f&xl&&(a[8]=a[8]==null?c[8]:cE(a[8],c[8])),a[9]==null&&(a[9]=c[9]),a[0]=c[0],a[1]=o,a}var lE="Expected a function",Cb=1,fE=2,Ty=8,My=16,Dy=32,Rb=64,Ib=Math.max;function da(a,c,i,f,o,h,y,b){var v=c&fE;if(!v&&typeof a!="function")throw new TypeError(lE);var E=f?f.length:0;if(E||(c&=~(Dy|Rb),f=o=void 0),y=y===void 0?y:Ib(ar(y),0),b=b===void 0?b:ar(b),E-=o?o.length:0,c&Rb){var S=f,k=o;f=o=void 0}var T=v?void 0:Py(a),M=[a,c,i,f,o,S,k,h,y,b];if(T&&sE(M,T),a=M[0],c=M[1],i=M[2],f=M[3],o=M[4],b=M[9]=M[9]===void 0?v?0:a.length:Ib(M[9]-E,0),!b&&c&(Ty|My)&&(c&=~(Ty|My)),!c||c==Cb)var I=vx(a,c,i);else c==Ty||c==My?I=nE(a,c,b):(c==Dy||c==(Cb|Dy))&&!o.length?I=iE(a,c,i,f):I=Np.apply(void 0,M);var C=T?Uc:jb;return Sb(C(I,M),a,c)}var pE=128;function Lb(a,c,i){return c=i?void 0:c,c=a&&c==null?a.length:c,da(a,pE,void 0,void 0,void 0,void 0,c)}var hE=Object.prototype,dE=hE.hasOwnProperty,yE=kp(function(a,c){if(rI(c)||yl(c)){yy(c,zo(c),a);return}for(var i in c)dE.call(c,i)&&Iw(a,i,c[i])});const gE=yE;var vE=kp(function(a,c){yy(c,Ua(c),a)});const zb=vE;var mE=kp(function(a,c,i,f){yy(c,Ua(c),a,f)});const Cp=mE;var bE=kp(function(a,c,i,f){yy(c,zo(c),a,f)});const _E=bE;function Ny(a,c){for(var i=-1,f=c.length,o=Array(f),h=a==null;++i<f;)o[i]=h?void 0:Lw(a,c[i]);return o}var OE=Rc(Ny);const wE=OE;var xE="[object DOMException]",EE="[object Error]";function Cy(a){if(!Fa(a))return!1;var c=_p(a);return c==EE||c==xE||typeof a.message=="string"&&typeof a.name=="string"&&!hb(a)}var jE=gr(function(a,c){try{return ai(a,void 0,c)}catch(i){return Cy(i)?i:new Error(i)}});const Bb=jE;var SE="Expected a function";function Fb(a,c){var i;if(typeof c!="function")throw new TypeError(SE);return a=ar(a),function(){return--a>0&&(i=c.apply(this,arguments)),a<=1&&(c=void 0),i}}var PE=1,AE=32,Ry=gr(function(a,c,i){var f=PE;if(i.length){var o=Ya(i,Xc(Ry));f|=AE}return da(a,f,c,i,o)});Ry.placeholder={};const Ub=Ry;var kE=Rc(function(a,c){return Mi(c,function(i){i=gy(i),Op(a,i,Ub(a[i],a))}),a});const TE=kE;var ME=1,DE=2,NE=32,Iy=gr(function(a,c,i){var f=ME|DE;if(i.length){var o=Ya(i,Xc(Iy));f|=NE}return da(c,f,a,i,o)});Iy.placeholder={};const CE=Iy;function RE(){if(!arguments.length)return[];var a=arguments[0];return Xr(a)?a:[a]}var IE=Cc.isFinite,LE=Math.min;function Ly(a){var c=Math[a];return function(i,f){if(i=Ga(i),f=f==null?0:LE(ar(f),292),f&&IE(i)){var o=(cn(i)+"e").split("e"),h=c(o[0]+"e"+(+o[1]+f));return o=(cn(h)+"e").split("e"),+(o[0]+"e"+(+o[1]-f))}return c(i)}}var zE=Ly("ceil");const BE=zE;function Gb(a){var c=F(a);return c.__chain__=!0,c}var FE=Math.ceil,UE=Math.max;function GE(a,c,i){(i?Ni(a,c,i):c===void 0)?c=1:c=UE(ar(c),0);var f=a==null?0:a.length;if(!f||c<1)return[];for(var o=0,h=0,y=Array(FE(f/c));o<f;)y[h++]=ha(a,o,o+=c);return y}function ku(a,c,i){return a===a&&(i!==void 0&&(a=a<=i?a:i),c!==void 0&&(a=a>=c?a:c)),a}function XE(a,c,i){return i===void 0&&(i=c,c=void 0),i!==void 0&&(i=Ga(i),i=i===i?i:0),c!==void 0&&(c=Ga(c),c=c===c?c:0),ku(Ga(a),c,i)}var YE=1,HE=4;function VE(a,c){return c=typeof c=="function"?c:void 0,gl(a,YE|HE,c)}var WE=4;function KE(a,c){return c=typeof c=="function"?c:void 0,gl(a,WE,c)}function ZE(){return new Bo(this.value(),this.__chain__)}function qE(a){for(var c=-1,i=a==null?0:a.length,f=0,o=[];++c<i;){var h=a[c];h&&(o[f++]=h)}return o}function $E(){var a=arguments.length;if(!a)return[];for(var c=Array(a-1),i=arguments[0],f=a;f--;)c[f-1]=arguments[f];return wp(Xr(i)?ii(i):[i],ui(c,1))}var QE="Expected a function";function JE(a){var c=a==null?0:a.length,i=er;return a=c?Zn(a,function(f){if(typeof f[1]!="function")throw new TypeError(QE);return[i(f[0]),f[1]]}):[],gr(function(f){for(var o=-1;++o<c;){var h=a[o];if(ai(h[0],this,f))return ai(h[1],this,f)}})}function Xb(a,c,i){var f=i.length;if(a==null)return!f;for(a=Object(a);f--;){var o=i[f],h=c[o],y=a[o];if(y===void 0&&!(o in a)||!h(y))return!1}return!0}function tj(a){var c=zo(a);return function(i){return Xb(i,a,c)}}var ej=1;function rj(a){return tj(gl(a,ej))}function nj(a,c){return c==null||Xb(a,c,zo(c))}var oj=Object.prototype,ij=oj.hasOwnProperty,aj=zw(function(a,c,i){ij.call(a,i)?++a[i]:Op(a,i,1)});const uj=aj;function cj(a,c){var i=mp(a);return c==null?i:nI(i,c)}var sj=8;function zy(a,c,i){c=i?void 0:c;var f=da(a,sj,void 0,void 0,void 0,void 0,void 0,c);return f.placeholder=zy.placeholder,f}zy.placeholder={};var lj=16;function By(a,c,i){c=i?void 0:c;var f=da(a,lj,void 0,void 0,void 0,void 0,void 0,c);return f.placeholder=By.placeholder,f}By.placeholder={};function fj(a,c){return a==null||a!==a?c:a}var Yb=Object.prototype,pj=Yb.hasOwnProperty,hj=gr(function(a,c){a=Object(a);var i=-1,f=c.length,o=f>2?c[2]:void 0;for(o&&Ni(c[0],c[1],o)&&(f=1);++i<f;)for(var h=c[i],y=Ua(h),b=-1,v=y.length;++b<v;){var E=y[b],S=a[E];(S===void 0||vl(S,Yb[E])&&!pj.call(a,E))&&(a[E]=h[E])}return a});const dj=hj;function Hb(a,c,i,f,o,h){return pa(a)&&pa(c)&&(h.set(c,a),fx(a,c,void 0,Hb,h),h.delete(c)),a}var yj=kp(function(a,c,i,f){fx(a,c,i,f)});const Vb=yj;var gj=gr(function(a){return a.push(void 0,Hb),ai(Vb,void 0,a)});const vj=gj;var mj="Expected a function";function Wb(a,c,i){if(typeof a!="function")throw new TypeError(mj);return setTimeout(function(){a.apply(void 0,i)},c)}var bj=gr(function(a,c){return Wb(a,1,c)});const _j=bj;var Oj=gr(function(a,c,i){return Wb(a,Ga(c)||0,i)});const wj=Oj;var xj=gr(function(a,c){var i=Di(c);return qn(i)&&(i=void 0),qn(a)?Ey(a,ui(c,1,qn,!0),er(i)):[]});const Ej=xj;var jj=gr(function(a,c){var i=Di(c);return qn(i)&&(i=void 0),qn(a)?Ey(a,ui(c,1,qn,!0),void 0,i):[]});const Sj=jj;var Pj=Ob(function(a,c){return a/c},1);const Aj=Pj;function kj(a,c,i){var f=a==null?0:a.length;return f?(c=i||c===void 0?1:ar(c),ha(a,c<0?0:c,f)):[]}function Tj(a,c,i){var f=a==null?0:a.length;return f?(c=i||c===void 0?1:ar(c),c=f-c,ha(a,0,c<0?0:c)):[]}function Rp(a,c,i,f){for(var o=a.length,h=f?o:-1;(f?h--:++h<o)&&c(a[h],h,a););return i?ha(a,f?0:h,f?h+1:o):ha(a,f?h+1:0,f?o:h)}function Mj(a,c){return a&&a.length?Rp(a,er(c),!0,!0):[]}function Dj(a,c){return a&&a.length?Rp(a,er(c),!0):[]}function Ci(a){return typeof a=="function"?a:Nc}function Kb(a,c){var i=Xr(a)?Mi:ml;return i(a,Ci(c))}function Nj(a,c){for(var i=a==null?0:a.length;i--&&c(a[i],i,a)!==!1;);return a}var Cj=oI(!0);const Zb=Cj;function Fy(a,c){return a&&Zb(a,c,zo)}var Rj=iI(Fy,!0);const qb=Rj;function $b(a,c){var i=Xr(a)?Nj:qb;return i(a,Ci(c))}function Ij(a,c,i){a=cn(a),c=Ic(c);var f=a.length;i=i===void 0?f:ku(ar(i),0,f);var o=i;return i-=c.length,i>=0&&a.slice(i,o)==c}function Lj(a,c){return Zn(c,function(i){return[i,a[i]]})}function zj(a){var c=-1,i=Array(a.size);return a.forEach(function(f){i[++c]=[f,f]}),i}var Bj="[object Map]",Fj="[object Set]";function Qb(a){return function(c){var i=vy(c);return i==Bj?Bw(c):i==Fj?zj(c):Lj(c,a(c))}}var Uj=Qb(zo);const Jb=Uj;var Gj=Qb(Ua);const t0=Gj;var Xj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Yj=sx(Xj);const Hj=Yj;var e0=/[&<>"']/g,Vj=RegExp(e0.source);function r0(a){return a=cn(a),a&&Vj.test(a)?a.replace(e0,Hj):a}var n0=/[\\^$.*+?()[\]{}|]/g,Wj=RegExp(n0.source);function Kj(a){return a=cn(a),a&&Wj.test(a)?a.replace(n0,"\\$&"):a}function o0(a,c){for(var i=-1,f=a==null?0:a.length;++i<f;)if(!c(a[i],i,a))return!1;return!0}function Zj(a,c){var i=!0;return ml(a,function(f,o,h){return i=!!c(f,o,h),i}),i}function qj(a,c,i){var f=Xr(a)?o0:Zj;return i&&Ni(a,c,i)&&(c=void 0),f(a,er(c))}var $j=4294967295;function i0(a){return a?ku(ar(a),0,$j):0}function Qj(a,c,i,f){var o=a.length;for(i=ar(i),i<0&&(i=-i>o?0:o+i),f=f===void 0||f>o?o:ar(f),f<0&&(f+=o),f=i>f?0:i0(f);i<f;)a[i++]=c;return a}function Jj(a,c,i,f){var o=a==null?0:a.length;return o?(i&&typeof i!="number"&&Ni(a,c,i)&&(i=0,f=o),Qj(a,c,i,f)):[]}function a0(a,c){var i=[];return ml(a,function(f,o,h){c(f,o,h)&&i.push(f)}),i}function tS(a,c){var i=Xr(a)?Lc:a0;return i(a,er(c))}function u0(a,c,i){var f;return i(a,function(o,h,y){if(c(o,h,y))return f=h,!1}),f}function eS(a,c){return u0(a,er(c),Xa)}var rS=Math.max,nS=Math.min;function c0(a,c,i){var f=a==null?0:a.length;if(!f)return-1;var o=f-1;return i!==void 0&&(o=ar(i),o=i<0?rS(f+o,0):nS(o,f-1)),Fw(a,er(c),o,!0)}var oS=aI(c0);const iS=oS;function aS(a,c){return u0(a,er(c),Fy)}function s0(a){return a&&a.length?a[0]:void 0}function Ip(a,c){var i=Xr(a)?Zn:N4;return i(a,er(c))}function uS(a,c){return ui(Ip(a,c),1)}var cS=1/0;function sS(a,c){return ui(Ip(a,c),cS)}function lS(a,c,i){return i=i===void 0?1:ar(i),ui(Ip(a,c),i)}var fS=1/0;function pS(a){var c=a==null?0:a.length;return c?ui(a,fS):[]}function hS(a,c){var i=a==null?0:a.length;return i?(c=c===void 0?1:ar(c),ui(a,c)):[]}var dS=512;function yS(a){return da(a,dS)}var gS=Ly("floor");const vS=gS;var mS="Expected a function",bS=8,_S=32,OS=128,wS=256;function l0(a){return Rc(function(c){var i=c.length,f=i,o=Bo.prototype.thru;for(a&&c.reverse();f--;){var h=c[f];if(typeof h!="function")throw new TypeError(mS);if(o&&!y&&Dp(h)=="wrapper")var y=new Bo([],!0)}for(f=y?f:i;++f<i;){h=c[f];var b=Dp(h),v=b=="wrapper"?Py(h):void 0;v&&Ay(v[0])&&v[1]==(OS|bS|_S|wS)&&!v[4].length&&v[9]==1?y=y[Dp(v[0])].apply(y,v[3]):y=h.length==1&&Ay(h)?y[b]():y.thru(h)}return function(){var E=arguments,S=E[0];if(y&&E.length==1&&Xr(S))return y.plant(S).value();for(var k=0,T=i?c[k].apply(this,E):S;++k<i;)T=c[k].call(this,T);return T}})}var xS=l0();const ES=xS;var jS=l0(!0);const SS=jS;function PS(a,c){return a==null?a:uI(a,Ci(c),Ua)}function AS(a,c){return a==null?a:Zb(a,Ci(c),Ua)}function kS(a,c){return a&&Xa(a,Ci(c))}function TS(a,c){return a&&Fy(a,Ci(c))}function Lp(a,c){return Lc(c,function(i){return bl(a[i])})}function MS(a){return a==null?[]:Lp(a,zo(a))}function DS(a){return a==null?[]:Lp(a,Ua(a))}function zp(a){return function(c,i){return typeof c=="string"&&typeof i=="string"||(c=Ga(c),i=Ga(i)),a(c,i)}}var NS=zp(px);const CS=NS;var RS=zp(function(a,c){return a>=c});const IS=RS;var LS=Object.prototype,zS=LS.hasOwnProperty;function BS(a,c){return a!=null&&zS.call(a,c)}function FS(a,c){return a!=null&&cI(a,c,BS)}var US=Math.max,GS=Math.min;function XS(a,c,i){return a>=GS(c,i)&&a<US(c,i)}function YS(a,c,i){return c=_l(c),i===void 0?(i=c,c=0):i=_l(i),a=Ga(a),XS(a,c,i)}function Uy(a,c){return Zn(c,function(i){return a[i]})}function Yc(a){return a==null?[]:Uy(a,zo(a))}var HS=Math.max;function VS(a,c,i,f){a=yl(a)?a:Yc(a),i=i&&!f?ar(i):0;var o=a.length;return i<0&&(i=HS(o+i,0)),xy(a)?i<=o&&a.indexOf(c,i)>-1:!!o&&db(a,c,i)>-1}var WS=Math.max;function KS(a,c,i){var f=a==null?0:a.length;if(!f)return-1;var o=i==null?0:ar(i);return o<0&&(o=WS(f+o,0)),db(a,c,o)}function ZS(a){var c=a==null?0:a.length;return c?ha(a,0,-1):[]}var qS=gr(function(a){var c=Di(a),i=Zn(a,Uw);return c===Di(i)?c=void 0:i.pop(),i.length&&i[0]===a[0]?Gw(i,er(c)):[]});const $S=qS;var QS=gr(function(a){var c=Di(a),i=Zn(a,Uw);return c=typeof c=="function"?c:void 0,c&&i.pop(),i.length&&i[0]===a[0]?Gw(i,void 0,c):[]});const JS=QS;function tP(a,c,i,f){return Xa(a,function(o,h,y){c(f,i(o),h,y)}),f}function f0(a,c){return function(i,f){return tP(i,a,c(f),{})}}var eP=Object.prototype,rP=eP.toString,nP=f0(function(a,c,i){c!=null&&typeof c.toString!="function"&&(c=rP.call(c)),a[c]=i},Xw(Nc));const oP=nP;var p0=Object.prototype,iP=p0.hasOwnProperty,aP=p0.toString,uP=f0(function(a,c,i){c!=null&&typeof c.toString!="function"&&(c=aP.call(c)),iP.call(a,c)?a[c].push(i):a[c]=[i]},er);const cP=uP;function El(a,c,i){c=Yw(c,a),a=sI(a,c);var f=a==null?a:a[gy(Di(c))];return f==null?void 0:ai(f,a,i)}var sP=gr(El);const lP=sP;var fP=gr(function(a,c,i){var f=-1,o=typeof c=="function",h=yl(a)?Array(a.length):[];return ml(a,function(y){h[++f]=o?ai(c,y,i):El(y,c,i)}),h});const pP=fP;var hP="[object ArrayBuffer]";function dP(a){return Fa(a)&&_p(a)==hP}var h0=Ol&&Ol.isArrayBuffer,yP=h0?zc(h0):dP;const gP=yP;var vP="[object Date]";function mP(a){return Fa(a)&&_p(a)==vP}var d0=Ol&&Ol.isDate,bP=d0?zc(d0):mP;const _P=bP;function OP(a){return Fa(a)&&a.nodeType===1&&!hb(a)}function wP(a,c,i){i=typeof i=="function"?i:void 0;var f=i?i(a,c):void 0;return f===void 0?lI(a,c,void 0,i):!!f}var xP=Cc.isFinite;function EP(a){return typeof a=="number"&&xP(a)}function y0(a){return typeof a=="number"&&a==ar(a)}function jP(a,c){return a===c||Hw(a,c,Vw(c))}function SP(a,c,i){return i=typeof i=="function"?i:void 0,Hw(a,c,Vw(c),i)}function PP(a){return Ww(a)&&a!=+a}var AP=fI?bl:Kw;const kP=AP;var TP="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function MP(a){if(kP(a))throw new Error(TP);return pI(a)}function DP(a){return a===null}var NP="[object RegExp]";function CP(a){return Fa(a)&&_p(a)==NP}var g0=Ol&&Ol.isRegExp,RP=g0?zc(g0):CP;const Gy=RP;var v0=9007199254740991;function IP(a){return y0(a)&&a>=-v0&&a<=v0}function LP(a){return a===void 0}var zP="[object WeakMap]";function BP(a){return Fa(a)&&vy(a)==zP}var FP="[object WeakSet]";function UP(a){return Fa(a)&&_p(a)==FP}var GP=1;function XP(a){return er(typeof a=="function"?a:gl(a,GP))}var YP=Array.prototype,HP=YP.join;function VP(a,c){return a==null?"":HP.call(a,c)}var WP=wy(function(a,c,i){return a+(i?"-":"")+c.toLowerCase()});const KP=WP;var ZP=zw(function(a,c,i){Op(a,i,c)});const qP=ZP;function $P(a,c,i){for(var f=i+1;f--;)if(a[f]===c)return f;return f}var QP=Math.max,JP=Math.min;function tA(a,c,i){var f=a==null?0:a.length;if(!f)return-1;var o=f;return i!==void 0&&(o=ar(i),o=o<0?QP(f+o,0):JP(o,f-1)),c===c?$P(a,c,o):Fw(a,hI,o,!0)}var eA=wy(function(a,c,i){return a+(i?" ":"")+c.toLowerCase()});const rA=eA;var nA=dI("toLowerCase");const oA=nA;var iA=zp(hx);const aA=iA;var uA=zp(function(a,c){return a<=c});const cA=uA;function sA(a,c){var i={};return c=er(c),Xa(a,function(f,o,h){Op(i,c(f,o,h),f)}),i}function lA(a,c){var i={};return c=er(c),Xa(a,function(f,o,h){Op(i,o,c(f,o,h))}),i}var fA=1;function pA(a){return yI(gl(a,fA))}var hA=1;function dA(a,c){return gI(a,gl(c,hA))}function yA(a,c){return a&&a.length?dx(a,er(c),px):void 0}function gA(a,c){return E4(a,er(c))}var vA=gr(function(a,c){return function(i){return El(i,a,c)}});const mA=vA;var bA=gr(function(a,c){return function(i){return El(a,i,c)}});const _A=bA;function OA(a,c){return a&&a.length?dx(a,er(c),hx):void 0}function m0(a,c,i){var f=zo(c),o=Lp(c,f),h=!(pa(i)&&"chain"in i)||!!i.chain,y=bl(a);return Mi(o,function(b){var v=c[b];a[b]=v,y&&(a.prototype[b]=function(){var E=this.__chain__;if(h||E){var S=a(this.__wrapped__),k=S.__actions__=ii(this.__actions__);return k.push({func:v,args:arguments,thisArg:a}),S.__chain__=E,S}return v.apply(a,wp([this.value()],arguments))})}),a}var wA="Expected a function";function jl(a){if(typeof a!="function")throw new TypeError(wA);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function xA(a){for(var c,i=[];!(c=a.next()).done;)i.push(c.value);return i}var EA="[object Map]",jA="[object Set]",Xy=my?my.iterator:void 0;function b0(a){if(!a)return[];if(yl(a))return xy(a)?Bc(a):ii(a);if(Xy&&a[Xy])return xA(a[Xy]());var c=vy(a),i=c==EA?Bw:c==jA?vI:Yc;return i(a)}function SA(){this.__values__===void 0&&(this.__values__=b0(this.value()));var a=this.__index__>=this.__values__.length,c=a?void 0:this.__values__[this.__index__++];return{done:a,value:c}}function _0(a,c){var i=a.length;if(i)return c+=c<0?i:0,bp(c,i)?a[c]:void 0}function PA(a,c){return a&&a.length?_0(a,ar(c)):void 0}function AA(a){return a=ar(a),gr(function(c){return _0(c,a)})}function O0(a,c){if(a==null)return{};var i=Zn(mI(a),function(f){return[f]});return c=er(c),bI(a,i,function(f,o){return c(f,o[0])})}function kA(a,c){return O0(a,jl(er(c)))}function TA(a){return Fb(2,a)}function Yy(a){return Rc(function(c){return c=Zn(c,zc(er)),gr(function(i){var f=this;return a(c,function(o){return ai(o,f,i)})})})}var MA=Yy(Zn);const DA=MA;var NA=gr;const CA=NA;var RA=Math.min,IA=CA(function(a,c){c=c.length==1&&Xr(c[0])?Zn(c[0],zc(er)):Zn(ui(c,1),zc(er));var i=c.length;return gr(function(f){for(var o=-1,h=RA(f.length,i);++o<h;)f[o]=c[o].call(this,f[o]);return ai(a,this,f)})});const LA=IA;var zA=Yy(o0);const BA=zA;var FA=Yy(Zw);const UA=FA;var GA=Math.ceil,XA=Math.floor;function YA(a,c,i){a=cn(a),c=ar(c);var f=c?yb(a):0;if(!c||f>=c)return a;var o=(c-f)/2;return qw(XA(o),i)+a+qw(GA(o),i)}var HA=/^\s+/,VA=Cc.parseInt;function WA(a,c,i){return i||c==null?c=0:c&&(c=+c),VA(cn(a).replace(HA,""),c||0)}var KA=32,Hy=gr(function(a,c){var i=Ya(c,Xc(Hy));return da(a,KA,void 0,c,i)});Hy.placeholder={};const w0=Hy;var ZA=64,Vy=gr(function(a,c){var i=Ya(c,Xc(Vy));return da(a,ZA,void 0,c,i)});Vy.placeholder={};const qA=Vy;function $A(a){for(var c,i=this;i instanceof Mp;){var f=Eb(i);f.__index__=0,f.__values__=void 0,c?o.__wrapped__=f:c=f;var o=f;i=i.__wrapped__}return o.__wrapped__=a,c}function QA(a){return function(c){return a==null?void 0:$w(a,c)}}function JA(a,c,i,f){for(var o=i-1,h=a.length;++o<h;)if(f(a[o],c))return o;return-1}var tk=Array.prototype,x0=tk.splice;function Wy(a,c,i,f){var o=f?JA:db,h=-1,y=c.length,b=a;for(a===c&&(c=ii(c)),i&&(b=Zn(a,zc(i)));++h<y;)for(var v=0,E=c[h],S=i?i(E):E;(v=o(b,S,v,f))>-1;)b!==a&&x0.call(b,v,1),x0.call(a,v,1);return a}function E0(a,c){return a&&a.length&&c&&c.length?Wy(a,c):a}var ek=gr(E0);const rk=ek;function nk(a,c,i){return a&&a.length&&c&&c.length?Wy(a,c,er(i)):a}function ok(a,c,i){return a&&a.length&&c&&c.length?Wy(a,c,void 0,i):a}var ik=Array.prototype,ak=ik.splice;function j0(a,c){for(var i=a?c.length:0,f=i-1;i--;){var o=c[i];if(i==f||o!==h){var h=o;bp(o)?ak.call(a,o,1):Qw(a,o)}}return a}var uk=Rc(function(a,c){var i=a==null?0:a.length,f=Ny(a,c);return j0(a,Zn(c,function(o){return bp(o,i)?+o:o}).sort(C4)),f});const ck=uk;var sk=Math.ceil,lk=Math.max;function fk(a,c,i,f){for(var o=-1,h=lk(sk((c-a)/(i||1)),0),y=Array(h);h--;)y[f?h:++o]=a,a+=i;return y}function S0(a){return function(c,i,f){return f&&typeof f!="number"&&Ni(c,i,f)&&(i=f=void 0),c=_l(c),i===void 0?(i=c,c=0):i=_l(i),f=f===void 0?c<i?1:-1:_l(f),fk(c,i,f,a)}}var pk=S0();const hk=pk;var dk=S0(!0);const yk=dk;var gk=256,vk=Rc(function(a,c){return da(a,gk,void 0,void 0,void 0,c)});const mk=vk;function P0(a,c,i,f,o){return o(a,function(h,y,b){i=f?(f=!1,h):c(i,h,y,b)}),i}function bk(a,c,i){var f=Xr(a)?lx:P0,o=arguments.length<3;return f(a,er(c),i,o,ml)}function _k(a,c,i,f){var o=a==null?0:a.length;for(f&&o&&(i=a[--o]);o--;)i=c(i,a[o],o,a);return i}function Ok(a,c,i){var f=Xr(a)?_k:P0,o=arguments.length<3;return f(a,er(c),i,o,qb)}function wk(a,c){var i=Xr(a)?Lc:a0;return i(a,jl(er(c)))}function xk(a,c){var i=[];if(!(a&&a.length))return i;var f=-1,o=[],h=a.length;for(c=er(c);++f<h;){var y=a[f];c(y,f,a)&&(i.push(y),o.push(f))}return j0(a,o),i}function Ek(a,c,i){return(i?Ni(a,c,i):c===void 0)?c=1:c=ar(c),_I(cn(a),c)}function jk(){var a=arguments,c=cn(a[0]);return a.length<3?c:c.replace(a[1],a[2])}var Sk="Expected a function";function Pk(a,c){if(typeof a!="function")throw new TypeError(Sk);return c=c===void 0?c:ar(c),gr(a,c)}function Ak(a,c,i){c=Yw(c,a);var f=-1,o=c.length;for(o||(o=1,a=void 0);++f<o;){var h=a==null?void 0:a[gy(c[f])];h===void 0&&(f=o,h=i),a=bl(h)?h.call(a):h}return a}var kk=Array.prototype,Tk=kk.reverse;function Ky(a){return a==null?a:Tk.call(a)}var Mk=Ly("round");const Dk=Mk;function A0(a){var c=a.length;return c?a[yx(0,c-1)]:void 0}function Nk(a){return A0(Yc(a))}function Ck(a){var c=Xr(a)?A0:Nk;return c(a)}function Bp(a,c){var i=-1,f=a.length,o=f-1;for(c=c===void 0?f:c;++i<c;){var h=yx(i,o),y=a[h];a[h]=a[i],a[i]=y}return a.length=c,a}function Rk(a,c){return Bp(ii(a),ku(c,0,a.length))}function Ik(a,c){var i=Yc(a);return Bp(i,ku(c,0,i.length))}function Lk(a,c,i){(i?Ni(a,c,i):c===void 0)?c=1:c=ar(c);var f=Xr(a)?Rk:Ik;return f(a,c)}function zk(a,c,i,f){return f=typeof f=="function"?f:void 0,a==null?a:gb(a,c,i,f)}function Bk(a){return Bp(ii(a))}function Fk(a){return Bp(Yc(a))}function Uk(a){var c=Xr(a)?Bk:Fk;return c(a)}var Gk="[object Map]",Xk="[object Set]";function Yk(a){if(a==null)return 0;if(yl(a))return xy(a)?yb(a):a.length;var c=vy(a);return c==Gk||c==Xk?a.size:OI(a).length}function Hk(a,c,i){var f=a==null?0:a.length;return f?(i&&typeof i!="number"&&Ni(a,c,i)?(c=0,i=f):(c=c==null?0:ar(c),i=i===void 0?f:ar(i)),ha(a,c,i)):[]}function Vk(a,c){var i;return ml(a,function(f,o,h){return i=c(f,o,h),!i}),!!i}function Wk(a,c,i){var f=Xr(a)?Zw:Vk;return i&&Ni(a,c,i)&&(c=void 0),f(a,er(c))}var Kk=4294967295,Zk=Kk-1,qk=Math.floor,$k=Math.min;function Zy(a,c,i,f){var o=0,h=a==null?0:a.length;if(h===0)return 0;c=i(c);for(var y=c!==c,b=c===null,v=xp(c),E=c===void 0;o<h;){var S=qk((o+h)/2),k=i(a[S]),T=k!==void 0,M=k===null,I=k===k,C=xp(k);if(y)var z=f||I;else E?z=I&&(f||T):b?z=I&&T&&(f||!M):v?z=I&&T&&!M&&(f||!C):M||C?z=!1:z=f?k<=c:k<c;z?o=S+1:h=S}return $k(h,Zk)}var Qk=4294967295,Jk=Qk>>>1;function Fp(a,c,i){var f=0,o=a==null?f:a.length;if(typeof c=="number"&&c===c&&o<=Jk){for(;f<o;){var h=f+o>>>1,y=a[h];y!==null&&!xp(y)&&(i?y<=c:y<c)?f=h+1:o=h}return o}return Zy(a,c,Nc,i)}function tT(a,c){return Fp(a,c)}function eT(a,c,i){return Zy(a,c,er(i))}function rT(a,c){var i=a==null?0:a.length;if(i){var f=Fp(a,c);if(f<i&&vl(a[f],c))return f}return-1}function nT(a,c){return Fp(a,c,!0)}function oT(a,c,i){return Zy(a,c,er(i),!0)}function iT(a,c){var i=a==null?0:a.length;if(i){var f=Fp(a,c,!0)-1;if(vl(a[f],c))return f}return-1}function k0(a,c){for(var i=-1,f=a.length,o=0,h=[];++i<f;){var y=a[i],b=c?c(y):y;if(!i||!vl(b,v)){var v=b;h[o++]=y===0?0:y}}return h}function aT(a){return a&&a.length?k0(a):[]}function uT(a,c){return a&&a.length?k0(a,er(c)):[]}var cT=4294967295;function sT(a,c,i){return i&&typeof i!="number"&&Ni(a,c,i)&&(c=i=void 0),i=i===void 0?cT:i>>>0,i?(a=cn(a),a&&(typeof c=="string"||c!=null&&!Gy(c))&&(c=Ic(c),!c&&Jw(a))?Ep(Bc(a),0,i):a.split(c,i)):[]}var lT="Expected a function",fT=Math.max;function pT(a,c){if(typeof a!="function")throw new TypeError(lT);return c=c==null?0:fT(ar(c),0),gr(function(i){var f=i[c],o=Ep(i,0,c);return f&&wp(o,f),ai(a,this,o)})}var hT=wy(function(a,c,i){return a+(i?" ":"")+tx(c)});const dT=hT;function yT(a,c,i){return a=cn(a),i=i==null?0:ku(ar(i),0,a.length),c=Ic(c),a.slice(i,i+c.length)==c}function gT(){return{}}function vT(){return""}function mT(){return!0}var bT=Ob(function(a,c){return a-c},0);const _T=bT;function OT(a,c){return a&&a.length?iL(a,er(c)):0}function wT(a){var c=a==null?0:a.length;return c?ha(a,1,c):[]}function xT(a,c,i){return a&&a.length?(c=i||c===void 0?1:ar(c),ha(a,0,c<0?0:c)):[]}function ET(a,c,i){var f=a==null?0:a.length;return f?(c=i||c===void 0?1:ar(c),c=f-c,ha(a,c<0?0:c,f)):[]}function jT(a,c){return a&&a.length?Rp(a,er(c),!1,!0):[]}function ST(a,c){return a&&a.length?Rp(a,er(c)):[]}function PT(a,c){return c(a),a}var T0=Object.prototype,AT=T0.hasOwnProperty;function M0(a,c,i,f){return a===void 0||vl(a,T0[i])&&!AT.call(f,i)?c:a}var kT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function TT(a){return"\\"+kT[a]}var MT=/<%=([\s\S]+?)%>/g;const D0=MT;var DT=/<%-([\s\S]+?)%>/g;const NT=DT;var CT=/<%([\s\S]+?)%>/g,RT={escape:NT,evaluate:CT,interpolate:D0,variable:"",imports:{_:{escape:r0}}};const qy=RT;var IT="Invalid `variable` option passed into `_.template`",LT=/\b__p \+= '';/g,zT=/\b(__p \+=) '' \+/g,BT=/(__e\(.*?\)|\b__t\)) \+\n'';/g,FT=/[()=,{}\[\]\/\s]/,UT=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Up=/($^)/,GT=/['\n\r\u2028\u2029\\]/g,XT=Object.prototype,N0=XT.hasOwnProperty;function YT(a,c,i){var f=qy.imports._.templateSettings||qy;i&&Ni(a,c,i)&&(c=void 0),a=cn(a),c=Cp({},c,f,M0);var o=Cp({},c.imports,f.imports,M0),h=zo(o),y=Uy(o,h),b,v,E=0,S=c.interpolate||Up,k="__p += '",T=RegExp((c.escape||Up).source+"|"+S.source+"|"+(S===D0?UT:Up).source+"|"+(c.evaluate||Up).source+"|$","g"),M=N0.call(c,"sourceURL")?"//# sourceURL="+(c.sourceURL+"").replace(/\s/g," ")+`
  4. `:"";a.replace(T,function(z,W,K,et,at,ot){return K||(K=et),k+=a.slice(E,ot).replace(GT,TT),W&&(b=!0,k+=`' +
  5. __e(`+W+`) +
  6. '`),at&&(v=!0,k+=`';
  7. `+at+`;
  8. __p += '`),K&&(k+=`' +
  9. ((__t = (`+K+`)) == null ? '' : __t) +
  10. '`),E=ot+z.length,z}),k+=`';
  11. `;var I=N0.call(c,"variable")&&c.variable;if(!I)k=`with (obj) {
  12. `+k+`
  13. }
  14. `;else if(FT.test(I))throw new Error(IT);k=(v?k.replace(LT,""):k).replace(zT,"$1").replace(BT,"$1;"),k="function("+(I||"obj")+`) {
  15. `+(I?"":`obj || (obj = {});
  16. `)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(v?`, __j = Array.prototype.join;
  17. function print() { __p += __j.call(arguments, '') }
  18. `:`;
  19. `)+k+`return __p
  20. }`;var C=Bb(function(){return Function(h,M+"return "+k).apply(void 0,y)});if(C.source=k,Cy(C))throw C;return C}var HT="Expected a function";function VT(a,c,i){var f=!0,o=!0;if(typeof a!="function")throw new TypeError(HT);return pa(i)&&(f="leading"in i?!!i.leading:f,o="trailing"in i?!!i.trailing:o),ex(a,c,{leading:f,maxWait:c,trailing:o})}function Sl(a,c){return c(a)}var WT=9007199254740991,$y=4294967295,KT=Math.min;function ZT(a,c){if(a=ar(a),a<1||a>WT)return[];var i=$y,f=KT(a,$y);c=Ci(c),a-=$y;for(var o=rx(f,c);++i<a;)c(i);return o}function qT(){return this}function C0(a,c){var i=a;return i instanceof lr&&(i=i.value()),lx(c,function(f,o){return o.func.apply(o.thisArg,wp([f],o.args))},i)}function Qy(){return C0(this.__wrapped__,this.__actions__)}function $T(a){return cn(a).toLowerCase()}function QT(a){return Xr(a)?Zn(a,gy):xp(a)?[a]:ii(wI(cn(a)))}var R0=9007199254740991;function JT(a){return a?ku(ar(a),-R0,R0):a===0?a:0}function t2(a){return cn(a).toUpperCase()}function e2(a,c,i){var f=Xr(a),o=f||nx(a)||ox(a);if(c=er(c),i==null){var h=a&&a.constructor;o?i=f?new h:[]:pa(a)?i=bl(h)?mp(xI(a)):{}:i={}}return(o?Mi:Xa)(a,function(y,b,v){return c(i,y,b,v)}),i}function r2(a,c,i){if(a=cn(a),a&&(i||c===void 0))return a.slice(0,EI(a)+1);if(!a||!(c=Ic(c)))return a;var f=Bc(a),o=J4(f,Bc(c))+1;return Ep(f,0,o).join("")}var n2=/^\s+/;function o2(a,c,i){if(a=cn(a),a&&(i||c===void 0))return a.replace(n2,"");if(!a||!(c=Ic(c)))return a;var f=Bc(a),o=tL(f,Bc(c));return Ep(f,o).join("")}var i2=30,a2="...",u2=/\w*$/;function c2(a,c){var i=i2,f=a2;if(pa(c)){var o="separator"in c?c.separator:o;i="length"in c?ar(c.length):i,f="omission"in c?Ic(c.omission):f}a=cn(a);var h=a.length;if(Jw(a)){var y=Bc(a);h=y.length}if(i>=h)return a;var b=i-yb(f);if(b<1)return f;var v=y?Ep(y,0,b).join(""):a.slice(0,b);if(o===void 0)return v+f;if(y&&(b+=v.length-b),Gy(o)){if(a.slice(b).search(o)){var E,S=v;for(o.global||(o=RegExp(o.source,cn(u2.exec(o))+"g")),o.lastIndex=0;E=o.exec(S);)var k=E.index;v=v.slice(0,k===void 0?b:k)}}else if(a.indexOf(Ic(o),b)!=b){var T=v.lastIndexOf(o);T>-1&&(v=v.slice(0,T))}return v+f}function s2(a){return Lb(a,1)}var l2={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},f2=sx(l2);const p2=f2;var I0=/&(?:amp|lt|gt|quot|#39);/g,h2=RegExp(I0.source);function d2(a){return a=cn(a),a&&h2.test(a)?a.replace(I0,p2):a}var y2=gr(function(a){return jp(ui(a,1,qn,!0))});const g2=y2;var v2=gr(function(a){var c=Di(a);return qn(c)&&(c=void 0),jp(ui(a,1,qn,!0),er(c))});const m2=v2;function b2(a,c){return c=typeof c=="function"?c:void 0,a&&a.length?jp(a,void 0,c):[]}var _2=0;function O2(a){var c=++_2;return cn(a)+c}function w2(a,c){return a==null?!0:Qw(a,c)}var x2=Math.max;function Jy(a){if(!(a&&a.length))return[];var c=0;return a=Lc(a,function(i){if(qn(i))return c=x2(i.length,c),!0}),rx(c,function(i){return Zn(a,jI(i))})}function L0(a,c){if(!(a&&a.length))return[];var i=Jy(a);return c==null?i:Zn(i,function(f){return ai(c,void 0,f)})}function z0(a,c,i,f){return gb(a,c,i($w(a,c)),f)}function E2(a,c,i){return a==null?a:z0(a,c,Ci(i))}function j2(a,c,i,f){return f=typeof f=="function"?f:void 0,a==null?a:z0(a,c,Ci(i),f)}var S2=wy(function(a,c,i){return a+(i?" ":"")+c.toUpperCase()});const P2=S2;function A2(a){return a==null?[]:Uy(a,Ua(a))}var k2=gr(function(a,c){return qn(a)?Ey(a,c):[]});const T2=k2;function M2(a,c){return w0(Ci(c),a)}var D2=Rc(function(a){var c=a.length,i=c?a[0]:0,f=this.__wrapped__,o=function(h){return Ny(h,a)};return c>1||this.__actions__.length||!(f instanceof lr)||!bp(i)?this.thru(o):(f=f.slice(i,+i+(c?1:0)),f.__actions__.push({func:Sl,args:[o],thisArg:void 0}),new Bo(f,this.__chain__).thru(function(h){return c&&!h.length&&h.push(void 0),h}))});const N2=D2;function C2(){return Gb(this)}function R2(){var a=this.__wrapped__;if(a instanceof lr){var c=a;return this.__actions__.length&&(c=new lr(this)),c=c.reverse(),c.__actions__.push({func:Sl,args:[Ky],thisArg:void 0}),new Bo(c,this.__chain__)}return this.thru(Ky)}function tg(a,c,i){var f=a.length;if(f<2)return f?jp(a[0]):[];for(var o=-1,h=Array(f);++o<f;)for(var y=a[o],b=-1;++b<f;)b!=o&&(h[o]=Ey(h[o]||y,a[b],c,i));return jp(ui(h,1),c,i)}var I2=gr(function(a){return tg(Lc(a,qn))});const L2=I2;var z2=gr(function(a){var c=Di(a);return qn(c)&&(c=void 0),tg(Lc(a,qn),er(c))});const B2=z2;var F2=gr(function(a){var c=Di(a);return c=typeof c=="function"?c:void 0,tg(Lc(a,qn),void 0,c)});const U2=F2;var G2=gr(Jy);const X2=G2;function B0(a,c,i){for(var f=-1,o=a.length,h=c.length,y={};++f<o;){var b=f<h?c[f]:void 0;i(y,a[f],b)}return y}function Y2(a,c){return B0(a||[],c||[],Iw)}function H2(a,c){return B0(a||[],c||[],gb)}var V2=gr(function(a){var c=a.length,i=c>1?a[c-1]:void 0;return i=typeof i=="function"?(a.pop(),i):void 0,L0(a,i)});const W2=V2,he={chunk:GE,compact:qE,concat:$E,difference:M4,differenceBy:Ej,differenceWith:Sj,drop:kj,dropRight:Tj,dropRightWhile:Mj,dropWhile:Dj,fill:Jj,findIndex:SI,findLastIndex:c0,first:s0,flatten:PI,flattenDeep:pS,flattenDepth:hS,fromPairs:AI,head:s0,indexOf:KS,initial:ZS,intersection:kI,intersectionBy:$S,intersectionWith:JS,join:VP,last:Di,lastIndexOf:tA,nth:PA,pull:rk,pullAll:E0,pullAllBy:nk,pullAllWith:ok,pullAt:ck,remove:xk,reverse:Ky,slice:Hk,sortedIndex:tT,sortedIndexBy:eT,sortedIndexOf:rT,sortedLastIndex:nT,sortedLastIndexBy:oT,sortedLastIndexOf:iT,sortedUniq:aT,sortedUniqBy:uT,tail:wT,take:xT,takeRight:ET,takeRightWhile:jT,takeWhile:ST,union:g2,unionBy:m2,unionWith:I4,uniq:TI,uniqBy:z4,uniqWith:b2,unzip:Jy,unzipWith:L0,without:T2,xor:L2,xorBy:B2,xorWith:U2,zip:X2,zipObject:Y2,zipObjectDeep:H2,zipWith:W2},Tr={countBy:uj,each:Kb,eachRight:$b,every:qj,filter:tS,find:MI,findLast:iS,flatMap:uS,flatMapDeep:sS,flatMapDepth:lS,forEach:Kb,forEachRight:$b,groupBy:F4,includes:VS,invokeMap:pP,keyBy:qP,map:Ip,orderBy:G4,partition:DI,reduce:bk,reduceRight:Ok,reject:wk,sample:Ck,sampleSize:Lk,shuffle:Uk,size:Yk,some:Wk,sortBy:V4},K2={now:NI},rn={after:jy,ary:Lb,before:Fb,bind:Ub,bindKey:CE,curry:zy,curryRight:By,debounce:ex,defer:_j,delay:wj,flip:yS,memoize:CI,negate:jl,once:TA,overArgs:LA,partial:w0,partialRight:qA,rearg:mk,rest:Pk,spread:pT,throttle:VT,unary:s2,wrap:M2},Me={castArray:RE,clone:RI,cloneDeep:II,cloneDeepWith:VE,cloneWith:KE,conformsTo:nj,eq:vl,gt:CS,gte:IS,isArguments:LI,isArray:Xr,isArrayBuffer:gP,isArrayLike:yl,isArrayLikeObject:qn,isBoolean:m4,isBuffer:nx,isDate:_P,isElement:OP,isEmpty:k4,isEqual:zI,isEqualWith:wP,isError:Cy,isFinite:EP,isFunction:bl,isInteger:y0,isLength:BI,isMap:FI,isMatch:jP,isMatchWith:SP,isNaN:PP,isNative:MP,isNil:UI,isNull:DP,isNumber:Ww,isObject:pa,isObjectLike:Fa,isPlainObject:hb,isRegExp:Gy,isSafeInteger:IP,isSet:GI,isString:xy,isSymbol:xp,isTypedArray:ox,isUndefined:LP,isWeakMap:BP,isWeakSet:UP,lt:aA,lte:cA,toArray:b0,toFinite:_l,toInteger:ar,toLength:i0,toNumber:Ga,toPlainObject:b4,toSafeInteger:JT,toString:cn},$n={add:zn,ceil:BE,divide:Aj,floor:vS,max:j4,maxBy:yA,mean:S4,meanBy:gA,min:P4,minBy:OA,multiply:nL,round:Dk,subtract:_T,sum:aL,sumBy:OT},eg={clamp:XE,inRange:YS,random:Y4},Ye={assign:gE,assignIn:zb,assignInWith:Cp,assignWith:_E,at:wE,create:cj,defaults:dj,defaultsDeep:vj,entries:Jb,entriesIn:t0,extend:zb,extendWith:Cp,findKey:eS,findLastKey:aS,forIn:PS,forInRight:AS,forOwn:kS,forOwnRight:TS,functions:MS,functionsIn:DS,get:Lw,has:FS,hasIn:XI,invert:oP,invertBy:cP,invoke:lP,keys:zo,keysIn:Ua,mapKeys:sA,mapValues:lA,merge:_4,mergeWith:Vb,omit:YI,omitBy:kA,pick:HI,pickBy:O0,result:Ak,set:O4,setWith:zk,toPairs:Jb,toPairsIn:t0,transform:e2,unset:w2,update:E2,updateWith:j2,values:Yc,valuesIn:A2},Ri={at:N2,chain:Gb,commit:ZE,lodash:F,next:SA,plant:$A,reverse:R2,tap:PT,thru:Sl,toIterator:qT,toJSON:Qy,value:Qy,valueOf:Qy,wrapperChain:C2},Er={camelCase:K4,capitalize:Z4,deburr:y4,endsWith:Ij,escape:r0,escapeRegExp:Kj,kebabCase:KP,lowerCase:rA,lowerFirst:oA,pad:YA,padEnd:VI,padStart:WI,parseInt:WA,repeat:Ek,replace:jk,snakeCase:$4,split:sT,startCase:dT,startsWith:yT,template:YT,templateSettings:qy,toLower:$T,toUpper:t2,trim:eL,trimEnd:r2,trimStart:o2,truncate:c2,unescape:d2,upperCase:P2,upperFirst:tx,words:g4},Sr={attempt:Bb,bindAll:TE,cond:JE,conforms:rj,constant:Xw,defaultTo:fj,flow:ES,flowRight:SS,identity:Nc,iteratee:XP,matches:pA,matchesProperty:dA,method:mA,methodOf:_A,mixin:m0,noop:Rw,nthArg:AA,over:DA,overEvery:BA,overSome:UA,property:KI,propertyOf:QA,range:hk,rangeRight:yk,stubArray:ZI,stubFalse:Kw,stubObject:gT,stubString:vT,stubTrue:mT,times:ZT,toPath:QT,uniqueId:O2};function Z2(){var a=new lr(this.__wrapped__);return a.__actions__=ii(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=ii(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=ii(this.__views__),a}function q2(){if(this.__filtered__){var a=new lr(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}var $2=Math.max,Q2=Math.min;function J2(a,c,i){for(var f=-1,o=i.length;++f<o;){var h=i[f],y=h.size;switch(h.type){case"drop":a+=y;break;case"dropRight":c-=y;break;case"take":c=Q2(c,a+y);break;case"takeRight":a=$2(a,c-y);break}}return{start:a,end:c}}var tM=1,eM=2,rM=Math.min;function nM(){var a=this.__wrapped__.value(),c=this.__dir__,i=Xr(a),f=c<0,o=i?a.length:0,h=J2(0,o,this.__views__),y=h.start,b=h.end,v=b-y,E=f?b:y-1,S=this.__iteratees__,k=S.length,T=0,M=rM(v,this.__takeCount__);if(!i||!f&&o==v&&M==v)return C0(a,this.__actions__);var I=[];t:for(;v--&&T<M;){E+=c;for(var C=-1,z=a[E];++C<k;){var W=S[C],K=W.iteratee,et=W.type,at=K(z);if(et==eM)z=at;else if(!at){if(et==tM)continue t;break t}}I[T++]=z}return I}var oM="4.17.21",iM=2,aM=1,uM=3,F0=4294967295,cM=Array.prototype,sM=Object.prototype,U0=sM.hasOwnProperty,G0=my?my.iterator:void 0,lM=Math.max,X0=Math.min,rg=function(a){return function(c,i,f){if(f==null){var o=pa(i),h=o&&zo(i),y=h&&h.length&&Lp(i,h);(y?y.length:o)||(f=i,i=c,c=this)}return a(c,i,f)}}(m0);F.after=rn.after,F.ary=rn.ary,F.assign=Ye.assign,F.assignIn=Ye.assignIn,F.assignInWith=Ye.assignInWith,F.assignWith=Ye.assignWith,F.at=Ye.at,F.before=rn.before,F.bind=rn.bind,F.bindAll=Sr.bindAll,F.bindKey=rn.bindKey,F.castArray=Me.castArray,F.chain=Ri.chain,F.chunk=he.chunk,F.compact=he.compact,F.concat=he.concat,F.cond=Sr.cond,F.conforms=Sr.conforms,F.constant=Sr.constant,F.countBy=Tr.countBy,F.create=Ye.create,F.curry=rn.curry,F.curryRight=rn.curryRight,F.debounce=rn.debounce,F.defaults=Ye.defaults,F.defaultsDeep=Ye.defaultsDeep,F.defer=rn.defer,F.delay=rn.delay,F.difference=he.difference,F.differenceBy=he.differenceBy,F.differenceWith=he.differenceWith,F.drop=he.drop,F.dropRight=he.dropRight,F.dropRightWhile=he.dropRightWhile,F.dropWhile=he.dropWhile,F.fill=he.fill,F.filter=Tr.filter,F.flatMap=Tr.flatMap,F.flatMapDeep=Tr.flatMapDeep,F.flatMapDepth=Tr.flatMapDepth,F.flatten=he.flatten,F.flattenDeep=he.flattenDeep,F.flattenDepth=he.flattenDepth,F.flip=rn.flip,F.flow=Sr.flow,F.flowRight=Sr.flowRight,F.fromPairs=he.fromPairs,F.functions=Ye.functions,F.functionsIn=Ye.functionsIn,F.groupBy=Tr.groupBy,F.initial=he.initial,F.intersection=he.intersection,F.intersectionBy=he.intersectionBy,F.intersectionWith=he.intersectionWith,F.invert=Ye.invert,F.invertBy=Ye.invertBy,F.invokeMap=Tr.invokeMap,F.iteratee=Sr.iteratee,F.keyBy=Tr.keyBy,F.keys=zo,F.keysIn=Ye.keysIn,F.map=Tr.map,F.mapKeys=Ye.mapKeys,F.mapValues=Ye.mapValues,F.matches=Sr.matches,F.matchesProperty=Sr.matchesProperty,F.memoize=rn.memoize,F.merge=Ye.merge,F.mergeWith=Ye.mergeWith,F.method=Sr.method,F.methodOf=Sr.methodOf,F.mixin=rg,F.negate=jl,F.nthArg=Sr.nthArg,F.omit=Ye.omit,F.omitBy=Ye.omitBy,F.once=rn.once,F.orderBy=Tr.orderBy,F.over=Sr.over,F.overArgs=rn.overArgs,F.overEvery=Sr.overEvery,F.overSome=Sr.overSome,F.partial=rn.partial,F.partialRight=rn.partialRight,F.partition=Tr.partition,F.pick=Ye.pick,F.pickBy=Ye.pickBy,F.property=Sr.property,F.propertyOf=Sr.propertyOf,F.pull=he.pull,F.pullAll=he.pullAll,F.pullAllBy=he.pullAllBy,F.pullAllWith=he.pullAllWith,F.pullAt=he.pullAt,F.range=Sr.range,F.rangeRight=Sr.rangeRight,F.rearg=rn.rearg,F.reject=Tr.reject,F.remove=he.remove,F.rest=rn.rest,F.reverse=he.reverse,F.sampleSize=Tr.sampleSize,F.set=Ye.set,F.setWith=Ye.setWith,F.shuffle=Tr.shuffle,F.slice=he.slice,F.sortBy=Tr.sortBy,F.sortedUniq=he.sortedUniq,F.sortedUniqBy=he.sortedUniqBy,F.split=Er.split,F.spread=rn.spread,F.tail=he.tail,F.take=he.take,F.takeRight=he.takeRight,F.takeRightWhile=he.takeRightWhile,F.takeWhile=he.takeWhile,F.tap=Ri.tap,F.throttle=rn.throttle,F.thru=Sl,F.toArray=Me.toArray,F.toPairs=Ye.toPairs,F.toPairsIn=Ye.toPairsIn,F.toPath=Sr.toPath,F.toPlainObject=Me.toPlainObject,F.transform=Ye.transform,F.unary=rn.unary,F.union=he.union,F.unionBy=he.unionBy,F.unionWith=he.unionWith,F.uniq=he.uniq,F.uniqBy=he.uniqBy,F.uniqWith=he.uniqWith,F.unset=Ye.unset,F.unzip=he.unzip,F.unzipWith=he.unzipWith,F.update=Ye.update,F.updateWith=Ye.updateWith,F.values=Ye.values,F.valuesIn=Ye.valuesIn,F.without=he.without,F.words=Er.words,F.wrap=rn.wrap,F.xor=he.xor,F.xorBy=he.xorBy,F.xorWith=he.xorWith,F.zip=he.zip,F.zipObject=he.zipObject,F.zipObjectDeep=he.zipObjectDeep,F.zipWith=he.zipWith,F.entries=Ye.toPairs,F.entriesIn=Ye.toPairsIn,F.extend=Ye.assignIn,F.extendWith=Ye.assignInWith,rg(F,F),F.add=$n.add,F.attempt=Sr.attempt,F.camelCase=Er.camelCase,F.capitalize=Er.capitalize,F.ceil=$n.ceil,F.clamp=eg.clamp,F.clone=Me.clone,F.cloneDeep=Me.cloneDeep,F.cloneDeepWith=Me.cloneDeepWith,F.cloneWith=Me.cloneWith,F.conformsTo=Me.conformsTo,F.deburr=Er.deburr,F.defaultTo=Sr.defaultTo,F.divide=$n.divide,F.endsWith=Er.endsWith,F.eq=Me.eq,F.escape=Er.escape,F.escapeRegExp=Er.escapeRegExp,F.every=Tr.every,F.find=Tr.find,F.findIndex=he.findIndex,F.findKey=Ye.findKey,F.findLast=Tr.findLast,F.findLastIndex=he.findLastIndex,F.findLastKey=Ye.findLastKey,F.floor=$n.floor,F.forEach=Tr.forEach,F.forEachRight=Tr.forEachRight,F.forIn=Ye.forIn,F.forInRight=Ye.forInRight,F.forOwn=Ye.forOwn,F.forOwnRight=Ye.forOwnRight,F.get=Ye.get,F.gt=Me.gt,F.gte=Me.gte,F.has=Ye.has,F.hasIn=Ye.hasIn,F.head=he.head,F.identity=Nc,F.includes=Tr.includes,F.indexOf=he.indexOf,F.inRange=eg.inRange,F.invoke=Ye.invoke,F.isArguments=Me.isArguments,F.isArray=Xr,F.isArrayBuffer=Me.isArrayBuffer,F.isArrayLike=Me.isArrayLike,F.isArrayLikeObject=Me.isArrayLikeObject,F.isBoolean=Me.isBoolean,F.isBuffer=Me.isBuffer,F.isDate=Me.isDate,F.isElement=Me.isElement,F.isEmpty=Me.isEmpty,F.isEqual=Me.isEqual,F.isEqualWith=Me.isEqualWith,F.isError=Me.isError,F.isFinite=Me.isFinite,F.isFunction=Me.isFunction,F.isInteger=Me.isInteger,F.isLength=Me.isLength,F.isMap=Me.isMap,F.isMatch=Me.isMatch,F.isMatchWith=Me.isMatchWith,F.isNaN=Me.isNaN,F.isNative=Me.isNative,F.isNil=Me.isNil,F.isNull=Me.isNull,F.isNumber=Me.isNumber,F.isObject=pa,F.isObjectLike=Me.isObjectLike,F.isPlainObject=Me.isPlainObject,F.isRegExp=Me.isRegExp,F.isSafeInteger=Me.isSafeInteger,F.isSet=Me.isSet,F.isString=Me.isString,F.isSymbol=Me.isSymbol,F.isTypedArray=Me.isTypedArray,F.isUndefined=Me.isUndefined,F.isWeakMap=Me.isWeakMap,F.isWeakSet=Me.isWeakSet,F.join=he.join,F.kebabCase=Er.kebabCase,F.last=Di,F.lastIndexOf=he.lastIndexOf,F.lowerCase=Er.lowerCase,F.lowerFirst=Er.lowerFirst,F.lt=Me.lt,F.lte=Me.lte,F.max=$n.max,F.maxBy=$n.maxBy,F.mean=$n.mean,F.meanBy=$n.meanBy,F.min=$n.min,F.minBy=$n.minBy,F.stubArray=Sr.stubArray,F.stubFalse=Sr.stubFalse,F.stubObject=Sr.stubObject,F.stubString=Sr.stubString,F.stubTrue=Sr.stubTrue,F.multiply=$n.multiply,F.nth=he.nth,F.noop=Sr.noop,F.now=K2.now,F.pad=Er.pad,F.padEnd=Er.padEnd,F.padStart=Er.padStart,F.parseInt=Er.parseInt,F.random=eg.random,F.reduce=Tr.reduce,F.reduceRight=Tr.reduceRight,F.repeat=Er.repeat,F.replace=Er.replace,F.result=Ye.result,F.round=$n.round,F.sample=Tr.sample,F.size=Tr.size,F.snakeCase=Er.snakeCase,F.some=Tr.some,F.sortedIndex=he.sortedIndex,F.sortedIndexBy=he.sortedIndexBy,F.sortedIndexOf=he.sortedIndexOf,F.sortedLastIndex=he.sortedLastIndex,F.sortedLastIndexBy=he.sortedLastIndexBy,F.sortedLastIndexOf=he.sortedLastIndexOf,F.startCase=Er.startCase,F.startsWith=Er.startsWith,F.subtract=$n.subtract,F.sum=$n.sum,F.sumBy=$n.sumBy,F.template=Er.template,F.times=Sr.times,F.toFinite=Me.toFinite,F.toInteger=ar,F.toLength=Me.toLength,F.toLower=Er.toLower,F.toNumber=Me.toNumber,F.toSafeInteger=Me.toSafeInteger,F.toString=Me.toString,F.toUpper=Er.toUpper,F.trim=Er.trim,F.trimEnd=Er.trimEnd,F.trimStart=Er.trimStart,F.truncate=Er.truncate,F.unescape=Er.unescape,F.uniqueId=Sr.uniqueId,F.upperCase=Er.upperCase,F.upperFirst=Er.upperFirst,F.each=Tr.forEach,F.eachRight=Tr.forEachRight,F.first=he.head,rg(F,function(){var a={};return Xa(F,function(c,i){U0.call(F.prototype,i)||(a[i]=c)}),a}(),{chain:!1}),F.VERSION=oM,(F.templateSettings=Er.templateSettings).imports._=F,Mi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){F[a].placeholder=F}),Mi(["drop","take"],function(a,c){lr.prototype[a]=function(i){i=i===void 0?1:lM(ar(i),0);var f=this.__filtered__&&!c?new lr(this):this.clone();return f.__filtered__?f.__takeCount__=X0(i,f.__takeCount__):f.__views__.push({size:X0(i,F0),type:a+(f.__dir__<0?"Right":"")}),f},lr.prototype[a+"Right"]=function(i){return this.reverse()[a](i).reverse()}}),Mi(["filter","map","takeWhile"],function(a,c){var i=c+1,f=i==aM||i==uM;lr.prototype[a]=function(o){var h=this.clone();return h.__iteratees__.push({iteratee:er(o),type:i}),h.__filtered__=h.__filtered__||f,h}}),Mi(["head","last"],function(a,c){var i="take"+(c?"Right":"");lr.prototype[a]=function(){return this[i](1).value()[0]}}),Mi(["initial","tail"],function(a,c){var i="drop"+(c?"":"Right");lr.prototype[a]=function(){return this.__filtered__?new lr(this):this[i](1)}}),lr.prototype.compact=function(){return this.filter(Nc)},lr.prototype.find=function(a){return this.filter(a).head()},lr.prototype.findLast=function(a){return this.reverse().find(a)},lr.prototype.invokeMap=gr(function(a,c){return typeof a=="function"?new lr(this):this.map(function(i){return El(i,a,c)})}),lr.prototype.reject=function(a){return this.filter(jl(er(a)))},lr.prototype.slice=function(a,c){a=ar(a);var i=this;return i.__filtered__&&(a>0||c<0)?new lr(i):(a<0?i=i.takeRight(-a):a&&(i=i.drop(a)),c!==void 0&&(c=ar(c),i=c<0?i.dropRight(-c):i.take(c-a)),i)},lr.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},lr.prototype.toArray=function(){return this.take(F0)},Xa(lr.prototype,function(a,c){var i=/^(?:filter|find|map|reject)|While$/.test(c),f=/^(?:head|last)$/.test(c),o=F[f?"take"+(c=="last"?"Right":""):c],h=f||/^find/.test(c);o&&(F.prototype[c]=function(){var y=this.__wrapped__,b=f?[1]:arguments,v=y instanceof lr,E=b[0],S=v||Xr(y),k=function(W){var K=o.apply(F,wp([W],b));return f&&T?K[0]:K};S&&i&&typeof E=="function"&&E.length!=1&&(v=S=!1);var T=this.__chain__,M=!!this.__actions__.length,I=h&&!T,C=v&&!M;if(!h&&S){y=C?y:new lr(this);var z=a.apply(y,b);return z.__actions__.push({func:Sl,args:[k],thisArg:void 0}),new Bo(z,T)}return I&&C?a.apply(this,b):(z=this.thru(k),I?f?z.value()[0]:z.value():z)})}),Mi(["pop","push","shift","sort","splice","unshift"],function(a){var c=cM[a],i=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",f=/^(?:pop|shift)$/.test(a);F.prototype[a]=function(){var o=arguments;if(f&&!this.__chain__){var h=this.value();return c.apply(Xr(h)?h:[],o)}return this[i](function(y){return c.apply(Xr(y)?y:[],o)})}}),Xa(lr.prototype,function(a,c){var i=F[c];if(i){var f=i.name+"";U0.call(Gc,f)||(Gc[f]=[]),Gc[f].push({name:c,func:i})}}),Gc[Np(void 0,iM).name]=[{name:"wrapper",func:void 0}],lr.prototype.clone=Z2,lr.prototype.reverse=q2,lr.prototype.value=nM,F.prototype.at=Ri.at,F.prototype.chain=Ri.wrapperChain,F.prototype.commit=Ri.commit,F.prototype.next=Ri.next,F.prototype.plant=Ri.plant,F.prototype.reverse=Ri.reverse,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Ri.value,F.prototype.first=F.prototype.head,G0&&(F.prototype[G0]=Ri.toIterator);const Y0=Symbol("flow-chart");function fM(a){qI(Y0,a)}function pM(){return $I(Y0)}var kn=(a=>(a.ZOOM_IN="zoomIn",a.ZOOM_OUT="zoomOut",a.RESET_ZOOM="resetZoom",a.UNDO="undo",a.REDO="redo",a.SNAPSHOT="snapshot",a.VIEW_DATA="viewData",a))(kn||{});const hM=ix({name:"FlowChartToolbar",components:{Icon:QI,Divider:JI,Tooltip:t4},props:{prefixCls:String},emits:["view-data"],setup(a,{emit:c}){const i=by([{type:kn.ZOOM_IN,icon:"codicon:zoom-out",tooltip:"\u7F29\u5C0F"},{type:kn.ZOOM_OUT,icon:"codicon:zoom-in",tooltip:"\u653E\u5927"},{type:kn.RESET_ZOOM,icon:"codicon:screen-normal",tooltip:"\u91CD\u7F6E\u6BD4\u4F8B"},{separate:!0},{type:kn.UNDO,icon:"ion:arrow-undo-outline",tooltip:"\u540E\u9000",disabled:!0},{type:kn.REDO,icon:"ion:arrow-redo-outline",tooltip:"\u524D\u8FDB",disabled:!0},{separate:!0},{type:kn.SNAPSHOT,icon:"ion:download-outline",tooltip:"\u4E0B\u8F7D"},{type:kn.VIEW_DATA,icon:"carbon:document-view",tooltip:"\u67E5\u770B\u6570\u636E"}]),{logicFlow:f}=pM();function o({data:{undoAble:y,redoAble:b}}){const v=fo(i),E=v.findIndex(k=>k.type===kn.UNDO),S=v.findIndex(k=>k.type===kn.REDO);E!==-1&&(fo(i)[E].disabled=!y),S!==-1&&(fo(i)[S].disabled=!b)}const h=y=>{const b=fo(f);if(b)switch(y.type){case kn.ZOOM_IN:b.zoom();break;case kn.ZOOM_OUT:b.zoom(!0);break;case kn.RESET_ZOOM:b.resetZoom();break;case kn.UNDO:b.undo();break;case kn.REDO:b.redo();break;case kn.SNAPSHOT:b.getSnapshot();break;case kn.VIEW_DATA:c("view-data");break}};return e4(()=>vp(this,null,function*(){var y;fo(f)&&(yield vb(),(y=fo(f))==null||y.on("history:change",o))})),r4(()=>{var y;(y=fo(f))==null||y.off("history:change",o)}),{toolbarItemList:i,onControl:h}}}),dM=["onClick"];function yM(a,c,i,f,o,h){const y=Pu("Icon"),b=Pu("Tooltip"),v=Pu("Divider");return Au(),Sp("div",{class:Oy([`${a.prefixCls}-toolbar`,"flex items-center px-2 py-1"])},[(Au(!0),Sp(ax,null,n4(a.toolbarItemList,E=>(Au(),Sp(ax,{key:E.type},[Pp(b,a4({placement:"bottom"},E.disabled?{visible:!1}:{}),{title:_y(()=>[o4(i4(E.tooltip),1)]),default:_y(()=>[E.icon?(Au(),Sp("span",{key:0,class:Oy(`${a.prefixCls}-toolbar__icon`),onClick:S=>a.onControl(E)},[Pp(y,{icon:E.icon,class:Oy(E.disabled?"cursor-not-allowed disabeld":"cursor-pointer")},null,8,["icon","class"])],10,dM)):bb("",!0)]),_:2},1040),E.separate?(Au(),_b(v,{key:0,type:"vertical"})):bb("",!0)],64))),128))],2)}const gM=mb(hM,[["render",yM]]);var ng={exports:{}};(function(a,c){(function(i,f){a.exports=f()})(window,function(){return function(i){var f={};function o(h){if(f[h])return f[h].exports;var y=f[h]={i:h,l:!1,exports:{}};return i[h].call(y.exports,y,y.exports,o),y.l=!0,y.exports}return o.m=i,o.c=f,o.d=function(h,y,b){o.o(h,y)||Object.defineProperty(h,y,{enumerable:!0,get:b})},o.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},o.t=function(h,y){if(1&y&&(h=o(h)),8&y||4&y&&typeof h=="object"&&h&&h.__esModule)return h;var b=Object.create(null);if(o.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:h}),2&y&&typeof h!="string")for(var v in h)o.d(b,v,function(E){return h[E]}.bind(null,v));return b},o.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return o.d(y,"a",y),y},o.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)},o.p="",o(o.s=222)}([function(i,f,o){o.d(f,"a",function(){return ot}),o.d(f,"b",function(){return at}),o.d(f,"c",function(){return Qt}),o.d(f,"d",function(){return be}),o.d(f,"e",function(){return W}),o.d(f,"f",function(){return et}),o.d(f,"g",function(){return W}),o.d(f,"h",function(){return Wt}),o.d(f,"i",function(){return y}),o.d(f,"j",function(){return Ee}),o.d(f,"k",function(){return q});var h,y,b,v,E,S,k,T={},M=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(st,ct){for(var dt in ct)st[dt]=ct[dt];return st}function z(st){var ct=st.parentNode;ct&&ct.removeChild(st)}function W(st,ct,dt){var Dt,Yt,Bt,Oe={};for(Bt in ct)Bt=="key"?Dt=ct[Bt]:Bt=="ref"?Yt=ct[Bt]:Oe[Bt]=ct[Bt];if(arguments.length>2&&(Oe.children=arguments.length>3?h.call(arguments,2):dt),typeof st=="function"&&st.defaultProps!=null)for(Bt in st.defaultProps)Oe[Bt]===void 0&&(Oe[Bt]=st.defaultProps[Bt]);return K(st,Oe,Dt,Yt,null)}function K(st,ct,dt,Dt,Yt){var Bt={type:st,props:ct,key:dt,ref:Dt,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Yt!=null?Yt:++b};return Yt==null&&y.vnode!=null&&y.vnode(Bt),Bt}function et(){return{current:null}}function at(st){return st.children}function ot(st,ct){this.props=st,this.context=ct}function tt(st,ct){if(ct==null)return st.__?tt(st.__,st.__.__k.indexOf(st)+1):null;for(var dt;ct<st.__k.length;ct++)if((dt=st.__k[ct])!=null&&dt.__e!=null)return dt.__e;return typeof st.type=="function"?tt(st):null}function $(st){var ct,dt;if((st=st.__)!=null&&st.__c!=null){for(st.__e=st.__c.base=null,ct=0;ct<st.__k.length;ct++)if((dt=st.__k[ct])!=null&&dt.__e!=null){st.__e=st.__c.base=dt.__e;break}return $(st)}}function X(st){(!st.__d&&(st.__d=!0)&&v.push(st)&&!U.__r++||S!==y.debounceRendering)&&((S=y.debounceRendering)||E)(U)}function U(){for(var st;U.__r=v.length;)st=v.sort(function(ct,dt){return ct.__v.__b-dt.__v.__b}),v=[],st.some(function(ct){var dt,Dt,Yt,Bt,Oe,Ce;ct.__d&&(Oe=(Bt=(dt=ct).__v).__e,(Ce=dt.__P)&&(Dt=[],(Yt=C({},Bt)).__v=Bt.__v+1,St(Ce,Bt,Yt,dt.__n,Ce.ownerSVGElement!==void 0,Bt.__h!=null?[Oe]:null,Dt,Oe!=null?Oe:tt(Bt),Bt.__h),vt(Dt,Bt),Bt.__e!=Oe&&$(Bt)))})}function H(st,ct,dt,Dt,Yt,Bt,Oe,Ce,Ae,ve){var Tt,le,ft,ce,Fe,pr,Ue,nr=Dt&&Dt.__k||M,br=nr.length;for(dt.__k=[],Tt=0;Tt<ct.length;Tt++)if((ce=dt.__k[Tt]=(ce=ct[Tt])==null||typeof ce=="boolean"?null:typeof ce=="string"||typeof ce=="number"||typeof ce=="bigint"?K(null,ce,null,null,ce):Array.isArray(ce)?K(at,{children:ce},null,null,null):ce.__b>0?K(ce.type,ce.props,ce.key,null,ce.__v):ce)!=null){if(ce.__=dt,ce.__b=dt.__b+1,(ft=nr[Tt])===null||ft&&ce.key==ft.key&&ce.type===ft.type)nr[Tt]=void 0;else for(le=0;le<br;le++){if((ft=nr[le])&&ce.key==ft.key&&ce.type===ft.type){nr[le]=void 0;break}ft=null}St(st,ce,ft=ft||T,Yt,Bt,Oe,Ce,Ae,ve),Fe=ce.__e,(le=ce.ref)&&ft.ref!=le&&(Ue||(Ue=[]),ft.ref&&Ue.push(ft.ref,null,ce),Ue.push(le,ce.__c||Fe,ce)),Fe!=null?(pr==null&&(pr=Fe),typeof ce.type=="function"&&ce.__k===ft.__k?ce.__d=Ae=V(ce,Ae,st):Ae=ut(st,ce,ft,nr,Fe,Ae),typeof dt.type=="function"&&(dt.__d=Ae)):Ae&&ft.__e==Ae&&Ae.parentNode!=st&&(Ae=tt(ft))}for(dt.__e=pr,Tt=br;Tt--;)nr[Tt]!=null&&(typeof dt.type=="function"&&nr[Tt].__e!=null&&nr[Tt].__e==dt.__d&&(dt.__d=tt(Dt,Tt+1)),Gt(nr[Tt],nr[Tt]));if(Ue)for(Tt=0;Tt<Ue.length;Tt++)kt(Ue[Tt],Ue[++Tt],Ue[++Tt])}function V(st,ct,dt){for(var Dt,Yt=st.__k,Bt=0;Yt&&Bt<Yt.length;Bt++)(Dt=Yt[Bt])&&(Dt.__=st,ct=typeof Dt.type=="function"?V(Dt,ct,dt):ut(dt,Dt,Dt,Yt,Dt.__e,ct));return ct}function q(st,ct){return ct=ct||[],st==null||typeof st=="boolean"||(Array.isArray(st)?st.some(function(dt){q(dt,ct)}):ct.push(st)),ct}function ut(st,ct,dt,Dt,Yt,Bt){var Oe,Ce,Ae;if(ct.__d!==void 0)Oe=ct.__d,ct.__d=void 0;else if(dt==null||Yt!=Bt||Yt.parentNode==null)t:if(Bt==null||Bt.parentNode!==st)st.appendChild(Yt),Oe=null;else{for(Ce=Bt,Ae=0;(Ce=Ce.nextSibling)&&Ae<Dt.length;Ae+=2)if(Ce==Yt)break t;st.insertBefore(Yt,Bt),Oe=Bt}return Oe!==void 0?Oe:Yt.nextSibling}function Et(st,ct,dt){ct[0]==="-"?st.setProperty(ct,dt):st[ct]=dt==null?"":typeof dt!="number"||I.test(ct)?dt:dt+"px"}function mt(st,ct,dt,Dt,Yt){var Bt;t:if(ct==="style")if(typeof dt=="string")st.style.cssText=dt;else{if(typeof Dt=="string"&&(st.style.cssText=Dt=""),Dt)for(ct in Dt)dt&&ct in dt||Et(st.style,ct,"");if(dt)for(ct in dt)Dt&&dt[ct]===Dt[ct]||Et(st.style,ct,dt[ct])}else if(ct[0]==="o"&&ct[1]==="n")Bt=ct!==(ct=ct.replace(/Capture$/,"")),ct=ct.toLowerCase()in st?ct.toLowerCase().slice(2):ct.slice(2),st.l||(st.l={}),st.l[ct+Bt]=dt,dt?Dt||st.addEventListener(ct,Bt?Ft:At,Bt):st.removeEventListener(ct,Bt?Ft:At,Bt);else if(ct!=="dangerouslySetInnerHTML"){if(Yt)ct=ct.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(ct!=="href"&&ct!=="list"&&ct!=="form"&&ct!=="tabIndex"&&ct!=="download"&&ct in st)try{st[ct]=dt!=null?dt:"";break t}catch(Oe){}typeof dt=="function"||(dt!=null&&(dt!==!1||ct[0]==="a"&&ct[1]==="r")?st.setAttribute(ct,dt):st.removeAttribute(ct))}}function At(st){this.l[st.type+!1](y.event?y.event(st):st)}function Ft(st){this.l[st.type+!0](y.event?y.event(st):st)}function St(st,ct,dt,Dt,Yt,Bt,Oe,Ce,Ae){var ve,Tt,le,ft,ce,Fe,pr,Ue,nr,br,Mr,Le=ct.type;if(ct.constructor!==void 0)return null;dt.__h!=null&&(Ae=dt.__h,Ce=ct.__e=dt.__e,ct.__h=null,Bt=[Ce]),(ve=y.__b)&&ve(ct);try{t:if(typeof Le=="function"){if(Ue=ct.props,nr=(ve=Le.contextType)&&Dt[ve.__c],br=ve?nr?nr.props.value:ve.__:Dt,dt.__c?pr=(Tt=ct.__c=dt.__c).__=Tt.__E:("prototype"in Le&&Le.prototype.render?ct.__c=Tt=new Le(Ue,br):(ct.__c=Tt=new ot(Ue,br),Tt.constructor=Le,Tt.render=oe),nr&&nr.sub(Tt),Tt.props=Ue,Tt.state||(Tt.state={}),Tt.context=br,Tt.__n=Dt,le=Tt.__d=!0,Tt.__h=[]),Tt.__s==null&&(Tt.__s=Tt.state),Le.getDerivedStateFromProps!=null&&(Tt.__s==Tt.state&&(Tt.__s=C({},Tt.__s)),C(Tt.__s,Le.getDerivedStateFromProps(Ue,Tt.__s))),ft=Tt.props,ce=Tt.state,le)Le.getDerivedStateFromProps==null&&Tt.componentWillMount!=null&&Tt.componentWillMount(),Tt.componentDidMount!=null&&Tt.__h.push(Tt.componentDidMount);else{if(Le.getDerivedStateFromProps==null&&Ue!==ft&&Tt.componentWillReceiveProps!=null&&Tt.componentWillReceiveProps(Ue,br),!Tt.__e&&Tt.shouldComponentUpdate!=null&&Tt.shouldComponentUpdate(Ue,Tt.__s,br)===!1||ct.__v===dt.__v){Tt.props=Ue,Tt.state=Tt.__s,ct.__v!==dt.__v&&(Tt.__d=!1),Tt.__v=ct,ct.__e=dt.__e,ct.__k=dt.__k,ct.__k.forEach(function(Yr){Yr&&(Yr.__=ct)}),Tt.__h.length&&Oe.push(Tt);break t}Tt.componentWillUpdate!=null&&Tt.componentWillUpdate(Ue,Tt.__s,br),Tt.componentDidUpdate!=null&&Tt.__h.push(function(){Tt.componentDidUpdate(ft,ce,Fe)})}Tt.context=br,Tt.props=Ue,Tt.state=Tt.__s,(ve=y.__r)&&ve(ct),Tt.__d=!1,Tt.__v=ct,Tt.__P=st,ve=Tt.render(Tt.props,Tt.state,Tt.context),Tt.state=Tt.__s,Tt.getChildContext!=null&&(Dt=C(C({},Dt),Tt.getChildContext())),le||Tt.getSnapshotBeforeUpdate==null||(Fe=Tt.getSnapshotBeforeUpdate(ft,ce)),Mr=ve!=null&&ve.type===at&&ve.key==null?ve.props.children:ve,H(st,Array.isArray(Mr)?Mr:[Mr],ct,dt,Dt,Yt,Bt,Oe,Ce,Ae),Tt.base=ct.__e,ct.__h=null,Tt.__h.length&&Oe.push(Tt),pr&&(Tt.__E=Tt.__=null),Tt.__e=!1}else Bt==null&&ct.__v===dt.__v?(ct.__k=dt.__k,ct.__e=dt.__e):ct.__e=Pt(dt.__e,ct,dt,Dt,Yt,Bt,Oe,Ae);(ve=y.diffed)&&ve(ct)}catch(Yr){ct.__v=null,(Ae||Bt!=null)&&(ct.__e=Ce,ct.__h=!!Ae,Bt[Bt.indexOf(Ce)]=null),y.__e(Yr,ct,dt)}}function vt(st,ct){y.__c&&y.__c(ct,st),st.some(function(dt){try{st=dt.__h,dt.__h=[],st.some(function(Dt){Dt.call(dt)})}catch(Dt){y.__e(Dt,dt.__v)}})}function Pt(st,ct,dt,Dt,Yt,Bt,Oe,Ce){var Ae,ve,Tt,le=dt.props,ft=ct.props,ce=ct.type,Fe=0;if(ce==="svg"&&(Yt=!0),Bt!=null){for(;Fe<Bt.length;Fe++)if((Ae=Bt[Fe])&&"setAttribute"in Ae==!!ce&&(ce?Ae.localName===ce:Ae.nodeType===3)){st=Ae,Bt[Fe]=null;break}}if(st==null){if(ce===null)return document.createTextNode(ft);st=Yt?document.createElementNS("http://www.w3.org/2000/svg",ce):document.createElement(ce,ft.is&&ft),Bt=null,Ce=!1}if(ce===null)le===ft||Ce&&st.data===ft||(st.data=ft);else{if(Bt=Bt&&h.call(st.childNodes),ve=(le=dt.props||T).dangerouslySetInnerHTML,Tt=ft.dangerouslySetInnerHTML,!Ce){if(Bt!=null)for(le={},Fe=0;Fe<st.attributes.length;Fe++)le[st.attributes[Fe].name]=st.attributes[Fe].value;(Tt||ve)&&(Tt&&(ve&&Tt.__html==ve.__html||Tt.__html===st.innerHTML)||(st.innerHTML=Tt&&Tt.__html||""))}if(function(pr,Ue,nr,br,Mr){var Le;for(Le in nr)Le==="children"||Le==="key"||Le in Ue||mt(pr,Le,null,nr[Le],br);for(Le in Ue)Mr&&typeof Ue[Le]!="function"||Le==="children"||Le==="key"||Le==="value"||Le==="checked"||nr[Le]===Ue[Le]||mt(pr,Le,Ue[Le],nr[Le],br)}(st,ft,le,Yt,Ce),Tt)ct.__k=[];else if(Fe=ct.props.children,H(st,Array.isArray(Fe)?Fe:[Fe],ct,dt,Dt,Yt&&ce!=="foreignObject",Bt,Oe,Bt?Bt[0]:dt.__k&&tt(dt,0),Ce),Bt!=null)for(Fe=Bt.length;Fe--;)Bt[Fe]!=null&&z(Bt[Fe]);Ce||("value"in ft&&(Fe=ft.value)!==void 0&&(Fe!==le.value||Fe!==st.value||ce==="progress"&&!Fe)&&mt(st,"value",Fe,le.value,!1),"checked"in ft&&(Fe=ft.checked)!==void 0&&Fe!==st.checked&&mt(st,"checked",Fe,le.checked,!1))}return st}function kt(st,ct,dt){try{typeof st=="function"?st(ct):st.current=ct}catch(Dt){y.__e(Dt,dt)}}function Gt(st,ct,dt){var Dt,Yt;if(y.unmount&&y.unmount(st),(Dt=st.ref)&&(Dt.current&&Dt.current!==st.__e||kt(Dt,null,ct)),(Dt=st.__c)!=null){if(Dt.componentWillUnmount)try{Dt.componentWillUnmount()}catch(Bt){y.__e(Bt,ct)}Dt.base=Dt.__P=null}if(Dt=st.__k)for(Yt=0;Yt<Dt.length;Yt++)Dt[Yt]&&Gt(Dt[Yt],ct,typeof st.type!="function");dt||st.__e==null||z(st.__e),st.__e=st.__d=void 0}function oe(st,ct,dt){return this.constructor(st,dt)}function Ee(st,ct,dt){var Dt,Yt,Bt;y.__&&y.__(st,ct),Yt=(Dt=typeof dt=="function")?null:dt&&dt.__k||ct.__k,Bt=[],St(ct,st=(!Dt&&dt||ct).__k=W(at,null,[st]),Yt||T,T,ct.ownerSVGElement!==void 0,!Dt&&dt?[dt]:Yt?null:ct.firstChild?h.call(ct.childNodes):null,Bt,!Dt&&dt?dt:Yt?Yt.__e:ct.firstChild,Dt),vt(Bt,st)}function Wt(st,ct){Ee(st,ct,Wt)}function Qt(st,ct,dt){var Dt,Yt,Bt,Oe=C({},st.props);for(Bt in ct)Bt=="key"?Dt=ct[Bt]:Bt=="ref"?Yt=ct[Bt]:Oe[Bt]=ct[Bt];return arguments.length>2&&(Oe.children=arguments.length>3?h.call(arguments,2):dt),K(st.type,Oe,Dt||st.key,Yt||st.ref,null)}function be(st,ct){var dt={__c:ct="__cC"+k++,__:st,Consumer:function(Dt,Yt){return Dt.children(Yt)},Provider:function(Dt){var Yt,Bt;return this.getChildContext||(Yt=[],(Bt={})[ct]=this,this.getChildContext=function(){return Bt},this.shouldComponentUpdate=function(Oe){this.props.value!==Oe.value&&Yt.some(X)},this.sub=function(Oe){Yt.push(Oe);var Ce=Oe.componentWillUnmount;Oe.componentWillUnmount=function(){Yt.splice(Yt.indexOf(Oe),1),Ce&&Ce.call(Oe)}}),Dt.children}};return dt.Provider.__=dt.Consumer.contextType=dt}h=M.slice,y={__e:function(st,ct){for(var dt,Dt,Yt;ct=ct.__;)if((dt=ct.__c)&&!dt.__)try{if((Dt=dt.constructor)&&Dt.getDerivedStateFromError!=null&&(dt.setState(Dt.getDerivedStateFromError(st)),Yt=dt.__d),dt.componentDidCatch!=null&&(dt.componentDidCatch(st),Yt=dt.__d),Yt)return dt.__E=dt}catch(Bt){st=Bt}throw st}},b=0,ot.prototype.setState=function(st,ct){var dt;dt=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=C({},this.state),typeof st=="function"&&(st=st(C({},dt),this.props)),st&&C(dt,st),st!=null&&this.__v&&(ct&&this.__h.push(ct),X(this))},ot.prototype.forceUpdate=function(st){this.__v&&(this.__e=!0,st&&this.__h.push(st),X(this))},ot.prototype.render=at,v=[],E=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U.__r=0,k=0},function(i,f,o){(function(h,y){o.d(f,"a",function(){return X}),o.d(f,"b",function(){return Zu}),o.d(f,"c",function(){return yo}),o.d(f,"d",function(){return je}),o.d(f,"e",function(){return Zt}),o.d(f,"f",function(){return Kt}),o.d(f,"g",function(){return we}),o.d(f,"h",function(){return To}),o.d(f,"i",function(){return Mr}),o.d(f,"j",function(){return ae}),o.d(f,"k",function(){return Xo}),o.d(f,"l",function(){return Bu}),o.d(f,"m",function(){return pr}),o.d(f,"n",function(){return zi}),o.d(f,"o",function(){return V}),o.d(f,"p",function(){return is}),o.d(f,"q",function(){return Yo}),o.d(f,"r",function(){return Ka}),o.d(f,"s",function(){return oo}),o.d(f,"t",function(){return Ur}),o.d(f,"u",function(){return Wa}),o.d(f,"v",function(){return os}),o.d(f,"w",function(){return Yu}),o.d(f,"x",function(){return Bi}),o.d(f,"y",function(){return no}),o.d(f,"z",function(){return Vr}),o.d(f,"A",function(){return Rn}),o.d(f,"B",function(){return jo}),o.d(f,"C",function(){return ve}),o.d(f,"D",function(){return as}),o.d(f,"E",function(){return hr}),o.d(f,"F",function(){return dr}),o.d(f,"G",function(){return Lu}),o.d(f,"H",function(){return Iu}),o.d(f,"I",function(){return Hu}),o.d(f,"J",function(){return on}),o.d(f,"K",function(){return ht}),o.d(f,"L",function(){return jr}),o.d(f,"M",function(){return qa});var b=[];Object.freeze(b);var v={};function E(){return++fe.mobxGuid}function S(O){throw k(!1,O),"X"}function k(O,w){if(!O)throw new Error("[mobx] "+(w||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(v);function T(O){var w=!1;return function(){if(!w)return w=!0,O.apply(this,arguments)}}var M=function(){};function I(O){return O!==null&&typeof O=="object"}function C(O){if(O===null||typeof O!="object")return!1;var w=Object.getPrototypeOf(O);return w===Object.prototype||w===null}function z(O,w,A){Object.defineProperty(O,w,{enumerable:!1,writable:!0,configurable:!0,value:A})}function W(O,w){var A="isMobX"+O;return w.prototype[A]=!0,function(L){return I(L)&&L[A]===!0}}function K(O){return O instanceof Map}function et(O){return O instanceof Set}function at(O){var w=new Set;for(var A in O)w.add(A);return Object.getOwnPropertySymbols(O).forEach(function(L){Object.getOwnPropertyDescriptor(O,L).enumerable&&w.add(L)}),Array.from(w)}function ot(O){return O&&O.toString?O.toString():new String(O).toString()}function tt(O){return O===null?null:typeof O=="object"?""+O:O}var $=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(O){return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O))}:Object.getOwnPropertyNames,X=Symbol("mobx administration"),U=function(){function O(w){w===void 0&&(w="Atom@"+E()),this.name=w,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=le.NOT_TRACKING}return O.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(w){return w()})},O.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(w){return w()})},O.prototype.reportObserved=function(){return Va(this)},O.prototype.reportChanged=function(){Tn(),function(w){w.lowestObserverState!==le.STALE&&(w.lowestObserverState=le.STALE,w.observers.forEach(function(A){A.dependenciesState===le.UP_TO_DATE&&(A.isTracing!==ft.NONE&&ho(A,w),A.onBecomeStale()),A.dependenciesState=le.STALE}))}(this),Bn()},O.prototype.toString=function(){return this.name},O}(),H=W("Atom",U);function V(O,w,A){w===void 0&&(w=M),A===void 0&&(A=M);var L,Z=new U(O);return w!==M&&rs("onBecomeObserved",Z,w,L),A!==M&&hr(Z,A),Z}var q={identity:function(O,w){return O===w},structural:function(O,w){return Nt(O,w)},default:function(O,w){return Object.is(O,w)},shallow:function(O,w){return Nt(O,w,1)}},ut=function(O,w){return ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var Z in L)L.hasOwnProperty(Z)&&(A[Z]=L[Z])},ut(O,w)},Et=function(){return Et=Object.assign||function(O){for(var w,A=1,L=arguments.length;A<L;A++)for(var Z in w=arguments[A])Object.prototype.hasOwnProperty.call(w,Z)&&(O[Z]=w[Z]);return O},Et.apply(this,arguments)};function mt(O){var w=typeof Symbol=="function"&&O[Symbol.iterator],A=0;return w?w.call(O):{next:function(){return O&&A>=O.length&&(O=void 0),{value:O&&O[A++],done:!O}}}}function At(O,w){var A=typeof Symbol=="function"&&O[Symbol.iterator];if(!A)return O;var L,Z,pt=A.call(O),jt=[];try{for(;(w===void 0||w-- >0)&&!(L=pt.next()).done;)jt.push(L.value)}catch(Ut){Z={error:Ut}}finally{try{L&&!L.done&&(A=pt.return)&&A.call(pt)}finally{if(Z)throw Z.error}}return jt}function Ft(){for(var O=[],w=0;w<arguments.length;w++)O=O.concat(At(arguments[w]));return O}var St=Symbol("mobx did run lazy initializers"),vt=Symbol("mobx pending decorators"),Pt={},kt={};function Gt(O,w){var A=w?Pt:kt;return A[O]||(A[O]={configurable:!0,enumerable:w,get:function(){return oe(this),this[O]},set:function(L){oe(this),this[O]=L}})}function oe(O){var w,A;if(O[St]!==!0){var L=O[vt];if(L){z(O,St,!0);var Z=Ft(Object.getOwnPropertySymbols(L),Object.keys(L));try{for(var pt=mt(Z),jt=pt.next();!jt.done;jt=pt.next()){var Ut=L[jt.value];Ut.propertyCreator(O,Ut.prop,Ut.descriptor,Ut.decoratorTarget,Ut.decoratorArguments)}}catch(ue){w={error:ue}}finally{try{jt&&!jt.done&&(A=pt.return)&&A.call(pt)}finally{if(w)throw w.error}}}}}function Ee(O,w){return function(){var A,L=function(Z,pt,jt,Ut){if(Ut===!0)return w(Z,pt,jt,Z,A),null;if(!Object.prototype.hasOwnProperty.call(Z,vt)){var ue=Z[vt];z(Z,vt,Et({},ue))}return Z[vt][pt]={prop:pt,propertyCreator:w,descriptor:jt,decoratorTarget:Z,decoratorArguments:A},Gt(pt,O)};return Wt(arguments)?(A=b,L.apply(null,arguments)):(A=Array.prototype.slice.call(arguments),L)}}function Wt(O){return(O.length===2||O.length===3)&&(typeof O[1]=="string"||typeof O[1]=="symbol")||O.length===4&&O[3]===!0}function Qt(O,w,A){return Bi(O)?O:Array.isArray(O)?ve.array(O,{name:A}):C(O)?ve.object(O,void 0,{name:A}):K(O)?ve.map(O,{name:A}):et(O)?ve.set(O,{name:A}):O}function be(O){return O}function st(O){k(O);var w=Ee(!0,function(L,Z,pt,jt,Ut){var ue=pt?pt.initializer?pt.initializer.call(L):pt.value:void 0;Fn(L).addObservableProp(Z,ue,O)}),A=(h!==void 0&&h.env,w);return A.enhancer=O,A}var ct={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function dt(O){return O==null?ct:typeof O=="string"?{name:O,deep:!0,proxy:!0}:O}Object.freeze(ct);var Dt=st(Qt),Yt=st(function(O,w,A){return O==null||Rn(O)||no(O)||Vr(O)||xn(O)?O:Array.isArray(O)?ve.array(O,{name:A,deep:!1}):C(O)?ve.object(O,void 0,{name:A,deep:!1}):K(O)?ve.map(O,{name:A,deep:!1}):et(O)?ve.set(O,{name:A,deep:!1}):S(!1)}),Bt=st(be),Oe=st(function(O,w,A){return Nt(O,w)?w:O});function Ce(O){return O.defaultDecorator?O.defaultDecorator.enhancer:O.deep===!1?be:Qt}var Ae={box:function(O,w){arguments.length>2&&Tt("box");var A=dt(w);return new Ir(O,Ce(A),A.name,!0,A.equals)},array:function(O,w){arguments.length>2&&Tt("array");var A=dt(w);return ma(O,Ce(A),A.name)},map:function(O,w){arguments.length>2&&Tt("map");var A=dt(w);return new Zu(O,Ce(A),A.name)},set:function(O,w){arguments.length>2&&Tt("set");var A=dt(w);return new Ao(O,Ce(A),A.name)},object:function(O,w,A){typeof arguments[1]=="string"&&Tt("object");var L=dt(A);if(L.proxy===!1)return Yo({},O,w,L);var Z=Fu(L),pt=Yo({},void 0,void 0,L),jt=Fi(pt);return ns(jt,O,w,Z),jt},ref:Bt,shallow:Yt,deep:Dt,struct:Oe},ve=function(O,w,A){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return Dt.apply(null,arguments);if(Bi(O))return O;var L=C(O)?ve.object(O,w,A):Array.isArray(O)?ve.array(O,w):K(O)?ve.map(O,w):et(O)?ve.set(O,w):O;if(L!==O)return L;S(!1)};function Tt(O){S("Expected one or two arguments to observable."+O+". Did you accidentally try to use observable."+O+" as decorator?")}Object.keys(Ae).forEach(function(O){return ve[O]=Ae[O]});var le,ft,ce=Ee(!1,function(O,w,A,L,Z){var pt=A.get,jt=A.set,Ut=Z[0]||{};Fn(O).addComputedProp(O,w,Et({get:pt,set:jt,context:O},Ut))}),Fe=ce({equals:q.structural}),pr=function(O,w,A){if(typeof w=="string"||O!==null&&typeof O=="object"&&arguments.length===1)return ce.apply(null,arguments);var L=typeof w=="object"?w:{};return L.get=O,L.set=typeof w=="function"?w:L.set,L.name=L.name||O.name||"",new Eo(L)};pr.struct=Fe,function(O){O[O.NOT_TRACKING=-1]="NOT_TRACKING",O[O.UP_TO_DATE=0]="UP_TO_DATE",O[O.POSSIBLY_STALE=1]="POSSIBLY_STALE",O[O.STALE=2]="STALE"}(le||(le={})),function(O){O[O.NONE=0]="NONE",O[O.LOG=1]="LOG",O[O.BREAK=2]="BREAK"}(ft||(ft={}));var Ue=function(O){this.cause=O};function nr(O){return O instanceof Ue}function br(O){switch(O.dependenciesState){case le.UP_TO_DATE:return!1;case le.NOT_TRACKING:case le.STALE:return!0;case le.POSSIBLY_STALE:for(var w=Kt(!0),A=it(),L=O.observing,Z=L.length,pt=0;pt<Z;pt++){var jt=L[pt];if(Go(jt)){if(fe.disableErrorBoundaries)jt.get();else try{jt.get()}catch(Ut){return _t(A),Zt(w),!0}if(O.dependenciesState===le.STALE)return _t(A),Zt(w),!0}}return pe(O),_t(A),Zt(w),!1}}function Mr(){return fe.trackingDerivation!==null}function Le(O){var w=O.observers.size>0;fe.computationDepth>0&&w&&S(!1),fe.allowStateChanges||!w&&fe.enforceActions!=="strict"||S(!1)}function Yr(O,w,A){var L=Kt(!0);pe(O),O.newObserving=new Array(O.observing.length+100),O.unboundDepsCount=0,O.runId=++fe.runId;var Z,pt=fe.trackingDerivation;if(fe.trackingDerivation=O,fe.disableErrorBoundaries===!0)Z=w.call(A);else try{Z=w.call(A)}catch(jt){Z=new Ue(jt)}return fe.trackingDerivation=pt,function(jt){for(var Ut=jt.observing,ue=jt.observing=jt.newObserving,Ze=le.UP_TO_DATE,ee=0,_r=jt.unboundDepsCount,Xe=0;Xe<_r;Xe++)(fr=ue[Xe]).diffValue===0&&(fr.diffValue=1,ee!==Xe&&(ue[ee]=fr),ee++),fr.dependenciesState>Ze&&(Ze=fr.dependenciesState);for(ue.length=ee,jt.newObserving=null,_r=Ut.length;_r--;)(fr=Ut[_r]).diffValue===0&&Du(fr,jt),fr.diffValue=0;for(;ee--;){var fr;(fr=ue[ee]).diffValue===1&&(fr.diffValue=0,Rl(fr,jt))}Ze!==le.UP_TO_DATE&&(jt.dependenciesState=Ze,jt.onBecomeStale())}(O),Zt(L),Z}function Q(O){var w=O.observing;O.observing=[];for(var A=w.length;A--;)Du(w[A],O);O.dependenciesState=le.NOT_TRACKING}function ht(O){var w=it();try{return O()}finally{_t(w)}}function it(){var O=fe.trackingDerivation;return fe.trackingDerivation=null,O}function _t(O){fe.trackingDerivation=O}function Kt(O){var w=fe.allowStateReads;return fe.allowStateReads=O,w}function Zt(O){fe.allowStateReads=O}function pe(O){if(O.dependenciesState!==le.UP_TO_DATE){O.dependenciesState=le.UP_TO_DATE;for(var w=O.observing,A=w.length;A--;)w[A].lowestObserverState=le.UP_TO_DATE}}var We=0,nn=1,pn=Object.getOwnPropertyDescriptor(function(){},"name");pn&&pn.configurable;function Hr(O,w,A){var L=function(){return Zr(O,w,A||this,arguments)};return L.isMobxAction=!0,L}function Zr(O,w,A,L){var Z=ae();try{return w.apply(A,L)}catch(pt){throw Z.error=pt,pt}finally{we(Z)}}function ae(O,w,A){var L=0,Z=it();Tn();var pt={prevDerivation:Z,prevAllowStateChanges:ze(!0),prevAllowStateReads:Kt(!0),notifySpy:!1,startTime:L,actionId:nn++,parentActionId:We};return We=pt.actionId,pt}function we(O){We!==O.actionId&&S("invalid action stack. did you forget to finish an action?"),We=O.parentActionId,O.error!==void 0&&(fe.suppressReactionErrors=!0),vr(O.prevAllowStateChanges),Zt(O.prevAllowStateReads),Bn(),_t(O.prevDerivation),O.notifySpy,fe.suppressReactionErrors=!1}function je(O,w){var A,L=ze(O);try{A=w()}finally{vr(L)}return A}function ze(O){var w=fe.allowStateChanges;return fe.allowStateChanges=O,w}function vr(O){fe.allowStateChanges=O}var Ir=function(O){function w(A,L,Z,pt,jt){Z===void 0&&(Z="ObservableValue@"+E()),jt===void 0&&(jt=q.default);var Ut=O.call(this,Z)||this;return Ut.enhancer=L,Ut.name=Z,Ut.equals=jt,Ut.hasUnreportedChange=!1,Ut.value=L(A,void 0,Z),Ut}return function(A,L){function Z(){this.constructor=A}ut(A,L),A.prototype=L===null?Object.create(L):(Z.prototype=L.prototype,new Z)}(w,O),w.prototype.dehanceValue=function(A){return this.dehancer!==void 0?this.dehancer(A):A},w.prototype.set=function(A){this.value,(A=this.prepareNewValue(A))!==fe.UNCHANGED&&this.setNewValue(A)},w.prototype.prepareNewValue=function(A){if(Le(this),Nn(this)){var L=or(this,{object:this,type:"update",newValue:A});if(!L)return fe.UNCHANGED;A=L.newValue}return A=this.enhancer(A,this.value,this.name),this.equals(this.value,A)?fe.UNCHANGED:A},w.prototype.setNewValue=function(A){var L=this.value;this.value=A,this.reportChanged(),Cn(this)&&sn(this,{type:"update",object:this,newValue:A,oldValue:L})},w.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},w.prototype.intercept=function(A){return Vo(this,A)},w.prototype.observe=function(A,L){return L&&A({object:this,type:"update",newValue:this.value,oldValue:void 0}),Po(this,A)},w.prototype.toJSON=function(){return this.get()},w.prototype.toString=function(){return this.name+"["+this.value+"]"},w.prototype.valueOf=function(){return tt(this.get())},w.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},w}(U),Uo=W("ObservableValue",Ir),Eo=function(){function O(w){this.dependenciesState=le.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=le.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+E(),this.value=new Ue(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ft.NONE,k(w.get,"missing option for computed: get"),this.derivation=w.get,this.name=w.name||"ComputedValue@"+E(),w.set&&(this.setter=Hr(this.name+"-setter",w.set)),this.equals=w.equals||(w.compareStructural||w.struct?q.structural:q.default),this.scope=w.context,this.requiresReaction=!!w.requiresReaction,this.keepAlive=!!w.keepAlive}return O.prototype.onBecomeStale=function(){(function(w){w.lowestObserverState===le.UP_TO_DATE&&(w.lowestObserverState=le.POSSIBLY_STALE,w.observers.forEach(function(A){A.dependenciesState===le.UP_TO_DATE&&(A.dependenciesState=le.POSSIBLY_STALE,A.isTracing!==ft.NONE&&ho(A,w),A.onBecomeStale())}))})(this)},O.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(w){return w()})},O.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(w){return w()})},O.prototype.get=function(){this.isComputing&&S("Cycle detected in computation "+this.name+": "+this.derivation),fe.inBatch!==0||this.observers.size!==0||this.keepAlive?(Va(this),br(this)&&this.trackAndCompute()&&function(A){A.lowestObserverState!==le.STALE&&(A.lowestObserverState=le.STALE,A.observers.forEach(function(L){L.dependenciesState===le.POSSIBLY_STALE?L.dependenciesState=le.STALE:L.dependenciesState===le.UP_TO_DATE&&(A.lowestObserverState=le.UP_TO_DATE)}))}(this)):br(this)&&(this.warnAboutUntrackedRead(),Tn(),this.value=this.computeValue(!1),Bn());var w=this.value;if(nr(w))throw w.cause;return w},O.prototype.peek=function(){var w=this.computeValue(!1);if(nr(w))throw w.cause;return w},O.prototype.set=function(w){if(this.setter){k(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,w)}finally{this.isRunningSetter=!1}}else k(!1,!1)},O.prototype.trackAndCompute=function(){var w=this.value,A=this.dependenciesState===le.NOT_TRACKING,L=this.computeValue(!0),Z=A||nr(w)||nr(L)||!this.equals(w,L);return Z&&(this.value=L),Z},O.prototype.computeValue=function(w){var A;if(this.isComputing=!0,fe.computationDepth++,w)A=Yr(this,this.derivation,this.scope);else if(fe.disableErrorBoundaries===!0)A=this.derivation.call(this.scope);else try{A=this.derivation.call(this.scope)}catch(L){A=new Ue(L)}return fe.computationDepth--,this.isComputing=!1,A},O.prototype.suspend=function(){this.keepAlive||(Q(this),this.value=void 0)},O.prototype.observe=function(w,A){var L=this,Z=!0,pt=void 0;return Bu(function(){var jt=L.get();if(!Z||A){var Ut=it();w({type:"update",object:L,newValue:jt,oldValue:pt}),_t(Ut)}Z=!1,pt=jt})},O.prototype.warnAboutUntrackedRead=function(){},O.prototype.toJSON=function(){return this.get()},O.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},O.prototype.valueOf=function(){return tt(this.get())},O.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},O}(),Go=W("ComputedValue",Eo),Li=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Cl={};function Mu(){return typeof window<"u"?window:y!==void 0?y:typeof self<"u"?self:Cl}var eo=!0,ya=!1,fe=function(){var O=Mu();return O.__mobxInstanceCount>0&&!O.__mobxGlobals&&(eo=!1),O.__mobxGlobals&&O.__mobxGlobals.version!==new Li().version&&(eo=!1),eo?O.__mobxGlobals?(O.__mobxInstanceCount+=1,O.__mobxGlobals.UNCHANGED||(O.__mobxGlobals.UNCHANGED={}),O.__mobxGlobals):(O.__mobxInstanceCount=1,O.__mobxGlobals=new Li):(setTimeout(function(){ya||S("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Li)}();function Rl(O,w){O.observers.add(w),O.lowestObserverState>w.dependenciesState&&(O.lowestObserverState=w.dependenciesState)}function Du(O,w){O.observers.delete(w),O.observers.size===0&&Nu(O)}function Nu(O){O.isPendingUnobservation===!1&&(O.isPendingUnobservation=!0,fe.pendingUnobservations.push(O))}function Tn(){fe.inBatch++}function Bn(){if(--fe.inBatch==0){Ru();for(var O=fe.pendingUnobservations,w=0;w<O.length;w++){var A=O[w];A.isPendingUnobservation=!1,A.observers.size===0&&(A.isBeingObserved&&(A.isBeingObserved=!1,A.onBecomeUnobserved()),A instanceof Eo&&A.suspend())}fe.pendingUnobservations=[]}}function Va(O){var w=fe.trackingDerivation;return w!==null?(w.runId!==O.lastAccessedBy&&(O.lastAccessedBy=w.runId,w.newObserving[w.unboundDepsCount++]=O,O.isBeingObserved||(O.isBeingObserved=!0,O.onBecomeObserved())),!0):(O.observers.size===0&&fe.inBatch>0&&Nu(O),!1)}function ho(O,w){if(O.isTracing===ft.BREAK){var A=[];ro(Ur(O),A,1),new Function(`debugger;
  21. /*
  22. Tracing '`+O.name+`'
  23. You are entering this break point because derivation '`+O.name+"' is being traced and '"+w.name+`' is now forcing it to update.
  24. Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
  25. The stackframe you are looking for is at least ~6-8 stack-frames up.
  26. `+(O instanceof Eo?O.derivation.toString().replace(/[*]\//g,"/"):"")+`
  27. The dependencies for this derivation are:
  28. `+A.join(`
  29. `)+`
  30. */
  31. `)()}}function ro(O,w,A){w.length>=1e3?w.push("(and many more)"):(w.push(""+new Array(A).join(" ")+O.name),O.dependencies&&O.dependencies.forEach(function(L){return ro(L,w,A+1)}))}var yo=function(){function O(w,A,L,Z){w===void 0&&(w="Reaction@"+E()),Z===void 0&&(Z=!1),this.name=w,this.onInvalidate=A,this.errorHandler=L,this.requiresObservable=Z,this.observing=[],this.newObserving=[],this.dependenciesState=le.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+E(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ft.NONE}return O.prototype.onBecomeStale=function(){this.schedule()},O.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,fe.pendingReactions.push(this),Ru())},O.prototype.isScheduled=function(){return this._isScheduled},O.prototype.runReaction=function(){if(!this.isDisposed){if(Tn(),this._isScheduled=!1,br(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(w){this.reportExceptionInDerivation(w)}}Bn()}},O.prototype.track=function(w){if(!this.isDisposed){Tn(),this._isRunning=!0;var A=Yr(this,w,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Q(this),nr(A)&&this.reportExceptionInDerivation(A.cause),Bn()}},O.prototype.reportExceptionInDerivation=function(w){var A=this;if(this.errorHandler)this.errorHandler(w,this);else{if(fe.disableErrorBoundaries)throw w;fe.suppressReactionErrors,fe.globalReactionErrorHandlers.forEach(function(L){return L(w,A)})}},O.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Tn(),Q(this),Bn()))},O.prototype.getDisposer=function(){var w=this.dispose.bind(this);return w[X]=this,w},O.prototype.toString=function(){return"Reaction["+this.name+"]"},O.prototype.trace=function(w){w===void 0&&(w=!1),function(){for(var A=[],L=0;L<arguments.length;L++)A[L]=arguments[L];var Z=!1;typeof A[A.length-1]=="boolean"&&(Z=A.pop());var pt=sr(A);if(!pt)return S(!1);pt.isTracing,ft.NONE,pt.isTracing=Z?ft.BREAK:ft.LOG}(this,w)},O}(),Cu=function(O){return O()};function Ru(){fe.inBatch>0||fe.isRunningReactions||Cu(Qc)}function Qc(){fe.isRunningReactions=!0;for(var O=fe.pendingReactions,w=0;O.length>0;){++w==100&&O.splice(0);for(var A=O.splice(0),L=0,Z=A.length;L<Z;L++)A[L].runReaction()}fe.isRunningReactions=!1}var ga=W("Reaction",yo);function Jc(O){var w=Cu;Cu=function(A){return O(function(){return w(A)})}}function Iu(O){return function(){}}function Il(){S(!1)}function ci(O){return function(w,A,L){if(L){if(L.value)return{value:Hr(O,L.value),enumerable:!1,configurable:!0,writable:!0};var Z=L.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Hr(O,Z.call(this))}}}return ts(O).apply(this,arguments)}}function ts(O){return function(w,A,L){Object.defineProperty(w,A,{configurable:!0,enumerable:!1,get:function(){},set:function(Z){z(this,A,Xo(O,Z))}})}}var Xo=function(O,w,A,L){return arguments.length===1&&typeof O=="function"?Hr(O.name||"<unnamed action>",O):arguments.length===2&&typeof w=="function"?Hr(O,w):arguments.length===1&&typeof O=="string"?ci(O):L!==!0?ci(w).apply(null,arguments):void z(O,w,Hr(O.name||w,A.value,this))};function Lu(O,w){return Zr(typeof O=="string"?O:O.name||"<unnamed action>",typeof O=="function"?O:w,this,void 0)}function Wa(O){return typeof O=="function"&&O.isMobxAction===!0}function zu(O,w,A){z(O,w,Hr(w,A.bind(O)))}function Bu(O,w){w===void 0&&(w=v);var A,L=w&&w.name||O.name||"Autorun@"+E();if(!w.scheduler&&!w.delay)A=new yo(L,function(){this.track(jt)},w.onError,w.requiresObservable);else{var Z=es(w),pt=!1;A=new yo(L,function(){pt||(pt=!0,Z(function(){pt=!1,A.isDisposed||A.track(jt)}))},w.onError,w.requiresObservable)}function jt(){O(A)}return A.schedule(),A.getDisposer()}Xo.bound=function(O,w,A,L){return L===!0?(zu(O,w,A.value),null):A?{configurable:!0,enumerable:!1,get:function(){return zu(this,w,A.value||A.initializer.call(this)),this[w]},set:Il}:{enumerable:!1,configurable:!0,set:function(Z){zu(this,w,Z)},get:function(){}}};var Ll=function(O){return O()};function es(O){return O.scheduler?O.scheduler:O.delay?function(w){return setTimeout(w,O.delay)}:Ll}function dr(O,w,A){A===void 0&&(A=v);var L,Z,pt,jt=A.name||"Reaction@"+E(),Ut=Xo(jt,A.onError?(L=A.onError,Z=w,function(){try{return Z.apply(this,arguments)}catch(Dr){L.call(this,Dr)}}):w),ue=!A.scheduler&&!A.delay,Ze=es(A),ee=!0,_r=!1,Xe=A.compareStructural?q.structural:A.equals||q.default,fr=new yo(jt,function(){ee||ue?io():_r||(_r=!0,Ze(io))},A.onError,A.requiresObservable);function io(){if(_r=!1,!fr.isDisposed){var Dr=!1;fr.track(function(){var In=O(fr);Dr=ee||!Xe(pt,In),pt=In}),ee&&A.fireImmediately&&Ut(pt,fr),ee||Dr!==!0||Ut(pt,fr),ee&&(ee=!1)}}return fr.schedule(),fr.getDisposer()}function hr(O,w,A){return rs("onBecomeUnobserved",O,w,A)}function rs(O,w,A,L){var Z=typeof L=="function"?oo(w,A):oo(w),pt=typeof L=="function"?L:A,jt=O+"Listeners";return Z[jt]?Z[jt].add(pt):Z[jt]=new Set([pt]),typeof Z[O]!="function"?S(!1):function(){var Ut=Z[jt];Ut&&(Ut.delete(pt),Ut.size===0&&delete Z[jt])}}function zi(O){var w=O.enforceActions,A=O.computedRequiresReaction,L=O.computedConfigurable,Z=O.disableErrorBoundaries,pt=O.reactionScheduler,jt=O.reactionRequiresObservable,Ut=O.observableRequiresReaction;if(O.isolateGlobalState===!0&&((fe.pendingReactions.length||fe.inBatch||fe.isRunningReactions)&&S("isolateGlobalState should be called before MobX is running any reactions"),ya=!0,eo&&(--Mu().__mobxInstanceCount==0&&(Mu().__mobxGlobals=void 0),fe=new Li)),w!==void 0){var ue=void 0;switch(w){case!0:case"observed":ue=!0;break;case!1:case"never":ue=!1;break;case"strict":case"always":ue="strict";break;default:S("Invalid value for 'enforceActions': '"+w+"', expected 'never', 'always' or 'observed'")}fe.enforceActions=ue,fe.allowStateChanges=ue!==!0&&ue!=="strict"}A!==void 0&&(fe.computedRequiresReaction=!!A),jt!==void 0&&(fe.reactionRequiresObservable=!!jt),Ut!==void 0&&(fe.observableRequiresReaction=!!Ut,fe.allowStateReads=!fe.observableRequiresReaction),L!==void 0&&(fe.computedConfigurable=!!L),Z!==void 0&&(fe.disableErrorBoundaries=!!Z),pt&&Jc(pt)}function Yo(O,w,A,L){var Z=Fu(L=dt(L));return oe(O),Fn(O,L.name,Z.enhancer),w&&ns(O,w,A,Z),O}function Fu(O){return O.defaultDecorator||(O.deep===!1?Bt:Dt)}function ns(O,w,A,L){var Z,pt;Tn();try{var jt=$(w);try{for(var Ut=mt(jt),ue=Ut.next();!ue.done;ue=Ut.next()){var Ze=ue.value,ee=Object.getOwnPropertyDescriptor(w,Ze),_r=(A&&Ze in A?A[Ze]:ee.get?ce:L)(O,Ze,ee,!0);_r&&Object.defineProperty(O,Ze,_r)}}catch(Xe){Z={error:Xe}}finally{try{ue&&!ue.done&&(pt=Ut.return)&&pt.call(Ut)}finally{if(Z)throw Z.error}}}finally{Bn()}}function Ur(O,w){return Uu(oo(O,w))}function Uu(O){var w,A,L={name:O.name};return O.observing&&O.observing.length>0&&(L.dependencies=(w=O.observing,A=[],w.forEach(function(Z){A.indexOf(Z)===-1&&A.push(Z)}),A).map(Uu)),L}var va=0;function Gu(){this.message="FLOW_CANCELLED"}function Ka(O){arguments.length!==1&&S("Flow expects 1 argument and cannot be used as decorator");var w=O.name||"<unnamed flow>";return function(){var A,L=this,Z=arguments,pt=++va,jt=Xo(w+" - runid: "+pt+" - init",O).apply(L,Z),Ut=void 0,ue=new Promise(function(Ze,ee){var _r=0;function Xe(Dr){var In;Ut=void 0;try{In=Xo(w+" - runid: "+pt+" - yield "+_r++,jt.next).call(jt,Dr)}catch(Ko){return ee(Ko)}io(In)}function fr(Dr){var In;Ut=void 0;try{In=Xo(w+" - runid: "+pt+" - yield "+_r++,jt.throw).call(jt,Dr)}catch(Ko){return ee(Ko)}io(In)}function io(Dr){if(!Dr||typeof Dr.then!="function")return Dr.done?Ze(Dr.value):(Ut=Promise.resolve(Dr.value)).then(Xe,fr);Dr.then(io,ee)}A=ee,Xe(void 0)});return ue.cancel=Xo(w+" - runid: "+pt+" - cancel",function(){try{Ut&&hn(Ut);var Ze=jt.return(void 0),ee=Promise.resolve(Ze.value);ee.then(M,M),hn(ee),A(new Gu)}catch(_r){A(_r)}}),ue}}function hn(O){typeof O.cancel=="function"&&O.cancel()}function Xu(O,w){if(O==null)return!1;if(w!==void 0){if(Rn(O)===!1||!O[X].values.has(w))return!1;var A=oo(O,w);return Go(A)}return Go(O)}function os(O){return arguments.length>1?S(!1):Xu(O)}function Yu(O,w){return typeof w!="string"?S(!1):Xu(O,w)}function Za(O,w){return O!=null&&(w!==void 0?!!Rn(O)&&O[X].values.has(w):Rn(O)||!!O[X]||H(O)||ga(O)||Go(O))}function Bi(O){return arguments.length!==1&&S(!1),Za(O)}function jo(O){return Rn(O)?O[X].getKeys():Vr(O)||xn(O)?Array.from(O.keys()):no(O)?O.map(function(w,A){return A}):S(!1)}function jr(O){return Rn(O)?jo(O).map(function(w){return O[w]}):Vr(O)?jo(O).map(function(w){return O.get(w)}):xn(O)?Array.from(O.values()):no(O)?O.slice():S(!1)}function is(O){return Rn(O)?jo(O).map(function(w){return[w,O[w]]}):Vr(O)?jo(O).map(function(w){return[w,O.get(w)]}):xn(O)?Array.from(O.entries()):no(O)?O.map(function(w,A){return[A,w]}):S(!1)}function Mn(O,w,A){if(arguments.length!==2||xn(O))if(Rn(O)){var L=O[X],Z=L.values.get(w);Z?L.write(w,A):L.addObservableProp(w,A,L.defaultEnhancer)}else if(Vr(O))O.set(w,A);else if(xn(O))O.add(w);else{if(!no(O))return S(!1);typeof w!="number"&&(w=parseInt(w,10)),k(w>=0,"Not a valid index: '"+w+"'"),Tn(),w>=O.length&&(O.length=w+1),O[w]=A,Bn()}else{Tn();var pt=w;try{for(var jt in pt)Mn(O,jt,pt[jt])}finally{Bn()}}}function as(O,w,A,L){return typeof A=="function"?function(Z,pt,jt,Ut){return To(Z,pt).observe(jt,Ut)}(O,w,A,L):function(Z,pt,jt){return To(Z).observe(pt,jt)}(O,w,A)}Gu.prototype=Object.create(Error.prototype);var us={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function wn(O,w,A,L){return L.detectCycles&&O.set(w,A),A}function Dn(O,w,A){if(!w.recurseEverything&&!Bi(O)||typeof O!="object")return O;if(O===null)return null;if(O instanceof Date)return O;if(Uo(O))return Dn(O.get(),w,A);if(Bi(O)&&jo(O),w.detectCycles===!0&&O!==null&&A.has(O))return A.get(O);if(no(O)||Array.isArray(O)){var L=wn(A,O,[],w),Z=O.map(function(Xe){return Dn(Xe,w,A)});L.length=Z.length;for(var pt=0,jt=Z.length;pt<jt;pt++)L[pt]=Z[pt];return L}if(xn(O)||Object.getPrototypeOf(O)===Set.prototype){if(w.exportMapsAsObjects===!1){var Ut=wn(A,O,new Set,w);return O.forEach(function(Xe){Ut.add(Dn(Xe,w,A))}),Ut}var ue=wn(A,O,[],w);return O.forEach(function(Xe){ue.push(Dn(Xe,w,A))}),ue}if(Vr(O)||Object.getPrototypeOf(O)===Map.prototype){if(w.exportMapsAsObjects===!1){var Ze=wn(A,O,new Map,w);return O.forEach(function(Xe,fr){Ze.set(fr,Dn(Xe,w,A))}),Ze}var ee=wn(A,O,{},w);return O.forEach(function(Xe,fr){ee[fr]=Dn(Xe,w,A)}),ee}var _r=wn(A,O,{},w);return at(O).forEach(function(Xe){_r[Xe]=Dn(O[Xe],w,A)}),_r}function Hu(O,w){var A;return typeof w=="boolean"&&(w={detectCycles:w}),w||(w=us),w.detectCycles=w.detectCycles===void 0?w.recurseEverything===!0:w.detectCycles===!0,w.detectCycles&&(A=new Map),Dn(O,w,A)}function sr(O){switch(O.length){case 0:return fe.trackingDerivation;case 1:return oo(O[0]);case 2:return oo(O[0],O[1])}}function on(O,w){w===void 0&&(w=void 0),Tn();try{return O.apply(w)}finally{Bn()}}function qa(O,w,A){return arguments.length===1||w&&typeof w=="object"?Vu(O,w):cs(O,w,A||{})}function cs(O,w,A){var L;typeof A.timeout=="number"&&(L=setTimeout(function(){if(!pt[X].isDisposed){pt();var jt=new Error("WHEN_TIMEOUT");if(!A.onError)throw jt;A.onError(jt)}},A.timeout)),A.name=A.name||"When@"+E();var Z=Hr(A.name+"-effect",w),pt=Bu(function(jt){O()&&(jt.dispose(),L&&clearTimeout(L),Z())},A);return pt}function Vu(O,w){var A,L=new Promise(function(Z,pt){var jt=cs(O,Z,Et(Et({},w),{onError:pt}));A=function(){jt(),pt("WHEN_CANCELLED")}});return L.cancel=A,L}function $a(O){return O[X]}function So(O){return typeof O=="string"||typeof O=="number"||typeof O=="symbol"}var Ho={has:function(O,w){if(w===X||w==="constructor"||w===St)return!0;var A=$a(O);return So(w)?A.has(w):w in O},get:function(O,w){if(w===X||w==="constructor"||w===St)return O[w];var A=$a(O),L=A.values.get(w);if(L instanceof U){var Z=L.get();return Z===void 0&&A.has(w),Z}return So(w)&&A.has(w),O[w]},set:function(O,w,A){return!!So(w)&&(Mn(O,w,A),!0)},deleteProperty:function(O,w){return!!So(w)&&($a(O).remove(w),!0)},ownKeys:function(O){return $a(O).keysAtom.reportObserved(),Reflect.ownKeys(O)},preventExtensions:function(O){return S("Dynamic observable objects cannot be frozen"),!1}};function Fi(O){var w=new Proxy(O,Ho);return O[X].proxy=w,w}function Nn(O){return O.interceptors!==void 0&&O.interceptors.length>0}function Vo(O,w){var A=O.interceptors||(O.interceptors=[]);return A.push(w),T(function(){var L=A.indexOf(w);L!==-1&&A.splice(L,1)})}function or(O,w){var A=it();try{for(var L=Ft(O.interceptors||[]),Z=0,pt=L.length;Z<pt&&(k(!(w=L[Z](w))||w.type,"Intercept handlers should return nothing or a change object"),w);Z++);return w}finally{_t(A)}}function Cn(O){return O.changeListeners!==void 0&&O.changeListeners.length>0}function Po(O,w){var A=O.changeListeners||(O.changeListeners=[]);return A.push(w),T(function(){var L=A.indexOf(w);L!==-1&&A.splice(L,1)})}function sn(O,w){var A=it(),L=O.changeListeners;if(L){for(var Z=0,pt=(L=L.slice()).length;Z<pt;Z++)L[Z](w);_t(A)}}var Qa={get:function(O,w){return w===X?O[X]:w==="length"?O[X].getArrayLength():typeof w=="number"?Lr.get.call(O,w):typeof w!="string"||isNaN(w)?Lr.hasOwnProperty(w)?Lr[w]:O[w]:Lr.get.call(O,parseInt(w))},set:function(O,w,A){return w==="length"&&O[X].setArrayLength(A),typeof w=="number"&&Lr.set.call(O,w,A),typeof w=="symbol"||isNaN(w)?O[w]=A:Lr.set.call(O,parseInt(w),A),!0},preventExtensions:function(O){return S("Observable arrays cannot be frozen"),!1}};function ma(O,w,A,L){A===void 0&&(A="ObservableArray@"+E()),L===void 0&&(L=!1);var Z,pt,jt,Ut=new Wu(A,w,L);Z=Ut.values,pt=X,jt=Ut,Object.defineProperty(Z,pt,{enumerable:!1,writable:!1,configurable:!0,value:jt});var ue=new Proxy(Ut.values,Qa);if(Ut.proxy=ue,O&&O.length){var Ze=ze(!0);Ut.spliceWithArray(0,0,O),vr(Ze)}return ue}var Wu=function(){function O(w,A,L){this.owned=L,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new U(w||"ObservableArray@"+E()),this.enhancer=function(Z,pt){return A(Z,pt,w+"[..]")}}return O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.dehanceValues=function(w){return this.dehancer!==void 0&&w.length>0?w.map(this.dehancer):w},O.prototype.intercept=function(w){return Vo(this,w)},O.prototype.observe=function(w,A){return A===void 0&&(A=!1),A&&w({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Po(this,w)},O.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},O.prototype.setArrayLength=function(w){if(typeof w!="number"||w<0)throw new Error("[mobx.array] Out of range: "+w);var A=this.values.length;if(w!==A)if(w>A){for(var L=new Array(w-A),Z=0;Z<w-A;Z++)L[Z]=void 0;this.spliceWithArray(A,0,L)}else this.spliceWithArray(w,A-w)},O.prototype.updateArrayLength=function(w,A){if(w!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=A},O.prototype.spliceWithArray=function(w,A,L){var Z=this;Le(this.atom);var pt=this.values.length;if(w===void 0?w=0:w>pt?w=pt:w<0&&(w=Math.max(0,pt+w)),A=arguments.length===1?pt-w:A==null?0:Math.max(0,Math.min(A,pt-w)),L===void 0&&(L=b),Nn(this)){var jt=or(this,{object:this.proxy,type:"splice",index:w,removedCount:A,added:L});if(!jt)return b;A=jt.removedCount,L=jt.added}L=L.length===0?L:L.map(function(ue){return Z.enhancer(ue,void 0)});var Ut=this.spliceItemsIntoValues(w,A,L);return A===0&&L.length===0||this.notifyArraySplice(w,L,Ut),this.dehanceValues(Ut)},O.prototype.spliceItemsIntoValues=function(w,A,L){var Z;if(L.length<1e4)return(Z=this.values).splice.apply(Z,Ft([w,A],L));var pt=this.values.slice(w,w+A);return this.values=this.values.slice(0,w).concat(L,this.values.slice(w+A)),pt},O.prototype.notifyArrayChildUpdate=function(w,A,L){var Z=!this.owned&&!1,pt=Cn(this),jt=pt||Z?{object:this.proxy,type:"update",index:w,newValue:A,oldValue:L}:null;this.atom.reportChanged(),pt&&sn(this,jt)},O.prototype.notifyArraySplice=function(w,A,L){var Z=!this.owned&&!1,pt=Cn(this),jt=pt||Z?{object:this.proxy,type:"splice",index:w,removed:L,added:A,removedCount:L.length,addedCount:A.length}:null;this.atom.reportChanged(),pt&&sn(this,jt)},O}(),Lr={intercept:function(O){return this[X].intercept(O)},observe:function(O,w){return w===void 0&&(w=!1),this[X].observe(O,w)},clear:function(){return this.splice(0)},replace:function(O){var w=this[X];return w.spliceWithArray(0,w.values.length,O)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(O,w){for(var A=[],L=2;L<arguments.length;L++)A[L-2]=arguments[L];var Z=this[X];switch(arguments.length){case 0:return[];case 1:return Z.spliceWithArray(O);case 2:return Z.spliceWithArray(O,w)}return Z.spliceWithArray(O,w,A)},spliceWithArray:function(O,w,A){return this[X].spliceWithArray(O,w,A)},push:function(){for(var O=[],w=0;w<arguments.length;w++)O[w]=arguments[w];var A=this[X];return A.spliceWithArray(A.values.length,0,O),A.values.length},pop:function(){return this.splice(Math.max(this[X].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var O=[],w=0;w<arguments.length;w++)O[w]=arguments[w];var A=this[X];return A.spliceWithArray(0,0,O),A.values.length},reverse:function(){var O=this.slice();return O.reverse.apply(O,arguments)},sort:function(O){var w=this.slice();return w.sort.apply(w,arguments)},remove:function(O){var w=this[X],A=w.dehanceValues(w.values).indexOf(O);return A>-1&&(this.splice(A,1),!0)},get:function(O){var w=this[X];if(w&&O<w.values.length)return w.atom.reportObserved(),w.dehanceValue(w.values[O])},set:function(O,w){var A=this[X],L=A.values;if(O<L.length){Le(A.atom);var Z=L[O];if(Nn(A)){var pt=or(A,{type:"update",object:A.proxy,index:O,newValue:w});if(!pt)return;w=pt.newValue}(w=A.enhancer(w,Z))!==Z&&(L[O]=w,A.notifyArrayChildUpdate(O,w,Z))}else{if(O!==L.length)throw new Error("[mobx.array] Index out of bounds, "+O+" is larger than "+L.length);A.spliceWithArray(O,0,[w])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(O){typeof Array.prototype[O]=="function"&&(Lr[O]=function(){var w=this[X];w.atom.reportObserved();var A=w.dehanceValues(w.values);return A[O].apply(A,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(O){typeof Array.prototype[O]=="function"&&(Lr[O]=function(w,A){var L=this,Z=this[X];return Z.atom.reportObserved(),Z.dehanceValues(Z.values)[O](function(pt,jt){return w.call(A,pt,jt,L)},A)})}),["reduce","reduceRight"].forEach(function(O){Lr[O]=function(){var w=this,A=this[X];A.atom.reportObserved();var L=arguments[0];return arguments[0]=function(Z,pt,jt){return pt=A.dehanceValue(pt),L(Z,pt,jt,w)},A.values[O].apply(A.values,arguments)}});var Ja,Wo=W("ObservableArrayAdministration",Wu);function no(O){return I(O)&&Wo(O[X])}var Ku,zl={},Zu=function(){function O(w,A,L){if(A===void 0&&(A=Qt),L===void 0&&(L="ObservableMap@"+E()),this.enhancer=A,this.name=L,this[Ja]=zl,this._keysAtom=V(this.name+".keys()"),this[Symbol.toStringTag]="Map",typeof Map!="function")throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(w)}return O.prototype._has=function(w){return this._data.has(w)},O.prototype.has=function(w){var A=this;if(!fe.trackingDerivation)return this._has(w);var L=this._hasMap.get(w);if(!L){var Z=L=new Ir(this._has(w),be,this.name+"."+ot(w)+"?",!1);this._hasMap.set(w,Z),hr(Z,function(){return A._hasMap.delete(w)})}return L.get()},O.prototype.set=function(w,A){var L=this._has(w);if(Nn(this)){var Z=or(this,{type:L?"update":"add",object:this,newValue:A,name:w});if(!Z)return this;A=Z.newValue}return L?this._updateValue(w,A):this._addValue(w,A),this},O.prototype.delete=function(w){var A=this;if(Le(this._keysAtom),Nn(this)&&!(Z=or(this,{type:"delete",object:this,name:w})))return!1;if(this._has(w)){var L=Cn(this),Z=L?{type:"delete",object:this,oldValue:this._data.get(w).value,name:w}:null;return on(function(){A._keysAtom.reportChanged(),A._updateHasMapEntry(w,!1),A._data.get(w).setNewValue(void 0),A._data.delete(w)}),L&&sn(this,Z),!0}return!1},O.prototype._updateHasMapEntry=function(w,A){var L=this._hasMap.get(w);L&&L.setNewValue(A)},O.prototype._updateValue=function(w,A){var L=this._data.get(w);if((A=L.prepareNewValue(A))!==fe.UNCHANGED){var Z=Cn(this),pt=Z?{type:"update",object:this,oldValue:L.value,name:w,newValue:A}:null;L.setNewValue(A),Z&&sn(this,pt)}},O.prototype._addValue=function(w,A){var L=this;Le(this._keysAtom),on(function(){var jt=new Ir(A,L.enhancer,L.name+"."+ot(w),!1);L._data.set(w,jt),A=jt.value,L._updateHasMapEntry(w,!0),L._keysAtom.reportChanged()});var Z=Cn(this),pt=Z?{type:"add",object:this,name:w,newValue:A}:null;Z&&sn(this,pt)},O.prototype.get=function(w){return this.has(w)?this.dehanceValue(this._data.get(w).get()):this.dehanceValue(void 0)},O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},O.prototype.values=function(){var w=this,A=this.keys();return Qe({next:function(){var L=A.next(),Z=L.done,pt=L.value;return{done:Z,value:Z?void 0:w.get(pt)}}})},O.prototype.entries=function(){var w=this,A=this.keys();return Qe({next:function(){var L=A.next(),Z=L.done,pt=L.value;return{done:Z,value:Z?void 0:[pt,w.get(pt)]}}})},O.prototype[Ja=X,Symbol.iterator]=function(){return this.entries()},O.prototype.forEach=function(w,A){var L,Z;try{for(var pt=mt(this),jt=pt.next();!jt.done;jt=pt.next()){var Ut=At(jt.value,2),ue=Ut[0],Ze=Ut[1];w.call(A,Ze,ue,this)}}catch(ee){L={error:ee}}finally{try{jt&&!jt.done&&(Z=pt.return)&&Z.call(pt)}finally{if(L)throw L.error}}},O.prototype.merge=function(w){var A=this;return Vr(w)&&(w=w.toJS()),on(function(){var L=ze(!0);try{C(w)?at(w).forEach(function(Z){return A.set(Z,w[Z])}):Array.isArray(w)?w.forEach(function(Z){var pt=At(Z,2),jt=pt[0],Ut=pt[1];return A.set(jt,Ut)}):K(w)?(w.constructor!==Map&&S("Cannot initialize from classes that inherit from Map: "+w.constructor.name),w.forEach(function(Z,pt){return A.set(pt,Z)})):w!=null&&S("Cannot initialize map from "+w)}finally{vr(L)}}),this},O.prototype.clear=function(){var w=this;on(function(){ht(function(){var A,L;try{for(var Z=mt(w.keys()),pt=Z.next();!pt.done;pt=Z.next()){var jt=pt.value;w.delete(jt)}}catch(Ut){A={error:Ut}}finally{try{pt&&!pt.done&&(L=Z.return)&&L.call(Z)}finally{if(A)throw A.error}}})})},O.prototype.replace=function(w){var A=this;return on(function(){var L,Z,pt,jt,Ut=function(En){if(K(En)||Vr(En))return En;if(Array.isArray(En))return new Map(En);if(C(En)){var _a=new Map;for(var Ui in En)_a.set(Ui,En[Ui]);return _a}return S("Cannot convert to map from '"+En+"'")}(w),ue=new Map,Ze=!1;try{for(var ee=mt(A._data.keys()),_r=ee.next();!_r.done;_r=ee.next()){var Xe=_r.value;if(!Ut.has(Xe))if(A.delete(Xe))Ze=!0;else{var fr=A._data.get(Xe);ue.set(Xe,fr)}}}catch(En){L={error:En}}finally{try{_r&&!_r.done&&(Z=ee.return)&&Z.call(ee)}finally{if(L)throw L.error}}try{for(var io=mt(Ut.entries()),Dr=io.next();!Dr.done;Dr=io.next()){var In=At(Dr.value,2),Ko=(Xe=In[0],fr=In[1],A._data.has(Xe));if(A.set(Xe,fr),A._data.has(Xe)){var Zo=A._data.get(Xe);ue.set(Xe,Zo),Ko||(Ze=!0)}}}catch(En){pt={error:En}}finally{try{Dr&&!Dr.done&&(jt=io.return)&&jt.call(io)}finally{if(pt)throw pt.error}}if(!Ze)if(A._data.size!==ue.size)A._keysAtom.reportChanged();else for(var ba=A._data.keys(),$u=ue.keys(),fi=ba.next(),eu=$u.next();!fi.done;){if(fi.value!==eu.value){A._keysAtom.reportChanged();break}fi=ba.next(),eu=$u.next()}A._data=ue}),this},Object.defineProperty(O.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),O.prototype.toPOJO=function(){var w,A,L={};try{for(var Z=mt(this),pt=Z.next();!pt.done;pt=Z.next()){var jt=At(pt.value,2),Ut=jt[0],ue=jt[1];L[typeof Ut=="symbol"?Ut:ot(Ut)]=ue}}catch(Ze){w={error:Ze}}finally{try{pt&&!pt.done&&(A=Z.return)&&A.call(Z)}finally{if(w)throw w.error}}return L},O.prototype.toJS=function(){return new Map(this)},O.prototype.toJSON=function(){return this.toPOJO()},O.prototype.toString=function(){var w=this;return this.name+"[{ "+Array.from(this.keys()).map(function(A){return ot(A)+": "+w.get(A)}).join(", ")+" }]"},O.prototype.observe=function(w,A){return Po(this,w)},O.prototype.intercept=function(w){return Vo(this,w)},O}(),Vr=W("ObservableMap",Zu),si={},Ao=function(){function O(w,A,L){if(A===void 0&&(A=Qt),L===void 0&&(L="ObservableSet@"+E()),this.name=L,this[Ku]=si,this._data=new Set,this._atom=V(this.name),this[Symbol.toStringTag]="Set",typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(Z,pt){return A(Z,pt,L)},w&&this.replace(w)}return O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.clear=function(){var w=this;on(function(){ht(function(){var A,L;try{for(var Z=mt(w._data.values()),pt=Z.next();!pt.done;pt=Z.next()){var jt=pt.value;w.delete(jt)}}catch(Ut){A={error:Ut}}finally{try{pt&&!pt.done&&(L=Z.return)&&L.call(Z)}finally{if(A)throw A.error}}})})},O.prototype.forEach=function(w,A){var L,Z;try{for(var pt=mt(this),jt=pt.next();!jt.done;jt=pt.next()){var Ut=jt.value;w.call(A,Ut,Ut,this)}}catch(ue){L={error:ue}}finally{try{jt&&!jt.done&&(Z=pt.return)&&Z.call(pt)}finally{if(L)throw L.error}}},Object.defineProperty(O.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),O.prototype.add=function(w){var A=this;if(Le(this._atom),Nn(this)&&!(Z=or(this,{type:"add",object:this,newValue:w})))return this;if(!this.has(w)){on(function(){A._data.add(A.enhancer(w,void 0)),A._atom.reportChanged()});var L=Cn(this),Z=L?{type:"add",object:this,newValue:w}:null;L&&sn(this,Z)}return this},O.prototype.delete=function(w){var A=this;if(Nn(this)&&!(Z=or(this,{type:"delete",object:this,oldValue:w})))return!1;if(this.has(w)){var L=Cn(this),Z=L?{type:"delete",object:this,oldValue:w}:null;return on(function(){A._atom.reportChanged(),A._data.delete(w)}),L&&sn(this,Z),!0}return!1},O.prototype.has=function(w){return this._atom.reportObserved(),this._data.has(this.dehanceValue(w))},O.prototype.entries=function(){var w=0,A=Array.from(this.keys()),L=Array.from(this.values());return Qe({next:function(){var Z=w;return w+=1,Z<L.length?{value:[A[Z],L[Z]],done:!1}:{done:!0}}})},O.prototype.keys=function(){return this.values()},O.prototype.values=function(){this._atom.reportObserved();var w=this,A=0,L=Array.from(this._data.values());return Qe({next:function(){return A<L.length?{value:w.dehanceValue(L[A++]),done:!1}:{done:!0}}})},O.prototype.replace=function(w){var A=this;return xn(w)&&(w=w.toJS()),on(function(){var L=ze(!0);try{Array.isArray(w)||et(w)?(A.clear(),w.forEach(function(Z){return A.add(Z)})):w!=null&&S("Cannot initialize set from "+w)}finally{vr(L)}}),this},O.prototype.observe=function(w,A){return Po(this,w)},O.prototype.intercept=function(w){return Vo(this,w)},O.prototype.toJS=function(){return new Set(this)},O.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},O.prototype[Ku=X,Symbol.iterator]=function(){return this.values()},O}(),xn=W("ObservableSet",Ao),qu=function(){function O(w,A,L,Z){A===void 0&&(A=new Map),this.target=w,this.values=A,this.name=L,this.defaultEnhancer=Z,this.keysAtom=new U(L+".keys")}return O.prototype.read=function(w){return this.values.get(w).get()},O.prototype.write=function(w,A){var L=this.target,Z=this.values.get(w);if(Z instanceof Eo)Z.set(A);else{if(Nn(this)){if(!(jt=or(this,{type:"update",object:this.proxy||L,name:w,newValue:A})))return;A=jt.newValue}if((A=Z.prepareNewValue(A))!==fe.UNCHANGED){var pt=Cn(this),jt=pt?{type:"update",object:this.proxy||L,oldValue:Z.value,name:w,newValue:A}:null;Z.setNewValue(A),pt&&sn(this,jt)}}},O.prototype.has=function(w){var A=this.pendingKeys||(this.pendingKeys=new Map),L=A.get(w);if(L)return L.get();var Z=!!this.values.get(w);return L=new Ir(Z,be,this.name+"."+ot(w)+"?",!1),A.set(w,L),L.get()},O.prototype.addObservableProp=function(w,A,L){L===void 0&&(L=this.defaultEnhancer);var Z=this.target;if(Nn(this)){var pt=or(this,{object:this.proxy||Z,name:w,type:"add",newValue:A});if(!pt)return;A=pt.newValue}var jt=new Ir(A,L,this.name+"."+ot(w),!1);this.values.set(w,jt),A=jt.value,Object.defineProperty(Z,w,function(Ut){return li[Ut]||(li[Ut]={configurable:!0,enumerable:!0,get:function(){return this[X].read(Ut)},set:function(ue){this[X].write(Ut,ue)}})}(w)),this.notifyPropertyAddition(w,A)},O.prototype.addComputedProp=function(w,A,L){var Z,pt,jt,Ut=this.target;L.name=L.name||this.name+"."+ot(A),this.values.set(A,new Eo(L)),(w===Ut||(Z=w,pt=A,!(jt=Object.getOwnPropertyDescriptor(Z,pt))||jt.configurable!==!1&&jt.writable!==!1))&&Object.defineProperty(w,A,function(ue){return tu[ue]||(tu[ue]={configurable:fe.computedConfigurable,enumerable:!1,get:function(){return ko(this).read(ue)},set:function(Ze){ko(this).write(ue,Ze)}})}(A))},O.prototype.remove=function(w){if(this.values.has(w)){var A=this.target;if(Nn(this)&&!(ue=or(this,{object:this.proxy||A,name:w,type:"remove"})))return;try{Tn();var L=Cn(this),Z=!1,pt=this.values.get(w),jt=pt&&pt.get();if(pt&&pt.set(void 0),this.keysAtom.reportChanged(),this.values.delete(w),this.pendingKeys){var Ut=this.pendingKeys.get(w);Ut&&Ut.set(!1)}delete this.target[w];var ue=L?{type:"remove",object:this.proxy||A,oldValue:jt,name:w}:null;L&&sn(this,ue)}finally{Bn()}}},O.prototype.illegalAccess=function(w,A){},O.prototype.observe=function(w,A){return Po(this,w)},O.prototype.intercept=function(w){return Vo(this,w)},O.prototype.notifyPropertyAddition=function(w,A){var L=Cn(this),Z=L?{type:"add",object:this.proxy||this.target,name:w,newValue:A}:null;if(L&&sn(this,Z),this.pendingKeys){var pt=this.pendingKeys.get(w);pt&&pt.set(!0)}this.keysAtom.reportChanged()},O.prototype.getKeys=function(){var w,A;this.keysAtom.reportObserved();var L=[];try{for(var Z=mt(this.values),pt=Z.next();!pt.done;pt=Z.next()){var jt=At(pt.value,2),Ut=jt[0];jt[1]instanceof Ir&&L.push(Ut)}}catch(ue){w={error:ue}}finally{try{pt&&!pt.done&&(A=Z.return)&&A.call(Z)}finally{if(w)throw w.error}}return L},O}();function Fn(O,w,A){if(w===void 0&&(w=""),A===void 0&&(A=Qt),Object.prototype.hasOwnProperty.call(O,X))return O[X];C(O)||(w=(O.constructor.name||"ObservableObject")+"@"+E()),w||(w="ObservableObject@"+E());var L=new qu(O,new Map,ot(w),A);return z(O,X,L),L}var li=Object.create(null),tu=Object.create(null);function ko(O){var w=O[X];return w||(oe(O),O[X])}var Un=W("ObservableObjectAdministration",qu);function Rn(O){return!!I(O)&&(oe(O),Un(O[X]))}function oo(O,w){if(typeof O=="object"&&O!==null){if(no(O))return w!==void 0&&S(!1),O[X].atom;if(xn(O))return O[X];if(Vr(O)){var A=O;return w===void 0?A._keysAtom:((L=A._data.get(w)||A._hasMap.get(w))||S(!1),L)}var L;if(oe(O),w&&!O[X]&&O[w],Rn(O))return w?((L=O[X].values.get(w))||S(!1),L):S(!1);if(H(O)||Go(O)||ga(O))return O}else if(typeof O=="function"&&ga(O[X]))return O[X];return S(!1)}function To(O,w){return O||S("Expecting some object"),w!==void 0?To(oo(O,w)):H(O)||Go(O)||ga(O)||Vr(O)||xn(O)?O:(oe(O),O[X]?O[X]:void S(!1))}var wt=Object.prototype.toString;function Nt(O,w,A){return A===void 0&&(A=-1),It(O,w,A)}function It(O,w,A,L,Z){if(O===w)return O!==0||1/O==1/w;if(O==null||w==null)return!1;if(O!=O)return w!=w;var pt=typeof O;if(pt!=="function"&&pt!=="object"&&typeof w!="object")return!1;var jt=wt.call(O);if(jt!==wt.call(w))return!1;switch(jt){case"[object RegExp]":case"[object String]":return""+O==""+w;case"[object Number]":return+O!=+O?+w!=+w:+O==0?1/+O==1/w:+O==+w;case"[object Date]":case"[object Boolean]":return+O==+w;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(O)===Symbol.valueOf.call(w);case"[object Map]":case"[object Set]":A>=0&&A++}O=te(O),w=te(w);var Ut=jt==="[object Array]";if(!Ut){if(typeof O!="object"||typeof w!="object")return!1;var ue=O.constructor,Ze=w.constructor;if(ue!==Ze&&!(typeof ue=="function"&&ue instanceof ue&&typeof Ze=="function"&&Ze instanceof Ze)&&"constructor"in O&&"constructor"in w)return!1}if(A===0)return!1;A<0&&(A=-1),Z=Z||[];for(var ee=(L=L||[]).length;ee--;)if(L[ee]===O)return Z[ee]===w;if(L.push(O),Z.push(w),Ut){if((ee=O.length)!==w.length)return!1;for(;ee--;)if(!It(O[ee],w[ee],A-1,L,Z))return!1}else{var _r=Object.keys(O),Xe=void 0;if(ee=_r.length,Object.keys(w).length!==ee)return!1;for(;ee--;)if(!Ge(w,Xe=_r[ee])||!It(O[Xe],w[Xe],A-1,L,Z))return!1}return L.pop(),Z.pop(),!0}function te(O){return no(O)?O.slice():K(O)||Vr(O)||et(O)||xn(O)?Array.from(O.entries()):O}function Ge(O,w){return Object.prototype.hasOwnProperty.call(O,w)}function Qe(O){return O[Symbol.iterator]=Pr,O}function Pr(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Iu,extras:{getDebugName:function(O,w){return(w!==void 0?oo(O,w):Rn(O)||Vr(O)||xn(O)?To(O):oo(O)).name}},$mobx:X})}).call(this,o(163),o(68))},function(i,f,o){var h=o(113),y=o(42),b=o(179);h||y(Object.prototype,"toString",b,{unsafe:!0})},function(i,f,o){var h=o(41),y=o(100),b=o(80),v=o(58),E=o(116),S="Array Iterator",k=v.set,T=v.getterFor(S);i.exports=E(Array,"Array",function(M,I){k(this,{type:S,target:h(M),index:0,kind:I})},function(){var M=T(this),I=M.target,C=M.kind,z=M.index++;return!I||z>=I.length?(M.target=void 0,{value:void 0,done:!0}):C=="keys"?{value:z,done:!1}:C=="values"?{value:I[z],done:!1}:{value:[z,I[z]],done:!1}},"values"),b.Arguments=b.Array,y("keys"),y("values"),y("entries")},function(i,f,o){var h=o(16),y=o(7),b=o(46),v=o(76),E=o(34),S=o(15),k=o(71),T=o(36),M=o(108),I=o(18),C=o(35),z=o(96),W=o(30),K=o(33),et=o(54),at=o(87),ot=o(32),tt=o(40),$=o(41),X=o(86),U=o(39),H=o(69),V=o(60),q=o(77),ut=o(74),Et=o(139),mt=o(112),At=o(50),Ft=o(38),St=o(84),vt=o(98),Pt=o(42),kt=o(89),Gt=o(93),oe=o(72),Ee=o(90),Wt=o(28),Qt=o(140),be=o(141),st=o(78),ct=o(58),dt=o(79).forEach,Dt=Gt("hidden"),Yt="Symbol",Bt=Wt("toPrimitive"),Oe=ct.set,Ce=ct.getterFor(Yt),Ae=Object.prototype,ve=y.Symbol,Tt=ve&&ve.prototype,le=y.TypeError,ft=y.QObject,ce=b("JSON","stringify"),Fe=At.f,pr=Ft.f,Ue=Et.f,nr=St.f,br=S([].push),Mr=kt("symbols"),Le=kt("op-symbols"),Yr=kt("string-to-symbol-registry"),Q=kt("symbol-to-string-registry"),ht=kt("wks"),it=!ft||!ft.prototype||!ft.prototype.findChild,_t=T&&I(function(){return V(pr({},"a",{get:function(){return pr(this,"a",{value:7}).a}})).a!=7})?function(ae,we,je){var ze=Fe(Ae,we);ze&&delete Ae[we],pr(ae,we,je),ze&&ae!==Ae&&pr(Ae,we,ze)}:pr,Kt=function(ae,we){var je=Mr[ae]=V(Tt);return Oe(je,{type:Yt,tag:ae,description:we}),T||(je.description=we),je},Zt=function(ae,we,je){ae===Ae&&Zt(Le,we,je),ot(ae);var ze=X(we);return ot(je),C(Mr,ze)?(je.enumerable?(C(ae,Dt)&&ae[Dt][ze]&&(ae[Dt][ze]=!1),je=V(je,{enumerable:H(0,!1)})):(C(ae,Dt)||pr(ae,Dt,H(1,{})),ae[Dt][ze]=!0),_t(ae,ze,je)):pr(ae,ze,je)},pe=function(ae,we){ot(ae);var je=$(we),ze=q(je).concat(Hr(je));return dt(ze,function(vr){T&&!E(We,je,vr)||Zt(ae,vr,je[vr])}),ae},We=function(ae){var we=X(ae),je=E(nr,this,we);return!(this===Ae&&C(Mr,we)&&!C(Le,we))&&(!(je||!C(this,we)||!C(Mr,we)||C(this,Dt)&&this[Dt][we])||je)},nn=function(ae,we){var je=$(ae),ze=X(we);if(je!==Ae||!C(Mr,ze)||C(Le,ze)){var vr=Fe(je,ze);return!vr||!C(Mr,ze)||C(je,Dt)&&je[Dt][ze]||(vr.enumerable=!0),vr}},pn=function(ae){var we=Ue($(ae)),je=[];return dt(we,function(ze){C(Mr,ze)||C(oe,ze)||br(je,ze)}),je},Hr=function(ae){var we=ae===Ae,je=Ue(we?Le:$(ae)),ze=[];return dt(je,function(vr){!C(Mr,vr)||we&&!C(Ae,vr)||br(ze,Mr[vr])}),ze};if(M||(ve=function(){if(et(Tt,this))throw le("Symbol is not a constructor");var ae=arguments.length&&arguments[0]!==void 0?U(arguments[0]):void 0,we=Ee(ae),je=function(ze){this===Ae&&E(je,Le,ze),C(this,Dt)&&C(this[Dt],we)&&(this[Dt][we]=!1),_t(this,we,H(1,ze))};return T&&it&&_t(Ae,we,{configurable:!0,set:je}),Kt(we,ae)},Pt(Tt=ve.prototype,"toString",function(){return Ce(this).tag}),Pt(ve,"withoutSetter",function(ae){return Kt(Ee(ae),ae)}),St.f=We,Ft.f=Zt,At.f=nn,ut.f=Et.f=pn,mt.f=Hr,Qt.f=function(ae){return Kt(Wt(ae),ae)},T&&(pr(Tt,"description",{configurable:!0,get:function(){return Ce(this).description}}),k||Pt(Ae,"propertyIsEnumerable",We,{unsafe:!0}))),h({global:!0,wrap:!0,forced:!M,sham:!M},{Symbol:ve}),dt(q(ht),function(ae){be(ae)}),h({target:Yt,stat:!0,forced:!M},{for:function(ae){var we=U(ae);if(C(Yr,we))return Yr[we];var je=ve(we);return Yr[we]=je,Q[je]=we,je},keyFor:function(ae){if(!at(ae))throw le(ae+" is not a symbol");if(C(Q,ae))return Q[ae]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),h({target:"Object",stat:!0,forced:!M,sham:!T},{create:function(ae,we){return we===void 0?V(ae):pe(V(ae),we)},defineProperty:Zt,defineProperties:pe,getOwnPropertyDescriptor:nn}),h({target:"Object",stat:!0,forced:!M},{getOwnPropertyNames:pn,getOwnPropertySymbols:Hr}),h({target:"Object",stat:!0,forced:I(function(){mt.f(1)})},{getOwnPropertySymbols:function(ae){return mt.f(tt(ae))}}),ce&&h({target:"JSON",stat:!0,forced:!M||I(function(){var ae=ve();return ce([ae])!="[null]"||ce({a:ae})!="{}"||ce(Object(ae))!="{}"})},{stringify:function(ae,we,je){var ze=vt(arguments),vr=we;if((K(we)||ae!==void 0)&&!at(ae))return z(we)||(we=function(Ir,Uo){if(W(vr)&&(Uo=E(vr,this,Ir,Uo)),!at(Uo))return Uo}),ze[1]=we,v(ce,null,ze)}}),!Tt[Bt]){var Zr=Tt.valueOf;Pt(Tt,Bt,function(ae){return E(Zr,this)})}st(ve,Yt),oe[Dt]=!0},function(i,f,o){var h=o(7),y=o(152),b=o(153),v=o(3),E=o(57),S=o(28),k=S("iterator"),T=S("toStringTag"),M=v.values,I=function(z,W){if(z){if(z[k]!==M)try{E(z,k,M)}catch(et){z[k]=M}if(z[T]||E(z,T,W),y[W]){for(var K in v)if(z[K]!==v[K])try{E(z,K,v[K])}catch(et){z[K]=v[K]}}}};for(var C in y)I(h[C]&&h[C].prototype,C);I(b,"DOMTokenList")},function(i,f,o){var h=o(151).charAt,y=o(39),b=o(58),v=o(116),E="String Iterator",S=b.set,k=b.getterFor(E);v(String,"String",function(T){S(this,{type:E,string:y(T),index:0})},function(){var T,M=k(this),I=M.string,C=M.index;return C>=I.length?{value:void 0,done:!0}:(T=h(I,C),M.index+=T.length,{value:T,done:!1})})},function(i,f,o){(function(h){var y=function(b){return b&&b.Math==Math&&b};i.exports=y(typeof globalThis=="object"&&globalThis)||y(typeof window=="object"&&window)||y(typeof self=="object"&&self)||y(typeof h=="object"&&h)||function(){return this}()||Function("return this")()}).call(this,o(68))},function(i,f,o){var h=o(16),y=o(36),b=o(7),v=o(15),E=o(35),S=o(30),k=o(54),T=o(39),M=o(38).f,I=o(134),C=b.Symbol,z=C&&C.prototype;if(y&&S(C)&&(!("description"in z)||C().description!==void 0)){var W={},K=function(){var U=arguments.length<1||arguments[0]===void 0?void 0:T(arguments[0]),H=k(z,this)?new C(U):U===void 0?C():C(U);return U===""&&(W[H]=!0),H};I(K,C),K.prototype=z,z.constructor=K;var et=String(C("test"))=="Symbol(test)",at=v(z.toString),ot=v(z.valueOf),tt=/^Symbol\((.*)\)[^)]+$/,$=v("".replace),X=v("".slice);M(z,"description",{configurable:!0,get:function(){var U=ot(this),H=at(U);if(E(W,U))return"";var V=et?X(H,7,-1):$(H,tt,"$1");return V===""?void 0:V}}),h({global:!0,forced:!0},{Symbol:K})}},function(i,f,o){o(141)("iterator")},function(i,f,o){o.d(f,"a",function(){return v.a}),o.d(f,"c",function(){return v.e}),o.d(f,"h",function(){return tt}),o.d(f,"i",function(){return et}),o.d(f,"j",function(){return W}),o.d(f,"b",function(){return At}),o.d(f,"e",function(){return Pt}),o.d(f,"f",function(){return Ft}),o.d(f,"g",function(){return Mr});var h,y,b,v=o(0),E=0,S=[],k=v.i.__b,T=v.i.__r,M=v.i.diffed,I=v.i.__c,C=v.i.unmount;function z(Q,ht){v.i.__h&&v.i.__h(y,Q,E||ht),E=0;var it=y.__H||(y.__H={__:[],__h:[]});return Q>=it.__.length&&it.__.push({}),it.__[Q]}function W(Q){return E=1,K(ut,Q)}function K(Q,ht,it){var _t=z(h++,2);return _t.t=Q,_t.__c||(_t.__=[it?it(ht):ut(void 0,ht),function(Kt){var Zt=_t.t(_t.__[0],Kt);_t.__[0]!==Zt&&(_t.__=[Zt,_t.__[1]],_t.__c.setState({}))}],_t.__c=y),_t.__}function et(Q,ht){var it=z(h++,3);!v.i.__s&&q(it.__H,ht)&&(it.__=Q,it.__H=ht,y.__H.__h.push(it))}function at(Q,ht){var it=z(h++,4);!v.i.__s&&q(it.__H,ht)&&(it.__=Q,it.__H=ht,y.__h.push(it))}function ot(Q,ht){var it=z(h++,7);return q(it.__H,ht)&&(it.__=Q(),it.__H=ht,it.__h=Q),it.__}function tt(Q,ht){return E=8,ot(function(){return Q},ht)}function $(){var Q;for(S.sort(function(ht,it){return ht.__v.__b-it.__v.__b});Q=S.pop();)if(Q.__P)try{Q.__H.__h.forEach(H),Q.__H.__h.forEach(V),Q.__H.__h=[]}catch(ht){Q.__H.__h=[],v.i.__e(ht,Q.__v)}}v.i.__b=function(Q){y=null,k&&k(Q)},v.i.__r=function(Q){T&&T(Q),h=0;var ht=(y=Q.__c).__H;ht&&(ht.__h.forEach(H),ht.__h.forEach(V),ht.__h=[])},v.i.diffed=function(Q){M&&M(Q);var ht=Q.__c;ht&&ht.__H&&ht.__H.__h.length&&(S.push(ht)!==1&&b===v.i.requestAnimationFrame||((b=v.i.requestAnimationFrame)||U)($)),y=null},v.i.__c=function(Q,ht){ht.some(function(it){try{it.__h.forEach(H),it.__h=it.__h.filter(function(_t){return!_t.__||V(_t)})}catch(_t){ht.some(function(Kt){Kt.__h&&(Kt.__h=[])}),ht=[],v.i.__e(_t,it.__v)}}),I&&I(Q,ht)},v.i.unmount=function(Q){C&&C(Q);var ht,it=Q.__c;it&&it.__H&&(it.__H.__.forEach(function(_t){try{H(_t)}catch(Kt){ht=Kt}}),ht&&v.i.__e(ht,it.__v))};var X=typeof requestAnimationFrame=="function";function U(Q){var ht,it=function(){clearTimeout(_t),X&&cancelAnimationFrame(ht),setTimeout(Q)},_t=setTimeout(it,100);X&&(ht=requestAnimationFrame(it))}function H(Q){var ht=y,it=Q.__c;typeof it=="function"&&(Q.__c=void 0,it()),y=ht}function V(Q){var ht=y;Q.__c=Q.__(),y=ht}function q(Q,ht){return!Q||Q.length!==ht.length||ht.some(function(it,_t){return it!==Q[_t]})}function ut(Q,ht){return typeof ht=="function"?ht(Q):ht}function Et(Q,ht){for(var it in ht)Q[it]=ht[it];return Q}function mt(Q,ht){for(var it in Q)if(it!=="__source"&&!(it in ht))return!0;for(var _t in ht)if(_t!=="__source"&&Q[_t]!==ht[_t])return!0;return!1}function At(Q){this.props=Q}function Ft(Q,ht){function it(Kt){var Zt=this.props.ref,pe=Zt==Kt.ref;return!pe&&Zt&&(Zt.call?Zt(null):Zt.current=null),ht?!ht(this.props,Kt)||!pe:mt(this.props,Kt)}function _t(Kt){return this.shouldComponentUpdate=it,Object(v.e)(Q,Kt)}return _t.displayName="Memo("+(Q.displayName||Q.name)+")",_t.prototype.isReactComponent=!0,_t.__f=!0,_t}(At.prototype=new v.a).isPureReactComponent=!0,At.prototype.shouldComponentUpdate=function(Q,ht){return mt(this.props,Q)||mt(this.state,ht)};var St=v.i.__b;v.i.__b=function(Q){Q.type&&Q.type.__f&&Q.ref&&(Q.props.ref=Q.ref,Q.ref=null),St&&St(Q)};var vt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Pt(Q){function ht(it,_t){var Kt=Et({},it);return delete Kt.ref,Q(Kt,!(_t=it.ref||_t)||typeof _t=="object"&&!("current"in _t)?null:_t)}return ht.$$typeof=vt,ht.render=ht,ht.prototype.isReactComponent=ht.__f=!0,ht.displayName="ForwardRef("+(Q.displayName||Q.name)+")",ht}var kt=function(Q,ht){return Q==null?null:Object(v.k)(Object(v.k)(Q).map(ht))},Gt={map:kt,forEach:kt,count:function(Q){return Q?Object(v.k)(Q).length:0},only:function(Q){var ht=Object(v.k)(Q);if(ht.length!==1)throw"Children.only";return ht[0]},toArray:v.k},oe=v.i.__e;v.i.__e=function(Q,ht,it){if(Q.then){for(var _t,Kt=ht;Kt=Kt.__;)if((_t=Kt.__c)&&_t.__c)return ht.__e==null&&(ht.__e=it.__e,ht.__k=it.__k),_t.__c(Q,ht)}oe(Q,ht,it)};var Ee=v.i.unmount;function Wt(Q,ht,it){return Q&&(Q.__c&&Q.__c.__H&&(Q.__c.__H.__.forEach(function(_t){typeof _t.__c=="function"&&_t.__c()}),Q.__c.__H=null),(Q=Et({},Q)).__c!=null&&(Q.__c.__P===it&&(Q.__c.__P=ht),Q.__c=null),Q.__k=Q.__k&&Q.__k.map(function(_t){return Wt(_t,ht,it)})),Q}function Qt(Q,ht,it){return Q&&(Q.__v=null,Q.__k=Q.__k&&Q.__k.map(function(_t){return Qt(_t,ht,it)}),Q.__c&&Q.__c.__P===ht&&(Q.__e&&it.insertBefore(Q.__e,Q.__d),Q.__c.__e=!0,Q.__c.__P=it)),Q}function be(){this.__u=0,this.t=null,this.__b=null}function st(Q){var ht=Q.__.__c;return ht&&ht.__e&&ht.__e(Q)}function ct(){this.u=null,this.o=null}v.i.unmount=function(Q){var ht=Q.__c;ht&&ht.__R&&ht.__R(),ht&&Q.__h===!0&&(Q.type=null),Ee&&Ee(Q)},(be.prototype=new v.a).__c=function(Q,ht){var it=ht.__c,_t=this;_t.t==null&&(_t.t=[]),_t.t.push(it);var Kt=st(_t.__v),Zt=!1,pe=function(){Zt||(Zt=!0,it.__R=null,Kt?Kt(We):We())};it.__R=pe;var We=function(){if(!--_t.__u){if(_t.state.__e){var pn=_t.state.__e;_t.__v.__k[0]=Qt(pn,pn.__c.__P,pn.__c.__O)}var Hr;for(_t.setState({__e:_t.__b=null});Hr=_t.t.pop();)Hr.forceUpdate()}},nn=ht.__h===!0;_t.__u++||nn||_t.setState({__e:_t.__b=_t.__v.__k[0]}),Q.then(pe,pe)},be.prototype.componentWillUnmount=function(){this.t=[]},be.prototype.render=function(Q,ht){if(this.__b){if(this.__v.__k){var it=document.createElement("div"),_t=this.__v.__k[0].__c;this.__v.__k[0]=Wt(this.__b,it,_t.__O=_t.__P)}this.__b=null}var Kt=ht.__e&&Object(v.e)(v.b,null,Q.fallback);return Kt&&(Kt.__h=null),[Object(v.e)(v.b,null,ht.__e?null:Q.children),Kt]};var dt=function(Q,ht,it){if(++it[1]===it[0]&&Q.o.delete(ht),Q.props.revealOrder&&(Q.props.revealOrder[0]!=="t"||!Q.o.size))for(it=Q.u;it;){for(;it.length>3;)it.pop()();if(it[1]<it[0])break;Q.u=it=it[2]}};function Dt(Q){return this.getChildContext=function(){return Q.context},Q.children}function Yt(Q){var ht=this,it=Q.i;ht.componentWillUnmount=function(){Object(v.j)(null,ht.l),ht.l=null,ht.i=null},ht.i&&ht.i!==it&&ht.componentWillUnmount(),Q.__v?(ht.l||(ht.i=it,ht.l={nodeType:1,parentNode:it,childNodes:[],appendChild:function(_t){this.childNodes.push(_t),ht.i.appendChild(_t)},insertBefore:function(_t,Kt){this.childNodes.push(_t),ht.i.appendChild(_t)},removeChild:function(_t){this.childNodes.splice(this.childNodes.indexOf(_t)>>>1,1),ht.i.removeChild(_t)}}),Object(v.j)(Object(v.e)(Dt,{context:ht.context},Q.__v),ht.l)):ht.l&&ht.componentWillUnmount()}(ct.prototype=new v.a).__e=function(Q){var ht=this,it=st(ht.__v),_t=ht.o.get(Q);return _t[0]++,function(Kt){var Zt=function(){ht.props.revealOrder?(_t.push(Kt),dt(ht,Q,_t)):Kt()};it?it(Zt):Zt()}},ct.prototype.render=function(Q){this.u=null,this.o=new Map;var ht=Object(v.k)(Q.children);Q.revealOrder&&Q.revealOrder[0]==="b"&&ht.reverse();for(var it=ht.length;it--;)this.o.set(ht[it],this.u=[1,0,this.u]);return Q.children},ct.prototype.componentDidUpdate=ct.prototype.componentDidMount=function(){var Q=this;this.o.forEach(function(ht,it){dt(Q,it,ht)})};var Bt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Oe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ce=typeof document<"u",Ae=function(Q){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(Q)};v.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(Q){Object.defineProperty(v.a.prototype,Q,{configurable:!0,get:function(){return this["UNSAFE_"+Q]},set:function(ht){Object.defineProperty(this,Q,{configurable:!0,writable:!0,value:ht})}})});var ve=v.i.event;function Tt(){}function le(){return this.cancelBubble}function ft(){return this.defaultPrevented}v.i.event=function(Q){return ve&&(Q=ve(Q)),Q.persist=Tt,Q.isPropagationStopped=le,Q.isDefaultPrevented=ft,Q.nativeEvent=Q};var ce,Fe={configurable:!0,get:function(){return this.class}},pr=v.i.vnode;v.i.vnode=function(Q){var ht=Q.type,it=Q.props,_t=it;if(typeof ht=="string"){var Kt=ht.indexOf("-")===-1;for(var Zt in _t={},it){var pe=it[Zt];Ce&&Zt==="children"&&ht==="noscript"||Zt==="value"&&"defaultValue"in it&&pe==null||(Zt==="defaultValue"&&"value"in it&&it.value==null?Zt="value":Zt==="download"&&pe===!0?pe="":/ondoubleclick/i.test(Zt)?Zt="ondblclick":/^onchange(textarea|input)/i.test(Zt+ht)&&!Ae(it.type)?Zt="oninput":/^onfocus$/i.test(Zt)?Zt="onfocusin":/^onblur$/i.test(Zt)?Zt="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Zt)?Zt=Zt.toLowerCase():Kt&&Oe.test(Zt)?Zt=Zt.replace(/[A-Z0-9]/,"-$&").toLowerCase():pe===null&&(pe=void 0),_t[Zt]=pe)}ht=="select"&&_t.multiple&&Array.isArray(_t.value)&&(_t.value=Object(v.k)(it.children).forEach(function(We){We.props.selected=_t.value.indexOf(We.props.value)!=-1})),ht=="select"&&_t.defaultValue!=null&&(_t.value=Object(v.k)(it.children).forEach(function(We){We.props.selected=_t.multiple?_t.defaultValue.indexOf(We.props.value)!=-1:_t.defaultValue==We.props.value})),Q.props=_t,it.class!=it.className&&(Fe.enumerable="className"in it,it.className!=null&&(_t.class=it.className),Object.defineProperty(_t,"className",Fe))}Q.$$typeof=Bt,pr&&pr(Q)};var Ue=v.i.__r;v.i.__r=function(Q){Ue&&Ue(Q),ce=Q.__c};var nr={ReactCurrentDispatcher:{current:{readContext:function(Q){return ce.__n[Q.__c].props.value}}}};function br(Q){return!!Q&&Q.$$typeof===Bt}var Mr=function(Q,ht){return Q(ht)},Le=v.b,Yr={useState:W,useReducer:K,useEffect:et,useLayoutEffect:at,useRef:function(Q){return E=5,ot(function(){return{current:Q}},[])},useImperativeHandle:function(Q,ht,it){E=6,at(function(){typeof Q=="function"?Q(ht()):Q&&(Q.current=ht())},it==null?it:it.concat(Q))},useMemo:ot,useCallback:tt,useContext:function(Q){var ht=y.context[Q.__c],it=z(h++,9);return it.c=Q,ht?(it.__==null&&(it.__=!0,ht.sub(y)),ht.props.value):Q.__},useDebugValue:function(Q,ht){v.i.useDebugValue&&v.i.useDebugValue(ht?ht(Q):Q)},version:"17.0.2",Children:Gt,render:function(Q,ht,it){return ht.__k==null&&(ht.textContent=""),Object(v.j)(Q,ht),typeof it=="function"&&it(),Q?Q.__c:null},hydrate:function(Q,ht,it){return Object(v.h)(Q,ht),typeof it=="function"&&it(),Q?Q.__c:null},unmountComponentAtNode:function(Q){return!!Q.__k&&(Object(v.j)(null,Q),!0)},createPortal:function(Q,ht){return Object(v.e)(Yt,{__v:Q,i:ht})},createElement:v.e,createContext:v.d,createFactory:function(Q){return v.e.bind(null,Q)},cloneElement:function(Q){return br(Q)?v.c.apply(null,arguments):Q},createRef:v.f,Fragment:v.b,isValidElement:br,findDOMNode:function(Q){return Q&&(Q.base||Q.nodeType===1&&Q)||null},Component:v.a,PureComponent:At,memo:Ft,forwardRef:Pt,flushSync:function(Q,ht){return Q(ht)},unstable_batchedUpdates:Mr,StrictMode:Le,Suspense:be,SuspenseList:ct,lazy:function(Q){var ht,it,_t;function Kt(Zt){if(ht||(ht=Q()).then(function(pe){it=pe.default||pe},function(pe){_t=pe}),_t)throw _t;if(!it)throw ht;return Object(v.e)(it,Zt)}return Kt.displayName="Lazy",Kt.__f=!0,Kt},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:nr};f.d=Yr},function(i,f,o){var h=o(7),y=o(152),b=o(153),v=o(187),E=o(57),S=function(T){if(T&&T.forEach!==v)try{E(T,"forEach",v)}catch(M){T.forEach=v}};for(var k in y)y[k]&&S(h[k]&&h[k].prototype);S(b)},function(i,f,o){o(16)({target:"Object",stat:!0},{setPrototypeOf:o(102)})},function(i,f,o){var h=o(16),y=o(18),b=o(40),v=o(101),E=o(143);h({target:"Object",stat:!0,forced:y(function(){v(1)}),sham:!E},{getPrototypeOf:function(S){return v(b(S))}})},function(i,f,o){var h=o(16),y=o(46),b=o(76),v=o(203),E=o(165),S=o(32),k=o(33),T=o(60),M=o(18),I=y("Reflect","construct"),C=Object.prototype,z=[].push,W=M(function(){function at(){}return!(I(function(){},[],at)instanceof at)}),K=!M(function(){I(function(){})}),et=W||K;h({target:"Reflect",stat:!0,forced:et,sham:et},{construct:function(at,ot){E(at),S(ot);var tt=arguments.length<3?at:E(arguments[2]);if(K&&!W)return I(at,ot,tt);if(at==tt){switch(ot.length){case 0:return new at;case 1:return new at(ot[0]);case 2:return new at(ot[0],ot[1]);case 3:return new at(ot[0],ot[1],ot[2]);case 4:return new at(ot[0],ot[1],ot[2],ot[3])}var $=[null];return b(z,$,ot),new(b(v,at,$))}var X=tt.prototype,U=T(k(X)?X:C),H=b(at,U,ot);return k(H)?H:U}})},function(i,f){var o=Function.prototype,h=o.bind,y=o.call,b=h&&h.bind(y);i.exports=h?function(v){return v&&b(y,v)}:function(v){return v&&function(){return y.apply(v,arguments)}}},function(i,f,o){var h=o(7),y=o(50).f,b=o(57),v=o(42),E=o(110),S=o(134),k=o(95);i.exports=function(T,M){var I,C,z,W,K,et=T.target,at=T.global,ot=T.stat;if(I=at?h:ot?h[et]||E(et,{}):(h[et]||{}).prototype)for(C in M){if(W=M[C],z=T.noTargetGet?(K=y(I,C))&&K.value:I[C],!k(at?C:et+(ot?".":"#")+C,T.forced)&&z!==void 0){if(typeof W==typeof z)continue;S(W,z)}(T.sham||z&&z.sham)&&b(W,"sham",!0),v(I,C,W,T)}}},function(i,f,o){var h=o(16),y=o(7),b=o(96),v=o(99),E=o(33),S=o(75),k=o(45),T=o(41),M=o(63),I=o(28),C=o(81),z=o(98),W=C("slice"),K=I("species"),et=y.Array,at=Math.max;h({target:"Array",proto:!0,forced:!W},{slice:function(ot,tt){var $,X,U,H=T(this),V=k(H),q=S(ot,V),ut=S(tt===void 0?V:tt,V);if(b(H)&&($=H.constructor,(v($)&&($===et||b($.prototype))||E($)&&($=$[K])===null)&&($=void 0),$===et||$===void 0))return z(H,q,ut);for(X=new($===void 0?et:$)(at(ut-q,0)),U=0;q<ut;q++,U++)q in H&&M(X,U,H[q]);return X.length=U,X}})},function(i,f){i.exports=function(o){try{return!!o()}catch(h){return!0}}},function(i,f,o){var h=o(16),y=o(103);h({target:"RegExp",proto:!0,forced:/./.exec!==y},{exec:y})},function(i,f,o){var h=o(16),y=o(40),b=o(77);h({target:"Object",stat:!0,forced:o(18)(function(){b(1)})},{keys:function(v){return b(y(v))}})},function(i,f,o){var h=o(36),y=o(73).EXISTS,b=o(15),v=o(38).f,E=Function.prototype,S=b(E.toString),k=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,T=b(k.exec);h&&!y&&v(E,"name",{configurable:!0,get:function(){try{return T(k,S(this))[1]}catch(M){return""}}})},function(i,f,o){var h=o(16),y=o(18),b=o(41),v=o(50).f,E=o(36),S=y(function(){v(1)});h({target:"Object",stat:!0,forced:!E||S,sham:!E},{getOwnPropertyDescriptor:function(k,T){return v(b(k),T)}})},function(i,f,o){var h=o(16),y=o(188);h({target:"Array",stat:!0,forced:!o(120)(function(b){Array.from(b)})},{from:y})},function(i,f,o){var h=o(16),y=o(79).filter;h({target:"Array",proto:!0,forced:!o(81)("filter")},{filter:function(b){return y(this,b,arguments.length>1?arguments[1]:void 0)}})},function(i,f,o){var h=o(16),y=o(36),b=o(135),v=o(41),E=o(50),S=o(63);h({target:"Object",stat:!0,sham:!y},{getOwnPropertyDescriptors:function(k){for(var T,M,I=v(k),C=E.f,z=b(I),W={},K=0;z.length>K;)(M=C(I,T=z[K++]))!==void 0&&S(W,T,M);return W}})},,function(i,f,o){var h=o(16),y=o(7),b=o(18),v=o(96),E=o(33),S=o(40),k=o(45),T=o(63),M=o(115),I=o(81),C=o(28),z=o(70),W=C("isConcatSpreadable"),K=9007199254740991,et="Maximum allowed index exceeded",at=y.TypeError,ot=z>=51||!b(function(){var X=[];return X[W]=!1,X.concat()[0]!==X}),tt=I("concat"),$=function(X){if(!E(X))return!1;var U=X[W];return U!==void 0?!!U:v(X)};h({target:"Array",proto:!0,forced:!ot||!tt},{concat:function(X){var U,H,V,q,ut,Et=S(this),mt=M(Et,0),At=0;for(U=-1,V=arguments.length;U<V;U++)if($(ut=U===-1?Et:arguments[U])){if(At+(q=k(ut))>K)throw at(et);for(H=0;H<q;H++,At++)H in ut&&T(mt,At,ut[H])}else{if(At>=K)throw at(et);T(mt,At++,ut)}return mt.length=At,mt}})},function(i,f,o){var h=o(7),y=o(89),b=o(35),v=o(90),E=o(108),S=o(132),k=y("wks"),T=h.Symbol,M=T&&T.for,I=S?T:T&&T.withoutSetter||v;i.exports=function(C){if(!b(k,C)||!E&&typeof k[C]!="string"){var z="Symbol."+C;E&&b(T,C)?k[C]=T[C]:k[C]=S&&M?M(z):I(z)}return k[C]}},function(i,f,o){var h=o(16),y=o(202);h({target:"Object",stat:!0,forced:Object.assign!==y},{assign:y})},function(i,f){i.exports=function(o){return typeof o=="function"}},function(i,f,o){var h=o(106),y=typeof self=="object"&&self&&self.Object===Object&&self,b=h.a||y||Function("return this")();f.a=b},function(i,f,o){var h=o(7),y=o(33),b=h.String,v=h.TypeError;i.exports=function(E){if(y(E))return E;throw v(b(E)+" is not an object")}},function(i,f,o){var h=o(30);i.exports=function(y){return typeof y=="object"?y!==null:h(y)}},function(i,f){var o=Function.prototype.call;i.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(i,f,o){var h=o(15),y=o(40),b=h({}.hasOwnProperty);i.exports=Object.hasOwn||function(v,E){return b(y(v),E)}},function(i,f,o){var h=o(18);i.exports=!h(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(i,f,o){var h=o(16),y=o(79).map;h({target:"Array",proto:!0,forced:!o(81)("map")},{map:function(b){return y(this,b,arguments.length>1?arguments[1]:void 0)}})},function(i,f,o){var h=o(7),y=o(36),b=o(133),v=o(32),E=o(86),S=h.TypeError,k=Object.defineProperty;f.f=y?k:function(T,M,I){if(v(T),M=E(M),v(I),b)try{return k(T,M,I)}catch(C){}if("get"in I||"set"in I)throw S("Accessors not supported");return"value"in I&&(T[M]=I.value),T}},function(i,f,o){var h=o(7),y=o(97),b=h.String;i.exports=function(v){if(y(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return b(v)}},function(i,f,o){var h=o(7),y=o(44),b=h.Object;i.exports=function(v){return b(y(v))}},function(i,f,o){var h=o(85),y=o(44);i.exports=function(b){return h(y(b))}},function(i,f,o){var h=o(7),y=o(30),b=o(35),v=o(57),E=o(110),S=o(92),k=o(58),T=o(73).CONFIGURABLE,M=k.get,I=k.enforce,C=String(String).split("String");(i.exports=function(z,W,K,et){var at,ot=!!et&&!!et.unsafe,tt=!!et&&!!et.enumerable,$=!!et&&!!et.noTargetGet,X=et&&et.name!==void 0?et.name:W;y(K)&&(String(X).slice(0,7)==="Symbol("&&(X="["+String(X).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b(K,"name")||T&&K.name!==X)&&v(K,"name",X),(at=I(K)).source||(at.source=C.join(typeof X=="string"?X:""))),z!==h?(ot?!$&&z[W]&&(tt=!0):delete z[W],tt?z[W]=K:v(z,W,K)):tt?z[W]=K:E(W,K)})(Function.prototype,"toString",function(){return y(this)&&M(this).source||S(this)})},function(i,f,o){(function(h){o.d(f,"d",function(){return v}),o.d(f,"c",function(){return E}),o.d(f,"b",function(){return S}),o.d(f,"a",function(){return T});var y=o(10),b=function(M,I){var C=typeof Symbol=="function"&&M[Symbol.iterator];if(!C)return M;var z,W,K=C.call(M),et=[];try{for(;(I===void 0||I-- >0)&&!(z=K.next()).done;)et.push(z.value)}catch(at){W={error:at}}finally{try{z&&!z.done&&(C=K.return)&&C.call(K)}finally{if(W)throw W.error}}return et};function v(){var M=b(Object(y.j)(0),2)[1];return Object(y.h)(function(){M(function(I){return I+1})},[])}function E(M){if(!M||typeof M!="object")return!1;var I=Object.getPrototypeOf(M);return!I||I===Object.prototype}function S(M){return typeof Symbol=="function"?Symbol.for(M):"__$mobx-react "+M+"__"}var k={};function T(){return typeof window<"u"?window:h!==void 0?h:typeof self<"u"?self:k}}).call(this,o(68))},function(i,f,o){var h=o(7).TypeError;i.exports=function(y){if(y==null)throw h("Can't call method on "+y);return y}},function(i,f,o){var h=o(94);i.exports=function(y){return h(y.length)}},function(i,f,o){var h=o(7),y=o(30),b=function(v){return y(v)?v:void 0};i.exports=function(v,E){return arguments.length<2?b(h[v]):h[v]&&h[v][E]}},function(i,f,o){var h=o(16),y=o(34),b=o(33),v=o(32),E=o(204),S=o(50),k=o(101);h({target:"Reflect",stat:!0},{get:function T(M,I){var C,z,W=arguments.length<3?M:arguments[2];return v(M)===W?M[I]:(C=S.f(M,I))?E(C)?C.value:C.get===void 0?void 0:y(C.get,W):b(z=k(M))?T(z,I,W):void 0}})},function(i,f,o){(function(h){var y=o(31),b=o(171),v=c&&!c.nodeType&&c,E=v&&typeof h=="object"&&h&&!h.nodeType&&h,S=E&&E.exports===v?y.a.Buffer:void 0,k=(S?S.isBuffer:void 0)||b.a;f.a=k}).call(this,o(122)(i))},function(i,f,o){(function(h){var y=o(106),b=c&&!c.nodeType&&c,v=b&&typeof h=="object"&&h&&!h.nodeType&&h,E=v&&v.exports===b&&y.a.process,S=function(){try{var k=v&&v.require&&v.require("util").types;return k||E&&E.binding&&E.binding("util")}catch(T){}}();f.a=S}).call(this,o(122)(i))},function(i,f,o){var h=o(36),y=o(34),b=o(84),v=o(69),E=o(41),S=o(86),k=o(35),T=o(133),M=Object.getOwnPropertyDescriptor;f.f=h?M:function(I,C){if(I=E(I),C=S(C),T)try{return M(I,C)}catch(z){}if(k(I,C))return v(!y(b.f,I,C),I[C])}},function(i,f,o){var h=o(15),y=h({}.toString),b=h("".slice);i.exports=function(v){return b(y(v),8,-1)}},function(i,f,o){o(182)("Map",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},o(186))},function(i,f,o){var h=o(16),y=o(220).entries;h({target:"Object",stat:!0},{entries:function(b){return y(b)}})},function(i,f,o){var h=o(15);i.exports=h({}.isPrototypeOf)},function(i,f,o){var h=o(46);i.exports=h("navigator","userAgent")||""},function(i,f,o){var h=o(7),y=o(30),b=o(88),v=h.TypeError;i.exports=function(E){if(y(E))return E;throw v(b(E)+" is not a function")}},function(i,f,o){var h=o(36),y=o(38),b=o(69);i.exports=h?function(v,E,S){return y.f(v,E,b(1,S))}:function(v,E,S){return v[E]=S,v}},function(i,f,o){var h,y,b,v=o(175),E=o(7),S=o(15),k=o(33),T=o(57),M=o(35),I=o(109),C=o(93),z=o(72),W="Object already initialized",K=E.TypeError,et=E.WeakMap;if(v||I.state){var at=I.state||(I.state=new et),ot=S(at.get),tt=S(at.has),$=S(at.set);h=function(U,H){if(tt(at,U))throw new K(W);return H.facade=U,$(at,U,H),H},y=function(U){return ot(at,U)||{}},b=function(U){return tt(at,U)}}else{var X=C("state");z[X]=!0,h=function(U,H){if(M(U,X))throw new K(W);return H.facade=U,T(U,X,H),H},y=function(U){return M(U,X)?U[X]:{}},b=function(U){return M(U,X)}}i.exports={set:h,get:y,has:b,enforce:function(U){return b(U)?y(U):h(U,{})},getterFor:function(U){return function(H){var V;if(!k(H)||(V=y(H)).type!==U)throw K("Incompatible receiver, "+U+" required");return V}}}},function(i,f){var o=Math.ceil,h=Math.floor;i.exports=function(y){var b=+y;return b!=b||b===0?0:(b>0?h:o)(b)}},function(i,f,o){var h,y=o(32),b=o(176),v=o(111),E=o(72),S=o(138),k=o(91),T=o(93),M=T("IE_PROTO"),I=function(){},C=function(K){return"<script>"+K+"<\/script>"},z=function(K){K.write(C("")),K.close();var et=K.parentWindow.Object;return K=null,et},W=function(){try{h=new ActiveXObject("htmlfile")}catch(ot){}var K,et;W=typeof document<"u"?document.domain&&h?z(h):((et=k("iframe")).style.display="none",S.appendChild(et),et.src="javascript:",(K=et.contentWindow.document).open(),K.write(C("document.F=Object")),K.close(),K.F):z(h);for(var at=v.length;at--;)delete W.prototype[v[at]];return W()};E[M]=!0,i.exports=Object.create||function(K,et){var at;return K!==null?(I.prototype=y(K),at=new I,I.prototype=null,at[M]=K):at=W(),et===void 0?at:b(at,et)}},function(i,f,o){var h=o(36),y=o(7),b=o(15),v=o(95),E=o(42),S=o(35),k=o(148),T=o(54),M=o(87),I=o(131),C=o(18),z=o(74).f,W=o(50).f,K=o(38).f,et=o(160),at=o(161).trim,ot="Number",tt=y.Number,$=tt.prototype,X=y.TypeError,U=b("".slice),H=b("".charCodeAt),V=function(Ft){var St=I(Ft,"number");return typeof St=="bigint"?St:q(St)},q=function(Ft){var St,vt,Pt,kt,Gt,oe,Ee,Wt,Qt=I(Ft,"number");if(M(Qt))throw X("Cannot convert a Symbol value to a number");if(typeof Qt=="string"&&Qt.length>2){if(Qt=at(Qt),(St=H(Qt,0))===43||St===45){if((vt=H(Qt,2))===88||vt===120)return NaN}else if(St===48){switch(H(Qt,1)){case 66:case 98:Pt=2,kt=49;break;case 79:case 111:Pt=8,kt=55;break;default:return+Qt}for(oe=(Gt=U(Qt,2)).length,Ee=0;Ee<oe;Ee++)if((Wt=H(Gt,Ee))<48||Wt>kt)return NaN;return parseInt(Gt,Pt)}}return+Qt};if(v(ot,!tt(" 0o1")||!tt("0b1")||tt("+0x1"))){for(var ut,Et=function(Ft){var St=arguments.length<1?0:tt(V(Ft)),vt=this;return T($,vt)&&C(function(){et(vt)})?k(Object(St),vt,Et):St},mt=h?z(tt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),At=0;mt.length>At;At++)S(tt,ut=mt[At])&&!S(Et,ut)&&K(Et,ut,W(tt,ut));Et.prototype=$,$.constructor=Et,E(y,ot,Et)}},function(i,f,o){var h=o(56);i.exports=function(y,b){var v=y[b];return v==null?void 0:h(v)}},function(i,f,o){var h=o(86),y=o(38),b=o(69);i.exports=function(v,E,S){var k=h(E);k in v?y.f(v,k,b(0,S)):v[k]=S}},function(i,f,o){var h=o(15),y=o(56),b=h(h.bind);i.exports=function(v,E){return y(v),E===void 0?v:b?b(v,E):function(){return v.apply(E,arguments)}}},function(i,f,o){var h=o(16),y=o(15),b=o(85),v=o(41),E=o(121),S=y([].join),k=b!=Object,T=E("join",",");h({target:"Array",proto:!0,forced:k||!T},{join:function(M){return S(v(this),M===void 0?",":M)}})},function(i,f,o){var h=o(15),y=o(73).PROPER,b=o(42),v=o(32),E=o(54),S=o(39),k=o(18),T=o(154),M="toString",I=RegExp.prototype,C=I.toString,z=h(T),W=k(function(){return C.call({source:"a",flags:"b"})!="/a/b"}),K=y&&C.name!=M;(W||K)&&b(RegExp.prototype,M,function(){var et=v(this),at=S(et.source),ot=et.flags;return"/"+at+"/"+S(ot===void 0&&E(I,et)&&!("flags"in I)?z(et):ot)},{unsafe:!0})},function(i,f,o){var h=o(16),y=o(217),b=o(100);h({target:"Array",proto:!0},{fill:y}),b("fill")},function(i,f){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(h){typeof window=="object"&&(o=window)}i.exports=o},function(i,f){i.exports=function(o,h){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:h}}},function(i,f,o){var h,y,b=o(7),v=o(55),E=b.process,S=b.Deno,k=E&&E.versions||S&&S.version,T=k&&k.v8;T&&(y=(h=T.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!y&&v&&(!(h=v.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=v.match(/Chrome\/(\d+)/))&&(y=+h[1]),i.exports=y},function(i,f){i.exports=!1},function(i,f){i.exports={}},function(i,f,o){var h=o(36),y=o(35),b=Function.prototype,v=h&&Object.getOwnPropertyDescriptor,E=y(b,"name"),S=E&&function(){}.name==="something",k=E&&(!h||h&&v(b,"name").configurable);i.exports={EXISTS:E,PROPER:S,CONFIGURABLE:k}},function(i,f,o){var h=o(136),y=o(111).concat("length","prototype");f.f=Object.getOwnPropertyNames||function(b){return h(b,y)}},function(i,f,o){var h=o(59),y=Math.max,b=Math.min;i.exports=function(v,E){var S=h(v);return S<0?y(S+E,0):b(S,E)}},function(i,f){var o=Function.prototype,h=o.apply,y=o.bind,b=o.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(y?b.bind(h):function(){return b.apply(h,arguments)})},function(i,f,o){var h=o(136),y=o(111);i.exports=Object.keys||function(b){return h(b,y)}},function(i,f,o){var h=o(38).f,y=o(35),b=o(28)("toStringTag");i.exports=function(v,E,S){v&&!y(v=S?v:v.prototype,b)&&h(v,b,{configurable:!0,value:E})}},function(i,f,o){var h=o(64),y=o(15),b=o(85),v=o(40),E=o(45),S=o(115),k=y([].push),T=function(M){var I=M==1,C=M==2,z=M==3,W=M==4,K=M==6,et=M==7,at=M==5||K;return function(ot,tt,$,X){for(var U,H,V=v(ot),q=b(V),ut=h(tt,$),Et=E(q),mt=0,At=X||S,Ft=I?At(ot,Et):C||et?At(ot,0):void 0;Et>mt;mt++)if((at||mt in q)&&(H=ut(U=q[mt],mt,V),M))if(I)Ft[mt]=H;else if(H)switch(M){case 3:return!0;case 5:return U;case 6:return mt;case 2:k(Ft,U)}else switch(M){case 4:return!1;case 7:k(Ft,U)}return K?-1:z||W?W:Ft}};i.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)}},function(i,f){i.exports={}},function(i,f,o){var h=o(18),y=o(28),b=o(70),v=y("species");i.exports=function(E){return b>=51||!h(function(){var S=[];return(S.constructor={})[v]=function(){return{foo:1}},S[E](Boolean).foo!==1})}},function(i,f,o){var h=o(76),y=o(34),b=o(15),v=o(123),E=o(159),S=o(32),k=o(44),T=o(164),M=o(124),I=o(94),C=o(39),z=o(62),W=o(114),K=o(125),et=o(103),at=o(155),ot=o(18),tt=at.UNSUPPORTED_Y,$=4294967295,X=Math.min,U=[].push,H=b(/./.exec),V=b(U),q=b("".slice),ut=!ot(function(){var Et=/(?:)/,mt=Et.exec;Et.exec=function(){return mt.apply(this,arguments)};var At="ab".split(Et);return At.length!==2||At[0]!=="a"||At[1]!=="b"});v("split",function(Et,mt,At){var Ft;return Ft="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(St,vt){var Pt=C(k(this)),kt=vt===void 0?$:vt>>>0;if(kt===0)return[];if(St===void 0)return[Pt];if(!E(St))return y(mt,Pt,St,kt);for(var Gt,oe,Ee,Wt=[],Qt=(St.ignoreCase?"i":"")+(St.multiline?"m":"")+(St.unicode?"u":"")+(St.sticky?"y":""),be=0,st=new RegExp(St.source,Qt+"g");(Gt=y(et,st,Pt))&&!((oe=st.lastIndex)>be&&(V(Wt,q(Pt,be,Gt.index)),Gt.length>1&&Gt.index<Pt.length&&h(U,Wt,W(Gt,1)),Ee=Gt[0].length,be=oe,Wt.length>=kt));)st.lastIndex===Gt.index&&st.lastIndex++;return be===Pt.length?!Ee&&H(st,"")||V(Wt,""):V(Wt,q(Pt,be)),Wt.length>kt?W(Wt,0,kt):Wt}:"0".split(void 0,0).length?function(St,vt){return St===void 0&&vt===0?[]:y(mt,this,St,vt)}:mt,[function(St,vt){var Pt=k(this),kt=St==null?void 0:z(St,Et);return kt?y(kt,St,Pt,vt):y(Ft,C(Pt),St,vt)},function(St,vt){var Pt=S(this),kt=C(St),Gt=At(Ft,Pt,kt,vt,Ft!==mt);if(Gt.done)return Gt.value;var oe=T(Pt,RegExp),Ee=Pt.unicode,Wt=(Pt.ignoreCase?"i":"")+(Pt.multiline?"m":"")+(Pt.unicode?"u":"")+(tt?"g":"y"),Qt=new oe(tt?"^(?:"+Pt.source+")":Pt,Wt),be=vt===void 0?$:vt>>>0;if(be===0)return[];if(kt.length===0)return K(Qt,kt)===null?[kt]:[];for(var st=0,ct=0,dt=[];ct<kt.length;){Qt.lastIndex=tt?0:ct;var Dt,Yt=K(Qt,tt?q(kt,ct):kt);if(Yt===null||(Dt=X(I(Qt.lastIndex+(tt?ct:0)),kt.length))===st)ct=M(kt,ct,Ee);else{if(V(dt,q(kt,st,ct)),dt.length===be)return dt;for(var Bt=1;Bt<=Yt.length-1;Bt++)if(V(dt,Yt[Bt]),dt.length===be)return dt;ct=st=Dt}}return V(dt,q(kt,st)),dt}]},!ut,tt)},function(i,f,o){o(16)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(i,f,o){var h={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!h.call({1:2},1);f.f=b?function(v){var E=y(this,v);return!!E&&E.enumerable}:h},function(i,f,o){var h=o(7),y=o(15),b=o(18),v=o(51),E=h.Object,S=y("".split);i.exports=b(function(){return!E("z").propertyIsEnumerable(0)})?function(k){return v(k)=="String"?S(k,""):E(k)}:E},function(i,f,o){var h=o(131),y=o(87);i.exports=function(b){var v=h(b,"string");return y(v)?v:v+""}},function(i,f,o){var h=o(7),y=o(46),b=o(30),v=o(54),E=o(132),S=h.Object;i.exports=E?function(k){return typeof k=="symbol"}:function(k){var T=y("Symbol");return b(T)&&v(T.prototype,S(k))}},function(i,f,o){var h=o(7).String;i.exports=function(y){try{return h(y)}catch(b){return"Object"}}},function(i,f,o){var h=o(71),y=o(109);(i.exports=function(b,v){return y[b]||(y[b]=v!==void 0?v:{})})("versions",[]).push({version:"3.19.3",mode:h?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},function(i,f,o){var h=o(15),y=0,b=Math.random(),v=h(1 .toString);i.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+v(++y+b,36)}},function(i,f,o){var h=o(7),y=o(33),b=h.document,v=y(b)&&y(b.createElement);i.exports=function(E){return v?b.createElement(E):{}}},function(i,f,o){var h=o(15),y=o(30),b=o(109),v=h(Function.toString);y(b.inspectSource)||(b.inspectSource=function(E){return v(E)}),i.exports=b.inspectSource},function(i,f,o){var h=o(89),y=o(90),b=h("keys");i.exports=function(v){return b[v]||(b[v]=y(v))}},function(i,f,o){var h=o(59),y=Math.min;i.exports=function(b){return b>0?y(h(b),9007199254740991):0}},function(i,f,o){var h=o(18),y=o(30),b=/#|\.prototype\./,v=function(M,I){var C=S[E(M)];return C==T||C!=k&&(y(I)?h(I):!!I)},E=v.normalize=function(M){return String(M).replace(b,".").toLowerCase()},S=v.data={},k=v.NATIVE="N",T=v.POLYFILL="P";i.exports=v},function(i,f,o){var h=o(51);i.exports=Array.isArray||function(y){return h(y)=="Array"}},function(i,f,o){var h=o(7),y=o(113),b=o(30),v=o(51),E=o(28)("toStringTag"),S=h.Object,k=v(function(){return arguments}())=="Arguments";i.exports=y?v:function(T){var M,I,C;return T===void 0?"Undefined":T===null?"Null":typeof(I=function(z,W){try{return z[W]}catch(K){}}(M=S(T),E))=="string"?I:k?v(M):(C=v(M))=="Object"&&b(M.callee)?"Arguments":C}},function(i,f,o){var h=o(15);i.exports=h([].slice)},function(i,f,o){var h=o(15),y=o(18),b=o(30),v=o(97),E=o(46),S=o(92),k=function(){},T=[],M=E("Reflect","construct"),I=/^\s*(?:class|function)\b/,C=h(I.exec),z=!I.exec(k),W=function(K){if(!b(K))return!1;try{return M(k,T,K),!0}catch(et){return!1}};i.exports=!M||y(function(){var K;return W(W.call)||!W(Object)||!W(function(){K=!0})||K})?function(K){if(!b(K))return!1;switch(v(K)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return z||!!C(I,S(K))}:W},function(i,f,o){var h=o(28),y=o(60),b=o(38),v=h("unscopables"),E=Array.prototype;E[v]==null&&b.f(E,v,{configurable:!0,value:y(null)}),i.exports=function(S){E[v][S]=!0}},function(i,f,o){var h=o(7),y=o(35),b=o(30),v=o(40),E=o(93),S=o(143),k=E("IE_PROTO"),T=h.Object,M=T.prototype;i.exports=S?T.getPrototypeOf:function(I){var C=v(I);if(y(C,k))return C[k];var z=C.constructor;return b(z)&&C instanceof z?z.prototype:C instanceof T?M:null}},function(i,f,o){var h=o(15),y=o(32),b=o(181);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var v,E=!1,S={};try{(v=h(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(S,[]),E=S instanceof Array}catch(k){}return function(k,T){return y(k),b(T),E?v(k,T):k.__proto__=T,k}}():void 0)},function(i,f,o){var h,y,b=o(34),v=o(15),E=o(39),S=o(154),k=o(155),T=o(89),M=o(60),I=o(58).get,C=o(190),z=o(191),W=T("native-string-replace",String.prototype.replace),K=RegExp.prototype.exec,et=K,at=v("".charAt),ot=v("".indexOf),tt=v("".replace),$=v("".slice),X=(y=/b*/g,b(K,h=/a/,"a"),b(K,y,"a"),h.lastIndex!==0||y.lastIndex!==0),U=k.BROKEN_CARET,H=/()??/.exec("")[1]!==void 0;(X||H||U||C||z)&&(et=function(V){var q,ut,Et,mt,At,Ft,St,vt=this,Pt=I(vt),kt=E(V),Gt=Pt.raw;if(Gt)return Gt.lastIndex=vt.lastIndex,q=b(et,Gt,kt),vt.lastIndex=Gt.lastIndex,q;var oe=Pt.groups,Ee=U&&vt.sticky,Wt=b(S,vt),Qt=vt.source,be=0,st=kt;if(Ee&&(Wt=tt(Wt,"y",""),ot(Wt,"g")===-1&&(Wt+="g"),st=$(kt,vt.lastIndex),vt.lastIndex>0&&(!vt.multiline||vt.multiline&&at(kt,vt.lastIndex-1)!==`
  32. `)&&(Qt="(?: "+Qt+")",st=" "+st,be++),ut=new RegExp("^(?:"+Qt+")",Wt)),H&&(ut=new RegExp("^"+Qt+"$(?!\\s)",Wt)),X&&(Et=vt.lastIndex),mt=b(K,Ee?ut:vt,st),Ee?mt?(mt.input=$(mt.input,be),mt[0]=$(mt[0],be),mt.index=vt.lastIndex,vt.lastIndex+=mt[0].length):vt.lastIndex=0:X&&mt&&(vt.lastIndex=vt.global?mt.index+mt[0].length:Et),H&&mt&&mt.length>1&&b(W,mt[0],ut,function(){for(At=1;At<arguments.length-2;At++)arguments[At]===void 0&&(mt[At]=void 0)}),mt&&oe)for(mt.groups=Ft=M(null),At=0;At<oe.length;At++)Ft[(St=oe[At])[0]]=mt[St[1]];return mt}),i.exports=et},function(i,f,o){var h=o(16),y=o(7),b=o(75),v=o(59),E=o(45),S=o(40),k=o(115),T=o(63),M=o(81)("splice"),I=y.TypeError,C=Math.max,z=Math.min,W=9007199254740991,K="Maximum allowed length exceeded";h({target:"Array",proto:!0,forced:!M},{splice:function(et,at){var ot,tt,$,X,U,H,V=S(this),q=E(V),ut=b(et,q),Et=arguments.length;if(Et===0?ot=tt=0:Et===1?(ot=0,tt=q-ut):(ot=Et-2,tt=z(C(v(at),0),q-ut)),q+ot-tt>W)throw I(K);for($=k(V,tt),X=0;X<tt;X++)(U=ut+X)in V&&T($,X,V[U]);if($.length=tt,ot<tt){for(X=ut;X<q-tt;X++)H=X+ot,(U=X+tt)in V?V[H]=V[U]:delete V[H];for(X=q;X>q-tt+ot;X--)delete V[X-1]}else if(ot>tt)for(X=q-tt;X>ut;X--)H=X+ot-1,(U=X+tt-1)in V?V[H]=V[U]:delete V[H];for(X=0;X<ot;X++)V[X+ut]=arguments[X+2];return V.length=q-tt+ot,$}})},function(i,f,o){var h=o(16),y=o(205);h({target:"String",proto:!0,forced:o(206)("anchor")},{anchor:function(b){return y(this,"a","name",b)}})},function(i,f,o){(function(h){var y=typeof h=="object"&&h&&h.Object===Object&&h;f.a=y}).call(this,o(68))},function(i,f,o){(function(h){var y=o(31),b=c&&!c.nodeType&&c,v=b&&typeof h=="object"&&h&&!h.nodeType&&h,E=v&&v.exports===b?y.a.Buffer:void 0,S=E?E.allocUnsafe:void 0;f.a=function(k,T){if(T)return k.slice();var M=k.length,I=S?S(M):new k.constructor(M);return k.copy(I),I}}).call(this,o(122)(i))},function(i,f,o){var h=o(70),y=o(18);i.exports=!!Object.getOwnPropertySymbols&&!y(function(){var b=Symbol();return!String(b)||!(Object(b)instanceof Symbol)||!Symbol.sham&&h&&h<41})},function(i,f,o){var h=o(7),y=o(110),b="__core-js_shared__",v=h[b]||y(b,{});i.exports=v},function(i,f,o){var h=o(7),y=Object.defineProperty;i.exports=function(b,v){try{y(h,b,{value:v,configurable:!0,writable:!0})}catch(E){h[b]=v}return v}},function(i,f){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(i,f){f.f=Object.getOwnPropertySymbols},function(i,f,o){var h={};h[o(28)("toStringTag")]="z",i.exports=String(h)==="[object z]"},function(i,f,o){var h=o(7),y=o(75),b=o(45),v=o(63),E=h.Array,S=Math.max;i.exports=function(k,T,M){for(var I=b(k),C=y(T,I),z=y(M===void 0?I:M,I),W=E(S(z-C,0)),K=0;C<z;C++,K++)v(W,K,k[C]);return W.length=K,W}},function(i,f,o){var h=o(178);i.exports=function(y,b){return new(h(y))(b===0?0:b)}},function(i,f,o){var h=o(16),y=o(34),b=o(71),v=o(73),E=o(30),S=o(180),k=o(101),T=o(102),M=o(78),I=o(57),C=o(42),z=o(28),W=o(80),K=o(142),et=v.PROPER,at=v.CONFIGURABLE,ot=K.IteratorPrototype,tt=K.BUGGY_SAFARI_ITERATORS,$=z("iterator"),X="keys",U="values",H="entries",V=function(){return this};i.exports=function(q,ut,Et,mt,At,Ft,St){S(Et,ut,mt);var vt,Pt,kt,Gt=function(ct){if(ct===At&&be)return be;if(!tt&&ct in Wt)return Wt[ct];switch(ct){case X:case U:case H:return function(){return new Et(this,ct)}}return function(){return new Et(this)}},oe=ut+" Iterator",Ee=!1,Wt=q.prototype,Qt=Wt[$]||Wt["@@iterator"]||At&&Wt[At],be=!tt&&Qt||Gt(At),st=ut=="Array"&&Wt.entries||Qt;if(st&&(vt=k(st.call(new q)))!==Object.prototype&&vt.next&&(b||k(vt)===ot||(T?T(vt,ot):E(vt[$])||C(vt,$,V)),M(vt,oe,!0,!0),b&&(W[oe]=V)),et&&At==U&&Qt&&Qt.name!==U&&(!b&&at?I(Wt,"name",U):(Ee=!0,be=function(){return y(Qt,this)})),At)if(Pt={values:Gt(U),keys:Ft?be:Gt(X),entries:Gt(H)},St)for(kt in Pt)(tt||Ee||!(kt in Wt))&&C(Wt,kt,Pt[kt]);else h({target:ut,proto:!0,forced:tt||Ee},Pt);return b&&!St||Wt[$]===be||C(Wt,$,be,{name:At}),W[ut]=be,Pt}},function(i,f,o){var h=o(7),y=o(64),b=o(34),v=o(32),E=o(88),S=o(145),k=o(45),T=o(54),M=o(146),I=o(118),C=o(147),z=h.TypeError,W=function(et,at){this.stopped=et,this.result=at},K=W.prototype;i.exports=function(et,at,ot){var tt,$,X,U,H,V,q,ut=ot&&ot.that,Et=!(!ot||!ot.AS_ENTRIES),mt=!(!ot||!ot.IS_ITERATOR),At=!(!ot||!ot.INTERRUPTED),Ft=y(at,ut),St=function(Pt){return tt&&C(tt,"normal",Pt),new W(!0,Pt)},vt=function(Pt){return Et?(v(Pt),At?Ft(Pt[0],Pt[1],St):Ft(Pt[0],Pt[1])):At?Ft(Pt,St):Ft(Pt)};if(mt)tt=et;else{if(!($=I(et)))throw z(E(et)+" is not iterable");if(S($)){for(X=0,U=k(et);U>X;X++)if((H=vt(et[X]))&&T(K,H))return H;return new W(!1)}tt=M(et,$)}for(V=tt.next;!(q=b(V,tt)).done;){try{H=vt(q.value)}catch(Pt){C(tt,"throw",Pt)}if(typeof H=="object"&&H&&T(K,H))return H}return new W(!1)}},function(i,f,o){var h=o(97),y=o(62),b=o(80),v=o(28)("iterator");i.exports=function(E){if(E!=null)return y(E,v)||y(E,"@@iterator")||b[h(E)]}},function(i,f,o){var h=o(7),y=o(54),b=h.TypeError;i.exports=function(v,E){if(y(E,v))return v;throw b("Incorrect invocation")}},function(i,f,o){var h=o(28)("iterator"),y=!1;try{var b=0,v={next:function(){return{done:!!b++}},return:function(){y=!0}};v[h]=function(){return this},Array.from(v,function(){throw 2})}catch(E){}i.exports=function(E,S){if(!S&&!y)return!1;var k=!1;try{var T={};T[h]=function(){return{next:function(){return{done:k=!0}}}},E(T)}catch(M){}return k}},function(i,f,o){var h=o(18);i.exports=function(y,b){var v=[][y];return!!v&&h(function(){v.call(null,b||function(){throw 1},1)})}},function(i,f){i.exports=function(o){if(!o.webpackPolyfill){var h=Object.create(o);h.children||(h.children=[]),Object.defineProperty(h,"loaded",{enumerable:!0,get:function(){return h.l}}),Object.defineProperty(h,"id",{enumerable:!0,get:function(){return h.i}}),Object.defineProperty(h,"exports",{enumerable:!0}),h.webpackPolyfill=1}return h}},function(i,f,o){o(19);var h=o(15),y=o(42),b=o(103),v=o(18),E=o(28),S=o(57),k=E("species"),T=RegExp.prototype;i.exports=function(M,I,C,z){var W=E(M),K=!v(function(){var tt={};return tt[W]=function(){return 7},""[M](tt)!=7}),et=K&&!v(function(){var tt=!1,$=/a/;return M==="split"&&(($={}).constructor={},$.constructor[k]=function(){return $},$.flags="",$[W]=/./[W]),$.exec=function(){return tt=!0,null},$[W](""),!tt});if(!K||!et||C){var at=h(/./[W]),ot=I(W,""[M],function(tt,$,X,U,H){var V=h(tt),q=$.exec;return q===b||q===T.exec?K&&!H?{done:!0,value:at($,X,U)}:{done:!0,value:V(X,$,U)}:{done:!1}});y(String.prototype,M,ot[0]),y(T,W,ot[1])}z&&S(T[W],"sham",!0)}},function(i,f,o){var h=o(151).charAt;i.exports=function(y,b,v){return b+(v?h(y,b).length:1)}},function(i,f,o){var h=o(7),y=o(34),b=o(32),v=o(30),E=o(51),S=o(103),k=h.TypeError;i.exports=function(T,M){var I=T.exec;if(v(I)){var C=y(I,T,M);return C!==null&&b(C),C}if(E(T)==="RegExp")return y(S,T,M);throw k("RegExp#exec called on incompatible receiver")}},function(i,f,o){var h=o(76),y=o(34),b=o(15),v=o(123),E=o(18),S=o(32),k=o(30),T=o(59),M=o(94),I=o(39),C=o(44),z=o(124),W=o(62),K=o(201),et=o(125),at=o(28)("replace"),ot=Math.max,tt=Math.min,$=b([].concat),X=b([].push),U=b("".indexOf),H=b("".slice),V="a".replace(/./,"$0")==="$0",q=!!/./[at]&&/./[at]("a","$0")==="";v("replace",function(ut,Et,mt){var At=q?"$":"$0";return[function(Ft,St){var vt=C(this),Pt=Ft==null?void 0:W(Ft,at);return Pt?y(Pt,Ft,vt,St):y(Et,I(vt),Ft,St)},function(Ft,St){var vt=S(this),Pt=I(Ft);if(typeof St=="string"&&U(St,At)===-1&&U(St,"$<")===-1){var kt=mt(Et,vt,Pt,St);if(kt.done)return kt.value}var Gt=k(St);Gt||(St=I(St));var oe=vt.global;if(oe){var Ee=vt.unicode;vt.lastIndex=0}for(var Wt=[];;){var Qt=et(vt,Pt);if(Qt===null||(X(Wt,Qt),!oe))break;I(Qt[0])===""&&(vt.lastIndex=z(Pt,M(vt.lastIndex),Ee))}for(var be,st="",ct=0,dt=0;dt<Wt.length;dt++){for(var Dt=I((Qt=Wt[dt])[0]),Yt=ot(tt(T(Qt.index),Pt.length),0),Bt=[],Oe=1;Oe<Qt.length;Oe++)X(Bt,(be=Qt[Oe])===void 0?be:String(be));var Ce=Qt.groups;if(Gt){var Ae=$([Dt],Bt,Yt,Pt);Ce!==void 0&&X(Ae,Ce);var ve=I(h(St,void 0,Ae))}else ve=K(Dt,Pt,Yt,Bt,Ce,St);Yt>=ct&&(st+=H(Pt,ct,Yt)+ve,ct=Yt+Dt.length)}return st+H(Pt,ct)}]},!!E(function(){var ut=/./;return ut.exec=function(){var Et=[];return Et.groups={a:"7"},Et},"".replace(ut,"$<a>")!=="7"})||!V||q)},function(i,f,o){var h=o(16),y=Math.hypot,b=Math.abs,v=Math.sqrt;h({target:"Math",stat:!0,forced:!!y&&y(1/0,NaN)!==1/0},{hypot:function(E,S){for(var k,T,M=0,I=0,C=arguments.length,z=0;I<C;)z<(k=b(arguments[I++]))?(M=M*(T=z/k)*T+1,z=k):M+=k>0?(T=k/z)*T:k;return z===1/0?1/0:z*v(M)}})},function(i,f,o){var h=o(51),y=o(7);i.exports=h(y.process)=="process"},function(i,f,o){o(16)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(i,f,o){(function(h,y){var b;(function(){var v,E="Expected a function",S="__lodash_hash_undefined__",k="__lodash_placeholder__",T=16,M=32,I=64,C=128,z=256,W=1/0,K=9007199254740991,et=NaN,at=4294967295,ot=[["ary",C],["bind",1],["bindKey",2],["curry",8],["curryRight",T],["flip",512],["partial",M],["partialRight",I],["rearg",z]],tt="[object Arguments]",$="[object Array]",X="[object Boolean]",U="[object Date]",H="[object Error]",V="[object Function]",q="[object GeneratorFunction]",ut="[object Map]",Et="[object Number]",mt="[object Object]",At="[object Promise]",Ft="[object RegExp]",St="[object Set]",vt="[object String]",Pt="[object Symbol]",kt="[object WeakMap]",Gt="[object ArrayBuffer]",oe="[object DataView]",Ee="[object Float32Array]",Wt="[object Float64Array]",Qt="[object Int8Array]",be="[object Int16Array]",st="[object Int32Array]",ct="[object Uint8Array]",dt="[object Uint8ClampedArray]",Dt="[object Uint16Array]",Yt="[object Uint32Array]",Bt=/\b__p \+= '';/g,Oe=/\b(__p \+=) '' \+/g,Ce=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ae=/&(?:amp|lt|gt|quot|#39);/g,ve=/[&<>"']/g,Tt=RegExp(Ae.source),le=RegExp(ve.source),ft=/<%-([\s\S]+?)%>/g,ce=/<%([\s\S]+?)%>/g,Fe=/<%=([\s\S]+?)%>/g,pr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ue=/^\w*$/,nr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/[\\^$.*+?()[\]{}|]/g,Mr=RegExp(br.source),Le=/^\s+/,Yr=/\s/,Q=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ht=/\{\n\/\* \[wrapped with (.+)\] \*/,it=/,? & /,_t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kt=/[()=,{}\[\]\/\s]/,Zt=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,nn=/^[-+]0x[0-9a-f]+$/i,pn=/^0b[01]+$/i,Hr=/^\[object .+?Constructor\]$/,Zr=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,je=/($^)/,ze=/['\n\r\u2028\u2029\\]/g,vr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ir="\\u2700-\\u27bf",Uo="a-z\\xdf-\\xf6\\xf8-\\xff",Eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Go="\\ufe0e\\ufe0f",Li="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cl="['\u2019]",Mu="[\uD800-\uDFFF]",eo="["+Li+"]",ya="["+vr+"]",fe="\\d+",Rl="[\\u2700-\\u27bf]",Du="["+Uo+"]",Nu="[^\uD800-\uDFFF"+Li+fe+Ir+Uo+Eo+"]",Tn="\uD83C[\uDFFB-\uDFFF]",Bn="[^\uD800-\uDFFF]",Va="(?:\uD83C[\uDDE6-\uDDFF]){2}",ho="[\uD800-\uDBFF][\uDC00-\uDFFF]",ro="["+Eo+"]",yo="(?:"+Du+"|"+Nu+")",Cu="(?:"+ro+"|"+Nu+")",Ru="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Qc="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",ga="(?:"+ya+"|"+Tn+")?",Jc="[\\ufe0e\\ufe0f]?",Iu=Jc+ga+("(?:\\u200d(?:"+[Bn,Va,ho].join("|")+")"+Jc+ga+")*"),Il="(?:"+[Rl,Va,ho].join("|")+")"+Iu,ci="(?:"+[Bn+ya+"?",ya,Va,ho,Mu].join("|")+")",ts=RegExp(Cl,"g"),Xo=RegExp(ya,"g"),Lu=RegExp(Tn+"(?="+Tn+")|"+ci+Iu,"g"),Wa=RegExp([ro+"?"+Du+"+"+Ru+"(?="+[eo,ro,"$"].join("|")+")",Cu+"+"+Qc+"(?="+[eo,ro+yo,"$"].join("|")+")",ro+"?"+yo+"+"+Ru,ro+"+"+Qc,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fe,Il].join("|"),"g"),zu=RegExp("[\\u200d\uD800-\uDFFF"+vr+Go+"]"),Bu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ll=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],es=-1,dr={};dr[Ee]=dr[Wt]=dr[Qt]=dr[be]=dr[st]=dr[ct]=dr[dt]=dr[Dt]=dr[Yt]=!0,dr[tt]=dr[$]=dr[Gt]=dr[X]=dr[oe]=dr[U]=dr[H]=dr[V]=dr[ut]=dr[Et]=dr[mt]=dr[Ft]=dr[St]=dr[vt]=dr[kt]=!1;var hr={};hr[tt]=hr[$]=hr[Gt]=hr[oe]=hr[X]=hr[U]=hr[Ee]=hr[Wt]=hr[Qt]=hr[be]=hr[st]=hr[ut]=hr[Et]=hr[mt]=hr[Ft]=hr[St]=hr[vt]=hr[Pt]=hr[ct]=hr[dt]=hr[Dt]=hr[Yt]=!0,hr[H]=hr[V]=hr[kt]=!1;var rs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zi=parseFloat,Yo=parseInt,Fu=typeof h=="object"&&h&&h.Object===Object&&h,ns=typeof self=="object"&&self&&self.Object===Object&&self,Ur=Fu||ns||Function("return this")(),Uu=f&&!f.nodeType&&f,va=Uu&&typeof y=="object"&&y&&!y.nodeType&&y,Gu=va&&va.exports===Uu,Ka=Gu&&Fu.process,hn=function(){try{var wt=va&&va.require&&va.require("util").types;return wt||Ka&&Ka.binding&&Ka.binding("util")}catch(Nt){}}(),Xu=hn&&hn.isArrayBuffer,os=hn&&hn.isDate,Yu=hn&&hn.isMap,Za=hn&&hn.isRegExp,Bi=hn&&hn.isSet,jo=hn&&hn.isTypedArray;function jr(wt,Nt,It){switch(It.length){case 0:return wt.call(Nt);case 1:return wt.call(Nt,It[0]);case 2:return wt.call(Nt,It[0],It[1]);case 3:return wt.call(Nt,It[0],It[1],It[2])}return wt.apply(Nt,It)}function is(wt,Nt,It,te){for(var Ge=-1,Qe=wt==null?0:wt.length;++Ge<Qe;){var Pr=wt[Ge];Nt(te,Pr,It(Pr),wt)}return te}function Mn(wt,Nt){for(var It=-1,te=wt==null?0:wt.length;++It<te&&Nt(wt[It],It,wt)!==!1;);return wt}function as(wt,Nt){for(var It=wt==null?0:wt.length;It--&&Nt(wt[It],It,wt)!==!1;);return wt}function us(wt,Nt){for(var It=-1,te=wt==null?0:wt.length;++It<te;)if(!Nt(wt[It],It,wt))return!1;return!0}function wn(wt,Nt){for(var It=-1,te=wt==null?0:wt.length,Ge=0,Qe=[];++It<te;){var Pr=wt[It];Nt(Pr,It,wt)&&(Qe[Ge++]=Pr)}return Qe}function Dn(wt,Nt){return!!(wt!=null&&wt.length)&&Fi(wt,Nt,0)>-1}function Hu(wt,Nt,It){for(var te=-1,Ge=wt==null?0:wt.length;++te<Ge;)if(It(Nt,wt[te]))return!0;return!1}function sr(wt,Nt){for(var It=-1,te=wt==null?0:wt.length,Ge=Array(te);++It<te;)Ge[It]=Nt(wt[It],It,wt);return Ge}function on(wt,Nt){for(var It=-1,te=Nt.length,Ge=wt.length;++It<te;)wt[Ge+It]=Nt[It];return wt}function qa(wt,Nt,It,te){var Ge=-1,Qe=wt==null?0:wt.length;for(te&&Qe&&(It=wt[++Ge]);++Ge<Qe;)It=Nt(It,wt[Ge],Ge,wt);return It}function cs(wt,Nt,It,te){var Ge=wt==null?0:wt.length;for(te&&Ge&&(It=wt[--Ge]);Ge--;)It=Nt(It,wt[Ge],Ge,wt);return It}function Vu(wt,Nt){for(var It=-1,te=wt==null?0:wt.length;++It<te;)if(Nt(wt[It],It,wt))return!0;return!1}var $a=Cn("length");function So(wt,Nt,It){var te;return It(wt,function(Ge,Qe,Pr){if(Nt(Ge,Qe,Pr))return te=Qe,!1}),te}function Ho(wt,Nt,It,te){for(var Ge=wt.length,Qe=It+(te?1:-1);te?Qe--:++Qe<Ge;)if(Nt(wt[Qe],Qe,wt))return Qe;return-1}function Fi(wt,Nt,It){return Nt==Nt?function(te,Ge,Qe){for(var Pr=Qe-1,O=te.length;++Pr<O;)if(te[Pr]===Ge)return Pr;return-1}(wt,Nt,It):Ho(wt,Vo,It)}function Nn(wt,Nt,It,te){for(var Ge=It-1,Qe=wt.length;++Ge<Qe;)if(te(wt[Ge],Nt))return Ge;return-1}function Vo(wt){return wt!=wt}function or(wt,Nt){var It=wt==null?0:wt.length;return It?Qa(wt,Nt)/It:et}function Cn(wt){return function(Nt){return Nt==null?v:Nt[wt]}}function Po(wt){return function(Nt){return wt==null?v:wt[Nt]}}function sn(wt,Nt,It,te,Ge){return Ge(wt,function(Qe,Pr,O){It=te?(te=!1,Qe):Nt(It,Qe,Pr,O)}),It}function Qa(wt,Nt){for(var It,te=-1,Ge=wt.length;++te<Ge;){var Qe=Nt(wt[te]);Qe!==v&&(It=It===v?Qe:It+Qe)}return It}function ma(wt,Nt){for(var It=-1,te=Array(wt);++It<wt;)te[It]=Nt(It);return te}function Wu(wt){return wt&&wt.slice(0,Rn(wt)+1).replace(Le,"")}function Lr(wt){return function(Nt){return wt(Nt)}}function Ja(wt,Nt){return sr(Nt,function(It){return wt[It]})}function Wo(wt,Nt){return wt.has(Nt)}function no(wt,Nt){for(var It=-1,te=wt.length;++It<te&&Fi(Nt,wt[It],0)>-1;);return It}function Ku(wt,Nt){for(var It=wt.length;It--&&Fi(Nt,wt[It],0)>-1;);return It}function zl(wt,Nt){for(var It=wt.length,te=0;It--;)wt[It]===Nt&&++te;return te}var Zu=Po({\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"}),Vr=Po({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function si(wt){return"\\"+rs[wt]}function Ao(wt){return zu.test(wt)}function xn(wt){var Nt=-1,It=Array(wt.size);return wt.forEach(function(te,Ge){It[++Nt]=[Ge,te]}),It}function qu(wt,Nt){return function(It){return wt(Nt(It))}}function Fn(wt,Nt){for(var It=-1,te=wt.length,Ge=0,Qe=[];++It<te;){var Pr=wt[It];Pr!==Nt&&Pr!==k||(wt[It]=k,Qe[Ge++]=It)}return Qe}function li(wt){var Nt=-1,It=Array(wt.size);return wt.forEach(function(te){It[++Nt]=te}),It}function tu(wt){var Nt=-1,It=Array(wt.size);return wt.forEach(function(te){It[++Nt]=[te,te]}),It}function ko(wt){return Ao(wt)?function(Nt){for(var It=Lu.lastIndex=0;Lu.test(Nt);)++It;return It}(wt):$a(wt)}function Un(wt){return Ao(wt)?function(Nt){return Nt.match(Lu)||[]}(wt):function(Nt){return Nt.split("")}(wt)}function Rn(wt){for(var Nt=wt.length;Nt--&&Yr.test(wt.charAt(Nt)););return Nt}var oo=Po({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),To=function wt(Nt){var It,te=(Nt=Nt==null?Ur:To.defaults(Ur.Object(),Nt,To.pick(Ur,Ll))).Array,Ge=Nt.Date,Qe=Nt.Error,Pr=Nt.Function,O=Nt.Math,w=Nt.Object,A=Nt.RegExp,L=Nt.String,Z=Nt.TypeError,pt=te.prototype,jt=Pr.prototype,Ut=w.prototype,ue=Nt["__core-js_shared__"],Ze=jt.toString,ee=Ut.hasOwnProperty,_r=0,Xe=(It=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||""))?"Symbol(src)_1."+It:"",fr=Ut.toString,io=Ze.call(w),Dr=Ur._,In=A("^"+Ze.call(ee).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ko=Gu?Nt.Buffer:v,Zo=Nt.Symbol,ba=Nt.Uint8Array,$u=Ko?Ko.allocUnsafe:v,fi=qu(w.getPrototypeOf,w),eu=w.create,En=Ut.propertyIsEnumerable,_a=pt.splice,Ui=Zo?Zo.isConcatSpreadable:v,pi=Zo?Zo.iterator:v,hi=Zo?Zo.toStringTag:v,ru=function(){try{var l=ja(w,"defineProperty");return l({},"",{}),l}catch(d){}}(),fg=Nt.clearTimeout!==Ur.clearTimeout&&Nt.clearTimeout,pg=Ge&&Ge.now!==Ur.Date.now&&Ge.now,rh=Nt.setTimeout!==Ur.setTimeout&&Nt.setTimeout,ss=O.ceil,nu=O.floor,Bl=w.getOwnPropertySymbols,hg=Ko?Ko.isBuffer:v,nh=Nt.isFinite,Fl=pt.join,oh=qu(w.keys,w),ln=O.max,jn=O.min,ls=Ge.now,fs=Nt.parseInt,ps=O.random,dg=pt.reverse,ou=ja(Nt,"DataView"),qo=ja(Nt,"Map"),Ul=ja(Nt,"Promise"),Oa=ja(Nt,"Set"),iu=ja(Nt,"WeakMap"),Qu=ja(w,"create"),hs=iu&&new iu,au={},yg=$i(ou),ih=$i(qo),gg=$i(Ul),vg=$i(Oa),ah=$i(iu),ds=Zo?Zo.prototype:v,yn=ds?ds.valueOf:v,uh=ds?ds.toString:v;function B(l){if(Br(l)&&!He(l)&&!(l instanceof ur)){if(l instanceof go)return l;if(ee.call(l,"__wrapped__"))return wf(l)}return new go(l)}var uu=function(){function l(){}return function(d){if(!wr(d))return{};if(eu)return eu(d);l.prototype=d;var _=new l;return l.prototype=v,_}}();function Ju(){}function go(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=v}function ur(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=at,this.__views__=[]}function wa(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var P=l[d];this.set(P[0],P[1])}}function Or(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var P=l[d];this.set(P[0],P[1])}}function $o(l){var d=-1,_=l==null?0:l.length;for(this.clear();++d<_;){var P=l[d];this.set(P[0],P[1])}}function Gi(l){var d=-1,_=l==null?0:l.length;for(this.__data__=new $o;++d<_;)this.add(l[d])}function vo(l){var d=this.__data__=new Or(l);this.size=d.size}function Gl(l,d){var _=He(l),P=!_&&Qi(l),N=!_&&!P&&Oo(l),G=!_&&!P&&!N&&Sa(l),rt=_||P||N||G,lt=rt?ma(l.length,L):[],Ot=lt.length;for(var Lt in l)!d&&!ee.call(l,Lt)||rt&&(Lt=="length"||N&&(Lt=="offset"||Lt=="parent")||G&&(Lt=="buffer"||Lt=="byteLength"||Lt=="byteOffset")||Rr(Lt,Ot))||lt.push(Lt);return lt}function Xl(l){var d=l.length;return d?l[$l(0,d-1)]:v}function ch(l,d){return uc(Xn(l),Xi(d,0,l.length))}function sh(l){return uc(Xn(l))}function ys(l,d,_){(_!==v&&!co(l[d],_)||_===v&&!(d in l))&&Qo(l,d,_)}function cu(l,d,_){var P=l[d];ee.call(l,d)&&co(P,_)&&(_!==v||d in l)||Qo(l,d,_)}function tc(l,d){for(var _=l.length;_--;)if(co(l[_][0],d))return _;return-1}function lh(l,d,_,P){return Nr(l,function(N,G,rt){d(P,N,_(N),rt)}),P}function Yl(l,d){return l&&Jo(d,fn(d),l)}function Qo(l,d,_){d=="__proto__"&&ru?ru(l,d,{configurable:!0,enumerable:!0,value:_,writable:!0}):l[d]=_}function gs(l,d){for(var _=-1,P=d.length,N=te(P),G=l==null;++_<P;)N[_]=G?v:ta(l,d[_]);return N}function Xi(l,d,_){return l==l&&(_!==v&&(l=l<=_?l:_),d!==v&&(l=l>=d?l:d)),l}function ao(l,d,_,P,N,G){var rt,lt=1&d,Ot=2&d,Lt=4&d;if(_&&(rt=N?_(l,P,N,G):_(l)),rt!==v)return rt;if(!wr(l))return l;var Ct=He(l);if(Ct){if(rt=function(zt){var Ht=zt.length,Be=new zt.constructor(Ht);return Ht&&typeof zt[0]=="string"&&ee.call(zt,"index")&&(Be.index=zt.index,Be.input=zt.input),Be}(l),!lt)return Xn(l,rt)}else{var Xt=Sn(l),se=Xt==V||Xt==q;if(Oo(l))return of(l,lt);if(Xt==mt||Xt==tt||se&&!N){if(rt=Ot||se?{}:Lh(l),!lt)return Ot?function(zt,Ht){return Jo(zt,df(zt),Ht)}(l,function(zt,Ht){return zt&&Jo(Ht,bn(Ht),zt)}(rt,l)):function(zt,Ht){return Jo(zt,oc(zt),Ht)}(l,Yl(rt,l))}else{if(!hr[Xt])return N?l:{};rt=function(zt,Ht,Be){var re=zt.constructor;switch(Ht){case Gt:return af(zt);case X:case U:return new re(+zt);case oe:return function(Te,tr){var me=tr?af(Te.buffer):Te.buffer;return new Te.constructor(me,Te.byteOffset,Te.byteLength)}(zt,Be);case Ee:case Wt:case Qt:case be:case st:case ct:case dt:case Dt:case Yt:return kr(zt,Be);case ut:return new re;case Et:case vt:return new re(zt);case Ft:return function(Te){var tr=new Te.constructor(Te.source,We.exec(Te));return tr.lastIndex=Te.lastIndex,tr}(zt);case St:return new re;case Pt:return Ne=zt,yn?w(yn.call(Ne)):{}}var Ne}(l,Xt,lt)}}G||(G=new vo);var ge=G.get(l);if(ge)return ge;G.set(l,rt),Cf(l)?l.forEach(function(zt){rt.add(ao(zt,d,_,zt,l,G))}):mn(l)&&l.forEach(function(zt,Ht){rt.set(Ht,ao(zt,d,_,Ht,l,G))});var Se=Ct?v:(Lt?Ot?ff:lf:Ot?bn:fn)(l);return Mn(Se||l,function(zt,Ht){Se&&(zt=l[Ht=zt]),cu(rt,Ht,ao(zt,d,_,Ht,l,G))}),rt}function Hl(l,d,_){var P=_.length;if(l==null)return!P;for(l=w(l);P--;){var N=_[P],G=d[N],rt=l[N];if(rt===v&&!(N in l)||!G(rt))return!1}return!0}function Vl(l,d,_){if(typeof l!="function")throw new Z(E);return yu(function(){l.apply(v,_)},d)}function di(l,d,_,P){var N=-1,G=Dn,rt=!0,lt=l.length,Ot=[],Lt=d.length;if(!lt)return Ot;_&&(d=sr(d,Lr(_))),P?(G=Hu,rt=!1):d.length>=200&&(G=Wo,rt=!1,d=new Gi(d));t:for(;++N<lt;){var Ct=l[N],Xt=_==null?Ct:_(Ct);if(Ct=P||Ct!==0?Ct:0,rt&&Xt==Xt){for(var se=Lt;se--;)if(d[se]===Xt)continue t;Ot.push(Ct)}else G(d,Xt,P)||Ot.push(Ct)}return Ot}B.templateSettings={escape:ft,evaluate:ce,interpolate:Fe,variable:"",imports:{_:B}},B.prototype=Ju.prototype,B.prototype.constructor=B,go.prototype=uu(Ju.prototype),go.prototype.constructor=go,ur.prototype=uu(Ju.prototype),ur.prototype.constructor=ur,wa.prototype.clear=function(){this.__data__=Qu?Qu(null):{},this.size=0},wa.prototype.delete=function(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d},wa.prototype.get=function(l){var d=this.__data__;if(Qu){var _=d[l];return _===S?v:_}return ee.call(d,l)?d[l]:v},wa.prototype.has=function(l){var d=this.__data__;return Qu?d[l]!==v:ee.call(d,l)},wa.prototype.set=function(l,d){var _=this.__data__;return this.size+=this.has(l)?0:1,_[l]=Qu&&d===v?S:d,this},Or.prototype.clear=function(){this.__data__=[],this.size=0},Or.prototype.delete=function(l){var d=this.__data__,_=tc(d,l);return!(_<0)&&(_==d.length-1?d.pop():_a.call(d,_,1),--this.size,!0)},Or.prototype.get=function(l){var d=this.__data__,_=tc(d,l);return _<0?v:d[_][1]},Or.prototype.has=function(l){return tc(this.__data__,l)>-1},Or.prototype.set=function(l,d){var _=this.__data__,P=tc(_,l);return P<0?(++this.size,_.push([l,d])):_[P][1]=d,this},$o.prototype.clear=function(){this.size=0,this.__data__={hash:new wa,map:new(qo||Or),string:new wa}},$o.prototype.delete=function(l){var d=Ns(this,l).delete(l);return this.size-=d?1:0,d},$o.prototype.get=function(l){return Ns(this,l).get(l)},$o.prototype.has=function(l){return Ns(this,l).has(l)},$o.prototype.set=function(l,d){var _=Ns(this,l),P=_.size;return _.set(l,d),this.size+=_.size==P?0:1,this},Gi.prototype.add=Gi.prototype.push=function(l){return this.__data__.set(l,S),this},Gi.prototype.has=function(l){return this.__data__.has(l)},vo.prototype.clear=function(){this.__data__=new Or,this.size=0},vo.prototype.delete=function(l){var d=this.__data__,_=d.delete(l);return this.size=d.size,_},vo.prototype.get=function(l){return this.__data__.get(l)},vo.prototype.has=function(l){return this.__data__.has(l)},vo.prototype.set=function(l,d){var _=this.__data__;if(_ instanceof Or){var P=_.__data__;if(!qo||P.length<199)return P.push([l,d]),this.size=++_.size,this;_=this.__data__=new $o(P)}return _.set(l,d),this.size=_.size,this};var Nr=Ph(de),fh=Ph(Ar,!0);function ph(l,d){var _=!0;return Nr(l,function(P,N,G){return _=!!d(P,N,G)}),_}function Wr(l,d,_){for(var P=-1,N=l.length;++P<N;){var G=l[P],rt=d(G);if(rt!=null&&(lt===v?rt==rt&&!Wn(rt):_(rt,lt)))var lt=rt,Ot=G}return Ot}function yr(l,d){var _=[];return Nr(l,function(P,N,G){d(P,N,G)&&_.push(P)}),_}function dn(l,d,_,P,N){var G=-1,rt=l.length;for(_||(_=xg),N||(N=[]);++G<rt;){var lt=l[G];d>0&&_(lt)?d>1?dn(lt,d-1,_,P,N):on(N,lt):P||(N[N.length]=lt)}return N}var qe=Ah(),qr=Ah(!0);function de(l,d){return l&&qe(l,d,fn)}function Ar(l,d){return l&&qr(l,d,fn)}function vs(l,d){return wn(d,function(_){return Oi(l[_])})}function yi(l,d){for(var _=0,P=(d=Hi(d,l)).length;l!=null&&_<P;)l=l[Mo(d[_++])];return _&&_==P?l:v}function Wl(l,d,_){var P=d(l);return He(l)?P:on(P,_(l))}function zr(l){return l==null?l===v?"[object Undefined]":"[object Null]":hi&&hi in w(l)?function(d){var _=ee.call(d,hi),P=d[hi];try{d[hi]=v;var N=!0}catch(rt){}var G=fr.call(d);return N&&(_?d[hi]=P:delete d[hi]),G}(l):function(d){return fr.call(d)}(l)}function Gr(l,d){return l>d}function hh(l,d){return l!=null&&ee.call(l,d)}function dh(l,d){return l!=null&&d in w(l)}function ms(l,d,_){for(var P=_?Hu:Dn,N=l[0].length,G=l.length,rt=G,lt=te(G),Ot=1/0,Lt=[];rt--;){var Ct=l[rt];rt&&d&&(Ct=sr(Ct,Lr(d))),Ot=jn(Ct.length,Ot),lt[rt]=!_&&(d||N>=120&&Ct.length>=120)?new Gi(rt&&Ct):v}Ct=l[0];var Xt=-1,se=lt[0];t:for(;++Xt<N&&Lt.length<Ot;){var ge=Ct[Xt],Se=d?d(ge):ge;if(ge=_||ge!==0?ge:0,!(se?Wo(se,Se):P(Lt,Se,_))){for(rt=G;--rt;){var zt=lt[rt];if(!(zt?Wo(zt,Se):P(l[rt],Se,_)))continue t}se&&se.push(Se),Lt.push(ge)}}return Lt}function su(l,d,_){var P=(l=vf(l,d=Hi(d,l)))==null?l:l[Mo(Yn(d))];return P==null?v:jr(P,l,_)}function Kl(l){return Br(l)&&zr(l)==tt}function lu(l,d,_,P,N){return l===d||(l==null||d==null||!Br(l)&&!Br(d)?l!=l&&d!=d:function(G,rt,lt,Ot,Lt,Ct){var Xt=He(G),se=He(rt),ge=Xt?$:Sn(G),Se=se?$:Sn(rt),zt=(ge=ge==tt?mt:ge)==mt,Ht=(Se=Se==tt?mt:Se)==mt,Be=ge==Se;if(Be&&Oo(G)){if(!Oo(rt))return!1;Xt=!0,zt=!1}if(Be&&!zt)return Ct||(Ct=new vo),Xt||Sa(G)?Rh(G,rt,lt,Ot,Lt,Ct):function(me,Pe,Fr,bt,No,an,ri){switch(Fr){case oe:if(me.byteLength!=Pe.byteLength||me.byteOffset!=Pe.byteOffset)return!1;me=me.buffer,Pe=Pe.buffer;case Gt:return!(me.byteLength!=Pe.byteLength||!an(new ba(me),new ba(Pe)));case X:case U:case Et:return co(+me,+Pe);case H:return me.name==Pe.name&&me.message==Pe.message;case Ft:case vt:return me==Pe+"";case ut:var ji=xn;case St:var bu=1&bt;if(ji||(ji=li),me.size!=Pe.size&&!bu)return!1;var xc=ri.get(me);if(xc)return xc==Pe;bt|=2,ri.set(me,Pe);var Ta=Rh(ji(me),ji(Pe),bt,No,an,ri);return ri.delete(me),Ta;case Pt:if(yn)return yn.call(me)==yn.call(Pe)}return!1}(G,rt,ge,lt,Ot,Lt,Ct);if(!(1&lt)){var re=zt&&ee.call(G,"__wrapped__"),Ne=Ht&&ee.call(rt,"__wrapped__");if(re||Ne){var Te=re?G.value():G,tr=Ne?rt.value():rt;return Ct||(Ct=new vo),Lt(Te,tr,lt,Ot,Ct)}}return Be?(Ct||(Ct=new vo),function(me,Pe,Fr,bt,No,an){var ri=1&Fr,ji=lf(me),bu=ji.length,xc=lf(Pe).length;if(bu!=xc&&!ri)return!1;for(var Ta=bu;Ta--;){var ra=ji[Ta];if(!(ri?ra in Pe:ee.call(Pe,ra)))return!1}var tp=an.get(me),ep=an.get(Pe);if(tp&&ep)return tp==Pe&&ep==me;var Ec=!0;an.set(me,Pe),an.set(Pe,me);for(var $s=ri;++Ta<bu;){var na=me[ra=ji[Ta]],jc=Pe[ra];if(bt)var rp=ri?bt(jc,na,ra,Pe,me,an):bt(na,jc,ra,me,Pe,an);if(!(rp===v?na===jc||No(na,jc,Fr,bt,an):rp)){Ec=!1;break}$s||($s=ra=="constructor")}if(Ec&&!$s){var oa=me.constructor,Sc=Pe.constructor;oa==Sc||!("constructor"in me)||!("constructor"in Pe)||typeof oa=="function"&&oa instanceof oa&&typeof Sc=="function"&&Sc instanceof Sc||(Ec=!1)}return an.delete(me),an.delete(Pe),Ec}(G,rt,lt,Ot,Lt,Ct)):!1}(l,d,_,P,lu,N))}function bs(l,d,_,P){var N=_.length,G=N,rt=!P;if(l==null)return!G;for(l=w(l);N--;){var lt=_[N];if(rt&&lt[2]?lt[1]!==l[lt[0]]:!(lt[0]in l))return!1}for(;++N<G;){var Ot=(lt=_[N])[0],Lt=l[Ot],Ct=lt[1];if(rt&&lt[2]){if(Lt===v&&!(Ot in l))return!1}else{var Xt=new vo;if(P)var se=P(Lt,Ct,Ot,l,d,Xt);if(!(se===v?lu(Ct,Lt,3,P,Xt):se))return!1}}return!0}function fu(l){return!(!wr(l)||(d=l,Xe&&Xe in d))&&(Oi(l)?In:Hr).test($i(l));var d}function Zl(l){return typeof l=="function"?l:l==null?_n:typeof l=="object"?He(l)?gh(l[0],l[1]):yh(l):Jr(l)}function gi(l){if(!ac(l))return oh(l);var d=[];for(var _ in w(l))ee.call(l,_)&&_!="constructor"&&d.push(_);return d}function mg(l){if(!wr(l))return function(N){var G=[];if(N!=null)for(var rt in w(N))G.push(rt);return G}(l);var d=ac(l),_=[];for(var P in l)(P!="constructor"||!d&&ee.call(l,P))&&_.push(P);return _}function vi(l,d){return l<d}function mo(l,d){var _=-1,P=Vn(l)?te(l.length):[];return Nr(l,function(N,G,rt){P[++_]=d(N,G,rt)}),P}function yh(l){var d=hf(l);return d.length==1&&d[0][2]?Cs(d[0][0],d[0][1]):function(_){return _===l||bs(_,l,d)}}function gh(l,d){return yf(l)&&du(d)?Cs(Mo(l),d):function(_){var P=ta(_,l);return P===v&&P===d?Pa(_,l):lu(d,P,3)}}function _s(l,d,_,P,N){l!==d&&qe(d,function(G,rt){if(N||(N=new vo),wr(G))(function(Ot,Lt,Ct,Xt,se,ge,Se){var zt=Mt(Ot,Ct),Ht=Mt(Lt,Ct),Be=Se.get(Ht);if(Be)return void ys(Ot,Ct,Be);var re=ge?ge(zt,Ht,Ct+"",Ot,Lt,Se):v,Ne=re===v;if(Ne){var Te=He(Ht),tr=!Te&&Oo(Ht),me=!Te&&!tr&&Sa(Ht);re=Ht,Te||tr||me?He(zt)?re=zt:Qr(zt)?re=Xn(zt):tr?(Ne=!1,re=of(Ht,!0)):me?(Ne=!1,re=kr(Ht,!0)):re=[]:wi(Ht)||Qi(Ht)?(re=zt,Qi(zt)?re=Us(zt):wr(zt)&&!Oi(zt)||(re=Lh(Ht))):Ne=!1}Ne&&(Se.set(Ht,re),se(re,Ht,Xt,ge,Se),Se.delete(Ht)),ys(Ot,Ct,re)})(l,d,rt,_,_s,P,N);else{var lt=P?P(Mt(l,rt),G,rt+"",l,d,N):v;lt===v&&(lt=G),ys(l,rt,lt)}},bn)}function vh(l,d){var _=l.length;if(_)return Rr(d+=d<0?_:0,_)?l[d]:v}function mh(l,d,_){d=d.length?sr(d,function(G){return He(G)?function(rt){return yi(rt,G.length===1?G[0]:G)}:G}):[_n];var P=-1;d=sr(d,Lr(De()));var N=mo(l,function(G,rt,lt){var Ot=sr(d,function(Lt){return Lt(G)});return{criteria:Ot,index:++P,value:G}});return function(G,rt){var lt=G.length;for(G.sort(rt);lt--;)G[lt]=G[lt].value;return G}(N,function(G,rt){return function(lt,Ot,Lt){for(var Ct=-1,Xt=lt.criteria,se=Ot.criteria,ge=Xt.length,Se=Lt.length;++Ct<ge;){var zt=Sh(Xt[Ct],se[Ct]);if(zt)return Ct>=Se?zt:zt*(Lt[Ct]=="desc"?-1:1)}return lt.index-Ot.index}(G,rt,_)})}function bh(l,d,_){for(var P=-1,N=d.length,G={};++P<N;){var rt=d[P],lt=yi(l,rt);_(lt,rt)&&hu(G,Hi(rt,l),lt)}return G}function ql(l,d,_,P){var N=P?Nn:Fi,G=-1,rt=d.length,lt=l;for(l===d&&(d=Xn(d)),_&&(lt=sr(l,Lr(_)));++G<rt;)for(var Ot=0,Lt=d[G],Ct=_?_(Lt):Lt;(Ot=N(lt,Ct,Ot,P))>-1;)lt!==l&&_a.call(lt,Ot,1),_a.call(l,Ot,1);return l}function pu(l,d){for(var _=l?d.length:0,P=_-1;_--;){var N=d[_];if(_==P||N!==G){var G=N;Rr(N)?_a.call(l,N,1):xs(l,N)}}return l}function $l(l,d){return l+nu(ps()*(d-l+1))}function Os(l,d){var _="";if(!l||d<1||d>K)return _;do d%2&&(_+=l),(d=nu(d/2))&&(l+=l);while(d);return _}function $e(l,d){return Rs(gf(l,d,_n),l+"")}function bg(l){return Xl(ka(l))}function Ql(l,d){var _=ka(l);return uc(_,Xi(d,0,_.length))}function hu(l,d,_,P){if(!wr(l))return l;for(var N=-1,G=(d=Hi(d,l)).length,rt=G-1,lt=l;lt!=null&&++N<G;){var Ot=Mo(d[N]),Lt=_;if(Ot==="__proto__"||Ot==="constructor"||Ot==="prototype")return l;if(N!=rt){var Ct=lt[Ot];(Lt=P?P(Ct,Ot,lt):v)===v&&(Lt=wr(Ct)?Ct:Rr(d[N+1])?[]:{})}cu(lt,Ot,Lt),lt=lt[Ot]}return l}var _h=hs?function(l,d){return hs.set(l,d),l}:_n,_g=ru?function(l,d){return ru(l,"toString",{configurable:!0,enumerable:!1,value:Xf(d),writable:!0})}:_n;function Og(l){return uc(ka(l))}function bo(l,d,_){var P=-1,N=l.length;d<0&&(d=-d>N?0:N+d),(_=_>N?N:_)<0&&(_+=N),N=d>_?0:_-d>>>0,d>>>=0;for(var G=te(N);++P<N;)G[P]=l[P+d];return G}function Jl(l,d){var _;return Nr(l,function(P,N,G){return!(_=d(P,N,G))}),!!_}function ws(l,d,_){var P=0,N=l==null?P:l.length;if(typeof d=="number"&&d==d&&N<=2147483647){for(;P<N;){var G=P+N>>>1,rt=l[G];rt!==null&&!Wn(rt)&&(_?rt<=d:rt<d)?P=G+1:N=G}return N}return tf(l,d,_n,_)}function tf(l,d,_,P){var N=0,G=l==null?0:l.length;if(G===0)return 0;for(var rt=(d=_(d))!=d,lt=d===null,Ot=Wn(d),Lt=d===v;N<G;){var Ct=nu((N+G)/2),Xt=_(l[Ct]),se=Xt!==v,ge=Xt===null,Se=Xt==Xt,zt=Wn(Xt);if(rt)var Ht=P||Se;else Ht=Lt?Se&&(P||se):lt?Se&&se&&(P||!ge):Ot?Se&&se&&!ge&&(P||!zt):!ge&&!zt&&(P?Xt<=d:Xt<d);Ht?N=Ct+1:G=Ct}return jn(G,4294967294)}function Oh(l,d){for(var _=-1,P=l.length,N=0,G=[];++_<P;){var rt=l[_],lt=d?d(rt):rt;if(!_||!co(lt,Ot)){var Ot=lt;G[N++]=rt===0?0:rt}}return G}function ef(l){return typeof l=="number"?l:Wn(l)?et:+l}function Gn(l){if(typeof l=="string")return l;if(He(l))return sr(l,Gn)+"";if(Wn(l))return uh?uh.call(l):"";var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function Yi(l,d,_){var P=-1,N=Dn,G=l.length,rt=!0,lt=[],Ot=lt;if(_)rt=!1,N=Hu;else if(G>=200){var Lt=d?null:cf(l);if(Lt)return li(Lt);rt=!1,N=Wo,Ot=new Gi}else Ot=d?[]:lt;t:for(;++P<G;){var Ct=l[P],Xt=d?d(Ct):Ct;if(Ct=_||Ct!==0?Ct:0,rt&&Xt==Xt){for(var se=Ot.length;se--;)if(Ot[se]===Xt)continue t;d&&Ot.push(Xt),lt.push(Ct)}else N(Ot,Xt,_)||(Ot!==lt&&Ot.push(Xt),lt.push(Ct))}return lt}function xs(l,d){return(l=vf(l,d=Hi(d,l)))==null||delete l[Mo(Yn(d))]}function wh(l,d,_,P){return hu(l,d,_(yi(l,d)),P)}function ec(l,d,_,P){for(var N=l.length,G=P?N:-1;(P?G--:++G<N)&&d(l[G],G,l););return _?bo(l,P?0:G,P?G+1:N):bo(l,P?G+1:0,P?N:G)}function xh(l,d){var _=l;return _ instanceof ur&&(_=_.value()),qa(d,function(P,N){return N.func.apply(N.thisArg,on([P],N.args))},_)}function Es(l,d,_){var P=l.length;if(P<2)return P?Yi(l[0]):[];for(var N=-1,G=te(P);++N<P;)for(var rt=l[N],lt=-1;++lt<P;)lt!=N&&(G[N]=di(G[N]||rt,l[lt],d,_));return Yi(dn(G,1),d,_)}function Eh(l,d,_){for(var P=-1,N=l.length,G=d.length,rt={};++P<N;){var lt=P<G?d[P]:v;_(rt,l[P],lt)}return rt}function js(l){return Qr(l)?l:[]}function rf(l){return typeof l=="function"?l:_n}function Hi(l,d){return He(l)?l:yf(l,d)?[l]:Of(xr(l))}var jh=$e;function Vi(l,d,_){var P=l.length;return _=_===v?P:_,!d&&_>=P?l:bo(l,d,_)}var nf=fg||function(l){return Ur.clearTimeout(l)};function of(l,d){if(d)return l.slice();var _=l.length,P=$u?$u(_):new l.constructor(_);return l.copy(P),P}function af(l){var d=new l.constructor(l.byteLength);return new ba(d).set(new ba(l)),d}function kr(l,d){var _=d?af(l.buffer):l.buffer;return new l.constructor(_,l.byteOffset,l.length)}function Sh(l,d){if(l!==d){var _=l!==v,P=l===null,N=l==l,G=Wn(l),rt=d!==v,lt=d===null,Ot=d==d,Lt=Wn(d);if(!lt&&!Lt&&!G&&l>d||G&&rt&&Ot&&!lt&&!Lt||P&&rt&&Ot||!_&&Ot||!N)return 1;if(!P&&!G&&!Lt&&l<d||Lt&&_&&N&&!P&&!G||lt&&_&&N||!rt&&N||!Ot)return-1}return 0}function Cr(l,d,_,P){for(var N=-1,G=l.length,rt=_.length,lt=-1,Ot=d.length,Lt=ln(G-rt,0),Ct=te(Ot+Lt),Xt=!P;++lt<Ot;)Ct[lt]=d[lt];for(;++N<rt;)(Xt||N<G)&&(Ct[_[N]]=l[N]);for(;Lt--;)Ct[lt++]=l[N++];return Ct}function Ss(l,d,_,P){for(var N=-1,G=l.length,rt=-1,lt=_.length,Ot=-1,Lt=d.length,Ct=ln(G-lt,0),Xt=te(Ct+Lt),se=!P;++N<Ct;)Xt[N]=l[N];for(var ge=N;++Ot<Lt;)Xt[ge+Ot]=d[Ot];for(;++rt<lt;)(se||N<G)&&(Xt[ge+_[rt]]=l[N++]);return Xt}function Xn(l,d){var _=-1,P=l.length;for(d||(d=te(P));++_<P;)d[_]=l[_];return d}function Jo(l,d,_,P){var N=!_;_||(_={});for(var G=-1,rt=d.length;++G<rt;){var lt=d[G],Ot=P?P(_[lt],l[lt],lt,_,l):v;Ot===v&&(Ot=l[lt]),N?Qo(_,lt,Ot):cu(_,lt,Ot)}return _}function Ps(l,d){return function(_,P){var N=He(_)?is:lh,G=d?d():{};return N(_,l,De(P,2),G)}}function xa(l){return $e(function(d,_){var P=-1,N=_.length,G=N>1?_[N-1]:v,rt=N>2?_[2]:v;for(G=l.length>3&&typeof G=="function"?(N--,G):v,rt&&gn(_[0],_[1],rt)&&(G=N<3?v:G,N=1),d=w(d);++P<N;){var lt=_[P];lt&&l(d,lt,P,G)}return d})}function Ph(l,d){return function(_,P){if(_==null)return _;if(!Vn(_))return l(_,P);for(var N=_.length,G=d?N:-1,rt=w(_);(d?G--:++G<N)&&P(rt[G],G,rt)!==!1;);return _}}function Ah(l){return function(d,_,P){for(var N=-1,G=w(d),rt=P(d),lt=rt.length;lt--;){var Ot=rt[l?lt:++N];if(_(G[Ot],Ot,G)===!1)break}return d}}function kh(l){return function(d){var _=Ao(d=xr(d))?Un(d):v,P=_?_[0]:d.charAt(0),N=_?Vi(_,1).join(""):d.slice(1);return P[l]()+N}}function Wi(l){return function(d){return qa(Uf(Vs(d).replace(ts,"")),l,"")}}function rc(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var _=uu(l.prototype),P=l.apply(_,d);return wr(P)?P:_}}function Th(l){return function(d,_,P){var N=w(d);if(!Vn(d)){var G=De(_,3);d=fn(d),_=function(lt){return G(N[lt],lt,N)}}var rt=l(d,_,P);return rt>-1?N[G?d[rt]:rt]:v}}function Mh(l){return bi(function(d){var _=d.length,P=_,N=go.prototype.thru;for(l&&d.reverse();P--;){var G=d[P];if(typeof G!="function")throw new Z(E);if(N&&!rt&&Ds(G)=="wrapper")var rt=new go([],!0)}for(P=rt?P:_;++P<_;){var lt=Ds(G=d[P]),Ot=lt=="wrapper"?pf(G):v;rt=Ot&&ic(Ot[0])&&Ot[1]==424&&!Ot[4].length&&Ot[9]==1?rt[Ds(Ot[0])].apply(rt,Ot[3]):G.length==1&&ic(G)?rt[lt]():rt.thru(G)}return function(){var Lt=arguments,Ct=Lt[0];if(rt&&Lt.length==1&&He(Ct))return rt.plant(Ct).value();for(var Xt=0,se=_?d[Xt].apply(this,Lt):Ct;++Xt<_;)se=d[Xt].call(this,se);return se}})}function Ea(l,d,_,P,N,G,rt,lt,Ot,Lt){var Ct=d&C,Xt=1&d,se=2&d,ge=24&d,Se=512&d,zt=se?v:rc(l);return function Ht(){for(var Be=arguments.length,re=te(Be),Ne=Be;Ne--;)re[Ne]=arguments[Ne];if(ge)var Te=Zi(Ht),tr=zl(re,Te);if(P&&(re=Cr(re,P,N,ge)),G&&(re=Ss(re,G,rt,ge)),Be-=tr,ge&&Be<Lt){var me=Fn(re,Te);return Ts(l,d,Ea,Ht.placeholder,_,re,me,lt,Ot,Lt-Be)}var Pe=Xt?_:this,Fr=se?Pe[l]:l;return Be=re.length,lt?re=Eg(re,lt):Se&&Be>1&&re.reverse(),Ct&&Ot<Be&&(re.length=Ot),this&&this!==Ur&&this instanceof Ht&&(Fr=zt||rc(Fr)),Fr.apply(Pe,re)}}function Dh(l,d){return function(_,P){return function(N,G,rt,lt){return de(N,function(Ot,Lt,Ct){G(lt,rt(Ot),Lt,Ct)}),lt}(_,l,d(P),{})}}function nc(l,d){return function(_,P){var N;if(_===v&&P===v)return d;if(_!==v&&(N=_),P!==v){if(N===v)return P;typeof _=="string"||typeof P=="string"?(_=Gn(_),P=Gn(P)):(_=ef(_),P=ef(P)),N=l(_,P)}return N}}function uf(l){return bi(function(d){return d=sr(d,Lr(De())),$e(function(_){var P=this;return l(d,function(N){return jr(N,P,_)})})})}function As(l,d){var _=(d=d===v?" ":Gn(d)).length;if(_<2)return _?Os(d,l):d;var P=Os(d,ss(l/ko(d)));return Ao(d)?Vi(Un(P),0,l).join(""):P.slice(0,l)}function Ki(l){return function(d,_,P){return P&&typeof P!="number"&&gn(d,_,P)&&(_=P=v),d=xi(d),_===v?(_=d,d=0):_=xi(_),function(N,G,rt,lt){for(var Ot=-1,Lt=ln(ss((G-N)/(rt||1)),0),Ct=te(Lt);Lt--;)Ct[lt?Lt:++Ot]=N,N+=rt;return Ct}(d,_,P=P===v?d<_?1:-1:xi(P),l)}}function ks(l){return function(d,_){return typeof d=="string"&&typeof _=="string"||(d=so(d),_=so(_)),l(d,_)}}function Ts(l,d,_,P,N,G,rt,lt,Ot,Lt){var Ct=8&d;d|=Ct?M:I,4&(d&=~(Ct?I:M))||(d&=-4);var Xt=[l,d,N,Ct?G:v,Ct?rt:v,Ct?v:G,Ct?v:rt,lt,Ot,Lt],se=_.apply(v,Xt);return ic(l)&&mf(se,Xt),se.placeholder=P,bf(se,l,d)}function Ms(l){var d=O[l];return function(_,P){if(_=so(_),(P=P==null?0:jn(Ve(P),292))&&nh(_)){var N=(xr(_)+"e").split("e");return+((N=(xr(d(N[0]+"e"+(+N[1]+P)))+"e").split("e"))[0]+"e"+(+N[1]-P))}return d(_)}}var cf=Oa&&1/li(new Oa([,-0]))[1]==W?function(l){return new Oa(l)}:Oc;function sf(l){return function(d){var _=Sn(d);return _==ut?xn(d):_==St?tu(d):function(P,N){return sr(N,function(G){return[G,P[G]]})}(d,l(d))}}function mi(l,d,_,P,N,G,rt,lt){var Ot=2&d;if(!Ot&&typeof l!="function")throw new Z(E);var Lt=P?P.length:0;if(Lt||(d&=-97,P=N=v),rt=rt===v?rt:ln(Ve(rt),0),lt=lt===v?lt:Ve(lt),Lt-=N?N.length:0,d&I){var Ct=P,Xt=N;P=N=v}var se=Ot?v:pf(l),ge=[l,d,_,P,N,Ct,Xt,G,rt,lt];if(se&&function(zt,Ht){var Be=zt[1],re=Ht[1],Ne=Be|re,Te=Ne<131,tr=re==C&&Be==8||re==C&&Be==z&&zt[7].length<=Ht[8]||re==384&&Ht[7].length<=Ht[8]&&Be==8;if(!Te&&!tr)return zt;1&re&&(zt[2]=Ht[2],Ne|=1&Be?0:4);var me=Ht[3];if(me){var Pe=zt[3];zt[3]=Pe?Cr(Pe,me,Ht[4]):me,zt[4]=Pe?Fn(zt[3],k):Ht[4]}(me=Ht[5])&&(Pe=zt[5],zt[5]=Pe?Ss(Pe,me,Ht[6]):me,zt[6]=Pe?Fn(zt[5],k):Ht[6]),(me=Ht[7])&&(zt[7]=me),re&C&&(zt[8]=zt[8]==null?Ht[8]:jn(zt[8],Ht[8])),zt[9]==null&&(zt[9]=Ht[9]),zt[0]=Ht[0],zt[1]=Ne}(ge,se),l=ge[0],d=ge[1],_=ge[2],P=ge[3],N=ge[4],!(lt=ge[9]=ge[9]===v?Ot?0:l.length:ln(ge[9]-Lt,0))&&24&d&&(d&=-25),d&&d!=1)Se=d==8||d==T?function(zt,Ht,Be){var re=rc(zt);return function Ne(){for(var Te=arguments.length,tr=te(Te),me=Te,Pe=Zi(Ne);me--;)tr[me]=arguments[me];var Fr=Te<3&&tr[0]!==Pe&&tr[Te-1]!==Pe?[]:Fn(tr,Pe);return(Te-=Fr.length)<Be?Ts(zt,Ht,Ea,Ne.placeholder,v,tr,Fr,v,v,Be-Te):jr(this&&this!==Ur&&this instanceof Ne?re:zt,this,tr)}}(l,d,lt):d!=M&&d!=33||N.length?Ea.apply(v,ge):function(zt,Ht,Be,re){var Ne=1&Ht,Te=rc(zt);return function tr(){for(var me=-1,Pe=arguments.length,Fr=-1,bt=re.length,No=te(bt+Pe),an=this&&this!==Ur&&this instanceof tr?Te:zt;++Fr<bt;)No[Fr]=re[Fr];for(;Pe--;)No[Fr++]=arguments[++me];return jr(an,Ne?Be:this,No)}}(l,d,_,P);else var Se=function(zt,Ht,Be){var re=1&Ht,Ne=rc(zt);return function Te(){return(this&&this!==Ur&&this instanceof Te?Ne:zt).apply(re?Be:this,arguments)}}(l,d,_);return bf((se?_h:mf)(Se,ge),l,d)}function Nh(l,d,_,P){return l===v||co(l,Ut[_])&&!ee.call(P,_)?d:l}function Ch(l,d,_,P,N,G){return wr(l)&&wr(d)&&(G.set(d,l),_s(l,d,v,Ch,G),G.delete(d)),l}function wg(l){return wi(l)?v:l}function Rh(l,d,_,P,N,G){var rt=1&_,lt=l.length,Ot=d.length;if(lt!=Ot&&!(rt&&Ot>lt))return!1;var Lt=G.get(l),Ct=G.get(d);if(Lt&&Ct)return Lt==d&&Ct==l;var Xt=-1,se=!0,ge=2&_?new Gi:v;for(G.set(l,d),G.set(d,l);++Xt<lt;){var Se=l[Xt],zt=d[Xt];if(P)var Ht=rt?P(zt,Se,Xt,d,l,G):P(Se,zt,Xt,l,d,G);if(Ht!==v){if(Ht)continue;se=!1;break}if(ge){if(!Vu(d,function(Be,re){if(!Wo(ge,re)&&(Se===Be||N(Se,Be,_,P,G)))return ge.push(re)})){se=!1;break}}else if(Se!==zt&&!N(Se,zt,_,P,G)){se=!1;break}}return G.delete(l),G.delete(d),se}function bi(l){return Rs(gf(l,v,jf),l+"")}function lf(l){return Wl(l,fn,oc)}function ff(l){return Wl(l,bn,df)}var pf=hs?function(l){return hs.get(l)}:Oc;function Ds(l){for(var d=l.name+"",_=au[d],P=ee.call(au,d)?_.length:0;P--;){var N=_[P],G=N.func;if(G==null||G==l)return N.name}return d}function Zi(l){return(ee.call(B,"placeholder")?B:l).placeholder}function De(){var l=B.iteratee||mu;return l=l===mu?Zl:l,arguments.length?l(arguments[0],arguments[1]):l}function Ns(l,d){var _,P,N=l.__data__;return((P=typeof(_=d))=="string"||P=="number"||P=="symbol"||P=="boolean"?_!=="__proto__":_===null)?N[typeof d=="string"?"string":"hash"]:N.map}function hf(l){for(var d=fn(l),_=d.length;_--;){var P=d[_],N=l[P];d[_]=[P,N,du(N)]}return d}function ja(l,d){var _=function(P,N){return P==null?v:P[N]}(l,d);return fu(_)?_:v}var oc=Bl?function(l){return l==null?[]:(l=w(l),wn(Bl(l),function(d){return En.call(l,d)}))}:wc,df=Bl?function(l){for(var d=[];l;)on(d,oc(l)),l=fi(l);return d}:wc,Sn=zr;function Ih(l,d,_){for(var P=-1,N=(d=Hi(d,l)).length,G=!1;++P<N;){var rt=Mo(d[P]);if(!(G=l!=null&&_(l,rt)))break;l=l[rt]}return G||++P!=N?G:!!(N=l==null?0:l.length)&&Ji(N)&&Rr(rt,N)&&(He(l)||Qi(l))}function Lh(l){return typeof l.constructor!="function"||ac(l)?{}:uu(fi(l))}function xg(l){return He(l)||Qi(l)||!!(Ui&&l&&l[Ui])}function Rr(l,d){var _=typeof l;return!!(d=d!=null?d:K)&&(_=="number"||_!="symbol"&&ae.test(l))&&l>-1&&l%1==0&&l<d}function gn(l,d,_){if(!wr(_))return!1;var P=typeof d;return!!(P=="number"?Vn(_)&&Rr(d,_.length):P=="string"&&d in _)&&co(_[d],l)}function yf(l,d){if(He(l))return!1;var _=typeof l;return!(_!="number"&&_!="symbol"&&_!="boolean"&&l!=null&&!Wn(l))||Ue.test(l)||!pr.test(l)||d!=null&&l in w(d)}function ic(l){var d=Ds(l),_=B[d];if(typeof _!="function"||!(d in ur.prototype))return!1;if(l===_)return!0;var P=pf(_);return!!P&&l===P[0]}(ou&&Sn(new ou(new ArrayBuffer(1)))!=oe||qo&&Sn(new qo)!=ut||Ul&&Sn(Ul.resolve())!=At||Oa&&Sn(new Oa)!=St||iu&&Sn(new iu)!=kt)&&(Sn=function(l){var d=zr(l),_=d==mt?l.constructor:v,P=_?$i(_):"";if(P)switch(P){case yg:return oe;case ih:return ut;case gg:return At;case vg:return St;case ah:return kt}return d});var qi=ue?Oi:qs;function ac(l){var d=l&&l.constructor;return l===(typeof d=="function"&&d.prototype||Ut)}function du(l){return l==l&&!wr(l)}function Cs(l,d){return function(_){return _!=null&&_[l]===d&&(d!==v||l in w(_))}}function gf(l,d,_){return d=ln(d===v?l.length-1:d,0),function(){for(var P=arguments,N=-1,G=ln(P.length-d,0),rt=te(G);++N<G;)rt[N]=P[d+N];N=-1;for(var lt=te(d+1);++N<d;)lt[N]=P[N];return lt[d]=_(rt),jr(l,this,lt)}}function vf(l,d){return d.length<2?l:yi(l,bo(d,0,-1))}function Eg(l,d){for(var _=l.length,P=jn(d.length,_),N=Xn(l);P--;){var G=d[P];l[P]=Rr(G,_)?N[G]:v}return l}function Mt(l,d){if((d!=="constructor"||typeof l[d]!="function")&&d!="__proto__")return l[d]}var mf=_f(_h),yu=rh||function(l,d){return Ur.setTimeout(l,d)},Rs=_f(_g);function bf(l,d,_){var P=d+"";return Rs(l,function(N,G){var rt=G.length;if(!rt)return N;var lt=rt-1;return G[lt]=(rt>1?"& ":"")+G[lt],G=G.join(rt>2?", ":" "),N.replace(Q,`{
  33. /* [wrapped with `+G+`] */
  34. `)}(P,function(N,G){return Mn(ot,function(rt){var lt="_."+rt[0];G&rt[1]&&!Dn(N,lt)&&N.push(lt)}),N.sort()}(function(N){var G=N.match(ht);return G?G[1].split(it):[]}(P),_)))}function _f(l){var d=0,_=0;return function(){var P=ls(),N=16-(P-_);if(_=P,N>0){if(++d>=800)return arguments[0]}else d=0;return l.apply(v,arguments)}}function uc(l,d){var _=-1,P=l.length,N=P-1;for(d=d===v?P:d;++_<d;){var G=$l(_,N),rt=l[G];l[G]=l[_],l[_]=rt}return l.length=d,l}var Of=function(l){var d=pc(l,function(P){return _.size===500&&_.clear(),P}),_=d.cache;return d}(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(nr,function(_,P,N,G){d.push(N?G.replace(Zt,"$1"):P||_)}),d});function Mo(l){if(typeof l=="string"||Wn(l))return l;var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function $i(l){if(l!=null){try{return Ze.call(l)}catch(d){}try{return l+""}catch(d){}}return""}function wf(l){if(l instanceof ur)return l.clone();var d=new go(l.__wrapped__,l.__chain__);return d.__actions__=Xn(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}var zh=$e(function(l,d){return Qr(l)?di(l,dn(d,1,Qr,!0)):[]}),Bh=$e(function(l,d){var _=Yn(d);return Qr(_)&&(_=v),Qr(l)?di(l,dn(d,1,Qr,!0),De(_,2)):[]}),Fh=$e(function(l,d){var _=Yn(d);return Qr(_)&&(_=v),Qr(l)?di(l,dn(d,1,Qr,!0),v,_):[]});function xf(l,d,_){var P=l==null?0:l.length;if(!P)return-1;var N=_==null?0:Ve(_);return N<0&&(N=ln(P+N,0)),Ho(l,De(d,3),N)}function Ef(l,d,_){var P=l==null?0:l.length;if(!P)return-1;var N=P-1;return _!==v&&(N=Ve(_),N=_<0?ln(P+N,0):jn(N,P-1)),Ho(l,De(d,3),N,!0)}function jf(l){return l!=null&&l.length?dn(l,1):[]}function Sf(l){return l&&l.length?l[0]:v}var Uh=$e(function(l){var d=sr(l,js);return d.length&&d[0]===l[0]?ms(d):[]}),Gh=$e(function(l){var d=Yn(l),_=sr(l,js);return d===Yn(_)?d=v:_.pop(),_.length&&_[0]===l[0]?ms(_,De(d,2)):[]}),Xh=$e(function(l){var d=Yn(l),_=sr(l,js);return(d=typeof d=="function"?d:v)&&_.pop(),_.length&&_[0]===l[0]?ms(_,v,d):[]});function Yn(l){var d=l==null?0:l.length;return d?l[d-1]:v}var Is=$e(Yh);function Yh(l,d){return l&&l.length&&d&&d.length?ql(l,d):l}var Do=bi(function(l,d){var _=l==null?0:l.length,P=gs(l,d);return pu(l,sr(d,function(N){return Rr(N,_)?+N:N}).sort(Sh)),P});function ti(l){return l==null?l:dg.call(l)}var jg=$e(function(l){return Yi(dn(l,1,Qr,!0))}),uo=$e(function(l){var d=Yn(l);return Qr(d)&&(d=v),Yi(dn(l,1,Qr,!0),De(d,2))}),Hh=$e(function(l){var d=Yn(l);return d=typeof d=="function"?d:v,Yi(dn(l,1,Qr,!0),v,d)});function cc(l){if(!l||!l.length)return[];var d=0;return l=wn(l,function(_){if(Qr(_))return d=ln(_.length,d),!0}),ma(d,function(_){return sr(l,Cn(_))})}function Pf(l,d){if(!l||!l.length)return[];var _=cc(l);return d==null?_:sr(_,function(P){return jr(d,v,P)})}var Vh=$e(function(l,d){return Qr(l)?di(l,d):[]}),Wh=$e(function(l){return Es(wn(l,Qr))}),Kh=$e(function(l){var d=Yn(l);return Qr(d)&&(d=v),Es(wn(l,Qr),De(d,2))}),Zh=$e(function(l){var d=Yn(l);return d=typeof d=="function"?d:v,Es(wn(l,Qr),v,d)}),Af=$e(cc),sc=$e(function(l){var d=l.length,_=d>1?l[d-1]:v;return _=typeof _=="function"?(l.pop(),_):v,Pf(l,_)});function vn(l){var d=B(l);return d.__chain__=!0,d}function Ls(l,d){return d(l)}var Sg=bi(function(l){var d=l.length,_=d?l[0]:0,P=this.__wrapped__,N=function(G){return gs(G,l)};return!(d>1||this.__actions__.length)&&P instanceof ur&&Rr(_)?((P=P.slice(_,+_+(d?1:0))).__actions__.push({func:Ls,args:[N],thisArg:v}),new go(P,this.__chain__).thru(function(G){return d&&!G.length&&G.push(v),G})):this.thru(N)}),kf=Ps(function(l,d,_){ee.call(l,_)?++l[_]:Qo(l,_,1)}),qh=Th(xf),Hn=Th(Ef);function $r(l,d){return(He(l)?Mn:Nr)(l,De(d,3))}function $h(l,d){return(He(l)?as:fh)(l,De(d,3))}var _o=Ps(function(l,d,_){ee.call(l,_)?l[_].push(d):Qo(l,_,[d])}),ke=$e(function(l,d,_){var P=-1,N=typeof d=="function",G=Vn(l)?te(l.length):[];return Nr(l,function(rt){G[++P]=N?jr(d,rt,_):su(rt,d,_)}),G}),Tf=Ps(function(l,d,_){Qo(l,_,d)});function gu(l,d){return(He(l)?sr:mo)(l,De(d,3))}var Mf=Ps(function(l,d,_){l[_?0:1].push(d)},function(){return[[],[]]}),Qh=$e(function(l,d){if(l==null)return[];var _=d.length;return _>1&&gn(l,d[0],d[1])?d=[]:_>2&&gn(d[0],d[1],d[2])&&(d=[d[0]]),mh(l,dn(d,1),[])}),lc=pg||function(){return Ur.Date.now()};function Jh(l,d,_){return d=_?v:d,d=l&&d==null?l.length:d,mi(l,C,v,v,v,v,d)}function td(l,d){var _;if(typeof d!="function")throw new Z(E);return l=Ve(l),function(){return--l>0&&(_=d.apply(this,arguments)),l<=1&&(d=v),_}}var fc=$e(function(l,d,_){var P=1;if(_.length){var N=Fn(_,Zi(fc));P|=M}return mi(l,P,d,_,N)}),ed=$e(function(l,d,_){var P=3;if(_.length){var N=Fn(_,Zi(ed));P|=M}return mi(d,P,l,_,N)});function zs(l,d,_){var P,N,G,rt,lt,Ot,Lt=0,Ct=!1,Xt=!1,se=!0;if(typeof l!="function")throw new Z(E);function ge(Ne){var Te=P,tr=N;return P=N=v,Lt=Ne,rt=l.apply(tr,Te)}function Se(Ne){return Lt=Ne,lt=yu(Ht,d),Ct?ge(Ne):rt}function zt(Ne){var Te=Ne-Ot;return Ot===v||Te>=d||Te<0||Xt&&Ne-Lt>=G}function Ht(){var Ne=lc();if(zt(Ne))return Be(Ne);lt=yu(Ht,function(Te){var tr=d-(Te-Ot);return Xt?jn(tr,G-(Te-Lt)):tr}(Ne))}function Be(Ne){return lt=v,se&&P?ge(Ne):(P=N=v,rt)}function re(){var Ne=lc(),Te=zt(Ne);if(P=arguments,N=this,Ot=Ne,Te){if(lt===v)return Se(Ot);if(Xt)return nf(lt),lt=yu(Ht,d),ge(Ot)}return lt===v&&(lt=yu(Ht,d)),rt}return d=so(d)||0,wr(_)&&(Ct=!!_.leading,G=(Xt="maxWait"in _)?ln(so(_.maxWait)||0,d):G,se="trailing"in _?!!_.trailing:se),re.cancel=function(){lt!==v&&nf(lt),Lt=0,P=Ot=N=lt=v},re.flush=function(){return lt===v?rt:Be(lc())},re}var Pg=$e(function(l,d){return Vl(l,1,d)}),Ag=$e(function(l,d,_){return Vl(l,so(d)||0,_)});function pc(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Z(E);var _=function(){var P=arguments,N=d?d.apply(this,P):P[0],G=_.cache;if(G.has(N))return G.get(N);var rt=l.apply(this,P);return _.cache=G.set(N,rt)||G,rt};return _.cache=new(pc.Cache||$o),_}function _i(l){if(typeof l!="function")throw new Z(E);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}pc.Cache=$o;var rd=jh(function(l,d){var _=(d=d.length==1&&He(d[0])?sr(d[0],Lr(De())):sr(dn(d,1),Lr(De()))).length;return $e(function(P){for(var N=-1,G=jn(P.length,_);++N<G;)P[N]=d[N].call(this,P[N]);return jr(l,this,P)})}),Re=$e(function(l,d){var _=Fn(d,Zi(Re));return mi(l,M,v,d,_)}),Df=$e(function(l,d){var _=Fn(d,Zi(Df));return mi(l,I,v,d,_)}),Bs=bi(function(l,d){return mi(l,z,v,v,v,d)});function co(l,d){return l===d||l!=l&&d!=d}var kg=ks(Gr),nd=ks(function(l,d){return l>=d}),Qi=Kl(function(){return arguments}())?Kl:function(l){return Br(l)&&ee.call(l,"callee")&&!En.call(l,"callee")},He=te.isArray,Tg=Xu?Lr(Xu):function(l){return Br(l)&&zr(l)==Gt};function Vn(l){return l!=null&&Ji(l.length)&&!Oi(l)}function Qr(l){return Br(l)&&Vn(l)}var Oo=hg||qs,Mg=os?Lr(os):function(l){return Br(l)&&zr(l)==U};function hc(l){if(!Br(l))return!1;var d=zr(l);return d==H||d=="[object DOMException]"||typeof l.message=="string"&&typeof l.name=="string"&&!wi(l)}function Oi(l){if(!wr(l))return!1;var d=zr(l);return d==V||d==q||d=="[object AsyncFunction]"||d=="[object Proxy]"}function od(l){return typeof l=="number"&&l==Ve(l)}function Ji(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=K}function wr(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Br(l){return l!=null&&typeof l=="object"}var mn=Yu?Lr(Yu):function(l){return Br(l)&&Sn(l)==ut};function dc(l){return typeof l=="number"||Br(l)&&zr(l)==Et}function wi(l){if(!Br(l)||zr(l)!=mt)return!1;var d=fi(l);if(d===null)return!0;var _=ee.call(d,"constructor")&&d.constructor;return typeof _=="function"&&_ instanceof _&&Ze.call(_)==io}var Nf=Za?Lr(Za):function(l){return Br(l)&&zr(l)==Ft},Cf=Bi?Lr(Bi):function(l){return Br(l)&&Sn(l)==St};function yc(l){return typeof l=="string"||!He(l)&&Br(l)&&zr(l)==vt}function Wn(l){return typeof l=="symbol"||Br(l)&&zr(l)==Pt}var Sa=jo?Lr(jo):function(l){return Br(l)&&Ji(l.length)&&!!dr[zr(l)]},id=ks(vi),Fs=ks(function(l,d){return l<=d});function ad(l){if(!l)return[];if(Vn(l))return yc(l)?Un(l):Xn(l);if(pi&&l[pi])return function(_){for(var P,N=[];!(P=_.next()).done;)N.push(P.value);return N}(l[pi]());var d=Sn(l);return(d==ut?xn:d==St?li:ka)(l)}function xi(l){return l?(l=so(l))===W||l===-1/0?17976931348623157e292*(l<0?-1:1):l==l?l:0:l===0?l:0}function Ve(l){var d=xi(l),_=d%1;return d==d?_?d-_:d:0}function gc(l){return l?Xi(Ve(l),0,at):0}function so(l){if(typeof l=="number")return l;if(Wn(l))return et;if(wr(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=wr(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=Wu(l);var _=pn.test(l);return _||Zr.test(l)?Yo(l.slice(2),_?2:8):nn.test(l)?et:+l}function Us(l){return Jo(l,bn(l))}function xr(l){return l==null?"":Gn(l)}var ud=xa(function(l,d){if(ac(d)||Vn(d))Jo(d,fn(d),l);else for(var _ in d)ee.call(d,_)&&cu(l,_,d[_])}),vu=xa(function(l,d){Jo(d,bn(d),l)}),Gs=xa(function(l,d,_,P){Jo(d,bn(d),l,P)}),vc=xa(function(l,d,_,P){Jo(d,fn(d),l,P)}),cd=bi(gs),mc=$e(function(l,d){l=w(l);var _=-1,P=d.length,N=P>2?d[2]:v;for(N&&gn(d[0],d[1],N)&&(P=1);++_<P;)for(var G=d[_],rt=bn(G),lt=-1,Ot=rt.length;++lt<Ot;){var Lt=rt[lt],Ct=l[Lt];(Ct===v||co(Ct,Ut[Lt])&&!ee.call(l,Lt))&&(l[Lt]=G[Lt])}return l}),Rf=$e(function(l){return l.push(v,Ch),jr(Xs,v,l)});function ta(l,d,_){var P=l==null?v:yi(l,d);return P===v?_:P}function Pa(l,d){return l!=null&&Ih(l,d,dh)}var bc=Dh(function(l,d,_){d!=null&&typeof d.toString!="function"&&(d=fr.call(d)),l[d]=_},Xf(_n)),sd=Dh(function(l,d,_){d!=null&&typeof d.toString!="function"&&(d=fr.call(d)),ee.call(l,d)?l[d].push(_):l[d]=[_]},De),ld=$e(su);function fn(l){return Vn(l)?Gl(l):gi(l)}function bn(l){return Vn(l)?Gl(l,!0):mg(l)}var fd=xa(function(l,d,_){_s(l,d,_)}),Xs=xa(function(l,d,_,P){_s(l,d,_,P)}),pd=bi(function(l,d){var _={};if(l==null)return _;var P=!1;d=sr(d,function(G){return G=Hi(G,l),P||(P=G.length>1),G}),Jo(l,ff(l),_),P&&(_=ao(_,7,wg));for(var N=d.length;N--;)xs(_,d[N]);return _}),hd=bi(function(l,d){return l==null?{}:function(_,P){return bh(_,P,function(N,G){return Pa(_,G)})}(l,d)});function Aa(l,d){if(l==null)return{};var _=sr(ff(l),function(P){return[P]});return d=De(d),bh(l,_,function(P,N){return d(P,N[0])})}var Ys=sf(fn),If=sf(bn);function ka(l){return l==null?[]:Ja(l,fn(l))}var Lf=Wi(function(l,d,_){return d=d.toLowerCase(),l+(_?Hs(d):d)});function Hs(l){return Ws(xr(l).toLowerCase())}function Vs(l){return(l=xr(l))&&l.replace(we,Zu).replace(Xo,"")}var dd=Wi(function(l,d,_){return l+(_?"-":"")+d.toLowerCase()}),zf=Wi(function(l,d,_){return l+(_?" ":"")+d.toLowerCase()}),Bf=kh("toLowerCase"),Ff=Wi(function(l,d,_){return l+(_?"_":"")+d.toLowerCase()}),_c=Wi(function(l,d,_){return l+(_?" ":"")+Ws(d)}),ea=Wi(function(l,d,_){return l+(_?" ":"")+d.toUpperCase()}),Ws=kh("toUpperCase");function Uf(l,d,_){return l=xr(l),(d=_?v:d)===v?function(P){return Bu.test(P)}(l)?function(P){return P.match(Wa)||[]}(l):function(P){return P.match(_t)||[]}(l):l.match(d)||[]}var Ks=$e(function(l,d){try{return jr(l,v,d)}catch(_){return hc(_)?_:new Qe(_)}}),Gf=bi(function(l,d){return Mn(d,function(_){_=Mo(_),Qo(l,_,fc(l[_],l))}),l});function Xf(l){return function(){return l}}var yd=Mh(),Yf=Mh(!0);function _n(l){return l}function mu(l){return Zl(typeof l=="function"?l:ao(l,1))}var Hf=$e(function(l,d){return function(_){return su(_,l,d)}}),Vf=$e(function(l,d){return function(_){return su(l,_,d)}});function Zs(l,d,_){var P=fn(d),N=vs(d,P);_!=null||wr(d)&&(N.length||!P.length)||(_=d,d=l,l=this,N=vs(d,fn(d)));var G=!(wr(_)&&"chain"in _&&!_.chain),rt=Oi(l);return Mn(N,function(lt){var Ot=d[lt];l[lt]=Ot,rt&&(l.prototype[lt]=function(){var Lt=this.__chain__;if(G||Lt){var Ct=l(this.__wrapped__),Xt=Ct.__actions__=Xn(this.__actions__);return Xt.push({func:Ot,args:arguments,thisArg:l}),Ct.__chain__=Lt,Ct}return Ot.apply(l,on([this.value()],arguments))})}),l}function Oc(){}var gd=uf(sr),Wf=uf(us),Dg=uf(Vu);function Jr(l){return yf(l)?Cn(Mo(l)):function(d){return function(_){return yi(_,d)}}(l)}var ei=Ki(),Kf=Ki(!0);function wc(){return[]}function qs(){return!1}var Zf=nc(function(l,d){return l+d},0),qf=Ms("ceil"),$f=nc(function(l,d){return l/d},1),Ng=Ms("floor"),Ei,Qf=nc(function(l,d){return l*d},1),Jf=Ms("round"),vd=nc(function(l,d){return l-d},0);return B.after=function(l,d){if(typeof d!="function")throw new Z(E);return l=Ve(l),function(){if(--l<1)return d.apply(this,arguments)}},B.ary=Jh,B.assign=ud,B.assignIn=vu,B.assignInWith=Gs,B.assignWith=vc,B.at=cd,B.before=td,B.bind=fc,B.bindAll=Gf,B.bindKey=ed,B.castArray=function(){if(!arguments.length)return[];var l=arguments[0];return He(l)?l:[l]},B.chain=vn,B.chunk=function(l,d,_){d=(_?gn(l,d,_):d===v)?1:ln(Ve(d),0);var P=l==null?0:l.length;if(!P||d<1)return[];for(var N=0,G=0,rt=te(ss(P/d));N<P;)rt[G++]=bo(l,N,N+=d);return rt},B.compact=function(l){for(var d=-1,_=l==null?0:l.length,P=0,N=[];++d<_;){var G=l[d];G&&(N[P++]=G)}return N},B.concat=function(){var l=arguments.length;if(!l)return[];for(var d=te(l-1),_=arguments[0],P=l;P--;)d[P-1]=arguments[P];return on(He(_)?Xn(_):[_],dn(d,1))},B.cond=function(l){var d=l==null?0:l.length,_=De();return l=d?sr(l,function(P){if(typeof P[1]!="function")throw new Z(E);return[_(P[0]),P[1]]}):[],$e(function(P){for(var N=-1;++N<d;){var G=l[N];if(jr(G[0],this,P))return jr(G[1],this,P)}})},B.conforms=function(l){return function(d){var _=fn(d);return function(P){return Hl(P,d,_)}}(ao(l,1))},B.constant=Xf,B.countBy=kf,B.create=function(l,d){var _=uu(l);return d==null?_:Yl(_,d)},B.curry=function l(d,_,P){var N=mi(d,8,v,v,v,v,v,_=P?v:_);return N.placeholder=l.placeholder,N},B.curryRight=function l(d,_,P){var N=mi(d,T,v,v,v,v,v,_=P?v:_);return N.placeholder=l.placeholder,N},B.debounce=zs,B.defaults=mc,B.defaultsDeep=Rf,B.defer=Pg,B.delay=Ag,B.difference=zh,B.differenceBy=Bh,B.differenceWith=Fh,B.drop=function(l,d,_){var P=l==null?0:l.length;return P?bo(l,(d=_||d===v?1:Ve(d))<0?0:d,P):[]},B.dropRight=function(l,d,_){var P=l==null?0:l.length;return P?bo(l,0,(d=P-(d=_||d===v?1:Ve(d)))<0?0:d):[]},B.dropRightWhile=function(l,d){return l&&l.length?ec(l,De(d,3),!0,!0):[]},B.dropWhile=function(l,d){return l&&l.length?ec(l,De(d,3),!0):[]},B.fill=function(l,d,_,P){var N=l==null?0:l.length;return N?(_&&typeof _!="number"&&gn(l,d,_)&&(_=0,P=N),function(G,rt,lt,Ot){var Lt=G.length;for((lt=Ve(lt))<0&&(lt=-lt>Lt?0:Lt+lt),(Ot=Ot===v||Ot>Lt?Lt:Ve(Ot))<0&&(Ot+=Lt),Ot=lt>Ot?0:gc(Ot);lt<Ot;)G[lt++]=rt;return G}(l,d,_,P)):[]},B.filter=function(l,d){return(He(l)?wn:yr)(l,De(d,3))},B.flatMap=function(l,d){return dn(gu(l,d),1)},B.flatMapDeep=function(l,d){return dn(gu(l,d),W)},B.flatMapDepth=function(l,d,_){return _=_===v?1:Ve(_),dn(gu(l,d),_)},B.flatten=jf,B.flattenDeep=function(l){return l!=null&&l.length?dn(l,W):[]},B.flattenDepth=function(l,d){return l!=null&&l.length?dn(l,d=d===v?1:Ve(d)):[]},B.flip=function(l){return mi(l,512)},B.flow=yd,B.flowRight=Yf,B.fromPairs=function(l){for(var d=-1,_=l==null?0:l.length,P={};++d<_;){var N=l[d];P[N[0]]=N[1]}return P},B.functions=function(l){return l==null?[]:vs(l,fn(l))},B.functionsIn=function(l){return l==null?[]:vs(l,bn(l))},B.groupBy=_o,B.initial=function(l){return l!=null&&l.length?bo(l,0,-1):[]},B.intersection=Uh,B.intersectionBy=Gh,B.intersectionWith=Xh,B.invert=bc,B.invertBy=sd,B.invokeMap=ke,B.iteratee=mu,B.keyBy=Tf,B.keys=fn,B.keysIn=bn,B.map=gu,B.mapKeys=function(l,d){var _={};return d=De(d,3),de(l,function(P,N,G){Qo(_,d(P,N,G),P)}),_},B.mapValues=function(l,d){var _={};return d=De(d,3),de(l,function(P,N,G){Qo(_,N,d(P,N,G))}),_},B.matches=function(l){return yh(ao(l,1))},B.matchesProperty=function(l,d){return gh(l,ao(d,1))},B.memoize=pc,B.merge=fd,B.mergeWith=Xs,B.method=Hf,B.methodOf=Vf,B.mixin=Zs,B.negate=_i,B.nthArg=function(l){return l=Ve(l),$e(function(d){return vh(d,l)})},B.omit=pd,B.omitBy=function(l,d){return Aa(l,_i(De(d)))},B.once=function(l){return td(2,l)},B.orderBy=function(l,d,_,P){return l==null?[]:(He(d)||(d=d==null?[]:[d]),He(_=P?v:_)||(_=_==null?[]:[_]),mh(l,d,_))},B.over=gd,B.overArgs=rd,B.overEvery=Wf,B.overSome=Dg,B.partial=Re,B.partialRight=Df,B.partition=Mf,B.pick=hd,B.pickBy=Aa,B.property=Jr,B.propertyOf=function(l){return function(d){return l==null?v:yi(l,d)}},B.pull=Is,B.pullAll=Yh,B.pullAllBy=function(l,d,_){return l&&l.length&&d&&d.length?ql(l,d,De(_,2)):l},B.pullAllWith=function(l,d,_){return l&&l.length&&d&&d.length?ql(l,d,v,_):l},B.pullAt=Do,B.range=ei,B.rangeRight=Kf,B.rearg=Bs,B.reject=function(l,d){return(He(l)?wn:yr)(l,_i(De(d,3)))},B.remove=function(l,d){var _=[];if(!l||!l.length)return _;var P=-1,N=[],G=l.length;for(d=De(d,3);++P<G;){var rt=l[P];d(rt,P,l)&&(_.push(rt),N.push(P))}return pu(l,N),_},B.rest=function(l,d){if(typeof l!="function")throw new Z(E);return $e(l,d=d===v?d:Ve(d))},B.reverse=ti,B.sampleSize=function(l,d,_){return d=(_?gn(l,d,_):d===v)?1:Ve(d),(He(l)?ch:Ql)(l,d)},B.set=function(l,d,_){return l==null?l:hu(l,d,_)},B.setWith=function(l,d,_,P){return P=typeof P=="function"?P:v,l==null?l:hu(l,d,_,P)},B.shuffle=function(l){return(He(l)?sh:Og)(l)},B.slice=function(l,d,_){var P=l==null?0:l.length;return P?(_&&typeof _!="number"&&gn(l,d,_)?(d=0,_=P):(d=d==null?0:Ve(d),_=_===v?P:Ve(_)),bo(l,d,_)):[]},B.sortBy=Qh,B.sortedUniq=function(l){return l&&l.length?Oh(l):[]},B.sortedUniqBy=function(l,d){return l&&l.length?Oh(l,De(d,2)):[]},B.split=function(l,d,_){return _&&typeof _!="number"&&gn(l,d,_)&&(d=_=v),(_=_===v?at:_>>>0)?(l=xr(l))&&(typeof d=="string"||d!=null&&!Nf(d))&&!(d=Gn(d))&&Ao(l)?Vi(Un(l),0,_):l.split(d,_):[]},B.spread=function(l,d){if(typeof l!="function")throw new Z(E);return d=d==null?0:ln(Ve(d),0),$e(function(_){var P=_[d],N=Vi(_,0,d);return P&&on(N,P),jr(l,this,N)})},B.tail=function(l){var d=l==null?0:l.length;return d?bo(l,1,d):[]},B.take=function(l,d,_){return l&&l.length?bo(l,0,(d=_||d===v?1:Ve(d))<0?0:d):[]},B.takeRight=function(l,d,_){var P=l==null?0:l.length;return P?bo(l,(d=P-(d=_||d===v?1:Ve(d)))<0?0:d,P):[]},B.takeRightWhile=function(l,d){return l&&l.length?ec(l,De(d,3),!1,!0):[]},B.takeWhile=function(l,d){return l&&l.length?ec(l,De(d,3)):[]},B.tap=function(l,d){return d(l),l},B.throttle=function(l,d,_){var P=!0,N=!0;if(typeof l!="function")throw new Z(E);return wr(_)&&(P="leading"in _?!!_.leading:P,N="trailing"in _?!!_.trailing:N),zs(l,d,{leading:P,maxWait:d,trailing:N})},B.thru=Ls,B.toArray=ad,B.toPairs=Ys,B.toPairsIn=If,B.toPath=function(l){return He(l)?sr(l,Mo):Wn(l)?[l]:Xn(Of(xr(l)))},B.toPlainObject=Us,B.transform=function(l,d,_){var P=He(l),N=P||Oo(l)||Sa(l);if(d=De(d,4),_==null){var G=l&&l.constructor;_=N?P?new G:[]:wr(l)&&Oi(G)?uu(fi(l)):{}}return(N?Mn:de)(l,function(rt,lt,Ot){return d(_,rt,lt,Ot)}),_},B.unary=function(l){return Jh(l,1)},B.union=jg,B.unionBy=uo,B.unionWith=Hh,B.uniq=function(l){return l&&l.length?Yi(l):[]},B.uniqBy=function(l,d){return l&&l.length?Yi(l,De(d,2)):[]},B.uniqWith=function(l,d){return d=typeof d=="function"?d:v,l&&l.length?Yi(l,v,d):[]},B.unset=function(l,d){return l==null||xs(l,d)},B.unzip=cc,B.unzipWith=Pf,B.update=function(l,d,_){return l==null?l:wh(l,d,rf(_))},B.updateWith=function(l,d,_,P){return P=typeof P=="function"?P:v,l==null?l:wh(l,d,rf(_),P)},B.values=ka,B.valuesIn=function(l){return l==null?[]:Ja(l,bn(l))},B.without=Vh,B.words=Uf,B.wrap=function(l,d){return Re(rf(d),l)},B.xor=Wh,B.xorBy=Kh,B.xorWith=Zh,B.zip=Af,B.zipObject=function(l,d){return Eh(l||[],d||[],cu)},B.zipObjectDeep=function(l,d){return Eh(l||[],d||[],hu)},B.zipWith=sc,B.entries=Ys,B.entriesIn=If,B.extend=vu,B.extendWith=Gs,Zs(B,B),B.add=Zf,B.attempt=Ks,B.camelCase=Lf,B.capitalize=Hs,B.ceil=qf,B.clamp=function(l,d,_){return _===v&&(_=d,d=v),_!==v&&(_=(_=so(_))==_?_:0),d!==v&&(d=(d=so(d))==d?d:0),Xi(so(l),d,_)},B.clone=function(l){return ao(l,4)},B.cloneDeep=function(l){return ao(l,5)},B.cloneDeepWith=function(l,d){return ao(l,5,d=typeof d=="function"?d:v)},B.cloneWith=function(l,d){return ao(l,4,d=typeof d=="function"?d:v)},B.conformsTo=function(l,d){return d==null||Hl(l,d,fn(d))},B.deburr=Vs,B.defaultTo=function(l,d){return l==null||l!=l?d:l},B.divide=$f,B.endsWith=function(l,d,_){l=xr(l),d=Gn(d);var P=l.length,N=_=_===v?P:Xi(Ve(_),0,P);return(_-=d.length)>=0&&l.slice(_,N)==d},B.eq=co,B.escape=function(l){return(l=xr(l))&&le.test(l)?l.replace(ve,Vr):l},B.escapeRegExp=function(l){return(l=xr(l))&&Mr.test(l)?l.replace(br,"\\$&"):l},B.every=function(l,d,_){var P=He(l)?us:ph;return _&&gn(l,d,_)&&(d=v),P(l,De(d,3))},B.find=qh,B.findIndex=xf,B.findKey=function(l,d){return So(l,De(d,3),de)},B.findLast=Hn,B.findLastIndex=Ef,B.findLastKey=function(l,d){return So(l,De(d,3),Ar)},B.floor=Ng,B.forEach=$r,B.forEachRight=$h,B.forIn=function(l,d){return l==null?l:qe(l,De(d,3),bn)},B.forInRight=function(l,d){return l==null?l:qr(l,De(d,3),bn)},B.forOwn=function(l,d){return l&&de(l,De(d,3))},B.forOwnRight=function(l,d){return l&&Ar(l,De(d,3))},B.get=ta,B.gt=kg,B.gte=nd,B.has=function(l,d){return l!=null&&Ih(l,d,hh)},B.hasIn=Pa,B.head=Sf,B.identity=_n,B.includes=function(l,d,_,P){l=Vn(l)?l:ka(l),_=_&&!P?Ve(_):0;var N=l.length;return _<0&&(_=ln(N+_,0)),yc(l)?_<=N&&l.indexOf(d,_)>-1:!!N&&Fi(l,d,_)>-1},B.indexOf=function(l,d,_){var P=l==null?0:l.length;if(!P)return-1;var N=_==null?0:Ve(_);return N<0&&(N=ln(P+N,0)),Fi(l,d,N)},B.inRange=function(l,d,_){return d=xi(d),_===v?(_=d,d=0):_=xi(_),function(P,N,G){return P>=jn(N,G)&&P<ln(N,G)}(l=so(l),d,_)},B.invoke=ld,B.isArguments=Qi,B.isArray=He,B.isArrayBuffer=Tg,B.isArrayLike=Vn,B.isArrayLikeObject=Qr,B.isBoolean=function(l){return l===!0||l===!1||Br(l)&&zr(l)==X},B.isBuffer=Oo,B.isDate=Mg,B.isElement=function(l){return Br(l)&&l.nodeType===1&&!wi(l)},B.isEmpty=function(l){if(l==null)return!0;if(Vn(l)&&(He(l)||typeof l=="string"||typeof l.splice=="function"||Oo(l)||Sa(l)||Qi(l)))return!l.length;var d=Sn(l);if(d==ut||d==St)return!l.size;if(ac(l))return!gi(l).length;for(var _ in l)if(ee.call(l,_))return!1;return!0},B.isEqual=function(l,d){return lu(l,d)},B.isEqualWith=function(l,d,_){var P=(_=typeof _=="function"?_:v)?_(l,d):v;return P===v?lu(l,d,v,_):!!P},B.isError=hc,B.isFinite=function(l){return typeof l=="number"&&nh(l)},B.isFunction=Oi,B.isInteger=od,B.isLength=Ji,B.isMap=mn,B.isMatch=function(l,d){return l===d||bs(l,d,hf(d))},B.isMatchWith=function(l,d,_){return _=typeof _=="function"?_:v,bs(l,d,hf(d),_)},B.isNaN=function(l){return dc(l)&&l!=+l},B.isNative=function(l){if(qi(l))throw new Qe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return fu(l)},B.isNil=function(l){return l==null},B.isNull=function(l){return l===null},B.isNumber=dc,B.isObject=wr,B.isObjectLike=Br,B.isPlainObject=wi,B.isRegExp=Nf,B.isSafeInteger=function(l){return od(l)&&l>=-9007199254740991&&l<=K},B.isSet=Cf,B.isString=yc,B.isSymbol=Wn,B.isTypedArray=Sa,B.isUndefined=function(l){return l===v},B.isWeakMap=function(l){return Br(l)&&Sn(l)==kt},B.isWeakSet=function(l){return Br(l)&&zr(l)=="[object WeakSet]"},B.join=function(l,d){return l==null?"":Fl.call(l,d)},B.kebabCase=dd,B.last=Yn,B.lastIndexOf=function(l,d,_){var P=l==null?0:l.length;if(!P)return-1;var N=P;return _!==v&&(N=(N=Ve(_))<0?ln(P+N,0):jn(N,P-1)),d==d?function(G,rt,lt){for(var Ot=lt+1;Ot--;)if(G[Ot]===rt)return Ot;return Ot}(l,d,N):Ho(l,Vo,N,!0)},B.lowerCase=zf,B.lowerFirst=Bf,B.lt=id,B.lte=Fs,B.max=function(l){return l&&l.length?Wr(l,_n,Gr):v},B.maxBy=function(l,d){return l&&l.length?Wr(l,De(d,2),Gr):v},B.mean=function(l){return or(l,_n)},B.meanBy=function(l,d){return or(l,De(d,2))},B.min=function(l){return l&&l.length?Wr(l,_n,vi):v},B.minBy=function(l,d){return l&&l.length?Wr(l,De(d,2),vi):v},B.stubArray=wc,B.stubFalse=qs,B.stubObject=function(){return{}},B.stubString=function(){return""},B.stubTrue=function(){return!0},B.multiply=Qf,B.nth=function(l,d){return l&&l.length?vh(l,Ve(d)):v},B.noConflict=function(){return Ur._===this&&(Ur._=Dr),this},B.noop=Oc,B.now=lc,B.pad=function(l,d,_){l=xr(l);var P=(d=Ve(d))?ko(l):0;if(!d||P>=d)return l;var N=(d-P)/2;return As(nu(N),_)+l+As(ss(N),_)},B.padEnd=function(l,d,_){l=xr(l);var P=(d=Ve(d))?ko(l):0;return d&&P<d?l+As(d-P,_):l},B.padStart=function(l,d,_){l=xr(l);var P=(d=Ve(d))?ko(l):0;return d&&P<d?As(d-P,_)+l:l},B.parseInt=function(l,d,_){return _||d==null?d=0:d&&(d=+d),fs(xr(l).replace(Le,""),d||0)},B.random=function(l,d,_){if(_&&typeof _!="boolean"&&gn(l,d,_)&&(d=_=v),_===v&&(typeof d=="boolean"?(_=d,d=v):typeof l=="boolean"&&(_=l,l=v)),l===v&&d===v?(l=0,d=1):(l=xi(l),d===v?(d=l,l=0):d=xi(d)),l>d){var P=l;l=d,d=P}if(_||l%1||d%1){var N=ps();return jn(l+N*(d-l+zi("1e-"+((N+"").length-1))),d)}return $l(l,d)},B.reduce=function(l,d,_){var P=He(l)?qa:sn,N=arguments.length<3;return P(l,De(d,4),_,N,Nr)},B.reduceRight=function(l,d,_){var P=He(l)?cs:sn,N=arguments.length<3;return P(l,De(d,4),_,N,fh)},B.repeat=function(l,d,_){return d=(_?gn(l,d,_):d===v)?1:Ve(d),Os(xr(l),d)},B.replace=function(){var l=arguments,d=xr(l[0]);return l.length<3?d:d.replace(l[1],l[2])},B.result=function(l,d,_){var P=-1,N=(d=Hi(d,l)).length;for(N||(N=1,l=v);++P<N;){var G=l==null?v:l[Mo(d[P])];G===v&&(P=N,G=_),l=Oi(G)?G.call(l):G}return l},B.round=Jf,B.runInContext=wt,B.sample=function(l){return(He(l)?Xl:bg)(l)},B.size=function(l){if(l==null)return 0;if(Vn(l))return yc(l)?ko(l):l.length;var d=Sn(l);return d==ut||d==St?l.size:gi(l).length},B.snakeCase=Ff,B.some=function(l,d,_){var P=He(l)?Vu:Jl;return _&&gn(l,d,_)&&(d=v),P(l,De(d,3))},B.sortedIndex=function(l,d){return ws(l,d)},B.sortedIndexBy=function(l,d,_){return tf(l,d,De(_,2))},B.sortedIndexOf=function(l,d){var _=l==null?0:l.length;if(_){var P=ws(l,d);if(P<_&&co(l[P],d))return P}return-1},B.sortedLastIndex=function(l,d){return ws(l,d,!0)},B.sortedLastIndexBy=function(l,d,_){return tf(l,d,De(_,2),!0)},B.sortedLastIndexOf=function(l,d){if(l!=null&&l.length){var _=ws(l,d,!0)-1;if(co(l[_],d))return _}return-1},B.startCase=_c,B.startsWith=function(l,d,_){return l=xr(l),_=_==null?0:Xi(Ve(_),0,l.length),d=Gn(d),l.slice(_,_+d.length)==d},B.subtract=vd,B.sum=function(l){return l&&l.length?Qa(l,_n):0},B.sumBy=function(l,d){return l&&l.length?Qa(l,De(d,2)):0},B.template=function(l,d,_){var P=B.templateSettings;_&&gn(l,d,_)&&(d=v),l=xr(l),d=Gs({},d,P,Nh);var N,G,rt=Gs({},d.imports,P.imports,Nh),lt=fn(rt),Ot=Ja(rt,lt),Lt=0,Ct=d.interpolate||je,Xt="__p += '",se=A((d.escape||je).source+"|"+Ct.source+"|"+(Ct===Fe?pe:je).source+"|"+(d.evaluate||je).source+"|$","g"),ge="//# sourceURL="+(ee.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++es+"]")+`
  35. `;l.replace(se,function(Ht,Be,re,Ne,Te,tr){return re||(re=Ne),Xt+=l.slice(Lt,tr).replace(ze,si),Be&&(N=!0,Xt+=`' +
  36. __e(`+Be+`) +
  37. '`),Te&&(G=!0,Xt+=`';
  38. `+Te+`;
  39. __p += '`),re&&(Xt+=`' +
  40. ((__t = (`+re+`)) == null ? '' : __t) +
  41. '`),Lt=tr+Ht.length,Ht}),Xt+=`';
  42. `;var Se=ee.call(d,"variable")&&d.variable;if(Se){if(Kt.test(Se))throw new Qe("Invalid `variable` option passed into `_.template`")}else Xt=`with (obj) {
  43. `+Xt+`
  44. }
  45. `;Xt=(G?Xt.replace(Bt,""):Xt).replace(Oe,"$1").replace(Ce,"$1;"),Xt="function("+(Se||"obj")+`) {
  46. `+(Se?"":`obj || (obj = {});
  47. `)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
  48. function print() { __p += __j.call(arguments, '') }
  49. `:`;
  50. `)+Xt+`return __p
  51. }`;var zt=Ks(function(){return Pr(lt,ge+"return "+Xt).apply(v,Ot)});if(zt.source=Xt,hc(zt))throw zt;return zt},B.times=function(l,d){if((l=Ve(l))<1||l>K)return[];var _=at,P=jn(l,at);d=De(d),l-=at;for(var N=ma(P,d);++_<l;)d(_);return N},B.toFinite=xi,B.toInteger=Ve,B.toLength=gc,B.toLower=function(l){return xr(l).toLowerCase()},B.toNumber=so,B.toSafeInteger=function(l){return l?Xi(Ve(l),-9007199254740991,K):l===0?l:0},B.toString=xr,B.toUpper=function(l){return xr(l).toUpperCase()},B.trim=function(l,d,_){if((l=xr(l))&&(_||d===v))return Wu(l);if(!l||!(d=Gn(d)))return l;var P=Un(l),N=Un(d);return Vi(P,no(P,N),Ku(P,N)+1).join("")},B.trimEnd=function(l,d,_){if((l=xr(l))&&(_||d===v))return l.slice(0,Rn(l)+1);if(!l||!(d=Gn(d)))return l;var P=Un(l);return Vi(P,0,Ku(P,Un(d))+1).join("")},B.trimStart=function(l,d,_){if((l=xr(l))&&(_||d===v))return l.replace(Le,"");if(!l||!(d=Gn(d)))return l;var P=Un(l);return Vi(P,no(P,Un(d))).join("")},B.truncate=function(l,d){var _=30,P="...";if(wr(d)){var N="separator"in d?d.separator:N;_="length"in d?Ve(d.length):_,P="omission"in d?Gn(d.omission):P}var G=(l=xr(l)).length;if(Ao(l)){var rt=Un(l);G=rt.length}if(_>=G)return l;var lt=_-ko(P);if(lt<1)return P;var Ot=rt?Vi(rt,0,lt).join(""):l.slice(0,lt);if(N===v)return Ot+P;if(rt&&(lt+=Ot.length-lt),Nf(N)){if(l.slice(lt).search(N)){var Lt,Ct=Ot;for(N.global||(N=A(N.source,xr(We.exec(N))+"g")),N.lastIndex=0;Lt=N.exec(Ct);)var Xt=Lt.index;Ot=Ot.slice(0,Xt===v?lt:Xt)}}else if(l.indexOf(Gn(N),lt)!=lt){var se=Ot.lastIndexOf(N);se>-1&&(Ot=Ot.slice(0,se))}return Ot+P},B.unescape=function(l){return(l=xr(l))&&Tt.test(l)?l.replace(Ae,oo):l},B.uniqueId=function(l){var d=++_r;return xr(l)+d},B.upperCase=ea,B.upperFirst=Ws,B.each=$r,B.eachRight=$h,B.first=Sf,Zs(B,(Ei={},de(B,function(l,d){ee.call(B.prototype,d)||(Ei[d]=l)}),Ei),{chain:!1}),B.VERSION="4.17.21",Mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){B[l].placeholder=B}),Mn(["drop","take"],function(l,d){ur.prototype[l]=function(_){_=_===v?1:ln(Ve(_),0);var P=this.__filtered__&&!d?new ur(this):this.clone();return P.__filtered__?P.__takeCount__=jn(_,P.__takeCount__):P.__views__.push({size:jn(_,at),type:l+(P.__dir__<0?"Right":"")}),P},ur.prototype[l+"Right"]=function(_){return this.reverse()[l](_).reverse()}}),Mn(["filter","map","takeWhile"],function(l,d){var _=d+1,P=_==1||_==3;ur.prototype[l]=function(N){var G=this.clone();return G.__iteratees__.push({iteratee:De(N,3),type:_}),G.__filtered__=G.__filtered__||P,G}}),Mn(["head","last"],function(l,d){var _="take"+(d?"Right":"");ur.prototype[l]=function(){return this[_](1).value()[0]}}),Mn(["initial","tail"],function(l,d){var _="drop"+(d?"":"Right");ur.prototype[l]=function(){return this.__filtered__?new ur(this):this[_](1)}}),ur.prototype.compact=function(){return this.filter(_n)},ur.prototype.find=function(l){return this.filter(l).head()},ur.prototype.findLast=function(l){return this.reverse().find(l)},ur.prototype.invokeMap=$e(function(l,d){return typeof l=="function"?new ur(this):this.map(function(_){return su(_,l,d)})}),ur.prototype.reject=function(l){return this.filter(_i(De(l)))},ur.prototype.slice=function(l,d){l=Ve(l);var _=this;return _.__filtered__&&(l>0||d<0)?new ur(_):(l<0?_=_.takeRight(-l):l&&(_=_.drop(l)),d!==v&&(_=(d=Ve(d))<0?_.dropRight(-d):_.take(d-l)),_)},ur.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},ur.prototype.toArray=function(){return this.take(at)},de(ur.prototype,function(l,d){var _=/^(?:filter|find|map|reject)|While$/.test(d),P=/^(?:head|last)$/.test(d),N=B[P?"take"+(d=="last"?"Right":""):d],G=P||/^find/.test(d);N&&(B.prototype[d]=function(){var rt=this.__wrapped__,lt=P?[1]:arguments,Ot=rt instanceof ur,Lt=lt[0],Ct=Ot||He(rt),Xt=function(Be){var re=N.apply(B,on([Be],lt));return P&&se?re[0]:re};Ct&&_&&typeof Lt=="function"&&Lt.length!=1&&(Ot=Ct=!1);var se=this.__chain__,ge=!!this.__actions__.length,Se=G&&!se,zt=Ot&&!ge;if(!G&&Ct){rt=zt?rt:new ur(this);var Ht=l.apply(rt,lt);return Ht.__actions__.push({func:Ls,args:[Xt],thisArg:v}),new go(Ht,se)}return Se&&zt?l.apply(this,lt):(Ht=this.thru(Xt),Se?P?Ht.value()[0]:Ht.value():Ht)})}),Mn(["pop","push","shift","sort","splice","unshift"],function(l){var d=pt[l],_=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",P=/^(?:pop|shift)$/.test(l);B.prototype[l]=function(){var N=arguments;if(P&&!this.__chain__){var G=this.value();return d.apply(He(G)?G:[],N)}return this[_](function(rt){return d.apply(He(rt)?rt:[],N)})}}),de(ur.prototype,function(l,d){var _=B[d];if(_){var P=_.name+"";ee.call(au,P)||(au[P]=[]),au[P].push({name:d,func:_})}}),au[Ea(v,2).name]=[{name:"wrapper",func:v}],ur.prototype.clone=function(){var l=new ur(this.__wrapped__);return l.__actions__=Xn(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Xn(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Xn(this.__views__),l},ur.prototype.reverse=function(){if(this.__filtered__){var l=new ur(this);l.__dir__=-1,l.__filtered__=!0}else(l=this.clone()).__dir__*=-1;return l},ur.prototype.value=function(){var l=this.__wrapped__.value(),d=this.__dir__,_=He(l),P=d<0,N=_?l.length:0,G=function(tr,me,Pe){for(var Fr=-1,bt=Pe.length;++Fr<bt;){var No=Pe[Fr],an=No.size;switch(No.type){case"drop":tr+=an;break;case"dropRight":me-=an;break;case"take":me=jn(me,tr+an);break;case"takeRight":tr=ln(tr,me-an)}}return{start:tr,end:me}}(0,N,this.__views__),rt=G.start,lt=G.end,Ot=lt-rt,Lt=P?lt:rt-1,Ct=this.__iteratees__,Xt=Ct.length,se=0,ge=jn(Ot,this.__takeCount__);if(!_||!P&&N==Ot&&ge==Ot)return xh(l,this.__actions__);var Se=[];t:for(;Ot--&&se<ge;){for(var zt=-1,Ht=l[Lt+=d];++zt<Xt;){var Be=Ct[zt],re=Be.iteratee,Ne=Be.type,Te=re(Ht);if(Ne==2)Ht=Te;else if(!Te){if(Ne==1)continue t;break t}}Se[se++]=Ht}return Se},B.prototype.at=Sg,B.prototype.chain=function(){return vn(this)},B.prototype.commit=function(){return new go(this.value(),this.__chain__)},B.prototype.next=function(){this.__values__===v&&(this.__values__=ad(this.value()));var l=this.__index__>=this.__values__.length;return{done:l,value:l?v:this.__values__[this.__index__++]}},B.prototype.plant=function(l){for(var d,_=this;_ instanceof Ju;){var P=wf(_);P.__index__=0,P.__values__=v,d?N.__wrapped__=P:d=P;var N=P;_=_.__wrapped__}return N.__wrapped__=l,d},B.prototype.reverse=function(){var l=this.__wrapped__;if(l instanceof ur){var d=l;return this.__actions__.length&&(d=new ur(this)),(d=d.reverse()).__actions__.push({func:Ls,args:[ti],thisArg:v}),new go(d,this.__chain__)}return this.thru(ti)},B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=function(){return xh(this.__wrapped__,this.__actions__)},B.prototype.first=B.prototype.head,pi&&(B.prototype[pi]=function(){return this}),B}();Ur._=To,(b=function(){return To}.call(f,o,f,y))===v||(y.exports=b)}).call(this)}).call(this,o(68),o(221)(i))},function(i,f,o){var h=o(7),y=o(34),b=o(33),v=o(87),E=o(62),S=o(174),k=o(28),T=h.TypeError,M=k("toPrimitive");i.exports=function(I,C){if(!b(I)||v(I))return I;var z,W=E(I,M);if(W){if(C===void 0&&(C="default"),z=y(W,I,C),!b(z)||v(z))return z;throw T("Can't convert object to primitive value")}return C===void 0&&(C="number"),S(I,C)}},function(i,f,o){var h=o(108);i.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(i,f,o){var h=o(36),y=o(18),b=o(91);i.exports=!h&&!y(function(){return Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a!=7})},function(i,f,o){var h=o(35),y=o(135),b=o(50),v=o(38);i.exports=function(E,S){for(var k=y(S),T=v.f,M=b.f,I=0;I<k.length;I++){var C=k[I];h(E,C)||T(E,C,M(S,C))}}},function(i,f,o){var h=o(46),y=o(15),b=o(74),v=o(112),E=o(32),S=y([].concat);i.exports=h("Reflect","ownKeys")||function(k){var T=b.f(E(k)),M=v.f;return M?S(T,M(k)):T}},function(i,f,o){var h=o(15),y=o(35),b=o(41),v=o(137).indexOf,E=o(72),S=h([].push);i.exports=function(k,T){var M,I=b(k),C=0,z=[];for(M in I)!y(E,M)&&y(I,M)&&S(z,M);for(;T.length>C;)y(I,M=T[C++])&&(~v(z,M)||S(z,M));return z}},function(i,f,o){var h=o(41),y=o(75),b=o(45),v=function(E){return function(S,k,T){var M,I=h(S),C=b(I),z=y(T,C);if(E&&k!=k){for(;C>z;)if((M=I[z++])!=M)return!0}else for(;C>z;z++)if((E||z in I)&&I[z]===k)return E||z||0;return!E&&-1}};i.exports={includes:v(!0),indexOf:v(!1)}},function(i,f,o){var h=o(46);i.exports=h("document","documentElement")},function(i,f,o){var h=o(51),y=o(41),b=o(74).f,v=o(114),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(S){return E&&h(S)=="Window"?function(k){try{return b(k)}catch(T){return v(E)}}(S):b(y(S))}},function(i,f,o){var h=o(28);f.f=h},function(i,f,o){var h=o(177),y=o(35),b=o(140),v=o(38).f;i.exports=function(E){var S=h.Symbol||(h.Symbol={});y(S,E)||v(S,E,{value:b.f(E)})}},function(i,f,o){var h,y,b,v=o(18),E=o(30),S=o(60),k=o(101),T=o(42),M=o(28),I=o(71),C=M("iterator"),z=!1;[].keys&&("next"in(b=[].keys())?(y=k(k(b)))!==Object.prototype&&(h=y):z=!0),h==null||v(function(){var W={};return h[C].call(W)!==W})?h={}:I&&(h=S(h)),E(h[C])||T(h,C,function(){return this}),i.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:z}},function(i,f,o){var h=o(18);i.exports=!h(function(){function y(){}return y.prototype.constructor=null,Object.getPrototypeOf(new y)!==y.prototype})},function(i,f,o){var h=o(16),y=o(15),b=o(72),v=o(33),E=o(35),S=o(38).f,k=o(74),T=o(139),M=o(183),I=o(90),C=o(185),z=!1,W=I("meta"),K=0,et=function(ot){S(ot,W,{value:{objectID:"O"+K++,weakData:{}}})},at=i.exports={enable:function(){at.enable=function(){},z=!0;var ot=k.f,tt=y([].splice),$={};$[W]=1,ot($).length&&(k.f=function(X){for(var U=ot(X),H=0,V=U.length;H<V;H++)if(U[H]===W){tt(U,H,1);break}return U},h({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:T.f}))},fastKey:function(ot,tt){if(!v(ot))return typeof ot=="symbol"?ot:(typeof ot=="string"?"S":"P")+ot;if(!E(ot,W)){if(!M(ot))return"F";if(!tt)return"E";et(ot)}return ot[W].objectID},getWeakData:function(ot,tt){if(!E(ot,W)){if(!M(ot))return!0;if(!tt)return!1;et(ot)}return ot[W].weakData},onFreeze:function(ot){return C&&z&&M(ot)&&!E(ot,W)&&et(ot),ot}};b[W]=!0},function(i,f,o){var h=o(28),y=o(80),b=h("iterator"),v=Array.prototype;i.exports=function(E){return E!==void 0&&(y.Array===E||v[b]===E)}},function(i,f,o){var h=o(7),y=o(34),b=o(56),v=o(32),E=o(88),S=o(118),k=h.TypeError;i.exports=function(T,M){var I=arguments.length<2?S(T):M;if(b(I))return v(y(I,T));throw k(E(T)+" is not iterable")}},function(i,f,o){var h=o(34),y=o(32),b=o(62);i.exports=function(v,E,S){var k,T;y(v);try{if(!(k=b(v,"return"))){if(E==="throw")throw S;return S}k=h(k,v)}catch(M){T=!0,k=M}if(E==="throw")throw S;if(T)throw k;return y(k),S}},function(i,f,o){var h=o(30),y=o(33),b=o(102);i.exports=function(v,E,S){var k,T;return b&&h(k=E.constructor)&&k!==S&&y(T=k.prototype)&&T!==S.prototype&&b(v,T),v}},function(i,f,o){var h=o(42);i.exports=function(y,b,v){for(var E in b)h(y,E,b[E],v);return y}},function(i,f,o){var h=o(46),y=o(38),b=o(28),v=o(36),E=b("species");i.exports=function(S){var k=h(S),T=y.f;v&&k&&!k[E]&&T(k,E,{configurable:!0,get:function(){return this}})}},function(i,f,o){var h=o(15),y=o(59),b=o(39),v=o(44),E=h("".charAt),S=h("".charCodeAt),k=h("".slice),T=function(M){return function(I,C){var z,W,K=b(v(I)),et=y(C),at=K.length;return et<0||et>=at?M?"":void 0:(z=S(K,et))<55296||z>56319||et+1===at||(W=S(K,et+1))<56320||W>57343?M?E(K,et):z:M?k(K,et,et+2):W-56320+(z-55296<<10)+65536}};i.exports={codeAt:T(!1),charAt:T(!0)}},function(i,f){i.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}},function(i,f,o){var h=o(91)("span").classList,y=h&&h.constructor&&h.constructor.prototype;i.exports=y===Object.prototype?void 0:y},function(i,f,o){var h=o(32);i.exports=function(){var y=h(this),b="";return y.global&&(b+="g"),y.ignoreCase&&(b+="i"),y.multiline&&(b+="m"),y.dotAll&&(b+="s"),y.unicode&&(b+="u"),y.sticky&&(b+="y"),b}},function(i,f,o){var h=o(18),y=o(7).RegExp,b=h(function(){var S=y("a","y");return S.lastIndex=2,S.exec("abcd")!=null}),v=b||h(function(){return!y("a","y").sticky}),E=b||h(function(){var S=y("^r","gy");return S.lastIndex=2,S.exec("str")!=null});i.exports={BROKEN_CARET:E,MISSED_STICKY:v,UNSUPPORTED_Y:b}},function(i,f,o){var h=o(16),y=o(79).find,b=o(100),v="find",E=!0;v in[]&&Array(1).find(function(){E=!1}),h({target:"Array",proto:!0,forced:E},{find:function(S){return y(this,S,arguments.length>1?arguments[1]:void 0)}}),b(v)},function(i,f,o){var h=o(16),y=o(137).includes,b=o(100);h({target:"Array",proto:!0},{includes:function(v){return y(this,v,arguments.length>1?arguments[1]:void 0)}}),b("includes")},function(i,f,o){var h=o(16),y=o(15),b=o(197),v=o(44),E=o(39),S=o(198),k=y("".indexOf);h({target:"String",proto:!0,forced:!S("includes")},{includes:function(T){return!!~k(E(v(this)),E(b(T)),arguments.length>1?arguments[1]:void 0)}})},function(i,f,o){var h=o(33),y=o(51),b=o(28)("match");i.exports=function(v){var E;return h(v)&&((E=v[b])!==void 0?!!E:y(v)=="RegExp")}},function(i,f,o){var h=o(15);i.exports=h(1 .valueOf)},function(i,f,o){var h=o(15),y=o(44),b=o(39),v=o(162),E=h("".replace),S="["+v+"]",k=RegExp("^"+S+S+"*"),T=RegExp(S+S+"*$"),M=function(I){return function(C){var z=b(y(C));return 1&I&&(z=E(z,k,"")),2&I&&(z=E(z,T,"")),z}};i.exports={start:M(1),end:M(2),trim:M(3)}},function(i,f){i.exports=`
  52. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(i,f){var o,h,y=i.exports={};function b(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function E(K){if(o===setTimeout)return setTimeout(K,0);if((o===b||!o)&&setTimeout)return o=setTimeout,setTimeout(K,0);try{return o(K,0)}catch(et){try{return o.call(null,K,0)}catch(at){return o.call(this,K,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:b}catch(K){o=b}try{h=typeof clearTimeout=="function"?clearTimeout:v}catch(K){h=v}})();var S,k=[],T=!1,M=-1;function I(){T&&S&&(T=!1,S.length?k=S.concat(k):M=-1,k.length&&C())}function C(){if(!T){var K=E(I);T=!0;for(var et=k.length;et;){for(S=k,k=[];++M<et;)S&&S[M].run();M=-1,et=k.length}S=null,T=!1,function(at){if(h===clearTimeout)return clearTimeout(at);if((h===v||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(at);try{h(at)}catch(ot){try{return h.call(null,at)}catch(tt){return h.call(this,at)}}}(K)}}function z(K,et){this.fun=K,this.array=et}function W(){}y.nextTick=function(K){var et=new Array(arguments.length-1);if(arguments.length>1)for(var at=1;at<arguments.length;at++)et[at-1]=arguments[at];k.push(new z(K,et)),k.length!==1||T||E(C)},z.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={},y.on=W,y.addListener=W,y.once=W,y.off=W,y.removeListener=W,y.removeAllListeners=W,y.emit=W,y.prependListener=W,y.prependOnceListener=W,y.listeners=function(K){return[]},y.binding=function(K){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(K){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},function(i,f,o){var h=o(32),y=o(165),b=o(28)("species");i.exports=function(v,E){var S,k=h(v).constructor;return k===void 0||(S=h(k)[b])==null?E:y(S)}},function(i,f,o){var h=o(7),y=o(99),b=o(88),v=h.TypeError;i.exports=function(E){if(y(E))return E;throw v(b(E)+" is not a constructor")}},function(i,f,o){var h=o(16),y=o(161).trim;h({target:"String",proto:!0,forced:o(200)("trim")},{trim:function(){return y(this)}})},function(i,f,o){var h=o(34),y=o(123),b=o(32),v=o(94),E=o(39),S=o(44),k=o(62),T=o(124),M=o(125);y("match",function(I,C,z){return[function(W){var K=S(this),et=W==null?void 0:k(W,I);return et?h(et,W,K):new RegExp(W)[I](E(K))},function(W){var K=b(this),et=E(W),at=z(C,K,et);if(at.done)return at.value;if(!K.global)return M(K,et);var ot=K.unicode;K.lastIndex=0;for(var tt,$=[],X=0;(tt=M(K,et))!==null;){var U=E(tt[0]);$[X]=U,U===""&&(K.lastIndex=T(et,v(K.lastIndex),ot)),X++}return X===0?null:$}]})},function(i,f,o){var h,y,b,v,E=o(7),S=o(76),k=o(64),T=o(30),M=o(35),I=o(18),C=o(138),z=o(98),W=o(91),K=o(169),et=o(128),at=E.setImmediate,ot=E.clearImmediate,tt=E.process,$=E.Dispatch,X=E.Function,U=E.MessageChannel,H=E.String,V=0,q={},ut="onreadystatechange";try{h=E.location}catch(St){}var Et=function(St){if(M(q,St)){var vt=q[St];delete q[St],vt()}},mt=function(St){return function(){Et(St)}},At=function(St){Et(St.data)},Ft=function(St){E.postMessage(H(St),h.protocol+"//"+h.host)};at&&ot||(at=function(St){var vt=z(arguments,1);return q[++V]=function(){S(T(St)?St:X(St),void 0,vt)},y(V),V},ot=function(St){delete q[St]},et?y=function(St){tt.nextTick(mt(St))}:$&&$.now?y=function(St){$.now(mt(St))}:U&&!K?(v=(b=new U).port2,b.port1.onmessage=At,y=k(v.postMessage,v)):E.addEventListener&&T(E.postMessage)&&!E.importScripts&&h&&h.protocol!=="file:"&&!I(Ft)?(y=Ft,E.addEventListener("message",At,!1)):y=ut in W("script")?function(St){C.appendChild(W("script")).onreadystatechange=function(){C.removeChild(this),Et(St)}}:function(St){setTimeout(mt(St),0)}),i.exports={set:at,clear:ot}},function(i,f,o){var h=o(55);i.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(h)},function(i,f,o){var h=o(56),y=function(b){var v,E;this.promise=new b(function(S,k){if(v!==void 0||E!==void 0)throw TypeError("Bad Promise constructor");v=S,E=k}),this.resolve=h(v),this.reject=h(E)};i.exports.f=function(b){return new y(b)}},function(i,f,o){f.a=function(){return!1}},function(i,f,o){(function(h){o.d(f,"a",function(){return tt});var y=o(1);function b(U){throw new Error("[mobx-utils] "+U)}function v(U,H){H===void 0&&(H="Illegal state"),U||b(H)}var E=function(U){return U&&U!==Object.prototype&&Object.getOwnPropertyNames(U).concat(E(Object.getPrototypeOf(U))||[])},S=function(U){return function(H){var V=E(H);return V.filter(function(q,ut){return V.indexOf(q)===ut})}(U).filter(function(H){return H!=="constructor"&&!~H.indexOf("__")})},k="pending",T="fulfilled",M="rejected";function I(U){switch(this.state){case k:return U.pending&&U.pending(this.value);case M:return U.rejected&&U.rejected(this.value);case T:return U.fulfilled?U.fulfilled(this.value):this.value}}function C(U,H){if(v(arguments.length<=2,"fromPromise expects up to two arguments"),v(typeof U=="function"||typeof U=="object"&&U&&typeof U.then=="function","Please pass a promise or function to fromPromise"),U.isPromiseBasedObservable===!0)return U;typeof U=="function"&&(U=new Promise(U));var V=U;U.then(Object(y.k)("observableFromPromise-resolve",function(ut){V.value=ut,V.state=T}),Object(y.k)("observableFromPromise-reject",function(ut){V.value=ut,V.state=M})),V.isPromiseBasedObservable=!0,V.case=I;var q=H&&H.state===T?H.value:void 0;return Object(y.q)(V,{value:q,state:k},{},{deep:!1}),V}(function(U){U.reject=Object(y.k)("fromPromise.reject",function(H){var V=U(Promise.reject(H));return V.state=M,V.value=H,V}),U.resolve=Object(y.k)("fromPromise.resolve",function(H){H===void 0&&(H=void 0);var V=U(Promise.resolve(H));return V.state=T,V.value=H,V})})(C||(C={}));var z=function(U,H,V,q){var ut,Et=arguments.length,mt=Et<3?H:q===null?q=Object.getOwnPropertyDescriptor(H,V):q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")mt=Reflect.decorate(U,H,V,q);else for(var At=U.length-1;At>=0;At--)(ut=U[At])&&(mt=(Et<3?ut(mt):Et>3?ut(H,V,mt):ut(H,V))||mt);return Et>3&&mt&&Object.defineProperty(H,V,mt),mt};(function(){function U(H,V){var q=this;Object(y.G)(function(){q.current=V,q.subscription=H.subscribe(q)})}U.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},U.prototype.next=function(H){this.current=H},U.prototype.complete=function(){this.dispose()},U.prototype.error=function(H){this.current=H,this.dispose()},z([y.C.ref],U.prototype,"current",void 0),z([y.k.bound],U.prototype,"next",null),z([y.k.bound],U.prototype,"complete",null),z([y.k.bound],U.prototype,"error",null)})();var W=function(){return W=Object.assign||function(U){for(var H,V=1,q=arguments.length;V<q;V++)for(var ut in H=arguments[V])Object.prototype.hasOwnProperty.call(H,ut)&&(U[ut]=H[ut]);return U},W.apply(this,arguments)},K=function(U,H,V,q){var ut,Et=arguments.length,mt=Et<3?H:q===null?q=Object.getOwnPropertyDescriptor(H,V):q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")mt=Reflect.decorate(U,H,V,q);else for(var At=U.length-1;At>=0;At--)(ut=U[At])&&(mt=(Et<3?ut(mt):Et>3?ut(H,V,mt):ut(H,V))||mt);return Et>3&&mt&&Object.defineProperty(H,V,mt),mt},et=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function U(H){var V=this;this.model=H,this.localValues=y.C.map({}),this.localComputedValues=y.C.map({}),this.isPropertyDirty=function(q){return V.localValues.has(q)},v(Object(y.A)(H),"createViewModel expects an observable object"),S(H).forEach(function(q){if(q!==y.a&&q!=="__mobxDidRunLazyInitializers"){if(v(et.indexOf(q)===-1,"The propertyname "+q+" is reserved and cannot be used with viewModels"),Object(y.w)(H,q)){var ut=Object(y.h)(H,q).derivation;V.localComputedValues.set(q,Object(y.m)(ut.bind(V)))}var Et=Object.getOwnPropertyDescriptor(H,q),mt=Et?{enumerable:Et.enumerable}:{};Object.defineProperty(V,q,W(W({},mt),{configurable:!0,get:function(){return Object(y.w)(H,q)?V.localComputedValues.get(q).get():V.isPropertyDirty(q)?V.localValues.get(q):V.model[q]},set:Object(y.k)(function(At){At!==V.model[q]?V.localValues.set(q,At):V.localValues.delete(q)})}))}})}Object.defineProperty(U.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),U.prototype.submit=function(){var H=this;Object(y.B)(this.localValues).forEach(function(V){var q=H.localValues.get(V),ut=H.model[V];Object(y.y)(ut)?ut.replace(q):Object(y.z)(ut)?(ut.clear(),ut.merge(q)):Object(y.v)(q)||(H.model[V]=q)}),this.localValues.clear()},U.prototype.reset=function(){this.localValues.clear()},U.prototype.resetProperty=function(H){this.localValues.delete(H)},K([y.m],U.prototype,"isDirty",null),K([y.m],U.prototype,"changedValues",null),K([y.k.bound],U.prototype,"submit",null),K([y.k.bound],U.prototype,"reset",null),K([y.k.bound],U.prototype,"resetProperty",null)})();function at(U){if(!U)return"ROOT";for(var H=[];U.parent;)H.push(U.path),U=U.parent;return H.reverse().join("/")}function ot(U){return Object(y.A)(U)||Object(y.y)(U)||Object(y.z)(U)}function tt(U,H){var V=new WeakMap;function q(mt){var At=V.get(mt.object);(function(Ft,St){switch(Ft.type){case"add":ut(Ft.newValue,St,Ft.name);break;case"update":Et(Ft.oldValue),ut(Ft.newValue,St,Ft.name||""+Ft.index);break;case"remove":case"delete":Et(Ft.oldValue);break;case"splice":Ft.removed.map(Et),Ft.added.forEach(function(kt,Gt){return ut(kt,St,""+(Ft.index+Gt))});for(var vt=Ft.index+Ft.addedCount;vt<Ft.object.length;vt++)if(ot(Ft.object[vt])){var Pt=V.get(Ft.object[vt]);Pt&&(Pt.path=""+vt)}}})(mt,At),H(mt,at(At),U)}function ut(mt,At,Ft){if(ot(mt)){var St=V.get(mt);if(St){if(St.parent!==At||St.path!==Ft)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+at(At)+"/"+Ft+"', but it already exists at '"+at(St.parent)+"/"+St.path+"'")}else{var vt={parent:At,path:Ft,dispose:Object(y.D)(mt,q)};V.set(mt,vt),Object(y.p)(mt).forEach(function(Pt){var kt=Pt[0];return ut(Pt[1],vt,kt)})}}}function Et(mt){if(ot(mt)){var At=V.get(mt);if(!At)return;V.delete(mt),At.dispose(),Object(y.L)(mt).forEach(Et)}}return ut(U,void 0,""),function(){Et(U)}}var $,X=($=function(U,H){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,q){V.__proto__=q}||function(V,q){for(var ut in q)q.hasOwnProperty(ut)&&(V[ut]=q[ut])},$(U,H)},function(U,H){function V(){this.constructor=U}$(U,H),U.prototype=H===null?Object.create(H):(V.prototype=H.prototype,new V)});(function(U){function H(V,q,ut){var Et=ut===void 0?{}:ut,mt=Et.name,At=mt===void 0?"ogm"+(1e3*Math.random()|0):mt,Ft=Et.keyToName,St=Ft===void 0?function(kt){return""+kt}:Ft,vt=U.call(this)||this;vt._keyToName=St,vt._groupBy=q,vt._ogmInfoKey=Symbol("ogmInfo"+At),vt._base=V;for(var Pt=0;Pt<V.length;Pt++)vt._addItem(V[Pt]);return vt._disposeBaseObserver=Object(y.D)(vt._base,function(kt){if(kt.type==="splice")Object(y.J)(function(){for(var Gt=0,oe=kt.removed;Gt<oe.length;Gt++){var Ee=oe[Gt];vt._removeItem(Ee)}for(var Wt=0,Qt=kt.added;Wt<Qt.length;Wt++){var be=Qt[Wt];vt._addItem(be)}});else{if(kt.type!=="update")throw new Error("illegal state");Object(y.J)(function(){vt._removeItem(kt.oldValue),vt._addItem(kt.newValue)})}}),vt}X(H,U),H.prototype.clear=function(){throw new Error("not supported")},H.prototype.delete=function(V){throw new Error("not supported")},H.prototype.set=function(V,q){throw new Error("not supported")},H.prototype.dispose=function(){this._disposeBaseObserver();for(var V=0;V<this._base.length;V++){var q=this._base[V];q[this._ogmInfoKey].reaction(),delete q[this._ogmInfoKey]}},H.prototype._getGroupArr=function(V){var q=U.prototype.get.call(this,V);return q===void 0&&(q=Object(y.C)([],{name:"GroupArray["+this._keyToName(V)+"]",deep:!1}),U.prototype.set.call(this,V,q)),q},H.prototype._removeFromGroupArr=function(V,q){var ut=U.prototype.get.call(this,V);ut.length===1?U.prototype.delete.call(this,V):(q===ut.length-1||(ut[q]=ut[ut.length-1],ut[q][this._ogmInfoKey].groupArrIndex=q),ut.length--)},H.prototype._addItem=function(V){var q=this,ut=this._groupBy(V),Et=this._getGroupArr(ut),mt={groupByValue:ut,groupArrIndex:Et.length,reaction:Object(y.F)(function(){return q._groupBy(V)},function(At,Ft){var St=V[q._ogmInfoKey];q._removeFromGroupArr(St.groupByValue,St.groupArrIndex);var vt=q._getGroupArr(At),Pt=vt.length;vt.push(V),St.groupByValue=At,St.groupArrIndex=Pt})};Object.defineProperty(V,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:mt}),Et.push(V)},H.prototype._removeItem=function(V){var q=V[this._ogmInfoKey];this._removeFromGroupArr(q.groupByValue,q.groupArrIndex),q.reaction(),delete V[this._ogmInfoKey]}})(y.b),function(){function U(H,V){this.base=H,this.args=V,this.closestIdx=0,this.isDisposed=!1;for(var q=this.closest=this.root=H,ut=0;ut<this.args.length-1&&(q=q.get(V[ut]));ut++)this.closest=q;this.closestIdx=ut}return U.prototype.exists=function(){this.assertNotDisposed();var H=this.args.length;return this.closestIdx>=H-1&&this.closest.has(this.args[H-1])},U.prototype.get=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])},U.prototype.set=function(H){this.assertNotDisposed();for(var V=this.args.length,q=this.closest,ut=this.closestIdx;ut<V-1;ut++){var Et=new Map;q.set(this.args[ut],Et),q=Et}this.closestIdx=V-1,this.closest=q,q.set(this.args[V-1],H)},U.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var H=this.args.length;this.closest.delete(this.args[H-1]);for(var V=this.root,q=[V],ut=0;ut<H-1;ut++)V=V.get(this.args[ut]),q.push(V);for(ut=q.length-1;ut>0;ut--)q[ut].size===0&&q[ut-1].delete(this.args[ut-1]);this.isDisposed=!0},U.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},U}(),Promise.resolve(),typeof queueMicrotask<"u"||h!==void 0&&h.nextTick}).call(this,o(163))},function(i,f,o){var h;(function(y,b,v){if(y){for(var E,S={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},k={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},T={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},M={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},I=1;I<20;++I)S[111+I]="f"+I;for(I=0;I<=9;++I)S[I+96]=I.toString();ot.prototype.bind=function(tt,$,X){var U=this;return tt=tt instanceof Array?tt:[tt],U._bindMultiple.call(U,tt,$,X),U},ot.prototype.unbind=function(tt,$){return this.bind.call(this,tt,function(){},$)},ot.prototype.trigger=function(tt,$){var X=this;return X._directMap[tt+":"+$]&&X._directMap[tt+":"+$]({},tt),X},ot.prototype.reset=function(){var tt=this;return tt._callbacks={},tt._directMap={},tt},ot.prototype.stopCallback=function(tt,$){if((" "+$.className+" ").indexOf(" mousetrap ")>-1||at($,this.target))return!1;if("composedPath"in tt&&typeof tt.composedPath=="function"){var X=tt.composedPath()[0];X!==tt.target&&($=X)}return $.tagName=="INPUT"||$.tagName=="SELECT"||$.tagName=="TEXTAREA"||$.isContentEditable},ot.prototype.handleKey=function(){var tt=this;return tt._handleKey.apply(tt,arguments)},ot.addKeycodes=function(tt){for(var $ in tt)tt.hasOwnProperty($)&&(S[$]=tt[$]);E=null},ot.init=function(){var tt=ot(b);for(var $ in tt)$.charAt(0)!=="_"&&(ot[$]=function(X){return function(){return tt[X].apply(tt,arguments)}}($))},ot.init(),y.Mousetrap=ot,i.exports&&(i.exports=ot),(h=function(){return ot}.call(f,o,f,i))===void 0||(i.exports=h)}function C(tt,$,X){tt.addEventListener?tt.addEventListener($,X,!1):tt.attachEvent("on"+$,X)}function z(tt){if(tt.type=="keypress"){var $=String.fromCharCode(tt.which);return tt.shiftKey||($=$.toLowerCase()),$}return S[tt.which]?S[tt.which]:k[tt.which]?k[tt.which]:String.fromCharCode(tt.which).toLowerCase()}function W(tt){return tt=="shift"||tt=="ctrl"||tt=="alt"||tt=="meta"}function K(tt,$,X){return X||(X=function(){if(!E)for(var U in E={},S)U>95&&U<112||S.hasOwnProperty(U)&&(E[S[U]]=U);return E}()[tt]?"keydown":"keypress"),X=="keypress"&&$.length&&(X="keydown"),X}function et(tt,$){var X,U,H,V=[];for(X=function(q){return q==="+"?["+"]:(q=q.replace(/\+{2}/g,"+plus")).split("+")}(tt),H=0;H<X.length;++H)U=X[H],M[U]&&(U=M[U]),$&&$!="keypress"&&T[U]&&(U=T[U],V.push("shift")),W(U)&&V.push(U);return{key:U,modifiers:V,action:$=K(U,V,$)}}function at(tt,$){return tt!==null&&tt!==b&&(tt===$||at(tt.parentNode,$))}function ot(tt){var $=this;if(tt=tt||b,!($ instanceof ot))return new ot(tt);$.target=tt,$._callbacks={},$._directMap={};var X,U={},H=!1,V=!1,q=!1;function ut(vt){vt=vt||{};var Pt,kt=!1;for(Pt in U)vt[Pt]?kt=!0:U[Pt]=0;kt||(q=!1)}function Et(vt,Pt,kt,Gt,oe,Ee){var Wt,Qt,be,st,ct=[],dt=kt.type;if(!$._callbacks[vt])return[];for(dt=="keyup"&&W(vt)&&(Pt=[vt]),Wt=0;Wt<$._callbacks[vt].length;++Wt)if(Qt=$._callbacks[vt][Wt],(Gt||!Qt.seq||U[Qt.seq]==Qt.level)&&dt==Qt.action&&(dt=="keypress"&&!kt.metaKey&&!kt.ctrlKey||(be=Pt,st=Qt.modifiers,be.sort().join(",")===st.sort().join(",")))){var Dt=!Gt&&Qt.combo==oe,Yt=Gt&&Qt.seq==Gt&&Qt.level==Ee;(Dt||Yt)&&$._callbacks[vt].splice(Wt,1),ct.push(Qt)}return ct}function mt(vt,Pt,kt,Gt){$.stopCallback(Pt,Pt.target||Pt.srcElement,kt,Gt)||vt(Pt,kt)===!1&&(function(oe){oe.preventDefault?oe.preventDefault():oe.returnValue=!1}(Pt),function(oe){oe.stopPropagation?oe.stopPropagation():oe.cancelBubble=!0}(Pt))}function At(vt){typeof vt.which!="number"&&(vt.which=vt.keyCode);var Pt=z(vt);Pt&&(vt.type!="keyup"||H!==Pt?$.handleKey(Pt,function(kt){var Gt=[];return kt.shiftKey&&Gt.push("shift"),kt.altKey&&Gt.push("alt"),kt.ctrlKey&&Gt.push("ctrl"),kt.metaKey&&Gt.push("meta"),Gt}(vt),vt):H=!1)}function Ft(vt,Pt,kt,Gt){function oe(be){return function(){q=be,++U[vt],clearTimeout(X),X=setTimeout(ut,1e3)}}function Ee(be){mt(kt,be,vt),Gt!=="keyup"&&(H=z(be)),setTimeout(ut,10)}U[vt]=0;for(var Wt=0;Wt<Pt.length;++Wt){var Qt=Wt+1===Pt.length?Ee:oe(Gt||et(Pt[Wt+1]).action);St(Pt[Wt],Qt,Gt,vt,Wt)}}function St(vt,Pt,kt,Gt,oe){$._directMap[vt+":"+kt]=Pt;var Ee,Wt=(vt=vt.replace(/\s+/g," ")).split(" ");Wt.length>1?Ft(vt,Wt,Pt,kt):(Ee=et(vt,kt),$._callbacks[Ee.key]=$._callbacks[Ee.key]||[],Et(Ee.key,Ee.modifiers,{type:Ee.action},Gt,vt,oe),$._callbacks[Ee.key][Gt?"unshift":"push"]({callback:Pt,modifiers:Ee.modifiers,action:Ee.action,seq:Gt,level:oe,combo:vt}))}$._handleKey=function(vt,Pt,kt){var Gt,oe=Et(vt,Pt,kt),Ee={},Wt=0,Qt=!1;for(Gt=0;Gt<oe.length;++Gt)oe[Gt].seq&&(Wt=Math.max(Wt,oe[Gt].level));for(Gt=0;Gt<oe.length;++Gt)if(oe[Gt].seq){if(oe[Gt].level!=Wt)continue;Qt=!0,Ee[oe[Gt].seq]=1,mt(oe[Gt].callback,kt,oe[Gt].combo,oe[Gt].seq)}else Qt||mt(oe[Gt].callback,kt,oe[Gt].combo);var be=kt.type=="keypress"&&V;kt.type!=q||W(vt)||be||ut(Ee),V=Qt&&kt.type=="keydown"},$._bindMultiple=function(vt,Pt,kt){for(var Gt=0;Gt<vt.length;++Gt)St(vt[Gt],Pt,kt)},C(tt,"keypress",At),C(tt,"keydown",At),C(tt,"keyup",At)}})(typeof window<"u"?window:null,typeof window<"u"?document:null)},function(i,f,o){var h=o(7),y=o(34),b=o(30),v=o(33),E=h.TypeError;i.exports=function(S,k){var T,M;if(k==="string"&&b(T=S.toString)&&!v(M=y(T,S))||b(T=S.valueOf)&&!v(M=y(T,S))||k!=="string"&&b(T=S.toString)&&!v(M=y(T,S)))return M;throw E("Can't convert object to primitive value")}},function(i,f,o){var h=o(7),y=o(30),b=o(92),v=h.WeakMap;i.exports=y(v)&&/native code/.test(b(v))},function(i,f,o){var h=o(36),y=o(38),b=o(32),v=o(41),E=o(77);i.exports=h?Object.defineProperties:function(S,k){b(S);for(var T,M=v(k),I=E(k),C=I.length,z=0;C>z;)y.f(S,T=I[z++],M[T]);return S}},function(i,f,o){var h=o(7);i.exports=h},function(i,f,o){var h=o(7),y=o(96),b=o(99),v=o(33),E=o(28)("species"),S=h.Array;i.exports=function(k){var T;return y(k)&&(T=k.constructor,(b(T)&&(T===S||y(T.prototype))||v(T)&&(T=T[E])===null)&&(T=void 0)),T===void 0?S:T}},function(i,f,o){var h=o(113),y=o(97);i.exports=h?{}.toString:function(){return"[object "+y(this)+"]"}},function(i,f,o){var h=o(142).IteratorPrototype,y=o(60),b=o(69),v=o(78),E=o(80),S=function(){return this};i.exports=function(k,T,M,I){var C=T+" Iterator";return k.prototype=y(h,{next:b(+!I,M)}),v(k,C,!1,!0),E[C]=S,k}},function(i,f,o){var h=o(7),y=o(30),b=h.String,v=h.TypeError;i.exports=function(E){if(typeof E=="object"||y(E))return E;throw v("Can't set "+b(E)+" as a prototype")}},function(i,f,o){var h=o(16),y=o(7),b=o(15),v=o(95),E=o(42),S=o(144),k=o(117),T=o(119),M=o(30),I=o(33),C=o(18),z=o(120),W=o(78),K=o(148);i.exports=function(et,at,ot){var tt=et.indexOf("Map")!==-1,$=et.indexOf("Weak")!==-1,X=tt?"set":"add",U=y[et],H=U&&U.prototype,V=U,q={},ut=function(vt){var Pt=b(H[vt]);E(H,vt,vt=="add"?function(kt){return Pt(this,kt===0?0:kt),this}:vt=="delete"?function(kt){return!($&&!I(kt))&&Pt(this,kt===0?0:kt)}:vt=="get"?function(kt){return $&&!I(kt)?void 0:Pt(this,kt===0?0:kt)}:vt=="has"?function(kt){return!($&&!I(kt))&&Pt(this,kt===0?0:kt)}:function(kt,Gt){return Pt(this,kt===0?0:kt,Gt),this})};if(v(et,!M(U)||!($||H.forEach&&!C(function(){new U().entries().next()}))))V=ot.getConstructor(at,et,tt,X),S.enable();else if(v(et,!0)){var Et=new V,mt=Et[X]($?{}:-0,1)!=Et,At=C(function(){Et.has(1)}),Ft=z(function(vt){new U(vt)}),St=!$&&C(function(){for(var vt=new U,Pt=5;Pt--;)vt[X](Pt,Pt);return!vt.has(-0)});Ft||((V=at(function(vt,Pt){T(vt,H);var kt=K(new U,vt,V);return Pt!=null&&k(Pt,kt[X],{that:kt,AS_ENTRIES:tt}),kt})).prototype=H,H.constructor=V),(At||St)&&(ut("delete"),ut("has"),tt&&ut("get")),(St||mt)&&ut(X),$&&H.clear&&delete H.clear}return q[et]=V,h({global:!0,forced:V!=U},q),W(V,et),$||ot.setStrong(V,et,tt),V}},function(i,f,o){var h=o(18),y=o(33),b=o(51),v=o(184),E=Object.isExtensible,S=h(function(){});i.exports=S||v?function(k){return!!y(k)&&(!v||b(k)!="ArrayBuffer")&&(!E||E(k))}:E},function(i,f,o){var h=o(18);i.exports=h(function(){if(typeof ArrayBuffer=="function"){var y=new ArrayBuffer(8);Object.isExtensible(y)&&Object.defineProperty(y,"a",{value:8})}})},function(i,f,o){var h=o(18);i.exports=!h(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(i,f,o){var h=o(38).f,y=o(60),b=o(149),v=o(64),E=o(119),S=o(117),k=o(116),T=o(150),M=o(36),I=o(144).fastKey,C=o(58),z=C.set,W=C.getterFor;i.exports={getConstructor:function(K,et,at,ot){var tt=K(function(V,q){E(V,$),z(V,{type:et,index:y(null),first:void 0,last:void 0,size:0}),M||(V.size=0),q!=null&&S(q,V[ot],{that:V,AS_ENTRIES:at})}),$=tt.prototype,X=W(et),U=function(V,q,ut){var Et,mt,At=X(V),Ft=H(V,q);return Ft?Ft.value=ut:(At.last=Ft={index:mt=I(q,!0),key:q,value:ut,previous:Et=At.last,next:void 0,removed:!1},At.first||(At.first=Ft),Et&&(Et.next=Ft),M?At.size++:V.size++,mt!=="F"&&(At.index[mt]=Ft)),V},H=function(V,q){var ut,Et=X(V),mt=I(q);if(mt!=="F")return Et.index[mt];for(ut=Et.first;ut;ut=ut.next)if(ut.key==q)return ut};return b($,{clear:function(){for(var V=X(this),q=V.index,ut=V.first;ut;)ut.removed=!0,ut.previous&&(ut.previous=ut.previous.next=void 0),delete q[ut.index],ut=ut.next;V.first=V.last=void 0,M?V.size=0:this.size=0},delete:function(V){var q=this,ut=X(q),Et=H(q,V);if(Et){var mt=Et.next,At=Et.previous;delete ut.index[Et.index],Et.removed=!0,At&&(At.next=mt),mt&&(mt.previous=At),ut.first==Et&&(ut.first=mt),ut.last==Et&&(ut.last=At),M?ut.size--:q.size--}return!!Et},forEach:function(V){for(var q,ut=X(this),Et=v(V,arguments.length>1?arguments[1]:void 0);q=q?q.next:ut.first;)for(Et(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(V){return!!H(this,V)}}),b($,at?{get:function(V){var q=H(this,V);return q&&q.value},set:function(V,q){return U(this,V===0?0:V,q)}}:{add:function(V){return U(this,V=V===0?0:V,V)}}),M&&h($,"size",{get:function(){return X(this).size}}),tt},setStrong:function(K,et,at){var ot=et+" Iterator",tt=W(et),$=W(ot);k(K,et,function(X,U){z(this,{type:ot,target:X,state:tt(X),kind:U,last:void 0})},function(){for(var X=$(this),U=X.kind,H=X.last;H&&H.removed;)H=H.previous;return X.target&&(X.last=H=H?H.next:X.state.first)?U=="keys"?{value:H.key,done:!1}:U=="values"?{value:H.value,done:!1}:{value:[H.key,H.value],done:!1}:(X.target=void 0,{value:void 0,done:!0})},at?"entries":"values",!at,!0),T(et)}}},function(i,f,o){var h=o(79).forEach,y=o(121)("forEach");i.exports=y?[].forEach:function(b){return h(this,b,arguments.length>1?arguments[1]:void 0)}},function(i,f,o){var h=o(7),y=o(64),b=o(34),v=o(40),E=o(189),S=o(145),k=o(99),T=o(45),M=o(63),I=o(146),C=o(118),z=h.Array;i.exports=function(W){var K=v(W),et=k(this),at=arguments.length,ot=at>1?arguments[1]:void 0,tt=ot!==void 0;tt&&(ot=y(ot,at>2?arguments[2]:void 0));var $,X,U,H,V,q,ut=C(K),Et=0;if(!ut||this==z&&S(ut))for($=T(K),X=et?new this($):z($);$>Et;Et++)q=tt?ot(K[Et],Et):K[Et],M(X,Et,q);else for(V=(H=I(K,ut)).next,X=et?new this:[];!(U=b(V,H)).done;Et++)q=tt?E(H,ot,[U.value,Et],!0):U.value,M(X,Et,q);return X.length=Et,X}},function(i,f,o){var h=o(32),y=o(147);i.exports=function(b,v,E,S){try{return S?v(h(E)[0],E[1]):v(E)}catch(k){y(b,"throw",k)}}},function(i,f,o){var h=o(18),y=o(7).RegExp;i.exports=h(function(){var b=y(".","s");return!(b.dotAll&&b.exec(`
  53. `)&&b.flags==="s")})},function(i,f,o){var h=o(18),y=o(7).RegExp;i.exports=h(function(){var b=y("(?<a>b)","g");return b.exec("b").groups.a!=="b"||"b".replace(b,"$<a>c")!=="bc"})},function(i,f,o){var h=o(16),y=o(15),b=o(56),v=o(40),E=o(45),S=o(39),k=o(18),T=o(193),M=o(121),I=o(194),C=o(195),z=o(70),W=o(196),K=[],et=y(K.sort),at=y(K.push),ot=k(function(){K.sort(void 0)}),tt=k(function(){K.sort(null)}),$=M("sort"),X=!k(function(){if(z)return z<70;if(!(I&&I>3)){if(C)return!0;if(W)return W<603;var U,H,V,q,ut="";for(U=65;U<76;U++){switch(H=String.fromCharCode(U),U){case 66:case 69:case 70:case 72:V=3;break;case 68:case 71:V=4;break;default:V=2}for(q=0;q<47;q++)K.push({k:H+q,v:V})}for(K.sort(function(Et,mt){return mt.v-Et.v}),q=0;q<K.length;q++)H=K[q].k.charAt(0),ut.charAt(ut.length-1)!==H&&(ut+=H);return ut!=="DGBEFHACIJK"}});h({target:"Array",proto:!0,forced:ot||!tt||!$||!X},{sort:function(U){U!==void 0&&b(U);var H=v(this);if(X)return U===void 0?et(H):et(H,U);var V,q,ut=[],Et=E(H);for(q=0;q<Et;q++)q in H&&at(ut,H[q]);for(T(ut,function(mt){return function(At,Ft){return Ft===void 0?-1:At===void 0?1:mt!==void 0?+mt(At,Ft)||0:S(At)>S(Ft)?1:-1}}(U)),V=ut.length,q=0;q<V;)H[q]=ut[q++];for(;q<Et;)delete H[q++];return H}})},function(i,f,o){var h=o(114),y=Math.floor,b=function(S,k){var T=S.length,M=y(T/2);return T<8?v(S,k):E(S,b(h(S,0,M),k),b(h(S,M),k),k)},v=function(S,k){for(var T,M,I=S.length,C=1;C<I;){for(M=C,T=S[C];M&&k(S[M-1],T)>0;)S[M]=S[--M];M!==C++&&(S[M]=T)}return S},E=function(S,k,T,M){for(var I=k.length,C=T.length,z=0,W=0;z<I||W<C;)S[z+W]=z<I&&W<C?M(k[z],T[W])<=0?k[z++]:T[W++]:z<I?k[z++]:T[W++];return S};i.exports=b},function(i,f,o){var h=o(55).match(/firefox\/(\d+)/i);i.exports=!!h&&+h[1]},function(i,f,o){var h=o(55);i.exports=/MSIE|Trident/.test(h)},function(i,f,o){var h=o(55).match(/AppleWebKit\/(\d+)\./);i.exports=!!h&&+h[1]},function(i,f,o){var h=o(7),y=o(159),b=h.TypeError;i.exports=function(v){if(y(v))throw b("The method doesn't accept regular expressions");return v}},function(i,f,o){var h=o(28)("match");i.exports=function(y){var b=/./;try{"/./"[y](b)}catch(v){try{return b[h]=!1,"/./"[y](b)}catch(E){}}return!1}},function(i,f,o){o(16)({target:"Number",stat:!0},{isNaN:function(h){return h!=h}})},function(i,f,o){var h=o(73).PROPER,y=o(18),b=o(162);i.exports=function(v){return y(function(){return!!b[v]()||"\u200B\x85\u180E"[v]()!=="\u200B\x85\u180E"||h&&b[v].name!==v})}},function(i,f,o){var h=o(15),y=o(40),b=Math.floor,v=h("".charAt),E=h("".replace),S=h("".slice),k=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,T=/\$([$&'`]|\d{1,2})/g;i.exports=function(M,I,C,z,W,K){var et=C+M.length,at=z.length,ot=T;return W!==void 0&&(W=y(W),ot=k),E(K,ot,function(tt,$){var X;switch(v($,0)){case"$":return"$";case"&":return M;case"`":return S(I,0,C);case"'":return S(I,et);case"<":X=W[S($,1,-1)];break;default:var U=+$;if(U===0)return tt;if(U>at){var H=b(U/10);return H===0?tt:H<=at?z[H-1]===void 0?v($,1):z[H-1]+v($,1):tt}X=z[U-1]}return X===void 0?"":X})}},function(i,f,o){var h=o(36),y=o(15),b=o(34),v=o(18),E=o(77),S=o(112),k=o(84),T=o(40),M=o(85),I=Object.assign,C=Object.defineProperty,z=y([].concat);i.exports=!I||v(function(){if(h&&I({b:1},I(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var W={},K={},et=Symbol(),at="abcdefghijklmnopqrst";return W[et]=7,at.split("").forEach(function(ot){K[ot]=ot}),I({},W)[et]!=7||E(I({},K)).join("")!=at})?function(W,K){for(var et=T(W),at=arguments.length,ot=1,tt=S.f,$=k.f;at>ot;)for(var X,U=M(arguments[ot++]),H=tt?z(E(U),tt(U)):E(U),V=H.length,q=0;V>q;)X=H[q++],h&&!b($,U,X)||(et[X]=U[X]);return et}:I},function(i,f,o){var h=o(7),y=o(15),b=o(56),v=o(33),E=o(35),S=o(98),k=h.Function,T=y([].concat),M=y([].join),I={},C=function(z,W,K){if(!E(I,W)){for(var et=[],at=0;at<W;at++)et[at]="a["+at+"]";I[W]=k("C,a","return new C("+M(et,",")+")")}return I[W](z,K)};i.exports=k.bind||function(z){var W=b(this),K=W.prototype,et=S(arguments,1),at=function(){var ot=T(et,S(arguments));return this instanceof at?C(W,ot.length,ot):W.apply(z,ot)};return v(K)&&(at.prototype=K),at}},function(i,f,o){var h=o(35);i.exports=function(y){return y!==void 0&&(h(y,"value")||h(y,"writable"))}},function(i,f,o){var h=o(15),y=o(44),b=o(39),v=/"/g,E=h("".replace);i.exports=function(S,k,T,M){var I=b(y(S)),C="<"+k;return T!==""&&(C+=" "+T+'="'+E(b(M),v,"&quot;")+'"'),C+">"+I+"</"+k+">"}},function(i,f,o){var h=o(18);i.exports=function(y){return h(function(){var b=""[y]('"');return b!==b.toLowerCase()||b.split('"').length>3})}},function(i,f,o){o(16)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(i,f,o){var h,y,b,v,E=o(16),S=o(71),k=o(7),T=o(46),M=o(34),I=o(209),C=o(42),z=o(149),W=o(102),K=o(78),et=o(150),at=o(56),ot=o(30),tt=o(33),$=o(119),X=o(92),U=o(117),H=o(120),V=o(164),q=o(168).set,ut=o(210),Et=o(213),mt=o(214),At=o(170),Ft=o(215),St=o(58),vt=o(95),Pt=o(28),kt=o(216),Gt=o(128),oe=o(70),Ee=Pt("species"),Wt="Promise",Qt=St.getterFor(Wt),be=St.set,st=St.getterFor(Wt),ct=I&&I.prototype,dt=I,Dt=ct,Yt=k.TypeError,Bt=k.document,Oe=k.process,Ce=At.f,Ae=Ce,ve=!!(Bt&&Bt.createEvent&&k.dispatchEvent),Tt=ot(k.PromiseRejectionEvent),le="unhandledrejection",ft=!1,ce=vt(Wt,function(){var it=X(dt),_t=it!==String(dt);if(!_t&&oe===66||S&&!Dt.finally)return!0;if(oe>=51&&/native code/.test(it))return!1;var Kt=new dt(function(pe){pe(1)}),Zt=function(pe){pe(function(){},function(){})};return(Kt.constructor={})[Ee]=Zt,!(ft=Kt.then(function(){})instanceof Zt)||!_t&&kt&&!Tt}),Fe=ce||!H(function(it){dt.all(it).catch(function(){})}),pr=function(it){var _t;return!(!tt(it)||!ot(_t=it.then))&&_t},Ue=function(it,_t){if(!it.notified){it.notified=!0;var Kt=it.reactions;ut(function(){for(var Zt=it.value,pe=it.state==1,We=0;Kt.length>We;){var nn,pn,Hr,Zr=Kt[We++],ae=pe?Zr.ok:Zr.fail,we=Zr.resolve,je=Zr.reject,ze=Zr.domain;try{ae?(pe||(it.rejection===2&&Le(it),it.rejection=1),ae===!0?nn=Zt:(ze&&ze.enter(),nn=ae(Zt),ze&&(ze.exit(),Hr=!0)),nn===Zr.promise?je(Yt("Promise-chain cycle")):(pn=pr(nn))?M(pn,nn,we,je):we(nn)):je(Zt)}catch(vr){ze&&!Hr&&ze.exit(),je(vr)}}it.reactions=[],it.notified=!1,_t&&!it.rejection&&br(it)})}},nr=function(it,_t,Kt){var Zt,pe;ve?((Zt=Bt.createEvent("Event")).promise=_t,Zt.reason=Kt,Zt.initEvent(it,!1,!0),k.dispatchEvent(Zt)):Zt={promise:_t,reason:Kt},!Tt&&(pe=k["on"+it])?pe(Zt):it===le&&mt("Unhandled promise rejection",Kt)},br=function(it){M(q,k,function(){var _t,Kt=it.facade,Zt=it.value;if(Mr(it)&&(_t=Ft(function(){Gt?Oe.emit("unhandledRejection",Zt,Kt):nr(le,Kt,Zt)}),it.rejection=Gt||Mr(it)?2:1,_t.error))throw _t.value})},Mr=function(it){return it.rejection!==1&&!it.parent},Le=function(it){M(q,k,function(){var _t=it.facade;Gt?Oe.emit("rejectionHandled",_t):nr("rejectionhandled",_t,it.value)})},Yr=function(it,_t,Kt){return function(Zt){it(_t,Zt,Kt)}},Q=function(it,_t,Kt){it.done||(it.done=!0,Kt&&(it=Kt),it.value=_t,it.state=2,Ue(it,!0))},ht=function(it,_t,Kt){if(!it.done){it.done=!0,Kt&&(it=Kt);try{if(it.facade===_t)throw Yt("Promise can't be resolved itself");var Zt=pr(_t);Zt?ut(function(){var pe={done:!1};try{M(Zt,_t,Yr(ht,pe,it),Yr(Q,pe,it))}catch(We){Q(pe,We,it)}}):(it.value=_t,it.state=1,Ue(it,!1))}catch(pe){Q({done:!1},pe,it)}}};if(ce&&(Dt=(dt=function(it){$(this,Dt),at(it),M(h,this);var _t=Qt(this);try{it(Yr(ht,_t),Yr(Q,_t))}catch(Kt){Q(_t,Kt)}}).prototype,(h=function(it){be(this,{type:Wt,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=z(Dt,{then:function(it,_t){var Kt=st(this),Zt=Kt.reactions,pe=Ce(V(this,dt));return pe.ok=!ot(it)||it,pe.fail=ot(_t)&&_t,pe.domain=Gt?Oe.domain:void 0,Kt.parent=!0,Zt[Zt.length]=pe,Kt.state!=0&&Ue(Kt,!1),pe.promise},catch:function(it){return this.then(void 0,it)}}),y=function(){var it=new h,_t=Qt(it);this.promise=it,this.resolve=Yr(ht,_t),this.reject=Yr(Q,_t)},At.f=Ce=function(it){return it===dt||it===b?new y(it):Ae(it)},!S&&ot(I)&&ct!==Object.prototype)){v=ct.then,ft||(C(ct,"then",function(it,_t){var Kt=this;return new dt(function(Zt,pe){M(v,Kt,Zt,pe)}).then(it,_t)},{unsafe:!0}),C(ct,"catch",Dt.catch,{unsafe:!0}));try{delete ct.constructor}catch(it){}W&&W(ct,Dt)}E({global:!0,wrap:!0,forced:ce},{Promise:dt}),K(dt,Wt,!1,!0),et(Wt),b=T(Wt),E({target:Wt,stat:!0,forced:ce},{reject:function(it){var _t=Ce(this);return M(_t.reject,void 0,it),_t.promise}}),E({target:Wt,stat:!0,forced:S||ce},{resolve:function(it){return Et(S&&this===b?dt:this,it)}}),E({target:Wt,stat:!0,forced:Fe},{all:function(it){var _t=this,Kt=Ce(_t),Zt=Kt.resolve,pe=Kt.reject,We=Ft(function(){var nn=at(_t.resolve),pn=[],Hr=0,Zr=1;U(it,function(ae){var we=Hr++,je=!1;Zr++,M(nn,_t,ae).then(function(ze){je||(je=!0,pn[we]=ze,--Zr||Zt(pn))},pe)}),--Zr||Zt(pn)});return We.error&&pe(We.value),Kt.promise},race:function(it){var _t=this,Kt=Ce(_t),Zt=Kt.reject,pe=Ft(function(){var We=at(_t.resolve);U(it,function(nn){M(We,_t,nn).then(Kt.resolve,Zt)})});return pe.error&&Zt(pe.value),Kt.promise}})},function(i,f,o){var h=o(7);i.exports=h.Promise},function(i,f,o){var h,y,b,v,E,S,k,T,M=o(7),I=o(64),C=o(50).f,z=o(168).set,W=o(169),K=o(211),et=o(212),at=o(128),ot=M.MutationObserver||M.WebKitMutationObserver,tt=M.document,$=M.process,X=M.Promise,U=C(M,"queueMicrotask"),H=U&&U.value;H||(h=function(){var V,q;for(at&&(V=$.domain)&&V.exit();y;){q=y.fn,y=y.next;try{q()}catch(ut){throw y?v():b=void 0,ut}}b=void 0,V&&V.enter()},W||at||et||!ot||!tt?!K&&X&&X.resolve?((k=X.resolve(void 0)).constructor=X,T=I(k.then,k),v=function(){T(h)}):at?v=function(){$.nextTick(h)}:(z=I(z,M),v=function(){z(h)}):(E=!0,S=tt.createTextNode(""),new ot(h).observe(S,{characterData:!0}),v=function(){S.data=E=!E})),i.exports=H||function(V){var q={fn:V,next:void 0};b&&(b.next=q),y||(y=q,v()),b=q}},function(i,f,o){var h=o(55),y=o(7);i.exports=/ipad|iphone|ipod/i.test(h)&&y.Pebble!==void 0},function(i,f,o){var h=o(55);i.exports=/web0s(?!.*chrome)/i.test(h)},function(i,f,o){var h=o(32),y=o(33),b=o(170);i.exports=function(v,E){if(h(v),y(E)&&E.constructor===v)return E;var S=b.f(v);return(0,S.resolve)(E),S.promise}},function(i,f,o){var h=o(7);i.exports=function(y,b){var v=h.console;v&&v.error&&(arguments.length==1?v.error(y):v.error(y,b))}},function(i,f){i.exports=function(o){try{return{error:!1,value:o()}}catch(h){return{error:!0,value:h}}}},function(i,f){i.exports=typeof window=="object"},function(i,f,o){var h=o(40),y=o(75),b=o(45);i.exports=function(v){for(var E=h(this),S=b(E),k=arguments.length,T=y(k>1?arguments[1]:void 0,S),M=k>2?arguments[2]:void 0,I=M===void 0?S:y(M,S);I>T;)E[T++]=v;return E}},function(i,f,o){var h=o(16),y=o(7),b=o(15),v=o(59),E=o(160),S=o(219),k=o(18),T=y.RangeError,M=y.String,I=Math.floor,C=b(S),z=b("".slice),W=b(1 .toFixed),K=function(tt,$,X){return $===0?X:$%2==1?K(tt,$-1,X*tt):K(tt*tt,$/2,X)},et=function(tt,$,X){for(var U=-1,H=X;++U<6;)H+=$*tt[U],tt[U]=H%1e7,H=I(H/1e7)},at=function(tt,$){for(var X=6,U=0;--X>=0;)U+=tt[X],tt[X]=I(U/$),U=U%$*1e7},ot=function(tt){for(var $=6,X="";--$>=0;)if(X!==""||$===0||tt[$]!==0){var U=M(tt[$]);X=X===""?U:X+C("0",7-U.length)+U}return X};h({target:"Number",proto:!0,forced:k(function(){return W(8e-5,3)!=="0.000"||W(.9,0)!=="1"||W(1.255,2)!=="1.25"||W(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!k(function(){W({})})},{toFixed:function(tt){var $,X,U,H,V=E(this),q=v(tt),ut=[0,0,0,0,0,0],Et="",mt="0";if(q<0||q>20)throw T("Incorrect fraction digits");if(V!=V)return"NaN";if(V<=-1e21||V>=1e21)return M(V);if(V<0&&(Et="-",V=-V),V>1e-21)if(X=($=function(At){for(var Ft=0,St=At;St>=4096;)Ft+=12,St/=4096;for(;St>=2;)Ft+=1,St/=2;return Ft}(V*K(2,69,1))-69)<0?V*K(2,-$,1):V/K(2,$,1),X*=4503599627370496,($=52-$)>0){for(et(ut,0,X),U=q;U>=7;)et(ut,1e7,0),U-=7;for(et(ut,K(10,U,1),0),U=$-1;U>=23;)at(ut,1<<23),U-=23;at(ut,1<<U),et(ut,1,1),at(ut,2),mt=ot(ut)}else et(ut,0,X),et(ut,1<<-$,0),mt=ot(ut)+C("0",q);return mt=q>0?Et+((H=mt.length)<=q?"0."+C("0",q-H)+mt:z(mt,0,H-q)+"."+z(mt,H-q)):Et+mt}})},function(i,f,o){var h=o(7),y=o(59),b=o(39),v=o(44),E=h.RangeError;i.exports=function(S){var k=b(v(this)),T="",M=y(S);if(M<0||M==1/0)throw E("Wrong number of repetitions");for(;M>0;(M>>>=1)&&(k+=k))1&M&&(T+=k);return T}},function(i,f,o){var h=o(36),y=o(15),b=o(77),v=o(41),E=y(o(84).f),S=y([].push),k=function(T){return function(M){for(var I,C=v(M),z=b(C),W=z.length,K=0,et=[];W>K;)I=z[K++],h&&!E(C,I)||S(et,T?[I,C[I]]:C[I]);return et}};i.exports={entries:k(!0),values:k(!1)}},function(i,f){i.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(i,f,o){o.r(f),o.d(f,"observer",function(){return Ti}),o.d(f,"LogicFlow",function(){return fb}),o.d(f,"h",function(){return ft.g}),o.d(f,"LogicFlowUtil",function(){return h}),o.d(f,"BaseNode",function(){return Ra}),o.d(f,"RectNode",function(){return rm}),o.d(f,"CircleNode",function(){return am}),o.d(f,"PolygonNode",function(){return fm}),o.d(f,"DiamondNode",function(){return ym}),o.d(f,"EllipseNode",function(){return _m}),o.d(f,"TextNode",function(){return xm}),o.d(f,"HtmlNode",function(){return Pm}),o.d(f,"BaseEdge",function(){return pp}),o.d(f,"LineEdge",function(){return Um}),o.d(f,"PolylineEdge",function(){return Vm}),o.d(f,"BezierEdge",function(){return qm}),o.d(f,"Arrow",function(){return x3}),o.d(f,"BaseEdgeModel",function(){return Tf}),o.d(f,"BezierEdgeModel",function(){return cv}),o.d(f,"LineEdgeModel",function(){return Bs}),o.d(f,"PolylineEdgeModel",function(){return dc}),o.d(f,"BaseNodeModel",function(){return Ca}),o.d(f,"CircleNodeModel",function(){return dv}),o.d(f,"DiamondNodeModel",function(){return bv}),o.d(f,"EllipseNodeModel",function(){return xv}),o.d(f,"PolygonNodeModel",function(){return kv}),o.d(f,"RectNodeModel",function(){return Nv}),o.d(f,"TextNodeModel",function(){return Lv}),o.d(f,"HtmlNodeModel",function(){return Fv}),o.d(f,"EditConfigModel",function(){return Wl}),o.d(f,"GraphModel",function(){return t1}),o.d(f,"SnaplineModel",function(){return zO}),o.d(f,"Keyboard",function(){return Ew}),o.d(f,"get",function(){return E1}),o.d(f,"defaults",function(){return S1}),o.d(f,"ElementState",function(){return yr}),o.d(f,"ModelType",function(){return qe}),o.d(f,"ElementType",function(){return qr}),o.d(f,"EventType",function(){return de}),o.d(f,"formateAnchorConnectValidateData",function(){return sc});var h={};o.r(h),o.d(h,"createUuid",function(){return qi}),o.d(h,"refreshGraphId",function(){return ac}),o.d(h,"StepDrag",function(){return ei}),o.d(h,"setupEdgeModel",function(){return xr}),o.d(h,"isBboxOverLapping",function(){return ud}),o.d(h,"filterRepeatPoints",function(){return vu}),o.d(h,"getSimplePolyline",function(){return Gs}),o.d(h,"getExpandedBBox",function(){return vc}),o.d(h,"pointDirection",function(){return cd}),o.d(h,"getExpandedBBoxPoint",function(){return mc}),o.d(h,"mergeBBox",function(){return Rf}),o.d(h,"getBBoxOfPoints",function(){return ta}),o.d(h,"getPointsFromBBox",function(){return Pa}),o.d(h,"isPointOutsideBBox",function(){return bc}),o.d(h,"getBBoxXCrossPoints",function(){return sd}),o.d(h,"getBBoxYCrossPoints",function(){return ld}),o.d(h,"getBBoxCrossPointsByPoint",function(){return fn}),o.d(h,"estimateDistance",function(){return bn}),o.d(h,"costByPoints",function(){return fd}),o.d(h,"heuristicCostEstimate",function(){return Xs}),o.d(h,"rebuildPath",function(){return pd}),o.d(h,"removeClosePointFromOpenList",function(){return hd}),o.d(h,"isSegmentsIntersected",function(){return Aa}),o.d(h,"isSegmentCrossingBBox",function(){return Ys}),o.d(h,"getNextNeighborPoints",function(){return If}),o.d(h,"pathFinder",function(){return ka}),o.d(h,"getBoxByOriginNode",function(){return Lf}),o.d(h,"pointFilter",function(){return Hs}),o.d(h,"getPolylinePoints",function(){return Vs}),o.d(h,"getLongestEdge",function(){return dd}),o.d(h,"isSegmentsInNode",function(){return zf}),o.d(h,"isSegmentsCrossNode",function(){return Bf}),o.d(h,"getCrossPointInRect",function(){return Ff}),o.d(h,"segmentDirection",function(){return _c}),o.d(h,"points2PointsList",function(){return ea}),o.d(h,"getSimplePoints",function(){return Ws}),o.d(h,"getBytesLength",function(){return Ks}),o.d(h,"getTextWidth",function(){return Xf}),o.d(h,"getAppendAttributes",function(){return yd}),o.d(h,"getBezierControlPoints",function(){return Yf}),o.d(h,"getBezierPoints",function(){return _n}),o.d(h,"getEndTangent",function(){return Hf}),o.d(h,"getClosestPointOfPolyline",function(){return Vf}),o.d(h,"pickEdgeConfig",function(){return Zs}),o.d(h,"twoPointDistance",function(){return Oc}),o.d(h,"createEdgeGenerator",function(){return gd}),o.d(h,"snapToGrid",function(){return Ki}),o.d(h,"getGridOffset",function(){return ks}),o.d(h,"sampleCubic",function(){return Cf}),o.d(h,"getThetaOfVector",function(){return Wn}),o.d(h,"degrees",function(){return Sa}),o.d(h,"Vector",function(){return G}),o.d(h,"Point",function(){return rt}),o.d(h,"Matrix",function(){return na}),o.d(h,"RotateMatrix",function(){return jc}),o.d(h,"ScaleMatrix",function(){return rp}),o.d(h,"TranslateMatrix",function(){return oa});var y=o(1),b=o(10);if(!b.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!y.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var v=o(43),E=Object(v.b)("observerBatching");function S(e){e()}var k=!1;function T(){return k}function M(e){return Object(y.t)(e)}var I,C=1e4,z=new Set;function W(){I===void 0&&(I=setTimeout(K,1e4))}function K(){I=void 0;var e=Date.now();z.forEach(function(t){var r=t.current;r&&e>=r.cleanAt&&(r.reaction.dispose(),t.current=null,z.delete(t))}),z.size>0&&W()}var et=!1,at=[],ot={};function tt(e){return"observer"+e}function $(e,t,r){t===void 0&&(t="observed"),r===void 0&&(r=ot),T();var n,s=function(x){return function(){et?at.push(x):x()}}((r.useForceUpdate||v.d)()),u=b.d.useRef(null);if(!u.current){var p=new y.c(tt(t),function(){g.mounted?s():(p.dispose(),u.current=null)}),g=function(x){return{cleanAt:Date.now()+C,reaction:x}}(p);u.current=g,n=u,z.add(n),W()}var m=u.current.reaction;return b.d.useDebugValue(m,M),b.d.useEffect(function(){var x;return x=u,z.delete(x),u.current?u.current.mounted=!0:(u.current={reaction:new y.c(tt(t),function(){s()}),cleanAt:1/0},s()),function(){u.current.reaction.dispose(),u.current=null}},[]),function(x){et=!0,at=[];try{var j=x();et=!1;var D=at.length>0?at:void 0;return b.d.useLayoutEffect(function(){D&&D.forEach(function(R){return R()})},[D]),j}finally{et=!1}}(function(){var x,j;if(m.track(function(){try{x=e()}catch(D){j=D}}),j)throw j;return x})}var X=function(){return X=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},X.apply(this,arguments)};function U(e,t){var r,n,s,u=X({forwardRef:!1},t),p=e.displayName||e.name,g=function(m,x){return $(function(){return e(m,x)},p)};return g.displayName=p,r=u.forwardRef?Object(b.f)(Object(b.e)(g)):Object(b.f)(g),n=e,s=r,Object.keys(n).forEach(function(m){H[m]||Object.defineProperty(s,m,Object.getOwnPropertyDescriptor(n,m))}),r.displayName=p,r}var H={$$typeof:!0,render:!0,compare:!0,type:!0};function V(e){var t=e.children,r=e.render,n=t||r;return typeof n!="function"?null:$(n)}function q(e,t,r,n,s){var u=t==="children"?"render":"children",p=typeof e[t]=="function",g=typeof e[u]=="function";return p&&g?new Error("MobX Observer: Do not use children and render in the same time in`"+r):p||g?null:new Error("Invalid prop `"+s+"` of type `"+typeof e[t]+"` supplied to `"+r+"`, expected `function`.")}V.propTypes={children:q,render:q},V.displayName="Observer";var ut;(ut=b.g)||(ut=S),Object(y.n)({reactionScheduler:ut}),Object(v.a)()[E]=!0;var Et=0,mt={};function At(e){return mt[e]||(mt[e]=function(t){if(typeof Symbol=="function")return Symbol(t);var r="__$mobx-react "+t+" ("+Et+")";return Et++,r}(e)),mt[e]}function Ft(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var s=0;s<r.length;s++)if(!Object.hasOwnProperty.call(t,r[s])||!St(e[r[s]],t[r[s]]))return!1;return!0}function St(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vt(e,t,r){Object.hasOwnProperty.call(e,t)?e[t]=r:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})}var Pt=At("patchMixins"),kt=At("patchedDefinition");function Gt(e,t){for(var r=this,n=arguments.length,s=new Array(n>2?n-2:0),u=2;u<n;u++)s[u-2]=arguments[u];t.locks++;try{var p;return e!=null&&(p=e.apply(this,s)),p}finally{t.locks--,t.locks===0&&t.methods.forEach(function(g){g.apply(r,s)})}}function oe(e,t){return function(){for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];Gt.call.apply(Gt,[this,e,t].concat(n))}}function Ee(e,t,r){var n=function(g,m){var x=g[Pt]=g[Pt]||{},j=x[m]=x[m]||{};return j.locks=j.locks||0,j.methods=j.methods||[],j}(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var s=Object.getOwnPropertyDescriptor(e,t);if(!s||!s[kt]){var u=e[t],p=Wt(e,t,s?s.enumerable:void 0,n,u);Object.defineProperty(e,t,p)}}function Wt(e,t,r,n,s){var u,p=oe(s,n);return(u={})[kt]=!0,u.get=function(){return p},u.set=function(g){if(this===e)p=oe(g,n);else{var m=Wt(this,t,r,n,g);Object.defineProperty(this,t,m)}},u.configurable=!0,u.enumerable=r,u}var Qt=y.a||"$mobx",be=At("isMobXReactObserver"),st=At("isUnmounted"),ct=At("skipRender"),dt=At("isForcingUpdate");function Dt(e){var t=e.prototype;if(e[be]?Yt(t):e[be]=!0,t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==b.b)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==Oe)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=Oe;Ce(t,"props"),Ce(t,"state");var r=t.render;return t.render=function(){return Bt.call(this,r)},Ee(t,"componentWillUnmount",function(){var n;(n=this.render[Qt])===null||n===void 0||n.dispose(),this[st]=!0,!this.render[Qt]&&Yt(this)}),e}function Yt(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function Bt(e){var t=this;vt(this,ct,!1),vt(this,dt,!1);var r=Yt(this),n=e.bind(this),s=!1,u=new y.c(r+".render()",function(){if(!s&&(s=!0,t[st]!==!0)){var g=!0;try{vt(t,dt,!0),t[ct]||b.a.prototype.forceUpdate.call(t),g=!1}finally{vt(t,dt,!1),g&&u.dispose()}}});function p(){s=!1;var g=void 0,m=void 0;if(u.track(function(){try{m=Object(y.d)(!1,n)}catch(x){g=x}}),g)throw g;return m}return u.reactComponent=this,p[Qt]=u,this.render=p,p.call(this)}function Oe(e,t){return this.state!==t||!Ft(this.props,e)}function Ce(e,t){var r=At("reactProp_"+t+"_valueHolder"),n=At("reactProp_"+t+"_atomHolder");function s(){return this[n]||vt(this,n,Object(y.o)("reactive "+t)),this[n]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var u=!1;return y.f&&y.e&&(u=Object(y.f)(!0)),s.call(this).reportObserved(),y.f&&y.e&&Object(y.e)(u),this[r]},set:function(u){this[dt]||Ft(this[r],u)?vt(this,r,u):(vt(this,r,u),vt(this,ct,!0),s.call(this).reportChanged(),vt(this,ct,!1))}})}var Ae=typeof Symbol=="function"&&Symbol.for,ve=Ae?Symbol.for("react.forward_ref"):typeof b.e=="function"&&Object(b.e)(function(e){return null}).$$typeof,Tt=Ae?Symbol.for("react.memo"):typeof b.f=="function"&&Object(b.f)(function(e){return null}).$$typeof;function le(e){if(e.isMobxInjector,Tt&&e.$$typeof===Tt)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(ve&&e.$$typeof===ve){var t=e.render;if(typeof t!="function")throw new Error("render property of ForwardRef was not a function");return Object(b.e)(function(){var r=arguments;return Object(b.c)(V,null,function(){return t.apply(void 0,r)})})}return typeof e!="function"||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(b.a,e)?Dt(e):U(e)}if(!b.a)throw new Error("mobx-react requires React to be available");if(!y.C)throw new Error("mobx-react requires mobx to be available");var ft=o(0);o(4),o(8),o(2),o(3),o(52),o(6),o(5),o(11),o(37),o(27),o(21),o(20),o(24),o(22),o(25),o(9),o(17),o(23),o(19),o(192),o(156),o(104),o(157),o(158),o(199),o(61);var ce=function(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s},Fe=function(){this.__data__=[],this.size=0},pr=function(e,t){return e===t||e!=e&&t!=t},Ue=function(e,t){for(var r=e.length;r--;)if(pr(e[r][0],t))return r;return-1},nr=Array.prototype.splice,br=function(e){var t=this.__data__,r=Ue(t,e);return!(r<0)&&(r==t.length-1?t.pop():nr.call(t,r,1),--this.size,!0)},Mr=function(e){var t=this.__data__,r=Ue(t,e);return r<0?void 0:t[r][1]},Le=function(e){return Ue(this.__data__,e)>-1},Yr=function(e,t){var r=this.__data__,n=Ue(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Q(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Q.prototype.clear=Fe,Q.prototype.delete=br,Q.prototype.get=Mr,Q.prototype.has=Le,Q.prototype.set=Yr;var ht=Q,it=function(){this.__data__=new ht,this.size=0},_t=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Kt=function(e){return this.__data__.get(e)},Zt=function(e){return this.__data__.has(e)},pe=o(31),We=pe.a.Symbol,nn=Object.prototype,pn=nn.hasOwnProperty,Hr=nn.toString,Zr=We?We.toStringTag:void 0,ae=function(e){var t=pn.call(e,Zr),r=e[Zr];try{e[Zr]=void 0;var n=!0}catch(u){}var s=Hr.call(e);return n&&(t?e[Zr]=r:delete e[Zr]),s},we=Object.prototype.toString,je=function(e){return we.call(e)},ze=We?We.toStringTag:void 0,vr=function(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":ze&&ze in Object(e)?ae(e):je(e)},Ir=function(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")},Uo,Eo=function(e){if(!Ir(e))return!1;var t=vr(e);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},Go=pe.a["__core-js_shared__"],Li=(Uo=/[^.]+$/.exec(Go&&Go.keys&&Go.keys.IE_PROTO||""))?"Symbol(src)_1."+Uo:"",Cl=function(e){return!!Li&&Li in e},Mu=Function.prototype.toString,eo=function(e){if(e!=null){try{return Mu.call(e)}catch(t){}try{return e+""}catch(t){}}return""},ya=/^\[object .+?Constructor\]$/,fe=Function.prototype,Rl=Object.prototype,Du=fe.toString,Nu=Rl.hasOwnProperty,Tn=RegExp("^"+Du.call(Nu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bn=function(e){return!(!Ir(e)||Cl(e))&&(Eo(e)?Tn:ya).test(eo(e))},Va=function(e,t){return e==null?void 0:e[t]},ho=function(e,t){var r=Va(e,t);return Bn(r)?r:void 0},ro=ho(pe.a,"Map"),yo=ho(Object,"create"),Cu=function(){this.__data__=yo?yo(null):{},this.size=0},Ru=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Qc=Object.prototype.hasOwnProperty,ga=function(e){var t=this.__data__;if(yo){var r=t[e];return r==="__lodash_hash_undefined__"?void 0:r}return Qc.call(t,e)?t[e]:void 0},Jc=Object.prototype.hasOwnProperty,Iu=function(e){var t=this.__data__;return yo?t[e]!==void 0:Jc.call(t,e)},Il=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=yo&&t===void 0?"__lodash_hash_undefined__":t,this};function ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ci.prototype.clear=Cu,ci.prototype.delete=Ru,ci.prototype.get=ga,ci.prototype.has=Iu,ci.prototype.set=Il;var ts=ci,Xo=function(){this.size=0,this.__data__={hash:new ts,map:new(ro||ht),string:new ts}},Lu=function(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null},Wa=function(e,t){var r=e.__data__;return Lu(t)?r[typeof t=="string"?"string":"hash"]:r.map},zu=function(e){var t=Wa(this,e).delete(e);return this.size-=t?1:0,t},Bu=function(e){return Wa(this,e).get(e)},Ll=function(e){return Wa(this,e).has(e)},es=function(e,t){var r=Wa(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}dr.prototype.clear=Xo,dr.prototype.delete=zu,dr.prototype.get=Bu,dr.prototype.has=Ll,dr.prototype.set=es;var hr=dr,rs=function(e,t){var r=this.__data__;if(r instanceof ht){var n=r.__data__;if(!ro||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new hr(n)}return r.set(e,t),this.size=r.size,this};function zi(e){var t=this.__data__=new ht(e);this.size=t.size}zi.prototype.clear=it,zi.prototype.delete=_t,zi.prototype.get=Kt,zi.prototype.has=Zt,zi.prototype.set=rs;var Yo=zi,Fu=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ns=function(e){return this.__data__.has(e)};function Ur(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new hr;++t<r;)this.add(e[t])}Ur.prototype.add=Ur.prototype.push=Fu,Ur.prototype.has=ns;var Uu=Ur,va=function(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Gu=function(e,t){return e.has(t)},Ka=function(e,t,r,n,s,u){var p=1&r,g=e.length,m=t.length;if(g!=m&&!(p&&m>g))return!1;var x=u.get(e),j=u.get(t);if(x&&j)return x==t&&j==e;var D=-1,R=!0,Y=2&r?new Uu:void 0;for(u.set(e,t),u.set(t,e);++D<g;){var J=e[D],nt=t[D];if(n)var yt=p?n(nt,J,D,t,e,u):n(J,nt,D,e,t,u);if(yt!==void 0){if(yt)continue;R=!1;break}if(Y){if(!va(t,function(gt,xt){if(!Gu(Y,xt)&&(J===gt||s(J,gt,r,n,u)))return Y.push(xt)})){R=!1;break}}else if(J!==nt&&!s(J,nt,r,n,u)){R=!1;break}}return u.delete(e),u.delete(t),R},hn=pe.a.Uint8Array,Xu=function(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r},os=function(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r},Yu=We?We.prototype:void 0,Za=Yu?Yu.valueOf:void 0,Bi=function(e,t,r,n,s,u,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new hn(e),new hn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return pr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var g=Xu;case"[object Set]":var m=1&n;if(g||(g=os),e.size!=t.size&&!m)return!1;var x=p.get(e);if(x)return x==t;n|=2,p.set(e,t);var j=Ka(g(e),g(t),n,s,u,p);return p.delete(e),j;case"[object Symbol]":if(Za)return Za.call(e)==Za.call(t)}return!1},jo=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e},jr=Array.isArray,is=function(e,t,r){var n=t(e);return jr(e)?n:jo(n,r(e))},Mn=function(e,t){for(var r=-1,n=e==null?0:e.length,s=0,u=[];++r<n;){var p=e[r];t(p,r,e)&&(u[s++]=p)}return u},as=function(){return[]},us=Object.prototype.propertyIsEnumerable,wn=Object.getOwnPropertySymbols,Dn=wn?function(e){return e==null?[]:(e=Object(e),Mn(wn(e),function(t){return us.call(e,t)}))}:as,Hu=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},sr=function(e){return e!=null&&typeof e=="object"},on=function(e){return sr(e)&&vr(e)=="[object Arguments]"},qa=Object.prototype,cs=qa.hasOwnProperty,Vu=qa.propertyIsEnumerable,$a=on(function(){return arguments}())?on:function(e){return sr(e)&&cs.call(e,"callee")&&!Vu.call(e,"callee")},So=$a,Ho=o(48),Fi=/^(?:0|[1-9]\d*)$/,Nn=function(e,t){var r=typeof e;return!!(t=t!=null?t:9007199254740991)&&(r=="number"||r!="symbol"&&Fi.test(e))&&e>-1&&e%1==0&&e<t},Vo=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},or={};or["[object Float32Array]"]=or["[object Float64Array]"]=or["[object Int8Array]"]=or["[object Int16Array]"]=or["[object Int32Array]"]=or["[object Uint8Array]"]=or["[object Uint8ClampedArray]"]=or["[object Uint16Array]"]=or["[object Uint32Array]"]=!0,or["[object Arguments]"]=or["[object Array]"]=or["[object ArrayBuffer]"]=or["[object Boolean]"]=or["[object DataView]"]=or["[object Date]"]=or["[object Error]"]=or["[object Function]"]=or["[object Map]"]=or["[object Number]"]=or["[object Object]"]=or["[object RegExp]"]=or["[object Set]"]=or["[object String]"]=or["[object WeakMap]"]=!1;var Cn=function(e){return sr(e)&&Vo(e.length)&&!!or[vr(e)]},Po=function(e){return function(t){return e(t)}},sn=o(49),Qa=sn.a&&sn.a.isTypedArray,ma=Qa?Po(Qa):Cn,Wu=Object.prototype.hasOwnProperty,Lr=function(e,t){var r=jr(e),n=!r&&So(e),s=!r&&!n&&Object(Ho.a)(e),u=!r&&!n&&!s&&ma(e),p=r||n||s||u,g=p?Hu(e.length,String):[],m=g.length;for(var x in e)!t&&!Wu.call(e,x)||p&&(x=="length"||s&&(x=="offset"||x=="parent")||u&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||Nn(x,m))||g.push(x);return g},Ja=Object.prototype,Wo=function(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||Ja)},no=function(e,t){return function(r){return e(t(r))}},Ku=no(Object.keys,Object),zl=Object.prototype.hasOwnProperty,Zu=function(e){if(!Wo(e))return Ku(e);var t=[];for(var r in Object(e))zl.call(e,r)&&r!="constructor"&&t.push(r);return t},Vr=function(e){return e!=null&&Vo(e.length)&&!Eo(e)},si=function(e){return Vr(e)?Lr(e):Zu(e)},Ao=function(e){return is(e,si,Dn)},xn=Object.prototype.hasOwnProperty,qu=function(e,t,r,n,s,u){var p=1&r,g=Ao(e),m=g.length;if(m!=Ao(t).length&&!p)return!1;for(var x=m;x--;){var j=g[x];if(!(p?j in t:xn.call(t,j)))return!1}var D=u.get(e),R=u.get(t);if(D&&R)return D==t&&R==e;var Y=!0;u.set(e,t),u.set(t,e);for(var J=p;++x<m;){var nt=e[j=g[x]],yt=t[j];if(n)var gt=p?n(yt,nt,j,t,e,u):n(nt,yt,j,e,t,u);if(!(gt===void 0?nt===yt||s(nt,yt,r,n,u):gt)){Y=!1;break}J||(J=j=="constructor")}if(Y&&!J){var xt=e.constructor,Rt=t.constructor;xt==Rt||!("constructor"in e)||!("constructor"in t)||typeof xt=="function"&&xt instanceof xt&&typeof Rt=="function"&&Rt instanceof Rt||(Y=!1)}return u.delete(e),u.delete(t),Y},Fn=ho(pe.a,"DataView"),li=ho(pe.a,"Promise"),tu=ho(pe.a,"Set"),ko=ho(pe.a,"WeakMap"),Un="[object Map]",Rn="[object Promise]",oo="[object Set]",To="[object WeakMap]",wt="[object DataView]",Nt=eo(Fn),It=eo(ro),te=eo(li),Ge=eo(tu),Qe=eo(ko),Pr=vr;(Fn&&Pr(new Fn(new ArrayBuffer(1)))!=wt||ro&&Pr(new ro)!=Un||li&&Pr(li.resolve())!=Rn||tu&&Pr(new tu)!=oo||ko&&Pr(new ko)!=To)&&(Pr=function(e){var t=vr(e),r=t=="[object Object]"?e.constructor:void 0,n=r?eo(r):"";if(n)switch(n){case Nt:return wt;case It:return Un;case te:return Rn;case Ge:return oo;case Qe:return To}return t});var O=Pr,w="[object Arguments]",A="[object Array]",L="[object Object]",Z=Object.prototype.hasOwnProperty,pt=function(e,t,r,n,s,u){var p=jr(e),g=jr(t),m=p?A:O(e),x=g?A:O(t),j=(m=m==w?L:m)==L,D=(x=x==w?L:x)==L,R=m==x;if(R&&Object(Ho.a)(e)){if(!Object(Ho.a)(t))return!1;p=!0,j=!1}if(R&&!j)return u||(u=new Yo),p||ma(e)?Ka(e,t,r,n,s,u):Bi(e,t,m,r,n,s,u);if(!(1&r)){var Y=j&&Z.call(e,"__wrapped__"),J=D&&Z.call(t,"__wrapped__");if(Y||J){var nt=Y?e.value():e,yt=J?t.value():t;return u||(u=new Yo),s(nt,yt,r,n,u)}}return!!R&&(u||(u=new Yo),qu(e,t,r,n,s,u))},jt=function e(t,r,n,s,u){return t===r||(t==null||r==null||!sr(t)&&!sr(r)?t!=t&&r!=r:pt(t,r,n,s,e,u))},Ut=function(e,t,r,n){var s=r.length,u=s,p=!n;if(e==null)return!u;for(e=Object(e);s--;){var g=r[s];if(p&&g[2]?g[1]!==e[g[0]]:!(g[0]in e))return!1}for(;++s<u;){var m=(g=r[s])[0],x=e[m],j=g[1];if(p&&g[2]){if(x===void 0&&!(m in e))return!1}else{var D=new Yo;if(n)var R=n(x,j,m,e,t,D);if(!(R===void 0?jt(j,x,3,n,D):R))return!1}}return!0},ue=function(e){return e==e&&!Ir(e)},Ze=function(e){for(var t=si(e),r=t.length;r--;){var n=t[r],s=e[n];t[r]=[n,s,ue(s)]}return t},ee=function(e,t){return function(r){return r!=null&&r[e]===t&&(t!==void 0||e in Object(r))}},_r=function(e){var t=Ze(e);return t.length==1&&t[0][2]?ee(t[0][0],t[0][1]):function(r){return r===e||Ut(r,e,t)}},Xe=function(e){return typeof e=="symbol"||sr(e)&&vr(e)=="[object Symbol]"},fr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,io=/^\w*$/,Dr=function(e,t){if(jr(e))return!1;var r=typeof e;return!(r!="number"&&r!="symbol"&&r!="boolean"&&e!=null&&!Xe(e))||io.test(e)||!fr.test(e)||t!=null&&e in Object(t)};function In(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],u=r.cache;if(u.has(s))return u.get(s);var p=e.apply(this,n);return r.cache=u.set(s,p)||u,p};return r.cache=new(In.Cache||hr),r}In.Cache=hr;var Ko=In,Zo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ba=/\\(\\)?/g,$u=function(e){var t=Ko(e,function(n){return r.size===500&&r.clear(),n}),r=t.cache;return t}(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Zo,function(r,n,s,u){t.push(s?u.replace(ba,"$1"):n||r)}),t}),fi=We?We.prototype:void 0,eu=fi?fi.toString:void 0,En=function e(t){if(typeof t=="string")return t;if(jr(t))return ce(t,e)+"";if(Xe(t))return eu?eu.call(t):"";var r=t+"";return r=="0"&&1/t==-1/0?"-0":r},_a=function(e){return e==null?"":En(e)},Ui=function(e,t){return jr(e)?e:Dr(e,t)?[e]:$u(_a(e))},pi=function(e){if(typeof e=="string"||Xe(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t},hi=function(e,t){for(var r=0,n=(t=Ui(t,e)).length;e!=null&&r<n;)e=e[pi(t[r++])];return r&&r==n?e:void 0},ru=function(e,t,r){var n=e==null?void 0:hi(e,t);return n===void 0?r:n},fg=function(e,t){return e!=null&&t in Object(e)},pg=function(e,t,r){for(var n=-1,s=(t=Ui(t,e)).length,u=!1;++n<s;){var p=pi(t[n]);if(!(u=e!=null&&r(e,p)))break;e=e[p]}return u||++n!=s?u:!!(s=e==null?0:e.length)&&Vo(s)&&Nn(p,s)&&(jr(e)||So(e))},rh=function(e,t){return e!=null&&pg(e,t,fg)},ss=function(e,t){return Dr(e)&&ue(t)?ee(pi(e),t):function(r){var n=ru(r,e);return n===void 0&&n===t?rh(r,e):jt(t,n,3)}},nu=function(e){return e},Bl=function(e){return function(t){return t==null?void 0:t[e]}},hg=function(e){return function(t){return hi(t,e)}},nh=function(e){return Dr(e)?Bl(pi(e)):hg(e)},Fl=function(e){return typeof e=="function"?e:e==null?nu:typeof e=="object"?jr(e)?ss(e[0],e[1]):_r(e):nh(e)},oh=function(e){return function(t,r,n){for(var s=-1,u=Object(t),p=n(t),g=p.length;g--;){var m=p[e?g:++s];if(r(u[m],m,u)===!1)break}return t}}(),ln=function(e,t){return function(r,n){if(r==null)return r;if(!Vr(r))return e(r,n);for(var s=r.length,u=t?s:-1,p=Object(r);(t?u--:++u<s)&&n(p[u],u,p)!==!1;);return r}}(function(e,t){return e&&oh(e,t,si)}),jn=function(e,t){var r=-1,n=Vr(e)?Array(e.length):[];return ln(e,function(s,u,p){n[++r]=t(s,u,p)}),n},ls=function(e,t){return(jr(e)?ce:jn)(e,Fl(t))};Object(y.n)({isolateGlobalState:!0});var fs=function(){try{var e=ho(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),ps=function(e,t,r){t=="__proto__"&&fs?fs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},dg=Object.prototype.hasOwnProperty,ou=function(e,t,r){var n=e[t];dg.call(e,t)&&pr(n,r)&&(r!==void 0||t in e)||ps(e,t,r)},qo=function(e,t,r,n){var s=!r;r||(r={});for(var u=-1,p=t.length;++u<p;){var g=t[u],m=n?n(r[g],e[g],g,r,e):void 0;m===void 0&&(m=e[g]),s?ps(r,g,m):ou(r,g,m)}return r},Ul=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Oa=Math.max,iu=function(e,t,r){return t=Oa(t===void 0?e.length-1:t,0),function(){for(var n=arguments,s=-1,u=Oa(n.length-t,0),p=Array(u);++s<u;)p[s]=n[t+s];s=-1;for(var g=Array(t+1);++s<t;)g[s]=n[s];return g[t]=r(p),Ul(e,this,g)}},Qu=function(e){return function(){return e}},hs=fs?function(e,t){return fs(e,"toString",{configurable:!0,enumerable:!1,value:Qu(t),writable:!0})}:nu,au=Date.now,yg=function(e){var t=0,r=0;return function(){var n=au(),s=16-(n-r);if(r=n,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},ih=yg(hs),gg=function(e,t){return ih(iu(e,t,nu),e+"")},vg=function(e,t,r){if(!Ir(r))return!1;var n=typeof t;return!!(n=="number"?Vr(r)&&Nn(t,r.length):n=="string"&&t in r)&&pr(r[t],e)},ah=function(e){return gg(function(t,r){var n=-1,s=r.length,u=s>1?r[s-1]:void 0,p=s>2?r[2]:void 0;for(u=e.length>3&&typeof u=="function"?(s--,u):void 0,p&&vg(r[0],r[1],p)&&(u=s<3?void 0:u,s=1),t=Object(t);++n<s;){var g=r[n];g&&e(t,g,n,u)}return t})},ds=Object.prototype.hasOwnProperty,yn=ah(function(e,t){if(Wo(t)||Vr(t))qo(t,si(t),e);else for(var r in t)ds.call(t,r)&&ou(e,r,t[r])}),uh=function(e,t,r,n){if(!Ir(e))return e;for(var s=-1,u=(t=Ui(t,e)).length,p=u-1,g=e;g!=null&&++s<u;){var m=pi(t[s]),x=r;if(m==="__proto__"||m==="constructor"||m==="prototype")return e;if(s!=p){var j=g[m];(x=n?n(j,m,g):void 0)===void 0&&(x=Ir(j)?j:Nn(t[s+1])?[]:{})}ou(g,m,x),g=g[m]}return e},B=function(e,t,r){for(var n=-1,s=t.length,u={};++n<s;){var p=t[n],g=hi(e,p);r(g,p)&&uh(u,Ui(p,e),g)}return u},uu=function(e,t){return B(e,t,function(r,n){return rh(e,n)})},Ju=We?We.isConcatSpreadable:void 0,go=function(e){return jr(e)||So(e)||!!(Ju&&e&&e[Ju])},ur=function e(t,r,n,s,u){var p=-1,g=t.length;for(n||(n=go),u||(u=[]);++p<g;){var m=t[p];r>0&&n(m)?r>1?e(m,r-1,n,s,u):jo(u,m):s||(u[u.length]=m)}return u},wa=function(e){return e!=null&&e.length?ur(e,1):[]},Or,$o,Gi,vo,Gl,Xl,ch,sh,ys,cu,tc,lh,Yl,Qo,gs,Xi,ao,Hl,Vl,di=function(e){return ih(iu(e,void 0,wa),e+"")}(function(e,t){return e==null?{}:uu(e,t)});function Nr(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function fh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ph(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wr(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var yr,dn,qe,qr,de,Ar,vs={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotation:!1,nodeSelectedOutline:!0,nodeTextEdit:!1,edgeTextEdit:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},yi=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","allowRotation","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],Wl=($o=Wr((Or=function(){function e(n){(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,e),Nr(this,"isSilentMode",$o,this),Nr(this,"stopZoomGraph",Gi,this),Nr(this,"stopScrollGraph",vo,this),Nr(this,"stopMoveGraph",Gl,this),Nr(this,"adjustEdge",Xl,this),Nr(this,"adjustEdgeMiddle",ch,this),Nr(this,"adjustEdgeStartAndEnd",sh,this),Nr(this,"adjustNodePosition",ys,this),Nr(this,"hideAnchors",cu,this),Nr(this,"allowRotation",tc,this),Nr(this,"hoverOutline",lh,this),Nr(this,"nodeSelectedOutline",Yl,this),Nr(this,"edgeSelectedOutline",Qo,this),Nr(this,"nodeTextEdit",gs,this),Nr(this,"edgeTextEdit",Xi,this),Nr(this,"nodeTextDraggable",ao,this),Nr(this,"edgeTextDraggable",Hl,this),Nr(this,"autoExpand",Vl,this),ph(this,"multipleSelectKey",""),ph(this,"defaultConfig",{}),yn(this,this.getConfigDetail(n))}var t,r;return t=e,(r=[{key:"updateEditConfig",value:function(n){var s=this.getConfigDetail(n);yn(this,s)}},{key:"getConfigDetail",value:function(n){var s=n.isSilentMode,u=n.textEdit,p={};if(s===!1&&yn(p,this.defaultConfig),s===!0&&s!==this.isSilentMode){var g=di(vs,yi);this.defaultConfig={stopZoomGraph:this.stopZoomGraph,stopScrollGraph:this.stopScrollGraph,stopMoveGraph:this.stopMoveGraph,adjustEdge:this.adjustEdge,adjustEdgeMiddle:this.adjustEdgeMiddle,adjustEdgeStartAndEnd:this.adjustEdgeStartAndEnd,adjustNodePosition:this.adjustNodePosition,hideAnchors:this.hideAnchors,allowRotation:this.allowRotation,hoverOutline:this.hoverOutline,nodeSelectedOutline:this.nodeSelectedOutline,edgeSelectedOutline:this.edgeSelectedOutline,nodeTextEdit:this.nodeTextEdit,edgeTextEdit:this.edgeTextEdit,nodeTextDraggable:this.nodeTextDraggable,edgeTextDraggable:this.edgeTextDraggable,autoExpand:this.autoExpand},yn(p,g)}u===!1&&yn(p,{nodeTextEdit:!1,edgeTextEdit:!1});var m=di(n,yi);return yn(p,m)}},{key:"getConfig",value:function(){return di(this,yi)}}])&&fh(t.prototype,r),e}()).prototype,"isSilentMode",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Gi=Wr(Or.prototype,"stopZoomGraph",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vo=Wr(Or.prototype,"stopScrollGraph",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Gl=Wr(Or.prototype,"stopMoveGraph",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xl=Wr(Or.prototype,"adjustEdge",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ch=Wr(Or.prototype,"adjustEdgeMiddle",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sh=Wr(Or.prototype,"adjustEdgeStartAndEnd",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ys=Wr(Or.prototype,"adjustNodePosition",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),cu=Wr(Or.prototype,"hideAnchors",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tc=Wr(Or.prototype,"allowRotation",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lh=Wr(Or.prototype,"hoverOutline",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Yl=Wr(Or.prototype,"nodeSelectedOutline",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qo=Wr(Or.prototype,"edgeSelectedOutline",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),gs=Wr(Or.prototype,"nodeTextEdit",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Xi=Wr(Or.prototype,"edgeTextEdit",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ao=Wr(Or.prototype,"nodeTextDraggable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Hl=Wr(Or.prototype,"edgeTextDraggable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vl=Wr(Or.prototype,"autoExpand",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wr(Or.prototype,"updateEditConfig",[y.k],Object.getOwnPropertyDescriptor(Or.prototype,"updateEditConfig"),Or.prototype),Or);o(65),o(66),function(e){e[e.DEFAULT=1]="DEFAULT",e[e.TEXT_EDIT=2]="TEXT_EDIT",e[e.SHOW_MENU=3]="SHOW_MENU",e[e.ALLOW_CONNECT=4]="ALLOW_CONNECT",e[e.NOT_ALLOW_CONNECT=5]="NOT_ALLOW_CONNECT"}(yr||(yr={})),function(e){e.KEY="logic-flow",e.NODE_NAME="lf-node",e.EDGE_NAME="lf-edge"}(dn||(dn={})),function(e){e.NODE="node",e.CIRCLE_NODE="circle-node",e.POLYGON_NODE="polygon-node",e.RECT_NODE="rect-node",e.TEXT_NODE="text-node",e.ELLIPSE_NODE="ellipse-node",e.DIAMOND_NODE="diamond-node",e.HTML_NODE="html-node",e.EDGE="edge",e.LINE_EDGE="line-edge",e.POLYLINE_EDGE="polyline-edge",e.BEZIER_EDGE="bezier-edge",e.GRAPH="graph"}(qe||(qe={})),function(e){e.NODE="node",e.EDGE="edge",e.GRAPH="graph"}(qr||(qr={})),function(e){e.ELEMENT_CLICK="element:click",e.NODE_CLICK="node:click",e.NODE_DBCLICK="node:dbclick",e.NODE_DELETE="node:delete",e.NODE_ADD="node:add",e.NODE_GROUP_COPY="node:group-copy-add",e.NODE_DND_ADD="node:dnd-add",e.NODE_DND_DRAG="node:dnd-drag",e.NODE_MOUSEDOWN="node:mousedown",e.NODE_DRAGSTART="node:dragstart",e.NODE_DRAG="node:drag",e.NODE_DROP="node:drop",e.NODE_MOUSEUP="node:mouseup",e.NODE_MOUSEMOVE="node:mousemove",e.NODE_MOUSEENTER="node:mouseenter",e.NODE_MOUSELEAVE="node:mouseleave",e.NODE_CONTEXTMENU="node:contextmenu",e.NODE_ROTATE="node:rotate",e.EDGE_DELETE="edge:delete",e.EDGE_ADD="edge:add",e.EDGE_CLICK="edge:click",e.EDGE_DBCLICK="edge:dbclick",e.EDGE_MOUSEENTER="edge:mouseenter",e.EDGE_MOUSELEAVE="edge:mouseleave",e.EDGE_CONTEXTMENU="edge:contextmenu",e.EDGE_ADJUST="edge:adjust",e.EDGE_EXCHANGE_NODE="edge:exchange-node",e.ANCHOR_DRAGSTART="anchor:dragstart",e.ANCHOR_DRAG="anchor:drag",e.ANCHOR_DROP="anchor:drop",e.ANCHOR_DRAGEND="anchor:dragend",e.ADJUST_POINT_MOUSEDOWN="adjustPoint:mousedown",e.ADJUST_POINT_MOUSEUP="adjustPoint:mouseup",e.ADJUST_POINT_MOUSEMOVE="adjustPoint:mousemove",e.ADJUST_POINT_DRAGSTART="adjustPoint:dragstart",e.ADJUST_POINT_DRAG="adjustPoint:drag",e.ADJUST_POINT_DROP="adjustPoint:drop",e.ADJUST_POINT_DRAGEND="adjustPoint:dragend",e.BLANK_MOUSEDOWN="blank:mousedown",e.BLANK_DRAGSTART="blank:dragstart",e.BLANK_DRAG="blank:drag",e.BLANK_DROP="blank:drop",e.BLANK_MOUSEMOVE="blank:mousemove",e.BLANK_MOUSEUP="blank:mouseup",e.BLANK_CLICK="blank:click",e.BLANK_CONTEXTMENU="blank:contextmenu",e.SELECTION_MOUSEDOWN="selection:mousedown",e.SELECTION_DRAGSTART="selection:dragstart",e.SELECTION_DRAG="selection:drag",e.SELECTION_DROP="selection:drop",e.SELECTION_MOUSEMOVE="selection:mousemove",e.SELECTION_MOUSEUP="selection:mouseup",e.SELECTION_CONTEXTMENU="selection:contextmenu",e.CONNECTION_NOT_ALLOWED="connection:not-allowed",e.HISTORY_CHANGE="history:change",e.TEXT_UPDATE="text:update",e.GRAPH_TRANSFORM="graph:transform",e.GRAPH_RENDERED="graph:rendered"}(de||(de={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(Ar||(Ar={}));var zr,Gr,hh,dh,ms,su,Kl,lu,bs;function fu(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return Zl(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Zl(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  54. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Zl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gi(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function mg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mo(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.INCREASE=1]="INCREASE"})(zr||(zr={}));var yh={false:[-1/0,-1/0,1/0,1/0],true:[0,0,0,0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},gh=(Gr=function(){function e(n,s){(function(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")})(this,e),vi(this,"MINI_SCALE_SIZE",.2),vi(this,"MAX_SCALE_SIZE",16),gi(this,"SCALE_X",hh,this),gi(this,"SKEW_Y",dh,this),gi(this,"SKEW_X",ms,this),gi(this,"SCALE_Y",su,this),gi(this,"TRANSLATE_X",Kl,this),gi(this,"TRANSLATE_Y",lu,this),gi(this,"ZOOM_SIZE",bs,this),vi(this,"eventCenter",void 0),vi(this,"translateLimitMinX",void 0),vi(this,"translateLimitMinY",void 0),vi(this,"translateLimitMaxX",void 0),vi(this,"translateLimitMaxY",void 0),this.eventCenter=n;var u=s.stopMoveGraph,p=u!==void 0&&u;this.updateTranslateLimits(p)}var t,r;return t=e,r=[{key:"setZoomMiniSize",value:function(n){this.MINI_SCALE_SIZE=n}},{key:"setZoomMaxSize",value:function(n){this.MAX_SCALE_SIZE=n}},{key:"HtmlPointToCanvasPoint",value:function(n){var s=fu(n,2),u=s[0],p=s[1];return[(u-this.TRANSLATE_X)/this.SCALE_X,(p-this.TRANSLATE_Y)/this.SCALE_Y]}},{key:"CanvasPointToHtmlPoint",value:function(n){var s=fu(n,2),u=s[0],p=s[1];return[u*this.SCALE_X+this.TRANSLATE_X,p*this.SCALE_Y+this.TRANSLATE_Y]}},{key:"moveCanvasPointByHtml",value:function(n,s,u){var p=fu(n,2),g=p[0],m=p[1];return[g+s/this.SCALE_X,m+u/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(n,s){return[n/this.SCALE_X,s/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var n=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(n,")")}}},{key:"zoom",value:function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0],s=arguments.length>1?arguments[1]:void 0,u=this.SCALE_X,p=this.SCALE_Y;return n===!0?(u+=this.ZOOM_SIZE,p+=this.ZOOM_SIZE):n===!1?(u-=this.ZOOM_SIZE,p-=this.ZOOM_SIZE):typeof n=="number"&&(u=n,p=n),u<this.MINI_SCALE_SIZE||u>this.MAX_SCALE_SIZE||(s&&(this.TRANSLATE_X-=(u-this.SCALE_X)*s[0],this.TRANSLATE_Y-=(p-this.SCALE_Y)*s[1]),this.SCALE_X=u,this.SCALE_Y=p,this.emitGraphTransform("zoom")),"".concat(100*this.SCALE_X,"%")}},{key:"emitGraphTransform",value:function(n){this.eventCenter.emit(de.GRAPH_TRANSFORM,{type:n,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})}},{key:"resetZoom",value:function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")}},{key:"translate",value:function(n,s){this.TRANSLATE_X+n<=this.translateLimitMaxX&&this.TRANSLATE_X+n>=this.translateLimitMinX&&(this.TRANSLATE_X+=n),this.TRANSLATE_Y+s<=this.translateLimitMaxY&&this.TRANSLATE_Y+s>=this.translateLimitMinY&&(this.TRANSLATE_Y+=s),this.emitGraphTransform("translate")}},{key:"focusOn",value:function(n,s,u,p){var g=fu(this.CanvasPointToHtmlPoint([n,s]),2),m=u/2-g[0],x=p/2-g[1];this.TRANSLATE_X+=m,this.TRANSLATE_Y+=x,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(n){var s=fu(Array.isArray(n)&&n.length===4?n:yh[n.toString()],4);this.translateLimitMinX=s[0],this.translateLimitMinY=s[1],this.translateLimitMaxX=s[2],this.translateLimitMaxY=s[3]}}],r&&mg(t.prototype,r),e}(),hh=mo(Gr.prototype,"SCALE_X",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),dh=mo(Gr.prototype,"SKEW_Y",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ms=mo(Gr.prototype,"SKEW_X",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),su=mo(Gr.prototype,"SCALE_Y",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Kl=mo(Gr.prototype,"TRANSLATE_X",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),lu=mo(Gr.prototype,"TRANSLATE_Y",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),bs=mo(Gr.prototype,"ZOOM_SIZE",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),mo(Gr.prototype,"zoom",[y.k],Object.getOwnPropertyDescriptor(Gr.prototype,"zoom"),Gr.prototype),mo(Gr.prototype,"resetZoom",[y.k],Object.getOwnPropertyDescriptor(Gr.prototype,"resetZoom"),Gr.prototype),mo(Gr.prototype,"translate",[y.k],Object.getOwnPropertyDescriptor(Gr.prototype,"translate"),Gr.prototype),mo(Gr.prototype,"focusOn",[y.k],Object.getOwnPropertyDescriptor(Gr.prototype,"focusOn"),Gr.prototype),Gr),_s=function(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e},vh=function(e,t){return e&&qo(t,si(t),e)},mh=function(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t},bh=Object.prototype.hasOwnProperty,ql=function(e){if(!Ir(e))return mh(e);var t=Wo(e),r=[];for(var n in e)(n!="constructor"||!t&&bh.call(e,n))&&r.push(n);return r},pu=function(e){return Vr(e)?Lr(e,!0):ql(e)},$l=function(e,t){return e&&qo(t,pu(t),e)},Os=o(107),$e=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},bg=function(e,t){return qo(e,Dn(e),t)},Ql=no(Object.getPrototypeOf,Object),hu=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)jo(t,Dn(e)),e=Ql(e);return t}:as,_h=function(e,t){return qo(e,hu(e),t)},_g=function(e){return is(e,pu,hu)},Og=Object.prototype.hasOwnProperty,bo=function(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Og.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Jl=function(e){var t=new e.constructor(e.byteLength);return new hn(t).set(new hn(e)),t},ws=function(e,t){var r=t?Jl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},tf=/\w*$/,Oh=function(e){var t=new e.constructor(e.source,tf.exec(e));return t.lastIndex=e.lastIndex,t},ef=We?We.prototype:void 0,Gn=ef?ef.valueOf:void 0,Yi=function(e){return Gn?Object(Gn.call(e)):{}},xs=function(e,t){var r=t?Jl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},wh=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Jl(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return ws(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return xs(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return Oh(e);case"[object Symbol]":return Yi(e)}},ec=Object.create,xh=function(){function e(){}return function(t){if(!Ir(t))return{};if(ec)return ec(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Es=function(e){return typeof e.constructor!="function"||Wo(e)?{}:xh(Ql(e))},Eh=function(e){return sr(e)&&O(e)=="[object Map]"},js=sn.a&&sn.a.isMap,rf=js?Po(js):Eh,Hi=function(e){return sr(e)&&O(e)=="[object Set]"},jh=sn.a&&sn.a.isSet,Vi=jh?Po(jh):Hi,nf="[object Arguments]",of="[object Function]",af="[object Object]",kr={};kr[nf]=kr["[object Array]"]=kr["[object ArrayBuffer]"]=kr["[object DataView]"]=kr["[object Boolean]"]=kr["[object Date]"]=kr["[object Float32Array]"]=kr["[object Float64Array]"]=kr["[object Int8Array]"]=kr["[object Int16Array]"]=kr["[object Int32Array]"]=kr["[object Map]"]=kr["[object Number]"]=kr["[object Object]"]=kr["[object RegExp]"]=kr["[object Set]"]=kr["[object String]"]=kr["[object Symbol]"]=kr["[object Uint8Array]"]=kr["[object Uint8ClampedArray]"]=kr["[object Uint16Array]"]=kr["[object Uint32Array]"]=!0,kr["[object Error]"]=kr[of]=kr["[object WeakMap]"]=!1;var Sh=function e(t,r,n,s,u,p){var g,m=1&r,x=2&r,j=4&r;if(n&&(g=u?n(t,s,u,p):n(t)),g!==void 0)return g;if(!Ir(t))return t;var D=jr(t);if(D){if(g=bo(t),!m)return $e(t,g)}else{var R=O(t),Y=R==of||R=="[object GeneratorFunction]";if(Object(Ho.a)(t))return Object(Os.a)(t,m);if(R==af||R==nf||Y&&!u){if(g=x||Y?{}:Es(t),!m)return x?_h(t,$l(g,t)):bg(t,vh(g,t))}else{if(!kr[R])return u?t:{};g=wh(t,R,m)}}p||(p=new Yo);var J=p.get(t);if(J)return J;p.set(t,g),Vi(t)?t.forEach(function(yt){g.add(e(yt,r,n,yt,t,p))}):rf(t)&&t.forEach(function(yt,gt){g.set(gt,e(yt,r,n,gt,t,p))});var nt=D?void 0:(j?x?_g:Ao:x?pu:si)(t);return _s(nt||t,function(yt,gt){nt&&(yt=t[gt=yt]),ou(g,gt,e(yt,r,n,gt,t,p))}),g},Cr=function(e){return Sh(e,5)},Ss=function(e,t,r){(r!==void 0&&!pr(e[t],r)||r===void 0&&!(t in e))&&ps(e,t,r)},Xn=function(e){return sr(e)&&Vr(e)},Jo=Function.prototype,Ps=Object.prototype,xa=Jo.toString,Ph=Ps.hasOwnProperty,Ah=xa.call(Object),kh=function(e){if(!sr(e)||vr(e)!="[object Object]")return!1;var t=Ql(e);if(t===null)return!0;var r=Ph.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&xa.call(r)==Ah},Wi=function(e,t){if((t!=="constructor"||typeof e[t]!="function")&&t!="__proto__")return e[t]},rc=function(e){return qo(e,pu(e))},Th=function(e,t,r,n,s,u,p){var g=Wi(e,r),m=Wi(t,r),x=p.get(m);if(x)Ss(e,r,x);else{var j=u?u(g,m,r+"",e,t,p):void 0,D=j===void 0;if(D){var R=jr(m),Y=!R&&Object(Ho.a)(m),J=!R&&!Y&&ma(m);j=m,R||Y||J?jr(g)?j=g:Xn(g)?j=$e(g):Y?(D=!1,j=Object(Os.a)(m,!0)):J?(D=!1,j=xs(m,!0)):j=[]:kh(m)||So(m)?(j=g,So(g)?j=rc(g):Ir(g)&&!Eo(g)||(j=Es(m))):D=!1}D&&(p.set(m,j),s(j,m,n,u,p),p.delete(m)),Ss(e,r,j)}},Mh=function e(t,r,n,s,u){t!==r&&oh(r,function(p,g){if(u||(u=new Yo),Ir(p))Th(t,r,g,n,e,s,u);else{var m=s?s(Wi(t,g),p,g+"",t,r,u):void 0;m===void 0&&(m=p),Ss(t,g,m)}},pu)},Ea=ah(function(e,t,r){Mh(e,t,r)}),Dh={baseNode:{fill:"#FFFFFF",stroke:"#000000",strokeWidth:2},baseEdge:{stroke:"#000000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000000",fill:"#FFFFFF",r:4,hover:{fill:"#949494",fillOpacity:.5,stroke:"#949494",r:10}},nodeText:{color:"#000000",overflowMode:"default",lineHeight:1.2,fontSize:12},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#FFFFFF"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",stroke:"#949494",fillOpacity:1}},arrow:{offset:10,verticalLength:5},anchorLine:{stroke:"#000000",strokeWidth:2,strokeDasharray:"3,2"},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#FFFFFF",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10 10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5}},nc=function(e){var t=Cr(Dh);return e&&(t=Ea(t,e)),t};o(82),o(166);function uf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var As=function(){function e(){var n,s,u;(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,e),u={},(s="_events")in(n=this)?Object.defineProperty(n,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[s]=u}var t,r;return t=e,(r=[{key:"on",value:function(n,s,u){var p=this;return n==null||n.split(",").forEach(function(g){g=g.trim(),p._events[g]||(p._events[g]=[]),p._events[g].push({callback:s,once:!!u})}),this}},{key:"once",value:function(n,s){var u=this;n==null||n.split(",").forEach(function(p){return p=p.trim(),u.on(p,s,!0)})}},{key:"emit",value:function(n,s){var u=this;n==null||n.split(",").forEach(function(p){var g=u._events[p]||[],m=u._events["*"]||[],x=function(j){for(var D=j.length,R=0;R<D;R++)if(j[R]){var Y=j[R],J=Y.callback;Y.once&&(j.splice(R,1),j.length===0&&delete u._events[p],D--,R--),J.apply(u,[s])}};x(g),x(m)})}},{key:"off",value:function(n,s){var u=this;return n||(this._events={}),n.split(",").forEach(function(p){if(s){for(var g=u._events[p]||[],m=g.length,x=0;x<m;x++)g[x].callback===s&&(g.splice(x,1),m--,x--);g.length===0&&delete u._events[p]}else delete u._events[p]}),this}},{key:"getEvents",value:function(){return this._events}}])&&uf(t.prototype,r),e}();function Ki(e,t){return t*Math.round(e/t)||e}function ks(e,t){return e%t}function Ts(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return Ms(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Ms(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  55. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ms(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var cf=function(e,t,r){var n=Ts(e,2),s=n[0],u=n[1],p=Ts(t,2),g=p[0],m=p[1],x=Ts(r,2),j=x[0],D=x[1];return s>g&&s<j&&u>m&&u<D},sf=function(e,t){var r=!1;switch(t.multipleSelectKey){case"meta":r=e.metaKey;break;case"alt":r=e.altKey;break;case"shift":r=e.shiftKey;break;case"ctrl":r=e.ctrlKey;break;default:r=!1}return r};o(167),o(126),o(83),o(29),o(12),o(13),o(14),o(47);var mi=function(e){return function(t,r,n){var s=Object(t);if(!Vr(t)){var u=Fl(r);t=si(t),r=function(g){return u(s[g],g,s)}}var p=e(t,r,n);return p>-1?s[u?t[p]:p]:void 0}},Nh=function(e,t,r,n){for(var s=e.length,u=r+(n?1:-1);n?u--:++u<s;)if(t(e[u],u,e))return u;return-1},Ch=/\s/,wg=function(e){for(var t=e.length;t--&&Ch.test(e.charAt(t)););return t},Rh=/^\s+/,bi=function(e){return e&&e.slice(0,wg(e)+1).replace(Rh,"")},lf=/^[-+]0x[0-9a-f]+$/i,ff=/^0b[01]+$/i,pf=/^0o[0-7]+$/i,Ds=parseInt,Zi=function(e){if(typeof e=="number")return e;if(Xe(e))return NaN;if(Ir(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ir(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bi(e);var r=ff.test(e);return r||pf.test(e)?Ds(e.slice(2),r?2:8):lf.test(e)?NaN:+e},De=1/0,Ns=function(e){return e?(e=Zi(e))===De||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:e===0?e:0},hf=function(e){var t=Ns(e),r=t%1;return t==t?r?t-r:t:0},ja=Math.max,oc,df=mi(function(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var s=r==null?0:hf(r);return s<0&&(s=ja(n+s,0)),Nh(e,Fl(t),s)}),Sn=new Uint8Array(16);function Ih(){if(!oc&&!(oc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oc(Sn)}for(var Lh=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xg=function(e){return typeof e=="string"&&Lh.test(e)},Rr=[],gn=0;gn<256;++gn)Rr.push((gn+256).toString(16).substr(1));var yf=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Rr[e[t+0]]+Rr[e[t+1]]+Rr[e[t+2]]+Rr[e[t+3]]+"-"+Rr[e[t+4]]+Rr[e[t+5]]+"-"+Rr[e[t+6]]+Rr[e[t+7]]+"-"+Rr[e[t+8]]+Rr[e[t+9]]+"-"+Rr[e[t+10]]+Rr[e[t+11]]+Rr[e[t+12]]+Rr[e[t+13]]+Rr[e[t+14]]+Rr[e[t+15]]).toLowerCase();if(!xg(r))throw TypeError("Stringified UUID is invalid");return r},ic=function(e,t,r){var n=(e=e||{}).random||(e.rng||Ih)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var s=0;s<16;++s)t[r+s]=n[s];return t}return yf(n)},qi=function(){return ic()},ac=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=e.nodes.reduce(function(n,s){return n[s.id]=t+ic(),s.id=n[s.id],n},{});return e.edges.forEach(function(n){n.id=t+ic(),n.sourceNodeId=r[n.sourceNodeId],n.targetNodeId=r[n.targetNodeId]}),e},du=(o(105),o(127),o(207),function(e,t,r){var n=e.x,s=e.y,u=t.x,p=t.y,g=r.x,m=r.y,x=(m-p)/(g-u),j=p-x*u;return n>=u&&n<=g&&s>=p&&s<=m&&Math.abs(s-x*n+j)<Number.EPSILON});function Cs(e){return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cs(e)}function gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function vf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gf(Object(r),!0).forEach(function(n){Eg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mt,mf,yu,Rs,bf,_f,uc,Of,Mo,$i,wf,zh,Bh,Fh,xf,Ef,jf,Sf,Uh,Gh,Xh,Yn=function(e){return e.anchors},Is=function(e,t){for(var r,n=t.nodes,s=n.length-1;s>=0;s--){var u=n[s];if(jg(e,u)){var p=u.getTargetAnchor(e);if(p){var g={node:u,anchorIndex:p.index,anchor:p.anchor};r&&!Yh(u,r.node,t)||(r=g)}}}return r},Yh=function(e,t,r){return e.zIndex>t.zIndex||r.nodesMap[e.id].index>r.nodesMap[t.id].index},Do=function(e,t,r,n){return Math.hypot(e-r,t-n)},ti=function(e,t){var r=!1,n=uo(t);return e.x>=n.minX-0&&e.x<=n.maxX+0&&e.y>=n.minY-0&&e.y<=n.maxY+0&&(r=!0),r},jg=function(e,t){var r=!1,n=uo(t);return e.x>=n.minX-5&&e.x<=n.maxX+5&&e.y>=n.minY-5&&e.y<=n.maxY+5&&(r=!0),r},uo=function(e){var t=e.x,r=e.y,n=e.width,s=e.height;return{minX:t-n/2,minY:r-s/2,maxX:t+n/2,maxY:r+s/2,x:t,y:r,width:n,height:s,centerX:t,centerY:r}},Hh=function(e,t,r){var n,s=function(p){var g=p,m=g.x,x=g.y,j=g.width,D=g.height,R=g.radius;return[{x:m-j/2+R,y:x-D/2+R,r:R},{x:m+j/2-R,y:x-D/2+R,r:R},{x:m-j/2+R,y:x+D/2-R,r:R},{x:m+j/2-R,y:x+D/2-R,r:R}]}(r),u=Number.MAX_SAFE_INTEGER;return s.forEach(function(p){var g=Do(e.x,e.y,p.x,p.y);g<u&&(u=g,n=p)}),cc(e,t,n)},cc=function(e,t,r){var n,s=r,u=s.x,p=s.y,g=s.r;if(t===Ar.HORIZONTAL){var m=u-Math.sqrt(g*g-(e.y-p)*(e.y-p)),x=u+Math.sqrt(g*g-(e.y-p)*(e.y-p));n={x:Math.abs(m-e.x)<Math.abs(x-e.x)?m:x,y:e.y}}else if(t===Ar.VERTICAL){var j=p-Math.sqrt(g*g-(e.x-u)*(e.x-u)),D=p+Math.sqrt(g*g-(e.x-u)*(e.x-u)),R=Math.abs(j-e.y)<Math.abs(D-e.y)?j:D;n={x:e.x,y:R}}return n},Pf=function(e,t){var r=t,n=!1,s=r.x-r.width/2+r.radius,u=r.x+r.width/2-r.radius,p=r.y-r.height/2+r.radius,g=r.y+r.height/2-r.radius,m=r.x,x=r.y,j=r.width,D=r.height;return e.y===x+D/2||e.y===x-D/2?n=e.x>s&&e.x<u:e.x!==m+j/2&&e.x!==m-j/2||(n=e.y>p&&e.y<g),n},Vh=function(e,t,r){var n,s=r,u=s.x,p=s.y,g=s.rx,m=s.ry;if(t===Ar.HORIZONTAL){var x=u-Math.sqrt(g*g-(e.y-p)*(e.y-p)*g*g/(m*m)),j=u+Math.sqrt(g*g-(e.y-p)*(e.y-p)*g*g/(m*m));n={x:Math.abs(x-e.x)<Math.abs(j-e.x)?x:j,y:e.y}}else if(t===Ar.VERTICAL){var D=p-Math.sqrt(m*m-(e.x-u)*(e.x-u)*m*m/(g*g)),R=p+Math.sqrt(m*m-(e.x-u)*(e.x-u)*m*m/(g*g)),Y=Math.abs(D-e.y)<Math.abs(R-e.y)?D:R;n={x:e.x,y:Y}}return n},Wh=function(e,t,r){for(var n,s=r.pointsPosition,u=Number.MAX_SAFE_INTEGER,p=[],g=0;g<s.length;g++)p.push({start:s[g],end:s[(g+1)%s.length]});return p.forEach(function(m){var x=m.start,j=m.end,D=x,R=j;x.x>j.x&&(D=j,R=x);var Y={x:e.x,y:e.y};if(D.x===R.x&&t===Ar.HORIZONTAL&&(Y={x:D.x,y:e.y}),D.y===R.y&&t===Ar.VERTICAL&&(Y={x:e.x,y:D.y}),D.x!==R.x&&D.y!==R.y){var J=(R.y-D.y)/(R.x-D.x),nt=(D.x*R.y-R.x*D.y)/(D.x-R.x);t===Ar.HORIZONTAL?Y={x:(e.y-nt)/J,y:e.y}:t===Ar.VERTICAL&&(Y={x:e.x,y:J*e.x+nt})}if(du(Y,x,j)){var yt=Do(Y.x,Y.y,e.x,e.y);yt<u&&(u=yt,n=Y)}}),n},Kh=function(e,t,r,n){var s=e.x,u=e.y;return t.x>e.x?s=e.x+r/2:t.x<e.x&&(s=e.x-r/2),t.y>e.y?u=e.y+n/2:t.y<e.y&&(u=e.y-n/2),{x:s,y:u}},Zh=function(e){var t=e.rows,r=e.style,n=e.rowsLength,s=e.className,u=document.createElement("div");u.style.fontSize=r.fontSize,u.style.width=r.width,u.className=s,u.style.lineHeight=r.lineHeight,u.style.padding=r.padding,r.fontFamily&&(u.style.fontFamily=r.fontFamily),n>1?t.forEach(function(g){var m=document.createElement("div");m.textContent=g,u.appendChild(m)}):u.textContent=t,document.body.appendChild(u);var p=u.clientHeight;return document.body.removeChild(u),p},Af=function(e){var t=e.rows,r=e.rowsLength,n=e.fontSize,s=0;return t&&t.forEach(function(u){var p=Ks(u);s=p>s?p:s}),{width:Math.ceil(s/2)*n+n/4,height:r*(n+2)+n/4}},sc=function(e){return Cs(e)!=="object"?{isAllPass:!!e,msg:e?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:e},vn=function(e){try{return JSON.parse(JSON.stringify(e))}catch(t){return e}},Ls=1e3,Sg=999,kf=function(){return++Ls};function qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qh(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $r(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function $h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ke(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Tf=(Mt=function(){function e(n,s){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),_o(this,"id",""),$r(this,"type",mf,this),$r(this,"sourceNodeId",yu,this),$r(this,"targetNodeId",Rs,this),$r(this,"startPoint",bf,this),$r(this,"endPoint",_f,this),$r(this,"text",uc,this),$r(this,"properties",Of,this),$r(this,"points",Mo,this),$r(this,"pointsList",$i,this),$r(this,"isSelected",wf,this),$r(this,"isHovered",zh,this),$r(this,"isHitable",Bh,this),$r(this,"draggable",Fh,this),$r(this,"visible",xf,this),_o(this,"virtual",!1),$r(this,"isAnimation",Ef,this),$r(this,"isShowAdjustPoint",jf,this),_o(this,"graphModel",void 0),$r(this,"zIndex",Sf,this),_o(this,"BaseType",qr.EDGE),_o(this,"modelType",qe.EDGE),$r(this,"state",Uh,this),_o(this,"additionStateData",void 0),_o(this,"sourceAnchorId",""),_o(this,"targetAnchorId",""),_o(this,"menu",void 0),_o(this,"customTextPosition",!1),$r(this,"style",Gh,this),$r(this,"arrowConfig",Xh,this),this.graphModel=s,this.initEdgeData(n),this.setAttributes()}var t,r;return t=e,r=[{key:"initEdgeData",value:function(n){if(n.properties||(n.properties={}),!n.id){var s=this.graphModel.idGenerator,u=s&&s(n.type),p=this.createId();n.id=p||u||qi()}this.arrowConfig.markerEnd="url(#marker-end-".concat(n.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(n.id,")");var g=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=g,yn(this,Zs(n)),this.graphModel.overlapMode===zr.INCREASE&&(this.zIndex=n.zIndex||kf()),this.setAnchors(),this.initPoints(),this.formatText(n)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return Hn(Hn({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return Hn({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var n=this.graphModel.theme.edgeText;return Cr(n)}},{key:"getEdgeAnimationStyle",value:function(){var n=this.graphModel.theme.edgeAnimation;return Cr(n)}},{key:"getArrowStyle",value:function(){var n=this.getEdgeStyle(),s=this.getEdgeAnimationStyle(),u=this.graphModel.theme.arrow,p=this.isAnimation?s.stroke:n.stroke;return Hn(Hn({},n),{},{fill:p,stroke:p},u)}},{key:"getOutlineStyle",value:function(){var n=this.graphModel.theme.outline;return Cr(n)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var n,s;return(n=this.graphModel)===null||n===void 0||(s=n.nodesMap[this.sourceNodeId])===null||s===void 0?void 0:s.model}},{key:"targetNode",get:function(){var n,s;return(n=this.graphModel)===null||n===void 0||(s=n.nodesMap[this.targetNodeId])===null||s===void 0?void 0:s.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(n,s,u){var p,g,m=Yn(n);return u&&(p=df(m,function(x){return x.id===u}))||m.forEach(function(x){var j=Oc(x,s);(g===void 0||j<g)&&(g=j,p=x)}),p}},{key:"getEndAnchor",value:function(n,s){var u,p,g=this,m=Yn(n);return s&&(u=df(m,function(x){return x.id===s}))||m.forEach(function(x){var j=Oc(x,g.startPoint);(p===void 0||j<p)&&(p=j,u=x)}),u}},{key:"getProperties",value:function(){return Object(y.I)(this.properties)}},{key:"getData",value:function(){var n=this.text,s=n.x,u=n.y,p=n.value,g={id:this.id,type:this.type,sourceNodeId:this.sourceNode.id,targetNodeId:this.targetNode.id,startPoint:Object.assign({},this.startPoint),endPoint:Object.assign({},this.endPoint),properties:Object(y.I)(this.properties)};return p&&(g.text={x:s,y:u,value:p}),this.graphModel.overlapMode===zr.INCREASE&&(g.zIndex=this.zIndex),g}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(n,s){this.properties[n]=vn(s),this.setAttributes()}},{key:"deleteProperty",value:function(n){delete this.properties[n],this.setAttributes()}},{key:"setProperties",value:function(n){this.properties=Hn(Hn({},Object(y.I)(this.properties)),vn(n)),this.setAttributes()}},{key:"changeEdgeId",value:function(n){var s=this.arrowConfig,u=s.markerEnd,p=s.markerStart;p&&p==="url(#marker-start-".concat(this.id,")")&&(this.arrowConfig.markerStart="url(#marker-start-".concat(n,")")),u&&u==="url(#marker-end-".concat(this.id,")")&&(this.arrowConfig.markerEnd="url(#marker-end-".concat(n,")")),this.id=n}},{key:"setStyle",value:function(n,s){this.style=Hn(Hn({},this.style),{},_o({},n,vn(s)))}},{key:"setStyles",value:function(n){this.style=Hn(Hn({},this.style),vn(n))}},{key:"updateStyles",value:function(n){this.style=Hn({},vn(n))}},{key:"formatText",value:function(n){var s=this.textPosition,u=s.x,p=s.y;n.text&&typeof n.text!="string"?Object.prototype.toString.call(n.text)==="[object Object]"&&(this.text={x:n.text.x||u,y:n.text.y||p,value:n.text.value||"",draggable:this.text.draggable,editable:this.text.editable}):this.text={value:n.text||"",x:u,y:p,draggable:this.text.draggable,editable:this.text.editable}}},{key:"resetTextPosition",value:function(){var n=this.textPosition,s=n.x,u=n.y;this.text.x=s,this.text.y=u}},{key:"moveText",value:function(n,s){if(this.text){var u=this.text,p=u.x,g=u.y,m=u.value,x=u.draggable,j=u.editable;this.text={value:m,draggable:x,x:p+n,y:g+s,editable:j}}}},{key:"setText",value:function(n){n&&yn(this.text,n)}},{key:"updateText",value:function(n){this.text=Hn(Hn({},Object(y.I)(this.text)),{},{value:n})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var n=this.getBeginAnchor(this.sourceNode,this.targetNode,this.sourceAnchorId);if(!n)throw new Error("\u65E0\u6CD5\u83B7\u53D6beginAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.startPoint||(this.startPoint={x:n.x,y:n.y}),this.sourceAnchorId||(this.sourceAnchorId=n.id)}if(!this.targetAnchorId||!this.endPoint){var s=this.getEndAnchor(this.targetNode,this.targetAnchorId);if(!s)throw new Error("\u65E0\u6CD5\u83B7\u53D6endAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.endPoint||(this.endPoint={x:s.x,y:s.y}),this.targetAnchorId||(this.targetAnchorId=s.id)}}},{key:"setSelected",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=n}},{key:"setHovered",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=n}},{key:"setHitable",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=n}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(n,s){this.state=n,this.additionStateData=s}},{key:"updateStartPoint",value:function(n){this.startPoint=n}},{key:"moveStartPoint",value:function(n,s){this.startPoint.x+=n,this.startPoint.y+=s}},{key:"updateEndPoint",value:function(n){this.endPoint=n}},{key:"moveEndPoint",value:function(n,s){this.endPoint.x+=n,this.endPoint.y+=s}},{key:"setZIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=n}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(n){yn(this,n)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(n){var s=n.startPoint,u=n.endPoint;this.updateStartPoint({x:s.x,y:s.y}),this.updateEndPoint({x:u.x,y:u.y})}}],r&&$h(t.prototype,r),e}(),mf=ke(Mt.prototype,"type",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),yu=ke(Mt.prototype,"sourceNodeId",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Rs=ke(Mt.prototype,"targetNodeId",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),bf=ke(Mt.prototype,"startPoint",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_f=ke(Mt.prototype,"endPoint",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),uc=ke(Mt.prototype,"text",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),Of=ke(Mt.prototype,"properties",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Mo=ke(Mt.prototype,"points",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),$i=ke(Mt.prototype,"pointsList",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wf=ke(Mt.prototype,"isSelected",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zh=ke(Mt.prototype,"isHovered",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bh=ke(Mt.prototype,"isHitable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Fh=ke(Mt.prototype,"draggable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),xf=ke(Mt.prototype,"visible",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ef=ke(Mt.prototype,"isAnimation",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jf=ke(Mt.prototype,"isShowAdjustPoint",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Sf=ke(Mt.prototype,"zIndex",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Uh=ke(Mt.prototype,"state",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Gh=ke(Mt.prototype,"style",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Xh=ke(Mt.prototype,"arrowConfig",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")}}}),ke(Mt.prototype,"sourceNode",[y.m],Object.getOwnPropertyDescriptor(Mt.prototype,"sourceNode"),Mt.prototype),ke(Mt.prototype,"targetNode",[y.m],Object.getOwnPropertyDescriptor(Mt.prototype,"targetNode"),Mt.prototype),ke(Mt.prototype,"textPosition",[y.m],Object.getOwnPropertyDescriptor(Mt.prototype,"textPosition"),Mt.prototype),ke(Mt.prototype,"setProperty",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setProperty"),Mt.prototype),ke(Mt.prototype,"deleteProperty",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"deleteProperty"),Mt.prototype),ke(Mt.prototype,"setProperties",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setProperties"),Mt.prototype),ke(Mt.prototype,"changeEdgeId",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"changeEdgeId"),Mt.prototype),ke(Mt.prototype,"setStyle",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setStyle"),Mt.prototype),ke(Mt.prototype,"setStyles",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setStyles"),Mt.prototype),ke(Mt.prototype,"updateStyles",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateStyles"),Mt.prototype),ke(Mt.prototype,"formatText",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"formatText"),Mt.prototype),ke(Mt.prototype,"resetTextPosition",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"resetTextPosition"),Mt.prototype),ke(Mt.prototype,"moveText",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"moveText"),Mt.prototype),ke(Mt.prototype,"setText",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setText"),Mt.prototype),ke(Mt.prototype,"updateText",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateText"),Mt.prototype),ke(Mt.prototype,"setAnchors",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setAnchors"),Mt.prototype),ke(Mt.prototype,"setSelected",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setSelected"),Mt.prototype),ke(Mt.prototype,"setHovered",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setHovered"),Mt.prototype),ke(Mt.prototype,"setHitable",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setHitable"),Mt.prototype),ke(Mt.prototype,"openEdgeAnimation",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"openEdgeAnimation"),Mt.prototype),ke(Mt.prototype,"closeEdgeAnimation",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"closeEdgeAnimation"),Mt.prototype),ke(Mt.prototype,"setElementState",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setElementState"),Mt.prototype),ke(Mt.prototype,"updateStartPoint",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateStartPoint"),Mt.prototype),ke(Mt.prototype,"moveStartPoint",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"moveStartPoint"),Mt.prototype),ke(Mt.prototype,"updateEndPoint",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateEndPoint"),Mt.prototype),ke(Mt.prototype,"moveEndPoint",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"moveEndPoint"),Mt.prototype),ke(Mt.prototype,"setZIndex",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"setZIndex"),Mt.prototype),ke(Mt.prototype,"initPoints",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"initPoints"),Mt.prototype),ke(Mt.prototype,"updateAttributes",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateAttributes"),Mt.prototype),ke(Mt.prototype,"getAdjustStart",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"getAdjustStart"),Mt.prototype),ke(Mt.prototype,"getAdjustEnd",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"getAdjustEnd"),Mt.prototype),ke(Mt.prototype,"updateAfterAdjustStartAndEnd",[y.k],Object.getOwnPropertyDescriptor(Mt.prototype,"updateAfterAdjustStartAndEnd"),Mt.prototype),Mt),gu=Tf;function Mf(e){return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}function Qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function lc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qh(Object(r),!0).forEach(function(n){rd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function td(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fc(){return fc=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=ed(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},fc.apply(this,arguments)}function ed(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=_i(e))!==null;);return e}function zs(e,t){return zs=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},zs(e,t)}function Pg(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=_i(e);if(t){var s=_i(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return Ag(this,r)}}function Ag(e,t){if(t&&(Mf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}function pc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_i(e)}function rd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Re,Df,Bs=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&zs(u,p)})(s,e);var t,r,n=Pg(s);function s(){var u;Jh(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return rd(pc(u=n.call.apply(n,[this].concat(g))),"modelType",qe.LINE_EDGE),u}return t=s,(r=[{key:"getEdgeStyle",value:function(){var u=this.graphModel.theme.line;return lc(lc({},fc(_i(s.prototype),"getEdgeStyle",this).call(this)),Cr(u))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&td(t.prototype,r),s}(gu);function co(e){return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function kg(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return nd(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return nd(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  56. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function nd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qi(Object(r),!0).forEach(function(n){Br(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tg(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function Vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Oo(){return Oo=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=Mg(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},Oo.apply(this,arguments)}function Mg(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=wr(e))!==null;);return e}function hc(e,t){return hc=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},hc(e,t)}function Oi(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=wr(e);if(t){var s=wr(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return od(this,r)}}function od(e,t){if(t&&(co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ji(e)}function Ji(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wr(e){return wr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},wr(e)}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mn(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var dc=(Re=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&hc(u,p)})(s,e);var t,r,n=Oi(s);function s(){var u;Vn(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return Br(Ji(u=n.call.apply(n,[this].concat(g))),"modelType",qe.POLYLINE_EDGE),Br(Ji(u),"draggingPointList",void 0),Tg(Ji(u),"dbClickPosition",Df,Ji(u)),u}return t=s,(r=[{key:"initEdgeData",value:function(u){this.offset=30,Oo(wr(s.prototype),"initEdgeData",this).call(this,u)}},{key:"getEdgeStyle",value:function(){var u=this.graphModel.theme.polyline;return He(He({},Oo(wr(s.prototype),"getEdgeStyle",this).call(this)),Cr(u))}},{key:"getTextPosition",value:function(){var u,p=(u=this.text)===null||u===void 0?void 0:u.value;if(this.dbClickPosition&&!p){var g=this.dbClickPosition;return{x:g.x,y:g.y}}var m=ea(this.points),x=kg(dd(m),2),j=x[0],D=x[1];return{x:(j.x+D.x)/2,y:(j.y+D.y)/2}}},{key:"getAfterAnchor",value:function(u,p,g){var m,x;return g.forEach(function(j){var D;u===Ar.HORIZONTAL?D=Math.abs(p.y-j.y):u===Ar.VERTICAL&&(D=Math.abs(p.x-j.x)),(!x||x>D)&&(x=D,m=j)}),m}},{key:"getCrossPoint",value:function(u,p,g){var m;return u===Ar.HORIZONTAL?m={x:g.x,y:p.y}:u===Ar.VERTICAL&&(m={x:p.x,y:g.y}),m}},{key:"removeCrossPoints",value:function(u,p,g){var m=g.map(function(gt){return gt});if(u===1){var x=m[u],j=m[p],D=m[u-1];if(zf(D,x,this.sourceNode)){if(Bf(x,j,this.sourceNode)){var R=Ff(x,j,this.sourceNode);R&&(m[u]=R,m.splice(u-1,1),u--,p--)}}else this.sourceNode.anchors.forEach(function(gt){(gt.x===D.x&&gt.x===x.x||gt.y===D.y&&gt.y===x.y)&&Do(gt.x,gt.y,x.x,x.y)<Do(D.x,D.y,x.x,x.y)&&(m[u-1]=gt)})}if(p===g.length-2){var Y=m[u],J=m[p],nt=m[p+1];if(zf(J,nt,this.targetNode)){if(Bf(Y,J,this.targetNode)){var yt=Ff(Y,J,this.targetNode);yt&&(m[p]=yt,m.splice(p+1,1))}}else this.targetNode.anchors.forEach(function(gt){(gt.x===nt.x&&gt.x===J.x||gt.y===nt.y&&gt.y===J.y)&&Do(gt.x,gt.y,J.x,J.y)<Do(nt.x,nt.y,J.x,J.y)&&(m[p+1]=gt)})}return m}},{key:"getDraggingPoints",value:function(u,p,g,m,x){var j=x.map(function(Y){return Y}),D=this.getAfterAnchor(u,g,m),R=this.getCrossPoint(u,g,D);return p==="start"?(j.unshift(R),j.unshift(D)):(j.push(R),j.push(D)),j}},{key:"updateCrossPoints",value:function(u){var p=u.map(function(Rt){return Rt}),g=u[0],m=u[1],x=u[p.length-2],j=u[p.length-1],D=this.sourceNode,R=this.targetNode,Y=D.modelType,J=R.modelType,nt=_c(g,m),yt=p[0];switch(Y){case qe.RECT_NODE:D.radius!==0&&(Pf(g,D)||(yt=Hh(g,nt,D)));break;case qe.CIRCLE_NODE:yt=cc(g,nt,D);break;case qe.ELLIPSE_NODE:yt=Vh(g,nt,D);break;case qe.DIAMOND_NODE:case qe.POLYGON_NODE:yt=Wh(g,nt,D)}yt&&(p[0]=yt);var gt=_c(x,j),xt=p[p.length-1];switch(J){case qe.RECT_NODE:R.radius!==0&&(Pf(j,R)||(xt=Hh(j,gt,R)));break;case qe.CIRCLE_NODE:xt=cc(j,gt,R);break;case qe.ELLIPSE_NODE:xt=Vh(j,gt,R);break;case qe.DIAMOND_NODE:case qe.POLYGON_NODE:xt=Wh(j,gt,R)}return xt&&(p[p.length-1]=xt),p}},{key:"getData",value:function(){var u=Oo(wr(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(g){return{x:g.x,y:g.y}});return Object.assign({},u,{pointsList:p})}},{key:"initPoints",value:function(){this.pointsList.length>0?this.points=this.pointsList.map(function(u){return"".concat(u.x,",").concat(u.y)}).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var u=Vs({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=u,this.points=u.map(function(p){return"".concat(p.x,",").concat(p.y)}).join(" ")}},{key:"updateStartPoint",value:function(u){this.startPoint=Object.assign({},u),this.updatePoints()}},{key:"moveStartPoint",value:function(u,p){this.startPoint.x+=u,this.startPoint.y+=p,this.updatePoints()}},{key:"updateEndPoint",value:function(u){this.endPoint=Object.assign({},u),this.updatePoints()}},{key:"moveEndPoint",value:function(u,p){this.endPoint.x+=u,this.endPoint.y+=p,this.updatePoints()}},{key:"updatePointsList",value:function(u,p){this.pointsList.forEach(function(x){x.x+=u,x.y+=p});var g=this.pointsList[0];this.startPoint=Object.assign({},g);var m=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},m),this.initPoints()}},{key:"dragAppendStart",value:function(){this.draggingPointList=this.pointsList.map(function(u){return u})}},{key:"dragAppendSimple",value:function(u,p){this.isDragging=!0;var g=u.start,m=u.end,x=u.startIndex,j=u.endIndex,D=u.direction,R=this.pointsList,Y=R;return D===Ar.HORIZONTAL?(R[x]={x:g.x,y:g.y+p.y},R[j]={x:m.x,y:m.y+p.y},Y=this.pointsList.map(function(J){return J})):D===Ar.VERTICAL&&(R[x]={x:g.x+p.x,y:g.y},R[j]={x:m.x+p.x,y:m.y},Y=this.pointsList.map(function(J){return J})),this.updatePointsAfterDrag(Y),this.draggingPointList=Y,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},R[x]),end:Object.assign({},R[j]),startIndex:x,endIndex:j,direction:D}}},{key:"dragAppend",value:function(u,p){this.isDragging=!0;var g=u.start,m=u.end,x=u.startIndex,j=u.endIndex,D=u.direction,R=this.pointsList;if(D===Ar.HORIZONTAL){R[x]={x:g.x,y:g.y+p.y},R[j]={x:m.x,y:m.y+p.y};var Y=this.pointsList.map(function(qt){return qt});if(x!==0&&j!==this.pointsList.length-1&&(Y=this.removeCrossPoints(x,j,Y)),x===0){var J={x:g.x,y:g.y+p.y};if(!ti(J,this.sourceNode)){var nt=this.sourceNode.anchors;Y=this.getDraggingPoints(D,"start",J,nt,Y)}}if(j===this.pointsList.length-1){var yt={x:m.x,y:m.y+p.y};if(!ti(yt,this.targetNode)){var gt=this.targetNode.anchors;Y=this.getDraggingPoints(D,"end",yt,gt,Y)}}this.updatePointsAfterDrag(Y),this.draggingPointList=Y}else if(D===Ar.VERTICAL){R[x]={x:g.x+p.x,y:g.y},R[j]={x:m.x+p.x,y:m.y};var xt=this.pointsList.map(function(qt){return qt});if(x!==0&&j!==this.pointsList.length-1&&(xt=this.removeCrossPoints(x,j,xt)),x===0){var Rt={x:g.x+p.x,y:g.y};if(!ti(Rt,this.sourceNode)){var Jt=this.sourceNode.anchors;xt=this.getDraggingPoints(D,"start",Rt,Jt,xt)}}if(j===this.pointsList.length-1){var $t={x:m.x+p.x,y:m.y};if(!ti($t,this.targetNode)){var _e=this.targetNode.anchors;xt=this.getDraggingPoints(D,"end",$t,_e,xt)}}this.updatePointsAfterDrag(xt),this.draggingPointList=xt}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},R[x]),end:Object.assign({},R[j]),startIndex:x,endIndex:j,direction:D}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var u=Hs(ea(this.points));this.pointsList=u.map(function(m){return m}),this.draggingPointList=[];var p=u[0];this.startPoint=Object.assign({},p);var g=u[u.length-1];this.endPoint=Object.assign({},g)}this.isDragging=!1}},{key:"updatePointsAfterDrag",value:function(u){var p=this.updateCrossPoints(u);this.points=p.map(function(g){return"".concat(g.x,",").concat(g.y)}).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var u=this.pointsList;return u[u.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(u){var p=u.startPoint,g=u.endPoint,m=u.sourceNode,x=u.targetNode,j=Vs({x:p.x,y:p.y},{x:g.x,y:g.y},m,x,this.offset||0);this.pointsList=j,this.initPoints()}}])&&Qr(t.prototype,r),s}(gu),Df=mn(Re.prototype,"dbClickPosition",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mn(Re.prototype,"initPoints",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"initPoints"),Re.prototype),mn(Re.prototype,"updatePoints",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"updatePoints"),Re.prototype),mn(Re.prototype,"updateStartPoint",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"updateStartPoint"),Re.prototype),mn(Re.prototype,"moveStartPoint",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"moveStartPoint"),Re.prototype),mn(Re.prototype,"updateEndPoint",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"updateEndPoint"),Re.prototype),mn(Re.prototype,"moveEndPoint",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"moveEndPoint"),Re.prototype),mn(Re.prototype,"updatePointsList",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"updatePointsList"),Re.prototype),mn(Re.prototype,"dragAppendStart",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"dragAppendStart"),Re.prototype),mn(Re.prototype,"dragAppendSimple",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"dragAppendSimple"),Re.prototype),mn(Re.prototype,"dragAppend",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"dragAppend"),Re.prototype),mn(Re.prototype,"dragAppendEnd",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"dragAppendEnd"),Re.prototype),mn(Re.prototype,"updatePointsAfterDrag",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"updatePointsAfterDrag"),Re.prototype),mn(Re.prototype,"getAdjustStart",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"getAdjustStart"),Re.prototype),mn(Re.prototype,"getAdjustEnd",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"getAdjustEnd"),Re.prototype),mn(Re.prototype,"updateAfterAdjustStartAndEnd",[y.k],Object.getOwnPropertyDescriptor(Re.prototype,"updateAfterAdjustStartAndEnd"),Re.prototype),Re),wi=function(e){var t=e.start,r=e.end,n=e.offset,s=e.verticalLength,u=e.type,p={leftX:0,leftY:0,rightX:0,rightY:0},g=Math.atan((r.y-t.y)/(r.x-t.x)),m=Math.atan(n/s),x=Math.sqrt(s*s+n*n);return u==="start"?r.x>=t.x?(p.leftX=t.x+x*Math.sin(g+m),p.leftY=t.y-x*Math.cos(g+m),p.rightX=t.x-x*Math.sin(g-m),p.rightY=t.y+x*Math.cos(g-m)):(p.leftX=t.x-x*Math.sin(g+m),p.leftY=t.y+x*Math.cos(g+m),p.rightX=t.x+x*Math.sin(g-m),p.rightY=t.y-x*Math.cos(g-m)):u==="end"&&(r.x>=t.x?(p.leftX=r.x+x*Math.sin(g-m),p.leftY=r.y-x*Math.cos(g-m),p.rightX=r.x-x*Math.sin(g+m),p.rightY=r.y+x*Math.cos(g+m)):(p.leftX=r.x-x*Math.sin(g-m),p.leftY=r.y+x*Math.cos(g-m),p.rightX=r.x+x*Math.sin(g+m),p.rightY=r.y-x*Math.cos(g+m))),p},Nf={x:1,y:0,z:0};function Cf(e,t,r,n,s){for(var u=function(J){if(J<0||J>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:e.x*Math.pow(1-J,3)+3*t.x*J*Math.pow(1-J,2)+3*r.x*Math.pow(J,2)*(1-J)+n.x*Math.pow(J,3),y:e.y*Math.pow(1-J,3)+3*t.y*J*Math.pow(1-J,2)+3*r.y*Math.pow(J,2)*(1-J)+n.y*Math.pow(J,3)}},p=0,g=2,m=n.x,x=n.y,j=n;p<s&&g<50;){var D=j=u(1-g/100),R=D.x,Y=D.y;p=Do(m,x,R,Y),g++}return j}function yc(e){var t=Math.hypot(e.x,e.y);return{x:e.x/t,y:e.y/t,z:0}}function Wn(e){return n=function(u,p){return u.x*p.y-u.y*p.x}(t=Nf,r=e),s=Math.acos(function(u,p){var g=[u.x,u.y,u.z];return[p.x,p.y,p.z].reduce(function(m,x,j){return m+x*g[j]})}(yc(t),yc(r))),n>=0?s:-s;var t,r,n,s}function Sa(e){return e*(180/Math.PI)}function id(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Fs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?id(Object(r),!0).forEach(function(n){ad(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):id(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ad(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(e){return function(t){if(Array.isArray(t))return Us(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||so(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  57. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ve(e){return Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ve(e)}function gc(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||so(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  58. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function so(e,t){if(e){if(typeof e=="string")return Us(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Us(e,t):void 0}}function Us(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var xr=function(e,t){var r;switch(e.type){case"line":default:r=new Bs(e,t);break;case"polyline":r=new dc(e,t)}return r},ud=function(e,t){return 2*Math.abs(e.centerX-t.centerX)<e.width+t.width&&2*Math.abs(e.centerY-t.centerY)<e.height+t.height},vu=function(e){var t=[],r={};return e.forEach(function(n){var s="".concat(n.x,"-").concat(n.y);n.id=s,r[s]=n}),Object.keys(r).forEach(function(n){t.push(r[n])}),t},Gs=function(e,t){var r=[e,{x:e.x,y:t.y},t];return vu(r)},vc=function(e,t){return e.width===0&&e.height===0?e:{centerX:e.centerX,centerY:e.centerY,minX:e.minX-t,minY:e.minY-t,maxX:e.maxX+t,maxY:e.maxY+t,height:e.height+2*t,width:e.width+2*t}},cd=function(e,t){var r=Math.abs(e.x-t.centerX),n=Math.abs(e.y-t.centerY);return r/t.width>n/t.height?Ar.HORIZONTAL:Ar.VERTICAL},mc=function(e,t,r){return cd(r,t)===Ar.HORIZONTAL?{x:r.x>e.centerX?e.maxX:e.minX,y:r.y}:{x:r.x,y:r.y>e.centerY?e.maxY:e.minY}},Rf=function(e,t){var r=Math.min(e.minX,t.minX),n=Math.min(e.minY,t.minY),s=Math.max(e.maxX,t.maxX),u=Math.max(e.maxY,t.maxY);return{centerX:(r+s)/2,centerY:(n+u)/2,minX:r,minY:n,maxX:s,maxY:u,height:u-n,width:s-r}},ta=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=[],n=[];e.forEach(function(j){r.push(j.x),n.push(j.y)});var s=Math.min.apply(Math,r),u=Math.max.apply(Math,r),p=Math.min.apply(Math,n),g=Math.max.apply(Math,n),m=u-s,x=g-p;return t&&(m+=t,x+=t),{centerX:(s+u)/2,centerY:(p+g)/2,maxX:u,maxY:g,minX:s,minY:p,x:(s+u)/2,y:(p+g)/2,height:x,width:m}},Pa=function(e){var t=e.minX,r=e.minY,n=e.maxX,s=e.maxY;return[{x:t,y:r},{x:n,y:r},{x:n,y:s},{x:t,y:s}]},bc=function(e,t){var r=e.x,n=e.y;return r<t.minX||r>t.maxX||n<t.minY||n>t.maxY},sd=function(e,t){return t<e.minX||t>e.maxX?[]:[{x:t,y:e.minY},{x:t,y:e.maxY}]},ld=function(e,t){return t<e.minY||t>e.maxY?[]:[{x:e.minX,y:t},{x:e.maxX,y:t}]},fn=function(e,t){return sd(e,t.x).concat(ld(e,t.y))},bn=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},fd=function(e,t){var r=0;return t.forEach(function(n){n&&(e.x===n.x&&(r+=-2),e.y===n.y&&(r+=-2))}),r},Xs=function(e,t,r,n,s){return bn(e,t)+bn(e,r)+fd(e,[t,r,n,s])},pd=function e(t,r,n,s,u){u||(u=0),t.unshift(r[s]),n[s]&&n[s]!==s&&u<=100&&e(t,r,n,n[s],u+1)},hd=function(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)},Aa=function(e,t,r,n){var s=t.x-e.x,u=t.y-e.y,p=n.x-r.x,g=n.y-r.y,m=(-u*(e.x-r.x)+s*(e.y-r.y))/(-p*u+s*g),x=(p*(e.y-r.y)-g*(e.x-r.x))/(-p*u+s*g);return m>=0&&m<=1&&x>=0&&x<=1},Ys=function(e,t,r){if(r.width===0&&r.height===0)return!1;var n=gc(Pa(r),4),s=n[0],u=n[1],p=n[2],g=n[3];return Aa(e,t,s,u)||Aa(e,t,s,g)||Aa(e,t,u,p)||Aa(e,t,p,g)},If=function(e,t,r,n){var s=[];return e.forEach(function(u){u!==t&&(u.x!==t.x&&u.y!==t.y||Ys(u,t,r)||Ys(u,t,n)||s.push(u))}),vu(s)},ka=function(e,t,r,n,s,u,p){var g=[],m=[t],x={},j={},D={};j[t.id]=0,D[t.id]=Xs(t,r,t);var R={};e.forEach(function(nt){R[nt.id]=nt});for(var Y=function(){var nt=void 0,yt=1/0;if(m.forEach(function(xt){D[xt.id]<yt&&(yt=D[xt.id],nt=xt)}),nt===r){var gt=[];return pd(gt,R,x,r.id),{v:gt}}hd(m,nt),g.push(nt),If(e,nt,n,s).forEach(function(xt){if(g.indexOf(xt)===-1){m.indexOf(xt)===-1&&m.push(xt);var Rt=D[nt.id]+bn(nt,xt);j[xt.id]&&Rt>=j[xt.id]||(x[xt.id]=nt.id,j[xt.id]=Rt,D[xt.id]=j[xt.id]+Xs(xt,r,t,u,p))}})};m.length;){var J=Y();if(Ve(J)==="object")return J.v}return[t,r]},Lf=function(e){return uo(e)},Hs=function(e){for(var t=1;t<e.length-1;){var r=e[t-1],n=e[t],s=e[t+1];r.x===n.x&&n.x===s.x||r.y===n.y&&n.y===s.y?e.splice(t,1):t++}return e},Vs=function(e,t,r,n,s){var u=Lf(r),p=Lf(n),g=vc(u,s),m=vc(p,s),x=mc(g,u,e),j=mc(m,p,t);if(ud(g,m)){var D=Ws(e,t,x,j);return[e,x].concat(xi(D),[j,t])}var R=ta([x,j]),Y=Rf(g,R),J=Rf(m,R),nt=[];nt=(nt=nt.concat(Pa(Y))).concat(Pa(J));var yt={x:(e.x+t.x)/2,y:(e.y+t.y)/2};[R,Y,J].forEach(function(xt){nt=nt.concat(fn(xt,yt).filter(function(Rt){return bc(Rt,g)&&bc(Rt,m)}))}),[{x:x.x,y:j.y},{x:j.x,y:x.y}].forEach(function(xt){bc(xt,g)&&bc(xt,m)&&nt.push(xt)}),nt.unshift(x),nt.push(j),nt=vu(nt);var gt=ka(nt,x,j,u,p,e,t);return gt.unshift(e),gt.push(t),gt.length>2&&(gt=Hs(gt)),vu(gt)},dd=function(e){var t;if(e.length===1)t=[e[0],e[0]];else if(e.length>=2){for(var r=e[0],n=e[1],s=Do(r.x,r.y,n.x,n.y),u=1;u<e.length-1;u++){var p=e[u],g=e[u+1],m=Do(p.x,p.y,g.x,g.y);m>s&&(s=m,r=p,n=g)}t=[r,n]}return t},zf=function(e,t,r){var n=ti(e,r),s=ti(t,r);return n&&s},Bf=function(e,t,r){var n=ti(e,r),s=ti(t,r);return!(n&&s)&&(n||s)},Ff=function(e,t,r){for(var n,s,u=uo(r),p=Pa(u),g=0;g<p.length;g++)Aa(e,t,p[g],p[(g+1)%p.length])&&(s=[p[g],p[(g+1)%p.length]]);return s&&(n=function(m,x,j,D){var R=(x.y-m.y)*(D.x-j.x)-(m.x-x.x)*(j.y-D.y);if(R===0)return!1;var Y=((x.x-m.x)*(D.x-j.x)*(j.y-m.y)+(x.y-m.y)*(D.x-j.x)*m.x-(D.y-j.y)*(x.x-m.x)*j.x)/R,J=-((x.y-m.y)*(D.y-j.y)*(j.x-m.x)+(x.x-m.x)*(D.y-j.y)*m.y-(D.x-j.x)*(x.y-m.y)*j.y)/R;return(Y-m.x)*(Y-x.x)<=0&&(J-m.y)*(J-x.y)<=0&&(Y-j.x)*(Y-D.x)<=0&&(J-j.y)*(J-D.y)<=0&&{x:Y,y:J}}(e,t,s[0],s[1])),n},_c=function(e,t){var r;return e.x===t.x?r=Ar.VERTICAL:e.y===t.y&&(r=Ar.HORIZONTAL),r},ea=function(e){var t=e.split(" "),r=[];return t&&t.forEach(function(n){var s=gc(n.split(","),2),u=s[0],p=s[1];r.push({x:Number(u),y:Number(p)})}),r},Ws=function(e,t,r,n){var s=[];if(_c(e,r)===_c(t,n))e.y===r.y?(s.push({x:r.x,y:(r.y+n.y)/2}),s.push({x:n.x,y:(r.y+n.y)/2})):(s.push({x:(r.x+n.x)/2,y:r.y}),s.push({x:(r.x+n.x)/2,y:n.y}));else{var u={x:r.x,y:n.y},p=du(u,e,r),g=du(u,t,n);if(p||g)u={x:n.x,y:r.y};else{var m=Uf(u,e,r),x=Uf(u,t,n);m&&x&&(u={x:n.x,y:r.y})}s.push(u)}return s},Uf=function(e,t,r){return e.x===t.x&&e.x===r.x||e.y===t.y&&e.y===r.y},Ks=function(e){if(!e)return 0;for(var t=0,r=0;r<e.length;r++){var n=e.charCodeAt(r);e.match(/[A-Z]/)?t+=1.5:t+=n>=1&&n<=126||n>=65376&&n<=65439?1:2}return t},Gf=null,Xf=function(e,t){Gf||(Gf=document.createElement("canvas"));var r=Gf.getContext("2d");return r.font=t,r.measureText(e).width},yd=function(e){var t,r=e.start,n=e.end;if(r.x===n.x&&r.y===n.y)t="";else{var s={start:r,end:n,offset:10,verticalLength:5},u=wi(Fs(Fs({},s),{},{type:"start"})),p=wi(Fs(Fs({},s),{},{type:"end"}));t="M".concat(u.leftX," ").concat(u.leftY,`
  59. L`).concat(u.rightX," ").concat(u.rightY,`
  60. L`).concat(p.rightX," ").concat(p.rightY,`
  61. L`).concat(p.leftX," ").concat(p.leftY," z")}return{d:t,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},Yf=function(e){var t=e.start,r=e.end,n=e.sourceNode,s=e.targetNode,u=e.offset,p=uo(n),g=uo(s),m=vc(p,u),x=vc(g,u);return{sNext:mc(m,p,t),ePre:mc(x,g,r)}},_n=function(e){var t=e.replace(/M/g,"").replace(/C/g,",").split(",");return[mu(t[0]),mu(t[1]),mu(t[2]),mu(t[3])]},mu=function(e){var t=gc(e.replace(/(^\s*)/g,"").split(" "),2);return{x:+t[0],y:+t[1]}},Hf=function(e,t){var r=gc(e,4);return[Cf(r[0],r[1],r[2],r[3],t),e[3]]},Vf=function(e,t){for(var r,n=e.x,s=e.y,u=ea(t),p=Number.MAX_SAFE_INTEGER,g=[],m=0;m<u.length;m++)g.push({start:u[m],end:u[(m+1)%u.length]});if(g.forEach(function(R){var Y=R.start,J=R.end;if(Y.x===J.x){var nt={x:Y.x,y:s};if(du(nt,Y,J)){var yt=Math.abs(Y.x-n);yt<p&&(p=yt,r=nt)}}else if(Y.y===J.y){var gt={x:n,y:Y.y};if(du(gt,Y,J)){var xt=Math.abs(Y.y-s);xt<p&&(p=xt,r=gt)}}}),!r){var x=g[0],j=x.start,D=x.end;r={x:j.x+(D.x-j.x)/2,y:j.y+(D.y-j.y)/2}}return r},Zs=function(e){return di(e,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Oc=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))};function gd(e,t){return typeof t!="function"?function(r,n,s){return Object.assign({type:e.edgeType},s)}:function(r,n,s){var u=t(r,n,s);return u?typeof u=="string"?Object.assign({},s,{type:u}):Object.assign({type:u},s):{type:e.edgeType}}}o(208);var Wf=function(){};function Dg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ei=function(){function e(n){var s=this,u=n.onDragStart,p=u===void 0?Wf:u,g=n.onDragging,m=g===void 0?Wf:g,x=n.onDragEnd,j=x===void 0?Wf:x,D=n.eventType,R=D===void 0?"":D,Y=n.eventCenter,J=Y===void 0?null:Y,nt=n.step,yt=nt===void 0?1:nt,gt=n.isStopPropagation,xt=gt===void 0||gt,Rt=n.model,Jt=Rt===void 0?null:Rt,$t=n.data,_e=$t===void 0?null:$t;(function(qt,ye){if(!(qt instanceof ye))throw new TypeError("Cannot call a class as a function")})(this,e),Jr(this,"onDragStart",void 0),Jr(this,"onDragging",void 0),Jr(this,"onDragEnd",void 0),Jr(this,"step",void 0),Jr(this,"isStopPropagation",void 0),Jr(this,"isDragging",!1),Jr(this,"isStartDragging",!1),Jr(this,"startX",0),Jr(this,"startY",0),Jr(this,"sumDeltaX",0),Jr(this,"sumDeltaY",0),Jr(this,"eventType",void 0),Jr(this,"eventCenter",void 0),Jr(this,"model",void 0),Jr(this,"data",void 0),Jr(this,"startTime",void 0),Jr(this,"handleMouseDown",function(qt){var ye,ne,Je,ir=(ye=window)===null||ye===void 0?void 0:ye.document;if(qt.button===0){s.isStopPropagation&&qt.stopPropagation(),s.isStartDragging=!0,s.startX=qt.clientX,s.startY=qt.clientY,ir.addEventListener("mousemove",s.handleMouseMove,!1),ir.addEventListener("mouseup",s.handleMouseUp,!1);var Ie=(ne=s.model)===null||ne===void 0?void 0:ne.getData();(Je=s.eventCenter)===null||Je===void 0||Je.emit(de["".concat(s.eventType,"_MOUSEDOWN")],{e:qt,data:s.data||Ie}),s.startTime=new Date().getTime()}}),Jr(this,"handleMouseMove",function(qt){if(s.isStopPropagation&&qt.stopPropagation(),s.isStartDragging&&(s.sumDeltaX+=qt.clientX-s.startX,s.sumDeltaY+=qt.clientY-s.startY,s.startX=qt.clientX,s.startY=qt.clientY,s.step<=1||Math.abs(s.sumDeltaX)>s.step||Math.abs(s.sumDeltaY)>s.step)){var ye,ne=s.sumDeltaX%s.step,Je=s.sumDeltaY%s.step,ir=s.sumDeltaX-ne,Ie=s.sumDeltaY-Je;s.sumDeltaX=ne,s.sumDeltaY=Je;var cr,tn=(ye=s.model)===null||ye===void 0?void 0:ye.getData();s.isDragging||((cr=s.eventCenter)===null||cr===void 0||cr.emit(de["".concat(s.eventType,"_DRAGSTART")],{e:qt,data:s.data||tn}),s.onDragStart({event:qt})),s.isDragging=!0,Promise.resolve().then(function(){var en,Ln;s.onDragging({deltaX:ir,deltaY:Ie,event:qt}),(en=s.eventCenter)===null||en===void 0||en.emit(de["".concat(s.eventType,"_MOUSEMOVE")],{e:qt,data:s.data||tn}),(Ln=s.eventCenter)===null||Ln===void 0||Ln.emit(de["".concat(s.eventType,"_DRAG")],{e:qt,data:s.data||tn})})}}),Jr(this,"handleMouseUp",function(qt){var ye=window.document;s.isStartDragging=!1,s.isStopPropagation&&qt.stopPropagation(),Promise.resolve().then(function(){var ne,Je,ir;ye.removeEventListener("mousemove",s.handleMouseMove,!1),ye.removeEventListener("mouseup",s.handleMouseUp,!1);var Ie=(ne=s.model)===null||ne===void 0?void 0:ne.getData();(Je=s.eventCenter)===null||Je===void 0||Je.emit(de["".concat(s.eventType,"_MOUSEUP")],{e:qt,data:s.data||Ie}),s.isDragging&&(s.isDragging=!1,s.onDragEnd({event:qt}),(ir=s.eventCenter)===null||ir===void 0||ir.emit(de["".concat(s.eventType,"_DROP")],{e:qt,data:s.data||Ie}))})}),Jr(this,"cancelDrag",function(){var qt,ye=(qt=window)===null||qt===void 0?void 0:qt.document;ye.removeEventListener("mousemove",s.handleMouseMove,!1),ye.removeEventListener("mouseup",s.handleMouseUp,!1),s.onDragEnd({event:null}),s.isDragging=!1}),this.onDragStart=p,this.onDragging=m,this.onDragEnd=j,this.step=yt,this.isStopPropagation=xt,this.eventType=R,this.eventCenter=J,this.model=Jt,this.data=_e}var t,r;return t=e,(r=[{key:"setStep",value:function(n){this.step=n}},{key:"setModel",value:function(n){this.model=n}}])&&Dg(t.prototype,r),e}();function Kf(e){return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kf(e)}function wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zf(e,t,r){return t&&qs(e.prototype,t),r&&qs(e,r),e}function qf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function $f(e){var t=vd();return function(){var r,n=d(e);if(t){var s=d(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return Ng(this,r)}}function Ng(e,t){if(t&&(Kf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ei(e)}function Ei(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qf(e){var t=typeof Map=="function"?new Map:void 0;return Qf=function(r){if(r===null||(n=r,Function.toString.call(n).indexOf("[native code]")===-1))return r;var n;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,s)}function s(){return Jf(r,arguments,d(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l(s,r)},Qf(e)}function Jf(e,t,r){return Jf=vd()?Reflect.construct:function(n,s,u){var p=[null];p.push.apply(p,s);var g=new(Function.bind.apply(n,p));return u&&l(g,u.prototype),g},Jf.apply(null,arguments)}function vd(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function l(e,t){return l=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},l(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){return e instanceof G&&t instanceof G}var N=function(e){qf(r,e);var t=$f(r);function r(n,s,u){var p;return wc(this,r),_(Ei(p=t.call(this,3)),"x",void 0),_(Ei(p),"y",void 0),_(Ei(p),"z",void 0),p[0]=n,p[1]=s,p[2]=u,p.x=n,p.y=s,p.z=u,Object.setPrototypeOf(Ei(p),r.prototype),p}return Zf(r,[{key:"add",value:function(n){if(P(this,n))return new G(this.x+n.x,this.y+n.y);var s=this.z+n.z;return new rt((this.x+n.x)/s,(this.y+n.y)/s)}},{key:"subtract",value:function(n){if(P(this,n))return new G(this.x-n.x,this.y-n.y);var s=this.z-n.z;return s===0?new G(this.x-n.x,this.y-n.y):new rt((this.x-n.x)/s,(this.y-n.y)/s)}}]),r}(Qf(Array)),G=function(e){qf(r,e);var t=$f(r);function r(n,s,u){var p;return wc(this,r),p=t.call(this,n,s,u!=null?u:0),Object.setPrototypeOf(Ei(p),r.prototype),p}return Zf(r,[{key:"toString",value:function(){return"Vector"}},{key:"dot",value:function(n){var s=this;return n.reduce(function(u,p,g){return u+p*s[g]})}},{key:"cross",value:function(n){return new r(this.y*n.z-this.z*n.y,this.z*n.x-this.x*n.z,this.x*n.y-this.y*n.x)}},{key:"getLength",value:function(){return Math.hypot(this.x,this.y)}},{key:"normalize",value:function(){var n=this.getLength();return new r(this.x/n,this.y/n)}},{key:"crossZ",value:function(n){return this.x*n.y-this.y*n.x}},{key:"angle",value:function(n){var s=this.crossZ(n),u=Math.acos(this.normalize().dot(n.normalize()));return s>=0?u:-u}}]),r}(N),rt=function(e){qf(r,e);var t=$f(r);function r(n,s){var u;return wc(this,r),u=t.call(this,n,s,1),Object.setPrototypeOf(Ei(u),r.prototype),u}return Zf(r,[{key:"toString",value:function(){return"Point"}}]),r}(N);o(67),o(218);function lt(e){return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function Ot(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||Ct(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  62. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Lt(e){return function(t){if(Array.isArray(t))return Xt(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Ct(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  63. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ct(e,t){if(e){if(typeof e=="string")return Xt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xt(e,t):void 0}}function Xt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Se(e,t,r){return t&&ge(e.prototype,t),r&&ge(e,r),e}function zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}function Ht(e){var t=tr();return function(){var r,n=Pe(e);if(t){var s=Pe(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return Be(this,r)}}function Be(e,t){if(t&&(lt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return re(e)}function re(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e){var t=typeof Map=="function"?new Map:void 0;return Ne=function(r){if(r===null||(n=r,Function.toString.call(n).indexOf("[native code]")===-1))return r;var n;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,s)}function s(){return Te(r,arguments,Pe(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),me(s,r)},Ne(e)}function Te(e,t,r){return Te=tr()?Reflect.construct:function(n,s,u){var p=[null];p.push.apply(p,s);var g=new(Function.bind.apply(n,p));return u&&me(g,u.prototype),g},Te.apply(null,arguments)}function tr(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function me(e,t){return me=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},me(e,t)}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Pe(e)}function Fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bt,No,an,ri,ji,bu,xc,Ta,ra,tp,ep,Ec,$s,na=function(e){zt(r,e);var t=Ht(r);function r(){var n;se(this,r);for(var s=arguments.length,u=new Array(s),p=0;p<s;p++)u[p]=arguments[p];return Fr(re(n=t.call(this,u.length)),"rows",void 0),Fr(re(n),"columns",void 0),n.fill(new Array(3)),u.forEach(function(g,m){n[m]=g}),n.columns=u[0].length,n.rows=u.length,Object.setPrototypeOf(re(n),r.prototype),n}return Se(r,[{key:"getRow",value:function(n){return this[n]}},{key:"getColumn",value:function(n){return Lt(this.map(function(s){return s[n]}))}},{key:"transpose",value:function(){for(var n=[],s=0;s<this.columns;s++)n.push(this.getColumn(s));return Te(r,n)}},{key:"cross",value:function(n){var s=new Array(this.rows).fill("").map(function(){return[]});if(this.columns===n.rows)for(var u=0;u<this.rows;u++)for(var p=this.getRow(u),g=function(x){var j=n.getColumn(x);s[u][x]=p.reduce(function(D,R,Y){return D+R*j[Y]},0)},m=0;m<n.columns;m++)g(m);return Te(r,Lt(s))}},{key:"to2D",value:function(){return this.map(function(n){return[n[0],n[1]]})}},{key:"toPoints",value:function(){return this.map(function(n){return new rt(n[0],n[1])})}},{key:"toString",value:function(){var n=Ot(this[0],2),s=n[0],u=n[1],p=Ot(this[1],2),g=p[0],m=p[1],x=Ot(this[2],2),j=x[0],D=x[1];return"matrix(".concat(s," ").concat(u," ").concat(g," ").concat(m," ").concat(j," ").concat(D,")")}},{key:"translate",value:function(n,s){return this.cross(new oa(n,s))}},{key:"rotate",value:function(n){return this.cross(new jc(n))}},{key:"scale",value:function(n,s){return this.cross(new rp(n,s))}}]),r}(Ne(Array)),jc=function(e){zt(r,e);var t=Ht(r);function r(n){var s;return se(this,r),s=t.call(this,new G(+Math.cos(n).toFixed(2),+Math.sin(n).toFixed(2),0),new G(-Math.sin(n).toFixed(2),+Math.cos(n).toFixed(2),0),new G(0,0,1)),Object.setPrototypeOf(re(s),r.prototype),s}return Se(r,[{key:"inverse",value:function(){return this.transpose()}}]),r}(na),rp=function(e){zt(r,e);var t=Ht(r);function r(n,s){var u;return se(this,r),Fr(re(u=t.call(this,new G(n,0,0),new G(0,s,0),new G(0,0,1))),"sx",void 0),Fr(re(u),"sy",void 0),u.sx=n,u.sy=s,Object.setPrototypeOf(re(u),r.prototype),u}return Se(r,[{key:"inverse",value:function(){return new r(1/this.sx,1/this.sy)}}]),r}(na),oa=function(e){zt(r,e);var t=Ht(r);function r(n,s){var u;return se(this,r),Fr(re(u=t.call(this,new G(1,0,0),new G(0,1,0),new G(n,s,1))),"tx",void 0),Fr(re(u),"ty",void 0),u.tx=n,u.ty=s,Object.setPrototypeOf(re(u),r.prototype),u}return Se(r,[{key:"inverse",value:function(){return new r(-this.tx,-this.ty)}}]),r}(na),Sc={node:!1,edge:!1},ZD={node:!0,edge:!0};function q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q_(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qs(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||$_(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  64. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Js(e){return function(t){if(Array.isArray(t))return Cg(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||$_(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  65. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $_(e,t){if(e){if(typeof e=="string")return Cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cg(e,t):void 0}}function Cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bd(e){return bd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bd(e)}function ni(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function qD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Q_,J_=200,t1=(bt=function(){function e(n){(function(Y,J){if(!(Y instanceof J))throw new TypeError("Cannot call a class as a function")})(this,e),Si(this,"rootEl",void 0),ni(this,"width",No,this),ni(this,"height",an,this),Si(this,"theme",void 0),Si(this,"eventCenter",void 0),Si(this,"modelMap",new Map),Si(this,"topElement",void 0),Si(this,"animation",void 0),Si(this,"idGenerator",void 0),Si(this,"edgeGenerator",void 0),Si(this,"nodeMoveRules",[]),Si(this,"customTrajectory",void 0),ni(this,"edgeType",ri,this),ni(this,"nodes",ji,this),ni(this,"edges",bu,this),ni(this,"overlapMode",xc,this),ni(this,"background",Ta,this),ni(this,"transformModel",ra,this),ni(this,"editConfigModel",tp,this),ni(this,"gridSize",ep,this),ni(this,"partial",Ec,this),ni(this,"fakerNode",$s,this);var s,u=n.container,p=n.background,g=p===void 0?{}:p,m=n.grid,x=n.idGenerator,j=n.edgeGenerator,D=n.animation,R=n.customTrajectory;this.background=g,bd(m)==="object"&&(this.gridSize=m.size),this.rootEl=u,this.editConfigModel=new Wl(n),this.eventCenter=new As,this.transformModel=new gh(this.eventCenter,n),this.theme=nc(n.style),this.edgeType=n.edgeType||"polyline",this.width=n.width,this.height=n.height,this.animation=(s=D)&&typeof s!="boolean"?Ea(Cr(Sc),s):Cr(s===!0?ZD:Sc),this.partial=n.partial,this.overlapMode=n.overlapMode||0,this.idGenerator=x,this.customTrajectory=R,this.edgeGenerator=gd(this,j),this.width=n.width||this.rootEl.getBoundingClientRect().width,this.height=n.height||this.rootEl.getBoundingClientRect().height,this.flowId=qi()}var t,r;return t=e,r=[{key:"nodesMap",get:function(){return this.nodes.reduce(function(n,s,u){return n[s.id]={index:u,model:s},n},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(n,s,u){return n[s.id]={index:u,model:s},n},{})}},{key:"modelsMap",get:function(){return[].concat(Js(this.nodes),Js(this.edges)).reduce(function(n,s){return n[s.id]=s,n},{})}},{key:"sortElements",get:function(){var n=[];this.nodes.forEach(function(x){return n.push(x)}),this.edges.forEach(function(x){return n.push(x)}),n=n.sort(function(x,j){return x.zIndex-j.zIndex});for(var s=[],u=[-200,-200],p=[this.width+J_,this.height+J_],g=0;g<n.length;g++){var m=n[g];m.visible&&(!this.partial||m.isSelected||this.isElementInArea(m,u,p,!1,!1))&&s.push(m)}return s}},{key:"textEditElement",get:function(){var n=this.nodes.find(function(u){return u.state===yr.TEXT_EDIT}),s=this.edges.find(function(u){return u.state===yr.TEXT_EDIT});return n||s}},{key:"selectElements",get:function(){var n=new Map;return this.nodes.forEach(function(s){s.isSelected&&n.set(s.id,s)}),this.edges.forEach(function(s){s.isSelected&&n.set(s.id,s)}),n}},{key:"selectNodes",get:function(){var n=[];return this.nodes.forEach(function(s){s.isSelected&&n.push(s)}),n}},{key:"getAreaElement",value:function(n,s){var u=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],g=arguments.length>4&&arguments[4]!==void 0&&arguments[4],m=[],x=[];this.nodes.forEach(function(R){return x.push(R)}),this.edges.forEach(function(R){return x.push(R)});for(var j=0;j<x.length;j++){var D=x[j];g&&!D.visible||!this.isElementInArea(D,n,s,u,p)||m.push(D)}return m}},{key:"getModel",value:function(n){return this.modelMap.get(n)}},{key:"getNodeModelById",value:function(n){var s;return this.fakerNode&&n===this.fakerNode.id?this.fakerNode:(s=this.nodesMap[n])===null||s===void 0?void 0:s.model}},{key:"getPointByClient",value:function(n){var s=n.x,u=n.y,p=this.rootEl.getBoundingClientRect(),g={x:s-p.left,y:u-p.top},m=Qs(this.transformModel.HtmlPointToCanvasPoint([g.x,g.y]),2);return{domOverlayPosition:g,canvasOverlayPosition:{x:m[0],y:m[1]}}}},{key:"isElementInArea",value:function(n,s,u){var p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],g=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];if(n.BaseType===qr.NODE){for(var m=uo(n=n),x=m.minX,j=m.minY,D=m.maxX,R=m.maxY,Y=[{x,y:j},{x:D,y:j},{x:D,y:R},{x,y:R}],J=g,nt=0;nt<Y.length;nt++){var yt=Y[nt],gt=yt.x,xt=yt.y,Rt=this.transformModel.CanvasPointToHtmlPoint([gt,xt]),Jt=Qs(Rt,2);if(gt=Jt[0],xt=Jt[1],cf([gt,xt],s,u)!==g){J=!g;break}}return J}if(n.BaseType===qr.EDGE){var $t=n=n,_e=$t.startPoint,qt=$t.endPoint,ye=this.transformModel.CanvasPointToHtmlPoint([_e.x,_e.y]),ne=this.transformModel.CanvasPointToHtmlPoint([qt.x,qt.y]),Je=cf(ye,s,u),ir=cf(ne,s,u);return p?Je&&ir:Je||ir}return!1}},{key:"graphDataToModel",value:function(n){var s=this;if(this.width&&this.height||this.resize(),!n)return this.nodes=[],void(this.edges=[]);n.nodes?this.nodes=ls(n.nodes,function(u){return s.getModelAfterSnapToGrid(u)}):this.nodes=[],n.edges?this.edges=ls(n.edges,function(u){var p=s.getModel(u.type);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(u.type,"\u5BF9\u5E94\u7684\u8FB9\u3002"));return new p(u,s)}):this.edges=[]}},{key:"modelToGraphData",value:function(){var n=[];this.edges.forEach(function(u){var p=u.getData();p&&!u.virtual&&n.push(p)});var s=[];return this.nodes.forEach(function(u){var p=u.getData();p&&!u.virtual&&s.push(p)}),{nodes:s,edges:n}}},{key:"modelToHistoryData",value:function(){for(var n=!1,s=[],u=0;u<this.nodes.length;u++){var p=this.nodes[u];if(p.isDragging){n=!0;break}s.push(p.getHistoryData())}if(n)return!1;for(var g=!1,m=[],x=0;x<this.edges.length;x++){var j=this.edges[x];if(j.isDragging){g=!0;break}m.push(j.getHistoryData())}return!g&&{nodes:s,edges:m}}},{key:"getEdgeModelById",value:function(n){var s;return(s=this.edgesMap[n])===null||s===void 0?void 0:s.model}},{key:"getElement",value:function(n){return this.modelsMap[n]}},{key:"getNodeEdges",value:function(n){for(var s=[],u=0;u<this.edges.length;u++){var p=this.edges[u],g=this.edges[u].sourceNodeId===n,m=this.edges[u].targetNodeId===n;(g||m)&&s.push(p)}return s}},{key:"getSelectElements",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],s=this.selectElements,u={nodes:[],edges:[]};return s.forEach(function(p){if(p.BaseType===qr.NODE&&u.nodes.push(p.getData()),p.BaseType===qr.EDGE){var g=p.getData(),m=s.get(g.sourceNodeId)&&s.get(g.targetNodeId);(n||m)&&u.edges.push(g)}}),u}},{key:"updateAttributes",value:function(n,s){this.getElement(n).updateAttributes(s)}},{key:"changeNodeId",value:function(n,s){return s||(s=qi()),this.nodesMap[s]?"":this.nodesMap[n]?(this.edges.forEach(function(u){u.sourceNodeId===n&&(u.sourceNodeId=s),u.targetNodeId===n&&(u.targetNodeId=s)}),this.nodesMap[n].model.id=s,this.nodesMap[s]=this.nodesMap[n],s):""}},{key:"changeEdgeId",value:function(n,s){return s||(s=qi()),this.edgesMap[s]?"":this.edgesMap[n]?(this.edges.forEach(function(u){u.id===n&&u.changeEdgeId(s)}),s):""}},{key:"setFakerNode",value:function(n){this.fakerNode=n}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(n,s){return this.modelMap.set(n,s)}},{key:"toFront",value:function(n){var s,u,p,g=((s=this.nodesMap[n])===null||s===void 0?void 0:s.model)||((u=this.edgesMap[n])===null||u===void 0?void 0:u.model);g&&(this.overlapMode===zr.DEFAULT&&((p=this.topElement)===null||p===void 0||p.setZIndex(),g.setZIndex(9999),this.topElement=g),this.overlapMode===zr.INCREASE&&this.setElementZIndex(n,"top"))}},{key:"setElementZIndex",value:function(n,s){var u,p,g,m=((u=this.nodesMap[n])===null||u===void 0?void 0:u.model)||((p=this.edgesMap[n])===null||p===void 0?void 0:p.model);m&&(typeof s=="number"&&(g=s),s==="top"&&(g=kf()),s==="bottom"&&(g=--Sg),m.setZIndex(g))}},{key:"deleteNode",value:function(n){var s=this.nodesMap[n].model.getData();this.deleteEdgeBySource(n),this.deleteEdgeByTarget(n),this.nodes.splice(this.nodesMap[n].index,1),this.eventCenter.emit(de.NODE_DELETE,{data:s})}},{key:"addNode",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.NODE_ADD,u=arguments.length>2?arguments[2]:void 0,p=vn(n);p.id&&this.nodesMap[n.id]&&delete p.id;var g=this.getModelAfterSnapToGrid(p);this.nodes.push(g);var m=g.getData(),x={data:m};return u&&(x.e=u),this.eventCenter.emit(s,x),g}},{key:"getModelAfterSnapToGrid",value:function(n){var s=this.getModel(n.type);if(!s)throw new Error("\u627E\u4E0D\u5230".concat(n.type,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var u=n.x,p=n.y;return u&&p&&(n.x=Ki(u,this.gridSize),n.y=Ki(p,this.gridSize),bd(n.text)==="object"&&(n.text.x+=n.x-u,n.text.y+=n.y-p)),new s(n,this)}},{key:"cloneNode",value:function(n){var s=this.getNodeModelById(n),u=s.getData();u.x+=30,u.y+=30,delete u.id,u.text&&(u.text.x+=30,u.text.y+=30);var p=this.addNode(u);return p.setSelected(!0),s.setSelected(!1),p.getData()}},{key:"moveNode",value:function(n,s,u){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=this.nodesMap[n];if(g){var m=g.model,x=m.getMoveDistance(s,u,p),j=Qs(x,2);s=j[0],u=j[1],this.moveEdge(n,s,u)}}},{key:"moveNode2Coordinate",value:function(n,s,u){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=this.nodesMap[n];if(g){var m=g.model,x=m.x,j=m.y,D=s-x,R=u-j;this.moveNode(n,D,R,p)}}},{key:"editText",value:function(n){this.setElementStateById(n,yr.TEXT_EDIT)}},{key:"addEdge",value:function(n){var s=vn(n),u=s.type;u||(u=this.edgeType),s.id&&this.edgesMap[s.id]&&delete s.id;var p=this.getModel(u);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(u,"\u5BF9\u5E94\u7684\u8FB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8FB9\u3002"));var g=new p(md(md({},s),{},{type:u}),this),m=g.getData();return this.edges.push(g),this.eventCenter.emit(de.EDGE_ADD,{data:m}),g}},{key:"moveEdge",value:function(n,s,u){for(var p=0;p<this.edges.length;p++){var g=this.edges[p],m=g.textPosition,x=m.x,j=m.y,D=this.edges[p].sourceNodeId===n,R=this.edges[p].targetNodeId===n;D&&g.moveStartPoint(s,u),R&&g.moveEndPoint(s,u),(D||R)&&this.handleEdgeTextMove(g,x,j)}}},{key:"handleEdgeTextMove",value:function(n,s,u){var p;if(n.customTextPosition===!0)n.resetTextPosition();else if(n.modelType===qe.POLYLINE_EDGE&&(p=n.text)!==null&&p!==void 0&&p.value){var g=n.text,m=Vf(g,n.points);n.moveText(m.x-g.x,m.y-g.y)}else{var x=n.textPosition,j=x.x,D=x.y;n.moveText(j-s,D-u)}}},{key:"deleteEdgeBySourceAndTarget",value:function(n,s){for(var u=0;u<this.edges.length;u++)if(this.edges[u].sourceNodeId===n&&this.edges[u].targetNodeId===s){var p=this.edges[u].getData();this.edges.splice(u,1),u--,this.eventCenter.emit(de.EDGE_DELETE,{data:p})}}},{key:"deleteEdgeById",value:function(n){if(this.edgesMap[n]){var s=this.edgesMap[n].index,u=this.edgesMap[n].model.getData();this.edges.splice(s,1),this.eventCenter.emit(de.EDGE_DELETE,{data:u})}}},{key:"deleteEdgeBySource",value:function(n){for(var s=0;s<this.edges.length;s++)if(this.edges[s].sourceNodeId===n){var u=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(de.EDGE_DELETE,{data:u})}}},{key:"deleteEdgeByTarget",value:function(n){for(var s=0;s<this.edges.length;s++)if(this.edges[s].targetNodeId===n){var u=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(de.EDGE_DELETE,{data:u})}}},{key:"setElementStateById",value:function(n,s,u){this.nodes.forEach(function(p){p.id===n?p.setElementState(s,u):p.setElementState(yr.DEFAULT)}),this.edges.forEach(function(p){p.id===n?p.setElementState(s,u):p.setElementState(yr.DEFAULT)})}},{key:"updateText",value:function(n,s){this.nodes.forEach(function(u){u.id===n&&u.updateText(s)}),this.edges.forEach(function(u){u.id===n&&u.updateText(s)})}},{key:"selectNodeById",value:function(n){var s,u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];u||this.clearSelectElements();var p=(s=this.nodesMap[n])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectEdgeById",value:function(n){var s,u=arguments.length>1&&arguments[1]!==void 0&&arguments[1];u||this.clearSelectElements();var p=(s=this.edgesMap[n])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectElementById",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];s||this.clearSelectElements();var u=this.getElement(n);u==null||u.setSelected(!0)}},{key:"clearSelectElements",value:function(){var n;this.selectElements.forEach(function(s){s==null||s.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===zr.DEFAULT&&((n=this.topElement)===null||n===void 0||n.setZIndex())}},{key:"moveNodes",value:function(n,s,u){for(var p=this,g=arguments.length>3&&arguments[3]!==void 0&&arguments[3],m=n.reduce(function($t,_e){var qt=p.nodesMap[_e].model.getMoveDistance(s,u,g);return $t[_e]=qt,$t},{}),x=0;x<this.edges.length;x++){var j=this.edges[x],D=j.textPosition,R=D.x,Y=D.y,J=m[j.sourceNodeId],nt=m[j.targetNodeId],yt=void 0,gt=void 0;if(J&&nt&&j.modelType===qe.POLYLINE_EDGE){var xt=Qs(J,2);yt=xt[0],gt=xt[1],j.updatePointsList(yt,gt)}else{if(J){var Rt=Qs(J,2);yt=Rt[0],gt=Rt[1],j.moveStartPoint(yt,gt)}if(nt){var Jt=Qs(nt,2);yt=Jt[0],gt=Jt[1],j.moveEndPoint(yt,gt)}}(J||nt)&&this.handleEdgeTextMove(j,R,Y)}}},{key:"addNodeMoveRules",value:function(n){this.nodeMoveRules.includes(n)||this.nodeMoveRules.push(n)}},{key:"setDefaultEdgeType",value:function(n){this.edgeType=n}},{key:"changeNodeType",value:function(n,s){var u=this.getNodeModelById(n);if(u){var p=u.getData();p.type=s;var g=this.getModel(s);if(!g)throw new Error("\u627E\u4E0D\u5230".concat(s,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var m=new g(p,this);this.nodes.splice(this.nodesMap[n].index,1,m),this.getNodeEdges(n).forEach(function(x){if(x.sourceNodeId===n){var j=Kh(m,x.startPoint,m.width,m.height);x.updateStartPoint(j)}if(x.targetNodeId===n){var D=Kh(m,x.endPoint,m.width,m.height);x.updateEndPoint(D)}})}}},{key:"changeEdgeType",value:function(n,s){var u=this.getEdgeModelById(n);if(u&&u.type!==s){var p=u.getData();p.type=s;var g=this.getModel(s);if(!g)throw new Error("\u627E\u4E0D\u5230".concat(s,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));delete p.pointsList;var m=new g(p,this);this.edges.splice(this.edgesMap[n].index,1,m)}}},{key:"getNodeIncomingEdge",value:function(n){var s=[];return this.edges.forEach(function(u){u.targetNodeId===n&&s.push(u)}),s}},{key:"getNodeOutgoingEdge",value:function(n){var s=[];return this.edges.forEach(function(u){u.sourceNodeId===n&&s.push(u)}),s}},{key:"getAnchorIncomingEdge",value:function(n){var s=[];return this.edges.forEach(function(u){u.targetAnchorId===n&&s.push(u)}),s}},{key:"getAnchorOutcomingEdge",value:function(n){var s=[];return this.edges.forEach(function(u){u.sourceAnchorId===n&&s.push(u)}),s}},{key:"getNodeIncomingNode",value:function(n){var s=this,u=[];return this.edges.forEach(function(p){p.targetNodeId===n&&u.push(s.nodesMap[p.sourceNodeId].model)}),u}},{key:"getNodeOutgoingNode",value:function(n){var s=this,u=[];return this.edges.forEach(function(p){p.sourceNodeId===n&&u.push(s.nodesMap[p.targetNodeId].model)}),u}},{key:"setTheme",value:function(n){this.theme=nc(md(md({},this.theme),n))}},{key:"resize",value:function(n,s){this.width=n||this.rootEl.getBoundingClientRect().width,this.height=s||this.rootEl.getBoundingClientRect().height,!this.width||this.height}},{key:"clearData",value:function(){this.nodes=[],this.edges=[]}},{key:"getVirtualRectSize",value:function(){var n=this.nodes,s=[],u=[];n.forEach(function(D){var R=D.x,Y=D.y,J=D.width,nt=D.height,yt=D.getNodeStyle().strokeWidth,gt=yt===void 0?0:yt,xt=R+J/2+gt,Rt=R-J/2-gt,Jt=Y+nt/2+gt,$t=Y-nt/2-gt;s=s.concat([xt,Rt].filter(function(_e){return!Number.isNaN(_e)})),u=u.concat([Jt,$t].filter(function(_e){return!Number.isNaN(_e)}))});var p=Math.min.apply(Math,Js(s)),g=Math.max.apply(Math,Js(s)),m=Math.min.apply(Math,Js(u)),x=g-p||0,j=Math.max.apply(Math,Js(u))-m||0;return{virtualRectWidth:x,virtualRectHeight:j,virtualRectCenterPositionX:p+x/2,virtualRectCenterPositionY:m+j/2}}},{key:"translateCenter",value:function(){var n=this.nodes,s=this.width,u=this.height,p=this.rootEl,g=this.transformModel;if(n.length){var m=s||p.clientWidth,x=u||p.clientHeight,j=this.getVirtualRectSize(),D=j.virtualRectCenterPositionX,R=j.virtualRectCenterPositionY;g.focusOn(D,R,m,x)}}},{key:"fitView",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:20,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,u=this.nodes,p=this.width,g=this.height,m=this.rootEl,x=this.transformModel;if(u.length){var j=p||m.clientWidth,D=g||m.clientHeight,R=this.getVirtualRectSize(),Y=R.virtualRectWidth,J=R.virtualRectHeight,nt=R.virtualRectCenterPositionX,yt=R.virtualRectCenterPositionY,gt=(Y+s)/j,xt=(J+n)/D,Rt=0;Rt=1/Math.max(gt,xt);var Jt=[j/2,D/2];x.zoom(Rt,Jt),x.focusOn(nt,yt,j,D)}}},{key:"openEdgeAnimation",value:function(n){this.getEdgeModelById(n).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(n){this.getEdgeModelById(n).closeEdgeAnimation()}}],r&&qD(t.prototype,r),e}(),No=xe(bt.prototype,"width",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),an=xe(bt.prototype,"height",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ri=xe(bt.prototype,"edgeType",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ji=xe(bt.prototype,"nodes",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),bu=xe(bt.prototype,"edges",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),xc=xe(bt.prototype,"overlapMode",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return zr.DEFAULT}}),Ta=xe(bt.prototype,"background",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ra=xe(bt.prototype,"transformModel",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tp=xe(bt.prototype,"editConfigModel",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ep=xe(bt.prototype,"gridSize",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Ec=xe(bt.prototype,"partial",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$s=xe(bt.prototype,"fakerNode",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xe(bt.prototype,"nodesMap",[y.m],Object.getOwnPropertyDescriptor(bt.prototype,"nodesMap"),bt.prototype),xe(bt.prototype,"edgesMap",[y.m],Object.getOwnPropertyDescriptor(bt.prototype,"edgesMap"),bt.prototype),xe(bt.prototype,"modelsMap",[y.m],Object.getOwnPropertyDescriptor(bt.prototype,"modelsMap"),bt.prototype),xe(bt.prototype,"sortElements",[y.m],Object.getOwnPropertyDescriptor(bt.prototype,"sortElements"),bt.prototype),xe(bt.prototype,"textEditElement",[y.m],Object.getOwnPropertyDescriptor(bt.prototype,"textEditElement"),bt.prototype),xe(bt.prototype,"selectElements",[y.m],Object.getOwnPropertyDescriptor(bt.prototype,"selectElements"),bt.prototype),xe(bt.prototype,"selectNodes",[y.m],Object.getOwnPropertyDescriptor(bt.prototype,"selectNodes"),bt.prototype),xe(bt.prototype,"setFakerNode",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"setFakerNode"),bt.prototype),xe(bt.prototype,"removeFakerNode",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"removeFakerNode"),bt.prototype),xe(bt.prototype,"setModel",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"setModel"),bt.prototype),xe(bt.prototype,"toFront",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"toFront"),bt.prototype),xe(bt.prototype,"setElementZIndex",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"setElementZIndex"),bt.prototype),xe(bt.prototype,"deleteNode",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"deleteNode"),bt.prototype),xe(bt.prototype,"addNode",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"addNode"),bt.prototype),xe(bt.prototype,"cloneNode",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"cloneNode"),bt.prototype),xe(bt.prototype,"moveNode",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"moveNode"),bt.prototype),xe(bt.prototype,"moveNode2Coordinate",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"moveNode2Coordinate"),bt.prototype),xe(bt.prototype,"editText",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"editText"),bt.prototype),xe(bt.prototype,"addEdge",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"addEdge"),bt.prototype),xe(bt.prototype,"moveEdge",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"moveEdge"),bt.prototype),xe(bt.prototype,"deleteEdgeBySourceAndTarget",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"deleteEdgeBySourceAndTarget"),bt.prototype),xe(bt.prototype,"deleteEdgeById",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"deleteEdgeById"),bt.prototype),xe(bt.prototype,"deleteEdgeBySource",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"deleteEdgeBySource"),bt.prototype),xe(bt.prototype,"deleteEdgeByTarget",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"deleteEdgeByTarget"),bt.prototype),xe(bt.prototype,"setElementStateById",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"setElementStateById"),bt.prototype),xe(bt.prototype,"updateText",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"updateText"),bt.prototype),xe(bt.prototype,"selectNodeById",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"selectNodeById"),bt.prototype),xe(bt.prototype,"selectEdgeById",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"selectEdgeById"),bt.prototype),xe(bt.prototype,"selectElementById",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"selectElementById"),bt.prototype),xe(bt.prototype,"clearSelectElements",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"clearSelectElements"),bt.prototype),xe(bt.prototype,"moveNodes",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"moveNodes"),bt.prototype),xe(bt.prototype,"setDefaultEdgeType",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"setDefaultEdgeType"),bt.prototype),xe(bt.prototype,"changeNodeType",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"changeNodeType"),bt.prototype),xe(bt.prototype,"changeEdgeType",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"changeEdgeType"),bt.prototype),xe(bt.prototype,"getNodeIncomingEdge",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"getNodeIncomingEdge"),bt.prototype),xe(bt.prototype,"getNodeOutgoingEdge",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"getNodeOutgoingEdge"),bt.prototype),xe(bt.prototype,"getAnchorIncomingEdge",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"getAnchorIncomingEdge"),bt.prototype),xe(bt.prototype,"getAnchorOutcomingEdge",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"getAnchorOutcomingEdge"),bt.prototype),xe(bt.prototype,"getNodeIncomingNode",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"getNodeIncomingNode"),bt.prototype),xe(bt.prototype,"getNodeOutgoingNode",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"getNodeOutgoingNode"),bt.prototype),xe(bt.prototype,"setTheme",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"setTheme"),bt.prototype),xe(bt.prototype,"resize",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"resize"),bt.prototype),xe(bt.prototype,"clearData",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"clearData"),bt.prototype),xe(bt.prototype,"translateCenter",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"translateCenter"),bt.prototype),xe(bt.prototype,"fitView",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"fitView"),bt.prototype),xe(bt.prototype,"openEdgeAnimation",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"openEdgeAnimation"),bt.prototype),xe(bt.prototype,"closeEdgeAnimation",[y.k],Object.getOwnPropertyDescriptor(bt.prototype,"closeEdgeAnimation"),bt.prototype),bt),$D=t1;function Rg(e){return Rg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rg(e)}function Ig(){return Ig=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ig.apply(this,arguments)}function QD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Lg(e,t){return Lg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Lg(e,t)}function JD(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=_d(e);if(t){var s=_d(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return tN(this,r)}}function tN(e,t){if(t&&(Rg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ia(e)}function ia(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _d(e){return _d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_d(e)}function Ma(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var e1,eN=Ti(Q_=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Lg(u,p)})(s,e);var t,r,n=JD(s);function s(u){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),Ma(ia(p=n.call(this)),"stepDrag",void 0),Ma(ia(p),"stepScrollX",0),Ma(ia(p),"stepScrollY",0),Ma(ia(p),"onDragging",function(j){var D=j.deltaX,R=j.deltaY;p.setState({isDragging:!0});var Y=p.props.graphModel,J=Y.transformModel;Y.editConfigModel.stopMoveGraph!==!0&&J.translate(D,R)}),Ma(ia(p),"onDragEnd",function(){p.setState({isDragging:!1})}),Ma(ia(p),"zoomHandler",function(j){var D=p.props,R=D.graphModel,Y=R.editConfigModel,J=R.transformModel,nt=R.gridSize,yt=D.graphModel,gt=j.deltaX,xt=j.deltaY;if(Y.stopScrollGraph||j.ctrlKey===!0){if(!Y.stopZoomGraph){j.preventDefault();var Rt=yt.getPointByClient({x:j.clientX,y:j.clientY}).canvasOverlayPosition,Jt=Rt.x,$t=Rt.y;J.zoom(j.deltaY<0,[Jt,$t])}}else{if(j.preventDefault(),p.stepScrollX+=gt,p.stepScrollY+=xt,Math.abs(p.stepScrollX)>=nt){var _e=p.stepScrollX%nt,qt=p.stepScrollX-_e;J.translate(-qt*J.SCALE_X,0),p.stepScrollX=_e}if(Math.abs(p.stepScrollY)>=nt){var ye=p.stepScrollY%nt,ne=p.stepScrollY-ye;J.translate(0,-ne*J.SCALE_Y),p.stepScrollY=ye}}}),Ma(ia(p),"clickHandler",function(j){if(j.target.getAttribute("name")==="canvas-overlay"){var D=p.props.graphModel;D.selectElements.size>0&&D.clearSelectElements(),D.eventCenter.emit(de.BLANK_CLICK,{e:j})}}),Ma(ia(p),"handleContextMenu",function(j){if(j.target.getAttribute("name")==="canvas-overlay"){j.preventDefault();var D=p.props.graphModel,R=D.getPointByClient({x:j.clientX,y:j.clientY});D.eventCenter.emit(de.BLANK_CONTEXTMENU,{e:j,position:R})}}),Ma(ia(p),"mouseDownHandler",function(j){var D=p.props.graphModel,R=D.eventCenter,Y=D.editConfigModel,J=D.transformModel.SCALE_X,nt=D.gridSize,yt=j.target,gt=!Y.adjustEdge&&!Y.adjustNodePosition;(yt.getAttribute("name")==="canvas-overlay"||gt)&&(Y.stopMoveGraph!==!0?(p.stepDrag.setStep(nt*J),p.stepDrag.handleMouseDown(j)):R.emit(de.BLANK_MOUSEDOWN,{e:j}),p.clickHandler(j))});var g=u.graphModel,m=g.gridSize,x=g.eventCenter;return p.stepDrag=new ei({onDragging:p.onDragging,onDragEnd:p.onDragEnd,step:m,eventType:"BLANK",isStopPropagation:!1,eventCenter:x,model:null}),p.state={isDragging:!1},p}return t=s,(r=[{key:"render",value:function(){var u=this.props.graphModel.transformModel.getTransformStyle().transform,p=this.props,g=p.children,m=p.dnd,x=this.state.isDragging;return Object(ft.g)("svg",Ig({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:x?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},m.eventMap()),Object(ft.g)("g",{transform:u},g))}}])&&QD(t.prototype,r),s}(ft.a))||Q_;function zg(e){return zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zg(e)}function rN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bg(e,t){return Bg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Bg(e,t)}function oN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Od(e);if(t){var s=Od(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return iN(this,r)}}function iN(e,t){if(t&&(zg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Od(e)}var aN=Ti(e1=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Bg(u,p)})(s,e);var t,r,n=oN(s);function s(){return rN(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"componentDidMount",value:function(){this.triggerToolRender()}},{key:"componentDidUpdate",value:function(){this.triggerToolRender()}},{key:"getTools",value:function(){var u=this.props,p=u.tool,g=u.graphModel,m=p.getTools().map(function(x){return Object(ft.g)(x,{graphModel:g,logicFlow:p.instance})});return p.components=m,m}},{key:"triggerToolRender",value:function(){var u=this.props,p=u.tool,g=u.graphModel,m=document.querySelector("#ToolOverlay_".concat(g.flowId)),x=p.getInstance();x.components.forEach(function(j){return j(x,m)}),x.components=[]}},{key:"render",value:function(){var u=this.props.graphModel;return Object(ft.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(u.flowId)},this.getTools())}}])&&nN(t.prototype,r),s}(ft.a))||e1;function Fg(e){return Fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fg(e)}function uN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ug(e,t){return Ug=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Ug(e,t)}function sN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=wd(e);if(t){var s=wd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return lN(this,r)}}function lN(e,t){if(t&&(Fg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},wd(e)}var r1,fN=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Ug(u,p)})(s,e);var t,r,n=sN(s);function s(){return uN(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){var u=this.props.background;return Object(ft.g)("div",{className:"lf-background"},Object(ft.g)("div",{style:u,className:"lf-background-area"}))}}])&&cN(t.prototype,r),s}(ft.a);function Gg(e){return Gg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gg(e)}function pN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Xg(e,t){return Xg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Xg(e,t)}function dN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=xd(e);if(t){var s=xd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return yN(this,r)}}function yN(e,t){if(t&&(Gg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n1(e)}function n1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},xd(e)}function gN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o1=Ti(r1=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Xg(u,p)})(s,e);var t,r,n=dN(s);function s(){var u;pN(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return gN(n1(u=n.call.apply(n,[this].concat(g))),"id",qi()),u}return t=s,(r=[{key:"renderDot",value:function(){var u=this.props,p=u.config,g=p.color,m=p.thickness,x=m===void 0?2:m,j=u.size,D=u.visible,R=Math.min(Math.max(2,x),j/2),Y=1;return D||(Y=0),Object(ft.g)("rect",{width:R,height:R,rx:R/2,ry:R/2,fill:g,opacity:Y})}},{key:"renderMesh",value:function(){var u=this.props,p=u.config,g=p.color,m=p.thickness,x=m===void 0?1:m,j=u.size,D=u.visible,R=Math.min(Math.max(1,x),j/2),Y="M ".concat(j," 0 H0 M0 0 V0 ").concat(j),J=1;return D||(J=0),Object(ft.g)("path",{d:Y,stroke:g,strokeWidth:R,opacity:J})}},{key:"render",value:function(){var u=this.props,p=u.type,g=u.size,m=u.graphModel.transformModel,x=[m.SCALE_X,m.SKEW_Y,m.SKEW_X,m.SCALE_Y,m.TRANSLATE_X,m.TRANSLATE_Y].join(","),j="matrix(".concat(x,")");return Object(ft.g)("div",{className:"lf-grid"},Object(ft.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(ft.g)("defs",null,Object(ft.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:j,x:"0",y:"0",width:g,height:g},p==="dot"&&this.renderDot(),p==="mesh"&&this.renderMesh())),Object(ft.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&hN(t.prototype,r),s}(ft.a))||r1;o1.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(53);function Yg(e){return Yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yg(e)}function vN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return i1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return i1(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  66. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a1,tl=function(e){var t={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(e).forEach(function(r){var n=vN(r,2),s=n[0],u=n[1];(s==="style"||Yg(u)!=="object")&&(t[s]=u)}),Object(ft.g)("line",t)};function Hg(e){return Hg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hg(e)}function u1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ed(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u1(Object(r),!0).forEach(function(n){mN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vg(e,t){return Vg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Vg(e,t)}function ON(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=jd(e);if(t){var s=jd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return wN(this,r)}}function wN(e,t){if(t&&(Hg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},jd(e)}var c1,xN=Ti(a1=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Vg(u,p)})(s,e);var t,r,n=ON(s);function s(){return bN(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){var u=this.props.snaplineModel,p=u.position,g=u.isShowHorizontal,m=u.isShowVertical,x=u.getStyle(),j=p.x,D=j===void 0?0:j,R=p.y,Y=R===void 0?0:R,J=Ed(Ed({x1:-1e5,y1:Y,x2:1e5,y2:Y},x),{},{stroke:g?x.stroke:"none"}),nt=Ed(Ed({x1:D,y1:-1e5,x2:D,y2:1e5},x),{},{stroke:m?x.stroke:"none"});return Object(ft.g)("g",{className:"lf-snapline"},Object(ft.g)(tl,J),Object(ft.g)(tl,nt))}}])&&_N(t.prototype,r),s}(ft.a))||a1;function Wg(e){return Wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wg(e)}function EN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return s1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return s1(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  67. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function s1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _u(e){var t=e.x,r=e.y,n=e.width,s=e.height,u=e.className,p=e.radius,g=t-n/2,m=r-s/2,x={};return Object.entries(e).forEach(function(j){var D=EN(j,2),R=D[0],Y=D[1];Wg(Y)!=="object"&&(x[R]=Y)}),x.className=u?"lf-basic-shape ".concat(u):"lf-basic-shape",p&&(x.rx=p,x.ry=p),x.x=g,x.y=m,Object(ft.g)("rect",x)}function Kg(e){return Kg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kg(e)}function el(){return el=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},el.apply(this,arguments)}function l1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function f1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l1(Object(r),!0).forEach(function(n){jN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zg(e,t){return Zg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Zg(e,t)}function AN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Sd(e);if(t){var s=Sd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return kN(this,r)}}function kN(e,t){if(t&&(Kg(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Sd(e){return Sd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Sd(e)}_u.defaultProps={className:"",radius:""};var p1,TN=Ti(c1=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Zg(u,p)})(s,e);var t,r,n=AN(s);function s(){return SN(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getNodesOutline",value:function(){var u=this.props.graphModel,p=u.nodes,g=u.editConfigModel,m=g.hoverOutline,x=g.nodeSelectedOutline,j=[];return p.forEach(function(D){if(D.isHovered||D.isSelected){var R=D.isHovered,Y=D.isSelected,J=D.x,nt=D.y,yt=D.width,gt=D.height;if(x&&Y||m&&R){var xt=D.getOutlineStyle(),Rt={};if(Object.keys(xt).forEach(function($t){$t!=="hover"&&(Rt[$t]=xt[$t])}),R){var Jt=xt.hover;Rt=f1(f1({},Rt),Jt)}j.push(Object(ft.g)(_u,el({transform:D.transform,className:"lf-outline-node",x:J,y:nt,width:yt+10,height:gt+10},Rt)))}}}),j}},{key:"getEdgeOutline",value:function(){for(var u=this.props.graphModel,p=u.edges,g=u.editConfigModel,m=g.edgeSelectedOutline,x=g.hoverOutline,j=[],D=0;D<p.length;D++){var R=p[D];(m&&R.isSelected||x&&R.isHovered)&&(R.modelType===qe.LINE_EDGE?j.push(this.getLineOutline(R)):R.modelType===qe.POLYLINE_EDGE?j.push(this.getPolylineOutline(R)):R.modelType===qe.BEZIER_EDGE&&j.push(this.getBezierOutline(R)))}return j}},{key:"getLineOutline",value:function(u){var p=u.startPoint,g=u.endPoint,m=(p.x+g.x)/2,x=(p.y+g.y)/2,j=Math.abs(p.x-g.x)+10,D=Math.abs(p.y-g.y)+10,R=u.getOutlineStyle();return Object(ft.g)(_u,el({className:"lf-outline-edge",x:m,y:x,width:j,height:D},R))}},{key:"getPolylineOutline",value:function(u){var p=u.points,g=ea(p),m=ta(g,8),x=m.x,j=m.y,D=m.width,R=m.height,Y=u.getOutlineStyle();return Object(ft.g)(_u,el({className:"lf-outline",x,y:j,width:D,height:R},Y))}},{key:"getBezierOutline",value:function(u){var p=u.path,g=_n(p),m=ta(g,8),x=m.x,j=m.y,D=m.width,R=m.height,Y=u.getOutlineStyle();return Object(ft.g)(_u,el({className:"lf-outline",x,y:j,width:D,height:R},Y))}},{key:"render",value:function(){return Object(ft.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&PN(t.prototype,r),s}(ft.a))||c1;function qg(e){return qg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qg(e)}function MN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return h1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return h1(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  68. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function h1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rl(e){var t=e.x,r=t===void 0?0:t,n=e.y,s=n===void 0?0:n,u=e.r,p=u===void 0?4:u,g=e.className,m={cx:r,cy:s,r:p,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(e).forEach(function(x){var j=MN(x,2),D=j[0],R=j[1];qg(R)!=="object"&&(m[D]=R)}),m.className=g?"lf-basic-shape ".concat(g):"lf-basic-shape",Object(ft.g)("circle",m)}function $g(e){return $g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$g(e)}function DN(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return d1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return d1(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  69. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function d1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function np(){return np=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},np.apply(this,arguments)}function y1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v1(e,t,r){return t&&g1(e.prototype,t),r&&g1(e,r),e}function m1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qg(e,t)}function Qg(e,t){return Qg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Qg(e,t)}function b1(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Ad(e);if(t){var s=Ad(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return NN(this,r)}}function NN(e,t){if(t&&($g(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pd(e)}function Pd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ad(e)}function Jg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _1,O1=function(e){m1(r,e);var t=b1(r);function r(){var n;return y1(this,r),Jg(Pd(n=t.call(this)),"dragHandler",void 0),Jg(Pd(n),"onDragging",function(s){var u=s.event,p=n.props,g=p.graphModel,m=p.bezierModel,x=p.type,j=g.getPointByClient({x:u.clientX,y:u.clientY}).canvasOverlayPosition,D=j.x,R=j.y;m.updateAdjustAnchor({x:D,y:R},x),g.eventCenter.emit(de.EDGE_ADJUST,{data:m.getData()})}),Jg(Pd(n),"onDragEnd",function(){n.props.bezierModel.isDragging=!1}),n.dragHandler=new ei({onDragging:n.onDragging,onDragEnd:n.onDragEnd}),n}return v1(r,[{key:"render",value:function(){var n=this,s=this.props.position,u=s.x,p=s.y,g=this.props.bezierModel.getEdgeStyle().adjustAnchor;return Object(ft.g)(rl,np({className:"lf-bezier-adjust-anchor",x:u,y:p},g,{onMouseDown:function(m){n.dragHandler.handleMouseDown(m)}}))}}]),r}(ft.a),CN=Ti(p1=function(e){m1(r,e);var t=b1(r);function r(){return y1(this,r),t.apply(this,arguments)}return v1(r,[{key:"getBezierAdjust",value:function(n,s){var u=n.path,p=n.id,g=DN(_n(u),4),m=g[0],x=g[1],j=g[2],D=g[3],R=n.getEdgeStyle().adjustLine,Y=[];return Y.push(Object(ft.g)(tl,np({x1:m.x,y1:m.y,x2:x.x,y2:x.y},R))),Y.push(Object(ft.g)(O1,{position:x,bezierModel:n,graphModel:s,key:"".concat(p,"_ePre"),type:"sNext"})),Y.push(Object(ft.g)(tl,np({x1:D.x,y1:D.y,x2:j.x,y2:j.y},R))),Y.push(Object(ft.g)(O1,{position:j,bezierModel:n,graphModel:s,key:"".concat(p,"_sNext"),type:"ePre"})),Y}},{key:"selectedBezierEdge",value:function(){for(var n=this.props.graphModel,s=n.edges,u=[],p=0;p<s.length;p++){var g=s[p];g.isSelected&&g.modelType===qe.BEZIER_EDGE&&g.draggable&&u.push(this.getBezierAdjust(g,n))}return u}},{key:"render",value:function(){return Object(ft.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),r}(ft.a))||p1;function tv(e){return tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tv(e)}function RN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ev(e,t){return ev=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},ev(e,t)}function LN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=kd(e);if(t){var s=kd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return zN(this,r)}}function zN(e,t){if(t&&(tv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function kd(e){return kd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},kd(e)}var w1,BN=Ti(_1=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&ev(u,p)})(s,e);var t,r,n=LN(s);function s(){return RN(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){var u=this.props.graphModel.transformModel.getTransformStyle().transform,p=this.props.children;return Object(ft.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(ft.g)("g",{transform:u},p))}}])&&IN(t.prototype,r),s}(ft.a))||_1;function rv(e){return rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(e)}function nv(){return nv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nv.apply(this,arguments)}function FN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ov(e,t){return ov=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},ov(e,t)}function GN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Td(e);if(t){var s=Td(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return XN(this,r)}}function XN(e,t){if(t&&(rv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Td(e){return Td=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Td(e)}var YN=Ti(w1=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&ov(u,p)})(s,e);var t,r,n=GN(s);function s(){return FN(this,s),n.apply(this,arguments)}return t=s,r=[{key:"getComponent",value:function(u,p){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"canvas-overlay",m=this.props.getView,x=m(u.type);return Object(ft.g)(x,{key:u.id,model:u,graphModel:p,overlay:g})}},{key:"render",value:function(){var u=this,p=this.props,g=p.graphModel,m=p.tool,x=p.options,j=p.dnd,D=p.snaplineModel,R={};x.width&&(R.width="".concat(g.width,"px")),x.height&&(R.height="".concat(g.height,"px"));var Y=x.grid,J=g.fakerNode,nt=g.editConfigModel.adjustEdge;return Object(ft.g)("div",{className:"lf-graph","flow-id":g.flowId,style:R},Object(ft.g)(eN,{graphModel:g,dnd:j},Object(ft.g)("g",{className:"lf-base"},ls(g.sortElements,function(yt){return u.getComponent(yt,g)})),J?this.getComponent(J,g):""),Object(ft.g)(BN,{graphModel:g},Object(ft.g)(TN,{graphModel:g}),nt?Object(ft.g)(CN,{graphModel:g}):"",x.snapline!==!1?Object(ft.g)(xN,{snaplineModel:D}):""),Object(ft.g)(aN,{graphModel:g,tool:m}),x.background&&Object(ft.g)(fN,{background:x.background}),x.grid&&Object(ft.g)(o1,nv({},Y,{graphModel:g})))}}],r&&UN(t.prototype,r),s}(ft.a))||w1,HN=YN;function x1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x1(Object(r),!0).forEach(function(n){Da(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Da(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var WN=function(){function e(n){var s=this;(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,e),Da(this,"nodeConfig",void 0),Da(this,"lf",void 0),Da(this,"fakerNode",void 0),Da(this,"stopDrag",function(){s.nodeConfig=null,window.document.removeEventListener("mouseup",s.stopDrag)}),Da(this,"dragEnter",function(p){s.nodeConfig&&!s.fakerNode&&(s.fakerNode=s.lf.createFakerNode(Md(Md({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY}))))}),Da(this,"onDragOver",function(p){if(p.preventDefault(),s.fakerNode){var g=s.clientToLocalPoint({x:p.clientX,y:p.clientY}),m=g.x,x=g.y;s.fakerNode.moveTo(m,x);var j=s.fakerNode.getData();s.lf.setNodeSnapLine(j),s.lf.graphModel.eventCenter.emit(de.NODE_DND_DRAG,{data:j})}return!1}),Da(this,"onDragLeave",function(){s.fakerNode&&(s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)}),Da(this,"onDrop",function(p){s.lf.graphModel&&p&&s.nodeConfig&&(s.lf.addNode(Md(Md({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY})),de.NODE_DND_ADD,p),p.preventDefault(),p.stopPropagation(),s.nodeConfig=null,s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)});var u=n.lf;this.lf=u}var t,r;return t=e,(r=[{key:"clientToLocalPoint",value:function(n){var s=n.x,u=n.y,p=ru(this.lf.options,["grid","size"]),g=this.lf.graphModel.getPointByClient({x:s,y:u}).canvasOverlayPosition,m=g.x,x=g.y;return{x:Ki(m,p),y:Ki(x,p)}}},{key:"startDrag",value:function(n){var s=this.lf.graphModel.editConfigModel;s!=null&&s.isSilentMode||(this.nodeConfig=n,window.document.addEventListener("mouseup",this.stopDrag))}},{key:"eventMap",value:function(){return{onMouseEnter:this.dragEnter,onMouseOver:this.dragEnter,onMouseMove:this.onDragOver,onMouseLeave:this.onDragLeave,onMouseUp:this.onDrop}}}])&&VN(t.prototype,r),e}();function E1(e){var t=e.container,r=e.grid,n=e.width,s=e.height;if(!t)throw new Error("\u8BF7\u68C0\u67E5 container \u53C2\u6570\u662F\u5426\u6709\u6548");if(typeof n=="string"||typeof s=="string")throw new Error("width\u6216height\u4E0D\u652F\u6301\u4F20\u5165\u5B57\u7B26\u4E32\uFF0C\u8BF7\u4F20\u6570\u5B57");return r&&(e.grid=Ea({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},r)),Ea({},S1,e)}var mr,j1,S1={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function iv(e){return iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iv(e)}function av(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return P1(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return P1(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  70. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Dd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A1(Object(r),!0).forEach(function(n){k1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KN(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function ZN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function op(){return op=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=$N(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},op.apply(this,arguments)}function $N(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Ou(e))!==null;);return e}function uv(e,t){return uv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},uv(e,t)}function QN(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Ou(e);if(t){var s=Ou(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return JN(this,r)}}function JN(e,t){if(t&&(iv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nd(e)}function Nd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ou(e){return Ou=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ou(e)}function k1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pi(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var cv=(mr=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&uv(u,p)})(s,e);var t,r,n=QN(s);function s(){var u;ZN(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return k1(Nd(u=n.call.apply(n,[this].concat(g))),"modelType",qe.BEZIER_EDGE),KN(Nd(u),"path",j1,Nd(u)),u}return t=s,(r=[{key:"initEdgeData",value:function(u){this.offset=100,op(Ou(s.prototype),"initEdgeData",this).call(this,u)}},{key:"getEdgeStyle",value:function(){var u=this.graphModel.theme.bezier;return Dd(Dd({},op(Ou(s.prototype),"getEdgeStyle",this).call(this)),Cr(u))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var u=0,p=0;return this.pointsList.forEach(function(g){var m=g.x,x=g.y;u+=m,p+=x}),{x:u/this.pointsList.length,y:p/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}},{key:"getData",value:function(){var u=op(Ou(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(g){return{x:g.x,y:g.y}});return Dd(Dd({},u),{},{pointsList:p})}},{key:"getControls",value:function(){var u=this.startPoint,p=this.endPoint;return Yf({start:u,end:p,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(u){var p=av(u,4),g=p[0],m=p[1],x=p[2],j=p[3];return"M ".concat(g.x," ").concat(g.y,`
  71. C `).concat(m.x," ").concat(m.y,`,
  72. `).concat(x.x," ").concat(x.y,`,
  73. `).concat(j.x," ").concat(j.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var u=this.getControls(),p=u.sNext,g=u.ePre;this.updatePath(p,g)}},{key:"updatePath",value:function(u,p){u=Cr(u),p=Cr(p);var g={x:this.startPoint.x,y:this.startPoint.y},m={x:this.endPoint.x,y:this.endPoint.y};if(!u||!p){var x=this.getControls();u=x.sNext,p=x.ePre}this.pointsList=[g,u,p,m],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(u){this.startPoint=Object.assign({},u),this.updatePoints()}},{key:"updateEndPoint",value:function(u){this.endPoint=Object.assign({},u),this.updatePoints()}},{key:"moveStartPoint",value:function(u,p){this.startPoint.x+=u,this.startPoint.y+=p;var g=av(this.pointsList,3),m=g[1],x=g[2];m.x+=u,m.y+=p,this.updatePath(m,x)}},{key:"moveEndPoint",value:function(u,p){this.endPoint.x+=u,this.endPoint.y+=p;var g=av(this.pointsList,3),m=g[1],x=g[2];x.x+=u,x.y+=p,this.updatePath(m,x)}},{key:"updateAdjustAnchor",value:function(u,p){p==="sNext"?this.pointsList[1]=u:p==="ePre"&&(this.pointsList[2]=u),this.path=this.getPath(this.pointsList),this.setText(Object.assign({},this.text,this.textPosition))}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var u=this.pointsList;return u[u.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(u){var p=u.startPoint,g=u.endPoint,m=u.sourceNode,x=u.targetNode,j=Yf({start:p,end:g,sourceNode:m,targetNode:x,offset:this.offset}),D=j.sNext,R=j.ePre;this.pointsList=[p,D,R,g],this.initPoints()}}])&&qN(t.prototype,r),s}(gu),j1=Pi(mr.prototype,"path",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Pi(mr.prototype,"initPoints",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"initPoints"),mr.prototype),Pi(mr.prototype,"updatePoints",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updatePoints"),mr.prototype),Pi(mr.prototype,"updateStartPoint",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updateStartPoint"),mr.prototype),Pi(mr.prototype,"updateEndPoint",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updateEndPoint"),mr.prototype),Pi(mr.prototype,"moveStartPoint",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"moveStartPoint"),mr.prototype),Pi(mr.prototype,"moveEndPoint",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"moveEndPoint"),mr.prototype),Pi(mr.prototype,"updateAdjustAnchor",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updateAdjustAnchor"),mr.prototype),Pi(mr.prototype,"getAdjustStart",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"getAdjustStart"),mr.prototype),Pi(mr.prototype,"getAdjustEnd",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"getAdjustEnd"),mr.prototype),Pi(mr.prototype,"updateAfterAdjustStartAndEnd",[y.k],Object.getOwnPropertyDescriptor(mr.prototype,"updateAfterAdjustStartAndEnd"),mr.prototype),mr),Vt,T1,M1,D1,N1,C1,R1,I1,L1,z1,B1,F1,U1,G1,X1,Y1,H1,V1,W1,K1,Z1,q1,$1,tC=function(e){return e==null};function eC(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||Q1(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  74. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sv(e){return sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sv(e)}function Q1(e,t){if(e){if(typeof e=="string")return J1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J1(e,t):void 0}}function J1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function lo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(r),!0).forEach(function(n){wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function un(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function rC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ke(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Na,eO,Ca=(Vt=function(){function e(n,s){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),wo(this,"id",""),un(this,"type",T1,this),un(this,"x",M1,this),un(this,"y",D1,this),un(this,"text",N1,this),un(this,"properties",C1,this),un(this,"_width",R1,this),un(this,"_height",I1,this),un(this,"anchorsOffset",L1,this),un(this,"isSelected",z1,this),un(this,"isHovered",B1,this),un(this,"isShowAnchor",F1,this),un(this,"isDragging",U1,this),un(this,"isHitable",G1,this),un(this,"draggable",X1,this),un(this,"visible",Y1,this),un(this,"enableRotate",H1,this),wo(this,"virtual",!1),wo(this,"graphModel",void 0),un(this,"zIndex",V1,this),un(this,"state",W1,this),un(this,"autoToFront",K1,this),un(this,"style",Z1,this),un(this,"transform",q1,this),un(this,"_rotate",$1,this),wo(this,"BaseType",qr.NODE),wo(this,"modelType",qe.NODE),wo(this,"additionStateData",void 0),wo(this,"targetRules",[]),wo(this,"sourceRules",[]),wo(this,"moveRules",[]),wo(this,"hasSetTargetRules",!1),wo(this,"hasSetSourceRules",!1),this.graphModel=s,this.initNodeData(n),this.setAttributes()}var t,r;return t=e,r=[{key:"width",get:function(){return this._width},set:function(n){this._width=n}},{key:"height",get:function(){return this._height},set:function(n){this._height=n}},{key:"rotate",get:function(){return this._rotate},set:function(n){this._rotate=n;var s=this.x,u=s===void 0?0:s,p=this.y,g=p===void 0?0:p;this.transform=new oa(-u,-g).rotate(n).translate(u,g).toString()}},{key:"incoming",get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}}},{key:"outgoing",get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}}},{key:"initNodeData",value:function(n){if(n.properties||(n.properties={}),!n.id){var s=this.graphModel.idGenerator,u=s&&s(n.type),p=this.createId();n.id=p||u||qi()}this.formatText(n),yn(this,function(g){return di(g,["id","type","x","y","text","properties","virtual","rotate"])}(n)),this.graphModel.overlapMode===zr.INCREASE&&(this.zIndex=n.zIndex||kf())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(n){n.text||(n.text={value:"",x:n.x,y:n.y,draggable:!1,editable:!0}),n.text&&typeof n.text=="string"?n.text={value:n.text,x:n.x,y:n.y,draggable:!1,editable:!0}:n.text&&n.text.editable===void 0&&(n.text.editable=!0)}},{key:"getData",value:function(){var n=this.text,s=n.x,u=n.y,p=n.value,g=this.properties;Object(y.x)(g)&&(g=Object(y.I)(g));var m={id:this.id,type:this.type,x:this.x,y:this.y,properties:g};return this.rotate&&(m.rotate=this.rotate),this.graphModel.overlapMode===zr.INCREASE&&(m.zIndex=this.zIndex),p&&(m.text={x:s,y:u,value:p}),m}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"getProperties",value:function(){return Object(y.I)(this.properties)}},{key:"getOuterGAttributes",value:function(){return{className:""}}},{key:"getNodeStyle",value:function(){return lo(lo({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var n=this.graphModel.theme.nodeText;return Cr(n)}},{key:"getRotateControlStyle",value:function(){var n=this.graphModel.theme.rotateControl;return Cr(n)}},{key:"getAnchorStyle",value:function(n){var s=this.graphModel.theme.anchor;return Cr(s)}},{key:"getAnchorLineStyle",value:function(n){var s=this.graphModel.theme.anchorLine;return Cr(s)}},{key:"getOutlineStyle",value:function(){var n=this.graphModel.theme.outline;return Cr(n)}},{key:"isAllowConnectedAsSource",value:function(n,s,u,p){var g=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var m,x=!0,j=0;j<g.length;j++){var D=g[j];if(!D.validate.call(this,this,n,s,u,p)){x=!1,m=D.message;break}}return{isAllPass:x,msg:m}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(n,s,u,p){var g=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var m,x=!0,j=0;j<g.length;j++){var D=g[j];if(!D.validate.call(this,n,this,s,u,p)){x=!1,m=D.message;break}}return{isAllPass:x,msg:m}}},{key:"isAllowMoveNode",value:function(n,s){var u,p=!0,g=!0,m=function(D,R){var Y=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!Y){if(Array.isArray(D)||(Y=Q1(D))||R&&D&&typeof D.length=="number"){Y&&(D=Y);var J=0,nt=function(){};return{s:nt,n:function(){return J>=D.length?{done:!0}:{done:!1,value:D[J++]}},e:function(Rt){throw Rt},f:nt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  75. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yt,gt=!0,xt=!1;return{s:function(){Y=Y.call(D)},n:function(){var Rt=Y.next();return gt=Rt.done,Rt},e:function(Rt){xt=!0,yt=Rt},f:function(){try{gt||Y.return==null||Y.return()}finally{if(xt)throw yt}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(m.s();!(u=m.n()).done;){var x=(0,u.value)(this,n,s);if(!x)return!1;if(sv(x)==="object"){var j=x;if(j.x===!1&&j.y===!1)return!1;p=p&&j.x,g=g&&j.y}}}catch(D){m.e(D)}finally{m.f()}return{x:p,y:g}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var n=this.anchorsOffset,s=this.id,u=this.x,p=this.y;return n&&n.length>0?n.map(function(g,m){return g.length?(g=g,{id:"".concat(s,"_").concat(m),x:u+g[0],y:p+g[1]}):lo(lo({},g=g),{},{x:u+g.x,y:p+g.y,id:g.id||"".concat(s,"_").concat(m)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(n){return function(s,u){for(var p,g=Yn(u),m=Number.MAX_SAFE_INTEGER,x=0;x<g.length;x++){var j=Do(s.x,s.y,g[x].x,g[x].y);j<m&&(m=j,p={index:x,anchor:vf(vf({},g[x]),{},{x:g[x].x,y:g[x].y,id:g[x].id})})}return p}(n,this)}},{key:"getBounds",value:function(){return{x1:this.x-this.width/2,y1:this.y-this.height/2,x2:this.x+this.width/2,y2:this.y+this.height/2}}},{key:"anchors",get:function(){var n=this.getAnchorsByOffset(),s=this.x,u=this.y,p=this.rotate;return n.forEach(function(g){var m=g.x,x=g.y,j=eC(new na([m,x,1]).translate(-s,-u).rotate(p).translate(s,u)[0],2),D=j[0],R=j[1];g.x=D,g.y=R}),n}},{key:"getAnchorInfo",value:function(n){if(!tC(n))for(var s=0;s<this.anchors.length;s++){var u=this.anchors[s];if(u.id===n)return u}}},{key:"addNodeMoveRules",value:function(n){this.moveRules.includes(n)||this.moveRules.push(n)}},{key:"move",value:function(n,s){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,g=!1;if(u)p=!0,g=!0;else{var m=this.isAllowMoveNode(n,s);typeof m=="boolean"?(p=m,g=m):(p=m.x,g=m.y)}if(p){var x=this.x+n;this.x=x,this.text&&this.moveText(n,0)}if(g){var j=this.y+s;this.y=j,this.text&&this.moveText(0,s)}return p||g}},{key:"getMoveDistance",value:function(n,s){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,g=!1,m=0,x=0;if(u)p=!0,g=!0;else{var j=this.isAllowMoveNode(n,s);typeof j=="boolean"?(p=j,g=j):(p=j.x,g=j.y)}if(p&&n){var D=this.x+n;this.x=D,this.text&&this.moveText(n,0),m=n}if(g&&s){var R=this.y+s;this.y=R,this.text&&this.moveText(0,s),x=s}return[m,x]}},{key:"moveTo",value:function(n,s){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=n-this.x,g=s-this.y;return!(!u&&!this.isAllowMoveNode(p,g)||(this.text&&this.text&&this.moveText(p,g),this.x=n,this.y=s,0))}},{key:"moveText",value:function(n,s){var u=this.text,p=u.x,g=u.y,m=u.value,x=u.draggable,j=u.editable;this.text={value:m,editable:j,draggable:x,x:p+n,y:g+s}}},{key:"updateText",value:function(n){this.text=lo(lo({},Object(y.I)(this.text)),{},{value:n})}},{key:"setSelected",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=n}},{key:"setHovered",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=n,this.setIsShowAnchor(n)}},{key:"setIsShowAnchor",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isShowAnchor=n}},{key:"setEnableRotate",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.enableRotate=n}},{key:"setHitable",value:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=n}},{key:"setElementState",value:function(n,s){this.state=n,this.additionStateData=s}},{key:"setProperty",value:function(n,s){this.properties=lo(lo({},Object(y.I)(this.properties)),{},wo({},n,vn(s))),this.setAttributes()}},{key:"setProperties",value:function(n){this.properties=lo(lo({},Object(y.I)(this.properties)),vn(n)),this.setAttributes()}},{key:"deleteProperty",value:function(n){delete this.properties[n],this.setAttributes()}},{key:"setStyle",value:function(n,s){this.style=lo(lo({},this.style),{},wo({},n,vn(s)))}},{key:"setStyles",value:function(n){this.style=lo(lo({},this.style),vn(n))}},{key:"updateStyles",value:function(n){this.style=lo({},vn(n))}},{key:"setZIndex",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=n}},{key:"updateAttributes",value:function(n){yn(this,n)}}],r&&rC(t.prototype,r),e}(),T1=Ke(Vt.prototype,"type",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),M1=Ke(Vt.prototype,"x",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),D1=Ke(Vt.prototype,"y",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),N1=Ke(Vt.prototype,"text",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),C1=Ke(Vt.prototype,"properties",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),R1=Ke(Vt.prototype,"_width",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),I1=Ke(Vt.prototype,"_height",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),L1=Ke(Vt.prototype,"anchorsOffset",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),z1=Ke(Vt.prototype,"isSelected",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),B1=Ke(Vt.prototype,"isHovered",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F1=Ke(Vt.prototype,"isShowAnchor",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),U1=Ke(Vt.prototype,"isDragging",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),G1=Ke(Vt.prototype,"isHitable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),X1=Ke(Vt.prototype,"draggable",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Y1=Ke(Vt.prototype,"visible",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),H1=Ke(Vt.prototype,"enableRotate",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),V1=Ke(Vt.prototype,"zIndex",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),W1=Ke(Vt.prototype,"state",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),K1=Ke(Vt.prototype,"autoToFront",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Z1=Ke(Vt.prototype,"style",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),q1=Ke(Vt.prototype,"transform",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$1=Ke(Vt.prototype,"_rotate",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ke(Vt.prototype,"incoming",[y.m],Object.getOwnPropertyDescriptor(Vt.prototype,"incoming"),Vt.prototype),Ke(Vt.prototype,"outgoing",[y.m],Object.getOwnPropertyDescriptor(Vt.prototype,"outgoing"),Vt.prototype),Ke(Vt.prototype,"addNodeMoveRules",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"addNodeMoveRules"),Vt.prototype),Ke(Vt.prototype,"move",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"move"),Vt.prototype),Ke(Vt.prototype,"getMoveDistance",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"getMoveDistance"),Vt.prototype),Ke(Vt.prototype,"moveTo",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"moveTo"),Vt.prototype),Ke(Vt.prototype,"moveText",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"moveText"),Vt.prototype),Ke(Vt.prototype,"updateText",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"updateText"),Vt.prototype),Ke(Vt.prototype,"setSelected",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setSelected"),Vt.prototype),Ke(Vt.prototype,"setHovered",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setHovered"),Vt.prototype),Ke(Vt.prototype,"setIsShowAnchor",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setIsShowAnchor"),Vt.prototype),Ke(Vt.prototype,"setEnableRotate",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setEnableRotate"),Vt.prototype),Ke(Vt.prototype,"setHitable",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setHitable"),Vt.prototype),Ke(Vt.prototype,"setElementState",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setElementState"),Vt.prototype),Ke(Vt.prototype,"setProperty",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setProperty"),Vt.prototype),Ke(Vt.prototype,"setProperties",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setProperties"),Vt.prototype),Ke(Vt.prototype,"deleteProperty",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"deleteProperty"),Vt.prototype),Ke(Vt.prototype,"setStyle",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setStyle"),Vt.prototype),Ke(Vt.prototype,"setStyles",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setStyles"),Vt.prototype),Ke(Vt.prototype,"updateStyles",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"updateStyles"),Vt.prototype),Ke(Vt.prototype,"setZIndex",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"setZIndex"),Vt.prototype),Ke(Vt.prototype,"updateAttributes",[y.k],Object.getOwnPropertyDescriptor(Vt.prototype,"updateAttributes"),Vt.prototype),Vt);function lv(e){return lv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lv(e)}function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function nO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rO(Object(r),!0).forEach(function(n){oO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nC(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function oC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fv(){return fv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=aC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},fv.apply(this,arguments)}function aC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=nl(e))!==null;);return e}function pv(e,t){return pv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},pv(e,t)}function uC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=nl(e);if(t){var s=nl(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return cC(this,r)}}function cC(e,t){if(t&&(lv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cd(e)}function Cd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nl(e){return nl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},nl(e)}function oO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hv(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Kn,iO,aO,dv=(Na=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&pv(u,p)})(s,e);var t,r,n=uC(s);function s(){var u;oC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return oO(Cd(u=n.call.apply(n,[this].concat(g))),"modelType",qe.CIRCLE_NODE),nC(Cd(u),"r",eO,Cd(u)),u}return t=s,(r=[{key:"width",get:function(){return 2*this.r}},{key:"height",get:function(){return 2*this.r}},{key:"getNodeStyle",value:function(){var u=fv(nl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.circle;return nO(nO({},u),Cr(p))}},{key:"getDefaultAnchor",value:function(){var u=this.x,p=this.y,g=this.r;return[{x:u,y:p-g,id:"".concat(this.id,"_0")},{x:u+g,y:p,id:"".concat(this.id,"_1")},{x:u,y:p+g,id:"".concat(this.id,"_2")},{x:u-g,y:p,id:"".concat(this.id,"_3")}]}}])&&iC(t.prototype,r),s}(Ca),eO=hv(Na.prototype,"r",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),hv(Na.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(Na.prototype,"width"),Na.prototype),hv(Na.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(Na.prototype,"height"),Na.prototype),Na);o(129);function yv(e){return yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yv(e)}function gv(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return uO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return uO(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  76. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function uO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function sO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(n){fO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lO(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function sC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vv(){return vv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=fC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},vv.apply(this,arguments)}function fC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=il(e))!==null;);return e}function mv(e,t){return mv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},mv(e,t)}function pC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=il(e);if(t){var s=il(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return hC(this,r)}}function hC(e,t){if(t&&(yv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ol(e)}function ol(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},il(e)}function fO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function al(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var aa,pO,hO,bv=(Kn=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&mv(u,p)})(s,e);var t,r,n=pC(s);function s(){var u;sC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return fO(ol(u=n.call.apply(n,[this].concat(g))),"modelType",qe.DIAMOND_NODE),lO(ol(u),"rx",iO,ol(u)),lO(ol(u),"ry",aO,ol(u)),u}return t=s,(r=[{key:"getNodeStyle",value:function(){var u=vv(il(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.diamond;return sO(sO({},u),Cr(p))}},{key:"points",get:function(){var u=this.x,p=this.y,g=this.rx,m=this.ry;return[[u,p-m],[u+g,p],[u,p+m],[u-g,p]]}},{key:"pointsPosition",get:function(){return this.points.map(function(u){return{x:u[0],y:u[1]}})}},{key:"width",get:function(){var u=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(g){var m=gv(g,1)[0];m<u&&(u=m),m>p&&(p=m)}),p-u}},{key:"height",get:function(){var u=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(g){var m=gv(g,2)[1];m<u&&(u=m),m>p&&(p=m)}),p-u}},{key:"getDefaultAnchor",value:function(){var u=this;return this.points.map(function(p,g){var m=gv(p,2);return{x:m[0],y:m[1],id:"".concat(u.id,"_").concat(g)}})}}])&&lC(t.prototype,r),s}(Ca),iO=al(Kn.prototype,"rx",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),aO=al(Kn.prototype,"ry",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),al(Kn.prototype,"points",[y.m],Object.getOwnPropertyDescriptor(Kn.prototype,"points"),Kn.prototype),al(Kn.prototype,"pointsPosition",[y.m],Object.getOwnPropertyDescriptor(Kn.prototype,"pointsPosition"),Kn.prototype),al(Kn.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(Kn.prototype,"width"),Kn.prototype),al(Kn.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(Kn.prototype,"height"),Kn.prototype),Kn);function _v(e){return _v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_v(e)}function dO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function yO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dO(Object(r),!0).forEach(function(n){vO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gO(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function dC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ov(){return Ov=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=gC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},Ov.apply(this,arguments)}function gC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=cl(e))!==null;);return e}function wv(e,t){return wv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},wv(e,t)}function vC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=cl(e);if(t){var s=cl(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return mC(this,r)}}function mC(e,t){if(t&&(_v(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ul(e)}function ul(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cl(e)}function vO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rd(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var oi,mO,xv=(aa=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&wv(u,p)})(s,e);var t,r,n=vC(s);function s(){var u;dC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return vO(ul(u=n.call.apply(n,[this].concat(g))),"modelType",qe.ELLIPSE_NODE),gO(ul(u),"rx",pO,ul(u)),gO(ul(u),"ry",hO,ul(u)),u}return t=s,(r=[{key:"getNodeStyle",value:function(){var u=Ov(cl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.ellipse;return yO(yO({},u),Cr(p))}},{key:"width",get:function(){return 2*this.rx}},{key:"height",get:function(){return 2*this.ry}},{key:"getDefaultAnchor",value:function(){var u=this.x,p=this.y,g=this.rx,m=this.ry;return[{x:u,y:p-m,id:"".concat(this.id,"_0")},{x:u+g,y:p,id:"".concat(this.id,"_1")},{x:u,y:p+m,id:"".concat(this.id,"_2")},{x:u-g,y:p,id:"".concat(this.id,"_3")}]}}])&&yC(t.prototype,r),s}(Ca),pO=Rd(aa.prototype,"rx",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),hO=Rd(aa.prototype,"ry",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),Rd(aa.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(aa.prototype,"width"),aa.prototype),Rd(aa.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(aa.prototype,"height"),aa.prototype),aa);function Ev(e){return Ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ev(e)}function jv(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return bO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return bO(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  77. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function bO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function OO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_O(Object(r),!0).forEach(function(n){wO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bC(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function _C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Sv(){return Sv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=wC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},Sv.apply(this,arguments)}function wC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=sl(e))!==null;);return e}function Pv(e,t){return Pv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Pv(e,t)}function xC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=sl(e);if(t){var s=sl(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return EC(this,r)}}function EC(e,t){if(t&&(Ev(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Id(e)}function Id(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sl(e){return sl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},sl(e)}function wO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ld(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Av,xO,kv=(oi=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Pv(u,p)})(s,e);var t,r,n=xC(s);function s(){var u;_C(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return wO(Id(u=n.call.apply(n,[this].concat(g))),"modelType",qe.POLYGON_NODE),bC(Id(u),"points",mO,Id(u)),u}return t=s,(r=[{key:"getNodeStyle",value:function(){var u=Sv(sl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.polygon;return OO(OO({},u),Cr(p))}},{key:"pointsPosition",get:function(){var u=this.x,p=this.y,g=this.width,m=this.height;return this.points.map(function(x){return{x:x[0]+u-g/2,y:x[1]+p-m/2}})}},{key:"width",get:function(){var u=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(g){var m=jv(g,1)[0];m<u&&(u=m),m>p&&(p=m)}),p-u}},{key:"height",get:function(){var u=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(g){var m=jv(g,2)[1];m<u&&(u=m),m>p&&(p=m)}),p-u}},{key:"getDefaultAnchor",value:function(){var u=this,p=this.x,g=this.y,m=this.width,x=this.height;return this.points.map(function(j,D){var R=jv(j,2),Y=R[0],J=R[1];return{x:p+Y-m/2,y:g+J-x/2,id:"".concat(u.id,"_").concat(D)}})}}])&&OC(t.prototype,r),s}(Ca),mO=Ld(oi.prototype,"points",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),Ld(oi.prototype,"pointsPosition",[y.m],Object.getOwnPropertyDescriptor(oi.prototype,"pointsPosition"),oi.prototype),Ld(oi.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(oi.prototype,"width"),oi.prototype),Ld(oi.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(oi.prototype,"height"),oi.prototype),oi);function Tv(e){return Tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tv(e)}function EO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function jO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(r),!0).forEach(function(n){SO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jC(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function SC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mv(){return Mv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=AC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},Mv.apply(this,arguments)}function AC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=ll(e))!==null;);return e}function Dv(e,t){return Dv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Dv(e,t)}function kC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ll(e);if(t){var s=ll(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return TC(this,r)}}function TC(e,t){if(t&&(Tv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zd(e)}function zd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ll(e)}function SO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wu,Nv=(Av=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Dv(u,p)})(s,e);var t,r,n=kC(s);function s(){var u;SC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return SO(zd(u=n.call.apply(n,[this].concat(g))),"modelType",qe.RECT_NODE),jC(zd(u),"radius",xO,zd(u)),u}return t=s,(r=[{key:"getDefaultAnchor",value:function(){var u=this.x,p=this.y,g=this.width,m=this.height;return[{x:u,y:p-m/2,id:"".concat(this.id,"_0")},{x:u+g/2,y:p,id:"".concat(this.id,"_1")},{x:u,y:p+m/2,id:"".concat(this.id,"_2")},{x:u-g/2,y:p,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var u=Mv(ll(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.rect;return jO(jO({},u),Cr(p))}}])&&PC(t.prototype,r),s}(Ca),xO=function(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}(Av.prototype,"radius",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Av);function Cv(e){return Cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cv(e)}function PO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function AO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(r),!0).forEach(function(n){TO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rv(){return Rv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(e,t,r){var n=NC(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:r):s.value}},Rv.apply(this,arguments)}function NC(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=fl(e))!==null;);return e}function Iv(e,t){return Iv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Iv(e,t)}function CC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=fl(e);if(t){var s=fl(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return RC(this,r)}}function RC(e,t){if(t&&(Cv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kO(e)}function kO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},fl(e)}function TO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MO(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var Lv=(wu=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Iv(u,p)})(s,e);var t,r,n=CC(s);function s(){var u;MC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return TO(kO(u=n.call.apply(n,[this].concat(g))),"modelType",qe.TEXT_NODE),u}return t=s,(r=[{key:"getTextStyle",value:function(){var u=Rv(fl(s.prototype),"getTextStyle",this).call(this),p=this.graphModel.theme.text;return AO(AO({},u),Cr(p))}},{key:"width",get:function(){var u=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return Af({rows:u,fontSize:p,rowsLength:u.length}).width}},{key:"height",get:function(){var u=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return Af({rows:u,fontSize:p,rowsLength:u.length}).height}}])&&DC(t.prototype,r),s}(Ca),MO(wu.prototype,"width",[y.m],Object.getOwnPropertyDescriptor(wu.prototype,"width"),wu.prototype),MO(wu.prototype,"height",[y.m],Object.getOwnPropertyDescriptor(wu.prototype,"height"),wu.prototype),wu);function zv(e){return zv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zv(e)}function IC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bv(e,t){return Bv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Bv(e,t)}function zC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Bd(e);if(t){var s=Bd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return BC(this,r)}}function BC(e,t){if(t&&(zv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DO(e)}function DO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Bd(e)}function FC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ai,NO,CO,RO,Fv=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Bv(u,p)})(s,e);var t,r,n=zC(s);function s(){var u;IC(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return FC(DO(u=n.call.apply(n,[this].concat(g))),"modelType",qe.HTML_NODE),u}return t=s,(r=[{key:"getDefaultAnchor",value:function(){var u=this.x,p=this.y,g=this.width,m=this.height;return[{x:u,y:p-m/2,id:"".concat(this.id,"_0")},{x:u+g/2,y:p,id:"".concat(this.id,"_1")},{x:u,y:p+m/2,id:"".concat(this.id,"_2")},{x:u-g/2,y:p,id:"".concat(this.id,"_3")}]}}])&&LC(t.prototype,r),s}(Ca);function IO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Uv(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function UC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function LO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ip(e,t,r,n,s){var u={};return Object.keys(n).forEach(function(p){u[p]=n[p]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=r.slice().reverse().reduce(function(p,g){return g(e,t,p)||p},u),s&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),u.initializer===void 0&&(Object.defineProperty(e,t,u),u=null),u}var zO=(Ai=function(){function e(n){(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,e),LO(this,"graphModel",void 0),Uv(this,"isShowHorizontal",NO,this),Uv(this,"isShowVertical",CO,this),Uv(this,"position",RO,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=n}var t,r;return t=e,r=[{key:"getStyle",value:function(){return function(n){for(var s=1;s<arguments.length;s++){var u=arguments[s]!=null?arguments[s]:{};s%2?IO(Object(u),!0).forEach(function(p){LO(n,p,u[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(u)):IO(Object(u)).forEach(function(p){Object.defineProperty(n,p,Object.getOwnPropertyDescriptor(u,p))})}return n}({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(n,s){for(var u=n.x,p=n.y,g=!1,m=!1,x=0;x<s.length;x++){var j=s[x];if(j.id!==n.id&&(u===j.x&&(g=!0),p===j.y&&(m=!0),g&&m))break}return{isShowVertical:g,isShowHorizontal:m,position:{x:u,y:p}}}},{key:"getHorizontalSnapline",value:function(n,s){var u,p,g=!1,m=n.id;if(m){var x=this.graphModel.fakerNode;if(x&&x.id===m)p=uo(x);else{var j=this.graphModel.getNodeModelById(m);p=uo(j)}}for(var D=0;D<s.length;D++){var R=s[D];if(R.id!==n.id){var Y=uo(R);if(Y.minY===p.minY||Y.maxY===p.minY){g=!0,u=p.minY;break}if(Y.minY===p.maxY||Y.maxY===p.maxY){g=!0,u=p.maxY;break}}}return yn({isShowHorizontal:g,position:{y:u}})}},{key:"getVerticalSnapline",value:function(n,s){var u,p,g=!1,m=n.id;if(m){var x=this.graphModel.fakerNode;if(x&&x.id===m)p=uo(x);else{var j=this.graphModel.getNodeModelById(m);p=uo(j)}}for(var D=0;D<s.length;D++){var R=s[D];if(R.id!==n.id){var Y=uo(R);if(Y.minX===p.minX||Y.maxX===p.minX){g=!0,u=p.minX;break}if(Y.minX===p.maxX||Y.maxX===p.maxX){g=!0,u=p.maxX;break}}}return yn({isShowVertical:g,position:{x:u}})}},{key:"getSnapLinePosition",value:function(n,s){var u=this.getCenterSnapLine(n,s),p=u.isShowHorizontal,g=u.isShowVertical;if(!p){var m=this.getHorizontalSnapline(n,s);m.isShowHorizontal&&(u.isShowHorizontal=m.isShowHorizontal,u.position.y=m.position.y)}if(!g){var x=this.getVerticalSnapline(n,s);x.isShowVertical&&(u.isShowVertical=x.isShowVertical,u.position.x=x.position.x)}return u}},{key:"setSnaplineInfo",value:function(n){var s=n.isShowHorizontal,u=n.isShowVertical,p=n.position;this.position=p,this.isShowHorizontal=s,this.isShowVertical=u}},{key:"clearSnapline",value:function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1}},{key:"setNodeSnapLine",value:function(n){var s=this.graphModel.nodes,u=this.getSnapLinePosition(n,s);this.setSnaplineInfo(u)}}],r&&UC(t.prototype,r),e}(),NO=ip(Ai.prototype,"isShowHorizontal",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CO=ip(Ai.prototype,"isShowVertical",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),RO=ip(Ai.prototype,"position",[y.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ip(Ai.prototype,"clearSnapline",[y.k],Object.getOwnPropertyDescriptor(Ai.prototype,"clearSnapline"),Ai.prototype),ip(Ai.prototype,"setNodeSnapLine",[y.k],Object.getOwnPropertyDescriptor(Ai.prototype,"setNodeSnapLine"),Ai.prototype),Ai),ap=new Map,BO=function(e){var t=qi(),r=window.requestAnimationFrame(function n(){if(e(),ap.get(t)){var s=window.requestAnimationFrame(n);ap.set(t,s)}});return ap.set(t,r),t},Fd=function(e){var t=ap.get(e);t&&(window.cancelAnimationFrame(t),ap.delete(e))};function Gv(e){return Gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gv(e)}function up(){return up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},up.apply(this,arguments)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){ca(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GC(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return UO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return UO(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  78. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function UO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Xv(e,t){return Xv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Xv(e,t)}function YC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Ud(e);if(t){var s=Ud(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return HC(this,r)}}function HC(e,t){if(t&&(Gv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ua(e)}function ua(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ud(e){return Ud=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ud(e)}function ca(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var VC=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Xv(u,p)})(s,e);var t,r,n=YC(s);function s(){var u;return function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}(this,s),ca(ua(u=n.call(this)),"preTargetNode",void 0),ca(ua(u),"sourceRuleResults",void 0),ca(ua(u),"targetRuleResults",void 0),ca(ua(u),"dragHandler",void 0),ca(ua(u),"t",void 0),ca(ua(u),"onDragStart",function(p){var g=p.event,m=u.props,x=m.anchorData,j=m.nodeModel,D=m.graphModel;D.overlapMode,D.selectNodeById(j.id),j.autoToFront&&D.toFront(j.id),D.eventCenter.emit(de.ANCHOR_DRAGSTART,{data:x,e:g,nodeModel:j}),u.setState({startX:x.x,startY:x.y,endX:x.x,endY:x.y})}),ca(ua(u),"onDragging",function(p){var g=p.event,m=u.props,x=m.graphModel,j=m.nodeModel,D=m.anchorData,R=x.transformModel,Y=x.eventCenter,J=x.width,nt=x.height,yt=x.editConfigModel,gt=yt.autoExpand,xt=yt.stopMoveGraph,Rt=g.clientX,Jt=g.clientY,$t=x.getPointByClient({x:Rt,y:Jt}),_e=$t.domOverlayPosition,qt=_e.x,ye=_e.y,ne=$t.canvasOverlayPosition,Je=ne.x,ir=ne.y;u.t&&Fd(u.t);var Ie=[];qt<10?Ie=[10,0]:qt+10>J?Ie=[-10,0]:ye<10?Ie=[0,10]:ye+10>nt&&(Ie=[0,-10]),u.setState({endX:Je,endY:ir,dragging:!0}),u.moveAnchorEnd(Je,ir),Ie.length>0&&!xt&&gt&&(u.t=BO(function(){var cr=GC(Ie,2),tn=cr[0],en=cr[1];R.translate(tn,en);var Ln=u.state,Io=Ln.endX,Lo=Ln.endY;u.setState({endX:Io-tn,endY:Lo-en}),u.moveAnchorEnd(Io-tn,Lo-en)})),Y.emit(de.ANCHOR_DRAG,{data:D,e:g,nodeModel:j})}),ca(ua(u),"onDragEnd",function(p){var g=p.event;u.t&&Fd(u.t);var m=u.checkEnd(g);u.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),u.sourceRuleResults.clear(),u.targetRuleResults.clear();var x=u.props,j=x.graphModel,D=x.nodeModel,R=x.anchorData;j.eventCenter.emit(de.ANCHOR_DRAGEND,{data:R,e:g,nodeModel:D,edgeModel:m})}),ca(ua(u),"checkEnd",function(p){var g=u.props,m=g.graphModel,x=g.nodeModel,j=g.anchorData,D=j.x,R=j.y,Y=j.id,J=(m.edgeType,u.state),nt=J.endX,yt=J.endY,gt=J.dragging,xt=Is({x:nt,y:yt},m);if(u.preTargetNode&&u.preTargetNode.state!==yr.DEFAULT&&u.preTargetNode.setElementState(yr.DEFAULT),gt&&xt&&xt.node){var Rt=xt.node,Jt=xt.anchor.id,$t="".concat(x.id,"_").concat(Rt.id,"_").concat(Jt,"_").concat(Y),_e=u.sourceRuleResults.get($t)||{},qt=_e.isAllPass,ye=_e.msg,ne=u.targetRuleResults.get($t)||{},Je=ne.isAllPass,ir=ne.msg;if(qt&&Je){Rt.setElementState(yr.DEFAULT);var Ie=m.edgeGenerator(x.getData(),m.getNodeModelById(xt.node.id).getData()),cr=m.addEdge(cp(cp({},Ie),{},{sourceNodeId:x.id,sourceAnchorId:Y,startPoint:{x:D,y:R},targetNodeId:xt.node.id,targetAnchorId:xt.anchor.id,endPoint:{x:xt.anchor.x,y:xt.anchor.y}})),tn=u.props.anchorData;return m.eventCenter.emit(de.ANCHOR_DROP,{data:tn,e:p,nodeModel:x,edgeModel:cr}),cr}var en=Rt.getData();return m.eventCenter.emit(de.CONNECTION_NOT_ALLOWED,{data:en,msg:ir||ye||"\u4E0D\u5141\u8BB8\u6DFB\u52A0\u8FDE\u7EBF"}),null}}),u.sourceRuleResults=new Map,u.targetRuleResults=new Map,u.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},u.dragHandler=new ei({onDragStart:u.onDragStart,onDragging:u.onDragging,onDragEnd:u.onDragEnd}),u}return t=s,(r=[{key:"getAnchorShape",value:function(){var u=this.props,p=u.anchorData,g=u.style,m=u.node.getAnchorShape(p);if(m)return m;var x=p.x,j=p.y,D=cp(cp({},g),g.hover);return Object(ft.g)("g",null,Object(ft.g)(rl,up({className:"lf-node-anchor-hover"},D,{x,y:j})),Object(ft.g)(rl,up({className:"lf-node-anchor"},g,{x,y:j})))}},{key:"customTrajectory",get:function(){return this.props.graphModel.customTrajectory}},{key:"relateEdges",get:function(){var u=this.props,p=u.graphModel,g=p.getAnchorIncomingEdge,m=p.getAnchorOutcomingEdge,x=u.anchorData.id;return{incomingEdgeList:g(x),outcomingEdgeList:m(x)}}},{key:"moveAnchorEnd",value:function(u,p){var g=this.props,m=g.graphModel,x=g.nodeModel,j=g.anchorData,D=Is({x:u,y:p},m);if(D){var R=D.node,Y=D.anchor.id;if(this.preTargetNode&&this.preTargetNode!==D.node&&this.preTargetNode.setElementState(yr.DEFAULT),j.id===Y)return;this.preTargetNode=R;var J="".concat(x.id,"_").concat(R.id,"_").concat(Y,"_").concat(j.id);if(!this.targetRuleResults.has(J)){var nt=D.anchor,yt=x.isAllowConnectedAsSource(R,j,nt),gt=R.isAllowConnectedAsTarget(x,j,nt);this.sourceRuleResults.set(J,sc(yt)),this.targetRuleResults.set(J,sc(gt))}var xt=this.sourceRuleResults.get(J).isAllPass,Rt=this.targetRuleResults.get(J).isAllPass;xt&&Rt?R.setElementState(yr.ALLOW_CONNECT):R.setElementState(yr.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==yr.DEFAULT&&this.preTargetNode.setElementState(yr.DEFAULT)}},{key:"isShowLine",value:function(){var u=this.state,p=u.startX,g=u.startY,m=u.endX,x=u.endY;return Do(p,g,m,x)>10}},{key:"render",value:function(){var u=this,p=this.state,g=p.startX,m=p.startY,x=p.endX,j=p.endY,D=this.props,R=D.anchorData.edgeAddable,Y=D.edgeStyle;return Object(ft.g)("g",{className:"lf-anchor"},Object(ft.g)("g",{onMouseDown:function(J){R!==!1&&u.dragHandler.handleMouseDown(J)}},this.getAnchorShape()),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(cp({sourcePoint:{x:g,y:m},targetPoint:{x,y:j}},Y)):Object(ft.g)(tl,up({x1:g,y1:m,x2:x,y2:j},Y,{"pointer-events":"none"}))))}}])&&XC(t.prototype,r),s}(ft.a);function GO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function WC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(r),!0).forEach(function(n){KC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yv(e){return Yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yv(e)}function ZC(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return XO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return XO(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  79. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function XO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YO(e){var t=e.x,r=t===void 0?0:t,n=e.y,s=n===void 0?0:n,u=e.value,p=e.fontSize,g=e.fill,m=g===void 0?"currentColor":g,x=e.overflowMode,j=x===void 0?"default":x,D=e.textWidth,R=D===void 0?"":D,Y=e.model,J={textAnchor:"middle","dominant-baseline":"middle",x:r,y:s,fill:m};if(Object.entries(e).forEach(function(Jt){var $t=ZC(Jt,2),_e=$t[0],qt=$t[1];Yv(qt)!=="object"&&(J[_e]=qt)}),u){var nt=String(u).split(/[\r\n]/g),yt=nt.length;if(j!=="default"){var gt=Y.BaseType,xt=Y.modelType;if(gt===qr.NODE&&xt!==qe.TEXT_NODE||gt===qr.EDGE&&R)return function(Jt){var $t=Jt.value,_e=Jt.fontSize,qt=Jt.model,ye=Jt.fontFamily,ne=ye===void 0?"":ye,Je=Jt.lineHeight,ir=Jt.wrapPadding,Ie=ir===void 0?"0, 0":ir,cr=Jt.overflowMode,tn=Jt.x,en=Jt.y,Ln=qt.width,Io=qt.textHeight,Lo=Jt.textWidth||Ln,fa=String($t).split(/[\r\n]/g),Mc=fa.length,py=Zh({rows:fa,style:{fontSize:"".concat(_e,"px"),width:"".concat(Lo,"px"),fontFamily:ne,lineHeight:Je,padding:Ie},rowsLength:Mc,className:"lf-get-text-height"}),Dc=qt.height>py?qt.height:py;Io&&(Dc=Io);var ju=cr==="ellipsis";return ju&&(Dc=_e+2),Object(ft.g)("g",null,Object(ft.g)("foreignObject",{width:Lo,height:Dc,x:tn-Lo/2,y:en-Dc/2},Object(ft.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:Dc,width:Lo,padding:Ie}},Object(ft.g)("div",{className:ju?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:ju?fa.join(""):"",style:WC({},Jt)},fa.map(function(Su){return Object(ft.g)("div",{className:"lf-node-text--auto-wrap-inner"},Su)})))))}(e)}if(yt>1){var Rt=nt.map(function(Jt,$t){var _e=($t-(yt-1)/2)*(p+2);return Object(ft.g)("tspan",{className:"lf-text-tspan",x:r,y:s+_e},Jt)});return Object(ft.g)("text",J,Rt)}return Object(ft.g)("text",J,u)}}function Hv(e){return Hv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hv(e)}function Vv(){return Vv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vv.apply(this,arguments)}function qC(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return HO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return HO(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  80. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function HO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wv(e,t){return Wv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Wv(e,t)}function QC(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Gd(e);if(t){var s=Gd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return JC(this,r)}}function JC(e,t){if(t&&(Hv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xu(e)}function xu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gd(e)}function Pc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var VO=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Wv(u,p)})(s,e);var t,r,n=QC(s);function s(u){var p;(function(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")})(this,s),Pc(xu(p=n.call(this)),"dragHandler",void 0),Pc(xu(p),"sumDeltaX",0),Pc(xu(p),"sumDeltaY",0),Pc(xu(p),"stepDrag",void 0),Pc(xu(p),"onDragging",function(m){var x=m.deltaX,j=m.deltaY,D=p.props,R=D.model,Y=qC(D.graphModel.transformModel.fixDeltaXY(x,j),2),J=Y[0],nt=Y[1];R.moveText(J,nt)}),Pc(xu(p),"dblClickHandler",function(){p.props.editable&&p.props.model.setElementState(yr.TEXT_EDIT)}),Pc(xu(p),"mouseDownHandle",function(m){var x=p.props,j=x.draggable,D=x.model,R=x.graphModel.editConfigModel.nodeTextDraggable;(j||R)&&(p.stepDrag.model=D,p.stepDrag.handleMouseDown(m))}),u.model;var g=u.draggable;return p.stepDrag=new ei({onDragging:p.onDragging,step:1,isStopPropagation:g}),p}return t=s,(r=[{key:"getShape",value:function(){var u=this.props,p=u.model,g=u.graphModel,m=p.text,x=g.editConfigModel,j=m.value,D=m.x,R=m.y,Y=m.editable,J=m.draggable,nt={x:D,y:R,className:"",value:j};Y?nt.className="lf-element-text":J||x.nodeTextDraggable?nt.className="lf-text-draggable":nt.className="lf-text-disabled";var yt=p.getTextStyle();return Object(ft.g)(YO,Vv({},nt,yt,{model:p}))}},{key:"render",value:function(){if(this.props.model.text)return Object(ft.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&$C(t.prototype,r),s}(ft.a),tR=ru(window,"navigator.userAgent","").match(/MSIE|Trident/)!==null,WO=o(130);function Kv(e){return Kv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kv(e)}function Zv(){return Zv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zv.apply(this,arguments)}function eR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qv(e,t){return qv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},qv(e,t)}function rR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Xd(e);if(t){var s=Xd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return nR(this,r)}}function nR(e,t){if(t&&(Kv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pl(e)}function pl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xd(e){return Xd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Xd(e)}function sp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oR=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&qv(u,p)})(s,e);var t,r,n=rR(s);function s(u){var p;return function(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),sp(pl(p=n.call(this,u)),"style",{}),sp(pl(p),"defaultAngle",void 0),sp(pl(p),"normal",void 0),sp(pl(p),"stepperDrag",void 0),sp(pl(p),"onDragging",function(g){var m,x=g.event,j=p.props,D=j.graphModel,R=j.nodeModel,Y=j.eventCenter,J=D.selectNodes,nt=R.x,yt=R.y,gt=x.clientX,xt=x.clientY,Rt=D.getPointByClient({x:gt,y:xt}).canvasOverlayPosition,Jt=Rt.x,$t=Rt.y,_e=new G(Jt-nt,$t-yt),qt=((m=p.normal)===null||m===void 0?void 0:m.angle(_e))-p.defaultAngle,ye=new oa(-nt,-yt).rotate(qt).translate(nt,yt).toString();R.transform=ye,R.rotate=qt;var ne=Object(WO.map)(J,function(ir){return ir.id});ne.indexOf(R.id)===-1&&(ne=[R.id]);var Je=Object(WO.reduce)(ne,function(ir,Ie){var cr=D.getNodeModelById(Ie);return ir[Ie]=cr==null?void 0:cr.getMoveDistance(0,0,!1),ir},{});ne.forEach(function(ir){D.getNodeEdges(ir).forEach(function(Ie){if(Je[Ie.sourceNodeId]){var cr=D.getNodeModelById(Ie.sourceNodeId).anchors.find(function(en){return en.id===Ie.sourceAnchorId});Ie.updateStartPoint(cr)}if(Je[Ie.targetNodeId]){var tn=D.getNodeModelById(Ie.targetNodeId).anchors.find(function(en){return en.id===Ie.targetAnchorId});Ie.updateEndPoint(tn)}})}),Y.emit(de.NODE_ROTATE,{e:x,nodeModel:R})}),p.style=u.style,p.stepperDrag=new ei({onDragging:p.onDragging}),p}return t=s,(r=[{key:"render",value:function(){var u=this,p=this.props.nodeModel,g=p.x,m=p.y,x=g+p.width/2+20,j=m-p.height/2-20;return this.normal=new G(1,0),this.defaultAngle=this.normal.angle(new G(x-g,j-m)),p.defaultAngle=this.defaultAngle,Object(ft.g)("g",{className:"lf-rotate-control"},Object(ft.g)("g",{onMouseDown:function(D){u.stepperDrag.handleMouseDown(D)}},Object(ft.g)(rl,Zv({},this.style,{cx:x,cy:j}))))}}])&&eR(t.prototype,r),s}(ft.a);function $v(e){return $v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$v(e)}var iR=["className"];function Yd(){return Yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yd.apply(this,arguments)}function aR(e,t){if(e==null)return{};var r,n,s=function(p,g){if(p==null)return{};var m,x,j={},D=Object.keys(p);for(x=0;x<D.length;x++)m=D[x],g.indexOf(m)>=0||(j[m]=p[m]);return j}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function Hd(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return KO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return KO(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  81. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function KO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qv(e,t){return Qv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Qv(e,t)}function uR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Vd(e);if(t){var s=Vd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return cR(this,r)}}function cR(e,t){if(t&&($v(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return On(e)}function On(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Vd(e)}function Pn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ra=function(e){(function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),g&&Qv(p,g)})(u,e);var t,r,n,s=uR(u);function u(p){var g;(function(R,Y){if(!(R instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,u),Pn(On(g=s.call(this)),"t",void 0),Pn(On(g),"moveOffset",void 0),Pn(On(g),"stepDrag",void 0),Pn(On(g),"contextMenuTime",void 0),Pn(On(g),"mouseUpDrag",void 0),Pn(On(g),"startTime",void 0),Pn(On(g),"clickTimer",void 0),Pn(On(g),"modelDisposer",void 0),Pn(On(g),"onDragStart",function(R){var Y=R.event,J=Y.clientX,nt=Y.clientY,yt=g.props,gt=yt.model,xt=yt.graphModel.getPointByClient({x:J,y:nt}).canvasOverlayPosition,Rt=xt.x,Jt=xt.y;g.moveOffset={x:gt.x-Rt,y:gt.y-Jt}}),Pn(On(g),"onDragging",function(R){var Y=R.event,J=g.props,nt=J.model,yt=J.graphModel,gt=yt.editConfigModel,xt=gt.stopMoveGraph,Rt=gt.autoExpand,Jt=yt.transformModel,$t=yt.selectNodes,_e=yt.width,qt=yt.height,ye=yt.gridSize;nt.isDragging=!0;var ne=Y.clientX,Je=Y.clientY,ir=yt.getPointByClient({x:ne,y:Je}).canvasOverlayPosition,Ie=ir.x,cr=ir.y,tn=Hd(Jt.CanvasPointToHtmlPoint([Ie,cr]),2),en=tn[0],Ln=tn[1];if(Ie+=g.moveOffset.x,cr+=g.moveOffset.y,Ie=Ki(Ie,ye),cr=Ki(cr,ye),_e&&qt){if(!Rt||xt||!(en<0||Ln<0||en>_e||Ln>qt)){var Io=Hd(Jt.CanvasPointToHtmlPoint([Ie-nt.width/2,cr-nt.height/2]),2),Lo=Io[0],fa=Io[1],Mc=Hd(Jt.CanvasPointToHtmlPoint([Ie+nt.width/2,cr+nt.height/2]),2),py=Mc[0],Dc=Mc[1],ju=Math.max(ye,20),Su=[];Lo<0?Su=[ju,0]:py>yt.width?Su=[-ju,0]:fa<0?Su=[0,ju]:Dc>yt.height&&(Su=[0,-ju]),g.t&&Fd(g.t);var H3=new oa(-Ie,-cr).rotate(nt.rotate).translate(Ie,cr).toString();nt.transform=H3;var hy=$t.map(function(dy){return dy.id});hy.indexOf(nt.id)===-1&&(hy=[nt.id]),Su.length>0&&!xt&&Rt?g.t=BO(function(){var dy=Hd(Su,2),kw=dy[0],Tw=dy[1];Jt.translate(kw,Tw);var V3=-kw/Jt.SCALE_X,W3=-Tw/Jt.SCALE_X;yt.moveNodes(hy,V3,W3)}):yt.moveNodes(hy,Ie-nt.x,cr-nt.y)}}else yt.moveNode2Coordinate(nt.id,Ie,cr)}),Pn(On(g),"onDragEnd",function(){g.t&&Fd(g.t),g.props.model.isDragging=!1}),Pn(On(g),"handleMouseUp",function(){var R=g.props.model;g.mouseUpDrag=R.isDragging}),Pn(On(g),"handleClick",function(R){var Y=g.mouseUpDrag===!1;if(g.startTime){var J=g.props,nt=J.model,yt=J.graphModel;if(Y){var gt={data:nt.getData(),e:R,position:yt.getPointByClient({x:R.clientX,y:R.clientY}),isSelected:!1,isMultiple:!1},xt=R.button===2,Rt=R.detail===2;if(!xt){var Jt=yt.editConfigModel,$t=sf(R,Jt);gt.isMultiple=$t,nt.isSelected&&!Rt&&$t?(gt.isSelected=!1,nt.setSelected(!1)):(yt.selectNodeById(nt.id,$t),gt.isSelected=!0,g.toFront()),Rt?(Jt.nodeTextEdit&&nt.text.editable&&(nt.setSelected(!1),yt.setElementStateById(nt.id,yr.TEXT_EDIT)),yt.eventCenter.emit(de.NODE_DBCLICK,gt)):(yt.eventCenter.emit(de.ELEMENT_CLICK,gt),yt.eventCenter.emit(de.NODE_CLICK,gt))}}}}),Pn(On(g),"handleContextMenu",function(R){R.preventDefault();var Y=g.props,J=Y.model,nt=Y.graphModel,yt=J.getData(),gt=nt.getPointByClient({x:R.clientX,y:R.clientY});nt.setElementStateById(J.id,yr.SHOW_MENU,gt.domOverlayPosition),J.isSelected||nt.selectNodeById(J.id),nt.eventCenter.emit(de.NODE_CONTEXTMENU,{data:yt,e:R,position:gt}),g.toFront()}),Pn(On(g),"handleMouseDown",function(R){var Y=g.props,J=Y.model,nt=Y.graphModel;g.startTime=new Date().getTime(),nt.editConfigModel.adjustNodePosition&&J.draggable&&g.stepDrag&&g.stepDrag.handleMouseDown(R)}),Pn(On(g),"setHoverON",function(R){var Y=g.props,J=Y.model,nt=Y.graphModel;if(!J.isHovered){var yt=J.getData();J.setHovered(!0),nt.eventCenter.emit(de.NODE_MOUSEENTER,{data:yt,e:R})}}),Pn(On(g),"setHoverOFF",function(R){var Y=g.props,J=Y.model,nt=Y.graphModel,yt=J.getData();J.isHovered&&(J.setHovered(!1),nt.eventCenter.emit(de.NODE_MOUSELEAVE,{data:yt,e:R}))}),Pn(On(g),"onMouseOut",function(R){tR&&g.setHoverOFF(R)});var m=p.graphModel,x=m.gridSize,j=m.eventCenter,D=p.model;return g.stepDrag=new ei({onDragStart:g.onDragStart,onDragging:g.onDragging,onDragEnd:g.onDragEnd,step:x,eventType:"NODE",isStopPropagation:!1,eventCenter:j,model:D}),g.modelDisposer=Object(y.F)(function(){return g.props},function(R){R&&R.model&&g.stepDrag.setModel(R.model)}),g}return t=u,n=[{key:"getModel",value:function(p){return p}}],(r=[{key:"componentWillUnmount",value:function(){this.modelDisposer&&this.modelDisposer()}},{key:"getAnchorShape",value:function(p){return null}},{key:"getAnchors",value:function(){var p=this,g=this.props,m=g.model,x=g.graphModel,j=m.isSelected,D=m.isHitable,R=m.isDragging,Y=m.isShowAnchor;return D&&(j||Y)&&!R?ls(m.anchors,function(J,nt){var yt=m.getAnchorLineStyle(J),gt=m.getAnchorStyle(J);return Object(ft.g)(VC,{anchorData:J,node:p,style:gt,edgeStyle:yt,anchorIndex:nt,nodeModel:m,graphModel:x,setHoverOFF:p.setHoverOFF})}):[]}},{key:"getRotateControl",value:function(){var p=this.props,g=p.model,m=p.graphModel,x=g.isSelected,j=g.isHitable,D=g.enableRotate,R=g.isHovered,Y=g.getRotateControlStyle().style;if(j&&(x||R)&&D)return Object(ft.g)(oR,{graphModel:m,nodeModel:g,eventCenter:m.eventCenter,style:Y})}},{key:"getText",value:function(){var p=this.props,g=p.model,m=p.graphModel;if(g.state===yr.TEXT_EDIT)return"";if(g.text){var x=m.editConfigModel,j=!1;return(g.text.draggable||x.nodeTextDraggable)&&(j=!0),Object(ft.g)(VO,{editable:x.nodeTextEdit&&g.text.editable,model:g,graphModel:m,draggable:j})}}},{key:"getStateClassName",value:function(){var p=this.props.model,g=p.state,m=p.isDragging,x=p.isSelected,j="lf-node";switch(g){case yr.ALLOW_CONNECT:j+=" lf-node-allow";break;case yr.NOT_ALLOW_CONNECT:j+=" lf-node-not-allow";break;default:j+=" lf-node-default"}return m&&(j+=" lf-isDragging"),x&&(j+=" lf-node-selected"),j}},{key:"toFront",value:function(){var p=this.props,g=p.model,m=p.graphModel;g.autoToFront&&m.toFront(g.id)}},{key:"render",value:function(){var p,g=this.props,m=g.model,x=g.graphModel,j=x.editConfigModel,D=j.hideAnchors,R=j.adjustNodePosition,Y=j.allowRotation,J=x.gridSize,nt=x.transformModel.SCALE_X,yt=m.isHitable,gt=m.draggable,xt=m.transform,Rt=m.getOuterGAttributes(),Jt=Rt.className,$t=Jt===void 0?"":Jt,_e=aR(Rt,iR),qt=Object(ft.g)("g",{className:"lf-node-content"},Object(ft.g)("g",{transform:xt},this.getShape(),this.getText(),Y&&this.getRotateControl()),!D&&this.getAnchors());return yt?(R&&gt&&this.stepDrag.setStep(J*nt),p=Object(ft.g)("g",Yd({className:"".concat(this.getStateClassName()," ").concat($t),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},_e),qt)):p=Object(ft.g)("g",Yd({className:"".concat(this.getStateClassName()," ").concat($t)},_e),qt),p}}])&&ZO(t.prototype,r),n&&ZO(t,n),u}(ft.a);function Jv(e){return Jv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jv(e)}function tm(){return tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tm.apply(this,arguments)}function sR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function em(e,t){return em=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},em(e,t)}function fR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Wd(e);if(t){var s=Wd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return pR(this,r)}}function pR(e,t){if(t&&(Jv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Wd(e)}var rm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&em(u,p)})(s,e);var t,r,n=fR(s);function s(){return sR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.getNodeStyle();return Object(ft.g)(_u,tm({},p,{x:u.x,y:u.y,width:u.width,height:u.height,radius:u.radius}))}}])&&lR(t.prototype,r),s}(Ra);function nm(e){return nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nm(e)}function om(){return om=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},om.apply(this,arguments)}function hR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function im(e,t){return im=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},im(e,t)}function yR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Kd(e);if(t){var s=Kd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return gR(this,r)}}function gR(e,t){if(t&&(nm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Kd(e)}var am=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&im(u,p)})(s,e);var t,r,n=yR(s);function s(){return hR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.x,g=u.y,m=u.r,x=u.getNodeStyle();return Object(ft.g)(rl,om({},x,{x:p,y:g,r:m}))}}])&&dR(t.prototype,r),s}(Ra);function um(e){return um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},um(e)}function vR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return qO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return qO(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  82. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function qO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $O(e){var t=e.points,r=e.className,n={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(e).forEach(function(s){var u=vR(s,2),p=u[0],g=u[1];um(g)!=="object"&&(n[p]=g)}),n.className=r?"lf-basic-shape ".concat(r):"lf-basic-shape",n.points=t.map(function(s){return s.join(",")}).join(" "),Object(ft.g)("polygon",n)}function cm(e){return cm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cm(e)}function sm(){return sm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sm.apply(this,arguments)}function mR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lm(e,t){return lm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},lm(e,t)}function _R(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Zd(e);if(t){var s=Zd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return OR(this,r)}}function OR(e,t){if(t&&(cm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Zd(e)}var fm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&lm(u,p)})(s,e);var t,r,n=_R(s);function s(){return mR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.x,g=u.y,m=u.width,x=u.height,j=u.points,D=u.getNodeStyle(),R={transform:"matrix(1 0 0 1 ".concat(p-m/2," ").concat(g-x/2,")")};return Object(ft.g)("g",R,Object(ft.g)($O,sm({},D,{points:j,x:p,y:g})))}}])&&bR(t.prototype,r),s}(Ra);function pm(e){return pm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pm(e)}function hm(){return hm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hm.apply(this,arguments)}function wR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dm(e,t){return dm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},dm(e,t)}function ER(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=qd(e);if(t){var s=qd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return jR(this,r)}}function jR(e,t){if(t&&(pm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function qd(e){return qd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},qd(e)}var ym=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&dm(u,p)})(s,e);var t,r,n=ER(s);function s(){return wR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.getNodeStyle();return Object(ft.g)("g",null,Object(ft.g)($O,hm({},p,{points:u.points,x:u.x,y:u.y})))}}])&&xR(t.prototype,r),s}(Ra);function gm(e){return gm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gm(e)}function SR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return QO(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return QO(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  83. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function QO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PR(e){var t=e.x,r=t===void 0?0:t,n=e.y,s=n===void 0?0:n,u=e.rx,p=u===void 0?4:u,g=e.ry,m=g===void 0?4:g,x=e.className,j={cx:r,cy:s,rx:p,ry:m,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(e).forEach(function(D){var R=SR(D,2),Y=R[0],J=R[1];gm(J)!=="object"&&(j[Y]=J)}),j.className=x?"lf-basic-shape ".concat(x):"lf-basic-shape",Object(ft.g)("ellipse",j)}function vm(e){return vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vm(e)}function mm(){return mm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mm.apply(this,arguments)}function AR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bm(e,t){return bm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},bm(e,t)}function TR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=$d(e);if(t){var s=$d(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return MR(this,r)}}function MR(e,t){if(t&&(vm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$d(e)}var _m=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&bm(u,p)})(s,e);var t,r,n=TR(s);function s(){return AR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getShape",value:function(){var u=this.props.model,p=u.getNodeStyle();return Object(ft.g)(PR,mm({},p,{x:u.x,y:u.y,rx:u.rx,ry:u.ry}))}}])&&kR(t.prototype,r),s}(Ra);function Om(e){return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Om(e)}function JO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function tw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(r),!0).forEach(function(n){DR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wm(e,t){return wm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},wm(e,t)}function RR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Qd(e);if(t){var s=Qd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return IR(this,r)}}function IR(e,t){if(t&&(Om(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Qd(e)}var xm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&wm(u,p)})(s,e);var t,r,n=RR(s);function s(){return NR(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getBackground",value:function(){var u=this.props.model,p=u.getTextStyle(),g=u.width,m=u.height,x=u.x,j=u.y,D=tw(tw({},p.background),{},{x,y:j-1,width:g,height:m});return Object(ft.g)(_u,D)}},{key:"getShape",value:function(){return Object(ft.g)("g",null,this.getBackground())}}])&&CR(t.prototype,r),s}(Ra);function Em(e){return Em=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Em(e)}function jm(){return jm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jm.apply(this,arguments)}function LR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Sm(e,t){return Sm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Sm(e,t)}function BR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=Jd(e);if(t){var s=Jd(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return FR(this,r)}}function FR(e,t){if(t&&(Em(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lp(e)}function lp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Jd(e)}function ty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Sm(u,p)})(s,e);var t,r,n=BR(s);function s(){var u;LR(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return ty(lp(u=n.call.apply(n,[this].concat(g))),"ref",void 0),ty(lp(u),"currentProperties",void 0),ty(lp(u),"preProperties",void 0),ty(lp(u),"setRef",function(x){u.ref=x}),u}return t=s,(r=[{key:"rootEl",get:function(){return this.ref}},{key:"setHtml",value:function(u){u.appendChild(document.createElement("div"))}},{key:"shouldUpdate",value:function(){if(!this.preProperties||this.preProperties!==this.currentProperties)return this.preProperties=this.currentProperties,!0}},{key:"componentDidMount",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"componentDidUpdate",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"getShape",value:function(){var u=this.props.model,p=u.x,g=u.y,m=u.height,x=u.width,j=u.getNodeStyle();return this.currentProperties=JSON.stringify(u.properties),Object(ft.g)("foreignObject",jm({},j,{x:p-x/2,y:g-m/2,width:x,height:m,ref:this.setRef}))}}])&&zR(t.prototype,r),s}(Ra);function Am(e){return Am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Am(e)}function km(){return km=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},km.apply(this,arguments)}function ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ac(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(n){Dm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Tm(e,t){return Tm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Tm(e,t)}function GR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ey(e);if(t){var s=ey(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return XR(this,r)}}function XR(e,t){if(t&&(Am(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mm(e)}function Mm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ey(e)}function Dm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YR=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Tm(u,p)})(s,e);var t,r,n=GR(s);function s(u){var p;return function(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),Dm(Mm(p=n.call(this,u)),"setHoverON",function(){p.setState({isHovered:!0})}),Dm(Mm(p),"setHoverOFF",function(){p.setState({isHovered:!1})}),p.state={isHovered:!1},p}return t=s,(r=[{key:"getBackground",value:function(){var u=this.props.model,p=u.getTextStyle(),g=u.text,m=u.width,x=p.background||{};if(this.state.isHovered&&p.hover&&p.hover.background&&(x=Ac(Ac({},x),p.hover.background)),g&&g.value&&x.fill!=="transparent"){var j,D=p.fontSize,R=p.overflowMode,Y=p.lineHeight,J=p.wrapPadding,nt=p.textWidth,yt=g.value,gt=g.x,xt=g.y,Rt=String(yt).split(/[\r\n]/g),Jt=Rt.length;if(R==="autoWrap"&&nt){var $t=Zh({rows:Rt,style:{fontSize:"".concat(D,"px"),width:"".concat(nt,"px"),lineHeight:Y,padding:J},rowsLength:Jt,className:"lf-get-text-height"});j=Ac(Ac({},x),{},{x:gt-1,y:xt-1,width:nt,height:$t})}else{Rt&&Rt.forEach(function(Je){Ks(Je)});var _e=Af({rows:Rt,fontSize:D,rowsLength:Jt}),qt=_e.width,ye=_e.height;if(R==="ellipsis"&&(qt=nt||m,ye=D+2),typeof x.wrapPadding=="string"){var ne=x.wrapPadding.split(",").filter(function(Je){return Je.trim()}).map(function(Je){return parseFloat(Je.trim())});ne.length>0&&ne.length<=4&&(ne.length===1?ne=[ne[0],ne[0],ne[0],ne[0]]:ne.length===2?ne=[ne[0],ne[1],ne[0],ne[1]]:ne.length===3&&(ne=[ne[0],ne[1],ne[2],ne[1]]),qt+=ne[1]+ne[3],ye+=ne[0]+ne[2],gt+=(ne[1]-ne[3])/2,xt+=(ne[2]-ne[0])/2)}j=Ac(Ac({},x),{},{x:gt-1,y:xt-1,width:qt,height:ye})}return Object(ft.g)(_u,j)}}},{key:"getShape",value:function(){var u=this.props.model,p=u.text,g=p.value,m=p.x,x=p.y;if(g){var j=Ac({x:m,y:x,className:"lf-element-text",value:g},u.getTextStyle());return Object(ft.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(ft.g)(YO,km({},j,{model:u})))}}}])&&UR(t.prototype,r),s}(VO);function Nm(e){return Nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nm(e)}var sa,HR=["text","sourceAnchorId","targetAnchorId"];function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VR(e,t){if(e==null)return{};var r,n,s=function(p,g){if(p==null)return{};var m,x,j={},D=Object.keys(p);for(x=0;x<D.length;x++)m=D[x],g.indexOf(m)>=0||(j[m]=p[m]);return j}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function WR(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return nw(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return nw(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  84. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Cm(e,t){return Cm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Cm(e,t)}function ZR(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ry(e);if(t){var s=ry(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return qR(this,r)}}function qR(e,t){if(t&&(Nm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Co(e)}function Co(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ry(e)}function Ro(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(sa||(sa={}));var ow=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Cm(u,p)})(s,e);var t,r,n=ZR(s);function s(u){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),Ro(Co(p=n.call(this)),"stepDragData",void 0),Ro(Co(p),"stepDrag",void 0),Ro(Co(p),"oldEdge",void 0),Ro(Co(p),"preTargetNode",void 0),Ro(Co(p),"targetRuleResults",void 0),Ro(Co(p),"sourceRuleResults",void 0),Ro(Co(p),"handleMouseDown",function(j){p.stepDrag&&p.stepDrag.handleMouseDown(j)}),Ro(Co(p),"onDragStart",function(){var j=p.props,D=j.x,R=j.y,Y=j.edgeModel,J=Y.startPoint,nt=Y.endPoint,yt=Y.pointsList;p.oldEdge={startPoint:J,endPoint:nt,pointsList:yt},p.setState({endX:D,endY:R,dragging:!0})}),Ro(Co(p),"onDragging",function(j){var D=j.deltaX,R=j.deltaY,Y=p.state,J=Y.endX,nt=Y.endY,yt=p.props,gt=yt.graphModel,xt=yt.type,Rt=gt.transformModel,Jt=gt.editConfigModel,$t=WR(Rt.moveCanvasPointByHtml([J,nt],D,R),2),_e=$t[0],qt=$t[1];p.setState({endX:_e,endY:qt,dragging:!0});var ye=p.props.edgeModel,ne=Is({x:J,y:nt},gt);if(ne&&ne.node&&p.isAllowAdjust(ne).pass){var Je,ir=ye.startPoint,Ie=ye.endPoint,cr=ye.sourceNode,tn=ye.targetNode;xt===sa.SOURCE?Je={startPoint:{x:ne.anchor.x,y:ne.anchor.y},endPoint:{x:Ie.x,y:Ie.y},sourceNode:ne.node,targetNode:tn}:xt===sa.TARGET&&(Je={startPoint:{x:ir.x,y:ir.y},endPoint:{x:ne.anchor.x,y:ne.anchor.y},sourceNode:cr,targetNode:ne.node}),ye.updateAfterAdjustStartAndEnd(Je)}else xt===sa.SOURCE?ye.updateStartPoint({x:_e,y:qt}):xt===sa.TARGET&&ye.updateEndPoint({x:_e,y:qt});ye.text.value&&Jt.adjustEdge&&ye.setText(Object.assign({},ye.text,ye.textPosition))}),Ro(Co(p),"onDragEnd",function(j){var D=j.event;try{var R;p.setState({dragging:!1});var Y=p.props,J=Y.graphModel,nt=Y.edgeModel,yt=Y.type,gt=p.state,xt=gt.endX,Rt=gt.endY,Jt=gt.dragging,$t=Is({x:xt,y:Rt},J);if(!Jt)return;var _e,qt=!1;if($t&&$t.node){var ye=p.isAllowAdjust($t),ne=ye.pass,Je=ye.msg,ir=ye.newTargetNode;if(ne){var Ie=nt.getData(),cr=Ie.text,tn=Ie.sourceAnchorId,en=tn===void 0?"":tn,Ln=Ie.targetAnchorId;_e=Ia(Ia({sourceAnchorId:en,targetAnchorId:Ln===void 0?"":Ln},VR(Ie,HR)),{},{text:(cr==null?void 0:cr.value)||""}),yt===sa.SOURCE?(_e=Ia(Ia({},J.edgeGenerator(J.getNodeModelById($t.node.id).getData(),J.getNodeModelById(nt.targetNodeId).getData(),_e)),{},{sourceNodeId:$t.node.id,sourceAnchorId:$t.anchor.id,startPoint:{x:$t.anchor.x,y:$t.anchor.y},targetNodeId:nt.targetNodeId,endPoint:Ia({},nt.endPoint)}),nt.sourceNodeId===$t.node.id&&nt.sourceAnchorId===$t.anchor.id&&(qt=!0)):yt===sa.TARGET&&(_e=Ia(Ia({},J.edgeGenerator(J.getNodeModelById(nt.sourceNodeId).getData(),J.getNodeModelById($t.node.id).getData(),_e)),{},{sourceNodeId:nt.sourceNodeId,startPoint:Ia({},nt.startPoint),targetNodeId:$t.node.id,targetAnchorId:$t.anchor.id,endPoint:{x:$t.anchor.x,y:$t.anchor.y}}),nt.targetNodeId===$t.node.id&&nt.targetAnchorId===$t.anchor.id&&(qt=!0))}else{qt=!0;var Io=ir.getData();J.eventCenter.emit(de.CONNECTION_NOT_ALLOWED,{data:Io,msg:Je})}}else qt=!0;if(qt)p.recoveryEdge();else{var Lo=nt.getData();J.deleteEdgeById(nt.id);var fa=J.addEdge(Ia({},_e));J.eventCenter.emit(de.EDGE_EXCHANGE_NODE,{data:{newEdge:fa.getData(),oldEdge:Lo}})}(R=p.preTargetNode)===null||R===void 0||R.setElementState(yr.DEFAULT)}finally{p.props.graphModel.eventCenter.emit(de.ADJUST_POINT_DRAGEND,{e:D,data:p.stepDragData})}}),Ro(Co(p),"recoveryEdge",function(){var j=p.props.edgeModel,D=p.oldEdge,R=D.startPoint,Y=D.endPoint,J=D.pointsList;j.updateStartPoint(R),j.updateEndPoint(Y),j.modelType!==qe.LINE_EDGE&&(j.pointsList=J,j.initPoints())}),Ro(Co(p),"getAdjustPointStyle",function(){var j=p.props,D=j.graphModel.theme;return j.edgeModel,D.edgeAdjust}),p.state={dragging:!1,endX:0,endY:0},p.targetRuleResults=new Map,p.sourceRuleResults=new Map;var g=u.type,m=u.edgeModel,x=u.graphModel.eventCenter;return p.stepDragData={type:g,edgeData:m.getData()},p.stepDrag=new ei({onDragStart:p.onDragStart,onDragging:p.onDragging,onDragEnd:p.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:x,data:p.stepDragData}),p}return t=s,(r=[{key:"isAllowAdjust",value:function(u){var p=this.props,g=p.edgeModel,m=g.id,x=g.sourceNode,j=g.targetNode,D=g.sourceAnchorId,R=g.targetAnchorId,Y=p.type,J=null,nt=null,yt=null,gt=null;if(Y===sa.SOURCE?(J=u.node,nt=j,yt=u.anchor,gt=j.getAnchorInfo(R)):(J=x,nt=u.node,gt=u.anchor,yt=x.getAnchorInfo(D)),this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(yr.DEFAULT),this.preTargetNode=u.node,gt.id===yt.id)return{pass:!1,msg:"",newTargetNode:nt};var xt="".concat(J.id,"_").concat(nt.id,"_").concat(yt.id,"_").concat(gt.id);if(!this.targetRuleResults.has(xt)){var Rt=J.isAllowConnectedAsSource(nt,yt,gt,m),Jt=nt.isAllowConnectedAsTarget(J,yt,gt,m);this.sourceRuleResults.set(xt,sc(Rt)),this.targetRuleResults.set(xt,sc(Jt))}var $t=this.sourceRuleResults.get(xt),_e=$t.isAllPass,qt=$t.msg,ye=this.targetRuleResults.get(xt),ne=ye.isAllPass,Je=ye.msg,ir=_e&&ne?yr.ALLOW_CONNECT:yr.NOT_ALLOW_CONNECT;return Y===sa.SOURCE?J.setElementState(ir):nt.setElementState(ir),{pass:_e&&ne,msg:Je||qt,newTargetNode:nt}}},{key:"render",value:function(){var u=this.props,p=u.x,g=u.y,m=u.getAdjustPointShape,x=u.edgeModel,j=this.state.dragging;return Object(ft.g)("g",{pointerEvents:j?"none":"",onMouseDown:this.handleMouseDown},j?"":m(p,g,x))}}])&&KR(t.prototype,r),s}(ft.a);function Rm(e){return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rm(e)}function fp(){return fp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fp.apply(this,arguments)}function $R(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return iw(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return iw(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  85. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Im(e,t){return Im=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Im(e,t)}function t3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ny(e);if(t){var s=ny(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return e3(this,r)}}function e3(e,t){if(t&&(Rm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ki(e)}function ki(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ny(e)}function la(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pp=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Im(u,p)})(s,e);var t,r,n=t3(s);function s(){var u;QR(this,s);for(var p=arguments.length,g=new Array(p),m=0;m<p;m++)g[m]=arguments[m];return la(ki(u=n.call.apply(n,[this].concat(g))),"startTime",void 0),la(ki(u),"contextMenuTime",void 0),la(ki(u),"clickTimer",void 0),la(ki(u),"textRef",Object(ft.f)()),la(ki(u),"handleHover",function(x,j){var D=u.props,R=D.model,Y=D.graphModel.eventCenter;R.setHovered(x);var J=x?de.EDGE_MOUSEENTER:de.EDGE_MOUSELEAVE,nt=R.getData();Y.emit(J,{data:nt,e:j})}),la(ki(u),"setHoverON",function(x){u.props.model.isHovered||(u.textRef&&u.textRef.current&&u.textRef.current.setHoverON(),u.handleHover(!0,x))}),la(ki(u),"setHoverOFF",function(x){u.props.model.isHovered&&(u.textRef&&u.textRef.current&&u.textRef.current.setHoverOFF(),u.handleHover(!1,x))}),la(ki(u),"handleContextMenu",function(x){x.preventDefault(),u.contextMenuTime=new Date().getTime(),u.clickTimer&&clearTimeout(u.clickTimer);var j=u.props,D=j.model,R=j.graphModel,Y=R.getPointByClient({x:x.clientX,y:x.clientY});R.setElementStateById(D.id,yr.SHOW_MENU,Y.domOverlayPosition),u.toFront(),D.isSelected||R.selectEdgeById(D.id);var J=D==null?void 0:D.getData();R.eventCenter.emit(de.EDGE_CONTEXTMENU,{data:J,e:x,position:Y})}),la(ki(u),"handleMouseDown",function(x){x.stopPropagation(),u.startTime=new Date().getTime()}),la(ki(u),"handleMouseUp",function(x){if(u.startTime&&!(new Date().getTime()-u.startTime>200||x.button===2)){var j=x.detail===2,D=u.props,R=D.model,Y=D.graphModel,J=R==null?void 0:R.getData(),nt=Y.getPointByClient({x:x.clientX,y:x.clientY});if(j){var yt=Y.editConfigModel,gt=Y.textEditElement;if(gt&&gt.id===R.id&&Y.setElementStateById(R.id,yr.DEFAULT),yt.edgeTextEdit&&R.text.editable&&Y.setElementStateById(R.id,yr.TEXT_EDIT),R.modelType===qe.POLYLINE_EDGE){var xt=R,Rt=Y.getPointByClient({x:x.x,y:x.y}).canvasOverlayPosition,Jt=Rt.x,$t=Rt.y,_e=Vf({x:Jt,y:$t},xt.points);xt.dbClickPosition=_e}Y.eventCenter.emit(de.EDGE_DBCLICK,{data:J,e:x,position:nt})}else Y.eventCenter.emit(de.ELEMENT_CLICK,{data:J,e:x,position:nt}),Y.eventCenter.emit(de.EDGE_CLICK,{data:J,e:x,position:nt});var qt=Y.editConfigModel;Y.selectEdgeById(R.id,sf(x,qt)),u.toFront()}}),u}return t=s,(r=[{key:"getShape",value:function(){return Object(ft.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var u=this.props,p=u.model,g=u.graphModel;if(p.state===yr.TEXT_EDIT)return null;var m=!1,x=g.editConfigModel;return(p.text.draggable||x.edgeTextDraggable)&&(m=!0),Object(ft.g)(YR,{ref:this.textRef,editable:x.edgeTextEdit&&p.text.editable,model:p,graphModel:g,draggable:m})}},{key:"getArrowInfo",value:function(){var u=this.props.model,p=u.startPoint,g=u.endPoint,m=u.isSelected;return{start:p,end:g,hover:this.state.hover,isSelected:m}}},{key:"getLastTwoPoints",value:function(){var u=this.props.model;return[u.startPoint,u.endPoint]}},{key:"getArrowStyle",value:function(){return null}},{key:"getArrow",value:function(){var u=this.props.model,p=u.id,g=u.getArrowStyle(),m=g.refY,x=m===void 0?0:m,j=g.refX,D=j===void 0?2:j,R=$R(this.getLastTwoPoints(),2),Y=R[0],J=R[1],nt="auto";return Y!==null&&J!==null&&(nt=Sa(Wn({x:J.x-Y.x,y:J.y-Y.y,z:0}))),Object(ft.g)("g",null,Object(ft.g)("defs",null,Object(ft.g)("marker",{id:"marker-start-".concat(p),refX:-D,refY:x,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(ft.g)("marker",{id:"marker-end-".concat(p),refX:D,refY:x,overflow:"visible",orient:nt,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var u=this.props.model.getArrowStyle();return u.stroke,u.strokeWidth,u.offset,u.verticalLength,Object(ft.g)("path",null)}},{key:"getEndArrow",value:function(){var u=this.props.model.getArrowStyle(),p=u.stroke,g=u.strokeWidth,m=u.offset,x=u.verticalLength;return Object(ft.g)("path",{stroke:p,fill:p,strokeWidth:g,transform:"rotate(180)",d:"M 0 0 L ".concat(m," -").concat(x," L ").concat(m," ").concat(x," Z")})}},{key:"getAdjustPointShape",value:function(u,p,g){var m=g.getAdjustPointStyle();return Object(ft.g)(rl,fp({className:"lf-edge-adjust-point"},m,{x:u,y:p}))}},{key:"getAdjustPoints",value:function(){var u=this.props,p=u.model,g=u.graphModel,m=p.getAdjustStart(),x=p.getAdjustEnd();return Object(ft.g)("g",null,Object(ft.g)(ow,fp({type:"SOURCE"},m,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:g})),Object(ft.g)(ow,fp({type:"TARGET"},x,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:g})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(ft.g)("g",null)}},{key:"getAppend",value:function(){return Object(ft.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"getEdge",value:function(){return null}},{key:"toFront",value:function(){var u=this.props,p=u.graphModel,g=u.model;p.toFront(g.id)}},{key:"render",value:function(){var u=this.props,p=u.model,g=p.isSelected,m=p.isHitable,x=p.isShowAdjustPoint;return u.graphModel.animation,Object(ft.g)("g",null,Object(ft.g)("g",{className:["lf-edge",!m&&"pointer-none",g&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverON,onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getShape(),this.getAppend(),this.getText(),this.getArrow()),x&&g?this.getAdjustPoints():"")}}])&&JR(t.prototype,r),s}(ft.a);function Lm(e){return Lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lm(e)}function r3(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return aw(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return aw(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  86. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function aw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hp=function(e){var t={d:""};return Object.entries(e).forEach(function(r){var n=r3(r,2),s=n[0],u=n[1],p=Lm(u);s!=="style"&&p==="object"||(t[s]=u)}),Object(ft.g)("path",t)};function zm(e){return zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zm(e)}function Bm(){return Bm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bm.apply(this,arguments)}function n3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fm(e,t){return Fm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Fm(e,t)}function i3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=oy(e);if(t){var s=oy(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return a3(this,r)}}function a3(e,t){if(t&&(zm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},oy(e)}var Um=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Fm(u,p)})(s,e);var t,r,n=i3(s);function s(){return n3(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getEdge",value:function(){var u=this.props.model,p=u.startPoint,g=u.endPoint,m=u.isAnimation,x=u.arrowConfig,j=u.getEdgeStyle(),D=u.getEdgeAnimationStyle(),R=D.strokeDasharray,Y=D.stroke,J=D.strokeDashoffset,nt=D.animationName,yt=D.animationDuration,gt=D.animationIterationCount,xt=D.animationTimingFunction,Rt=D.animationDirection;return Object(ft.g)(tl,Bm({},j,{x1:p.x,y1:p.y,x2:g.x,y2:g.y},x,m?{strokeDasharray:R,stroke:Y,style:{strokeDashoffset:J,animationName:nt,animationDuration:yt,animationIterationCount:gt,animationTimingFunction:xt,animationDirection:Rt}}:{}))}},{key:"getAppendWidth",value:function(){var u=this.props.model,p=u.startPoint,g=u.endPoint,m=yd({start:p,end:g}),x=m.d,j=m.strokeWidth,D=m.fill,R=m.strokeDasharray,Y=m.stroke;return Object(ft.g)(hp,{d:x,fill:D,strokeWidth:j,stroke:Y,strokeDasharray:R})}}])&&o3(t.prototype,r),s}(pp);function Gm(e){return Gm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gm(e)}function u3(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return uw(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return uw(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  87. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function uw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c3=function(e){var t={points:"",fill:"none"};return Object.entries(e).forEach(function(r){var n=u3(r,2),s=n[0],u=n[1];(s==="style"||Gm(u)!=="object")&&(t[s]=u)}),Object(ft.g)("polyline",t)};function Xm(e){return Xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xm(e)}function cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function iy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cw(Object(r),!0).forEach(function(n){za(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ym(){return Ym=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ym.apply(this,arguments)}function s3(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return sw(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return sw(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  88. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Hm(e,t){return Hm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Hm(e,t)}function f3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ay(e);if(t){var s=ay(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return p3(this,r)}}function p3(e,t){if(t&&(Xm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return La(e)}function La(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ay(e){return ay=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ay(e)}function za(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Vm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Hm(u,p)})(s,e);var t,r,n=f3(s);function s(){var u;return function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}(this,s),za(La(u=n.call(this)),"drag",void 0),za(La(u),"isDragging",void 0),za(La(u),"isShowAdjustPointTemp",void 0),za(La(u),"appendInfo",void 0),za(La(u),"onDragStart",function(){var p=u.props.model;p.dragAppendStart(),u.isShowAdjustPointTemp=p.isShowAdjustPoint,p.isShowAdjustPoint=!1}),za(La(u),"onDragging",function(p){var g=p.deltaX,m=p.deltaY,x=u.props,j=x.model,D=x.graphModel;u.isDragging=!0;var R=D.transformModel,Y=D.editConfigModel,J=s3(R.fixDeltaXY(g,m),2),nt=J[0],yt=J[1],gt=j,xt=Y.adjustEdgeMiddle;u.appendInfo=xt?gt.dragAppendSimple(u.appendInfo,{x:nt,y:yt}):gt.dragAppend(u.appendInfo,{x:nt,y:yt})}),za(La(u),"onDragEnd",function(){var p=u.props,g=p.model,m=p.graphModel.eventCenter,x=g;x.dragAppendEnd(),u.isDragging=!1,x.isShowAdjustPoint=u.isShowAdjustPointTemp,u.appendInfo=void 0,m.emit(de.EDGE_ADJUST,{data:x.getData()})}),za(La(u),"beforeDragStart",function(p,g){g.dragAble&&u.drag.handleMouseDown(p),u.appendInfo=g}),u.drag=new ei({onDragStart:u.onDragStart,onDragging:u.onDragging,onDragEnd:u.onDragEnd,isStopPropagation:!1}),u}return t=s,(r=[{key:"getEdge",value:function(){var u=this.props.model,p=u.points,g=u.isAnimation,m=u.arrowConfig,x=u.getEdgeStyle(),j=u.getEdgeAnimationStyle(),D=j.strokeDasharray,R=j.stroke,Y=j.strokeDashoffset,J=j.animationName,nt=j.animationDuration,yt=j.animationIterationCount,gt=j.animationTimingFunction,xt=j.animationDirection;return Object(ft.g)(c3,Ym({points:p},x,m,g?{strokeDasharray:D,stroke:R,style:{strokeDashoffset:Y,animationName:J,animationDuration:nt,animationIterationCount:yt,animationTimingFunction:gt,animationDirection:xt}}:{}))}},{key:"getArrowInfo",value:function(){var u=this.props.model,p=u.points,g=u.isSelected,m={start:null,end:null,hover:this.state.hover,isSelected:g},x=ea(p);return x.length>=2&&(m.start=x[x.length-2],m.end=x[x.length-1]),m}},{key:"getLastTwoPoints",value:function(){var u=this.props.model.points,p=ea(u);return p.length>=2?[p[p.length-2],p[p.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(u){var p,g=u.start,m=u.end;if(g.x===m.x&&g.y===m.y)p="";else{var x={start:g,end:m,offset:10,verticalLength:5},j=wi(iy(iy({},x),{},{type:"start"})),D=wi(iy(iy({},x),{},{type:"end"}));p="M".concat(j.leftX," ").concat(j.leftY,`
  89. L`).concat(j.rightX," ").concat(j.rightY,`
  90. L`).concat(D.rightX," ").concat(D.rightY,`
  91. L`).concat(D.leftX," ").concat(D.leftY," z")}return{d:p,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(u){var p=this.getAppendAttributes(u),g=p.d,m=p.strokeWidth,x=p.fill,j=p.strokeDasharray,D=p.stroke;return Object(ft.g)(hp,{d:g,fill:x,strokeWidth:m,stroke:D,strokeDasharray:j})}},{key:"getAppendWidth",value:function(){for(var u=this,p=this.props,g=p.model,m=p.graphModel,x=g.pointsList,j=g.draggable,D=[],R=x.length,Y=function(nt){var yt="lf-polyline-append",gt={start:{x:x[nt].x,y:x[nt].y},end:{x:x[nt+1].x,y:x[nt+1].y},startIndex:nt,endIndex:nt+1,direction:"",dragAble:!0},xt=Object(ft.g)("g",{className:yt},u.getAppendShape(gt)),Rt=m.editConfigModel,Jt=Rt.adjustEdge,$t=Rt.adjustEdgeMiddle;if(Jt&&j){var _e=gt.startIndex,qt=gt.endIndex,ye=$t&&(_e===0||qt===R-1);gt.dragAble=!ye,gt.start.x===gt.end.x?(gt.dragAble&&(yt+="-ew-resize"),gt.direction=Ar.VERTICAL):gt.start.y===gt.end.y&&(gt.dragAble&&(yt+="-ns-resize"),gt.direction=Ar.HORIZONTAL),xt=Object(ft.g)("g",{className:u.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(ne){return u.beforeDragStart(ne,gt)}},Object(ft.g)("g",{className:yt},u.getAppendShape(gt)))}D.push(xt)},J=0;J<R-1;J++)Y(J);return Object(ft.g)("g",null,D)}}])&&l3(t.prototype,r),s}(pp);function Wm(e){return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wm(e)}function h3(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return lw(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return lw(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  92. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function lw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Km(){return Km=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Km.apply(this,arguments)}function d3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zm(e,t){return Zm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Zm(e,t)}function g3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=uy(e);if(t){var s=uy(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return v3(this,r)}}function v3(e,t){if(t&&(Wm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function uy(e){return uy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},uy(e)}var qm=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Zm(u,p)})(s,e);var t,r,n=g3(s);function s(){return d3(this,s),n.apply(this,arguments)}return t=s,(r=[{key:"getEdge",value:function(){var u=this.props.model,p=u.getEdgeStyle(),g=u.path,m=u.isAnimation,x=u.arrowConfig,j=u.getEdgeAnimationStyle(),D=j.strokeDasharray,R=j.stroke,Y=j.strokeDashoffset,J=j.animationName,nt=j.animationDuration,yt=j.animationIterationCount,gt=j.animationTimingFunction,xt=j.animationDirection;return Object(ft.g)(hp,Km({d:g},p,x,m?{strokeDasharray:D,stroke:R,style:{strokeDashoffset:Y,animationName:J,animationDuration:nt,animationIterationCount:yt,animationTimingFunction:gt,animationDirection:xt}}:{}))}},{key:"getAppendWidth",value:function(){var u=this.props.model.path;return Object(ft.g)(hp,{d:u,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var u=this.props.model,p=this.state.hover,g=u.isSelected,m=u.getArrowStyle().offset,x=u.pointsList.map(function(D){return{x:D.x,y:D.y}}),j=h3(Hf(x,m),2);return{start:j[0],end:j[1],hover:p,isSelected:g}}},{key:"getLastTwoPoints",value:function(){var u=this.props.model,p=u.getArrowStyle().offset,g=u.pointsList.map(function(m){return{x:m.x,y:m.y}});return Hf(g,p)}}])&&y3(t.prototype,r),s}(pp);function $m(e){return $m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$m(e)}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function m3(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qm(e,t){return Qm=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Qm(e,t)}function O3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=cy(e);if(t){var s=cy(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return w3(this,r)}}function w3(e,t){if(t&&($m(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(e)}function cy(e){return cy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cy(e)}var x3=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&Qm(u,p)})(s,e);var t,r,n=O3(s);function s(){return b3(this,s),n.apply(this,arguments)}return t=s,r=[{key:"getArrowAttributes",value:function(){var u=this.props,p=u.arrowInfo,g=u.style,m=p.start,x=p.end,j={start:m,end:x,offset:g.offset,verticalLength:g.verticalLength,type:"end"},D=wi(j),R=D.leftX,Y=D.leftY,J=D.rightX,nt=D.rightY;return function(yt){for(var gt=1;gt<arguments.length;gt++){var xt=arguments[gt]!=null?arguments[gt]:{};gt%2?fw(Object(xt),!0).forEach(function(Rt){m3(yt,Rt,xt[Rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(yt,Object.getOwnPropertyDescriptors(xt)):fw(Object(xt)).forEach(function(Rt){Object.defineProperty(yt,Rt,Object.getOwnPropertyDescriptor(xt,Rt))})}return yt}({d:"M".concat(R," ").concat(Y," L").concat(x.x," ").concat(x.y," L").concat(J," ").concat(nt," z")},g)}},{key:"getShape",value:function(){var u=this.getArrowAttributes(),p=u.d,g=u.strokeWidth,m=u.stroke,x=u.fill;return Object(ft.g)(hp,{d:p,fill:x,strokeWidth:g,stroke:m})}},{key:"render",value:function(){return Object(ft.g)("g",{className:"lf-arrow"},this.getShape())}}],r&&_3(t.prototype,r),s}(ft.a),pw=function(e,t){return jt(e,t)},E3=function(e){var t=e==null?0:e.length;return t?e[t-1]:void 0},Jm=function(){return pe.a.Date.now()},j3=Math.max,S3=Math.min,P3=function(e,t,r){var n,s,u,p,g,m,x=0,j=!1,D=!1,R=!0;if(typeof e!="function")throw new TypeError("Expected a function");function Y(Rt){var Jt=n,$t=s;return n=s=void 0,x=Rt,p=e.apply($t,Jt)}function J(Rt){return x=Rt,g=setTimeout(yt,t),j?Y(Rt):p}function nt(Rt){var Jt=Rt-m;return m===void 0||Jt>=t||Jt<0||D&&Rt-x>=u}function yt(){var Rt=Jm();if(nt(Rt))return gt(Rt);g=setTimeout(yt,function(Jt){var $t=t-(Jt-m);return D?S3($t,u-(Jt-x)):$t}(Rt))}function gt(Rt){return g=void 0,R&&n?Y(Rt):(n=s=void 0,p)}function xt(){var Rt=Jm(),Jt=nt(Rt);if(n=arguments,s=this,m=Rt,Jt){if(g===void 0)return J(m);if(D)return clearTimeout(g),g=setTimeout(yt,t),Y(m)}return g===void 0&&(g=setTimeout(yt,t)),p}return t=Zi(t)||0,Ir(r)&&(j=!!r.leading,u=(D="maxWait"in r)?j3(Zi(r.maxWait)||0,t):u,R="trailing"in r?!!r.trailing:R),xt.cancel=function(){g!==void 0&&clearTimeout(g),x=0,n=m=s=g=void 0},xt.flush=function(){return g===void 0?p:gt(Jm())},xt},A3=o(172);function k3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Eu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hw,dw,yw,T3=function(){function e(n){(function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")})(this,e),Eu(this,"undos",[]),Eu(this,"redos",[]),Eu(this,"callbacks",[]),Eu(this,"stopWatch",null),Eu(this,"curData",null),Eu(this,"maxSize",50),Eu(this,"waitTime",100),Eu(this,"eventCenter",void 0),this.eventCenter=n}var t,r;return t=e,(r=[{key:"add",value:function(n){pw(E3(this.undos),n)||(this.undos.push(n),pw(this.curData,n)||(this.redos=[]),this.eventCenter.emit(de.HISTORY_CHANGE,{data:{undos:this.undos,redos:this.redos,undoAble:this.undos.length>1,redoAble:this.redos.length>0}}),this.undos.length>this.maxSize&&this.undos.shift())}},{key:"undoAble",value:function(){return this.undos.length>1}},{key:"undo",value:function(){if(this.undoAble()){var n=this.undos.pop();this.redos.push(n);var s=this.undos.pop();return this.curData=Cr(s),s}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var n=this.redos.pop();return this.curData=Cr(n),n}}},{key:"watch",value:function(n){var s=this;this.stopWatch&&this.stopWatch(),this.undos.push(n.modelToGraphData()),this.stopWatch=Object(A3.a)(n,P3(function(){var u=n.modelToHistoryData();u&&s.add(u)},this.waitTime))}}])&&k3(t.prototype,r),e}();function tb(e){return tb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tb(e)}function M3(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||function(r,n){if(r){if(typeof r=="string")return gw(r,n);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return gw(r,n)}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  93. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function kc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vw(Object(r),!0).forEach(function(n){Tc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eb(e,t){return eb=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},eb(e,t)}function D3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=sy(e);if(t){var s=sy(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return N3(this,r)}}function N3(e,t){if(t&&(tb(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hl(e)}function hl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sy(e){return sy=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},sy(e)}function Tc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bw,_w,Ow,rb=Ti((yw=dw=function(e){(function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),g&&eb(p,g)})(u,e);var t,r,n,s=D3(u);function u(){var p;return function(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}(this,u),Tc(hl(p=s.call(this)),"ref",Object(ft.f)()),Tc(hl(p),"__prevText",{type:"",text:"",id:""}),Tc(hl(p),"keyupHandler",function(g){var m=p.props.graphModel.textEditElement;g.key==="Enter"&&g.altKey&&m.setElementState(0)}),Tc(hl(p),"inputHandler",function(g){var m=g.target.innerText,x=p.props.graphModel.textEditElement;p.__prevText={type:x.type,text:m.replace(/(\r\n)+$|(\n)+$/,""),id:x.id}}),Tc(hl(p),"keydownHandler",function(g){g.stopPropagation()}),p.state={style:{left:0,top:0}},p}return t=u,n=[{key:"getDerivedStateFromProps",value:function(p){var g,m=p.graphModel,x=m.transformModel,j=m.theme,D=j.inputText,R=m.textEditElement;if(R){var Y;if((Y=R.text)===null||Y===void 0||!Y.value)if(R.BaseType===qr.EDGE){var J=(R=R).text,nt=R.textPosition,yt=nt.x,gt=nt.y;J.x=yt,J.y=gt,R.setText(J)}else R=R;var xt={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(R.BaseType===qr.EDGE){var Rt=j.edgeText,Jt=Rt.overflowMode,$t=Rt.lineHeight,_e=Rt.wrapPadding,qt=Rt.textWidth;qt&&Jt==="autoWrap"&&(g=kc(kc({},xt),{},{width:qt,minWidth:qt,lineHeight:$t,padding:_e}))}else if(R.BaseType===qr.NODE){var ye=j.nodeText,ne=ye.overflowMode,Je=ye.lineHeight,ir=ye.wrapPadding,Ie=ye.textWidth,cr=R,tn=cr.width,en=cr.modelType,Ln=cr.textWidth||Ie||tn;(en!==qe.TEXT_NODE&&ne==="autoWrap"||en===qe.TEXT_NODE&&Ie)&&(g=kc(kc({},xt),{},{width:Ln,minWidth:Ln,lineHeight:Je,padding:ir}))}var Io=R.text,Lo=Io.x,fa=Io.y,Mc=M3(x.CanvasPointToHtmlPoint([Lo,fa]),2);return{style:kc(kc({left:Mc[0],top:Mc[1]},g),D)}}}}],(r=[{key:"componentDidUpdate",value:function(){var p=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var g=this.__prevText,m=g.text,x=g.id;p.updateText(x,m),p.eventCenter.emit(de.TEXT_UPDATE,kc({},this.__prevText)),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}}},{key:"placeCaretAtEnd",value:function(p){if(window.getSelection!==void 0&&document.createRange!==void 0){var g=document.createRange();g.selectNodeContents(p),g.collapse(!1);var m=window.getSelection();m.removeAllRanges(),m.addRange(g)}}},{key:"render",value:function(){var p,g=this.props.graphModel.textEditElement,m=this.state.style;return g?Object(ft.g)("div",{contentEditable:!0,className:"lf-text-input",style:m,ref:this.ref,key:g.id,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler},(p=g.text)===null||p===void 0?void 0:p.value):null}}])&&mw(t.prototype,r),n&&mw(t,n),u}(ft.a),Tc(dw,"toolName","textEdit"),hw=yw))||hw,C3=function(e){return e.modelType===qe.LINE_EDGE?function(t){var r=t.startPoint,n=t.endPoint,s=(r.x+n.x)/2,u=(r.y+n.y)/2,p=Math.abs(r.x-n.x)+10,g=Math.abs(r.y-n.y)+10;return{x:s-p/2,y:u-g/2,x1:s+p/2,y1:u+g/2}}(e):e.modelType===qe.POLYLINE_EDGE?function(t){var r=t.points,n=ea(r),s=ta(n,8),u=s.x,p=s.y,g=s.width,m=s.height;return{x:u-g/2,y:p-m/2,x1:u+g/2,y1:p+m/2}}(e):e.modelType===qe.BEZIER_EDGE?function(t){var r=t.path,n=_n(r),s=ta(n,8),u=s.x,p=s.y,g=s.width,m=s.height;return{x:u-g/2,y:p-m/2,x1:u+g/2,y1:p+m/2}}(e):void 0};function nb(e){return nb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nb(e)}function ww(e,t){return function(r){if(Array.isArray(r))return r}(e)||function(r,n){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var u,p,g=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(u=s.next()).done)&&(g.push(u.value),!n||g.length!==n);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return g}}(e,t)||xw(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  94. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R3(e){return function(t){if(Array.isArray(t))return ob(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||xw(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  95. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function xw(e,t){if(e){if(typeof e=="string")return ob(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ob(e,t):void 0}}function ob(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ib(e,t){return ib=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},ib(e,t)}function L3(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var r,n=ly(e);if(t){var s=ly(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return z3(this,r)}}function z3(e,t){if(t&&(nb(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dp(e)}function dp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ly(e)}function yp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ab=Ti((Ow=_w=function(e){(function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(p&&p.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),p&&ib(u,p)})(s,e);var t,r,n=L3(s);function s(u){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),yp(dp(p=n.call(this)),"stepDrag",void 0),yp(dp(p),"handleMouseDown",function(j){p.stepDrag.handleMouseDown(j)}),yp(dp(p),"onDragging",function(j){var D=j.deltaX,R=j.deltaY,Y=p.props.graphModel,J=Y.getSelectElements(!0);Y.moveNodes(J.nodes.map(function(nt){return nt.id}),D,R)}),yp(dp(p),"handleContextMenu",function(j){j.preventDefault();var D=p.props,R=D.graphModel,Y=D.graphModel,J=Y.eventCenter,nt=Y.selectElements,yt=R.getPointByClient({x:j.clientX,y:j.clientY}),gt={nodes:[],edges:[]};R3(nt.values()).forEach(function(xt){xt.BaseType===qr.NODE&&gt.nodes.push(xt.getData()),xt.BaseType===qr.EDGE&&gt.edges.push(xt.getData())}),J.emit(de.SELECTION_CONTEXTMENU,{data:gt,e:j,position:yt})});var g=u.graphModel,m=g.gridSize,x=g.eventCenter;return p.stepDrag=new ei({onDragging:p.onDragging,step:m,eventType:"SELECTION",eventCenter:x}),p}return t=s,(r=[{key:"render",value:function(){var u=this.props.graphModel,p=u.selectElements,g=u.transformModel;if(!(p.size<=1)){var m=Number.MAX_SAFE_INTEGER,x=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER;p.forEach(function(nt){var yt={x:0,y:0,x1:0,y1:0};nt.BaseType===qr.NODE&&(yt=function(gt){var xt=gt.x,Rt=gt.y,Jt=gt.width,$t=gt.height;return{x:xt-Jt/2,y:Rt-$t/2,x1:xt+Jt/2,y1:Rt+$t/2}}(nt)),nt.BaseType===qr.EDGE&&(yt=C3(nt)),m=Math.min(m,yt.x),x=Math.min(x,yt.y),j=Math.max(j,yt.x1),D=Math.max(D,yt.y1)});var R=ww(g.CanvasPointToHtmlPoint([m,x]),2);m=R[0],x=R[1];var Y=ww(g.CanvasPointToHtmlPoint([j,D]),2);j=Y[0],D=Y[1];var J={left:"".concat(m-10,"px"),top:"".concat(x-10,"px"),width:"".concat(j-m+20,"px"),height:"".concat(D-x+20,"px")};return Object(ft.g)("div",{className:"lf-multiple-select",style:J,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu})}}}])&&I3(t.prototype,r),s}(ft.a),yp(_w,"toolName","multipleSelect"),bw=Ow))||bw;function B3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fy(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var F3=function(){function e(n){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),fy(this,"tools",void 0),fy(this,"components",void 0),fy(this,"toolMap",new Map),fy(this,"instance",void 0),this.instance=n,this.isDisabledTool(rb.toolName)||this.registerTool(rb.toolName,rb),this.isDisabledTool(ab.toolName)||this.registerTool(ab.toolName,ab);var s=n.graphModel;s.eventCenter.on("".concat(de.GRAPH_TRANSFORM,",").concat(de.NODE_CLICK,",").concat(de.BLANK_CLICK," "),function(){var u=s.textEditElement,p=s.editConfigModel,g=p.edgeTextEdit,m=p.nodeTextEdit;(g||m)&&u&&s.textEditElement.setElementState(yr.DEFAULT)})}var t,r;return t=e,(r=[{key:"isDisabledTool",value:function(n){return this.instance.options.disabledTools.indexOf(n)!==-1}},{key:"registerTool",value:function(n,s){this.toolMap.set(n,s)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}])&&B3(t.prototype,r),e}(),U3=o(173),G3=o.n(U3);function X3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ub(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ew=function(){function e(n){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,e),ub(this,"mousetrap",void 0),ub(this,"options",void 0),ub(this,"target",void 0),n.keyboard||(n.keyboard={enabled:!1}),this.options=n;var s=n.lf;this.target=s.container,this.mousetrap=new G3.a(this.target),n.keyboard.enabled&&!s.options.isSilentMode&&this.enable(!0)}var t,r;return t=e,(r=[{key:"initShortcuts",value:function(){var n=this,s=this.options.keyboard.shortcuts;if(s)if(jr(s))s.forEach(function(m){var x=m.keys,j=m.callback,D=m.action;return n.on(x,j,D)});else{var u=s.keys,p=s.callback,g=s.action;this.on(u,p,g)}}},{key:"on",value:function(n,s,u){this.mousetrap.bind(this.getKeys(n),s,u)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(n,s){this.mousetrap.unbind(this.getKeys(n),s)}},{key:"enable",value:function(n){(this.disabled||n)&&(this.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))}},{key:"disable",value:function(){this.disabled||(this.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}},{key:"getKeys",value:function(n){var s=this;return(Array.isArray(n)?n:[n]).map(function(u){return s.formatKey(u)})}},{key:"formatKey",value:function(n){return n.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")}}])&&X3(t.prototype,r),e}(),Y3=Ew,Ba=null;function jw(e,t){return e.x+=t,e.y+=t,e.text&&(e.text.x+=t,e.text.y+=t),e}function Sw(e,t){return e.startPoint&&(e.startPoint.x+=t,e.startPoint.y+=t),e.endPoint&&(e.endPoint.x+=t,e.endPoint.y+=t),e.pointsList&&e.pointsList.length>0&&e.pointsList.forEach(function(r){r.x+=t,r.y+=t}),e.text&&(e.text.x+=t,e.text.y+=t),e}var dl=40,cb=40;function sb(e){return sb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sb(e)}function Pw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function gp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pw(Object(r),!0).forEach(function(n){Kr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Aw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var lb=Symbol("plugin register by Logicflow.use"),fb=function(){function e(s){var u,p,g=this;(function(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")})(this,e),Kr(this,"container",void 0),Kr(this,"width",void 0),Kr(this,"height",void 0),Kr(this,"graphModel",void 0),Kr(this,"history",void 0),Kr(this,"viewMap",new Map),Kr(this,"tool",void 0),Kr(this,"keyboard",void 0),Kr(this,"dnd",void 0),Kr(this,"options",void 0),Kr(this,"snaplineModel",void 0),Kr(this,"components",[]),Kr(this,"plugins",void 0),Kr(this,"extension",{}),Kr(this,"adapterIn",void 0),Kr(this,"adapterOut",void 0),Kr(this,"getView",function(m){return g.viewMap.get(m)}),s=E1(s),this.options=s,this.container=this.initContainer(s.container),this.plugins=s.plugins,this.graphModel=new $D(gp({},s)),this.tool=new F3(this),this.history=new T3(this.graphModel.eventCenter),this.dnd=new WN({lf:this}),this.keyboard=new Y3({lf:this,keyboard:s.keyboard}),s.snapline!==!1&&(this.snaplineModel=new zO(this.graphModel),u=this.graphModel.eventCenter,p=this.snaplineModel,u.on("node:mousemove",function(m){var x=m.data;p.setNodeSnapLine(x)}),u.on("node:mouseup",function(){p.clearSnapline()})),function(m,x){var j=m.keyboard,D=j.options.keyboard;j.on(["cmd + c","ctrl + c"],function(){if(cb=dl,!D.enabled||x.textEditElement)return!0;var R=m.options.guards,Y=x.getSelectElements(!1);return R&&R.beforeClone&&!R.beforeClone(Y)||Y.nodes.length===0&&Y.edges.length===0?(Ba=null,!0):((Ba=Y).nodes.forEach(function(J){return jw(J,dl)}),Ba.edges.forEach(function(J){return Sw(J,dl)}),!1)}),j.on(["cmd + v","ctrl + v"],function(){if(!D.enabled||x.textEditElement)return!0;if(Ba&&(Ba.nodes||Ba.edges)){m.clearSelectElements();var R=m.addElements(Ba,cb);if(!R)return!0;R.nodes.forEach(function(Y){return m.selectElementById(Y.id,!0)}),R.edges.forEach(function(Y){return m.selectElementById(Y.id,!0)}),Ba.nodes.forEach(function(Y){return jw(Y,dl)}),Ba.edges.forEach(function(Y){return Sw(Y,dl)}),cb+=dl}return!1}),j.on(["cmd + z","ctrl + z"],function(){return!D.enabled||!!x.textEditElement||(m.undo(),!1)}),j.on(["cmd + y","ctrl + y"],function(){return!D.enabled||!!x.textEditElement||(m.redo(),!1)}),j.on(["backspace"],function(){if(!D.enabled||x.textEditElement)return!0;var R=x.getSelectElements(!0);return m.clearSelectElements(),R.edges.forEach(function(Y){return m.deleteEdge(Y.id)}),R.nodes.forEach(function(Y){return m.deleteNode(Y.id)}),!1})}(this,this.graphModel),this.keyboard.initShortcuts(),this.defaultRegister(),this.installPlugins(s.disabledPlugins)}var t,r,n;return t=e,r=[{key:"register",value:function(s,u){var p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(typeof s=="string"){var g={BaseEdge:pp,BaseEdgeModel:Tf,BaseNode:Ra,BaseNodeModel:Ca,RectNode:rm,RectNodeModel:Nv,CircleNode:am,CircleNodeModel:dv,PolygonNode:fm,PolygonNodeModel:kv,TextNode:xm,TextNodeModel:Lv,LineEdge:Um,LineEdgeModel:Bs,DiamondNode:ym,DiamondNodeModel:bv,PolylineEdge:Vm,PolylineEdgeModel:dc,BezierEdge:qm,BezierEdgeModel:cv,EllipseNode:_m,EllipseNodeModel:xv,HtmlNode:Pm,HtmlNodeModel:Fv,h:ft.g,type:s};this.viewMap.forEach(function(R){var Y=R.extendKey;Y&&(g[Y]=R)}),this.graphModel.modelMap.forEach(function(R){var Y=R.extendKey;Y&&(g[Y]=R)});var m=u(g),x=m.view,j=m.model,D=x;p&&!D.isObervered&&(D.isObervered=!0,D=le(D)),this.setView(s,D),this.graphModel.setModel(s,j)}else this.registerElement(s)}},{key:"registerElement",value:function(s){var u=s.view;s.isObserverView===!1||u.isObervered||(u.isObervered=!0,u=le(u)),this.setView(s.type,u),this.graphModel.setModel(s.type,s.model)}},{key:"batchRegister",value:function(){var s=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(p){s.registerElement(p)})}},{key:"defaultRegister",value:function(){this.registerElement({view:rm,model:Nv,type:"rect"}),this.registerElement({type:"circle",view:am,model:dv}),this.registerElement({type:"polygon",view:fm,model:kv}),this.registerElement({type:"line",view:Um,model:Bs}),this.registerElement({type:"polyline",view:Vm,model:dc}),this.registerElement({type:"bezier",view:qm,model:cv}),this.registerElement({type:"text",view:xm,model:Lv}),this.registerElement({type:"ellipse",view:_m,model:xv}),this.registerElement({type:"diamond",view:ym,model:bv}),this.registerElement({type:"html",view:Pm,model:Fv})}},{key:"selectElementById",value:function(s){var u=arguments.length>1&&arguments[1]!==void 0&&arguments[1],p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.graphModel.selectElementById(s,u),!u&&p&&this.graphModel.toFront(s)}},{key:"focusOn",value:function(s){var u=this.graphModel.transformModel,p=s.coordinate,g=s.id;if(!p){var m=this.getNodeModelById(g);m&&(p=m.getData());var x=this.getEdgeModelById(g);x&&(p=x.textPosition)}var j=p,D=j.x,R=j.y;u.focusOn(D,R,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(s){this.graphModel.setTheme(s)}},{key:"resize",value:function(s,u){this.graphModel.resize(s,u),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height}},{key:"setDefaultEdgeType",value:function(s){this.graphModel.setDefaultEdgeType(s)}},{key:"updateText",value:function(s,u){this.graphModel.updateText(s,u)}},{key:"deleteElement",value:function(s){var u,p,g,m=this.getModelById(s);return!!m&&(p=(g=(Kr(u={},qr.NODE,this.deleteNode),Kr(u,qr.EDGE,this.deleteEdge),u)[m.BaseType])===null||g===void 0?void 0:g.call(this,s))!==null&&p!==void 0&&p}},{key:"getModelById",value:function(s){return this.graphModel.getElement(s)}},{key:"getDataById",value:function(s){var u;return(u=this.graphModel.getElement(s))===null||u===void 0?void 0:u.getData()}},{key:"changeNodeType",value:function(s,u){this.graphModel.changeNodeType(s,u)}},{key:"changeEdgeType",value:function(s,u){this.graphModel.changeEdgeType(s,u)}},{key:"getNodeEdges",value:function(s){return this.graphModel.getNodeEdges(s)}},{key:"addNode",value:function(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.NODE_ADD,p=arguments.length>2?arguments[2]:void 0;return this.graphModel.addNode(s,u,p)}},{key:"deleteNode",value:function(s){var u=this.graphModel.getNodeModelById(s);if(!u)return!1;var p=u.getData(),g=this.options.guards,m=!g||!g.beforeDelete||g.beforeDelete(p);return m&&this.graphModel.deleteNode(s),m}},{key:"cloneNode",value:function(s){var u=this.graphModel.getNodeModelById(s).getData(),p=this.options.guards;if(!p||!p.beforeClone||p.beforeClone(u))return this.graphModel.cloneNode(s)}},{key:"changeNodeId",value:function(s,u){return this.graphModel.changeNodeId(s,u)}},{key:"getNodeModelById",value:function(s){return this.graphModel.getNodeModelById(s)}},{key:"getNodeDataById",value:function(s){var u;return(u=this.graphModel.getNodeModelById(s))===null||u===void 0?void 0:u.getData()}},{key:"addEdge",value:function(s){return this.graphModel.addEdge(s)}},{key:"deleteEdge",value:function(s){var u=this.options.guards,p=this.graphModel.edgesMap[s];if(!p)return!1;var g=p.model.getData(),m=!u||!u.beforeDelete||u.beforeDelete(g);return m&&this.graphModel.deleteEdgeById(s),m}},{key:"deleteEdgeByNodeId",value:function(s){var u=s.sourceNodeId,p=s.targetNodeId;u&&p?this.graphModel.deleteEdgeBySourceAndTarget(u,p):u?this.graphModel.deleteEdgeBySource(u):p&&this.graphModel.deleteEdgeByTarget(p)}},{key:"changeEdgeId",value:function(s,u){return this.graphModel.changeEdgeId(s,u)}},{key:"getEdgeModelById",value:function(s){var u;return(u=this.graphModel.edgesMap[s])===null||u===void 0?void 0:u.model}},{key:"getEdgeModels",value:function(s){var u=this.graphModel.edges,p=s.sourceNodeId,g=s.targetNodeId;if(p&&g){var m=[];return u.forEach(function(D){D.sourceNodeId===p&&D.targetNodeId===g&&m.push(D)}),m}if(p){var x=[];return u.forEach(function(D){D.sourceNodeId===p&&x.push(D)}),x}if(g){var j=[];return u.forEach(function(D){D.targetNodeId===g&&j.push(D)}),j}return[]}},{key:"getEdgeDataById",value:function(s){var u;return(u=this.getEdgeModelById(s))===null||u===void 0?void 0:u.getData()}},{key:"getNodeIncomingEdge",value:function(s){return this.graphModel.getNodeIncomingEdge(s)}},{key:"getNodeOutgoingEdge",value:function(s){return this.graphModel.getNodeOutgoingEdge(s)}},{key:"getNodeIncomingNode",value:function(s){return this.graphModel.getNodeIncomingNode(s)}},{key:"getNodeOutgoingNode",value:function(s){return this.graphModel.getNodeOutgoingNode(s)}},{key:"editText",value:function(s){this.graphModel.editText(s)}},{key:"setProperties",value:function(s,u){var p;(p=this.graphModel.getElement(s))===null||p===void 0||p.setProperties(vn(u))}},{key:"deleteProperty",value:function(s,u){var p;(p=this.graphModel.getElement(s))===null||p===void 0||p.deleteProperty(u)}},{key:"getProperties",value:function(s){var u;return(u=this.graphModel.getElement(s))===null||u===void 0?void 0:u.getProperties()}},{key:"toFront",value:function(s){this.graphModel.toFront(s)}},{key:"setElementZIndex",value:function(s,u){return this.graphModel.setElementZIndex(s,u)}},{key:"addElements",value:function(s){for(var u=this,p=s.nodes,g=s.edges,m={},x={nodes:[],edges:[]},j=0;j<p.length;j++){var D=p[j],R=D.id,Y=this.addNode(D);if(!Y)return;R&&(m[R]=Y.id),x.nodes.push(Y)}return g.forEach(function(J){var nt=J.sourceNodeId,yt=J.targetNodeId;m[nt]&&(nt=m[nt]),m[yt]&&(yt=m[yt]);var gt=u.graphModel.addEdge(gp(gp({},J),{},{sourceNodeId:nt,targetNodeId:yt}));x.edges.push(gt)}),x}},{key:"getAreaElement",value:function(s,u){var p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],g=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],m=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(s,u,p,g,m).map(function(x){return x.getData()})}},{key:"getSelectElements",value:function(){var s=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.graphModel.getSelectElements(s)}},{key:"clearSelectElements",value:function(){this.graphModel.clearSelectElements()}},{key:"getGraphData",value:function(){var s=this.graphModel.modelToGraphData();if(this.adapterOut){for(var u=arguments.length,p=new Array(u),g=0;g<u;g++)p[g]=arguments[g];return this.adapterOut.apply(this,[s].concat(p))}return s}},{key:"getGraphRawData",value:function(){return this.graphModel.modelToGraphData()}},{key:"clearData",value:function(){this.graphModel.clearData()}},{key:"updateEditConfig",value:function(s){var u=this.graphModel,p=u.editConfigModel,g=u.transformModel;p.updateEditConfig(s),(s==null?void 0:s.stopMoveGraph)!==void 0&&g.updateTranslateLimits(s.stopMoveGraph),s!=null&&s.isSilentMode?this.keyboard.disable():this.keyboard.enable(!0)}},{key:"getEditConfig",value:function(){return this.graphModel.editConfigModel.getConfig()}},{key:"getPointByClient",value:function(s,u){return this.graphModel.getPointByClient({x:s,y:u})}},{key:"undo",value:function(){if(this.history.undoAble()){var s=vn(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"redo",value:function(){if(this.history.redoAble()){var s=vn(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"zoom",value:function(s,u){return this.graphModel.transformModel.zoom(s,u)}},{key:"resetZoom",value:function(){this.graphModel.transformModel.resetZoom()}},{key:"setZoomMiniSize",value:function(s){this.graphModel.transformModel.setZoomMiniSize(s)}},{key:"setZoomMaxSize",value:function(s){this.graphModel.transformModel.setZoomMaxSize(s)}},{key:"getTransform",value:function(){var s=this.graphModel.transformModel;return{SCALE_X:s.SCALE_X,SCALE_Y:s.SCALE_Y,TRANSLATE_X:s.TRANSLATE_X,TRANSLATE_Y:s.TRANSLATE_Y}}},{key:"translate",value:function(s,u){this.graphModel.transformModel.translate(s,u)}},{key:"resetTranslate",value:function(){var s=this.graphModel.transformModel,u=s.TRANSLATE_X,p=s.TRANSLATE_Y;this.translate(-u,-p)}},{key:"translateCenter",value:function(){this.graphModel.translateCenter()}},{key:"fitView",value:function(s,u){u===void 0&&(u=s),this.graphModel.fitView(s,u)}},{key:"openEdgeAnimation",value:function(s){this.graphModel.openEdgeAnimation(s)}},{key:"closeEdgeAnimation",value:function(s){this.graphModel.closeEdgeAnimation(s)}},{key:"on",value:function(s,u){this.graphModel.eventCenter.on(s,u)}},{key:"off",value:function(s,u){this.graphModel.eventCenter.off(s,u)}},{key:"once",value:function(s,u){this.graphModel.eventCenter.once(s,u)}},{key:"emit",value:function(s,u){this.graphModel.eventCenter.emit(s,u)}},{key:"initContainer",value:function(s){var u=document.createElement("div");return u.style.position="relative",u.style.width="100%",u.style.height="100%",s.innerHTML="",s.appendChild(u),u}},{key:"installPlugins",value:function(){var s,u=this,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=(s=this.plugins)!==null&&s!==void 0?s:e.extensions;g.forEach(function(m){var x=null,j=null;m[lb]?(x=m.extension,j=m.props):x=m;var D=x.pluginName||x.name;p.indexOf(D)===-1&&u.installPlugin(x,j)})}},{key:"installPlugin",value:function(s,u){if(sb(s)==="object"){var p=s.install,g=s.render;return p&&p.call(s,this,e),g&&this.components.push(g.bind(s)),void(this.extension[s.pluginName]=s)}var m=s,x=new m({lf:this,LogicFlow:e,options:this.options.pluginsOptions,props:u});x.render&&this.components.push(x.render.bind(x)),this.extension[m.pluginName]=x}},{key:"updateAttributes",value:function(s,u){this.graphModel.updateAttributes(s,u)}},{key:"createFakerNode",value:function(s){var u=this.graphModel.modelMap.get(s.type);if(u){var p=new u(gp(gp({},s),{},{virtual:!0}),this.graphModel);return this.graphModel.setFakerNode(p),p}}},{key:"removeFakerNode",value:function(){this.graphModel.removeFakerNode()}},{key:"setNodeSnapLine",value:function(s){this.snaplineModel&&this.snaplineModel.setNodeSnapLine(s)}},{key:"removeNodeSnapLine",value:function(){this.snaplineModel&&this.snaplineModel.clearSnapline()}},{key:"setView",value:function(s,u){this.viewMap.set(s,u)}},{key:"renderRawData",value:function(s){this.graphModel.graphDataToModel(vn(s)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(ft.j)(Object(ft.g)(HN,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(de.GRAPH_RENDERED,this.graphModel.modelToGraphData())}},{key:"render",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.adapterIn&&(s=this.adapterIn(s)),this.renderRawData(s)}}],n=[{key:"use",value:function(s,u){var p,g,m=s.pluginName;m||(m=s.name);var x=(p=this.extensions.get(m))===null||p===void 0?void 0:p.extension;x&&x.destroy&&x.destroy(),this.extensions.set(m,(Kr(g={},lb,lb),Kr(g,"extension",s),Kr(g,"props",u),g))}}],r&&Aw(t.prototype,r),n&&Aw(t,n),e}();function Ti(e){return le(e)}Kr(fb,"extensions",new Map),f.default=fb}])})})(ng,ng.exports);var ie=ng.exports;const Hc=u4(ie);var vM=function(){function a(){globalThis._ids=this,this._ids=new Set}return a.prototype.generateId=function(){var c="xxxxxxx".replace(/[x]/g,function(i){var f=Math.random()*16|0,o=i==="x"?f:f&3|8;return o.toString(16)});return c},a.prototype.next=function(){for(var c=this.generateId();this._ids.has(c);)c=this.generateId();return this._ids.add(c),c},a}(),mM=(globalThis==null?void 0:globalThis._ids)||new vM;function Vc(){return mM.next()}var H0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),bM=function(a){H0(c,a);function c(i,f){var o=this;return i.id||(i.id="Event_"+Vc()),i.text||(i.text=""),i.text&&typeof i.text=="string"&&(i.text={value:i.text,x:i.x,y:i.y+40}),o=a.call(this,i,f)||this,o}return c.prototype.setAttributes=function(){this.r=18},c.prototype.getConnectedTargetRules=function(){var i=a.prototype.getConnectedTargetRules.call(this),f={message:"\u8D77\u59CB\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u7EC8\u70B9",validate:function(){return!1}};return i.push(f),i},c.extendKey="StartEventModel",c}(ie.CircleNodeModel),_M=function(a){H0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.extendKey="StartEventNode",c}(ie.CircleNode),OM={type:"bpmn:startEvent",view:_M,model:bM},V0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Gp=globalThis&&globalThis.__assign||function(){return Gp=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Gp.apply(this,arguments)},wM=function(a){V0(c,a);function c(i,f){var o=this;return i.id||(i.id="Event_"+Vc()),i.text||(i.text=""),i.text&&typeof i.text=="string"&&(i.text={value:i.text,x:i.x,y:i.y+40}),o=a.call(this,i,f)||this,o}return c.prototype.setAttributes=function(){this.r=18},c.prototype.getConnectedSourceRules=function(){var i=a.prototype.getConnectedSourceRules.call(this),f={message:"\u7ED3\u675F\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u8D77\u70B9",validate:function(){return!1}};return i.push(f),i},c.extendKey="EndEventModel",c}(ie.CircleNodeModel),xM=function(a){V0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},c.prototype.getShape=function(){var i=this.props.model,f=i.getNodeStyle(),o=i.x,h=i.y,y=i.r,b=a.prototype.getShape.call(this);return ie.h("g",{},b,ie.h("circle",Gp(Gp({},f),{cx:o,cy:h,r:y-5})))},c.extendKey="EndEventView",c}(ie.CircleNode),EM={type:"bpmn:endEvent",view:xM,model:wM},W0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Pl=globalThis&&globalThis.__assign||function(){return Pl=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Pl.apply(this,arguments)},jM=function(a){W0(c,a);function c(i,f){var o=this;return i.id||(i.id="Gateway_"+Vc()),i.text||(i.text=""),i.text&&typeof i.text=="string"&&(i.text={value:i.text,x:i.x,y:i.y+40}),o=a.call(this,i,f)||this,o.points=[[25,0],[50,25],[25,50],[0,25]],o}return c.extendKey="ExclusiveGatewayModel",c}(ie.PolygonNodeModel),SM=function(a){W0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.points,v=i.getNodeStyle();return ie.h("g",{transform:"matrix(1 0 0 1 "+(f-h/2)+" "+(o-y/2)+")"},ie.h("polygon",Pl(Pl({},v),{x:f,y:o,points:b})),ie.h("path",Pl({d:"m 16,15 7.42857142857143,9.714285714285715 -7.42857142857143,9.714285714285715 3.428571428571429,0 5.714285714285715,-7.464228571428572 5.714285714285715,7.464228571428572 3.428571428571429,0 -7.42857142857143,-9.714285714285715 7.42857142857143,-9.714285714285715 -3.428571428571429,0 -5.714285714285715,7.464228571428572 -5.714285714285715,-7.464228571428572 -3.428571428571429,0 z"},v)))},c.extendKey="ExclusiveGatewayNode",c}(ie.PolygonNode),PM={type:"bpmn:exclusiveGateway",view:SM,model:jM},K0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Xp=globalThis&&globalThis.__assign||function(){return Xp=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Xp.apply(this,arguments)},AM=function(a){K0(c,a);function c(i,f){var o=this;return i.id||(i.id="Activity_"+Vc()),o=a.call(this,i,f)||this,o}return c.extendKey="UserTaskModel",c}(ie.RectNodeModel),kM=function(a){K0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getLabelShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.getNodeStyle();return ie.h("svg",{x:f-h/2+5,y:o-y/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},ie.h("path",{fill:b.stroke,d:"M655.807326 287.35973m-223.989415 0a218.879 218.879 0 1 0 447.978829 0 218.879 218.879 0 1 0-447.978829 0ZM1039.955839 895.482975c-0.490184-212.177424-172.287821-384.030443-384.148513-384.030443-211.862739 0-383.660376 171.85302-384.15056 384.030443L1039.955839 895.482975z"}))},c.prototype.getShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.radius,v=i.getNodeStyle();return ie.h("g",{},[ie.h("rect",Xp(Xp({},v),{x:f-h/2,y:o-y/2,rx:b,ry:b,width:h,height:y})),this.getLabelShape()])},c.extendKey="UserTaskNode",c}(ie.RectNode),TM={type:"bpmn:userTask",view:kM,model:AM},Z0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),og=globalThis&&globalThis.__assign||function(){return og=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},og.apply(this,arguments)},MM=function(a){Z0(c,a);function c(i,f){var o=this;return i.id||(i.id="Activity_"+Vc()),o=a.call(this,i,f)||this,o}return c.extendKey="ServiceTaskModel",c}(ie.RectNodeModel),DM=function(a){Z0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getLabelShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.getNodeStyle();return ie.h("svg",{x:f-h/2+5,y:o-y/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},ie.h("path",{fill:b.stroke,d:"M882.527918 434.149934c-2.234901-5.303796-7.311523-8.853645-13.059434-9.138124l-61.390185-3.009544c-6.635117-20.973684-15.521508-41.175795-26.513864-60.282968l42.051745-47.743374c4.308119-4.889357 4.955872-12.004405 1.602498-17.59268-46.384423-77.30362-103.969956-101.422947-106.400309-102.410438-5.332449-2.170432-11.432377-1.090844-15.693424 2.77009L654.674467 240.664222c-17.004279-8.654101-35.092239-15.756869-53.995775-21.210068l-3.26537-66.490344c-0.280386-5.747911-3.833305-10.824533-9.134031-13.059434-1.683339-0.709151-30.193673-12.391215-76.866668-12.051477-46.672996-0.339738-75.18333 11.342326-76.866668 12.051477-5.300726 2.234901-8.853645 7.311523-9.134031 13.059434l-3.26537 66.490344c-18.903535 5.453199-36.991496 12.555967-53.995775 21.210068l-48.450479-43.922349c-4.261047-3.860934-10.360975-4.940522-15.693424-2.77009-2.430352 0.98749-60.015885 25.106818-106.400309 102.410438-3.353374 5.588275-2.705622 12.703323 1.602498 17.59268l42.051745 47.743374c-10.992355 19.107173-19.878746 39.309284-26.513864 60.282968l-61.390185 3.009544c-5.747911 0.284479-10.824533 3.834328-13.059434 9.138124-1.01512 2.415003-24.687262 60.190871-2.822278 147.651828 1.583055 6.324032 7.072069 10.893094 13.57518 11.308557 5.892197 0.37146 11.751648 0.523933 17.419741 0.667196 14.498202 0.372483 28.193109 0.723477 40.908712 4.63353 4.212952 1.294482 6.435573 8.270361 9.349949 18.763342 1.287319 4.640694 2.617617 9.43693 4.484128 14.010085 1.794879 4.393054 3.75758 8.570189 5.66093 12.607132 1.302669 2.765997 2.529613 5.380544 3.689019 8.018627 2.986007 6.803963 2.682086 9.773598 2.578732 10.349719-3.061732 3.672646-6.391571 7.238868-9.91379 11.015891-1.810229 1.943258-3.680832 3.949962-5.523807 5.980201l-22.560832 24.8909c-3.865028 4.261047-4.940522 10.365068-2.774183 15.693424 0.991584 2.426259 25.102724 60.011792 102.414531 106.400309 5.588275 3.353374 12.703323 2.701528 17.591657-1.603521l23.476691-20.682042c2.346441-2.061962 4.64888-4.336772 6.875594-6.534833 9.05319-8.93858 14.018272-12.95608 17.73185-11.576663 3.305279 1.222851 6.907317 3.166109 10.720156 5.228071 3.325745 1.794879 6.764054 3.650133 10.465352 5.288446 6.016017 2.662643 12.120039 4.688789 18.019399 6.65149 6.827499 2.266623 13.279445 4.409426 18.819624 7.275707 1.518586 0.782829 1.926886 0.994654 2.358721 7.830339 0.726547 11.496845 1.25048 23.276123 1.753947 34.672684 0.264013 5.900384 0.528026 11.803837 0.815575 17.700127 0.284479 5.743818 3.833305 10.82044 9.138124 13.05534 1.654686 0.698918 29.371958 12.063757 74.869175 12.063757 0.328481 0 3.65832 0 3.986801 0 45.497217 0 73.214489-11.364839 74.869175-12.063757 5.304819-2.234901 8.853645-7.311523 9.138124-13.05534 0.287549-5.89629 0.551562-11.799744 0.815575-17.700127 0.503467-11.396561 1.027399-23.175839 1.753947-34.672684 0.431835-6.835685 0.840134-7.04751 2.358721-7.830339 5.54018-2.866281 11.992125-5.009084 18.819624-7.275707 5.89936-1.962701 12.003382-3.988848 18.019399-6.65149 3.701299-1.638313 7.139607-3.493567 10.465352-5.288446 3.812839-2.061962 7.414877-4.00522 10.720156-5.228071 3.713578-1.379417 8.67866 2.638083 17.73185 11.576663 2.226714 2.198062 4.529153 4.472871 6.875594 6.534833l23.476691 20.682042c4.888334 4.305049 12.003382 4.956895 17.591657 1.603521 77.311807-46.388517 101.422947-103.97405 102.414531-106.400309 2.166339-5.328355 1.090844-11.432377-2.774183-15.693424l-22.560832-24.8909c-1.842974-2.030239-3.713578-4.036943-5.523807-5.980201-3.52222-3.777023-6.852058-7.343245-9.91379-11.015891-0.103354-0.576121-0.407276-3.545756 2.578732-10.349719 1.159406-2.638083 2.38635-5.252631 3.689019-8.018627 1.90335-4.036943 3.866051-8.214079 5.66093-12.607132 1.866511-4.573155 3.196809-9.369392 4.484128-14.010085 2.914376-10.492982 5.136997-17.46886 9.349949-18.763342 12.715603-3.910053 26.41051-4.261047 40.908712-4.63353 5.668093-0.143263 11.527544-0.295735 17.419741-0.667196 6.503111-0.415462 11.992125-4.984524 13.57518-11.308557C907.21518 494.340805 883.543038 436.564937 882.527918 434.149934zM643.49894 643.761929c-35.280528 35.280528-82.191954 54.711066-132.086317 54.711066s-96.806813-19.430538-132.086317-54.711066c-35.280528-35.279504-54.711066-82.191954-54.711066-132.086317 0-49.894364 19.430538-96.80272 54.711066-132.082224 35.283598-35.284621 82.191954-54.711066 132.086317-54.711066s96.80579 19.426445 132.086317 54.711066c35.279504 35.279504 54.711066 82.187861 54.711066 132.082224C698.210006 561.569976 678.782537 608.482425 643.49894 643.761929z"}))},c.prototype.getShape=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.radius,v=i.getNodeStyle();return ie.h("g",{},[ie.h("rect",og({x:f-h/2,y:o-y/2,rx:b,ry:b,width:h,height:y},v)),this.getLabelShape()])},c.extendKey="ServiceTaskNode",c}(ie.RectNode),NM={type:"bpmn:serviceTask",view:DM,model:MM},q0=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),CM=function(a){q0(c,a);function c(i,f){var o=this;return i.id||(i.id="Flow_"+Vc()),o=a.call(this,i,f)||this,o}return c.extendKey="SequenceFlowModel",c}(ie.PolylineEdgeModel),RM=function(a){q0(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.extendKey="SequenceFlowEdge",c}(ie.PolylineEdge),IM={type:"bpmn:sequenceFlow",view:RM,model:CM},$0={width:40,height:40},Q0={width:40,height:40},J0={width:40,height:40},t_={width:100,height:80},e_={width:100,height:80},LM={rect:{radius:5,stroke:"rgb(24, 125, 255)"},circle:{r:18,stroke:"rgb(24, 125, 255)"},polygon:{stroke:"rgb(24, 125, 255)"},polyline:{stroke:"rgb(24, 125, 255)",hoverStroke:"rgb(24, 125, 255)",selectedStroke:"rgb(24, 125, 255)"},edgeText:{background:{fill:"white",height:14,stroke:"transparent",radius:3}}},zM=function(){function a(c){var i=c.lf;i.setTheme(LM),i.register(OM),i.register(EM),i.register(PM),i.register(TM),i.register(NM),i.options.customBpmnEdge||(i.register(IM),i.setDefaultEdgeType("bpmn:sequenceFlow"))}return a.pluginName="bpmnElement",a}(),BM=function(){function a(){globalThis._ids=this,this._ids=new Set}return a.prototype.generateId=function(){var c="xxxxxxx".replace(/[x]/g,function(i){var f=Math.random()*16|0,o=i==="x"?f:f&3|8;return o.toString(16)});return c},a.prototype.next=function(){for(var c=this.generateId();this._ids.has(c);)c=this.generateId();return this._ids.add(c),c},a}(),FM=(globalThis==null?void 0:globalThis._ids)||new BM;function r_(){return FM.next()}function n_(a){return Object.prototype.toString.call(a)}function UM(a){return" ".repeat(a)}function Yp(a){var c=a;return n_(a)==="[object Object]"?(c={},Object.keys(a).forEach(function(i){var f=i;i.charAt(0)==="-"&&(f=i.substring(1)),c[f]=Yp(a[i])})):Array.isArray(a)&&(c=[],a.forEach(function(i,f){c[f]=Yp(i)})),c}function GM(a){var c=a;try{typeof c!="string"&&(c=JSON.parse(a))}catch(i){c=JSON.stringify(Yp(a)).replace(/"/g,"'")}return c}var Wc=`
  96. `;function Hp(a,c,i){var f=UM(i),o="";if(c==="#text")return Wc+f+a;if(c==="#cdata-section")return Wc+f+"<![CDATA["+a+"]]>";if(c==="#comment")return Wc+f+"<!--"+a+"-->";if((""+c).charAt(0)==="-")return" "+c.substring(1)+'="'+GM(a)+'"';if(Array.isArray(a))a.forEach(function(v){o+=Hp(v,c,i+1)});else if(n_(a)==="[object Object]"){var h=Object.keys(a),y="",b="";o+=(i===0?"":Wc+f)+"<"+c,h.forEach(function(v){v.charAt(0)==="-"?y+=Hp(a[v],v,i+1):b+=Hp(a[v],v,i+1)}),o+=y+(b!==""?">"+b+(Wc+f)+"</"+c+">":" />")}else o+=Wc+f+("<"+c+">"+a.toString()+"</"+c+">");return o}function XM(a){var c="";for(var i in a)c+=Hp(a[i],i,0);return c}var Qn=function(){};Qn.ObjTree=function(){return this},Qn.ObjTree.VERSION="0.23",Qn.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  97. `,Qn.ObjTree.prototype.attr_prefix="-",Qn.ObjTree.prototype.parseXML=function(a){var c;if(window.DOMParser){var i=new DOMParser,f=i.parseFromString(a,"application/xml");if(!f)return;c=f.documentElement}else window.ActiveXObject&&(i=new ActiveXObject("Microsoft.XMLDOM"),i.async=!1,i.loadXML(a),c=i.documentElement);if(c)return this.parseDOM(c)},Qn.ObjTree.prototype.parseHTTP=function(a,c,i){var f={};for(var o in c)f[o]=c[o];if(f.method||(typeof f.postBody>"u"&&typeof f.postbody>"u"&&typeof f.parameters>"u"?f.method="get":f.method="post"),i){f.asynchronous=!0;var h=this,y=i,b=f.onComplete;f.onComplete=function(S){var k;S&&S.responseXML&&S.responseXML.documentElement&&(k=h.parseDOM(S.responseXML.documentElement)),y(k,S),b&&b(S)}}else f.asynchronous=!1;var v;if(typeof HTTP<"u"&&HTTP.Request){f.uri=a;var E=new HTTP.Request(f);E&&(v=E.transport)}else if(typeof Ajax<"u"&&Ajax.Request){var E=new Ajax.Request(a,f);E&&(v=E.transport)}if(i)return v;if(v&&v.responseXML&&v.responseXML.documentElement)return this.parseDOM(v.responseXML.documentElement)},Qn.ObjTree.prototype.parseDOM=function(a){if(a){if(this.__force_array={},this.force_array)for(var c=0;c<this.force_array.length;c++)this.__force_array[this.force_array[c]]=1;var i=this.parseElement(a);if(this.__force_array[a.nodeName]&&(i=[i]),a.nodeType!=11){var f={};f[a.nodeName]=i,i=f}return i}},Qn.ObjTree.prototype.parseElement=function(a){if(a.nodeType!=7){if(a.nodeType==3||a.nodeType==4||a.nodeType==8){var c=a.nodeValue.match(/[^\x00-\x20]/);return c==null?void 0:a.nodeValue}var i=null,f={};if(a.attributes&&a.attributes.length){i={};for(var o=0;o<a.attributes.length;o++){var h=a.attributes[o].nodeName;if(typeof h=="string"){var y=a.attributes[o].nodeValue;try{y=JSON.parse(a.attributes[o].nodeValue.replace(/'/g,'"'))}catch(E){y=a.attributes[o].nodeValue}y&&(h=this.attr_prefix+h,typeof f[h]>"u"&&(f[h]=0),f[h]++,this.addNode(i,h,f[h],y))}}}if(a.childNodes&&a.childNodes.length){var b=!0;i&&(b=!1);for(var o=0;o<a.childNodes.length&&b;o++){var v=a.childNodes[o].nodeType;v==3||v==4||v==8||(b=!1)}if(b){i||(i="");for(var o=0;o<a.childNodes.length;o++)i+=a.childNodes[o].nodeValue}else{i||(i={});for(var o=0;o<a.childNodes.length;o++){var h=a.childNodes[o].nodeName;if(typeof h=="string"){var y=this.parseElement(a.childNodes[o]);y&&(typeof f[h]>"u"&&(f[h]=0),f[h]++,this.addNode(i,h,f[h],y))}}}}else i===null&&(i={});return i}},Qn.ObjTree.prototype.addNode=function(a,c,i,f){this.__force_array[c]?(i==1&&(a[c]=[]),a[c][a[c].length]=f):i==1?a[c]=f:i==2?a[c]=[a[c],f]:a[c][a[c].length]=f},Qn.ObjTree.prototype.writeXML=function(a){var c=this.hash_to_xml(null,a);return this.xmlDecl+c},Qn.ObjTree.prototype.hash_to_xml=function(a,c){var i=[],f=[];for(var o in c)if(c.hasOwnProperty(o)){var h=c[o];o.charAt(0)!=this.attr_prefix?typeof h>"u"||h==null?i[i.length]="<"+o+" />":typeof h=="object"&&h.constructor==Array?i[i.length]=this.array_to_xml(o,h):typeof h=="object"?i[i.length]=this.hash_to_xml(o,h):i[i.length]=this.scalar_to_xml(o,h):f[f.length]=" "+o.substring(1)+'="'+this.xml_escape(h)+'"'}var y=f.join(""),b=i.join("");return typeof a>"u"||a==null||(i.length>0?b.match(/\n/)?b="<"+a+y+`>
  98. `+b+"</"+a+`>
  99. `:b="<"+a+y+">"+b+"</"+a+`>
  100. `:b="<"+a+y+` />
  101. `),b},Qn.ObjTree.prototype.array_to_xml=function(a,c){for(var i=[],f=0;f<c.length;f++){var o=c[f];typeof o>"u"||o==null?i[i.length]="<"+a+" />":typeof o=="object"&&o.constructor==Array?i[i.length]=this.array_to_xml(a,o):typeof o=="object"?i[i.length]=this.hash_to_xml(a,o):i[i.length]=this.scalar_to_xml(a,o)}return i.join("")},Qn.ObjTree.prototype.scalar_to_xml=function(a,c){return a=="#text"?this.xml_escape(c):"<"+a+">"+this.xml_escape(c)+"</"+a+`>
  102. `},Qn.ObjTree.prototype.xml_escape=function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var YM=function(a){return new Qn.ObjTree().parseXML(a)},HM=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),ig=globalThis&&globalThis.__assign||function(){return ig=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},ig.apply(this,arguments)},Vp=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},Ii;(function(a){a.START="bpmn:startEvent",a.END="bpmn:endEvent",a.GATEWAY="bpmn:exclusiveGateway",a.USER="bpmn:userTask",a.SYSTEM="bpmn:serviceTask",a.FLOW="bpmn:sequenceFlow"})(Ii||(Ii={}));var o_=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],i_=["properties","startPoint","endPoint","pointsList"];function a_(a){var c=a?i_.concat(a):i_;return function(i){function f(o){var h={};return typeof o=="string"?o:Array.isArray(o)?o.map(function(y){return f(y)}):(Object.entries(o).forEach(function(y){var b=Vp(y,2),v=b[0],E=b[1];typeof E!="object"?v.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(v)?h[v]=E:h["-"+v]=E:c.includes(v)?h["-"+v]=f(E):h[v]=f(E)}),h)}return f(i)}}function Wp(a){var c={};return Object.entries(a).forEach(function(i){var f=Vp(i,2),o=f[0],h=f[1];o.indexOf("-")===0?c[o.substring(1)]=Yp(h):typeof h=="string"?c[o]=h:Object.prototype.toString.call(h)==="[object Object]"?c[o]=Wp(h):Array.isArray(h)?c[o]=h.map(function(y){return Wp(y)}):c[o]=h}),c}function VM(a,c,i){var f=new Map;c.nodes.forEach(function(h){var y,b={"-id":h.id};if(!((y=h.text)===null||y===void 0)&&y.value&&(b["-name"]=h.text.value),h.properties){var v=a_(i)(h.properties);Object.assign(b,v)}f.set(h.id,b),a[h.type]?Array.isArray(a[h.type])?a[h.type].push(b):a[h.type]=[a[h.type],b]:a[h.type]=b});var o=c.edges.map(function(h){var y,b,v=f.get(h.targetNodeId);v["bpmn:incoming"]?Array.isArray(v["bpmn:incoming"])?v["bpmn:incoming"].push(h.id):v["bpmn:incoming"]=[v["bpmn:incoming"],h.id]:v["bpmn:incoming"]=h.id;var E={"-id":h.id,"-sourceRef":h.sourceNodeId,"-targetRef":h.targetNodeId};if(!((y=h.text)===null||y===void 0)&&y.value&&(E["-name"]=(b=h.text)===null||b===void 0?void 0:b.value),h.properties){var S=a_(i)(h.properties);Object.assign(E,S)}return E});c.edges.forEach(function(h){var y=f.get(h.sourceNodeId);y["bpmn:outgoing"]?Array.isArray(y["bpmn:outgoing"])?y["bpmn:outgoing"].push(h.id):y["bpmn:outgoing"]=[y["bpmn:outgoing"],h.id]:y["bpmn:outgoing"]=h.id}),a[Ii.FLOW]=o}function WM(a,c){a["bpmndi:BPMNEdge"]=c.edges.map(function(i){var f,o=i.id,h=i.pointsList.map(function(b){var v=b.x,E=b.y;return{"-x":v,"-y":E}}),y={"-id":o+"_di","-bpmnElement":o,"di:waypoint":h};return!((f=i.text)===null||f===void 0)&&f.value&&(y["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":i.text.x-i.text.value.length*10/2,"-y":i.text.y-7,"-width":i.text.value.length*10,"-height":14}}),y}),a["bpmndi:BPMNShape"]=c.nodes.map(function(i){var f,o=i.id,h=100,y=80,b=i.x,v=i.y,E=Ha.shapeConfigMap.get(i.type);E&&(h=E.width,y=E.height),b-=h/2,v-=y/2;var S={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":b,"-y":v,"-width":h,"-height":y}};return!((f=i.text)===null||f===void 0)&&f.value&&(S["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":i.text.x-i.text.value.length*10/2,"-y":i.text.y-7,"-width":i.text.value.length*10,"-height":14}}),S})}function KM(a){var c=[],i=[],f=a["bpmn:definitions"];if(f){var o=f["bpmn:process"];Object.keys(o).forEach(function(h){if(h.indexOf("bpmn:")===0){var y=o[h];if(h===Ii.FLOW){var b=f["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];i=qM(y,b)}else{var v=f["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];c=c.concat(ZM(y,v,h))}}})}return{nodes:c,edges:i}}function ZM(a,c,i){var f=[];if(Array.isArray(a))a.forEach(function(y){var b;Array.isArray(c)?b=c.find(function(E){return E["-bpmnElement"]===y["-id"]}):b=c;var v=u_(b,i,y);f.push(v)});else{var o=void 0;Array.isArray(c)?o=c.find(function(y){return y["-bpmnElement"]===a["-id"]}):o=c;var h=u_(o,i,a);f.push(h)}return f}function u_(a,c,i){var f=Number(a["dc:Bounds"]["-x"]),o=Number(a["dc:Bounds"]["-y"]),h=i["-name"],y=Ha.shapeConfigMap.get(c);y&&(f+=y.width/2,o+=y.height/2);var b;Object.entries(i).forEach(function(k){var T=Vp(k,2),M=T[0],I=T[1];o_.indexOf(M)===-1&&(b||(b={}),b[M]=I)}),b&&(b=Wp(b));var v;if(h&&(v={x:f,y:o,value:h},a["bpmndi:BPMNLabel"]&&a["bpmndi:BPMNLabel"]["dc:Bounds"])){var E=a["bpmndi:BPMNLabel"]["dc:Bounds"];v.x=Number(E["-x"])+Number(E["-width"])/2,v.y=Number(E["-y"])+Number(E["-height"])/2}var S={id:a["-bpmnElement"],type:c,x:f,y:o,properties:b};return v&&(S.text=v),S}function qM(a,c){var i=[];if(Array.isArray(a))a.forEach(function(o){var h;Array.isArray(c)?h=c.find(function(y){return y["-bpmnElement"]===o["-id"]}):h=c,i.push(c_(h,o))});else{var f=void 0;Array.isArray(c)?f=c.find(function(o){return o["-bpmnElement"]===a["-id"]}):f=c,i.push(c_(f,a))}return i}function c_(a,c){var i,f=c["-name"];if(f){var o=a["bpmndi:BPMNLabel"]["dc:Bounds"],h=0;f.split(`
  103. `).forEach(function(v){h<v.length&&(h=v.length)}),i={value:f,x:Number(o["-x"])+h*10/2,y:Number(o["-y"])+7}}var y;Object.entries(c).forEach(function(v){var E=Vp(v,2),S=E[0],k=E[1];o_.indexOf(S)===-1&&(y||(y={}),y[S]=k)}),y&&(y=Wp(y));var b={id:c["-id"],type:Ii.FLOW,pointsList:a["di:waypoint"].map(function(v){return{x:Number(v["-x"]),y:Number(v["-y"])}}),sourceNodeId:c["-sourceRef"],targetNodeId:c["-targetRef"],properties:y};return i&&(b.text=i),b}var Ha=function(){function a(c){var i=this,f=c.lf;this.adapterOut=function(o,h){var y=ig({},i.processAttributes);VM(y,o,h);var b={"-id":"BPMNPlane_1","-bpmnElement":y["-id"]};WM(b,o);var v=i.definitionAttributes;v["bpmn:process"]=y,v["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":b};var E={"bpmn:definitions":v};return E},this.adapterIn=function(o){if(o)return KM(o)},f.adapterIn=function(o){return i.adapterIn(o)},f.adapterOut=function(o,h){return i.adapterOut(o,h)},this.processAttributes={"-isExecutable":"true","-id":"Process_"+r_()},this.definitionAttributes={"-id":"Definitions_"+r_(),"-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.0"}}return a.prototype.setCustomShape=function(c,i){a.shapeConfigMap.set(c,i)},a.pluginName="bpmn-adapter",a.shapeConfigMap=new Map,a}();Ha.shapeConfigMap.set(Ii.START,{width:$0.width,height:$0.height}),Ha.shapeConfigMap.set(Ii.END,{width:Q0.width,height:Q0.height}),Ha.shapeConfigMap.set(Ii.GATEWAY,{width:J0.width,height:J0.height}),Ha.shapeConfigMap.set(Ii.SYSTEM,{width:t_.width,height:t_.height}),Ha.shapeConfigMap.set(Ii.USER,{width:e_.width,height:e_.height}),function(a){HM(c,a);function c(i){var f=a.call(this,i)||this;f.adapterXmlIn=function(h){var y=YM(h);return f.adapterIn(y)},f.adapterXmlOut=function(h,y){var b=f.adapterOut(h,y);return XM(b)};var o=i.lf;return o.adapterIn=f.adapterXmlIn,o.adapterOut=f.adapterXmlOut,f}return c.pluginName="bpmnXmlAdapter",c}(Ha);var $M=function(){function a(){globalThis._ids=this,this._ids=new Set}return a.prototype.generateId=function(){var c="xxxxxxx".replace(/[x]/g,function(i){var f=Math.random()*16|0,o=i==="x"?f:f&3|8;return o.toString(16)});return c},a.prototype.next=function(){for(var c=this.generateId();this._ids.has(c);)c=this.generateId();return this._ids.add(c),c},a}(),QM=(globalThis==null?void 0:globalThis._ids)||new $M;function JM(){return QM.next()}globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var s_=globalThis&&globalThis.__assign||function(){return s_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},s_.apply(this,arguments)},OL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var l_=globalThis&&globalThis.__assign||function(){return l_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},l_.apply(this,arguments)},wL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var f_=globalThis&&globalThis.__assign||function(){return f_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},f_.apply(this,arguments)},xL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var p_=globalThis&&globalThis.__assign||function(){return p_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},p_.apply(this,arguments)},EL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var h_=globalThis&&globalThis.__assign||function(){return h_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},h_.apply(this,arguments)},jL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,ie.h("circle",{cx:18,cy:18,r:11,style:"stroke-linecap: round;stroke-linejoin: round;stroke: rgb(34, 36, 42);stroke-width: 2px;fill: white"}),ie.h("path",{d:"M 18,18 l 2.25,-7.5 m -2.25,7.5 l 5.25,1.5",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(0,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(30,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(60,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(90,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(120,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(150,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(180,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(210,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(240,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(270,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(300,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(330,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ie.h("circle",{cx:18,cy:18,r:10,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 4px; fill: rgb(34, 36, 42);"}),ie.h("circle",{cx:25,cy:25,r:13,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2.5px; fill: white;"}),globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var d_=globalThis&&globalThis.__assign||function(){return d_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},d_.apply(this,arguments)};globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var y_=globalThis&&globalThis.__assign||function(){return y_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},y_.apply(this,arguments)},SL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;var Al=globalThis&&globalThis.__assign||function(){return Al=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Al.apply(this,arguments)};function ag(a){var c=a.x,i=a.y,f=a.width,o=a.height,h=a.radius,y=a.className,b=c-f/2,v=i-o/2,E=Al(Al({width:10,height:10,cx:0,cy:0,rx:h||0,ry:h||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape "+y},a),{x:b,y:v});return ie.h("rect",Al({},E))}ag.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var Kc;(function(a){a.NODE="node",a.CIRCLE_NODE="circle-node",a.POLYGON_NODE="polygon-node",a.RECT_NODE="rect-node",a.HTML_NODE="html-node",a.TEXT_NODE="text-node",a.ELLIPSE_NODE="ellipse-node",a.DIAMOND_NODE="diamond-node",a.EDGE="edge",a.LINE_EDGE="line-edge",a.POLYLINE_EDGE="polyline-edge",a.BEZIER_EDGE="bezier-edge",a.GRAPH="graph"})(Kc||(Kc={}));var tD=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Tu=globalThis&&globalThis.__assign||function(){return Tu=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Tu.apply(this,arguments)},eD=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},rD=ie.LogicFlowUtil.StepDrag,nD=function(a){tD(c,a);function c(i){var f=a.call(this)||this;return f.updatePosition=function(o){var h=o.deltaX,y=o.deltaY,b=f.nodeModel,v=b.x,E=b.y;f.nodeModel.x=v+h/2,f.nodeModel.y=E+y/2,f.nodeModel.moveText(h/2,y/2)},f.getResize=function(o){var h=o.index,y=o.deltaX,b=o.deltaY,v=o.width,E=o.height,S=o.PCTResizeInfo,k=o.pct,T=k===void 0?1:k,M=o.freezeWidth,I=M===void 0?!1:M,C=o.freezeHeight,z=C===void 0?!1:C,W={width:v,height:E,deltaX:y,deltaY:b};if(S){var K=4,et=0,at=0;switch(h){case 0:at=(y*-1-b)/K;break;case 1:at=(y-b)/K;break;case 2:at=(y+b)/K;break;case 3:at=(y*-1+b)/K;break}at!==0&&(et=Math.round(at/S.ResizeBasis.basisHeight*1e5)/1e3),S.ResizePCT.widthPCT=Math.max(Math.min(S.ResizePCT.widthPCT+et,S.ScaleLimit.maxScaleLimit),S.ScaleLimit.minScaleLimit),S.ResizePCT.hightPCT=Math.max(Math.min(S.ResizePCT.hightPCT+et,S.ScaleLimit.maxScaleLimit),S.ScaleLimit.minScaleLimit);var ot=Math.round(S.ResizePCT.widthPCT*S.ResizeBasis.basisWidth/100),tt=Math.round(S.ResizePCT.hightPCT*S.ResizeBasis.basisHeight/100);switch(h){case 0:y=v-ot,b=E-tt;break;case 1:y=ot-v,b=E-tt;break;case 2:y=ot-v,b=tt-E;break;case 3:y=v-ot,b=tt-E;break}return W.width=ot,W.height=tt,W.deltaX=y/T,W.deltaY=b/T,W}switch(h){case 0:W.width=I?v:v-y*T,W.height=z?E:E-b*T;break;case 1:W.width=I?v:v+y*T,W.height=z?E:E-b*T;break;case 2:W.width=I?v:v+y*T,W.height=z?E:E+b*T;break;case 3:W.width=I?v:v-y*T,W.height=z?E:E+b*T;break}return W},f.updateEdgePointByAnchors=function(){var o=f.nodeModel,h=o.id,y=o.anchors,b=f.getNodeEdges(h);b.sourceEdges.forEach(function(v){var E=y.find(function(S){return S.id===v.sourceAnchorId});v.updateStartPoint({x:E.x,y:E.y})}),b.targetEdges.forEach(function(v){var E=y.find(function(S){return S.id===v.targetAnchorId});v.updateEndPoint({x:E.x,y:E.y})})},f.updateRect=function(o){var h=o.deltaX,y=o.deltaY,b=f.nodeModel,v=b.id,E=b.x,S=b.y,k=b.width,T=b.height,M=b.radius,I=b.PCTResizeInfo,C=f.nodeModel,z=C.minWidth,W=C.minHeight,K=C.maxWidth,et=C.maxHeight,at=f.index,ot=z===K,tt=W===et,$=f.getResize({index:at,deltaX:h,deltaY:y,width:k,height:T,PCTResizeInfo:I,pct:1,freezeWidth:ot,freezeHeight:tt});if($.width<z||$.width>K||$.height<W||$.height>et){f.dragHandler.cancelDrag();return}f.updatePosition({deltaX:ot?0:$.deltaX,deltaY:tt?0:$.deltaY}),f.nodeModel.width=$.width,f.nodeModel.height=$.height,f.nodeModel.setProperties({nodeSize:{width:$.width,height:$.height}}),f.getNodeEdges(v);var X={x:E,y:S,width:k,height:T,radius:M},U={x:f.nodeModel.x,y:f.nodeModel.y,width:f.nodeModel.width,height:f.nodeModel.height,radius:M};f.updateEdgePointByAnchors(),f.eventEmit({beforeNode:X,afterNode:U})},f.updateEllipse=function(o){var h=o.deltaX,y=o.deltaY,b=f.nodeModel,v=b.id,E=b.rx,S=b.ry,k=b.x,T=b.y,M=b.PCTResizeInfo,I=f.index,C=f.nodeModel,z=C.minWidth,W=C.minHeight,K=C.maxWidth,et=C.maxHeight,at=z===K,ot=W===et,tt=E,$=S,X=f.getResize({index:I,deltaX:h,deltaY:y,width:tt,height:$,PCTResizeInfo:M,pct:1/2,freezeWidth:at,freezeHeight:ot});if(X.width<z/2||X.width>K/2||X.height<W/2||X.height>et/2){f.dragHandler.cancelDrag();return}f.updatePosition({deltaX:at?0:X.deltaX,deltaY:ot?0:X.deltaY}),f.nodeModel.rx=X.width,f.nodeModel.ry=X.height,f.nodeModel.setProperties({nodeSize:{rx:X.width,ry:X.height}}),f.getNodeEdges(v);var U={x:k,y:T},H={rx:X.width,ry:X.height,x:f.nodeModel.x,y:f.nodeModel.y};f.updateEdgePointByAnchors(),f.eventEmit({beforeNode:Tu(Tu({},U),{rx:E,ry:S}),afterNode:H})},f.updateDiamond=function(o){var h=o.deltaX,y=o.deltaY,b=f.nodeModel;b.id;var v=b.rx,E=b.ry,S=b.x,k=b.y,T=b.PCTResizeInfo,M=f.index,I=f.nodeModel,C=I.minWidth,z=I.minHeight,W=I.maxWidth,K=I.maxHeight,et=C===W,at=z===K,ot=v,tt=E,$=f.getResize({index:M,deltaX:h,deltaY:y,width:ot,height:tt,PCTResizeInfo:T,pct:1/2,freezeWidth:et,freezeHeight:at});if($.width<C/2||$.width>W/2||$.height<z/2||$.height>K/2){f.dragHandler.cancelDrag();return}f.updatePosition({deltaX:et?0:$.deltaX,deltaY:at?0:$.deltaY}),f.nodeModel.rx=$.width,f.nodeModel.ry=$.height,f.nodeModel.setProperties({nodeSize:{rx:$.width,ry:$.height}});var X={x:S,y:k,rx:v,ry:E},U={rx:$.width,ry:$.height,x:f.nodeModel.x,y:f.nodeModel.y};f.updateEdgePointByAnchors(),f.eventEmit({beforeNode:X,afterNode:U})},f.eventEmit=function(o){var h=o.beforeNode,y=o.afterNode,b=f.nodeModel,v=b.id,E=b.modelType,S=b.type,k=Tu({id:v,modelType:E,type:S},h),T=Tu({id:v,modelType:E,type:S},y);f.graphModel.eventCenter.emit("node:resize",{oldNodeSize:k,newNodeSize:T})},f.onDragging=function(o){var h,y=o.deltaX,b=o.deltaY,v=f.graphModel.transformModel,E=f.nodeModel.modelType;h=eD(v.fixDeltaXY(y,b),2),y=h[0],b=h[1],E===Kc.RECT_NODE||E===Kc.HTML_NODE?f.updateRect({deltaX:y,deltaY:b}):E===Kc.ELLIPSE_NODE?f.updateEllipse({deltaX:y,deltaY:b}):E===Kc.DIAMOND_NODE&&f.updateDiamond({deltaX:y,deltaY:b})},f.onDragEnd=function(){var o=f.graphModel.gridSize,h=o===void 0?1:o,y=h*Math.round(f.nodeModel.x/h),b=h*Math.round(f.nodeModel.y/h);f.nodeModel.moveTo(y,b),f.updateEdgePointByAnchors()},f.index=i.index,f.nodeModel=i.model,f.graphModel=i.graphModel,f.state={},f.dragHandler=new rD({onDragging:f.onDragging,onDragEnd:f.onDragEnd,step:1}),f}return c.prototype.getNodeEdges=function(i){for(var f=this.graphModel,o=f.edges,h=[],y=[],b=0;b<o.length;b++){var v=o[b];v.sourceNodeId===i?h.push(v):o[b].targetNodeId===i&&y.push(v)}return{sourceEdges:h,targetEdges:y}},c.prototype.render=function(){var i=this.props,f=i.x,o=i.y,h=i.index,y=i.model,b=y.getControlPointStyle();return Ap("g",{className:"lf-resize-control-"+h},Ap(ag,Tu({className:"lf-node-control"},{x:f,y:o},b,{onMouseDown:this.dragHandler.handleMouseDown})))},c}(cx),oD=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),Kp=globalThis&&globalThis.__assign||function(){return Kp=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Kp.apply(this,arguments)},Zp=function(a){oD(c,a);function c(){var i=a.call(this)||this;return i.state={},i}return c.prototype.getResizeControl=function(){var i=this.props,f=i.model,o=i.graphModel,h=f.x,y=f.y,b=f.width,v=f.height,E={minX:h-b/2,minY:y-v/2,maxX:h+b/2,maxY:y+v/2},S=E.minX,k=E.minY,T=E.maxX,M=E.maxY,I=[{x:S,y:k},{x:T,y:k},{x:T,y:M},{x:S,y:M}];return I.map(function(C,z){return Ap(nD,Kp({index:z},C,{model:f,graphModel:o}))})},c.prototype.getGroupSolid=function(){var i=this.props.model,f=i.x,o=i.y,h=i.width,y=i.height,b=i.getResizeOutlineStyle();return Ap(ag,Kp({fill:"none"},b,{x:f,y:o,width:h,height:y}))},c.prototype.render=function(){return Ap("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},c}(cx),g_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),iD=function(a){g_(c,a);function c(i,f){var o=a.call(this,i,f)||this,h=o.properties.nodeSize;return h&&(o.width=h.width,o.height=h.height),o}return c.prototype.initNodeData=function(i){a.prototype.initNodeData.call(this,i),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},c.prototype.getOutlineStyle=function(){var i=a.prototype.getOutlineStyle.call(this),f=this.graphModel.editConfigModel.isSilentMode;return f||(i.stroke="none",i.hover&&(i.hover.stroke="none")),i},c.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},c.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},c.prototype.resize=function(i,f){},c.prototype.enableProportionResize=function(i){if(i===void 0&&(i=!0),i){var f={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},h={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:f,ResizeBasis:o,ScaleLimit:h}}else delete this.PCTResizeInfo},c}(ie.RectNodeModel),aD=function(a){g_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props,f=i.model,o=i.graphModel;return ie.h(Zp,{model:f,graphModel:o})},c.prototype.getResizeShape=function(){return a.prototype.getShape.call(this)},c.prototype.getShape=function(){var i=this.props,f=i.model.isSelected,o=i.graphModel.editConfigModel.isSilentMode;return ie.h("g",null,this.getResizeShape(),f&&!o?this.getControlGroup():"")},c}(ie.RectNode),v_={type:"rect",view:aD,model:iD},m_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();(function(a){m_(c,a);function c(i,f){var o=a.call(this,i,f)||this,h=o.properties.nodeSize;return h&&(o.rx=h.rx,o.ry=h.ry),o}return c.prototype.initNodeData=function(i){a.prototype.initNodeData.call(this,i),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},c.prototype.getOutlineStyle=function(){var i=a.prototype.getOutlineStyle.call(this),f=this.graphModel.editConfigModel.isSilentMode;return f||(i.stroke="none",i.hover&&(i.hover.stroke="none")),i},c.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},c.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},c.prototype.enableProportionResize=function(i){if(i===void 0&&(i=!0),i){var f={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},h={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:f,ResizeBasis:o,ScaleLimit:h}}else delete this.PCTResizeInfo},c})(ie.EllipseNodeModel),function(a){m_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props,f=i.model,o=i.graphModel;return ie.h(Zp,{model:f,graphModel:o})},c.prototype.getResizeShape=function(){return a.prototype.getShape.call(this)},c.prototype.getShape=function(){var i=this.props,f=i.model,o=i.graphModel.editConfigModel.isSilentMode;return ie.h("g",null,this.getResizeShape(),f.isSelected&&!o?this.getControlGroup():"")},c}(ie.EllipseNode);var ug=globalThis&&globalThis.__assign||function(){return ug=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},ug.apply(this,arguments)};function uD(a){var c=a.fillOpacity,i=c===void 0?1:c,f=a.strokeWidth,o=f===void 0?1:f,h=a.strokeOpacity,y=h===void 0?1:h,b=a.fill,v=b===void 0?"transparent":b,E=a.stroke,S=E===void 0?"#000":E,k=a.points,T=a.className,M=T===void 0?"lf-basic-shape":T,I={fill:v,fillOpacity:i,strokeWidth:o,stroke:S,strokeOpacity:y,points:"",className:M};return I.points=k.map(function(C){return C.join(",")}).join(" "),ie.h("polygon",ug({},I))}var b_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),cg=globalThis&&globalThis.__assign||function(){return cg=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},cg.apply(this,arguments)};(function(a){b_(c,a);function c(i,f){var o=a.call(this,i,f)||this,h=o.properties.nodeSize;return h&&(o.rx=h.rx,o.ry=h.ry),o}return c.prototype.initNodeData=function(i){a.prototype.initNodeData.call(this,i),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},c.prototype.getOutlineStyle=function(){var i=a.prototype.getOutlineStyle.call(this),f=this.graphModel.editConfigModel.isSilentMode;return f||(i.stroke="none",i.hover&&(i.hover.stroke="none")),i},c.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},c.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},c.prototype.enableProportionResize=function(i){if(i===void 0&&(i=!0),i){var f={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},h={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:f,ResizeBasis:o,ScaleLimit:h}}else delete this.PCTResizeInfo},c})(ie.DiamondNodeModel),function(a){b_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props,f=i.model,o=i.graphModel;return ie.h(Zp,{model:f,graphModel:o})},c.prototype.getResizeShape=function(){var i=this.props.model,f=i.points,o=i.getNodeStyle();return ie.h("g",null,ie.h(uD,cg({},o,{points:f})))},c.prototype.getShape=function(){var i=this.props,f=i.model.isSelected,o=i.graphModel.editConfigModel.isSilentMode;return ie.h("g",null,this.getResizeShape(),f&&!o?this.getControlGroup():"")},c}(ie.DiamondNode);var __=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();(function(a){__(c,a);function c(i,f){var o=a.call(this,i,f)||this,h=o.properties.nodeSize;return h&&(o.width=h.width,o.height=h.height),o}return c.prototype.initNodeData=function(i){a.prototype.initNodeData.call(this,i),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},c.prototype.getOutlineStyle=function(){var i=a.prototype.getOutlineStyle.call(this),f=this.graphModel.editConfigModel.isSilentMode;return f||(i.stroke="none",i.hover&&(i.hover.stroke="none")),i},c.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},c.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},c.prototype.enableProportionResize=function(i){if(i===void 0&&(i=!0),i){var f={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},h={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:f,ResizeBasis:o,ScaleLimit:h}}else delete this.PCTResizeInfo},c})(ie.HtmlNodeModel),function(a){__(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props,f=i.model,o=i.graphModel;return ie.h(Zp,{model:f,graphModel:o})},c.prototype.getResizeShape=function(){return a.prototype.getShape.call(this)},c.prototype.getShape=function(){var i=this.props,f=i.model.isSelected,o=i.graphModel.editConfigModel.isSilentMode;return ie.h("g",null,this.getResizeShape(),f&&!o?this.getControlGroup():"")},c}(ie.HtmlNode);var O_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),qp=globalThis&&globalThis.__assign||function(){return qp=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},qp.apply(this,arguments)},cD=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},sD=globalThis&&globalThis.__spread||function(){for(var a=[],c=0;c<arguments.length;c++)a=a.concat(cD(arguments[c]));return a},w_=500,x_=300,lD=-1e4;(function(a){O_(c,a);function c(){var i=a!==null&&a.apply(this,arguments)||this;return i.isGroup=!0,i.unfoldedWidth=w_,i.unfoldedHight=x_,i.childrenLastFoldStatus={},i}return c.prototype.initNodeData=function(i){var f=this;a.prototype.initNodeData.call(this,i);var o=[];Array.isArray(i.children)&&(o=i.children),this.children=new Set(o),this.width=w_,this.height=x_,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=lD,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!1,this.properties.isFolded===void 0&&(this.properties.isFolded=!1),this.isFolded=this.properties.isFolded,setTimeout(function(){f.isFolded&&f.foldGroup(f.isFolded)})},c.prototype.getResizeOutlineStyle=function(){var i=a.prototype.getResizeOutlineStyle.call(this);return i.stroke="none",i},c.prototype.foldGroup=function(i){var f=this;if(i!==this.isFolded){this.setProperty("isFolded",i),this.isFolded=i,i?(this.x=this.x-this.width/2+this.foldedWidth/2,this.y=this.y-this.height/2+this.foldedHeight/2,this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.width=this.foldedWidth,this.height=this.foldedHeight):(this.width=this.unfoldedWidth,this.height=this.unfoldedHight,this.x=this.x+this.width/2-this.foldedWidth/2,this.y=this.y+this.height/2-this.foldedHeight/2);var o=this.incoming.edges.concat(this.outgoing.edges);this.children.forEach(function(h){var y=f.graphModel.getElement(h),b=y.isFolded;if(y.isGroup&&!y.isFolded&&y.foldGroup(i),y.isGroup&&!i){var v=f.childrenLastFoldStatus[h];v!==void 0&&v!==y.isFolded&&y.foldGroup(v)}f.childrenLastFoldStatus[h]=b,y.visible=!i,o=o.concat(y.incoming.edges.concat(y.outgoing.edges))}),this.foldEdge(i,o)}},c.prototype.getAnchorStyle=function(i){var f=a.prototype.getAnchorStyle.call(this,i);return f.stroke="transparent",f.fill="transparent",f.hover.fill="transparent",f.hover.stroke="transparent",f},c.prototype.foldEdge=function(i,f){var o=this;f.forEach(function(h,y){var b=h.id,v=h.sourceNodeId,E=h.targetNodeId,S=h.startPoint,k=h.endPoint,T=h.type,M=h.text,I=h.getProperties(),C={id:b+"__"+y,sourceNodeId:v,targetNodeId:E,startPoint:S,endPoint:k,type:T,properties:I,text:M==null?void 0:M.value};h.virtual&&o.graphModel.deleteEdgeById(h.id);var z=o.graphModel.group.getNodeGroup(E);z||(z=o.graphModel.getNodeModelById(E));var W=o.graphModel.group.getNodeGroup(v);W||(W=o.graphModel.getNodeModelById(v)),i&&h.visible!==!1&&(o.children.has(v)||o.id===v?(C.startPoint=void 0,C.sourceNodeId=o.id):(C.endPoint=void 0,C.targetNodeId=o.id),(z.id!==o.id||W.id!==o.id)&&o.createVirtualEdge(C),h.visible=!1),!i&&h.visible===!1&&(z&&z.isGroup&&z.isFolded?(C.targetNodeId=z.id,C.endPoint=void 0,o.createVirtualEdge(C)):W&&W.isGroup&&W.isFolded?(C.sourceNodeId=W.id,C.startPoint=void 0,o.createVirtualEdge(C)):h.visible=!0)})},c.prototype.createVirtualEdge=function(i){i.pointsList=void 0;var f=this.graphModel.addEdge(i);f.virtual=!0,f.text.editable=!1,f.isFoldedEdge=!0},c.prototype.isInRange=function(i){var f=i.x1,o=i.y1,h=i.x2,y=i.y2;return f>=this.x-this.width/2&&h<=this.x+this.width/2&&o>=this.y-this.height/2&&y<=this.y+this.height/2},c.prototype.isAllowMoveTo=function(i){var f=i.x1,o=i.y1,h=i.x2,y=i.y2;return{x:f>=this.x-this.width/2&&h<=this.x+this.width/2,y:o>=this.y-this.height/2&&y<=this.y+this.height/2}},c.prototype.setAllowAppendChild=function(i){this.setProperty("groupAddable",i)},c.prototype.addChild=function(i){this.children.add(i),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})},c.prototype.removeChild=function(i){this.children.delete(i),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})},c.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},c.prototype.getData=function(){var i=this,f=a.prototype.getData.call(this);f.children=[],this.children.forEach(function(h){var y=i.graphModel.getNodeModelById(h);y&&!y.virtual&&f.children.push(h)});var o=f.properties;return delete o.groupAddable,delete o.isFolded,f},c.prototype.getHistoryData=function(){var i=a.prototype.getData.call(this);i.children=sD(this.children),i.isGroup=!0;var f=i.properties;return delete f.groupAddable,f.isFolded&&(i.x=i.x+this.unfoldedWidth/2-this.foldedWidth/2,i.y=i.y+this.unfoldedHight/2-this.foldedHeight/2),i},c.prototype.isAllowAppendIn=function(i){return!0},c.prototype.toBack=function(){this.zIndex--},c})(v_.model),function(a){O_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getControlGroup=function(){var i=this.props.model,f=i.resizable,o=i.properties;return f&&!o.isFolded?a.prototype.getControlGroup.call(this):null},c.prototype.getAddableShape=function(){var i=this.props.model,f=i.width,o=i.height,h=i.x,y=i.y,b=i.radius,v=i.properties;if(!v.groupAddable)return null;var E=this.props.model.getNodeStyle().strokeWidth,S=this.props.model.getAddableOutlineStyle(),k=f+E+8,T=o+E+8;return ie.h("rect",qp(qp({},S),{width:k,height:T,x:h-k/2,y:y-T/2,rx:b,ry:b}))},c.prototype.getFoldIcon=function(){var i=this.props.model,f=i.x-i.width/2+5,o=i.y-i.height/2+5;if(!i.foldable)return null;var h=ie.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:i.properties.isFolded?"M "+(f+3)+","+(o+6)+" "+(f+11)+","+(o+6)+" M"+(f+7)+","+(o+2)+" "+(f+7)+","+(o+10):"M "+(f+3)+","+(o+6)+" "+(f+11)+","+(o+6)+" "});return ie.h("g",{},[ie.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:i.x-i.width/2+5,y:i.y-i.height/2+5,onClick:function(){i.foldGroup(!i.properties.isFolded)}}),h])},c.prototype.getResizeShape=function(){return ie.h("g",{},[this.getAddableShape(),a.prototype.getResizeShape.call(this),this.getFoldIcon()])},c}(v_.view);var E_=globalThis&&globalThis.__assign||function(){return E_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},E_.apply(this,arguments)};globalThis&&globalThis.__rest;var PL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread,globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();var j_=globalThis&&globalThis.__assign||function(){return j_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},j_.apply(this,arguments)};globalThis&&globalThis.__values;var S_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),kl=globalThis&&globalThis.__assign||function(){return kl=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},kl.apply(this,arguments)};function fD(a){var c=function(f){S_(o,f);function o(h,y){var b=this;h.id||(h.id="Flow_"+JM());var v=kl(kl(kl({},a||{}),h.properties),{isDefaultFlow:!1});return h.properties=v,b=f.call(this,h,y)||this,b}return o.extendKey="SequenceFlowModel",o}(ie.PolylineEdgeModel),i=function(f){S_(o,f);function o(){return f!==null&&f.apply(this,arguments)||this}return o.prototype.getStartArrow=function(){var h=this.props.model,y=h.properties.isDefaultFlow;return y?ie.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):ie.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(ie.PolylineEdge);return{type:"bpmn:sequenceFlow",view:i,model:c}}fD(),globalThis&&globalThis.__read;var P_={width:40,height:40},A_={width:40,height:40},k_={width:100,height:80},$p={width:100,height:80},T_={width:100,height:80},M_={width:100,height:80},D_={width:100,height:80},N_={width:100,height:80},C_={width:100,height:80},R_={width:100,height:80},Jn=function(){};Jn.ObjTree=function(){return this},Jn.ObjTree.VERSION="0.23",Jn.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  104. `,Jn.ObjTree.prototype.attr_prefix="-",Jn.ObjTree.prototype.parseXML=function(a){var c;if(window.DOMParser){var i=new DOMParser,f=i.parseFromString(a,"application/xml");if(!f)return;c=f.documentElement}else window.ActiveXObject&&(i=new ActiveXObject("Microsoft.XMLDOM"),i.async=!1,i.loadXML(a),c=i.documentElement);if(c){var o=this.parseDOM(c);return o}},Jn.ObjTree.prototype.parseHTTP=function(a,c,i){var f={};for(var o in c)f[o]=c[o];if(f.method||(typeof f.postBody>"u"&&typeof f.postbody>"u"&&typeof f.parameters>"u"?f.method="get":f.method="post"),i){f.asynchronous=!0;var h=this,y=i,b=f.onComplete;f.onComplete=function(S){var k;S&&S.responseXML&&S.responseXML.documentElement&&(k=h.parseDOM(S.responseXML.documentElement)),y(k,S),b&&b(S)}}else f.asynchronous=!1;var v;if(typeof HTTP<"u"&&HTTP.Request){f.uri=a;var E=new HTTP.Request(f);E&&(v=E.transport)}else if(typeof Ajax<"u"&&Ajax.Request){var E=new Ajax.Request(a,f);E&&(v=E.transport)}if(i)return v;if(v&&v.responseXML&&v.responseXML.documentElement)return this.parseDOM(v.responseXML.documentElement)},Jn.ObjTree.prototype.parseDOM=function(a){if(a){if(this.__force_array={},this.force_array)for(var c=0;c<this.force_array.length;c++)this.__force_array[this.force_array[c]]=1;var i=this.parseElement(a);if(this.__force_array[a.nodeName]&&(i=[i]),a.nodeType!==11){var f={};f[a.nodeName]=i,i=f}return i}},Jn.ObjTree.prototype.parseElement=function(a){if(a.nodeType!==7){if(a.nodeType===3||a.nodeType===4||a.nodeType===8){var c=a.nodeValue.match(/[^\x00-\x20]/);return c==null?void 0:a.nodeValue}var i=null,f={};if(a.attributes&&a.attributes.length){i={};for(var o=0;o<a.attributes.length;o++){var h=a.attributes[o].nodeName;if(typeof h=="string"){var y=a.attributes[o].nodeValue;try{y=JSON.parse(a.attributes[o].nodeValue.replace(/'/g,'"'))}catch(E){y=a.attributes[o].nodeValue}y!=null&&(h=this.attr_prefix+h,typeof f[h]>"u"&&(f[h]=0),f[h]++,this.addNode(i,h,f[h],y))}}}if(a.childNodes&&a.childNodes.length){var b=!0;i&&(b=!1);for(var o=0;o<a.childNodes.length&&b;o++){var v=a.childNodes[o].nodeType;v===3||v===4||v===8||(b=!1)}if(b){i||(i="");for(var o=0;o<a.childNodes.length;o++)i+=a.childNodes[o].nodeValue}else{i||(i={});for(var o=0;o<a.childNodes.length;o++){var h=a.childNodes[o].nodeName;if(typeof h=="string"){var y=this.parseElement(a.childNodes[o]);y&&(typeof f[h]>"u"&&(f[h]=0),f[h]++,this.addNode(i,h,f[h],y))}}}}else i===null&&(i={});return i}},Jn.ObjTree.prototype.addNode=function(a,c,i,f){this.__force_array[c]?(i===1&&(a[c]=[]),a[c][a[c].length]=f):i===1?a[c]=f:i===2?a[c]=[a[c],f]:a[c][a[c].length]=f},Jn.ObjTree.prototype.writeXML=function(a){var c=this.hash_to_xml(null,a);return this.xmlDecl+c},Jn.ObjTree.prototype.hash_to_xml=function(a,c){var i=[],f=[];for(var o in c)if(c!=null&&c.hasOwnProperty(o)){var h=c[o];o.charAt(0)!==this.attr_prefix?typeof h>"u"||h==null?i[i.length]="<"+o+" />":typeof h=="object"&&h.constructor===Array?i[i.length]=this.array_to_xml(o,h):typeof h=="object"?i[i.length]=this.hash_to_xml(o,h):i[i.length]=this.scalar_to_xml(o,h):f[f.length]=" "+o.substring(1)+'="'+this.xml_escape(h)+'"'}var y=f.join(""),b=i.join("");return typeof a>"u"||a==null||(i.length>0?b.match(/\n/)?b="<"+a+y+`>
  105. `+b+"</"+a+`>
  106. `:b="<"+a+y+">"+b+"</"+a+`>
  107. `:b="<"+a+y+` />
  108. `),b},Jn.ObjTree.prototype.array_to_xml=function(a,c){for(var i=[],f=0;f<c.length;f++){var o=c[f];typeof o>"u"||o==null?i[i.length]="<"+a+" />":typeof o=="object"&&o.constructor===Array?i[i.length]=this.array_to_xml(a,o):typeof o=="object"?i[i.length]=this.hash_to_xml(a,o):i[i.length]=this.scalar_to_xml(a,o)}return i.join("")},Jn.ObjTree.prototype.scalar_to_xml=function(a,c){return a==="#text"?this.xml_escape(c):"<"+a+">"+this.xml_escape(c)+"</"+a+`>
  109. `},Jn.ObjTree.prototype.xml_escape=function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var pD=function(a){return new Jn.ObjTree().parseXML(a)};function I_(a){return Object.prototype.toString.call(a)}function L_(a){return" ".repeat(a)}function Qp(a){return I_(a)==="[object Object]"?Object.keys(a).reduce(function(c,i){var f=i;return i.charAt(0)==="-"&&(f=i.substring(1)),c[f]=Qp(a[i]),c},{}):Array.isArray(a)?a.map(function(c){return Qp(c)}):a}function hD(a){var c=a;try{typeof c!="string"&&(c=JSON.parse(a))}catch(i){c=JSON.stringify(Qp(a)).replace(/"/g,"'")}return c}var z_=`
  110. `;function Jp(a,c,i){var f=L_(i),o="",h=z_+f;if(c==="-json")return"";if(c==="#text")return h+a;if(c==="#cdata-section")return h+"<![CDATA["+a+"]]>";if(c==="#comment")return h+"<!--"+a+"-->";if((""+c).charAt(0)==="-")return" "+c.substring(1)+'="'+hD(a)+'"';if(Array.isArray(a))o+=a.map(function(E){return Jp(E,c,i+1)}).join("");else if(I_(a)==="[object Object]"){var y=Object.keys(a),b="",v=a["-json"]?z_+L_(i+1)+a["-json"]:"";o+=(i===0?"":h)+"<"+c,y.forEach(function(E){E.charAt(0)==="-"?b+=Jp(a[E],E,i+1):v+=Jp(a[E],E,i+1)}),o+=b+(v!==""?">"+v+h+"</"+c+">":" />")}else o+=h+"<"+c+">"+a.toString()+"</"+c+">";return o}function dD(a){var c="";for(var i in a)c+=Jp(a[i],i,0);return c}var yD=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),sg=globalThis&&globalThis.__assign||function(){return sg=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},sg.apply(this,arguments)},B_=globalThis&&globalThis.__rest||function(a,c){var i={};for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&c.indexOf(f)<0&&(i[f]=a[f]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,f=Object.getOwnPropertySymbols(a);o<f.length;o++)c.indexOf(f[o])<0&&Object.prototype.propertyIsEnumerable.call(a,f[o])&&(i[f[o]]=a[f[o]]);return i},lg=globalThis&&globalThis.__values||function(a){var c=typeof Symbol=="function"&&Symbol.iterator,i=c&&a[c],f=0;if(i)return i.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&f>=a.length&&(a=void 0),{value:a&&a[f++],done:!a}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},Zc=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},qc=globalThis&&globalThis.__spread||function(){for(var a=[],c=0;c<arguments.length;c++)a=a.concat(Zc(arguments[c]));return a},to;(function(a){a.START="bpmn:startEvent",a.END="bpmn:endEvent",a.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",a.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",a.BOUNDARY="bpmn:boundaryEvent",a.PARALLEL_GATEWAY="bpmn:parallelGateway",a.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",a.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",a.USER="bpmn:userTask",a.SYSTEM="bpmn:serviceTask",a.FLOW="bpmn:sequenceFlow",a.SUBPROCESS="bpmn:subProcess"})(to||(to={}));var F_=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],gD=["properties","startPoint","endPoint","pointsList"],th={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},U_=function(a,c){var i=Object.keys(c||{});return i.forEach(function(f){if(a[f]){var o=c[f],h=o.in,y=o.out;h&&(a[f].in=h),y&&(a[f].out=y)}else a[f]=c[f]}),a},Fo={"bpmn:startEvent":{out:function(a){var c,i,f=a.properties;return((i=(c=Fo[f.definitionType])===null||c===void 0?void 0:c.out)===null||i===void 0?void 0:i.call(c,a))||{}}},"bpmn:intermediateCatchEvent":{out:function(a){var c,i,f=a.properties;return((i=(c=Fo[f.definitionType])===null||c===void 0?void 0:c.out)===null||i===void 0?void 0:i.call(c,a))||{}}},"bpmn:intermediateThrowEvent":{out:function(a){var c,i,f=a.properties;return((i=(c=Fo[f.definitionType])===null||c===void 0?void 0:c.out)===null||i===void 0?void 0:i.call(c,a))||{}}},"bpmn:boundaryEvent":{out:function(a){var c,i,f=a.properties;return((i=(c=Fo[f.definitionType])===null||c===void 0?void 0:c.out)===null||i===void 0?void 0:i.call(c,a))||{}}},"bpmn:sequenceFlow":{out:function(a){var c=a.properties,i=c.expressionType,f=c.condition;return f?i==="cdata"?{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${'+f+"}]]></bpmn:conditionExpression>"}:{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression">'+f+"</bpmn:conditionExpression>"}:{json:""}}},"bpmn:timerEventDefinition":{out:function(a){var c=a.properties,i=c.timerType,f=c.timerValue,o=c.definitionId,h=function(){return"<bpmn:"+i+' xsi:type="bpmn:tFormalExpression">'+f+"</bpmn:"+i+">"};return{json:'<bpmn:timerEventDefinition id="'+o+'"'+(i&&f?">"+h()+"</bpmn:timerEventDefinition>":"/>")}},in:function(a,c){var i,f,o,h,y=a,b=c["-id"],v="",E="";try{for(var S=lg(Object.keys(c)),k=S.next();!k.done;k=S.next()){var T=k.value;T.includes("bpmn:")&&(o=Zc(T.split(":"),2),v=o[1],E=(h=c[T])===null||h===void 0?void 0:h["#text"])}}catch(M){i={error:M}}finally{try{k&&!k.done&&(f=S.return)&&f.call(S)}finally{if(i)throw i.error}}return{"-definitionId":b,"-definitionType":y,"-timerType":v,"-timerValue":E}}},"bpmn:conditionExpression":{in:function(a,c){var i,f="",o="";return c["#cdata-section"]?(o="cdata",f=((i=/^\$\{(.*)\}$/g.exec(c["#cdata-section"]))===null||i===void 0?void 0:i[1])||""):c["#text"]&&(o="normal",f=c["#text"]),{"-condition":f,"-expressionType":o}}}};function vD(a){var c=a!=null?a:{},i=c.retainedAttrsFields,f=c.excludeFields,o=c.transformer,h=new Set(qc(gD,i||[])),y={in:new Set(qc(th.in,(f==null?void 0:f.in)||[])),out:new Set(qc(th.out,(f==null?void 0:f.out)||[]))};return Fo=U_(Fo,o),function(b){var v=b.nodes,E=b.edges;function S(k,T){var M,I,C;if((k==null?void 0:k.flag)!==1){var z;if((z=Fo[k.type])&&z.out){var W=z.out(k),K=Object.keys(W);K.length>0&&K.forEach(function(H){k[H]=W[H]})}k!=null&&k.children&&(k.children=k.children.map(function(H){var V=v.find(function(q){return q.id===H})||E.find(function(q){return q.id===H});return V||{}}));var et={};if(typeof k=="string")return k;if(Array.isArray(k))return k.map(function(H){return S(H,"")}).filter(function(H){return H!=null});try{for(var at=lg(Object.entries(k)),ot=at.next();!ot.done;ot=at.next()){var tt=Zc(ot.value,2),$=tt[0],X=tt[1];if(((C=X)===null||C===void 0?void 0:C.flag)===1)return;var U=[T,$].filter(function(H){return H}).join(".");y.out.has(U)||(typeof X!="object"?$.indexOf("-")===0||["#text","#cdata-section","#comment"].includes($)?et[$]=X:et["-"+$]=X:h.has(U)?et["-"+$]=S(X,U):et[$]=S(X,U))}}catch(H){M={error:H}}finally{try{ot&&!ot.done&&(I=at.return)&&I.call(at)}finally{if(M)throw M.error}}return et}}return S(b,"")}}function eh(a){var c,i,f={};try{for(var o=lg(Object.entries(a)),h=o.next();!h.done;h=o.next()){var y=Zc(h.value,2),b=y[0],v=y[1];b.indexOf("-")===0?f[b.substring(1)]=Qp(v):typeof v=="string"?f[b]=v:Object.prototype.toString.call(v)==="[object Object]"?f[b]=eh(v):Array.isArray(v)?f[b]=v.map(function(E){return eh(E)}):f[b]=v}}catch(E){c={error:E}}finally{try{h&&!h.done&&(i=o.return)&&i.call(o)}finally{if(c)throw c.error}}return f}function mD(a,c,i){var f,o=new Map,h=vD(i)(c);h.nodes.forEach(function(b){var v=b["-id"],E=b["-type"],S=b.text,k=b.children,T=B_(b,["-id","-type","text","children"]),M={"-id":v};S!=null&&S["-value"]&&(M["-name"]=S["-value"]),T["-json"]&&(M["-json"]=T["-json"]),T["-properties"]&&Object.assign(M,T["-properties"]),k&&(M.children=k),a[E]||(a[E]=[]),a[E].push(M),o.set(v,M)});var y=h.edges.map(function(b){var v=b["-id"];b["-type"];var E=b["-sourceNodeId"],S=b["-targetNodeId"],k=b.text,T=B_(b,["-id","-type","-sourceNodeId","-targetNodeId","text"]),M=o.get(S);M["bpmn:incoming"]||(M["bpmn:incoming"]=[]),M["bpmn:incoming"].push(v);var I={"-id":v,"-sourceRef":E,"-targetRef":S};return k!=null&&k["-value"]&&(I["-name"]=k["-value"]),T["-json"]&&(I["-json"]=T["-json"]),T["-properties"]&&Object.assign(I,T["-properties"]),I});return c.edges.forEach(function(b){var v=b.sourceNodeId,E=b.id,S=o.get(v);S["bpmn:outgoing"]||(S["bpmn:outgoing"]=[]),S["bpmn:outgoing"].push(E)}),(f=a["bpmn:subProcess"])===null||f===void 0||f.forEach(function(b){var v={"bpmn:incoming":new Set,"bpmn:outgoing":new Set},E=[];b.children.forEach(function(C){var z,W=o.get(C["-id"]);["bpmn:incoming","bpmn:outgoing"].forEach(function(et){W[et]&&W[et].forEach(function(at){v[et].add(at)})});var K=(z=a[C["-type"]])===null||z===void 0?void 0:z.findIndex(function(et){return et["-id"]===C["-id"]});K>=0&&a[C["-type"]].splice(K,1),o.delete(C["-id"]),b[C["-type"]]||(b[C["-type"]]=[]),b[C["-type"]].push(W)});var S=v["bpmn:incoming"],k=v["bpmn:outgoing"];k.forEach(function(C){S.has(C)&&E.push(C)});for(var T=function(C){var z=y.findIndex(function(W){return W["-id"]===E[C]});z>=0?(b["bpmn:sequenceFlow"]||(b["bpmn:sequenceFlow"]=[]),b["bpmn:sequenceFlow"].push(y[z]),y.splice(z,1)):C++,M=C},M,I=0;I<E.length;)T(I),I=M;delete b.children}),a[to.FLOW]=y,a}function bD(a,c){a["bpmndi:BPMNEdge"]=c.edges.map(function(i){var f,o=i.id,h=i.pointsList.map(function(b){var v=b.x,E=b.y;return{"-x":v,"-y":E}}),y={"-id":o+"_di","-bpmnElement":o,"di:waypoint":h};return!((f=i.text)===null||f===void 0)&&f.value&&(y["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":i.text.x-i.text.value.length*10/2,"-y":i.text.y-7,"-width":i.text.value.length*10,"-height":14}}),y}),a["bpmndi:BPMNShape"]=c.nodes.map(function(i){var f,o=i.id,h=100,y=80,b=i.x,v=i.y,E=po.shapeConfigMap.get(i.type);E&&(h=E.width,y=E.height),b-=h/2,v-=y/2;var S={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":b,"-y":v,"-width":h,"-height":y}};return!((f=i.text)===null||f===void 0)&&f.value&&(S["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":i.text.x-i.text.value.length*10/2,"-y":i.text.y-7,"-width":i.text.value.length*10,"-height":14}}),S})}var _D=["bpmn:incoming","bpmn:outgoing"];function OD(a,c){var i=[],f=[],o=new Map,h=c!=null?c:{},y=h.transformer,b=h.excludeFields,v={in:new Set(qc(th.in,(b==null?void 0:b.in)||[])),out:new Set(qc(th.out,(b==null?void 0:b.out)||[]))};Fo=U_(Fo,y);var E=a["bpmn:definitions"];if(E){var S=E["bpmn:process"];(function(T,M){M.forEach(function(I){try{Object.keys(T).forEach(function(C){try{I(C)}catch(z){}})}catch(C){}})})(S,[function(T){function M(C){C["-children"]||(C["-children"]=[]),Object.keys(C).forEach(function(z){var W;z.indexOf("bpmn:")===0&&!_D.includes(z)&&(S[z]||(S[z]=[]),!Array.isArray(S[z])&&(S[z]=[S[z]]),Array.isArray(C[z])?(W=S[z]).push.apply(W,qc(C[z])):S[z].push(C[z]),Array.isArray(C[z])?C[z].forEach(function(K){!z.includes("Flow")&&C["-children"].push(K["-id"])}):!z.includes("Flow")&&C["-children"].push(C[z]["-id"]),delete C[z])})}if(T==="bpmn:subProcess"){var I=S[T];Array.isArray(I)?I.forEach(function(C){T==="bpmn:subProcess"&&M(C)}):M(I)}},function(T){var M=function(C){Object.keys(C).forEach(function(z){var W,K;if(z.includes("bpmn:")){var et={};Fo[z]&&Fo[z].in?(et=(K=(W=Fo[z]).in)===null||K===void 0?void 0:K.call(W,z,F.cloneDeep(C[z])),delete C[z]):I(C[z]);var at=void 0;(at=Reflect.ownKeys(et)).length>0&&at.forEach(function(ot){Reflect.set(C,ot,et[ot])})}})};function I(C){o.set(C["-id"],C),Array.isArray(C)?C.forEach(function(z){I(z)}):typeof C=="object"&&M(C)}I(S[T])},function(T){if(T.indexOf("bpmn:")===0){var M=S[T];if(T==="bpmn:sequenceFlow"){var I=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];f=xD(M,I)}else{var C=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(T==="bpmn:boundaryEvent"){var z=S[T],W=function(K){var et=K["-attachedToRef"],at=o.get(et);at["-boundaryEvents"]||(at["-boundaryEvents"]=[]),at["-boundaryEvents"].push(K["-id"])};Array.isArray(z)?z.forEach(function(K){W(K)}):W(z)}i=i.concat(wD(M,C,T))}}}])}var k=function(T,M,I){Object.keys(T).forEach(function(C){var z=I?I+"."+C:C;M.has(z)?delete T[C]:typeof T[C]=="object"&&k(T[C],M,z)})};return i.forEach(function(T){var M,I;if(!((M=c==null?void 0:c.mapping)===null||M===void 0)&&M.in){var C=(I=c==null?void 0:c.mapping)===null||I===void 0?void 0:I.in,z=T.type;C[z]&&(T.type=C[z])}k(T,v.in,"")}),f.forEach(function(T){var M,I;if(!((M=c==null?void 0:c.mapping)===null||M===void 0)&&M.in){var C=(I=c==null?void 0:c.mapping)===null||I===void 0?void 0:I.in,z=T.type;C[z]&&(T.type=C[z])}k(T,v.in,"")}),{nodes:i,edges:f}}function wD(a,c,i){var f=[];if(Array.isArray(a))a.forEach(function(y){var b;Array.isArray(c)?b=c.find(function(E){return E["-bpmnElement"]===y["-id"]}):b=c;var v=G_(b,i,y);f.push(v)});else{var o=void 0;Array.isArray(c)?o=c.find(function(y){return y["-bpmnElement"]===a["-id"]}):o=c;var h=G_(o,i,a);f.push(h)}return f}function G_(a,c,i){var f=Number(a["dc:Bounds"]["-x"]),o=Number(a["dc:Bounds"]["-y"]),h=i["-children"],y=i["-name"],b=po.shapeConfigMap.get(c);b&&(f+=b.width/2,o+=b.height/2);var v={};Object.entries(i).forEach(function(T){var M=Zc(T,2),I=M[0],C=M[1];F_.includes(I)||(v[I]=C)}),v=eh(v);var E;if(y&&(E={x:f,y:o,value:y},a["bpmndi:BPMNLabel"]&&a["bpmndi:BPMNLabel"]["dc:Bounds"])){var S=a["bpmndi:BPMNLabel"]["dc:Bounds"];E.x=Number(S["-x"])+Number(S["-width"])/2,E.y=Number(S["-y"])+Number(S["-height"])/2}var k={id:a["-bpmnElement"],type:c,x:f,y:o,properties:v};return h&&(k.children=h),E&&(k.text=E),k}function xD(a,c){var i=[];if(Array.isArray(a))a.forEach(function(o){var h;Array.isArray(c)?h=c.find(function(y){return y["-bpmnElement"]===o["-id"]}):h=c,i.push(X_(h,o))});else{var f=void 0;Array.isArray(c)?f=c.find(function(o){return o["-bpmnElement"]===a["-id"]}):f=c,i.push(X_(f,a))}return i}function X_(a,c){var i,f=c["-name"];if(f){var o=a["bpmndi:BPMNLabel"]["dc:Bounds"],h=0;f.split(`
  111. `).forEach(function(E){h<E.length&&(h=E.length)}),i={value:f,x:Number(o["-x"])+h*10/2,y:Number(o["-y"])+7}}var y={};Object.entries(c).forEach(function(E){var S=Zc(E,2),k=S[0],T=S[1];F_.includes(k)||(y[k]=T)}),y=eh(y);var b=a["di:waypoint"].map(function(E){return{x:Number(E["-x"]),y:Number(E["-y"])}}),v={id:c["-id"],type:to.FLOW,pointsList:b,sourceNodeId:c["-sourceRef"],targetNodeId:c["-targetRef"],properties:y};return i&&(v.text=i),v}var po=function(){function a(c){var i=this,f=c.lf;this.adapterOut=function(o,h){var y,b,v=sg({},i.processAttributes);mD(v,o,h);var E={"-id":"BPMNPlane_1","-bpmnElement":v["-id"]};bD(E,o);var S=i.definitionAttributes;S["bpmn:process"]=v,S["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":E};var k={"bpmn:definitions":S};if(!((y=h==null?void 0:h.mapping)===null||y===void 0)&&y.out){var T=(b=h==null?void 0:h.mapping)===null||b===void 0?void 0:b.out,M=function(I){Array.isArray(I)&&I.forEach(function(C){return M(C)}),typeof I=="object"&&Object.keys(I).forEach(function(C){var z;(z=T[C])?(I[z]=F.cloneDeep(I[C]),delete I[C],M(I[z])):M(I[C])})};M(k)}return k},this.adapterIn=function(o,h){if(o)return OD(o,h)},f.adapterIn=this.adapterIn,f.adapterOut=this.adapterOut,this.processAttributes={"-isExecutable":"true","-id":"Process"},this.definitionAttributes={"-id":"Definitions","-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.10"}}return a.prototype.setCustomShape=function(c,i){a.shapeConfigMap.set(c,i)},a.pluginName="bpmn-adapter",a.shapeConfigMap=new Map,a}();po.shapeConfigMap.set(to.START,{width:P_.width,height:P_.height}),po.shapeConfigMap.set(to.END,{width:A_.width,height:A_.height}),po.shapeConfigMap.set(to.INTERMEDIATE_CATCH,{width:$p.width,height:$p.height}),po.shapeConfigMap.set(to.INTERMEDIATE_THROW,{width:$p.width,height:$p.height}),po.shapeConfigMap.set(to.BOUNDARY,{width:k_.width,height:k_.height}),po.shapeConfigMap.set(to.PARALLEL_GATEWAY,{width:T_.width,height:T_.height}),po.shapeConfigMap.set(to.INCLUSIVE_GATEWAY,{width:M_.width,height:M_.height}),po.shapeConfigMap.set(to.EXCLUSIVE_GATEWAY,{width:D_.width,height:D_.height}),po.shapeConfigMap.set(to.SYSTEM,{width:N_.width,height:N_.height}),po.shapeConfigMap.set(to.USER,{width:C_.width,height:C_.height}),po.shapeConfigMap.set(to.SUBPROCESS,{width:R_.width,height:R_.height}),function(a){yD(c,a);function c(i){var f=a.call(this,i)||this;f.adapterXmlIn=function(y){var b=pD(y);return f.adapterIn(b,f.props)},f.adapterXmlOut=function(y){var b=f.adapterOut(y,f.props);return dD(b)};var o=i.lf,h=i.props;return o.adapterIn=f.adapterXmlIn,o.adapterOut=f.adapterXmlOut,f.props=h,f}return c.pluginName="BPMNAdapter",c}(po);var ED=function(){function a(c){var i=this,f=c.lf;this.lf=f,this.customCssRules="",this.useGlobalRules=!0,f.getSnapshot=function(o,h){i.getSnapshot(o,h)},f.getSnapshotBlob=function(o){return i.getSnapshotBlob(o)},f.getSnapshotBase64=function(o){return i.getSnapshotBase64(o)}}return a.prototype.getSvgRootElement=function(c){var i=c.container.querySelector(".lf-canvas-overlay");return i},a.prototype.triggerDownload=function(c){var i=new MouseEvent("click",{view:document.defaultView,bubbles:!1,cancelable:!0}),f=document.createElement("a");f.setAttribute("download",this.fileName),f.setAttribute("href",c),f.setAttribute("target","_blank"),f.dispatchEvent(i)},a.prototype.removeAnchor=function(c){for(var i=c.childNodes,f=c.childNodes&&c.childNodes.length,o=0;o<f;o++){var h=i[o],y=h.classList&&Array.from(h.classList)||[];y.indexOf("lf-anchor")>-1&&(c.removeChild(c.childNodes[o]),f--,o--)}},a.prototype.removeRotateControl=function(c){for(var i=c.childNodes,f=c.childNodes&&c.childNodes.length,o=0;o<f;o++){var h=i[o],y=h.classList&&Array.from(h.classList)||[];y.indexOf("lf-rotate-control")>-1&&(c.removeChild(c.childNodes[o]),f--,o--)}},a.prototype.getSnapshot=function(c,i){var f=this;this.fileName=c||"logic-flow."+Date.now()+".png";var o=this.getSvgRootElement(this.lf);this.getCanvasData(o,i).then(function(h){var y=h.toDataURL("image/png").replace("image/png","image/octet-stream");f.triggerDownload(y)})},a.prototype.getSnapshotBase64=function(c){var i=this,f=this.getSvgRootElement(this.lf);return new Promise(function(o){i.getCanvasData(f,c).then(function(h){var y=h.toDataURL("image/png");o({data:y,width:h.width,height:h.height})})})},a.prototype.getSnapshotBlob=function(c){var i=this,f=this.getSvgRootElement(this.lf);return new Promise(function(o){i.getCanvasData(f,c).then(function(h){h.toBlob(function(y){o({data:y,width:h.width,height:h.height})},"image/png")})})},a.prototype.getClassRules=function(){var c="";if(this.useGlobalRules)for(var i=document.styleSheets,f=0;f<i.length;f++)for(var o=i[f],h=0;h<o.cssRules.length;h++)c+=o.cssRules[h].cssText;return this.customCssRules&&(c+=this.customCssRules),c},a.prototype.getCanvasData=function(c,i){var f=this,o=c.cloneNode(!0),h=o.lastChild,y=h.childNodes&&h.childNodes.length;if(y)for(var b=0;b<y;b++){var v=h.childNodes[b],E=v.classList&&Array.from(v.classList);if(E&&E.indexOf("lf-base")<0)h.removeChild(h.childNodes[b]),y--,b--;else{var S=h.childNodes[b];S&&S.childNodes.forEach(function(Et){var mt=Et;f.removeAnchor(mt.firstChild),f.removeRotateControl(mt.firstChild)})}}var k=window.devicePixelRatio||1;k<1&&(k=1);var T=document.createElement("canvas"),M=this.lf.graphModel.rootEl.querySelector(".lf-base"),I=M.getBoundingClientRect(),C=this.lf.container.querySelector(".lf-canvas-overlay").getBoundingClientRect(),z=I.x-C.x,W=I.y-C.y,K=this.lf.graphModel,et=K.transformModel,at=et.SCALE_X,ot=et.SCALE_Y,tt=et.TRANSLATE_X,$=et.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-z+tt)*(1/at)+10)+", "+((-W+$)*(1/ot)+10)+")";var X=Math.ceil(I.width/at),U=Math.ceil(I.height/ot);T.style.width=X+"px",T.style.height=U+"px",T.width=X*k+80,T.height=U*k+80;var H=T.getContext("2d");H.clearRect(0,0,T.width,T.height),H.scale(k,k),i?(H.fillStyle=i,H.fillRect(0,0,X*k+80,U*k+80)):H.clearRect(0,0,X,U);var V=new Image,q=document.createElement("style");q.innerHTML=this.getClassRules();var ut=document.createElement("foreignObject");return ut.appendChild(q),o.appendChild(ut),new Promise(function(Et){V.onload=function(){var Ft=navigator.userAgent.indexOf("Firefox")>-1;try{Ft?createImageBitmap(V,{resizeWidth:T.width,resizeHeight:T.height}).then(function(St){H.drawImage(St,0,0),Et(T)}):(H.drawImage(V,0,0),Et(T))}catch(St){H.drawImage(V,0,0),Et(T)}};var mt="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(o),At=mt.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");V.src=At})},a.pluginName="snapshot",a}(),Y_=globalThis&&globalThis.__assign||function(){return Y_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Y_.apply(this,arguments)};globalThis&&globalThis.__read;var H_;(function(a){a.HORIZONTAL="horizontal",a.VERTICAL="vertical"})(H_||(H_={}));var AL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;var kL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;var jD=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},SD=globalThis&&globalThis.__spread||function(){for(var a=[],c=0;c<arguments.length;c++)a=a.concat(jD(arguments[c]));return a},Tl="lf:defaultNodeMenu",Ml="lf:defaultEdgeMenu",Dl="lf:defaultGraphMenu",V_="lf:defaultSelectionMenu",PD=function(){function a(c){var i=this,f=c.lf;this.lf=f;var o=f.options.isSilentMode;o||(this.__menuDOM=document.createElement("ul"),this.menuTypeMap=new Map,this.init(),this.lf.setMenuConfig=function(h){i.setMenuConfig(h)},this.lf.addMenuConfig=function(h){i.addMenuConfig(h)},this.lf.setMenuByType=function(h){i.setMenuByType(h)})}return a.prototype.init=function(){var c=this,i=[{text:"\u5220\u9664",callback:function(h){c.lf.deleteNode(h.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(h){c.lf.graphModel.editText(h.id)}},{text:"\u590D\u5236",callback:function(h){c.lf.cloneNode(h.id)}}];this.menuTypeMap.set(Tl,i);var f=[{text:"\u5220\u9664",callback:function(h){c.lf.deleteEdge(h.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(h){c.lf.graphModel.editText(h.id)}}];this.menuTypeMap.set(Ml,f),this.menuTypeMap.set(Dl,[]);var o=[{text:"\u5220\u9664",callback:function(h){c.lf.clearSelectElements(),h.edges.forEach(function(y){return c.lf.deleteEdge(y.id)}),h.nodes.forEach(function(y){return c.lf.deleteNode(y.id)})}}];this.menuTypeMap.set(V_,o)},a.prototype.render=function(c,i){var f=this;c.options.isSilentMode||(this.__container=i,this.__currentData=null,this.__menuDOM.className="lf-menu",i.appendChild(this.__menuDOM),this.__menuDOM.addEventListener("click",function(o){o.stopPropagation();for(var h=o.target;Array.from(h.classList).indexOf("lf-menu-item")===-1&&Array.from(h.classList).indexOf("lf-menu")===-1;)h=h.parentElement;Array.from(h.classList).indexOf("lf-menu-item")>-1&&(h.onclickCallback(f.__currentData),f.__menuDOM.style.display="none",f.__currentData=null)},!0),this.lf.on("node:contextmenu",function(o){var h=o.data,y=o.position,b=o.e,v=y.domOverlayPosition,E=v.x,S=v.y,k=h.id,T=f.lf.graphModel.getNodeModelById(k),M=[],I=f.menuTypeMap.get(T.type);T&&T.menu&&Array.isArray(T.menu)?M=T.menu:I?M=I:M=f.menuTypeMap.get(Tl),f.__currentData=h,f.showMenu(E,S,M,{width:T.width,height:T.height,clientX:b.clientX,clientY:b.clientY})}),this.lf.on("edge:contextmenu",function(o){var h=o.data,y=o.position,b=o.e,v=y.domOverlayPosition,E=v.x,S=v.y,k=h.id,T=f.lf.graphModel.getEdgeModelById(k),M=[],I=f.menuTypeMap.get(T.type);T&&T.menu&&Array.isArray(T.menu)?M=T.menu:I?M=I:M=f.menuTypeMap.get(Ml),f.__currentData=h,f.showMenu(E,S,M,{width:T.width,height:T.height,clientX:b.clientX,clientY:b.clientY})}),this.lf.on("blank:contextmenu",function(o){var h=o.position,y=f.menuTypeMap.get(Dl),b=h.domOverlayPosition,v=b.x,E=b.y;f.showMenu(v,E,y)}),this.lf.on("selection:contextmenu",function(o){var h=o.data,y=o.position,b=f.menuTypeMap.get(V_),v=y.domOverlayPosition,E=v.x,S=v.y;f.__currentData=h,f.showMenu(E,S,b)}),this.lf.on("node:mousedown",function(){f.__menuDOM.style.display="none"}),this.lf.on("edge:click",function(){f.__menuDOM.style.display="none"}),this.lf.on("blank:click",function(){f.__menuDOM.style.display="none"}))},a.prototype.destroy=function(){var c;(c=this===null||this===void 0?void 0:this.__container)===null||c===void 0||c.removeChild(this.__menuDOM),this.__menuDOM=null},a.prototype.showMenu=function(c,i,f,o){if(!(!f||!f.length)){var h=this.__menuDOM;if(h.innerHTML="",h.append.apply(h,SD(this.__getMenuDom(f))),!!h.children.length){if(h.style.display="block",!o){h.style.top=i+"px",h.style.left=c+"px";return}var y=o.width,b=o.height,v=o.clientX,E=o.clientY,S=this.lf.graphModel,k=h.offsetWidth,T=!0,M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,I=M-v,C=S.rootEl.getBoundingClientRect(),z=C.left+C.width;z<M&&(I=z-v),I<k&&(T=!1),T?h.style.left=c+"px":h.style.left=c-y+"px";var W=h.offsetHeight,K=!0,et=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,at=et-E,ot=C.top+C.height;ot<et&&(at=ot-E),at<W&&(K=!1),K?h.style.top=i+"px":h.style.top=i-b+"px"}}},a.prototype.setMenuByType=function(c){!c.type||!c.menu||this.menuTypeMap.set(c.type,c.menu)},a.prototype.__getMenuDom=function(c){var i=[];return c&&c.length>0&&c.forEach(function(f){var o=document.createElement("li");if(f.className?o.className="lf-menu-item "+f.className:o.className="lf-menu-item",f.icon===!0){var h=document.createElement("span");h.className="lf-menu-item-icon",o.appendChild(h)}var y=document.createElement("span");y.className="lf-menu-item-text",f.text&&(y.innerText=f.text),o.appendChild(y),o.onclickCallback=f.callback,i.push(o)}),i},a.prototype.setMenuConfig=function(c){c&&(c.nodeMenu!==void 0&&this.menuTypeMap.set(Tl,c.nodeMenu?c.nodeMenu:[]),c.edgeMenu!==void 0&&this.menuTypeMap.set(Ml,c.edgeMenu?c.edgeMenu:[]),c.graphMenu!==void 0&&this.menuTypeMap.set(Dl,c.graphMenu?c.graphMenu:[]))},a.prototype.addMenuConfig=function(c){if(c){if(Array.isArray(c.nodeMenu)){var i=this.menuTypeMap.get(Tl);this.menuTypeMap.set(Tl,i.concat(c.nodeMenu))}if(Array.isArray(c.edgeMenu)){var i=this.menuTypeMap.get(Ml);this.menuTypeMap.set(Ml,i.concat(c.edgeMenu))}if(Array.isArray(c.graphMenu)){var i=this.menuTypeMap.get(Dl);this.menuTypeMap.set(Dl,i.concat(c.graphMenu))}}},a.prototype.changeMenuItem=function(c,i){if(c==="add")this.addMenuConfig(i);else if(c==="reset")this.setMenuConfig(i);else throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'")},a.pluginName="menu",a}();globalThis&&globalThis.__read;var AD=function(){function a(c){var i=this,f=c.lf;this.lf=f,this.lf.setPatternItems=function(o){i.setPatternItems(o)}}return a.prototype.render=function(c,i){var f=this;if(this.destroy(),!this.shapeList||this.shapeList.length===0){this.domContainer=i;return}this.panelEl=document.createElement("div"),this.panelEl.className="lf-dndpanel",this.shapeList.forEach(function(o){f.panelEl.appendChild(f.createDndItem(o))}),i.appendChild(this.panelEl),this.domContainer=i},a.prototype.destroy=function(){this.domContainer&&this.panelEl&&this.domContainer.contains(this.panelEl)&&this.domContainer.removeChild(this.panelEl)},a.prototype.setPatternItems=function(c){this.shapeList=c,this.domContainer&&this.render(this.lf,this.domContainer)},a.prototype.createDndItem=function(c){var i=this,f=document.createElement("div");f.className=c.className?"lf-dnd-item "+c.className:"lf-dnd-item";var o=document.createElement("div");if(o.className="lf-dnd-shape",c.icon&&(o.style.backgroundImage="url("+c.icon+")"),f.appendChild(o),c.label){var h=document.createElement("div");h.innerText=c.label,h.className="lf-dnd-text",f.appendChild(h)}return c.disabled?(f.classList.add("disabled"),f.onmousedown=function(){c.callback&&c.callback(i.lf,i.domContainer)},f):(f.onmousedown=function(){c.type&&i.lf.dnd.startDrag({type:c.type,properties:c.properties,text:c.text}),c.callback&&c.callback(i.lf,i.domContainer)},f.ondblclick=function(y){i.lf.graphModel.eventCenter.emit("dnd:panel-dbclick",{e:y,data:c})},f.onclick=function(y){i.lf.graphModel.eventCenter.emit("dnd:panel-click",{e:y,data:c})},f.oncontextmenu=function(y){i.lf.graphModel.eventCenter.emit("dnd:panel-contextmenu",{e:y,data:c})},f)},a.pluginName="dndPanel",a}(),kD=function(){function a(c){var i=this,f=c.lf;this.__disabled=!1,this.isDefaultStopMoveGraph=!1,this.isWholeNode=!0,this.isWholeEdge=!0,this.__draw=function(h){var y=i.lf.getPointByClient(h.clientX,h.clientY).domOverlayPosition,b=y.x,v=y.y;i.endPoint={x:b,y:v};var E=i.startPoint,S=E.x,k=E.y,T=i.wrapper.style,M=S,I=k,C=b-S,z=v-k;b<S&&(M=b,C=S-b),v<k&&(I=v,z=k-v),T.left=M+"px",T.top=I+"px",T.width=C+"px",T.height=z+"px"},this.__drawOff=function(){document.removeEventListener("mousemove",i.__draw),document.removeEventListener("mouseup",i.__drawOff),i.wrapper.oncontextmenu=null,i.__domContainer.removeChild(i.wrapper);var h=i.startPoint,y=h.x,b=h.y,v=i.endPoint,E=v.x,S=v.y;if(!(Math.abs(E-y)<10&&Math.abs(S-b)<10)){var k=[Math.min(y,E),Math.min(b,S)],T=[Math.max(y,E),Math.max(b,S)],M=i.lf.graphModel.getAreaElement(k,T,i.isWholeEdge,i.isWholeNode,!0),I=i.lf.graphModel.group;M.forEach(function(C){(!I||!I.getNodeGroup(C.id))&&i.lf.selectElementById(C.id,!0)}),i.lf.emit("selection:selected",M)}},this.__zoom=function(h){var y,b;h.preventDefault();var v=new WheelEvent("wheel",{deltaX:h.deltaX,deltaY:h.deltaY,clientX:h.clientX,clientY:h.clientY,ctrlKey:h.ctrlKey});(b=(y=i.lf.container)===null||y===void 0?void 0:y.querySelector('.lf-canvas-overlay[name="canvas-overlay"]'))===null||b===void 0||b.dispatchEvent(v)},this.lf=f;var o=f.getEditConfig().stopMoveGraph;this.isDefaultStopMoveGraph=o,f.openSelectionSelect=function(){i.openSelectionSelect()},f.closeSelectionSelect=function(){i.closeSelectionSelect()}}return a.prototype.render=function(c,i){var f=this;this.__domContainer=i,c.on("blank:mousedown",function(o){var h=o.e,y=c.getEditConfig();if(!(!y.stopMoveGraph||f.__disabled)){var b=h.button===2;if(!b){var v=c.getPointByClient(h.clientX,h.clientY).domOverlayPosition,E=v.x,S=v.y;f.startPoint={x:E,y:S},f.endPoint={x:E,y:S};var k=document.createElement("div");k.className="lf-selection-select",k.oncontextmenu=function(T){T.preventDefault()},k.style.top=f.startPoint.y+"px",k.style.left=f.startPoint.x+"px",i.appendChild(k),f.wrapper=k,document.addEventListener("mousemove",f.__draw),document.addEventListener("mouseup",f.__drawOff),document.addEventListener("wheel",f.__zoom,{passive:!1})}}})},a.prototype.setSelectionSense=function(c,i){c===void 0&&(c=!0),i===void 0&&(i=!0),this.isWholeEdge=c,this.isWholeNode=i},a.prototype.openSelectionSelect=function(){var c=this.lf.getEditConfig().stopMoveGraph;c||(this.isDefaultStopMoveGraph=!1,this.lf.updateEditConfig({stopMoveGraph:!0})),this.open()},a.prototype.closeSelectionSelect=function(){this.isDefaultStopMoveGraph||this.lf.updateEditConfig({stopMoveGraph:!1}),this.close()},a.prototype.open=function(){this.__disabled=!1},a.prototype.close=function(){this.__disabled=!0},a.pluginName="selectionSelect",a}();globalThis&&globalThis.__values;var W_=globalThis&&globalThis.__extends||function(){var a=function(c,i){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,o){f.__proto__=o}||function(f,o){for(var h in o)o.hasOwnProperty(h)&&(f[h]=o[h])},a(c,i)};return function(c,i){a(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}(),$c=globalThis&&globalThis.__assign||function(){return $c=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},$c.apply(this,arguments)},Nl=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h},TD={tr:"tl",lb:"tl",tl:"tr",rb:"tr",br:"bl",lt:"bl",bl:"br",rt:"br"};function MD(a){for(var c=a,i=1;i<c.length-1;){var f=Nl(c[i-1],2),o=f[0],h=f[1],y=Nl(c[i],2),b=y[0],v=y[1],E=Nl(c[i+1],2),S=E[0],k=E[1];o===b&&b===S||h===v&&v===k?c.splice(i,1):i++}return c}function DD(a,c,i,f){var o=[a[0],a[1]],h=[a[0],a[1]];switch(i){case"tl":return c==="tr"?(o[1]+=f,h[0]+=f):c==="lb"&&(o[0]+=f,h[1]+=f),[o,h];case"tr":return c==="tl"?(o[1]+=f,h[0]-=f):c==="rb"&&(o[0]-=f,h[1]+=f),[o,h];case"bl":return c==="br"?(o[1]-=f,h[0]+=f):c==="lt"&&(o[0]+=f,h[1]-=f),[o,h];case"br":return c==="bl"?(o[1]-=f,h[0]-=f):c==="rt"&&(o[0]-=f,h[1]-=f),[o,h];default:return[]}}function ND(a,c,i,f){var o,h="",y="";a[0]===c[0]?h=a[1]>c[1]?"t":"b":a[1]===c[1]&&(h=a[0]>c[0]?"l":"r"),c[0]===i[0]?y=c[1]>i[1]?"t":"b":c[1]===i[1]&&(y=c[0]>i[0]?"l":"r");var b=Math.min(Math.hypot(c[0]-a[0],c[1]-a[1])/2,Math.hypot(i[0]-c[0],i[1]-c[1])/2,f)||1/5*f,v=""+h+y,E=TD[v]||"-",S="L "+a[0]+" "+a[1];if(E==="-")S+="L "+c[0]+" "+c[1]+" L "+i[0]+" "+i[1];else{var k=Nl(DD(c,v,E,b),2),T=k[0],M=k[1];T&&M&&(S+="L "+T[0]+" "+T[1]+" Q "+c[0]+" "+c[1]+" "+M[0]+" "+M[1],o=Nl(M,2),c[0]=o[0],c[1]=o[1])}return S}function CD(a,c){var i=0,f="";if(a.length===2)f+="M"+a[i][0]+" "+a[i++][1]+" L "+a[i][0]+" "+a[i][1];else{for(f+="M"+a[i][0]+" "+a[i++][1];i+1<a.length;){var o=a[i-1],h=a[i],y=a[i+++1];f+=ND(o,h,y,c)}f+="L "+a[i][0]+" "+a[i][1]}return f}(function(a){W_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c.prototype.getEdge=function(){var i=this.props.model,f=i.points,o=i.isAnimation,h=i.arrowConfig,y=i.radius,b=y===void 0?5:y,v=i.getEdgeStyle(),E=i.getEdgeAnimationStyle(),S=MD(f.split(" ").map(function(M){return M.split(",").map(function(I){return+I})})),k=CD(S,b),T=$c($c($c({style:o?E:{}},v),h),{fill:"none"});return ie.h("path",$c({d:k},T))},c})(ie.PolylineEdge),function(a){W_(c,a);function c(){return a!==null&&a.apply(this,arguments)||this}return c}(ie.PolylineEdgeModel);var TL=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;var K_=globalThis&&globalThis.__assign||function(){return K_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},K_.apply(this,arguments)},Z_=globalThis&&globalThis.__assign||function(){return Z_=Object.assign||function(a){for(var c,i=1,f=arguments.length;i<f;i++){c=arguments[i];for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(a[o]=c[o])}return a},Z_.apply(this,arguments)},ML=globalThis&&globalThis.__read||function(a,c){var i=typeof Symbol=="function"&&a[Symbol.iterator];if(!i)return a;var f=i.call(a),o,h=[],y;try{for(;(c===void 0||c-- >0)&&!(o=f.next()).done;)h.push(o.value)}catch(b){y={error:b}}finally{try{o&&!o.done&&(i=f.return)&&i.call(f)}finally{if(y)throw y.error}}return h};globalThis&&globalThis.__spread;const RD={SEQUENCE_FLOW:1,START_EVENT:2,END_EVENT:3,USER_TASK:4,SERVICE_TASK:5,EXCLUSIVE_GATEWAY:6};function ID(a){const{incoming:c,outgoing:i,properties:f,key:o}=a,{text:h,startPoint:y,endPoint:b,pointsList:v,logicFlowType:E}=f,S={id:o,type:E,sourceNodeId:c[0],targetNodeId:i[0],text:h,startPoint:y,endPoint:b,pointsList:v,properties:{}},k=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(a.properties).forEach(T=>{k.indexOf(T)===-1&&(S.properties[T]=a.properties[T])}),S}function LD(a){const{properties:c,key:i}=a,{x:f,y:o,text:h,logicFlowType:y}=c,b={id:i,type:y,x:f,y:o,text:h,properties:{}},v=["x","y","text","logicFlowType"];return Object.keys(a.properties).forEach(E=>{v.indexOf(E)===-1&&(b.properties[E]=a.properties[E])}),b}function zD(a){const c={nodes:[],edges:[]},i=a.flowElementList;return i&&i.length>0&&i.forEach(f=>{if(f.type===RD.SEQUENCE_FLOW){const o=ID(f);c.edges.push(o)}else{const o=LD(f);c.nodes.push(o)}}),c}function BD(a){return[{text:"\u9009\u533A",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAAH6ji2bAAAABGdBTUEAALGPC/xhBQAAAOVJREFUOBGtVMENwzAIjKP++2026ETdpv10iy7WFbqFyyW6GBywLCv5gI+Dw2Bluj1znuSjhb99Gkn6QILDY2imo60p8nsnc9bEo3+QJ+AKHfMdZHnl78wyTnyHZD53Zzx73MRSgYvnqgCUHj6gwdck7Zsp1VOrz0Uz8NbKunzAW+Gu4fYW28bUYutYlzSa7B84Fh7d1kjLwhcSdYAYrdkMQVpsBr5XgDGuXwQfQr0y9zwLda+DUYXLaGKdd2ZTtvbolaO87pdo24hP7ov16N0zArH1ur3iwJpXxm+v7oAJNR4JEP8DoAuSFEkYH7cAAAAASUVORK5CYII=",callback:()=>{a.updateEditConfig({stopMoveGraph:!0})}},{type:"circle",text:"\u5F00\u59CB",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAAH6ji2bAAAABGdBTUEAALGPC/xhBQAAAnBJREFUOBGdVL1rU1EcPfdGBddmaZLiEhdx1MHZQXApraCzQ7GKLgoRBxMfcRELuihWKcXFRcEWF8HBf0DdDCKYRZpnl7p0svLe9Zzbd29eQhTbC8nv+9zf130AT63jvooOGS8Vf9Nt5zxba7sXQwODfkWpkbjTQfCGUd9gIp3uuPP8bZ946g56dYQvnBg+b1HB8VIQmMFrazKcKSvFW2dQTxJnJdQ77urmXWOMBCmXM2Rke4S7UAW+/8ywwFoewmBps2tu7mbTdp8VMOkIRAkKfrVawalJTtIliclFbaOBqa0M2xImHeVIfd/nKAfVq/LGnPss5Kh00VEdSzfwnBXPUpmykNss4lUI9C1ga+8PNrBD5YeqRY2Zz8PhjooIbfJXjowvQJBqkmEkVnktWhwu2SM7SMx7Cj0N9IC0oQXRo8xwAGzQms+xrB/nNSUWVveI48ayrFGyC2+E2C+aWrZHXvOuz+CiV6iycWe1Rd1Q6+QUG07nb5SbPrL4426d+9E1axKjY3AoRrlEeSQo2Eu0T6BWAAr6COhTcWjRaYfKG5csnvytvUr/WY4rrPMB53Uo7jZRjXaG6/CFfNMaXEu75nG47X+oepU7PKJvvzGDY1YLSKHJrK7vFUwXKkaxwhCW3u+sDFMVrIju54RYYbFKpALZAo7sB6wcKyyrd+aBMryMT2gPyD6GsQoRFkGHr14TthZni9ck0z+Pnmee460mHXbRAypKNy3nuMdrWgVKj8YVV8E7PSzp1BZ9SJnJAsXdryw/h5ctboUVi4AFiCd+lQaYMw5z3LGTBKjLQOeUF35k89f58Vv/tGh+l+PE/wG0rgfIUbZK5AAAAABJRU5ErkJggg=="},{type:"rect",text:"\u7528\u6237\u4EFB\u52A1",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAEFVwZaAAAABGdBTUEAALGPC/xhBQAAAqlJREFUOBF9VM9rE0EUfrMJNUKLihGbpLGtaCOIR8VjQMGDePCgCCIiCNqzCAp2MyYUCXhUtF5E0D+g1t48qAd7CCLqQUQKEWkStcEfVGlLdp/fm3aW2QQdyLzf33zz5m2IsAZ9XhDpyaaIZkTS4ASzK41TFao88GuJ3hsr2pAbipHxuSYyKRugagICGANkfFnNh3HeE2N0b3nN2cgnpcictw5veJIzxmDamSlxxQZicq/mflxhbaH8BLRbuRwNtZp0JAhoplVRUdzmCe/vO27wFuuA3S5qXruGdboy5/PRGFsbFGKo/haRtQHIrM83bVeTrOgNhZReWaYGnE4aUQgTJNvijJFF4jQ8BxJE5xfKatZWmZcTQ+BVgh7s8SgPlCkcec4mGTmieTP4xd7PcpIEg1TX6gdeLW8rTVMVLVvb7ctXoH0Cydl2QOPJBG21STE5OsnbweVYzAnD3A7PVILuY0yiiyDwSm2g441r6rMSgp6iK42yqroI2QoXeJVeA+YeZSa47gZdXaZWQKTrG93rukk/l2Al6Kzh5AZEl7dDQy+JjgFahQjRopSxPbrbvK7GRe9ePWBo1wcU7sYrFZtavXALwGw/7Dnc50urrHJuTPSoO2IMV3gUQGNg87IbSOIY9BpiT9HV7FCZ94nPXb3MSnwHn/FFFE1vG6DTby+r31KAkUktB3Qf6ikUPWxW1BkXSPQeMHHiW0+HAd2GelJsZz1OJegCxqzl+CLVHa/IibuHeJ1HAKzhuDR+ymNaRFM+4jU6UWKXorRmbyqkq/D76FffevwdCp+jN3UAN/C9JRVTDuOxC/oh+EdMnqIOrlYteKSfadVRGLJFJPSB/ti/6K8f0CNymg/iH2gO/f0DwE0yjAFO6l8JaR5j0VPwPwfaYHqOqrCI319WzwhwzNW/aQAAAABJRU5ErkJggg==",cls:"important-node"},{type:"rect",text:"\u7CFB\u7EDF\u4EFB\u52A1",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAEFVwZaAAAABGdBTUEAALGPC/xhBQAAAqlJREFUOBF9VM9rE0EUfrMJNUKLihGbpLGtaCOIR8VjQMGDePCgCCIiCNqzCAp2MyYUCXhUtF5E0D+g1t48qAd7CCLqQUQKEWkStcEfVGlLdp/fm3aW2QQdyLzf33zz5m2IsAZ9XhDpyaaIZkTS4ASzK41TFao88GuJ3hsr2pAbipHxuSYyKRugagICGANkfFnNh3HeE2N0b3nN2cgnpcictw5veJIzxmDamSlxxQZicq/mflxhbaH8BLRbuRwNtZp0JAhoplVRUdzmCe/vO27wFuuA3S5qXruGdboy5/PRGFsbFGKo/haRtQHIrM83bVeTrOgNhZReWaYGnE4aUQgTJNvijJFF4jQ8BxJE5xfKatZWmZcTQ+BVgh7s8SgPlCkcec4mGTmieTP4xd7PcpIEg1TX6gdeLW8rTVMVLVvb7ctXoH0Cydl2QOPJBG21STE5OsnbweVYzAnD3A7PVILuY0yiiyDwSm2g441r6rMSgp6iK42yqroI2QoXeJVeA+YeZSa47gZdXaZWQKTrG93rukk/l2Al6Kzh5AZEl7dDQy+JjgFahQjRopSxPbrbvK7GRe9ePWBo1wcU7sYrFZtavXALwGw/7Dnc50urrHJuTPSoO2IMV3gUQGNg87IbSOIY9BpiT9HV7FCZ94nPXb3MSnwHn/FFFE1vG6DTby+r31KAkUktB3Qf6ikUPWxW1BkXSPQeMHHiW0+HAd2GelJsZz1OJegCxqzl+CLVHa/IibuHeJ1HAKzhuDR+ymNaRFM+4jU6UWKXorRmbyqkq/D76FffevwdCp+jN3UAN/C9JRVTDuOxC/oh+EdMnqIOrlYteKSfadVRGLJFJPSB/ti/6K8f0CNymg/iH2gO/f0DwE0yjAFO6l8JaR5j0VPwPwfaYHqOqrCI319WzwhwzNW/aQAAAABJRU5ErkJggg==",cls:"import_icon"},{type:"diamond",text:"\u6761\u4EF6\u5224\u65AD",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAAHeEJUAAAAABGdBTUEAALGPC/xhBQAAAvVJREFUOBGNVEFrE0EU/mY3bQoiFlOkaUJrQUQoWMGePLX24EH0IIoHKQiCV0G8iE1covgLiqA/QTzVm1JPogc9tIJYFaQtlhQxqYjSpunu+L7JvmUTU3AgmTfvffPNN++9WSA1DO182f6xwILzD5btfAoQmwL5KJEwiQyVbSVZ0IgRyV6PTpIJ81E5ZvqfHQR0HUOBHW4L5Et2kQ6Zf7iAOhTFAA8s0pEP7AXO1uAA52SbqGk6h/6J45LaLhO64ByfcUzM39V7ZiAdS2yCePPEIQYvTUHqM/n7dgQNfBKWPjpF4ISk8q3J4nB11qw6X8l+FsF3EhlkEMfrjIer3wJTLwS2aCNcj4DbGxXTw00JmAuO+Ni6bBxVUCvS5d9aa04+so4pHW5jLTywuXAL7jJ+D06sl82Sgl2JuVBQn498zkc2bGKxULHjCnSMadBKYDYYHAtsby1EQ5lNGrQd4Y3v4Zo0XdGEmDno46yCM9Tk+RiJmUYHS/aXHPNTcjxcbTFna000PFJHIVZ5lFRqRpJWk9/+QtlOUYJj9HG5pVFEU7zqIYDVsw2s+AJaD8wTd2umgSCCyUxgGsS1Y6TBwXQQTFuZaHcd8gAGioE90hlsY+wMcs30RduYtxanjMGal8H5dMW67dmT1JFtYUEe8LiQLRsPZ6IIc7A4J5tqco3T0pnv/4u0kyzrYUq7gASuEyI8VXKvB9Odytv6jS/PNaZBln0nioJG/AVQRZvApOdhjj3Jt8QC8Im09SafwdBdvIpztpxWxpeKCC+EsFdS8DCyuCn2munFpL7ctHKp+Xc5cMybeIyMAN33SPL3ZR9QV1XVwLyzHm6Iv0/yeUuUb7PPlZC4D4HZkeu6dpF4v9j9MreGtMbxMMRLIcjJic9yHi7WQ3yVKzZVWUr5UrViJvn1FfUlwe/KYVfYyWRLSGNu16hR01U9IacajXPei0wx/5BqgInvJN+MMNtNme7ReU9SBbgntovn0kKHpFg7UogZvaZiOue/q1SBo9ktHzQAAAAASUVORK5CYII="},{type:"circle",text:"\u7ED3\u675F",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAAH6ji2bAAAABGdBTUEAALGPC/xhBQAAA1BJREFUOBFtVE1IVUEYPXOf+tq40Y3vPcmFIdSjIorWoRG0ERWUgnb5FwVhYQSl72oUoZAboxKNFtWiwKRN0M+jpfSzqJAQclHo001tKkjl3emc8V69igP3znzfnO/M9zcDcKT67azmjYWTwl9Vn7Vumeqzj1DVb6cleQY4oAVnIOPb+mKAGxQmKI5CWNJ2aLPatxWa3aB9K7/fB+/Z0jUF6TmMlFLQqrkECWQzOZxYGjTlOl8eeKaIY5yHnFn486xBustDjWT6dG7pmjHOJd+33t0iitTPkK6tEvjxq4h2MozQ6WFSX/LkDUGfFwfhEZj1Auz/U4pyAi5Sznd7uKzznXeVHlI/Aywmk6j7fsUsEuCGADrWARXXwjxWQsUbIupDHJI7kF5dRktg0eN81IbiZXiTESic50iwS+t1oJgL83jAiBupLDCQqwziaWSoAFSeIR3P5Xv5az00wyIn35QRYTwdSYbz8pH8fxUUAtxnFvYmEmgI0wYXUXcCCSpeEVpXlsRhBnCEATxWylL9+EKCAYhe1NGstUa6356kS9NVvt3DU2fd+Wtbm/+lSbylJqsqkSm9CRhvoJVlvKPvF1RKY/FcPn5j4UfIMLn8D4UYb54BNsilTDXKnF4CfTobA0FpoW/LSp306wkXM+XaOJhZaFkcNM82ASNAWMrhrUbRfmyeI1FvRBTpN06WKxa9BK0o2E4Pd3zfBBEwPsv9sQBnmLVbLEIZ/Xe9LYwJu/Er17W6HYVBc7vmuk0xUQ+pqxdom5Fnp55SiytXLPYoMXNM4u4SNSCFWnrVIzKG3EGyMXo6n/BQOe+bX3FClY4PwydVhthOZ9NnS+ntiLh0fxtlUJHAuGaFoVmttpVMeum0p3WEXbcll94l1wM/gZ0Ccczop77VvN2I7TlsZCsuXf1WHvWEhjO8DPtyOVg2/mvK9QqboEth+7pD6NUQC1HN/TwvydGBARi9MZSzLE4b8Ru3XhX2PBxf8E1er2A6516o0w4sIA+lwURhAON82Kwe2iDAC1Watq4XHaGQ7skLcFOtI5lDxuM2gZe6WFIotPAhbaeYlU4to5cuarF1QrcZ/lwrLaCJl66JBocYZnrNlvm2+MBCTmUymPrYZVbjdlr/BxlMjmNmNI3SAAAAAElFTkSuQmCC"}]}const FD=ix({name:"FlowChart",components:{BasicModal:cL,FlowChartToolbar:gM,JsonPreview:fL},props:{flowOptions:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})},toolbar:{type:Boolean,default:!0},patternItems:{type:Array}},setup(a){const c=by(null),i=by({}),f=by(null),{prefixCls:o}=c4("flow-chart"),h=s4(),[y,{openModal:b}]=sL();fM({logicFlow:f});const v=l4(()=>{const{flowOptions:T}=a;return pb({grid:!0,background:{color:h.getDarkMode==="light"?"#f7f9ff":"#151515"},keyboard:{enabled:!0}},T)});ux(()=>a.data,()=>{S()}),ux(()=>fo(v),T=>{var M;(M=fo(f))==null||M.updateEditConfig(T)});function E(){return vp(this,null,function*(){yield vb();const T=fo(c);if(!T)return;Hc.use(AD),Hc.use(ED),Hc.use(zM),Hc.use(PD),Hc.use(kD),f.value=new Hc(Nw(pb({},fo(v)),{container:T}));const M=fo(f);M==null||M.setDefaultEdgeType("line"),S(),M==null||M.setPatternItems(a.patternItems||BD(M))})}function S(){return vp(this,null,function*(){yield vb();const T=fo(f);if(!T)return;const M=zD(a.data);T.render(M)})}function k(){const T=fo(f);T&&(i.value=fo(T).getGraphData(),b())}return f4(E),{register:y,prefixCls:o,lfElRef:c,handlePreview:k,graphData:i}}}),UD={ref:"lfElRef",class:"h-full"};function GD(a,c,i,f,o,h){const y=Pu("FlowChartToolbar"),b=Pu("JsonPreview"),v=Pu("BasicModal");return Au(),Sp("div",{class:Oy(["h-full",a.prefixCls])},[a.toolbar?(Au(),_b(y,{key:0,prefixCls:a.prefixCls,onViewData:a.handlePreview},null,8,["prefixCls","onViewData"])):bb("",!0),p4("div",UD,null,512),Pp(v,{onRegister:a.register,title:"\u6D41\u7A0B\u6570\u636E",width:"50%"},{default:_y(()=>[Pp(b,{data:a.graphData},null,8,["data"])]),_:1},8,["onRegister"])],2)}const XD=mb(FD,[["render",GD]]),YD=h4(XD),HD=[{incoming:[],outgoing:["Flow_33inf2k"],dockers:[],type:2,properties:{a:"efrwe",b:"wewe",name:"\u5F00\u59CB",x:280,y:200,text:{x:280,y:200,value:"\u5F00\u59CB"},logicFlowType:"bpmn:startEvent"},key:"Event_1d42u4p"},{incoming:["Flow_379e0o9"],outgoing:[],dockers:[],type:3,properties:{a:"efrwe",b:"wewe",name:"\u7ED3\u675F",x:920,y:200,text:{x:920,y:200,value:"\u7ED3\u675F"},logicFlowType:"bpmn:endEvent"},key:"Event_08p8i6q"},{incoming:["Flow_0pfouf0"],outgoing:["Flow_3918lhh"],dockers:[],type:6,properties:{a:"efrwe",b:"wewe",name:"\u7F51\u5173",x:580,y:200,text:{x:580,y:200,value:"\u7F51\u5173"},logicFlowType:"bpmn:exclusiveGateway"},key:"Gateway_1fngqgj"},{incoming:["Flow_33inf2k"],outgoing:["Flow_0pfouf0"],dockers:[],type:4,properties:{a:"efrwe",b:"wewe",name:"\u7528\u6237",x:420,y:200,text:{x:420,y:200,value:"\u7528\u6237"},logicFlowType:"bpmn:userTask"},key:"Activity_2mgtaia"},{incoming:["Flow_3918lhh"],outgoing:["Flow_379e0o9"],dockers:[],type:5,properties:{a:"efrwe",b:"wewe",name:"\u670D\u52A1",x:760,y:200,text:{x:760,y:200,value:"\u670D\u52A1"},logicFlowType:"bpmn:serviceTask"},key:"Activity_1sp8qc8"},{incoming:["Event_1d42u4p"],outgoing:["Activity_2mgtaia"],type:1,dockers:[],properties:{name:"\u8FB9",text:{x:331,y:200,value:"\u8FB9"},startPoint:{x:298,y:200},endPoint:{x:370,y:200},pointsList:[{x:298,y:200},{x:370,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_33inf2k"},{incoming:["Activity_2mgtaia"],outgoing:["Gateway_1fngqgj"],type:1,dockers:[],properties:{name:"\u8FB92",text:{x:507,y:200,value:"\u8FB92"},startPoint:{x:470,y:200},endPoint:{x:555,y:200},pointsList:[{x:470,y:200},{x:555,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_0pfouf0"},{incoming:["Gateway_1fngqgj"],outgoing:["Activity_1sp8qc8"],type:1,dockers:[],properties:{name:"\u8FB93",text:{x:664,y:200,value:"\u8FB93"},startPoint:{x:605,y:200},endPoint:{x:710,y:200},pointsList:[{x:605,y:200},{x:710,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_3918lhh"},{incoming:["Activity_1sp8qc8"],outgoing:["Event_08p8i6q"],type:1,dockers:[],properties:{name:"\u8FB94",text:{x:871,y:200,value:"\u8FB94"},startPoint:{x:810,y:200},endPoint:{x:902,y:200},pointsList:[{x:810,y:200},{x:902,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_379e0o9"}],VD={flowElementList:HD},WD={components:{FlowChart:YD,PageWrapper:hL},setup(){return{demoData:VD}}};function KD(a,c,i,f,o,h){const y=Pu("FlowChart"),b=Pu("PageWrapper");return Au(),_b(b,{title:"\u6D41\u7A0B\u56FE",content:"\u7B80\u5355\u6D41\u7A0B\u56FE\u793A\u4F8B,\u5177\u4F53\u529F\u80FD\u9700\u8981\u81EA\u5DF1\u5B8C\u5584",contentFullHeight:"",fixedHeight:""},{default:_y(()=>[Pp(y,{data:f.demoData},null,8,["data"])]),_:1})}gx=mb(WD,[["render",KD]])}));export{bL as __tla,gx as default};