index.4ee91d6c.js 781 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. import{am as Ha,an as Ci,ao as Y1,ap as ci,aq as Mp,ar as Xa,as as Yc,at as Ew,au as oi,av as si,aw as kn,ax as i2,ay as Ii,az as xm,aA as a2,aB as kp,aC as ii,aD as Dp,aE as Sw,ag as Vc,aF as Np,ai as Bo,aG as jw,aH as Ya,aI as Pw,aJ as Ru,aK as Iu,aL as Py,aM as ln,aN as Cp,aO as Al,aP as Dn,af as Ga,aQ as _o,aR as Kc,aS as Rp,aT as li,aU as sr,ah as Qt,aV as qc,aW as u2,aX as Tl,aY as Aw,aZ as ha,a_ as Tw,a$ as Mw,b0 as em,b1 as Sr,b2 as c2,b3 as s2,b4 as Ip,b5 as kw,b6 as Zc,b7 as Va,aj as Dw,b8 as Em,b9 as l2,ba as Ml,bb as f2,bc as Lp,bd as Nw,be as Ay,bf as Ty,bg as jl,bh as Sm,bi as jm,bj as Cw,bk as Rw,bl as p2,bm as Iw,bn as Lw,bo as d2,bp as Bw,bq as h2,br as y2,bs as v2,bt as g2,bu as sy,bv as b2,bw as zw,bx as m2,by as _2,bz as Fw,bA as $w,bB as Pm,bC as Ww,bD as O2,bE as w2,bF as x2,bG as E2,bH as Xc,bI as S2,bJ as j2,bK as P2,bL as A2,bM as T2,bN as M2,bO as k2,bP as D2,bQ as N2,bR as C2,bS as R2,bT as I2,N as L2,bU as B2,bV as z2,bW as F2,bX as $2,bY as W2,bZ as U2,b_ as G2,b$ as H2,c0 as X2,c1 as Y2,c2 as V2,c3 as K2,c4 as q2,d as Bp,t as V1,m as Du,n as Uw,u as hr,r as xp,o as pa,c as Hc,a as ku,b as da,F as tm,y as Gw,M as K1,a1 as Hw,h as Wc,x as ml,I as q1,v as Xw,_ as My,G as Z2,O as J2,H as nm,a6 as Q2,w as eT,c5 as tT,A as rm,c6 as Am,D as nT}from"./index.b5c844d0.js";import{t as nn,c as rT,a as Nu,b as oT,f as iT}from"./find.8456af2b.js";var aT=0/0;function Z1(r){return typeof r=="number"?r:Ha(r)?aT:+r}function ky(r,a){return function(u,l){var o;if(u===void 0&&l===void 0)return a;if(u!==void 0&&(o=u),l!==void 0){if(o===void 0)return l;typeof u=="string"||typeof l=="string"?(u=Ci(u),l=Ci(l)):(u=Z1(u),l=Z1(l)),o=r(u,l)}return o}}var uT=ky(function(r,a){return r+a},0),cT=uT,sT="Expected a function";function lT(r,a){if(typeof a!="function")throw new TypeError(sT);return r=nn(r),function(){if(--r<1)return a.apply(this,arguments)}}var fT=Y1&&new Y1,ly=fT,pT=ly?function(r,a){return ly.set(r,a),r}:ci,Yw=pT;function Tp(r){return function(){var a=arguments;switch(a.length){case 0:return new r;case 1:return new r(a[0]);case 2:return new r(a[0],a[1]);case 3:return new r(a[0],a[1],a[2]);case 4:return new r(a[0],a[1],a[2],a[3]);case 5:return new r(a[0],a[1],a[2],a[3],a[4]);case 6:return new r(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new r(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var u=Mp(r.prototype),l=r.apply(u,a);return Xa(l)?l:u}}var dT=1;function hT(r,a,u){var l=a&dT,o=Tp(r);function d(){var h=this&&this!==Yc&&this instanceof d?o:r;return h.apply(l?u:this,arguments)}return d}var yT=Math.max;function Vw(r,a,u,l){for(var o=-1,d=r.length,h=u.length,b=-1,g=a.length,E=yT(d-h,0),j=Array(g+E),P=!l;++b<g;)j[b]=a[b];for(;++o<h;)(P||o<d)&&(j[u[o]]=r[o]);for(;E--;)j[b++]=r[o++];return j}var vT=Math.max;function Kw(r,a,u,l){for(var o=-1,d=r.length,h=-1,b=u.length,g=-1,E=a.length,j=vT(d-b,0),P=Array(j+E),k=!l;++o<j;)P[o]=r[o];for(var M=o;++g<E;)P[M+g]=a[g];for(;++h<b;)(k||o<d)&&(P[M+u[h]]=r[o++]);return P}function gT(r,a){for(var u=r.length,l=0;u--;)r[u]===a&&++l;return l}function Dy(){}var bT=4294967295;function dn(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=bT,this.__views__=[]}dn.prototype=Mp(Dy.prototype);dn.prototype.constructor=dn;var mT=ly?function(r){return ly.get(r)}:Ew,Tm=mT,_T={},xl=_T,OT=Object.prototype,wT=OT.hasOwnProperty;function iy(r){for(var a=r.name+"",u=xl[a],l=wT.call(xl,a)?u.length:0;l--;){var o=u[l],d=o.func;if(d==null||d==r)return o.name}return a}function ai(r,a){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=void 0}ai.prototype=Mp(Dy.prototype);ai.prototype.constructor=ai;function qw(r){if(r instanceof dn)return r.clone();var a=new ai(r.__wrapped__,r.__chain__);return a.__actions__=oi(r.__actions__),a.__index__=r.__index__,a.__values__=r.__values__,a}var xT=Object.prototype,ET=xT.hasOwnProperty;function $(r){if(si(r)&&!kn(r)&&!(r instanceof dn)){if(r instanceof ai)return r;if(ET.call(r,"__wrapped__"))return qw(r)}return new ai(r)}$.prototype=Dy.prototype;$.prototype.constructor=$;function om(r){var a=iy(r),u=$[a];if(typeof u!="function"||!(a in dn.prototype))return!1;if(r===u)return!0;var l=Tm(u);return!!l&&r===l[0]}var ST=i2(Yw),Zw=ST,jT=/\{\n\/\* \[wrapped with (.+)\] \*/,PT=/,? & /;function AT(r){var a=r.match(jT);return a?a[1].split(PT):[]}var TT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function MT(r,a){var u=a.length;if(!u)return r;var l=u-1;return a[l]=(u>1?"& ":"")+a[l],a=a.join(u>2?", ":" "),r.replace(TT,`{
  2. /* [wrapped with `+a+`] */
  3. `)}var kT=1,DT=2,NT=8,CT=16,RT=32,IT=64,LT=128,BT=256,zT=512,FT=[["ary",LT],["bind",kT],["bindKey",DT],["curry",NT],["curryRight",CT],["flip",zT],["partial",RT],["partialRight",IT],["rearg",BT]];function $T(r,a){return Ii(FT,function(u){var l="_."+u[0];a&u[1]&&!xm(r,l)&&r.push(l)}),r.sort()}function Jw(r,a,u){var l=a+"";return a2(r,MT(l,$T(AT(l),u)))}var WT=1,UT=2,GT=4,HT=8,J1=32,Q1=64;function Qw(r,a,u,l,o,d,h,b,g,E){var j=a&HT,P=j?h:void 0,k=j?void 0:h,M=j?d:void 0,R=j?void 0:d;a|=j?J1:Q1,a&=~(j?Q1:J1),a&GT||(a&=~(WT|UT));var N=[r,a,o,M,P,R,k,b,g,E],L=u.apply(void 0,N);return om(r)&&Zw(L,N),L.placeholder=l,Jw(L,r,a)}function kl(r){var a=r;return a.placeholder}var XT=Math.min;function YT(r,a){for(var u=r.length,l=XT(a.length,u),o=oi(r);l--;){var d=a[l];r[l]=kp(d,u)?o[d]:void 0}return r}var eO="__lodash_placeholder__";function Cu(r,a){for(var u=-1,l=r.length,o=0,d=[];++u<l;){var h=r[u];(h===a||h===eO)&&(r[u]=eO,d[o++]=u)}return d}var VT=1,KT=2,qT=8,ZT=16,JT=128,QT=512;function Ny(r,a,u,l,o,d,h,b,g,E){var j=a&JT,P=a&VT,k=a&KT,M=a&(qT|ZT),R=a&QT,N=k?void 0:Tp(r);function L(){for(var G=arguments.length,W=Array(G),X=G;X--;)W[X]=arguments[X];if(M)var Q=kl(L),te=gT(W,Q);if(l&&(W=Vw(W,l,o,M)),d&&(W=Kw(W,d,h,M)),G-=te,M&&G<E){var Z=Cu(W,Q);return Qw(r,a,Ny,L.placeholder,u,W,Z,b,g,E-G)}var J=P?u:this,H=k?J[r]:r;return G=W.length,b?W=YT(W,b):R&&G>1&&W.reverse(),j&&g<G&&(W.length=g),this&&this!==Yc&&this instanceof L&&(H=N||Tp(H)),H.apply(J,W)}return L}function eM(r,a,u){var l=Tp(r);function o(){for(var d=arguments.length,h=Array(d),b=d,g=kl(o);b--;)h[b]=arguments[b];var E=d<3&&h[0]!==g&&h[d-1]!==g?[]:Cu(h,g);if(d-=E.length,d<u)return Qw(r,a,Ny,o.placeholder,void 0,h,E,void 0,void 0,u-d);var j=this&&this!==Yc&&this instanceof o?l:r;return ii(j,this,h)}return o}var tM=1;function nM(r,a,u,l){var o=a&tM,d=Tp(r);function h(){for(var b=-1,g=arguments.length,E=-1,j=l.length,P=Array(j+g),k=this&&this!==Yc&&this instanceof h?d:r;++E<j;)P[E]=l[E];for(;g--;)P[E++]=arguments[++b];return ii(k,o?u:this,P)}return h}var tO="__lodash_placeholder__",Xb=1,rM=2,oM=4,nO=8,mp=128,rO=256,iM=Math.min;function aM(r,a){var u=r[1],l=a[1],o=u|l,d=o<(Xb|rM|mp),h=l==mp&&u==nO||l==mp&&u==rO&&r[7].length<=a[8]||l==(mp|rO)&&a[7].length<=a[8]&&u==nO;if(!(d||h))return r;l&Xb&&(r[2]=a[2],o|=u&Xb?0:oM);var b=a[3];if(b){var g=r[3];r[3]=g?Vw(g,b,a[4]):b,r[4]=g?Cu(r[3],tO):a[4]}return b=a[5],b&&(g=r[5],r[5]=g?Kw(g,b,a[6]):b,r[6]=g?Cu(r[5],tO):a[6]),b=a[7],b&&(r[7]=b),l&mp&&(r[8]=r[8]==null?a[8]:iM(r[8],a[8])),r[9]==null&&(r[9]=a[9]),r[0]=a[0],r[1]=o,r}var uM="Expected a function",oO=1,cM=2,Yb=8,Vb=16,Kb=32,iO=64,aO=Math.max;function Ka(r,a,u,l,o,d,h,b){var g=a&cM;if(!g&&typeof r!="function")throw new TypeError(uM);var E=l?l.length:0;if(E||(a&=~(Kb|iO),l=o=void 0),h=h===void 0?h:aO(nn(h),0),b=b===void 0?b:nn(b),E-=o?o.length:0,a&iO){var j=l,P=o;l=o=void 0}var k=g?void 0:Tm(r),M=[r,a,u,l,o,j,P,d,h,b];if(k&&aM(M,k),r=M[0],a=M[1],u=M[2],l=M[3],o=M[4],b=M[9]=M[9]===void 0?g?0:r.length:aO(M[9]-E,0),!b&&a&(Yb|Vb)&&(a&=~(Yb|Vb)),!a||a==oO)var R=hT(r,a,u);else a==Yb||a==Vb?R=eM(r,a,b):(a==Kb||a==(oO|Kb))&&!o.length?R=nM(r,a,u,l):R=Ny.apply(void 0,M);var N=k?Yw:Zw;return Jw(N(R,M),r,a)}var sM=128;function ex(r,a,u){return a=u?void 0:a,a=r&&a==null?r.length:a,Ka(r,sM,void 0,void 0,void 0,void 0,a)}var lM=Object.prototype,fM=lM.hasOwnProperty,pM=Dp(function(r,a){if(Sw(a)||Vc(a)){Np(a,Bo(a),r);return}for(var u in a)fM.call(a,u)&&jw(r,u,a[u])}),dM=pM,hM=Dp(function(r,a){Np(a,Ya(a),r)}),uO=hM,yM=Dp(function(r,a,u,l){Np(a,Ya(a),r,l)}),fy=yM,vM=Dp(function(r,a,u,l){Np(a,Bo(a),r,l)}),gM=vM;function Mm(r,a){for(var u=-1,l=a.length,o=Array(l),d=r==null;++u<l;)o[u]=d?void 0:Pw(r,a[u]);return o}var bM=Ru(Mm),mM=bM,_M="[object DOMException]",OM="[object Error]";function km(r){if(!si(r))return!1;var a=Iu(r);return a==OM||a==_M||typeof r.message=="string"&&typeof r.name=="string"&&!Py(r)}var wM=ln(function(r,a){try{return ii(r,void 0,a)}catch(u){return km(u)?u:new Error(u)}}),tx=wM,xM="Expected a function";function nx(r,a){var u;if(typeof a!="function")throw new TypeError(xM);return r=nn(r),function(){return--r>0&&(u=a.apply(this,arguments)),r<=1&&(a=void 0),u}}var EM=1,SM=32,Dm=ln(function(r,a,u){var l=EM;if(u.length){var o=Cu(u,kl(Dm));l|=SM}return Ka(r,l,a,u,o)});Dm.placeholder={};var rx=Dm,jM=Ru(function(r,a){return Ii(a,function(u){u=Cp(u),Al(r,u,rx(r[u],r))}),r}),PM=jM,AM=1,TM=2,MM=32,Nm=ln(function(r,a,u){var l=AM|TM;if(u.length){var o=Cu(u,kl(Nm));l|=MM}return Ka(a,l,r,u,o)});Nm.placeholder={};var kM=Nm;function ui(r,a,u){var l=-1,o=r.length;a<0&&(a=-a>o?0:o+a),u=u>o?o:u,u<0&&(u+=o),o=a>u?0:u-a>>>0,a>>>=0;for(var d=Array(o);++l<o;)d[l]=r[l+a];return d}function Lu(r,a,u){var l=r.length;return u=u===void 0?l:u,!a&&u>=l?r:ui(r,a,u)}var DM="\\ud800-\\udfff",NM="\\u0300-\\u036f",CM="\\ufe20-\\ufe2f",RM="\\u20d0-\\u20ff",IM=NM+CM+RM,LM="\\ufe0e\\ufe0f",BM="\\u200d",zM=RegExp("["+BM+DM+IM+LM+"]");function Dl(r){return zM.test(r)}function FM(r){return r.split("")}var ox="\\ud800-\\udfff",$M="\\u0300-\\u036f",WM="\\ufe20-\\ufe2f",UM="\\u20d0-\\u20ff",GM=$M+WM+UM,HM="\\ufe0e\\ufe0f",XM="["+ox+"]",im="["+GM+"]",am="\\ud83c[\\udffb-\\udfff]",YM="(?:"+im+"|"+am+")",ix="[^"+ox+"]",ax="(?:\\ud83c[\\udde6-\\uddff]){2}",ux="[\\ud800-\\udbff][\\udc00-\\udfff]",VM="\\u200d",cx=YM+"?",sx="["+HM+"]?",KM="(?:"+VM+"(?:"+[ix,ax,ux].join("|")+")"+sx+cx+")*",qM=sx+cx+KM,ZM="(?:"+[ix+im+"?",im,ax,ux,XM].join("|")+")",JM=RegExp(am+"(?="+am+")|"+ZM+qM,"g");function QM(r){return r.match(JM)||[]}function Ri(r){return Dl(r)?QM(r):FM(r)}function lx(r){return function(a){a=Dn(a);var u=Dl(a)?Ri(a):void 0,l=u?u[0]:a.charAt(0),o=u?Lu(u,1).join(""):a.slice(1);return l[r]()+o}}var ek=lx("toUpperCase"),Cm=ek;function fx(r){return Cm(Dn(r).toLowerCase())}function Rm(r,a,u,l){var o=-1,d=r==null?0:r.length;for(l&&d&&(u=r[++o]);++o<d;)u=a(u,r[o],o,r);return u}function Im(r){return function(a){return r==null?void 0:r[a]}}var tk={\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"},nk=Im(tk),rk=nk,ok=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ik="\\u0300-\\u036f",ak="\\ufe20-\\ufe2f",uk="\\u20d0-\\u20ff",ck=ik+ak+uk,sk="["+ck+"]",lk=RegExp(sk,"g");function px(r){return r=Dn(r),r&&r.replace(ok,rk).replace(lk,"")}var fk=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function pk(r){return r.match(fk)||[]}var dk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hk(r){return dk.test(r)}var dx="\\ud800-\\udfff",yk="\\u0300-\\u036f",vk="\\ufe20-\\ufe2f",gk="\\u20d0-\\u20ff",bk=yk+vk+gk,hx="\\u2700-\\u27bf",yx="a-z\\xdf-\\xf6\\xf8-\\xff",mk="\\xac\\xb1\\xd7\\xf7",_k="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ok="\\u2000-\\u206f",wk=" \\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",vx="A-Z\\xc0-\\xd6\\xd8-\\xde",xk="\\ufe0e\\ufe0f",gx=mk+_k+Ok+wk,bx="['\u2019]",cO="["+gx+"]",Ek="["+bk+"]",mx="\\d+",Sk="["+hx+"]",_x="["+yx+"]",Ox="[^"+dx+gx+mx+hx+yx+vx+"]",jk="\\ud83c[\\udffb-\\udfff]",Pk="(?:"+Ek+"|"+jk+")",Ak="[^"+dx+"]",wx="(?:\\ud83c[\\udde6-\\uddff]){2}",xx="[\\ud800-\\udbff][\\udc00-\\udfff]",_l="["+vx+"]",Tk="\\u200d",sO="(?:"+_x+"|"+Ox+")",Mk="(?:"+_l+"|"+Ox+")",lO="(?:"+bx+"(?:d|ll|m|re|s|t|ve))?",fO="(?:"+bx+"(?:D|LL|M|RE|S|T|VE))?",Ex=Pk+"?",Sx="["+xk+"]?",kk="(?:"+Tk+"(?:"+[Ak,wx,xx].join("|")+")"+Sx+Ex+")*",Dk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ck=Sx+Ex+kk,Rk="(?:"+[Sk,wx,xx].join("|")+")"+Ck,Ik=RegExp([_l+"?"+_x+"+"+lO+"(?="+[cO,_l,"$"].join("|")+")",Mk+"+"+fO+"(?="+[cO,_l+sO,"$"].join("|")+")",_l+"?"+sO+"+"+lO,_l+"+"+fO,Nk,Dk,mx,Rk].join("|"),"g");function Lk(r){return r.match(Ik)||[]}function jx(r,a,u){return r=Dn(r),a=u?void 0:a,a===void 0?hk(r)?Lk(r):pk(r):r.match(a)||[]}var Bk="['\u2019]",zk=RegExp(Bk,"g");function Nl(r){return function(a){return Rm(jx(px(a).replace(zk,"")),r,"")}}var Fk=Nl(function(r,a,u){return a=a.toLowerCase(),r+(u?fx(a):a)}),$k=Fk,Wk=Yc.isFinite,Uk=Math.min;function Lm(r){var a=Math[r];return function(u,l){if(u=Ga(u),l=l==null?0:Uk(nn(l),292),l&&Wk(u)){var o=(Dn(u)+"e").split("e"),d=a(o[0]+"e"+(+o[1]+l));return o=(Dn(d)+"e").split("e"),+(o[0]+"e"+(+o[1]-l))}return a(u)}}var Gk=Lm("ceil"),Hk=Gk;function Px(r){var a=$(r);return a.__chain__=!0,a}var Xk=Math.ceil,Yk=Math.max;function Vk(r,a,u){(u?_o(r,a,u):a===void 0)?a=1:a=Yk(nn(a),0);var l=r==null?0:r.length;if(!l||a<1)return[];for(var o=0,d=0,h=Array(Xk(l/a));o<l;)h[d++]=ui(r,o,o+=a);return h}function Jc(r,a,u){return r===r&&(u!==void 0&&(r=r<=u?r:u),a!==void 0&&(r=r>=a?r:a)),r}function Kk(r,a,u){return u===void 0&&(u=a,a=void 0),u!==void 0&&(u=Ga(u),u=u===u?u:0),a!==void 0&&(a=Ga(a),a=a===a?a:0),Jc(Ga(r),a,u)}var qk=1,Zk=4;function Jk(r,a){return a=typeof a=="function"?a:void 0,Kc(r,qk|Zk,a)}var Qk=4;function eD(r,a){return a=typeof a=="function"?a:void 0,Kc(r,Qk,a)}function tD(){return new ai(this.value(),this.__chain__)}function nD(r){for(var a=-1,u=r==null?0:r.length,l=0,o=[];++a<u;){var d=r[a];d&&(o[l++]=d)}return o}function rD(){var r=arguments.length;if(!r)return[];for(var a=Array(r-1),u=arguments[0],l=r;l--;)a[l-1]=arguments[l];return Rp(kn(u)?oi(u):[u],li(a,1))}var oD="Expected a function";function iD(r){var a=r==null?0:r.length,u=Qt;return r=a?sr(r,function(l){if(typeof l[1]!="function")throw new TypeError(oD);return[u(l[0]),l[1]]}):[],ln(function(l){for(var o=-1;++o<a;){var d=r[o];if(ii(d[0],this,l))return ii(d[1],this,l)}})}function Ax(r,a,u){var l=u.length;if(r==null)return!l;for(r=Object(r);l--;){var o=u[l],d=a[o],h=r[o];if(h===void 0&&!(o in r)||!d(h))return!1}return!0}function aD(r){var a=Bo(r);return function(u){return Ax(u,r,a)}}var uD=1;function cD(r){return aD(Kc(r,uD))}function sD(r,a){return a==null||Ax(r,a,Bo(a))}function lD(r,a,u,l){for(var o=-1,d=r==null?0:r.length;++o<d;){var h=r[o];a(l,h,u(h),r)}return l}function fD(r,a,u,l){return qc(r,function(o,d,h){a(l,o,u(o),h)}),l}function Cy(r,a){return function(u,l){var o=kn(u)?lD:fD,d=a?a():{};return o(u,r,Qt(l),d)}}var pD=Object.prototype,dD=pD.hasOwnProperty,hD=Cy(function(r,a,u){dD.call(r,u)?++r[u]:Al(r,u,1)}),yD=hD;function vD(r,a){var u=Mp(r);return a==null?u:u2(u,a)}var gD=8;function Bm(r,a,u){a=u?void 0:a;var l=Ka(r,gD,void 0,void 0,void 0,void 0,void 0,a);return l.placeholder=Bm.placeholder,l}Bm.placeholder={};var bD=16;function zm(r,a,u){a=u?void 0:a;var l=Ka(r,bD,void 0,void 0,void 0,void 0,void 0,a);return l.placeholder=zm.placeholder,l}zm.placeholder={};function mD(r,a){return r==null||r!==r?a:r}var Tx=Object.prototype,_D=Tx.hasOwnProperty,OD=ln(function(r,a){r=Object(r);var u=-1,l=a.length,o=l>2?a[2]:void 0;for(o&&_o(a[0],a[1],o)&&(l=1);++u<l;)for(var d=a[u],h=Ya(d),b=-1,g=h.length;++b<g;){var E=h[b],j=r[E];(j===void 0||Tl(j,Tx[E])&&!_D.call(r,E))&&(r[E]=d[E])}return r}),wD=OD;function Mx(r,a,u,l,o,d){return Xa(r)&&Xa(a)&&(d.set(a,r),Aw(r,a,void 0,Mx,d),d.delete(a)),r}var xD=Dp(function(r,a,u,l){Aw(r,a,u,l)}),kx=xD,ED=ln(function(r){return r.push(void 0,Mx),ii(kx,void 0,r)}),SD=ED,jD="Expected a function";function Dx(r,a,u){if(typeof r!="function")throw new TypeError(jD);return setTimeout(function(){r.apply(void 0,u)},a)}var PD=ln(function(r,a){return Dx(r,1,a)}),AD=PD,TD=ln(function(r,a,u){return Dx(r,Ga(a)||0,u)}),MD=TD,kD=200;function zp(r,a,u,l){var o=-1,d=xm,h=!0,b=r.length,g=[],E=a.length;if(!b)return g;u&&(a=sr(a,ha(u))),l?(d=Mw,h=!1):a.length>=kD&&(d=em,h=!1,a=new Tw(a));e:for(;++o<b;){var j=r[o],P=u==null?j:u(j);if(j=l||j!==0?j:0,h&&P===P){for(var k=E;k--;)if(a[k]===P)continue e;g.push(j)}else d(a,P,l)||g.push(j)}return g}var DD=ln(function(r,a){return Sr(r)?zp(r,li(a,1,Sr,!0)):[]}),ND=DD;function Lo(r){var a=r==null?0:r.length;return a?r[a-1]:void 0}var CD=ln(function(r,a){var u=Lo(a);return Sr(u)&&(u=void 0),Sr(r)?zp(r,li(a,1,Sr,!0),Qt(u)):[]}),RD=CD,ID=ln(function(r,a){var u=Lo(a);return Sr(u)&&(u=void 0),Sr(r)?zp(r,li(a,1,Sr,!0),void 0,u):[]}),LD=ID,BD=ky(function(r,a){return r/a},1),zD=BD;function FD(r,a,u){var l=r==null?0:r.length;return l?(a=u||a===void 0?1:nn(a),ui(r,a<0?0:a,l)):[]}function $D(r,a,u){var l=r==null?0:r.length;return l?(a=u||a===void 0?1:nn(a),a=l-a,ui(r,0,a<0?0:a)):[]}function Ry(r,a,u,l){for(var o=r.length,d=l?o:-1;(l?d--:++d<o)&&a(r[d],d,r););return u?ui(r,l?0:d,l?d+1:o):ui(r,l?d+1:0,l?o:d)}function WD(r,a){return r&&r.length?Ry(r,Qt(a),!0,!0):[]}function UD(r,a){return r&&r.length?Ry(r,Qt(a),!0):[]}function va(r){return typeof r=="function"?r:ci}function pO(r,a){var u=kn(r)?Ii:qc;return u(r,va(a))}function GD(r,a){for(var u=r==null?0:r.length;u--&&a(r[u],u,r)!==!1;);return r}var HD=c2(!0),Nx=HD;function Fm(r,a){return r&&Nx(r,a,Bo)}var XD=s2(Fm,!0),Cx=XD;function dO(r,a){var u=kn(r)?GD:Cx;return u(r,va(a))}function YD(r,a,u){r=Dn(r),a=Ci(a);var l=r.length;u=u===void 0?l:Jc(nn(u),0,l);var o=u;return u-=a.length,u>=0&&r.slice(u,o)==a}function VD(r,a){return sr(a,function(u){return[u,r[u]]})}function KD(r){var a=-1,u=Array(r.size);return r.forEach(function(l){u[++a]=[l,l]}),u}var qD="[object Map]",ZD="[object Set]";function Rx(r){return function(a){var u=Ip(a);return u==qD?kw(a):u==ZD?KD(a):VD(a,r(a))}}var JD=Rx(Bo),hO=JD,QD=Rx(Ya),yO=QD,eN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tN=Im(eN),nN=tN,Ix=/[&<>"']/g,rN=RegExp(Ix.source);function Lx(r){return r=Dn(r),r&&rN.test(r)?r.replace(Ix,nN):r}var Bx=/[\\^$.*+?()[\]{}|]/g,oN=RegExp(Bx.source);function iN(r){return r=Dn(r),r&&oN.test(r)?r.replace(Bx,"\\$&"):r}function zx(r,a){for(var u=-1,l=r==null?0:r.length;++u<l;)if(!a(r[u],u,r))return!1;return!0}function aN(r,a){var u=!0;return qc(r,function(l,o,d){return u=!!a(l,o,d),u}),u}function uN(r,a,u){var l=kn(r)?zx:aN;return u&&_o(r,a,u)&&(a=void 0),l(r,Qt(a))}var cN=4294967295;function Fx(r){return r?Jc(nn(r),0,cN):0}function sN(r,a,u,l){var o=r.length;for(u=nn(u),u<0&&(u=-u>o?0:o+u),l=l===void 0||l>o?o:nn(l),l<0&&(l+=o),l=u>l?0:Fx(l);u<l;)r[u++]=a;return r}function lN(r,a,u,l){var o=r==null?0:r.length;return o?(u&&typeof u!="number"&&_o(r,a,u)&&(u=0,l=o),sN(r,a,u,l)):[]}function $x(r,a){var u=[];return qc(r,function(l,o,d){a(l,o,d)&&u.push(l)}),u}function fN(r,a){var u=kn(r)?Zc:$x;return u(r,Qt(a))}function Wx(r,a,u){var l;return u(r,function(o,d,h){if(a(o,d,h))return l=d,!1}),l}function pN(r,a){return Wx(r,Qt(a),Va)}var dN=Math.max,hN=Math.min;function Ux(r,a,u){var l=r==null?0:r.length;if(!l)return-1;var o=l-1;return u!==void 0&&(o=nn(u),o=u<0?dN(l+o,0):hN(o,l-1)),Dw(r,Qt(a),o,!0)}var yN=rT(Ux),vN=yN;function gN(r,a){return Wx(r,Qt(a),Fm)}function vO(r){return r&&r.length?r[0]:void 0}var bN=1/0;function mN(r,a){return li(Em(r,a),bN)}function _N(r,a,u){return u=u===void 0?1:nn(u),li(Em(r,a),u)}function ON(r,a){var u=r==null?0:r.length;return u?(a=a===void 0?1:nn(a),li(r,a)):[]}var wN=512;function xN(r){return Ka(r,wN)}var EN=Lm("floor"),SN=EN,jN="Expected a function",PN=8,AN=32,TN=128,MN=256;function Gx(r){return Ru(function(a){var u=a.length,l=u,o=ai.prototype.thru;for(r&&a.reverse();l--;){var d=a[l];if(typeof d!="function")throw new TypeError(jN);if(o&&!h&&iy(d)=="wrapper")var h=new ai([],!0)}for(l=h?l:u;++l<u;){d=a[l];var b=iy(d),g=b=="wrapper"?Tm(d):void 0;g&&om(g[0])&&g[1]==(TN|PN|AN|MN)&&!g[4].length&&g[9]==1?h=h[iy(g[0])].apply(h,g[3]):h=d.length==1&&om(d)?h[b]():h.thru(d)}return function(){var E=arguments,j=E[0];if(h&&E.length==1&&kn(j))return h.plant(j).value();for(var P=0,k=u?a[P].apply(this,E):j;++P<u;)k=a[P].call(this,k);return k}})}var kN=Gx(),DN=kN,NN=Gx(!0),CN=NN;function RN(r,a){return r==null?r:l2(r,va(a),Ya)}function IN(r,a){return r==null?r:Nx(r,va(a),Ya)}function LN(r,a){return r&&Va(r,va(a))}function BN(r,a){return r&&Fm(r,va(a))}function Iy(r,a){return Zc(a,function(u){return Ml(r[u])})}function zN(r){return r==null?[]:Iy(r,Bo(r))}function FN(r){return r==null?[]:Iy(r,Ya(r))}var $N=Object.prototype,WN=$N.hasOwnProperty,UN=Cy(function(r,a,u){WN.call(r,u)?r[u].push(a):Al(r,u,[a])}),GN=UN;function $m(r,a){return r>a}function Ly(r){return function(a,u){return typeof a=="string"&&typeof u=="string"||(a=Ga(a),u=Ga(u)),r(a,u)}}var HN=Ly($m),XN=HN,YN=Ly(function(r,a){return r>=a}),VN=YN,KN=Object.prototype,qN=KN.hasOwnProperty;function ZN(r,a){return r!=null&&qN.call(r,a)}function JN(r,a){return r!=null&&f2(r,a,ZN)}var QN=Math.max,eC=Math.min;function tC(r,a,u){return r>=eC(a,u)&&r<QN(a,u)}function nC(r,a,u){return a=Nu(a),u===void 0?(u=a,a=0):u=Nu(u),r=Ga(r),tC(r,a,u)}var rC="[object String]";function By(r){return typeof r=="string"||!kn(r)&&si(r)&&Iu(r)==rC}function Wm(r,a){return sr(a,function(u){return r[u]})}function Cl(r){return r==null?[]:Wm(r,Bo(r))}var oC=Math.max;function iC(r,a,u,l){r=Vc(r)?r:Cl(r),u=u&&!l?nn(u):0;var o=r.length;return u<0&&(u=oC(o+u,0)),By(r)?u<=o&&r.indexOf(a,u)>-1:!!o&&Lp(r,a,u)>-1}var aC=Math.max;function uC(r,a,u){var l=r==null?0:r.length;if(!l)return-1;var o=u==null?0:nn(u);return o<0&&(o=aC(l+o,0)),Lp(r,a,o)}function cC(r){var a=r==null?0:r.length;return a?ui(r,0,-1):[]}var sC=Math.min;function Um(r,a,u){for(var l=u?Mw:xm,o=r[0].length,d=r.length,h=d,b=Array(d),g=1/0,E=[];h--;){var j=r[h];h&&a&&(j=sr(j,ha(a))),g=sC(j.length,g),b[h]=!u&&(a||o>=120&&j.length>=120)?new Tw(h&&j):void 0}j=r[0];var P=-1,k=b[0];e:for(;++P<o&&E.length<g;){var M=j[P],R=a?a(M):M;if(M=u||M!==0?M:0,!(k?em(k,R):l(E,R,u))){for(h=d;--h;){var N=b[h];if(!(N?em(N,R):l(r[h],R,u)))continue e}k&&k.push(R),E.push(M)}}return E}function Gm(r){return Sr(r)?r:[]}var lC=ln(function(r){var a=sr(r,Gm);return a.length&&a[0]===r[0]?Um(a):[]}),fC=lC,pC=ln(function(r){var a=Lo(r),u=sr(r,Gm);return a===Lo(u)?a=void 0:u.pop(),u.length&&u[0]===r[0]?Um(u,Qt(a)):[]}),dC=pC,hC=ln(function(r){var a=Lo(r),u=sr(r,Gm);return a=typeof a=="function"?a:void 0,a&&u.pop(),u.length&&u[0]===r[0]?Um(u,void 0,a):[]}),yC=hC;function vC(r,a,u,l){return Va(r,function(o,d,h){a(l,u(o),d,h)}),l}function Hx(r,a){return function(u,l){return vC(u,r,a(l),{})}}var gC=Object.prototype,bC=gC.toString,mC=Hx(function(r,a,u){a!=null&&typeof a.toString!="function"&&(a=bC.call(a)),r[a]=u},Nw(ci)),_C=mC,Xx=Object.prototype,OC=Xx.hasOwnProperty,wC=Xx.toString,xC=Hx(function(r,a,u){a!=null&&typeof a.toString!="function"&&(a=wC.call(a)),OC.call(r,a)?r[a].push(u):r[a]=[u]},Qt),EC=xC;function Yx(r,a){return a.length<2?r:Ay(r,ui(a,0,-1))}function Fp(r,a,u){a=Ty(a,r),r=Yx(r,a);var l=r==null?r:r[Cp(Lo(a))];return l==null?void 0:ii(l,r,u)}var SC=ln(Fp),jC=SC,PC=ln(function(r,a,u){var l=-1,o=typeof a=="function",d=Vc(r)?Array(r.length):[];return qc(r,function(h){d[++l]=o?ii(a,h,u):Fp(h,a,u)}),d}),AC=PC,TC="[object ArrayBuffer]";function MC(r){return si(r)&&Iu(r)==TC}var gO=jl&&jl.isArrayBuffer,kC=gO?ha(gO):MC,DC=kC,NC="[object Boolean]";function CC(r){return r===!0||r===!1||si(r)&&Iu(r)==NC}var RC="[object Date]";function IC(r){return si(r)&&Iu(r)==RC}var bO=jl&&jl.isDate,LC=bO?ha(bO):IC,BC=LC;function zC(r){return si(r)&&r.nodeType===1&&!Py(r)}var FC="[object Map]",$C="[object Set]",WC=Object.prototype,UC=WC.hasOwnProperty;function GC(r){if(r==null)return!0;if(Vc(r)&&(kn(r)||typeof r=="string"||typeof r.splice=="function"||Sm(r)||jm(r)||Cw(r)))return!r.length;var a=Ip(r);if(a==FC||a==$C)return!r.size;if(Sw(r))return!Rw(r).length;for(var u in r)if(UC.call(r,u))return!1;return!0}function HC(r,a,u){u=typeof u=="function"?u:void 0;var l=u?u(r,a):void 0;return l===void 0?p2(r,a,void 0,u):!!l}var XC=Yc.isFinite;function YC(r){return typeof r=="number"&&XC(r)}function Vx(r){return typeof r=="number"&&r==nn(r)}function VC(r,a){return r===a||Iw(r,a,Lw(a))}function KC(r,a,u){return u=typeof u=="function"?u:void 0,Iw(r,a,Lw(a),u)}var qC="[object Number]";function Kx(r){return typeof r=="number"||si(r)&&Iu(r)==qC}function ZC(r){return Kx(r)&&r!=+r}var JC=d2?Ml:Bw,QC=JC,eR="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function tR(r){if(QC(r))throw new Error(eR);return h2(r)}function nR(r){return r===null}var rR="[object RegExp]";function oR(r){return si(r)&&Iu(r)==rR}var mO=jl&&jl.isRegExp,iR=mO?ha(mO):oR,Hm=iR,_O=9007199254740991;function aR(r){return Vx(r)&&r>=-_O&&r<=_O}var uR="[object WeakMap]";function cR(r){return si(r)&&Ip(r)==uR}var sR="[object WeakSet]";function lR(r){return si(r)&&Iu(r)==sR}var fR=1;function pR(r){return Qt(typeof r=="function"?r:Kc(r,fR))}var dR=Array.prototype,hR=dR.join;function yR(r,a){return r==null?"":hR.call(r,a)}var vR=Nl(function(r,a,u){return r+(u?"-":"")+a.toLowerCase()}),gR=vR,bR=Cy(function(r,a,u){Al(r,u,a)}),mR=bR;function _R(r,a,u){for(var l=u+1;l--;)if(r[l]===a)return l;return l}var OR=Math.max,wR=Math.min;function xR(r,a,u){var l=r==null?0:r.length;if(!l)return-1;var o=l;return u!==void 0&&(o=nn(u),o=o<0?OR(l+o,0):wR(o,l-1)),a===a?_R(r,a,o):Dw(r,y2,o,!0)}var ER=Nl(function(r,a,u){return r+(u?" ":"")+a.toLowerCase()}),SR=ER,jR=lx("toLowerCase"),PR=jR;function Xm(r,a){return r<a}var AR=Ly(Xm),TR=AR,MR=Ly(function(r,a){return r<=a}),kR=MR;function DR(r,a){var u={};return a=Qt(a),Va(r,function(l,o,d){Al(u,a(l,o,d),l)}),u}function NR(r,a){var u={};return a=Qt(a),Va(r,function(l,o,d){Al(u,o,a(l,o,d))}),u}var CR=1;function RR(r){return v2(Kc(r,CR))}var IR=1;function LR(r,a){return g2(r,Kc(a,IR))}function zy(r,a,u){for(var l=-1,o=r.length;++l<o;){var d=r[l],h=a(d);if(h!=null&&(b===void 0?h===h&&!Ha(h):u(h,b)))var b=h,g=d}return g}function BR(r){return r&&r.length?zy(r,ci,$m):void 0}function zR(r,a){return r&&r.length?zy(r,Qt(a),$m):void 0}function Ym(r,a){for(var u,l=-1,o=r.length;++l<o;){var d=a(r[l]);d!==void 0&&(u=u===void 0?d:u+d)}return u}var FR=0/0;function qx(r,a){var u=r==null?0:r.length;return u?Ym(r,a)/u:FR}function $R(r){return qx(r,ci)}function WR(r,a){return qx(r,Qt(a))}var UR=ln(function(r,a){return function(u){return Fp(u,r,a)}}),GR=UR,HR=ln(function(r,a){return function(u){return Fp(r,u,a)}}),XR=HR;function YR(r){return r&&r.length?zy(r,ci,Xm):void 0}function VR(r,a){return r&&r.length?zy(r,Qt(a),Xm):void 0}function Zx(r,a,u){var l=Bo(a),o=Iy(a,l),d=!(Xa(u)&&"chain"in u)||!!u.chain,h=Ml(r);return Ii(o,function(b){var g=a[b];r[b]=g,h&&(r.prototype[b]=function(){var E=this.__chain__;if(d||E){var j=r(this.__wrapped__),P=j.__actions__=oi(this.__actions__);return P.push({func:g,args:arguments,thisArg:r}),j.__chain__=E,j}return g.apply(r,Rp([this.value()],arguments))})}),r}var KR=ky(function(r,a){return r*a},1),qR=KR,ZR="Expected a function";function $p(r){if(typeof r!="function")throw new TypeError(ZR);return function(){var a=arguments;switch(a.length){case 0:return!r.call(this);case 1:return!r.call(this,a[0]);case 2:return!r.call(this,a[0],a[1]);case 3:return!r.call(this,a[0],a[1],a[2])}return!r.apply(this,a)}}function JR(r){for(var a,u=[];!(a=r.next()).done;)u.push(a.value);return u}var QR="[object Map]",eI="[object Set]",qb=sy?sy.iterator:void 0;function Jx(r){if(!r)return[];if(Vc(r))return By(r)?Ri(r):oi(r);if(qb&&r[qb])return JR(r[qb]());var a=Ip(r),u=a==QR?kw:a==eI?b2:Cl;return u(r)}function tI(){this.__values__===void 0&&(this.__values__=Jx(this.value()));var r=this.__index__>=this.__values__.length,a=r?void 0:this.__values__[this.__index__++];return{done:r,value:a}}function Qx(r,a){var u=r.length;if(!!u)return a+=a<0?u:0,kp(a,u)?r[a]:void 0}function nI(r,a){return r&&r.length?Qx(r,nn(a)):void 0}function rI(r){return r=nn(r),ln(function(a){return Qx(a,r)})}function Vm(r,a){return a=Ty(a,r),r=Yx(r,a),r==null||delete r[Cp(Lo(a))]}function oI(r){return Py(r)?void 0:r}var iI=1,aI=2,uI=4,cI=Ru(function(r,a){var u={};if(r==null)return u;var l=!1;a=sr(a,function(d){return d=Ty(d,r),l||(l=d.length>1),d}),Np(r,zw(r),u),l&&(u=Kc(u,iI|aI|uI,oI));for(var o=a.length;o--;)Vm(u,a[o]);return u}),sI=cI;function eE(r,a){if(r==null)return{};var u=sr(zw(r),function(l){return[l]});return a=Qt(a),m2(r,u,function(l,o){return a(l,o[0])})}function lI(r,a){return eE(r,$p(Qt(a)))}function fI(r){return nx(2,r)}function pI(r,a){var u=r.length;for(r.sort(a);u--;)r[u]=r[u].value;return r}function tE(r,a){if(r!==a){var u=r!==void 0,l=r===null,o=r===r,d=Ha(r),h=a!==void 0,b=a===null,g=a===a,E=Ha(a);if(!b&&!E&&!d&&r>a||d&&h&&g&&!b&&!E||l&&h&&g||!u&&g||!o)return 1;if(!l&&!d&&!E&&r<a||E&&u&&o&&!l&&!d||b&&u&&o||!h&&o||!g)return-1}return 0}function dI(r,a,u){for(var l=-1,o=r.criteria,d=a.criteria,h=o.length,b=u.length;++l<h;){var g=tE(o[l],d[l]);if(g){if(l>=b)return g;var E=u[l];return g*(E=="desc"?-1:1)}}return r.index-a.index}function nE(r,a,u){a.length?a=sr(a,function(d){return kn(d)?function(h){return Ay(h,d.length===1?d[0]:d)}:d}):a=[ci];var l=-1;a=sr(a,ha(Qt));var o=_2(r,function(d,h,b){var g=sr(a,function(E){return E(d)});return{criteria:g,index:++l,value:d}});return pI(o,function(d,h){return dI(d,h,u)})}function hI(r,a,u,l){return r==null?[]:(kn(a)||(a=a==null?[]:[a]),u=l?void 0:u,kn(u)||(u=u==null?[]:[u]),nE(r,a,u))}function Km(r){return Ru(function(a){return a=sr(a,ha(Qt)),ln(function(u){var l=this;return r(a,function(o){return ii(o,l,u)})})})}var yI=Km(sr),vI=yI,gI=ln,bI=gI,mI=Math.min,_I=bI(function(r,a){a=a.length==1&&kn(a[0])?sr(a[0],ha(Qt)):sr(li(a,1),ha(Qt));var u=a.length;return ln(function(l){for(var o=-1,d=mI(l.length,u);++o<d;)l[o]=a[o].call(this,l[o]);return ii(r,this,l)})}),OI=_I,wI=Km(zx),xI=wI,EI=Km(Fw),SI=EI,jI=9007199254740991,PI=Math.floor;function um(r,a){var u="";if(!r||a<1||a>jI)return u;do a%2&&(u+=r),a=PI(a/2),a&&(r+=r);while(a);return u}var AI=$w("length"),TI=AI,rE="\\ud800-\\udfff",MI="\\u0300-\\u036f",kI="\\ufe20-\\ufe2f",DI="\\u20d0-\\u20ff",NI=MI+kI+DI,CI="\\ufe0e\\ufe0f",RI="["+rE+"]",cm="["+NI+"]",sm="\\ud83c[\\udffb-\\udfff]",II="(?:"+cm+"|"+sm+")",oE="[^"+rE+"]",iE="(?:\\ud83c[\\udde6-\\uddff]){2}",aE="[\\ud800-\\udbff][\\udc00-\\udfff]",LI="\\u200d",uE=II+"?",cE="["+CI+"]?",BI="(?:"+LI+"(?:"+[oE,iE,aE].join("|")+")"+cE+uE+")*",zI=cE+uE+BI,FI="(?:"+[oE+cm+"?",cm,iE,aE,RI].join("|")+")",OO=RegExp(sm+"(?="+sm+")|"+FI+zI,"g");function $I(r){for(var a=OO.lastIndex=0;OO.test(r);)++a;return a}function Rl(r){return Dl(r)?$I(r):TI(r)}var WI=Math.ceil;function py(r,a){a=a===void 0?" ":Ci(a);var u=a.length;if(u<2)return u?um(a,r):a;var l=um(a,WI(r/Rl(a)));return Dl(a)?Lu(Ri(l),0,r).join(""):l.slice(0,r)}var UI=Math.ceil,GI=Math.floor;function HI(r,a,u){r=Dn(r),a=nn(a);var l=a?Rl(r):0;if(!a||l>=a)return r;var o=(a-l)/2;return py(GI(o),u)+r+py(UI(o),u)}function XI(r,a,u){r=Dn(r),a=nn(a);var l=a?Rl(r):0;return a&&l<a?r+py(a-l,u):r}function YI(r,a,u){r=Dn(r),a=nn(a);var l=a?Rl(r):0;return a&&l<a?py(a-l,u)+r:r}var VI=/^\s+/,KI=Yc.parseInt;function qI(r,a,u){return u||a==null?a=0:a&&(a=+a),KI(Dn(r).replace(VI,""),a||0)}var ZI=32,qm=ln(function(r,a){var u=Cu(a,kl(qm));return Ka(r,ZI,void 0,a,u)});qm.placeholder={};var sE=qm,JI=64,Zm=ln(function(r,a){var u=Cu(a,kl(Zm));return Ka(r,JI,void 0,a,u)});Zm.placeholder={};var QI=Zm,e3=Cy(function(r,a,u){r[u?0:1].push(a)},function(){return[[],[]]}),t3=e3;function n3(r){for(var a,u=this;u instanceof Dy;){var l=qw(u);l.__index__=0,l.__values__=void 0,a?o.__wrapped__=l:a=l;var o=l;u=u.__wrapped__}return o.__wrapped__=r,a}function r3(r){return function(a){return r==null?void 0:Ay(r,a)}}function o3(r,a,u,l){for(var o=u-1,d=r.length;++o<d;)if(l(r[o],a))return o;return-1}var i3=Array.prototype,wO=i3.splice;function Jm(r,a,u,l){var o=l?o3:Lp,d=-1,h=a.length,b=r;for(r===a&&(a=oi(a)),u&&(b=sr(r,ha(u)));++d<h;)for(var g=0,E=a[d],j=u?u(E):E;(g=o(b,j,g,l))>-1;)b!==r&&wO.call(b,g,1),wO.call(r,g,1);return r}function lE(r,a){return r&&r.length&&a&&a.length?Jm(r,a):r}var a3=ln(lE),u3=a3;function c3(r,a,u){return r&&r.length&&a&&a.length?Jm(r,a,Qt(u)):r}function s3(r,a,u){return r&&r.length&&a&&a.length?Jm(r,a,void 0,u):r}var l3=Array.prototype,f3=l3.splice;function fE(r,a){for(var u=r?a.length:0,l=u-1;u--;){var o=a[u];if(u==l||o!==d){var d=o;kp(o)?f3.call(r,o,1):Vm(r,o)}}return r}var p3=Ru(function(r,a){var u=r==null?0:r.length,l=Mm(r,a);return fE(r,sr(a,function(o){return kp(o,u)?+o:o}).sort(tE)),l}),d3=p3,h3=Math.floor,y3=Math.random;function Qm(r,a){return r+h3(y3()*(a-r+1))}var v3=parseFloat,g3=Math.min,b3=Math.random;function m3(r,a,u){if(u&&typeof u!="boolean"&&_o(r,a,u)&&(a=u=void 0),u===void 0&&(typeof a=="boolean"?(u=a,a=void 0):typeof r=="boolean"&&(u=r,r=void 0)),r===void 0&&a===void 0?(r=0,a=1):(r=Nu(r),a===void 0?(a=r,r=0):a=Nu(a)),r>a){var l=r;r=a,a=l}if(u||r%1||a%1){var o=b3();return g3(r+o*(a-r+v3("1e-"+((o+"").length-1))),a)}return Qm(r,a)}var _3=Math.ceil,O3=Math.max;function w3(r,a,u,l){for(var o=-1,d=O3(_3((a-r)/(u||1)),0),h=Array(d);d--;)h[l?d:++o]=r,r+=u;return h}function pE(r){return function(a,u,l){return l&&typeof l!="number"&&_o(a,u,l)&&(u=l=void 0),a=Nu(a),u===void 0?(u=a,a=0):u=Nu(u),l=l===void 0?a<u?1:-1:Nu(l),w3(a,u,l,r)}}var x3=pE(),E3=x3,S3=pE(!0),j3=S3,P3=256,A3=Ru(function(r,a){return Ka(r,P3,void 0,void 0,void 0,a)}),T3=A3;function dE(r,a,u,l,o){return o(r,function(d,h,b){u=l?(l=!1,d):a(u,d,h,b)}),u}function M3(r,a,u){var l=kn(r)?Rm:dE,o=arguments.length<3;return l(r,Qt(a),u,o,qc)}function k3(r,a,u,l){var o=r==null?0:r.length;for(l&&o&&(u=r[--o]);o--;)u=a(u,r[o],o,r);return u}function D3(r,a,u){var l=kn(r)?k3:dE,o=arguments.length<3;return l(r,Qt(a),u,o,Cx)}function N3(r,a){var u=kn(r)?Zc:$x;return u(r,$p(Qt(a)))}function C3(r,a){var u=[];if(!(r&&r.length))return u;var l=-1,o=[],d=r.length;for(a=Qt(a);++l<d;){var h=r[l];a(h,l,r)&&(u.push(h),o.push(l))}return fE(r,o),u}function R3(r,a,u){return(u?_o(r,a,u):a===void 0)?a=1:a=nn(a),um(Dn(r),a)}function I3(){var r=arguments,a=Dn(r[0]);return r.length<3?a:a.replace(r[1],r[2])}var L3="Expected a function";function B3(r,a){if(typeof r!="function")throw new TypeError(L3);return a=a===void 0?a:nn(a),ln(r,a)}function z3(r,a,u){a=Ty(a,r);var l=-1,o=a.length;for(o||(o=1,r=void 0);++l<o;){var d=r==null?void 0:r[Cp(a[l])];d===void 0&&(l=o,d=u),r=Ml(d)?d.call(r):d}return r}var F3=Array.prototype,$3=F3.reverse;function lm(r){return r==null?r:$3.call(r)}var W3=Lm("round"),U3=W3;function hE(r){var a=r.length;return a?r[Qm(0,a-1)]:void 0}function G3(r){return hE(Cl(r))}function H3(r){var a=kn(r)?hE:G3;return a(r)}function Fy(r,a){var u=-1,l=r.length,o=l-1;for(a=a===void 0?l:a;++u<a;){var d=Qm(u,o),h=r[d];r[d]=r[u],r[u]=h}return r.length=a,r}function X3(r,a){return Fy(oi(r),Jc(a,0,r.length))}function Y3(r,a){var u=Cl(r);return Fy(u,Jc(a,0,u.length))}function V3(r,a,u){(u?_o(r,a,u):a===void 0)?a=1:a=nn(a);var l=kn(r)?X3:Y3;return l(r,a)}function K3(r,a,u,l){return l=typeof l=="function"?l:void 0,r==null?r:Pm(r,a,u,l)}function q3(r){return Fy(oi(r))}function Z3(r){return Fy(Cl(r))}function J3(r){var a=kn(r)?q3:Z3;return a(r)}var Q3="[object Map]",eL="[object Set]";function tL(r){if(r==null)return 0;if(Vc(r))return By(r)?Rl(r):r.length;var a=Ip(r);return a==Q3||a==eL?r.size:Rw(r).length}function nL(r,a,u){var l=r==null?0:r.length;return l?(u&&typeof u!="number"&&_o(r,a,u)?(a=0,u=l):(a=a==null?0:nn(a),u=u===void 0?l:nn(u)),ui(r,a,u)):[]}var rL=Nl(function(r,a,u){return r+(u?"_":"")+a.toLowerCase()}),oL=rL;function iL(r,a){var u;return qc(r,function(l,o,d){return u=a(l,o,d),!u}),!!u}function aL(r,a,u){var l=kn(r)?Fw:iL;return u&&_o(r,a,u)&&(a=void 0),l(r,Qt(a))}var uL=ln(function(r,a){if(r==null)return[];var u=a.length;return u>1&&_o(r,a[0],a[1])?a=[]:u>2&&_o(a[0],a[1],a[2])&&(a=[a[0]]),nE(r,li(a,1),[])}),cL=uL,sL=4294967295,lL=sL-1,fL=Math.floor,pL=Math.min;function e0(r,a,u,l){var o=0,d=r==null?0:r.length;if(d===0)return 0;a=u(a);for(var h=a!==a,b=a===null,g=Ha(a),E=a===void 0;o<d;){var j=fL((o+d)/2),P=u(r[j]),k=P!==void 0,M=P===null,R=P===P,N=Ha(P);if(h)var L=l||R;else E?L=R&&(l||k):b?L=R&&k&&(l||!M):g?L=R&&k&&!M&&(l||!N):M||N?L=!1:L=l?P<=a:P<a;L?o=j+1:d=j}return pL(d,lL)}var dL=4294967295,hL=dL>>>1;function $y(r,a,u){var l=0,o=r==null?l:r.length;if(typeof a=="number"&&a===a&&o<=hL){for(;l<o;){var d=l+o>>>1,h=r[d];h!==null&&!Ha(h)&&(u?h<=a:h<a)?l=d+1:o=d}return o}return e0(r,a,ci,u)}function yL(r,a){return $y(r,a)}function vL(r,a,u){return e0(r,a,Qt(u))}function gL(r,a){var u=r==null?0:r.length;if(u){var l=$y(r,a);if(l<u&&Tl(r[l],a))return l}return-1}function bL(r,a){return $y(r,a,!0)}function mL(r,a,u){return e0(r,a,Qt(u),!0)}function _L(r,a){var u=r==null?0:r.length;if(u){var l=$y(r,a,!0)-1;if(Tl(r[l],a))return l}return-1}function yE(r,a){for(var u=-1,l=r.length,o=0,d=[];++u<l;){var h=r[u],b=a?a(h):h;if(!u||!Tl(b,g)){var g=b;d[o++]=h===0?0:h}}return d}function OL(r){return r&&r.length?yE(r):[]}function wL(r,a){return r&&r.length?yE(r,Qt(a)):[]}var xL=4294967295;function EL(r,a,u){return u&&typeof u!="number"&&_o(r,a,u)&&(a=u=void 0),u=u===void 0?xL:u>>>0,u?(r=Dn(r),r&&(typeof a=="string"||a!=null&&!Hm(a))&&(a=Ci(a),!a&&Dl(r))?Lu(Ri(r),0,u):r.split(a,u)):[]}var SL="Expected a function",jL=Math.max;function PL(r,a){if(typeof r!="function")throw new TypeError(SL);return a=a==null?0:jL(nn(a),0),ln(function(u){var l=u[a],o=Lu(u,0,a);return l&&Rp(o,l),ii(r,this,o)})}var AL=Nl(function(r,a,u){return r+(u?" ":"")+Cm(a)}),TL=AL;function ML(r,a,u){return r=Dn(r),u=u==null?0:Jc(nn(u),0,r.length),a=Ci(a),r.slice(u,u+a.length)==a}function kL(){return{}}function DL(){return""}function NL(){return!0}var CL=ky(function(r,a){return r-a},0),RL=CL;function IL(r){return r&&r.length?Ym(r,ci):0}function LL(r,a){return r&&r.length?Ym(r,Qt(a)):0}function BL(r){var a=r==null?0:r.length;return a?ui(r,1,a):[]}function zL(r,a,u){return r&&r.length?(a=u||a===void 0?1:nn(a),ui(r,0,a<0?0:a)):[]}function FL(r,a,u){var l=r==null?0:r.length;return l?(a=u||a===void 0?1:nn(a),a=l-a,ui(r,a<0?0:a,l)):[]}function $L(r,a){return r&&r.length?Ry(r,Qt(a),!1,!0):[]}function WL(r,a){return r&&r.length?Ry(r,Qt(a)):[]}function UL(r,a){return a(r),r}var vE=Object.prototype,GL=vE.hasOwnProperty;function xO(r,a,u,l){return r===void 0||Tl(r,vE[u])&&!GL.call(l,u)?a:r}var HL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function XL(r){return"\\"+HL[r]}var YL=/<%=([\s\S]+?)%>/g,gE=YL,VL=/<%-([\s\S]+?)%>/g,KL=VL,qL=/<%([\s\S]+?)%>/g,ZL=qL,JL={escape:KL,evaluate:ZL,interpolate:gE,variable:"",imports:{_:{escape:Lx}}},fm=JL,QL="Invalid `variable` option passed into `_.template`",e4=/\b__p \+= '';/g,t4=/\b(__p \+=) '' \+/g,n4=/(__e\(.*?\)|\b__t\)) \+\n'';/g,r4=/[()=,{}\[\]\/\s]/,o4=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ny=/($^)/,i4=/['\n\r\u2028\u2029\\]/g,a4=Object.prototype,EO=a4.hasOwnProperty;function u4(r,a,u){var l=fm.imports._.templateSettings||fm;u&&_o(r,a,u)&&(a=void 0),r=Dn(r),a=fy({},a,l,xO);var o=fy({},a.imports,l.imports,xO),d=Bo(o),h=Wm(o,d),b,g,E=0,j=a.interpolate||ny,P="__p += '",k=RegExp((a.escape||ny).source+"|"+j.source+"|"+(j===gE?o4:ny).source+"|"+(a.evaluate||ny).source+"|$","g"),M=EO.call(a,"sourceURL")?"//# sourceURL="+(a.sourceURL+"").replace(/\s/g," ")+`
  4. `:"";r.replace(k,function(L,G,W,X,Q,te){return W||(W=X),P+=r.slice(E,te).replace(i4,XL),G&&(b=!0,P+=`' +
  5. __e(`+G+`) +
  6. '`),Q&&(g=!0,P+=`';
  7. `+Q+`;
  8. __p += '`),W&&(P+=`' +
  9. ((__t = (`+W+`)) == null ? '' : __t) +
  10. '`),E=te+L.length,L}),P+=`';
  11. `;var R=EO.call(a,"variable")&&a.variable;if(!R)P=`with (obj) {
  12. `+P+`
  13. }
  14. `;else if(r4.test(R))throw new Error(QL);P=(g?P.replace(e4,""):P).replace(t4,"$1").replace(n4,"$1;"),P="function("+(R||"obj")+`) {
  15. `+(R?"":`obj || (obj = {});
  16. `)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(g?`, __j = Array.prototype.join;
  17. function print() { __p += __j.call(arguments, '') }
  18. `:`;
  19. `)+P+`return __p
  20. }`;var N=tx(function(){return Function(d,M+"return "+P).apply(void 0,h)});if(N.source=P,km(N))throw N;return N}function Wp(r,a){return a(r)}var c4=9007199254740991,Zb=4294967295,s4=Math.min;function l4(r,a){if(r=nn(r),r<1||r>c4)return[];var u=Zb,l=s4(r,Zb);a=va(a),r-=Zb;for(var o=Ww(l,a);++u<r;)a(u);return o}function f4(){return this}function bE(r,a){var u=r;return u instanceof dn&&(u=u.value()),Rm(a,function(l,o){return o.func.apply(o.thisArg,Rp([l],o.args))},u)}function Jb(){return bE(this.__wrapped__,this.__actions__)}function p4(r){return Dn(r).toLowerCase()}function d4(r){return kn(r)?sr(r,Cp):Ha(r)?[r]:oi(O2(Dn(r)))}var SO=9007199254740991;function h4(r){return r?Jc(nn(r),-SO,SO):r===0?r:0}function y4(r){return Dn(r).toUpperCase()}function v4(r,a,u){var l=kn(r),o=l||Sm(r)||jm(r);if(a=Qt(a),u==null){var d=r&&r.constructor;o?u=l?new d:[]:Xa(r)?u=Ml(d)?Mp(w2(r)):{}:u={}}return(o?Ii:Va)(r,function(h,b,g){return a(u,h,b,g)}),u}function mE(r,a){for(var u=r.length;u--&&Lp(a,r[u],0)>-1;);return u}function _E(r,a){for(var u=-1,l=r.length;++u<l&&Lp(a,r[u],0)>-1;);return u}function g4(r,a,u){if(r=Dn(r),r&&(u||a===void 0))return x2(r);if(!r||!(a=Ci(a)))return r;var l=Ri(r),o=Ri(a),d=_E(l,o),h=mE(l,o)+1;return Lu(l,d,h).join("")}function b4(r,a,u){if(r=Dn(r),r&&(u||a===void 0))return r.slice(0,E2(r)+1);if(!r||!(a=Ci(a)))return r;var l=Ri(r),o=mE(l,Ri(a))+1;return Lu(l,0,o).join("")}var m4=/^\s+/;function _4(r,a,u){if(r=Dn(r),r&&(u||a===void 0))return r.replace(m4,"");if(!r||!(a=Ci(a)))return r;var l=Ri(r),o=_E(l,Ri(a));return Lu(l,o).join("")}var O4=30,w4="...",x4=/\w*$/;function E4(r,a){var u=O4,l=w4;if(Xa(a)){var o="separator"in a?a.separator:o;u="length"in a?nn(a.length):u,l="omission"in a?Ci(a.omission):l}r=Dn(r);var d=r.length;if(Dl(r)){var h=Ri(r);d=h.length}if(u>=d)return r;var b=u-Rl(l);if(b<1)return l;var g=h?Lu(h,0,b).join(""):r.slice(0,b);if(o===void 0)return g+l;if(h&&(b+=g.length-b),Hm(o)){if(r.slice(b).search(o)){var E,j=g;for(o.global||(o=RegExp(o.source,Dn(x4.exec(o))+"g")),o.lastIndex=0;E=o.exec(j);)var P=E.index;g=g.slice(0,P===void 0?b:P)}}else if(r.indexOf(Ci(o),b)!=b){var k=g.lastIndexOf(o);k>-1&&(g=g.slice(0,k))}return g+l}function S4(r){return ex(r,1)}var j4={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},P4=Im(j4),A4=P4,OE=/&(?:amp|lt|gt|quot|#39);/g,T4=RegExp(OE.source);function M4(r){return r=Dn(r),r&&T4.test(r)?r.replace(OE,A4):r}var k4=ln(function(r){var a=Lo(r);return Sr(a)&&(a=void 0),Xc(li(r,1,Sr,!0),Qt(a))}),D4=k4,N4=ln(function(r){var a=Lo(r);return a=typeof a=="function"?a:void 0,Xc(li(r,1,Sr,!0),void 0,a)}),C4=N4;function R4(r){return r&&r.length?Xc(r):[]}function I4(r,a){return r&&r.length?Xc(r,Qt(a)):[]}function L4(r,a){return a=typeof a=="function"?a:void 0,r&&r.length?Xc(r,void 0,a):[]}var B4=0;function z4(r){var a=++B4;return Dn(r)+a}function F4(r,a){return r==null?!0:Vm(r,a)}var $4=Math.max;function t0(r){if(!(r&&r.length))return[];var a=0;return r=Zc(r,function(u){if(Sr(u))return a=$4(u.length,a),!0}),Ww(a,function(u){return sr(r,$w(u))})}function wE(r,a){if(!(r&&r.length))return[];var u=t0(r);return a==null?u:sr(u,function(l){return ii(a,void 0,l)})}function xE(r,a,u,l){return Pm(r,a,u(Ay(r,a)),l)}function W4(r,a,u){return r==null?r:xE(r,a,va(u))}function U4(r,a,u,l){return l=typeof l=="function"?l:void 0,r==null?r:xE(r,a,va(u),l)}var G4=Nl(function(r,a,u){return r+(u?" ":"")+a.toUpperCase()}),H4=G4;function X4(r){return r==null?[]:Wm(r,Ya(r))}var Y4=ln(function(r,a){return Sr(r)?zp(r,a):[]}),V4=Y4;function K4(r,a){return sE(va(a),r)}var q4=Ru(function(r){var a=r.length,u=a?r[0]:0,l=this.__wrapped__,o=function(d){return Mm(d,r)};return a>1||this.__actions__.length||!(l instanceof dn)||!kp(u)?this.thru(o):(l=l.slice(u,+u+(a?1:0)),l.__actions__.push({func:Wp,args:[o],thisArg:void 0}),new ai(l,this.__chain__).thru(function(d){return a&&!d.length&&d.push(void 0),d}))}),Z4=q4;function J4(){return Px(this)}function Q4(){var r=this.__wrapped__;if(r instanceof dn){var a=r;return this.__actions__.length&&(a=new dn(this)),a=a.reverse(),a.__actions__.push({func:Wp,args:[lm],thisArg:void 0}),new ai(a,this.__chain__)}return this.thru(lm)}function n0(r,a,u){var l=r.length;if(l<2)return l?Xc(r[0]):[];for(var o=-1,d=Array(l);++o<l;)for(var h=r[o],b=-1;++b<l;)b!=o&&(d[o]=zp(d[o]||h,r[b],a,u));return Xc(li(d,1),a,u)}var e8=ln(function(r){return n0(Zc(r,Sr))}),t8=e8,n8=ln(function(r){var a=Lo(r);return Sr(a)&&(a=void 0),n0(Zc(r,Sr),Qt(a))}),r8=n8,o8=ln(function(r){var a=Lo(r);return a=typeof a=="function"?a:void 0,n0(Zc(r,Sr),void 0,a)}),i8=o8,a8=ln(t0),u8=a8;function EE(r,a,u){for(var l=-1,o=r.length,d=a.length,h={};++l<o;){var b=l<d?a[l]:void 0;u(h,r[l],b)}return h}function c8(r,a){return EE(r||[],a||[],jw)}function s8(r,a){return EE(r||[],a||[],Pm)}var l8=ln(function(r){var a=r.length,u=a>1?r[a-1]:void 0;return u=typeof u=="function"?(r.pop(),u):void 0,wE(r,u)}),f8=l8,yt={chunk:Vk,compact:nD,concat:rD,difference:ND,differenceBy:RD,differenceWith:LD,drop:FD,dropRight:$D,dropRightWhile:WD,dropWhile:UD,fill:lN,findIndex:oT,findLastIndex:Ux,first:vO,flatten:S2,flattenDeep:j2,flattenDepth:ON,fromPairs:P2,head:vO,indexOf:uC,initial:cC,intersection:fC,intersectionBy:dC,intersectionWith:yC,join:yR,last:Lo,lastIndexOf:xR,nth:nI,pull:u3,pullAll:lE,pullAllBy:c3,pullAllWith:s3,pullAt:d3,remove:C3,reverse:lm,slice:nL,sortedIndex:yL,sortedIndexBy:vL,sortedIndexOf:gL,sortedLastIndex:bL,sortedLastIndexBy:mL,sortedLastIndexOf:_L,sortedUniq:OL,sortedUniqBy:wL,tail:BL,take:zL,takeRight:FL,takeRightWhile:$L,takeWhile:WL,union:A2,unionBy:D4,unionWith:C4,uniq:R4,uniqBy:I4,uniqWith:L4,unzip:t0,unzipWith:wE,without:V4,xor:t8,xorBy:r8,xorWith:i8,zip:u8,zipObject:c8,zipObjectDeep:s8,zipWith:f8},Cn={countBy:yD,each:pO,eachRight:dO,every:uN,filter:fN,find:iT,findLast:vN,flatMap:T2,flatMapDeep:mN,flatMapDepth:_N,forEach:pO,forEachRight:dO,groupBy:GN,includes:iC,invokeMap:AC,keyBy:mR,map:Em,orderBy:hI,partition:t3,reduce:M3,reduceRight:D3,reject:N3,sample:H3,sampleSize:V3,shuffle:J3,size:tL,some:aL,sortBy:cL},p8={now:M2},lr={after:lT,ary:ex,before:nx,bind:rx,bindKey:kM,curry:Bm,curryRight:zm,debounce:k2,defer:AD,delay:MD,flip:xN,memoize:D2,negate:$p,once:fI,overArgs:OI,partial:sE,partialRight:QI,rearg:T3,rest:B3,spread:PL,throttle:N2,unary:S4,wrap:K4},Ct={castArray:C2,clone:R2,cloneDeep:I2,cloneDeepWith:Jk,cloneWith:eD,conformsTo:sD,eq:Tl,gt:XN,gte:VN,isArguments:Cw,isArray:kn,isArrayBuffer:DC,isArrayLike:Vc,isArrayLikeObject:Sr,isBoolean:CC,isBuffer:Sm,isDate:BC,isElement:zC,isEmpty:GC,isEqual:L2,isEqualWith:HC,isError:km,isFinite:YC,isFunction:Ml,isInteger:Vx,isLength:B2,isMap:z2,isMatch:VC,isMatchWith:KC,isNaN:ZC,isNative:tR,isNil:F2,isNull:nR,isNumber:Kx,isObject:Xa,isObjectLike:si,isPlainObject:Py,isRegExp:Hm,isSafeInteger:aR,isSet:$2,isString:By,isSymbol:Ha,isTypedArray:jm,isUndefined:W2,isWeakMap:cR,isWeakSet:lR,lt:TR,lte:kR,toArray:Jx,toFinite:Nu,toInteger:nn,toLength:Fx,toNumber:Ga,toPlainObject:U2,toSafeInteger:h4,toString:Dn},uo={add:cT,ceil:Hk,divide:zD,floor:SN,max:BR,maxBy:zR,mean:$R,meanBy:WR,min:YR,minBy:VR,multiply:qR,round:U3,subtract:RL,sum:IL,sumBy:LL},r0={clamp:Kk,inRange:nC,random:m3},Xt={assign:dM,assignIn:uO,assignInWith:fy,assignWith:gM,at:mM,create:vD,defaults:wD,defaultsDeep:SD,entries:hO,entriesIn:yO,extend:uO,extendWith:fy,findKey:pN,findLastKey:gN,forIn:RN,forInRight:IN,forOwn:LN,forOwnRight:BN,functions:zN,functionsIn:FN,get:Pw,has:JN,hasIn:G2,invert:_C,invertBy:EC,invoke:jC,keys:Bo,keysIn:Ya,mapKeys:DR,mapValues:NR,merge:H2,mergeWith:kx,omit:sI,omitBy:lI,pick:X2,pickBy:eE,result:z3,set:Y2,setWith:K3,toPairs:hO,toPairsIn:yO,transform:v4,unset:F4,update:W4,updateWith:U4,values:Cl,valuesIn:X4},ga={at:Z4,chain:Px,commit:tD,lodash:$,next:tI,plant:n3,reverse:Q4,tap:UL,thru:Wp,toIterator:f4,toJSON:Jb,value:Jb,valueOf:Jb,wrapperChain:J4},jn={camelCase:$k,capitalize:fx,deburr:px,endsWith:YD,escape:Lx,escapeRegExp:iN,kebabCase:gR,lowerCase:SR,lowerFirst:PR,pad:HI,padEnd:XI,padStart:YI,parseInt:qI,repeat:R3,replace:I3,snakeCase:oL,split:EL,startCase:TL,startsWith:ML,template:u4,templateSettings:fm,toLower:p4,toUpper:y4,trim:g4,trimEnd:b4,trimStart:_4,truncate:E4,unescape:M4,upperCase:H4,upperFirst:Cm,words:jx},Pn={attempt:tx,bindAll:PM,cond:iD,conforms:cD,constant:Nw,defaultTo:mD,flow:DN,flowRight:CN,identity:ci,iteratee:pR,matches:RR,matchesProperty:LR,method:GR,methodOf:XR,mixin:Zx,noop:Ew,nthArg:rI,over:vI,overEvery:xI,overSome:SI,property:V2,propertyOf:r3,range:E3,rangeRight:j3,stubArray:K2,stubFalse:Bw,stubObject:kL,stubString:DL,stubTrue:NL,times:l4,toPath:d4,uniqueId:z4};function d8(){var r=new dn(this.__wrapped__);return r.__actions__=oi(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=oi(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=oi(this.__views__),r}function h8(){if(this.__filtered__){var r=new dn(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}var y8=Math.max,v8=Math.min;function g8(r,a,u){for(var l=-1,o=u.length;++l<o;){var d=u[l],h=d.size;switch(d.type){case"drop":r+=h;break;case"dropRight":a-=h;break;case"take":a=v8(a,r+h);break;case"takeRight":r=y8(r,a-h);break}}return{start:r,end:a}}var b8=1,m8=2,_8=Math.min;function O8(){var r=this.__wrapped__.value(),a=this.__dir__,u=kn(r),l=a<0,o=u?r.length:0,d=g8(0,o,this.__views__),h=d.start,b=d.end,g=b-h,E=l?b:h-1,j=this.__iteratees__,P=j.length,k=0,M=_8(g,this.__takeCount__);if(!u||!l&&o==g&&M==g)return bE(r,this.__actions__);var R=[];e:for(;g--&&k<M;){E+=a;for(var N=-1,L=r[E];++N<P;){var G=j[N],W=G.iteratee,X=G.type,Q=W(L);if(X==m8)L=Q;else if(!Q){if(X==b8)continue e;break e}}R[k++]=L}return R}/**
  21. * @license
  22. * Lodash (Custom Build) <https://lodash.com/>
  23. * Build: `lodash modularize exports="es" -o ./`
  24. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  25. * Released under MIT license <https://lodash.com/license>
  26. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  27. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  28. */var w8="4.17.21",x8=2,E8=1,S8=3,SE=4294967295,j8=Array.prototype,P8=Object.prototype,jE=P8.hasOwnProperty,jO=sy?sy.iterator:void 0,A8=Math.max,PO=Math.min,o0=function(r){return function(a,u,l){if(l==null){var o=Xa(u),d=o&&Bo(u),h=d&&d.length&&Iy(u,d);(h?h.length:o)||(l=u,u=a,a=this)}return r(a,u,l)}}(Zx);$.after=lr.after;$.ary=lr.ary;$.assign=Xt.assign;$.assignIn=Xt.assignIn;$.assignInWith=Xt.assignInWith;$.assignWith=Xt.assignWith;$.at=Xt.at;$.before=lr.before;$.bind=lr.bind;$.bindAll=Pn.bindAll;$.bindKey=lr.bindKey;$.castArray=Ct.castArray;$.chain=ga.chain;$.chunk=yt.chunk;$.compact=yt.compact;$.concat=yt.concat;$.cond=Pn.cond;$.conforms=Pn.conforms;$.constant=Pn.constant;$.countBy=Cn.countBy;$.create=Xt.create;$.curry=lr.curry;$.curryRight=lr.curryRight;$.debounce=lr.debounce;$.defaults=Xt.defaults;$.defaultsDeep=Xt.defaultsDeep;$.defer=lr.defer;$.delay=lr.delay;$.difference=yt.difference;$.differenceBy=yt.differenceBy;$.differenceWith=yt.differenceWith;$.drop=yt.drop;$.dropRight=yt.dropRight;$.dropRightWhile=yt.dropRightWhile;$.dropWhile=yt.dropWhile;$.fill=yt.fill;$.filter=Cn.filter;$.flatMap=Cn.flatMap;$.flatMapDeep=Cn.flatMapDeep;$.flatMapDepth=Cn.flatMapDepth;$.flatten=yt.flatten;$.flattenDeep=yt.flattenDeep;$.flattenDepth=yt.flattenDepth;$.flip=lr.flip;$.flow=Pn.flow;$.flowRight=Pn.flowRight;$.fromPairs=yt.fromPairs;$.functions=Xt.functions;$.functionsIn=Xt.functionsIn;$.groupBy=Cn.groupBy;$.initial=yt.initial;$.intersection=yt.intersection;$.intersectionBy=yt.intersectionBy;$.intersectionWith=yt.intersectionWith;$.invert=Xt.invert;$.invertBy=Xt.invertBy;$.invokeMap=Cn.invokeMap;$.iteratee=Pn.iteratee;$.keyBy=Cn.keyBy;$.keys=Bo;$.keysIn=Xt.keysIn;$.map=Cn.map;$.mapKeys=Xt.mapKeys;$.mapValues=Xt.mapValues;$.matches=Pn.matches;$.matchesProperty=Pn.matchesProperty;$.memoize=lr.memoize;$.merge=Xt.merge;$.mergeWith=Xt.mergeWith;$.method=Pn.method;$.methodOf=Pn.methodOf;$.mixin=o0;$.negate=$p;$.nthArg=Pn.nthArg;$.omit=Xt.omit;$.omitBy=Xt.omitBy;$.once=lr.once;$.orderBy=Cn.orderBy;$.over=Pn.over;$.overArgs=lr.overArgs;$.overEvery=Pn.overEvery;$.overSome=Pn.overSome;$.partial=lr.partial;$.partialRight=lr.partialRight;$.partition=Cn.partition;$.pick=Xt.pick;$.pickBy=Xt.pickBy;$.property=Pn.property;$.propertyOf=Pn.propertyOf;$.pull=yt.pull;$.pullAll=yt.pullAll;$.pullAllBy=yt.pullAllBy;$.pullAllWith=yt.pullAllWith;$.pullAt=yt.pullAt;$.range=Pn.range;$.rangeRight=Pn.rangeRight;$.rearg=lr.rearg;$.reject=Cn.reject;$.remove=yt.remove;$.rest=lr.rest;$.reverse=yt.reverse;$.sampleSize=Cn.sampleSize;$.set=Xt.set;$.setWith=Xt.setWith;$.shuffle=Cn.shuffle;$.slice=yt.slice;$.sortBy=Cn.sortBy;$.sortedUniq=yt.sortedUniq;$.sortedUniqBy=yt.sortedUniqBy;$.split=jn.split;$.spread=lr.spread;$.tail=yt.tail;$.take=yt.take;$.takeRight=yt.takeRight;$.takeRightWhile=yt.takeRightWhile;$.takeWhile=yt.takeWhile;$.tap=ga.tap;$.throttle=lr.throttle;$.thru=Wp;$.toArray=Ct.toArray;$.toPairs=Xt.toPairs;$.toPairsIn=Xt.toPairsIn;$.toPath=Pn.toPath;$.toPlainObject=Ct.toPlainObject;$.transform=Xt.transform;$.unary=lr.unary;$.union=yt.union;$.unionBy=yt.unionBy;$.unionWith=yt.unionWith;$.uniq=yt.uniq;$.uniqBy=yt.uniqBy;$.uniqWith=yt.uniqWith;$.unset=Xt.unset;$.unzip=yt.unzip;$.unzipWith=yt.unzipWith;$.update=Xt.update;$.updateWith=Xt.updateWith;$.values=Xt.values;$.valuesIn=Xt.valuesIn;$.without=yt.without;$.words=jn.words;$.wrap=lr.wrap;$.xor=yt.xor;$.xorBy=yt.xorBy;$.xorWith=yt.xorWith;$.zip=yt.zip;$.zipObject=yt.zipObject;$.zipObjectDeep=yt.zipObjectDeep;$.zipWith=yt.zipWith;$.entries=Xt.toPairs;$.entriesIn=Xt.toPairsIn;$.extend=Xt.assignIn;$.extendWith=Xt.assignInWith;o0($,$);$.add=uo.add;$.attempt=Pn.attempt;$.camelCase=jn.camelCase;$.capitalize=jn.capitalize;$.ceil=uo.ceil;$.clamp=r0.clamp;$.clone=Ct.clone;$.cloneDeep=Ct.cloneDeep;$.cloneDeepWith=Ct.cloneDeepWith;$.cloneWith=Ct.cloneWith;$.conformsTo=Ct.conformsTo;$.deburr=jn.deburr;$.defaultTo=Pn.defaultTo;$.divide=uo.divide;$.endsWith=jn.endsWith;$.eq=Ct.eq;$.escape=jn.escape;$.escapeRegExp=jn.escapeRegExp;$.every=Cn.every;$.find=Cn.find;$.findIndex=yt.findIndex;$.findKey=Xt.findKey;$.findLast=Cn.findLast;$.findLastIndex=yt.findLastIndex;$.findLastKey=Xt.findLastKey;$.floor=uo.floor;$.forEach=Cn.forEach;$.forEachRight=Cn.forEachRight;$.forIn=Xt.forIn;$.forInRight=Xt.forInRight;$.forOwn=Xt.forOwn;$.forOwnRight=Xt.forOwnRight;$.get=Xt.get;$.gt=Ct.gt;$.gte=Ct.gte;$.has=Xt.has;$.hasIn=Xt.hasIn;$.head=yt.head;$.identity=ci;$.includes=Cn.includes;$.indexOf=yt.indexOf;$.inRange=r0.inRange;$.invoke=Xt.invoke;$.isArguments=Ct.isArguments;$.isArray=kn;$.isArrayBuffer=Ct.isArrayBuffer;$.isArrayLike=Ct.isArrayLike;$.isArrayLikeObject=Ct.isArrayLikeObject;$.isBoolean=Ct.isBoolean;$.isBuffer=Ct.isBuffer;$.isDate=Ct.isDate;$.isElement=Ct.isElement;$.isEmpty=Ct.isEmpty;$.isEqual=Ct.isEqual;$.isEqualWith=Ct.isEqualWith;$.isError=Ct.isError;$.isFinite=Ct.isFinite;$.isFunction=Ct.isFunction;$.isInteger=Ct.isInteger;$.isLength=Ct.isLength;$.isMap=Ct.isMap;$.isMatch=Ct.isMatch;$.isMatchWith=Ct.isMatchWith;$.isNaN=Ct.isNaN;$.isNative=Ct.isNative;$.isNil=Ct.isNil;$.isNull=Ct.isNull;$.isNumber=Ct.isNumber;$.isObject=Xa;$.isObjectLike=Ct.isObjectLike;$.isPlainObject=Ct.isPlainObject;$.isRegExp=Ct.isRegExp;$.isSafeInteger=Ct.isSafeInteger;$.isSet=Ct.isSet;$.isString=Ct.isString;$.isSymbol=Ct.isSymbol;$.isTypedArray=Ct.isTypedArray;$.isUndefined=Ct.isUndefined;$.isWeakMap=Ct.isWeakMap;$.isWeakSet=Ct.isWeakSet;$.join=yt.join;$.kebabCase=jn.kebabCase;$.last=Lo;$.lastIndexOf=yt.lastIndexOf;$.lowerCase=jn.lowerCase;$.lowerFirst=jn.lowerFirst;$.lt=Ct.lt;$.lte=Ct.lte;$.max=uo.max;$.maxBy=uo.maxBy;$.mean=uo.mean;$.meanBy=uo.meanBy;$.min=uo.min;$.minBy=uo.minBy;$.stubArray=Pn.stubArray;$.stubFalse=Pn.stubFalse;$.stubObject=Pn.stubObject;$.stubString=Pn.stubString;$.stubTrue=Pn.stubTrue;$.multiply=uo.multiply;$.nth=yt.nth;$.noop=Pn.noop;$.now=p8.now;$.pad=jn.pad;$.padEnd=jn.padEnd;$.padStart=jn.padStart;$.parseInt=jn.parseInt;$.random=r0.random;$.reduce=Cn.reduce;$.reduceRight=Cn.reduceRight;$.repeat=jn.repeat;$.replace=jn.replace;$.result=Xt.result;$.round=uo.round;$.sample=Cn.sample;$.size=Cn.size;$.snakeCase=jn.snakeCase;$.some=Cn.some;$.sortedIndex=yt.sortedIndex;$.sortedIndexBy=yt.sortedIndexBy;$.sortedIndexOf=yt.sortedIndexOf;$.sortedLastIndex=yt.sortedLastIndex;$.sortedLastIndexBy=yt.sortedLastIndexBy;$.sortedLastIndexOf=yt.sortedLastIndexOf;$.startCase=jn.startCase;$.startsWith=jn.startsWith;$.subtract=uo.subtract;$.sum=uo.sum;$.sumBy=uo.sumBy;$.template=jn.template;$.times=Pn.times;$.toFinite=Ct.toFinite;$.toInteger=nn;$.toLength=Ct.toLength;$.toLower=jn.toLower;$.toNumber=Ct.toNumber;$.toSafeInteger=Ct.toSafeInteger;$.toString=Ct.toString;$.toUpper=jn.toUpper;$.trim=jn.trim;$.trimEnd=jn.trimEnd;$.trimStart=jn.trimStart;$.truncate=jn.truncate;$.unescape=jn.unescape;$.uniqueId=Pn.uniqueId;$.upperCase=jn.upperCase;$.upperFirst=jn.upperFirst;$.each=Cn.forEach;$.eachRight=Cn.forEachRight;$.first=yt.head;o0($,function(){var r={};return Va($,function(a,u){jE.call($.prototype,u)||(r[u]=a)}),r}(),{chain:!1});$.VERSION=w8;($.templateSettings=jn.templateSettings).imports._=$;Ii(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){$[r].placeholder=$});Ii(["drop","take"],function(r,a){dn.prototype[r]=function(u){u=u===void 0?1:A8(nn(u),0);var l=this.__filtered__&&!a?new dn(this):this.clone();return l.__filtered__?l.__takeCount__=PO(u,l.__takeCount__):l.__views__.push({size:PO(u,SE),type:r+(l.__dir__<0?"Right":"")}),l},dn.prototype[r+"Right"]=function(u){return this.reverse()[r](u).reverse()}});Ii(["filter","map","takeWhile"],function(r,a){var u=a+1,l=u==E8||u==S8;dn.prototype[r]=function(o){var d=this.clone();return d.__iteratees__.push({iteratee:Qt(o),type:u}),d.__filtered__=d.__filtered__||l,d}});Ii(["head","last"],function(r,a){var u="take"+(a?"Right":"");dn.prototype[r]=function(){return this[u](1).value()[0]}});Ii(["initial","tail"],function(r,a){var u="drop"+(a?"":"Right");dn.prototype[r]=function(){return this.__filtered__?new dn(this):this[u](1)}});dn.prototype.compact=function(){return this.filter(ci)};dn.prototype.find=function(r){return this.filter(r).head()};dn.prototype.findLast=function(r){return this.reverse().find(r)};dn.prototype.invokeMap=ln(function(r,a){return typeof r=="function"?new dn(this):this.map(function(u){return Fp(u,r,a)})});dn.prototype.reject=function(r){return this.filter($p(Qt(r)))};dn.prototype.slice=function(r,a){r=nn(r);var u=this;return u.__filtered__&&(r>0||a<0)?new dn(u):(r<0?u=u.takeRight(-r):r&&(u=u.drop(r)),a!==void 0&&(a=nn(a),u=a<0?u.dropRight(-a):u.take(a-r)),u)};dn.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()};dn.prototype.toArray=function(){return this.take(SE)};Va(dn.prototype,function(r,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),l=/^(?:head|last)$/.test(a),o=$[l?"take"+(a=="last"?"Right":""):a],d=l||/^find/.test(a);!o||($.prototype[a]=function(){var h=this.__wrapped__,b=l?[1]:arguments,g=h instanceof dn,E=b[0],j=g||kn(h),P=function(G){var W=o.apply($,Rp([G],b));return l&&k?W[0]:W};j&&u&&typeof E=="function"&&E.length!=1&&(g=j=!1);var k=this.__chain__,M=!!this.__actions__.length,R=d&&!k,N=g&&!M;if(!d&&j){h=N?h:new dn(this);var L=r.apply(h,b);return L.__actions__.push({func:Wp,args:[P],thisArg:void 0}),new ai(L,k)}return R&&N?r.apply(this,b):(L=this.thru(P),R?l?L.value()[0]:L.value():L)})});Ii(["pop","push","shift","sort","splice","unshift"],function(r){var a=j8[r],u=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",l=/^(?:pop|shift)$/.test(r);$.prototype[r]=function(){var o=arguments;if(l&&!this.__chain__){var d=this.value();return a.apply(kn(d)?d:[],o)}return this[u](function(h){return a.apply(kn(h)?h:[],o)})}});Va(dn.prototype,function(r,a){var u=$[a];if(u){var l=u.name+"";jE.call(xl,l)||(xl[l]=[]),xl[l].push({name:a,func:u})}});xl[Ny(void 0,x8).name]=[{name:"wrapper",func:void 0}];dn.prototype.clone=d8;dn.prototype.reverse=h8;dn.prototype.value=O8;$.prototype.at=ga.at;$.prototype.chain=ga.wrapperChain;$.prototype.commit=ga.commit;$.prototype.next=ga.next;$.prototype.plant=ga.plant;$.prototype.reverse=ga.reverse;$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=ga.value;$.prototype.first=$.prototype.head;jO&&($.prototype[jO]=ga.toIterator);const T8=[{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"}];var M8={flowElementList:T8};var ot={exports:{}};(function(r,a){(function(u,l){r.exports=l()})(window,function(){return function(u){var l={};function o(d){if(l[d])return l[d].exports;var h=l[d]={i:d,l:!1,exports:{}};return u[d].call(h.exports,h,h.exports,o),h.l=!0,h.exports}return o.m=u,o.c=l,o.d=function(d,h,b){o.o(d,h)||Object.defineProperty(d,h,{enumerable:!0,get:b})},o.r=function(d){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},o.t=function(d,h){if(1&h&&(d=o(d)),8&h||4&h&&typeof d=="object"&&d&&d.__esModule)return d;var b=Object.create(null);if(o.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:d}),2&h&&typeof d!="string")for(var g in d)o.d(b,g,function(E){return d[E]}.bind(null,g));return b},o.n=function(d){var h=d&&d.__esModule?function(){return d.default}:function(){return d};return o.d(h,"a",h),h},o.o=function(d,h){return Object.prototype.hasOwnProperty.call(d,h)},o.p="",o(o.s=222)}([function(u,l,o){o.d(l,"a",function(){return te}),o.d(l,"b",function(){return Q}),o.d(l,"c",function(){return Je}),o.d(l,"d",function(){return mt}),o.d(l,"e",function(){return G}),o.d(l,"f",function(){return X}),o.d(l,"g",function(){return G}),o.d(l,"h",function(){return Ye}),o.d(l,"i",function(){return h}),o.d(l,"j",function(){return xt}),o.d(l,"k",function(){return q});var d,h,b,g,E,j,P,k={},M=[],R=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function N(se,ce){for(var ge in ce)se[ge]=ce[ge];return se}function L(se){var ce=se.parentNode;ce&&ce.removeChild(se)}function G(se,ce,ge){var De,Ge,ze,Et={};for(ze in ce)ze=="key"?De=ce[ze]:ze=="ref"?Ge=ce[ze]:Et[ze]=ce[ze];if(arguments.length>2&&(Et.children=arguments.length>3?d.call(arguments,2):ge),typeof se=="function"&&se.defaultProps!=null)for(ze in se.defaultProps)Et[ze]===void 0&&(Et[ze]=se.defaultProps[ze]);return W(se,Et,De,Ge,null)}function W(se,ce,ge,De,Ge){var ze={type:se,props:ce,key:ge,ref:De,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Ge==null?++b:Ge};return Ge==null&&h.vnode!=null&&h.vnode(ze),ze}function X(){return{current:null}}function Q(se){return se.children}function te(se,ce){this.props=se,this.context=ce}function Z(se,ce){if(ce==null)return se.__?Z(se.__,se.__.__k.indexOf(se)+1):null;for(var ge;ce<se.__k.length;ce++)if((ge=se.__k[ce])!=null&&ge.__e!=null)return ge.__e;return typeof se.type=="function"?Z(se):null}function J(se){var ce,ge;if((se=se.__)!=null&&se.__c!=null){for(se.__e=se.__c.base=null,ce=0;ce<se.__k.length;ce++)if((ge=se.__k[ce])!=null&&ge.__e!=null){se.__e=se.__c.base=ge.__e;break}return J(se)}}function H(se){(!se.__d&&(se.__d=!0)&&g.push(se)&&!B.__r++||j!==h.debounceRendering)&&((j=h.debounceRendering)||E)(B)}function B(){for(var se;B.__r=g.length;)se=g.sort(function(ce,ge){return ce.__v.__b-ge.__v.__b}),g=[],se.some(function(ce){var ge,De,Ge,ze,Et,Rt;ce.__d&&(Et=(ze=(ge=ce).__v).__e,(Rt=ge.__P)&&(De=[],(Ge=N({},ze)).__v=ze.__v+1,je(Rt,ze,Ge,ge.__n,Rt.ownerSVGElement!==void 0,ze.__h!=null?[Et]:null,De,Et==null?Z(ze):Et,ze.__h),ve(De,ze),ze.__e!=Et&&J(ze)))})}function V(se,ce,ge,De,Ge,ze,Et,Rt,At,gt){var Me,lt,fe,at,$t,hn,Wt,on=De&&De.__k||M,_n=on.length;for(ge.__k=[],Me=0;Me<ce.length;Me++)if((at=ge.__k[Me]=(at=ce[Me])==null||typeof at=="boolean"?null:typeof at=="string"||typeof at=="number"||typeof at=="bigint"?W(null,at,null,null,at):Array.isArray(at)?W(Q,{children:at},null,null,null):at.__b>0?W(at.type,at.props,at.key,null,at.__v):at)!=null){if(at.__=ge,at.__b=ge.__b+1,(fe=on[Me])===null||fe&&at.key==fe.key&&at.type===fe.type)on[Me]=void 0;else for(lt=0;lt<_n;lt++){if((fe=on[lt])&&at.key==fe.key&&at.type===fe.type){on[lt]=void 0;break}fe=null}je(se,at,fe=fe||k,Ge,ze,Et,Rt,At,gt),$t=at.__e,(lt=at.ref)&&fe.ref!=lt&&(Wt||(Wt=[]),fe.ref&&Wt.push(fe.ref,null,at),Wt.push(lt,at.__c||$t,at)),$t!=null?(hn==null&&(hn=$t),typeof at.type=="function"&&at.__k===fe.__k?at.__d=At=Y(at,At,se):At=ue(se,at,fe,on,$t,At),typeof ge.type=="function"&&(ge.__d=At)):At&&fe.__e==At&&At.parentNode!=se&&(At=Z(fe))}for(ge.__e=hn,Me=_n;Me--;)on[Me]!=null&&(typeof ge.type=="function"&&on[Me].__e!=null&&on[Me].__e==ge.__d&&(ge.__d=Z(De,Me+1)),We(on[Me],on[Me]));if(Wt)for(Me=0;Me<Wt.length;Me++)Te(Wt[Me],Wt[++Me],Wt[++Me])}function Y(se,ce,ge){for(var De,Ge=se.__k,ze=0;Ge&&ze<Ge.length;ze++)(De=Ge[ze])&&(De.__=se,ce=typeof De.type=="function"?Y(De,ce,ge):ue(ge,De,De,Ge,De.__e,ce));return ce}function q(se,ce){return ce=ce||[],se==null||typeof se=="boolean"||(Array.isArray(se)?se.some(function(ge){q(ge,ce)}):ce.push(se)),ce}function ue(se,ce,ge,De,Ge,ze){var Et,Rt,At;if(ce.__d!==void 0)Et=ce.__d,ce.__d=void 0;else if(ge==null||Ge!=ze||Ge.parentNode==null)e:if(ze==null||ze.parentNode!==se)se.appendChild(Ge),Et=null;else{for(Rt=ze,At=0;(Rt=Rt.nextSibling)&&At<De.length;At+=2)if(Rt==Ge)break e;se.insertBefore(Ge,ze),Et=ze}return Et!==void 0?Et:Ge.nextSibling}function xe(se,ce,ge){ce[0]==="-"?se.setProperty(ce,ge):se[ce]=ge==null?"":typeof ge!="number"||R.test(ce)?ge:ge+"px"}function be(se,ce,ge,De,Ge){var ze;e:if(ce==="style")if(typeof ge=="string")se.style.cssText=ge;else{if(typeof De=="string"&&(se.style.cssText=De=""),De)for(ce in De)ge&&ce in ge||xe(se.style,ce,"");if(ge)for(ce in ge)De&&ge[ce]===De[ce]||xe(se.style,ce,ge[ce])}else if(ce[0]==="o"&&ce[1]==="n")ze=ce!==(ce=ce.replace(/Capture$/,"")),ce=ce.toLowerCase()in se?ce.toLowerCase().slice(2):ce.slice(2),se.l||(se.l={}),se.l[ce+ze]=ge,ge?De||se.addEventListener(ce,ze?Fe:Ae,ze):se.removeEventListener(ce,ze?Fe:Ae,ze);else if(ce!=="dangerouslySetInnerHTML"){if(Ge)ce=ce.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(ce!=="href"&&ce!=="list"&&ce!=="form"&&ce!=="tabIndex"&&ce!=="download"&&ce in se)try{se[ce]=ge==null?"":ge;break e}catch{}typeof ge=="function"||(ge!=null&&(ge!==!1||ce[0]==="a"&&ce[1]==="r")?se.setAttribute(ce,ge):se.removeAttribute(ce))}}function Ae(se){this.l[se.type+!1](h.event?h.event(se):se)}function Fe(se){this.l[se.type+!0](h.event?h.event(se):se)}function je(se,ce,ge,De,Ge,ze,Et,Rt,At){var gt,Me,lt,fe,at,$t,hn,Wt,on,_n,Nn,Bt=ce.type;if(ce.constructor!==void 0)return null;ge.__h!=null&&(At=ge.__h,Rt=ce.__e=ge.__e,ce.__h=null,ze=[Rt]),(gt=h.__b)&&gt(ce);try{e:if(typeof Bt=="function"){if(Wt=ce.props,on=(gt=Bt.contextType)&&De[gt.__c],_n=gt?on?on.props.value:gt.__:De,ge.__c?hn=(Me=ce.__c=ge.__c).__=Me.__E:("prototype"in Bt&&Bt.prototype.render?ce.__c=Me=new Bt(Wt,_n):(ce.__c=Me=new te(Wt,_n),Me.constructor=Bt,Me.render=it),on&&on.sub(Me),Me.props=Wt,Me.state||(Me.state={}),Me.context=_n,Me.__n=De,lt=Me.__d=!0,Me.__h=[]),Me.__s==null&&(Me.__s=Me.state),Bt.getDerivedStateFromProps!=null&&(Me.__s==Me.state&&(Me.__s=N({},Me.__s)),N(Me.__s,Bt.getDerivedStateFromProps(Wt,Me.__s))),fe=Me.props,at=Me.state,lt)Bt.getDerivedStateFromProps==null&&Me.componentWillMount!=null&&Me.componentWillMount(),Me.componentDidMount!=null&&Me.__h.push(Me.componentDidMount);else{if(Bt.getDerivedStateFromProps==null&&Wt!==fe&&Me.componentWillReceiveProps!=null&&Me.componentWillReceiveProps(Wt,_n),!Me.__e&&Me.shouldComponentUpdate!=null&&Me.shouldComponentUpdate(Wt,Me.__s,_n)===!1||ce.__v===ge.__v){Me.props=Wt,Me.state=Me.__s,ce.__v!==ge.__v&&(Me.__d=!1),Me.__v=ce,ce.__e=ge.__e,ce.__k=ge.__k,ce.__k.forEach(function(Xn){Xn&&(Xn.__=ce)}),Me.__h.length&&Et.push(Me);break e}Me.componentWillUpdate!=null&&Me.componentWillUpdate(Wt,Me.__s,_n),Me.componentDidUpdate!=null&&Me.__h.push(function(){Me.componentDidUpdate(fe,at,$t)})}Me.context=_n,Me.props=Wt,Me.state=Me.__s,(gt=h.__r)&&gt(ce),Me.__d=!1,Me.__v=ce,Me.__P=se,gt=Me.render(Me.props,Me.state,Me.context),Me.state=Me.__s,Me.getChildContext!=null&&(De=N(N({},De),Me.getChildContext())),lt||Me.getSnapshotBeforeUpdate==null||($t=Me.getSnapshotBeforeUpdate(fe,at)),Nn=gt!=null&&gt.type===Q&&gt.key==null?gt.props.children:gt,V(se,Array.isArray(Nn)?Nn:[Nn],ce,ge,De,Ge,ze,Et,Rt,At),Me.base=ce.__e,ce.__h=null,Me.__h.length&&Et.push(Me),hn&&(Me.__E=Me.__=null),Me.__e=!1}else ze==null&&ce.__v===ge.__v?(ce.__k=ge.__k,ce.__e=ge.__e):ce.__e=Pe(ge.__e,ce,ge,De,Ge,ze,Et,At);(gt=h.diffed)&&gt(ce)}catch(Xn){ce.__v=null,(At||ze!=null)&&(ce.__e=Rt,ce.__h=!!At,ze[ze.indexOf(Rt)]=null),h.__e(Xn,ce,ge)}}function ve(se,ce){h.__c&&h.__c(ce,se),se.some(function(ge){try{se=ge.__h,ge.__h=[],se.some(function(De){De.call(ge)})}catch(De){h.__e(De,ge.__v)}})}function Pe(se,ce,ge,De,Ge,ze,Et,Rt){var At,gt,Me,lt=ge.props,fe=ce.props,at=ce.type,$t=0;if(at==="svg"&&(Ge=!0),ze!=null){for(;$t<ze.length;$t++)if((At=ze[$t])&&"setAttribute"in At==!!at&&(at?At.localName===at:At.nodeType===3)){se=At,ze[$t]=null;break}}if(se==null){if(at===null)return document.createTextNode(fe);se=Ge?document.createElementNS("http://www.w3.org/2000/svg",at):document.createElement(at,fe.is&&fe),ze=null,Rt=!1}if(at===null)lt===fe||Rt&&se.data===fe||(se.data=fe);else{if(ze=ze&&d.call(se.childNodes),gt=(lt=ge.props||k).dangerouslySetInnerHTML,Me=fe.dangerouslySetInnerHTML,!Rt){if(ze!=null)for(lt={},$t=0;$t<se.attributes.length;$t++)lt[se.attributes[$t].name]=se.attributes[$t].value;(Me||gt)&&(Me&&(gt&&Me.__html==gt.__html||Me.__html===se.innerHTML)||(se.innerHTML=Me&&Me.__html||""))}if(function(hn,Wt,on,_n,Nn){var Bt;for(Bt in on)Bt==="children"||Bt==="key"||Bt in Wt||be(hn,Bt,null,on[Bt],_n);for(Bt in Wt)Nn&&typeof Wt[Bt]!="function"||Bt==="children"||Bt==="key"||Bt==="value"||Bt==="checked"||on[Bt]===Wt[Bt]||be(hn,Bt,Wt[Bt],on[Bt],_n)}(se,fe,lt,Ge,Rt),Me)ce.__k=[];else if($t=ce.props.children,V(se,Array.isArray($t)?$t:[$t],ce,ge,De,Ge&&at!=="foreignObject",ze,Et,ze?ze[0]:ge.__k&&Z(ge,0),Rt),ze!=null)for($t=ze.length;$t--;)ze[$t]!=null&&L(ze[$t]);Rt||("value"in fe&&($t=fe.value)!==void 0&&($t!==lt.value||$t!==se.value||at==="progress"&&!$t)&&be(se,"value",$t,lt.value,!1),"checked"in fe&&($t=fe.checked)!==void 0&&$t!==se.checked&&be(se,"checked",$t,lt.checked,!1))}return se}function Te(se,ce,ge){try{typeof se=="function"?se(ce):se.current=ce}catch(De){h.__e(De,ge)}}function We(se,ce,ge){var De,Ge;if(h.unmount&&h.unmount(se),(De=se.ref)&&(De.current&&De.current!==se.__e||Te(De,null,ce)),(De=se.__c)!=null){if(De.componentWillUnmount)try{De.componentWillUnmount()}catch(ze){h.__e(ze,ce)}De.base=De.__P=null}if(De=se.__k)for(Ge=0;Ge<De.length;Ge++)De[Ge]&&We(De[Ge],ce,typeof se.type!="function");ge||se.__e==null||L(se.__e),se.__e=se.__d=void 0}function it(se,ce,ge){return this.constructor(se,ge)}function xt(se,ce,ge){var De,Ge,ze;h.__&&h.__(se,ce),Ge=(De=typeof ge=="function")?null:ge&&ge.__k||ce.__k,ze=[],je(ce,se=(!De&&ge||ce).__k=G(Q,null,[se]),Ge||k,k,ce.ownerSVGElement!==void 0,!De&&ge?[ge]:Ge?null:ce.firstChild?d.call(ce.childNodes):null,ze,!De&&ge?ge:Ge?Ge.__e:ce.firstChild,De),ve(ze,se)}function Ye(se,ce){xt(se,ce,Ye)}function Je(se,ce,ge){var De,Ge,ze,Et=N({},se.props);for(ze in ce)ze=="key"?De=ce[ze]:ze=="ref"?Ge=ce[ze]:Et[ze]=ce[ze];return arguments.length>2&&(Et.children=arguments.length>3?d.call(arguments,2):ge),W(se.type,Et,De||se.key,Ge||se.ref,null)}function mt(se,ce){var ge={__c:ce="__cC"+P++,__:se,Consumer:function(De,Ge){return De.children(Ge)},Provider:function(De){var Ge,ze;return this.getChildContext||(Ge=[],(ze={})[ce]=this,this.getChildContext=function(){return ze},this.shouldComponentUpdate=function(Et){this.props.value!==Et.value&&Ge.some(H)},this.sub=function(Et){Ge.push(Et);var Rt=Et.componentWillUnmount;Et.componentWillUnmount=function(){Ge.splice(Ge.indexOf(Et),1),Rt&&Rt.call(Et)}}),De.children}};return ge.Provider.__=ge.Consumer.contextType=ge}d=M.slice,h={__e:function(se,ce){for(var ge,De,Ge;ce=ce.__;)if((ge=ce.__c)&&!ge.__)try{if((De=ge.constructor)&&De.getDerivedStateFromError!=null&&(ge.setState(De.getDerivedStateFromError(se)),Ge=ge.__d),ge.componentDidCatch!=null&&(ge.componentDidCatch(se),Ge=ge.__d),Ge)return ge.__E=ge}catch(ze){se=ze}throw se}},b=0,te.prototype.setState=function(se,ce){var ge;ge=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=N({},this.state),typeof se=="function"&&(se=se(N({},ge),this.props)),se&&N(ge,se),se!=null&&this.__v&&(ce&&this.__h.push(ce),H(this))},te.prototype.forceUpdate=function(se){this.__v&&(this.__e=!0,se&&this.__h.push(se),H(this))},te.prototype.render=Q,g=[],E=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,B.__r=0,P=0},function(u,l,o){(function(d,h){o.d(l,"a",function(){return H}),o.d(l,"b",function(){return rc}),o.d(l,"c",function(){return fo}),o.d(l,"d",function(){return St}),o.d(l,"e",function(){return Ke}),o.d(l,"f",function(){return Ve}),o.d(l,"g",function(){return Ot}),o.d(l,"h",function(){return Ao}),o.d(l,"i",function(){return Nn}),o.d(l,"j",function(){return ut}),o.d(l,"k",function(){return $o}),o.d(l,"l",function(){return Yu}),o.d(l,"m",function(){return hn}),o.d(l,"n",function(){return Bi}),o.d(l,"o",function(){return Y}),o.d(l,"p",function(){return as}),o.d(l,"q",function(){return Wo}),o.d(l,"r",function(){return Ja}),o.d(l,"s",function(){return Qr}),o.d(l,"t",function(){return Gn}),o.d(l,"u",function(){return Za}),o.d(l,"v",function(){return is}),o.d(l,"w",function(){return Ju}),o.d(l,"x",function(){return zi}),o.d(l,"y",function(){return Jr}),o.d(l,"z",function(){return Vn}),o.d(l,"A",function(){return Lr}),o.d(l,"B",function(){return xo}),o.d(l,"C",function(){return gt}),o.d(l,"D",function(){return us}),o.d(l,"E",function(){return yn}),o.d(l,"F",function(){return vn}),o.d(l,"G",function(){return Hu}),o.d(l,"H",function(){return Gu}),o.d(l,"I",function(){return Qu}),o.d(l,"J",function(){return ir}),o.d(l,"K",function(){return de}),o.d(l,"L",function(){return Sn}),o.d(l,"M",function(){return eu});var b=[];Object.freeze(b);var g={};function E(){return++ft.mobxGuid}function j(O){throw P(!1,O),"X"}function P(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(g);function k(O){var w=!1;return function(){if(!w)return w=!0,O.apply(this,arguments)}}var M=function(){};function R(O){return O!==null&&typeof O=="object"}function N(O){if(O===null||typeof O!="object")return!1;var w=Object.getPrototypeOf(O);return w===Object.prototype||w===null}function L(O,w,T){Object.defineProperty(O,w,{enumerable:!1,writable:!0,configurable:!0,value:T})}function G(O,w){var T="isMobX"+O;return w.prototype[T]=!0,function(z){return R(z)&&z[T]===!0}}function W(O){return O instanceof Map}function X(O){return O instanceof Set}function Q(O){var w=new Set;for(var T in O)w.add(T);return Object.getOwnPropertySymbols(O).forEach(function(z){Object.getOwnPropertyDescriptor(O,z).enumerable&&w.add(z)}),Array.from(w)}function te(O){return O&&O.toString?O.toString():new String(O).toString()}function Z(O){return O===null?null:typeof O=="object"?""+O:O}var J=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(O){return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O))}:Object.getOwnPropertyNames,H=Symbol("mobx administration"),B=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=lt.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 qa(this)},O.prototype.reportChanged=function(){Dr(),function(w){w.lowestObserverState!==lt.STALE&&(w.lowestObserverState=lt.STALE,w.observers.forEach(function(T){T.dependenciesState===lt.UP_TO_DATE&&(T.isTracing!==fe.NONE&&lo(T,w),T.onBecomeStale()),T.dependenciesState=lt.STALE}))}(this),Fr()},O.prototype.toString=function(){return this.name},O}(),V=G("Atom",B);function Y(O,w,T){w===void 0&&(w=M),T===void 0&&(T=M);var z,ee=new B(O);return w!==M&&rs("onBecomeObserved",ee,w,z),T!==M&&yn(ee,T),ee}var q={identity:function(O,w){return O===w},structural:function(O,w){return Ne(O,w)},default:function(O,w){return Object.is(O,w)},shallow:function(O,w){return Ne(O,w,1)}},ue=function(O,w){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,z){T.__proto__=z}||function(T,z){for(var ee in z)z.hasOwnProperty(ee)&&(T[ee]=z[ee])},ue(O,w)};/*! *****************************************************************************
  29. Copyright (c) Microsoft Corporation. All rights reserved.
  30. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  31. this file except in compliance with the License. You may obtain a copy of the
  32. License at http://www.apache.org/licenses/LICENSE-2.0
  33. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  34. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  35. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  36. MERCHANTABLITY OR NON-INFRINGEMENT.
  37. See the Apache Version 2.0 License for specific language governing permissions
  38. and limitations under the License.
  39. ***************************************************************************** */var xe=function(){return xe=Object.assign||function(O){for(var w,T=1,z=arguments.length;T<z;T++)for(var ee in w=arguments[T])Object.prototype.hasOwnProperty.call(w,ee)&&(O[ee]=w[ee]);return O},xe.apply(this,arguments)};function be(O){var w=typeof Symbol=="function"&&O[Symbol.iterator],T=0;return w?w.call(O):{next:function(){return O&&T>=O.length&&(O=void 0),{value:O&&O[T++],done:!O}}}}function Ae(O,w){var T=typeof Symbol=="function"&&O[Symbol.iterator];if(!T)return O;var z,ee,pe=T.call(O),Se=[];try{for(;(w===void 0||w-- >0)&&!(z=pe.next()).done;)Se.push(z.value)}catch($e){ee={error:$e}}finally{try{z&&!z.done&&(T=pe.return)&&T.call(pe)}finally{if(ee)throw ee.error}}return Se}function Fe(){for(var O=[],w=0;w<arguments.length;w++)O=O.concat(Ae(arguments[w]));return O}var je=Symbol("mobx did run lazy initializers"),ve=Symbol("mobx pending decorators"),Pe={},Te={};function We(O,w){var T=w?Pe:Te;return T[O]||(T[O]={configurable:!0,enumerable:w,get:function(){return it(this),this[O]},set:function(z){it(this),this[O]=z}})}function it(O){var w,T;if(O[je]!==!0){var z=O[ve];if(z){L(O,je,!0);var ee=Fe(Object.getOwnPropertySymbols(z),Object.keys(z));try{for(var pe=be(ee),Se=pe.next();!Se.done;Se=pe.next()){var $e=z[Se.value];$e.propertyCreator(O,$e.prop,$e.descriptor,$e.decoratorTarget,$e.decoratorArguments)}}catch(ct){w={error:ct}}finally{try{Se&&!Se.done&&(T=pe.return)&&T.call(pe)}finally{if(w)throw w.error}}}}}function xt(O,w){return function(){var T,z=function(ee,pe,Se,$e){if($e===!0)return w(ee,pe,Se,ee,T),null;if(!Object.prototype.hasOwnProperty.call(ee,ve)){var ct=ee[ve];L(ee,ve,xe({},ct))}return ee[ve][pe]={prop:pe,propertyCreator:w,descriptor:Se,decoratorTarget:ee,decoratorArguments:T},We(pe,O)};return Ye(arguments)?(T=b,z.apply(null,arguments)):(T=Array.prototype.slice.call(arguments),z)}}function Ye(O){return(O.length===2||O.length===3)&&(typeof O[1]=="string"||typeof O[1]=="symbol")||O.length===4&&O[3]===!0}function Je(O,w,T){return zi(O)?O:Array.isArray(O)?gt.array(O,{name:T}):N(O)?gt.object(O,void 0,{name:T}):W(O)?gt.map(O,{name:T}):X(O)?gt.set(O,{name:T}):O}function mt(O){return O}function se(O){P(O);var w=xt(!0,function(z,ee,pe,Se,$e){var ct=pe?pe.initializer?pe.initializer.call(z):pe.value:void 0;$r(z).addObservableProp(ee,ct,O)}),T=(d!==void 0&&d.env,w);return T.enhancer=O,T}var ce={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ge(O){return O==null?ce:typeof O=="string"?{name:O,deep:!0,proxy:!0}:O}Object.freeze(ce);var De=se(Je),Ge=se(function(O,w,T){return O==null||Lr(O)||Jr(O)||Vn(O)||Pr(O)?O:Array.isArray(O)?gt.array(O,{name:T,deep:!1}):N(O)?gt.object(O,void 0,{name:T,deep:!1}):W(O)?gt.map(O,{name:T,deep:!1}):X(O)?gt.set(O,{name:T,deep:!1}):j(!1)}),ze=se(mt),Et=se(function(O,w,T){return Ne(O,w)?w:O});function Rt(O){return O.defaultDecorator?O.defaultDecorator.enhancer:O.deep===!1?mt:Je}var At={box:function(O,w){arguments.length>2&&Me("box");var T=ge(w);return new zn(O,Rt(T),T.name,!0,T.equals)},array:function(O,w){arguments.length>2&&Me("array");var T=ge(w);return Oa(O,Rt(T),T.name)},map:function(O,w){arguments.length>2&&Me("map");var T=ge(w);return new rc(O,Rt(T),T.name)},set:function(O,w){arguments.length>2&&Me("set");var T=ge(w);return new jo(O,Rt(T),T.name)},object:function(O,w,T){typeof arguments[1]=="string"&&Me("object");var z=ge(T);if(z.proxy===!1)return Wo({},O,w,z);var ee=Vu(z),pe=Wo({},void 0,void 0,z),Se=Fi(pe);return os(Se,O,w,ee),Se},ref:ze,shallow:Ge,deep:De,struct:Et},gt=function(O,w,T){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return De.apply(null,arguments);if(zi(O))return O;var z=N(O)?gt.object(O,w,T):Array.isArray(O)?gt.array(O,w):W(O)?gt.map(O,w):X(O)?gt.set(O,w):O;if(z!==O)return z;j(!1)};function Me(O){j("Expected one or two arguments to observable."+O+". Did you accidentally try to use observable."+O+" as decorator?")}Object.keys(At).forEach(function(O){return gt[O]=At[O]});var lt,fe,at=xt(!1,function(O,w,T,z,ee){var pe=T.get,Se=T.set,$e=ee[0]||{};$r(O).addComputedProp(O,w,xe({get:pe,set:Se,context:O},$e))}),$t=at({equals:q.structural}),hn=function(O,w,T){if(typeof w=="string"||O!==null&&typeof O=="object"&&arguments.length===1)return at.apply(null,arguments);var z=typeof w=="object"?w:{};return z.get=O,z.set=typeof w=="function"?w:z.set,z.name=z.name||O.name||"",new wo(z)};hn.struct=$t,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"}(lt||(lt={})),function(O){O[O.NONE=0]="NONE",O[O.LOG=1]="LOG",O[O.BREAK=2]="BREAK"}(fe||(fe={}));var Wt=function(O){this.cause=O};function on(O){return O instanceof Wt}function _n(O){switch(O.dependenciesState){case lt.UP_TO_DATE:return!1;case lt.NOT_TRACKING:case lt.STALE:return!0;case lt.POSSIBLY_STALE:for(var w=Ve(!0),T=ae(),z=O.observing,ee=z.length,pe=0;pe<ee;pe++){var Se=z[pe];if(Fo(Se)){if(ft.disableErrorBoundaries)Se.get();else try{Se.get()}catch{return _e(T),Ke(w),!0}if(O.dependenciesState===lt.STALE)return _e(T),Ke(w),!0}}return pt(O),_e(T),Ke(w),!1}}function Nn(){return ft.trackingDerivation!==null}function Bt(O){var w=O.observers.size>0;ft.computationDepth>0&&w&&j(!1),ft.allowStateChanges||!w&&ft.enforceActions!=="strict"||j(!1)}function Xn(O,w,T){var z=Ve(!0);pt(O),O.newObserving=new Array(O.observing.length+100),O.unboundDepsCount=0,O.runId=++ft.runId;var ee,pe=ft.trackingDerivation;if(ft.trackingDerivation=O,ft.disableErrorBoundaries===!0)ee=w.call(T);else try{ee=w.call(T)}catch(Se){ee=new Wt(Se)}return ft.trackingDerivation=pe,function(Se){for(var $e=Se.observing,ct=Se.observing=Se.newObserving,qt=lt.UP_TO_DATE,tt=0,On=Se.unboundDepsCount,Gt=0;Gt<On;Gt++)(fn=ct[Gt]).diffValue===0&&(fn.diffValue=1,tt!==Gt&&(ct[tt]=fn),tt++),fn.dependenciesState>qt&&(qt=fn.dependenciesState);for(ct.length=tt,Se.newObserving=null,On=$e.length;On--;)(fn=$e[On]).diffValue===0&&Fu(fn,Se),fn.diffValue=0;for(;tt--;){var fn;(fn=ct[tt]).diffValue===1&&(fn.diffValue=0,zl(fn,Se))}qt!==lt.UP_TO_DATE&&(Se.dependenciesState=qt,Se.onBecomeStale())}(O),Ke(z),ee}function ne(O){var w=O.observing;O.observing=[];for(var T=w.length;T--;)Fu(w[T],O);O.dependenciesState=lt.NOT_TRACKING}function de(O){var w=ae();try{return O()}finally{_e(w)}}function ae(){var O=ft.trackingDerivation;return ft.trackingDerivation=null,O}function _e(O){ft.trackingDerivation=O}function Ve(O){var w=ft.allowStateReads;return ft.allowStateReads=O,w}function Ke(O){ft.allowStateReads=O}function pt(O){if(O.dependenciesState!==lt.UP_TO_DATE){O.dependenciesState=lt.UP_TO_DATE;for(var w=O.observing,T=w.length;T--;)w[T].lowestObserverState=lt.UP_TO_DATE}}var Vt=0,or=1,yr=Object.getOwnPropertyDescriptor(function(){},"name");yr&&yr.configurable;function Yn(O,w,T){var z=function(){return Zn(O,w,T||this,arguments)};return z.isMobxAction=!0,z}function Zn(O,w,T,z){var ee=ut();try{return w.apply(T,z)}catch(pe){throw ee.error=pe,pe}finally{Ot(ee)}}function ut(O,w,T){var z=0,ee=ae();Dr();var pe={prevDerivation:ee,prevAllowStateChanges:zt(!0),prevAllowStateReads:Ve(!0),notifySpy:!1,startTime:z,actionId:or++,parentActionId:Vt};return Vt=pe.actionId,pe}function Ot(O){Vt!==O.actionId&&j("invalid action stack. did you forget to finish an action?"),Vt=O.parentActionId,O.error!==void 0&&(ft.suppressReactionErrors=!0),bn(O.prevAllowStateChanges),Ke(O.prevAllowStateReads),Fr(),_e(O.prevDerivation),O.notifySpy,ft.suppressReactionErrors=!1}function St(O,w){var T,z=zt(O);try{T=w()}finally{bn(z)}return T}function zt(O){var w=ft.allowStateChanges;return ft.allowStateChanges=O,w}function bn(O){ft.allowStateChanges=O}var zn=function(O){function w(T,z,ee,pe,Se){ee===void 0&&(ee="ObservableValue@"+E()),Se===void 0&&(Se=q.default);var $e=O.call(this,ee)||this;return $e.enhancer=z,$e.name=ee,$e.equals=Se,$e.hasUnreportedChange=!1,$e.value=z(T,void 0,ee),$e}return function(T,z){function ee(){this.constructor=T}ue(T,z),T.prototype=z===null?Object.create(z):(ee.prototype=z.prototype,new ee)}(w,O),w.prototype.dehanceValue=function(T){return this.dehancer!==void 0?this.dehancer(T):T},w.prototype.set=function(T){this.value,(T=this.prepareNewValue(T))!==ft.UNCHANGED&&this.setNewValue(T)},w.prototype.prepareNewValue=function(T){if(Bt(this),Rr(this)){var z=an(this,{object:this,type:"update",newValue:T});if(!z)return ft.UNCHANGED;T=z.newValue}return T=this.enhancer(T,this.value,this.name),this.equals(this.value,T)?ft.UNCHANGED:T},w.prototype.setNewValue=function(T){var z=this.value;this.value=T,this.reportChanged(),Ir(this)&&fr(this,{type:"update",object:this,newValue:T,oldValue:z})},w.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},w.prototype.intercept=function(T){return Go(this,T)},w.prototype.observe=function(T,z){return z&&T({object:this,type:"update",newValue:this.value,oldValue:void 0}),So(this,T)},w.prototype.toJSON=function(){return this.get()},w.prototype.toString=function(){return this.name+"["+this.value+"]"},w.prototype.valueOf=function(){return Z(this.get())},w.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},w}(B),zo=G("ObservableValue",zn),wo=function(){function O(w){this.dependenciesState=lt.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=lt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+E(),this.value=new Wt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=fe.NONE,P(w.get,"missing option for computed: get"),this.derivation=w.get,this.name=w.name||"ComputedValue@"+E(),w.set&&(this.setter=Yn(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===lt.UP_TO_DATE&&(w.lowestObserverState=lt.POSSIBLY_STALE,w.observers.forEach(function(T){T.dependenciesState===lt.UP_TO_DATE&&(T.dependenciesState=lt.POSSIBLY_STALE,T.isTracing!==fe.NONE&&lo(T,w),T.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&&j("Cycle detected in computation "+this.name+": "+this.derivation),ft.inBatch!==0||this.observers.size!==0||this.keepAlive?(qa(this),_n(this)&&this.trackAndCompute()&&function(T){T.lowestObserverState!==lt.STALE&&(T.lowestObserverState=lt.STALE,T.observers.forEach(function(z){z.dependenciesState===lt.POSSIBLY_STALE?z.dependenciesState=lt.STALE:z.dependenciesState===lt.UP_TO_DATE&&(T.lowestObserverState=lt.UP_TO_DATE)}))}(this)):_n(this)&&(this.warnAboutUntrackedRead(),Dr(),this.value=this.computeValue(!1),Fr());var w=this.value;if(on(w))throw w.cause;return w},O.prototype.peek=function(){var w=this.computeValue(!1);if(on(w))throw w.cause;return w},O.prototype.set=function(w){if(this.setter){P(!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 P(!1,!1)},O.prototype.trackAndCompute=function(){var w=this.value,T=this.dependenciesState===lt.NOT_TRACKING,z=this.computeValue(!0),ee=T||on(w)||on(z)||!this.equals(w,z);return ee&&(this.value=z),ee},O.prototype.computeValue=function(w){var T;if(this.isComputing=!0,ft.computationDepth++,w)T=Xn(this,this.derivation,this.scope);else if(ft.disableErrorBoundaries===!0)T=this.derivation.call(this.scope);else try{T=this.derivation.call(this.scope)}catch(z){T=new Wt(z)}return ft.computationDepth--,this.isComputing=!1,T},O.prototype.suspend=function(){this.keepAlive||(ne(this),this.value=void 0)},O.prototype.observe=function(w,T){var z=this,ee=!0,pe=void 0;return Yu(function(){var Se=z.get();if(!ee||T){var $e=ae();w({type:"update",object:z,newValue:Se,oldValue:pe}),_e($e)}ee=!1,pe=Se})},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 Z(this.get())},O.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},O}(),Fo=G("ComputedValue",wo),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},Bl={};function zu(){return typeof window!="undefined"?window:h!==void 0?h:typeof self!="undefined"?self:Bl}var qr=!0,ba=!1,ft=function(){var O=zu();return O.__mobxInstanceCount>0&&!O.__mobxGlobals&&(qr=!1),O.__mobxGlobals&&O.__mobxGlobals.version!==new Li().version&&(qr=!1),qr?O.__mobxGlobals?(O.__mobxInstanceCount+=1,O.__mobxGlobals.UNCHANGED||(O.__mobxGlobals.UNCHANGED={}),O.__mobxGlobals):(O.__mobxInstanceCount=1,O.__mobxGlobals=new Li):(setTimeout(function(){ba||j("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Li)}();function zl(O,w){O.observers.add(w),O.lowestObserverState>w.dependenciesState&&(O.lowestObserverState=w.dependenciesState)}function Fu(O,w){O.observers.delete(w),O.observers.size===0&&$u(O)}function $u(O){O.isPendingUnobservation===!1&&(O.isPendingUnobservation=!0,ft.pendingUnobservations.push(O))}function Dr(){ft.inBatch++}function Fr(){if(--ft.inBatch==0){Uu();for(var O=ft.pendingUnobservations,w=0;w<O.length;w++){var T=O[w];T.isPendingUnobservation=!1,T.observers.size===0&&(T.isBeingObserved&&(T.isBeingObserved=!1,T.onBecomeUnobserved()),T instanceof wo&&T.suspend())}ft.pendingUnobservations=[]}}function qa(O){var w=ft.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&&ft.inBatch>0&&$u(O),!1)}function lo(O,w){if(O.isTracing===fe.BREAK){var T=[];Zr(Gn(O),T,1),new Function(`debugger;
  40. /*
  41. Tracing '`+O.name+`'
  42. You are entering this break point because derivation '`+O.name+"' is being traced and '"+w.name+`' is now forcing it to update.
  43. Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
  44. The stackframe you are looking for is at least ~6-8 stack-frames up.
  45. `+(O instanceof wo?O.derivation.toString().replace(/[*]\//g,"/"):"")+`
  46. The dependencies for this derivation are:
  47. `+T.join(`
  48. `)+`
  49. */
  50. `)()}}function Zr(O,w,T){w.length>=1e3?w.push("(and many more)"):(w.push(""+new Array(T).join(" ")+O.name),O.dependencies&&O.dependencies.forEach(function(z){return Zr(z,w,T+1)}))}var fo=function(){function O(w,T,z,ee){w===void 0&&(w="Reaction@"+E()),ee===void 0&&(ee=!1),this.name=w,this.onInvalidate=T,this.errorHandler=z,this.requiresObservable=ee,this.observing=[],this.newObserving=[],this.dependenciesState=lt.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=fe.NONE}return O.prototype.onBecomeStale=function(){this.schedule()},O.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,ft.pendingReactions.push(this),Uu())},O.prototype.isScheduled=function(){return this._isScheduled},O.prototype.runReaction=function(){if(!this.isDisposed){if(Dr(),this._isScheduled=!1,_n(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(w){this.reportExceptionInDerivation(w)}}Fr()}},O.prototype.track=function(w){if(!this.isDisposed){Dr(),this._isRunning=!0;var T=Xn(this,w,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ne(this),on(T)&&this.reportExceptionInDerivation(T.cause),Fr()}},O.prototype.reportExceptionInDerivation=function(w){var T=this;if(this.errorHandler)this.errorHandler(w,this);else{if(ft.disableErrorBoundaries)throw w;ft.suppressReactionErrors,ft.globalReactionErrorHandlers.forEach(function(z){return z(w,T)})}},O.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Dr(),ne(this),Fr()))},O.prototype.getDisposer=function(){var w=this.dispose.bind(this);return w[H]=this,w},O.prototype.toString=function(){return"Reaction["+this.name+"]"},O.prototype.trace=function(w){w===void 0&&(w=!1),function(){for(var T=[],z=0;z<arguments.length;z++)T[z]=arguments[z];var ee=!1;typeof T[T.length-1]=="boolean"&&(ee=T.pop());var pe=sn(T);if(!pe)return j(!1);pe.isTracing,fe.NONE,pe.isTracing=ee?fe.BREAK:fe.LOG}(this,w)},O}(),Wu=function(O){return O()};function Uu(){ft.inBatch>0||ft.isRunningReactions||Wu(Qc)}function Qc(){ft.isRunningReactions=!0;for(var O=ft.pendingReactions,w=0;O.length>0;){++w==100&&O.splice(0);for(var T=O.splice(0),z=0,ee=T.length;z<ee;z++)T[z].runReaction()}ft.isRunningReactions=!1}var ma=G("Reaction",fo);function es(O){var w=Wu;Wu=function(T){return O(function(){return w(T)})}}function Gu(O){return function(){}}function Fl(){j(!1)}function fi(O){return function(w,T,z){if(z){if(z.value)return{value:Yn(O,z.value),enumerable:!1,configurable:!0,writable:!0};var ee=z.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Yn(O,ee.call(this))}}}return ts(O).apply(this,arguments)}}function ts(O){return function(w,T,z){Object.defineProperty(w,T,{configurable:!0,enumerable:!1,get:function(){},set:function(ee){L(this,T,$o(O,ee))}})}}var $o=function(O,w,T,z){return arguments.length===1&&typeof O=="function"?Yn(O.name||"<unnamed action>",O):arguments.length===2&&typeof w=="function"?Yn(O,w):arguments.length===1&&typeof O=="string"?fi(O):z!==!0?fi(w).apply(null,arguments):void L(O,w,Yn(O.name||w,T.value,this))};function Hu(O,w){return Zn(typeof O=="string"?O:O.name||"<unnamed action>",typeof O=="function"?O:w,this,void 0)}function Za(O){return typeof O=="function"&&O.isMobxAction===!0}function Xu(O,w,T){L(O,w,Yn(w,T.bind(O)))}function Yu(O,w){w===void 0&&(w=g);var T,z=w&&w.name||O.name||"Autorun@"+E();if(!w.scheduler&&!w.delay)T=new fo(z,function(){this.track(Se)},w.onError,w.requiresObservable);else{var ee=ns(w),pe=!1;T=new fo(z,function(){pe||(pe=!0,ee(function(){pe=!1,T.isDisposed||T.track(Se)}))},w.onError,w.requiresObservable)}function Se(){O(T)}return T.schedule(),T.getDisposer()}$o.bound=function(O,w,T,z){return z===!0?(Xu(O,w,T.value),null):T?{configurable:!0,enumerable:!1,get:function(){return Xu(this,w,T.value||T.initializer.call(this)),this[w]},set:Fl}:{enumerable:!1,configurable:!0,set:function(ee){Xu(this,w,ee)},get:function(){}}};var $l=function(O){return O()};function ns(O){return O.scheduler?O.scheduler:O.delay?function(w){return setTimeout(w,O.delay)}:$l}function vn(O,w,T){T===void 0&&(T=g);var z,ee,pe,Se=T.name||"Reaction@"+E(),$e=$o(Se,T.onError?(z=T.onError,ee=w,function(){try{return ee.apply(this,arguments)}catch(Rn){z.call(this,Rn)}}):w),ct=!T.scheduler&&!T.delay,qt=ns(T),tt=!0,On=!1,Gt=T.compareStructural?q.structural:T.equals||q.default,fn=new fo(Se,function(){tt||ct?eo():On||(On=!0,qt(eo))},T.onError,T.requiresObservable);function eo(){if(On=!1,!fn.isDisposed){var Rn=!1;fn.track(function(){var Br=O(fn);Rn=tt||!Gt(pe,Br),pe=Br}),tt&&T.fireImmediately&&$e(pe,fn),tt||Rn!==!0||$e(pe,fn),tt&&(tt=!1)}}return fn.schedule(),fn.getDisposer()}function yn(O,w,T){return rs("onBecomeUnobserved",O,w,T)}function rs(O,w,T,z){var ee=typeof z=="function"?Qr(w,T):Qr(w),pe=typeof z=="function"?z:T,Se=O+"Listeners";return ee[Se]?ee[Se].add(pe):ee[Se]=new Set([pe]),typeof ee[O]!="function"?j(!1):function(){var $e=ee[Se];$e&&($e.delete(pe),$e.size===0&&delete ee[Se])}}function Bi(O){var w=O.enforceActions,T=O.computedRequiresReaction,z=O.computedConfigurable,ee=O.disableErrorBoundaries,pe=O.reactionScheduler,Se=O.reactionRequiresObservable,$e=O.observableRequiresReaction;if(O.isolateGlobalState===!0&&((ft.pendingReactions.length||ft.inBatch||ft.isRunningReactions)&&j("isolateGlobalState should be called before MobX is running any reactions"),ba=!0,qr&&(--zu().__mobxInstanceCount==0&&(zu().__mobxGlobals=void 0),ft=new Li)),w!==void 0){var ct=void 0;switch(w){case!0:case"observed":ct=!0;break;case!1:case"never":ct=!1;break;case"strict":case"always":ct="strict";break;default:j("Invalid value for 'enforceActions': '"+w+"', expected 'never', 'always' or 'observed'")}ft.enforceActions=ct,ft.allowStateChanges=ct!==!0&&ct!=="strict"}T!==void 0&&(ft.computedRequiresReaction=!!T),Se!==void 0&&(ft.reactionRequiresObservable=!!Se),$e!==void 0&&(ft.observableRequiresReaction=!!$e,ft.allowStateReads=!ft.observableRequiresReaction),z!==void 0&&(ft.computedConfigurable=!!z),ee!==void 0&&(ft.disableErrorBoundaries=!!ee),pe&&es(pe)}function Wo(O,w,T,z){var ee=Vu(z=ge(z));return it(O),$r(O,z.name,ee.enhancer),w&&os(O,w,T,ee),O}function Vu(O){return O.defaultDecorator||(O.deep===!1?ze:De)}function os(O,w,T,z){var ee,pe;Dr();try{var Se=J(w);try{for(var $e=be(Se),ct=$e.next();!ct.done;ct=$e.next()){var qt=ct.value,tt=Object.getOwnPropertyDescriptor(w,qt),On=(T&&qt in T?T[qt]:tt.get?at:z)(O,qt,tt,!0);On&&Object.defineProperty(O,qt,On)}}catch(Gt){ee={error:Gt}}finally{try{ct&&!ct.done&&(pe=$e.return)&&pe.call($e)}finally{if(ee)throw ee.error}}}finally{Fr()}}function Gn(O,w){return Ku(Qr(O,w))}function Ku(O){var w,T,z={name:O.name};return O.observing&&O.observing.length>0&&(z.dependencies=(w=O.observing,T=[],w.forEach(function(ee){T.indexOf(ee)===-1&&T.push(ee)}),T).map(Ku)),z}var _a=0;function qu(){this.message="FLOW_CANCELLED"}function Ja(O){arguments.length!==1&&j("Flow expects 1 argument and cannot be used as decorator");var w=O.name||"<unnamed flow>";return function(){var T,z=this,ee=arguments,pe=++_a,Se=$o(w+" - runid: "+pe+" - init",O).apply(z,ee),$e=void 0,ct=new Promise(function(qt,tt){var On=0;function Gt(Rn){var Br;$e=void 0;try{Br=$o(w+" - runid: "+pe+" - yield "+On++,Se.next).call(Se,Rn)}catch(Xo){return tt(Xo)}eo(Br)}function fn(Rn){var Br;$e=void 0;try{Br=$o(w+" - runid: "+pe+" - yield "+On++,Se.throw).call(Se,Rn)}catch(Xo){return tt(Xo)}eo(Br)}function eo(Rn){if(!Rn||typeof Rn.then!="function")return Rn.done?qt(Rn.value):($e=Promise.resolve(Rn.value)).then(Gt,fn);Rn.then(eo,tt)}T=tt,Gt(void 0)});return ct.cancel=$o(w+" - runid: "+pe+" - cancel",function(){try{$e&&vr($e);var qt=Se.return(void 0),tt=Promise.resolve(qt.value);tt.then(M,M),vr(tt),T(new qu)}catch(On){T(On)}}),ct}}function vr(O){typeof O.cancel=="function"&&O.cancel()}function Zu(O,w){if(O==null)return!1;if(w!==void 0){if(Lr(O)===!1||!O[H].values.has(w))return!1;var T=Qr(O,w);return Fo(T)}return Fo(O)}function is(O){return arguments.length>1?j(!1):Zu(O)}function Ju(O,w){return typeof w!="string"?j(!1):Zu(O,w)}function Qa(O,w){return O!=null&&(w!==void 0?!!Lr(O)&&O[H].values.has(w):Lr(O)||!!O[H]||V(O)||ma(O)||Fo(O))}function zi(O){return arguments.length!==1&&j(!1),Qa(O)}function xo(O){return Lr(O)?O[H].getKeys():Vn(O)||Pr(O)?Array.from(O.keys()):Jr(O)?O.map(function(w,T){return T}):j(!1)}function Sn(O){return Lr(O)?xo(O).map(function(w){return O[w]}):Vn(O)?xo(O).map(function(w){return O.get(w)}):Pr(O)?Array.from(O.values()):Jr(O)?O.slice():j(!1)}function as(O){return Lr(O)?xo(O).map(function(w){return[w,O[w]]}):Vn(O)?xo(O).map(function(w){return[w,O.get(w)]}):Pr(O)?Array.from(O.entries()):Jr(O)?O.map(function(w,T){return[T,w]}):j(!1)}function Nr(O,w,T){if(arguments.length!==2||Pr(O))if(Lr(O)){var z=O[H],ee=z.values.get(w);ee?z.write(w,T):z.addObservableProp(w,T,z.defaultEnhancer)}else if(Vn(O))O.set(w,T);else if(Pr(O))O.add(w);else{if(!Jr(O))return j(!1);typeof w!="number"&&(w=parseInt(w,10)),P(w>=0,"Not a valid index: '"+w+"'"),Dr(),w>=O.length&&(O.length=w+1),O[w]=T,Fr()}else{Dr();var pe=w;try{for(var Se in pe)Nr(O,Se,pe[Se])}finally{Fr()}}}function us(O,w,T,z){return typeof T=="function"?function(ee,pe,Se,$e){return Ao(ee,pe).observe(Se,$e)}(O,w,T,z):function(ee,pe,Se){return Ao(ee).observe(pe,Se)}(O,w,T)}qu.prototype=Object.create(Error.prototype);var cs={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function jr(O,w,T,z){return z.detectCycles&&O.set(w,T),T}function Cr(O,w,T){if(!w.recurseEverything&&!zi(O)||typeof O!="object")return O;if(O===null)return null;if(O instanceof Date)return O;if(zo(O))return Cr(O.get(),w,T);if(zi(O)&&xo(O),w.detectCycles===!0&&O!==null&&T.has(O))return T.get(O);if(Jr(O)||Array.isArray(O)){var z=jr(T,O,[],w),ee=O.map(function(Gt){return Cr(Gt,w,T)});z.length=ee.length;for(var pe=0,Se=ee.length;pe<Se;pe++)z[pe]=ee[pe];return z}if(Pr(O)||Object.getPrototypeOf(O)===Set.prototype){if(w.exportMapsAsObjects===!1){var $e=jr(T,O,new Set,w);return O.forEach(function(Gt){$e.add(Cr(Gt,w,T))}),$e}var ct=jr(T,O,[],w);return O.forEach(function(Gt){ct.push(Cr(Gt,w,T))}),ct}if(Vn(O)||Object.getPrototypeOf(O)===Map.prototype){if(w.exportMapsAsObjects===!1){var qt=jr(T,O,new Map,w);return O.forEach(function(Gt,fn){qt.set(fn,Cr(Gt,w,T))}),qt}var tt=jr(T,O,{},w);return O.forEach(function(Gt,fn){tt[fn]=Cr(Gt,w,T)}),tt}var On=jr(T,O,{},w);return Q(O).forEach(function(Gt){On[Gt]=Cr(O[Gt],w,T)}),On}function Qu(O,w){var T;return typeof w=="boolean"&&(w={detectCycles:w}),w||(w=cs),w.detectCycles=w.detectCycles===void 0?w.recurseEverything===!0:w.detectCycles===!0,w.detectCycles&&(T=new Map),Cr(O,w,T)}function sn(O){switch(O.length){case 0:return ft.trackingDerivation;case 1:return Qr(O[0]);case 2:return Qr(O[0],O[1])}}function ir(O,w){w===void 0&&(w=void 0),Dr();try{return O.apply(w)}finally{Fr()}}function eu(O,w,T){return arguments.length===1||w&&typeof w=="object"?ec(O,w):ss(O,w,T||{})}function ss(O,w,T){var z;typeof T.timeout=="number"&&(z=setTimeout(function(){if(!pe[H].isDisposed){pe();var Se=new Error("WHEN_TIMEOUT");if(!T.onError)throw Se;T.onError(Se)}},T.timeout)),T.name=T.name||"When@"+E();var ee=Yn(T.name+"-effect",w),pe=Yu(function(Se){O()&&(Se.dispose(),z&&clearTimeout(z),ee())},T);return pe}function ec(O,w){var T,z=new Promise(function(ee,pe){var Se=ss(O,ee,xe(xe({},w),{onError:pe}));T=function(){Se(),pe("WHEN_CANCELLED")}});return z.cancel=T,z}function tu(O){return O[H]}function Eo(O){return typeof O=="string"||typeof O=="number"||typeof O=="symbol"}var Uo={has:function(O,w){if(w===H||w==="constructor"||w===je)return!0;var T=tu(O);return Eo(w)?T.has(w):w in O},get:function(O,w){if(w===H||w==="constructor"||w===je)return O[w];var T=tu(O),z=T.values.get(w);if(z instanceof B){var ee=z.get();return ee===void 0&&T.has(w),ee}return Eo(w)&&T.has(w),O[w]},set:function(O,w,T){return!!Eo(w)&&(Nr(O,w,T),!0)},deleteProperty:function(O,w){return!!Eo(w)&&(tu(O).remove(w),!0)},ownKeys:function(O){return tu(O).keysAtom.reportObserved(),Reflect.ownKeys(O)},preventExtensions:function(O){return j("Dynamic observable objects cannot be frozen"),!1}};function Fi(O){var w=new Proxy(O,Uo);return O[H].proxy=w,w}function Rr(O){return O.interceptors!==void 0&&O.interceptors.length>0}function Go(O,w){var T=O.interceptors||(O.interceptors=[]);return T.push(w),k(function(){var z=T.indexOf(w);z!==-1&&T.splice(z,1)})}function an(O,w){var T=ae();try{for(var z=Fe(O.interceptors||[]),ee=0,pe=z.length;ee<pe&&(P(!(w=z[ee](w))||w.type,"Intercept handlers should return nothing or a change object"),w);ee++);return w}finally{_e(T)}}function Ir(O){return O.changeListeners!==void 0&&O.changeListeners.length>0}function So(O,w){var T=O.changeListeners||(O.changeListeners=[]);return T.push(w),k(function(){var z=T.indexOf(w);z!==-1&&T.splice(z,1)})}function fr(O,w){var T=ae(),z=O.changeListeners;if(z){for(var ee=0,pe=(z=z.slice()).length;ee<pe;ee++)z[ee](w);_e(T)}}var nu={get:function(O,w){return w===H?O[H]:w==="length"?O[H].getArrayLength():typeof w=="number"?Fn.get.call(O,w):typeof w!="string"||isNaN(w)?Fn.hasOwnProperty(w)?Fn[w]:O[w]:Fn.get.call(O,parseInt(w))},set:function(O,w,T){return w==="length"&&O[H].setArrayLength(T),typeof w=="number"&&Fn.set.call(O,w,T),typeof w=="symbol"||isNaN(w)?O[w]=T:Fn.set.call(O,parseInt(w),T),!0},preventExtensions:function(O){return j("Observable arrays cannot be frozen"),!1}};function Oa(O,w,T,z){T===void 0&&(T="ObservableArray@"+E()),z===void 0&&(z=!1);var ee,pe,Se,$e=new tc(T,w,z);ee=$e.values,pe=H,Se=$e,Object.defineProperty(ee,pe,{enumerable:!1,writable:!1,configurable:!0,value:Se});var ct=new Proxy($e.values,nu);if($e.proxy=ct,O&&O.length){var qt=zt(!0);$e.spliceWithArray(0,0,O),bn(qt)}return ct}var tc=function(){function O(w,T,z){this.owned=z,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new B(w||"ObservableArray@"+E()),this.enhancer=function(ee,pe){return T(ee,pe,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 Go(this,w)},O.prototype.observe=function(w,T){return T===void 0&&(T=!1),T&&w({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),So(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 T=this.values.length;if(w!==T)if(w>T){for(var z=new Array(w-T),ee=0;ee<w-T;ee++)z[ee]=void 0;this.spliceWithArray(T,0,z)}else this.spliceWithArray(w,T-w)},O.prototype.updateArrayLength=function(w,T){if(w!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=T},O.prototype.spliceWithArray=function(w,T,z){var ee=this;Bt(this.atom);var pe=this.values.length;if(w===void 0?w=0:w>pe?w=pe:w<0&&(w=Math.max(0,pe+w)),T=arguments.length===1?pe-w:T==null?0:Math.max(0,Math.min(T,pe-w)),z===void 0&&(z=b),Rr(this)){var Se=an(this,{object:this.proxy,type:"splice",index:w,removedCount:T,added:z});if(!Se)return b;T=Se.removedCount,z=Se.added}z=z.length===0?z:z.map(function(ct){return ee.enhancer(ct,void 0)});var $e=this.spliceItemsIntoValues(w,T,z);return T===0&&z.length===0||this.notifyArraySplice(w,z,$e),this.dehanceValues($e)},O.prototype.spliceItemsIntoValues=function(w,T,z){var ee;if(z.length<1e4)return(ee=this.values).splice.apply(ee,Fe([w,T],z));var pe=this.values.slice(w,w+T);return this.values=this.values.slice(0,w).concat(z,this.values.slice(w+T)),pe},O.prototype.notifyArrayChildUpdate=function(w,T,z){var ee=!this.owned&&!1,pe=Ir(this),Se=pe||ee?{object:this.proxy,type:"update",index:w,newValue:T,oldValue:z}:null;this.atom.reportChanged(),pe&&fr(this,Se)},O.prototype.notifyArraySplice=function(w,T,z){var ee=!this.owned&&!1,pe=Ir(this),Se=pe||ee?{object:this.proxy,type:"splice",index:w,removed:z,added:T,removedCount:z.length,addedCount:T.length}:null;this.atom.reportChanged(),pe&&fr(this,Se)},O}(),Fn={intercept:function(O){return this[H].intercept(O)},observe:function(O,w){return w===void 0&&(w=!1),this[H].observe(O,w)},clear:function(){return this.splice(0)},replace:function(O){var w=this[H];return w.spliceWithArray(0,w.values.length,O)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(O,w){for(var T=[],z=2;z<arguments.length;z++)T[z-2]=arguments[z];var ee=this[H];switch(arguments.length){case 0:return[];case 1:return ee.spliceWithArray(O);case 2:return ee.spliceWithArray(O,w)}return ee.spliceWithArray(O,w,T)},spliceWithArray:function(O,w,T){return this[H].spliceWithArray(O,w,T)},push:function(){for(var O=[],w=0;w<arguments.length;w++)O[w]=arguments[w];var T=this[H];return T.spliceWithArray(T.values.length,0,O),T.values.length},pop:function(){return this.splice(Math.max(this[H].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 T=this[H];return T.spliceWithArray(0,0,O),T.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[H],T=w.dehanceValues(w.values).indexOf(O);return T>-1&&(this.splice(T,1),!0)},get:function(O){var w=this[H];if(w&&O<w.values.length)return w.atom.reportObserved(),w.dehanceValue(w.values[O])},set:function(O,w){var T=this[H],z=T.values;if(O<z.length){Bt(T.atom);var ee=z[O];if(Rr(T)){var pe=an(T,{type:"update",object:T.proxy,index:O,newValue:w});if(!pe)return;w=pe.newValue}(w=T.enhancer(w,ee))!==ee&&(z[O]=w,T.notifyArrayChildUpdate(O,w,ee))}else{if(O!==z.length)throw new Error("[mobx.array] Index out of bounds, "+O+" is larger than "+z.length);T.spliceWithArray(O,0,[w])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(O){typeof Array.prototype[O]=="function"&&(Fn[O]=function(){var w=this[H];w.atom.reportObserved();var T=w.dehanceValues(w.values);return T[O].apply(T,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(O){typeof Array.prototype[O]=="function"&&(Fn[O]=function(w,T){var z=this,ee=this[H];return ee.atom.reportObserved(),ee.dehanceValues(ee.values)[O](function(pe,Se){return w.call(T,pe,Se,z)},T)})}),["reduce","reduceRight"].forEach(function(O){Fn[O]=function(){var w=this,T=this[H];T.atom.reportObserved();var z=arguments[0];return arguments[0]=function(ee,pe,Se){return pe=T.dehanceValue(pe),z(ee,pe,Se,w)},T.values[O].apply(T.values,arguments)}});var ru,Ho=G("ObservableArrayAdministration",tc);function Jr(O){return R(O)&&Ho(O[H])}var nc,Wl={},rc=function(){function O(w,T,z){if(T===void 0&&(T=Je),z===void 0&&(z="ObservableMap@"+E()),this.enhancer=T,this.name=z,this[ru]=Wl,this._keysAtom=Y(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 T=this;if(!ft.trackingDerivation)return this._has(w);var z=this._hasMap.get(w);if(!z){var ee=z=new zn(this._has(w),mt,this.name+"."+te(w)+"?",!1);this._hasMap.set(w,ee),yn(ee,function(){return T._hasMap.delete(w)})}return z.get()},O.prototype.set=function(w,T){var z=this._has(w);if(Rr(this)){var ee=an(this,{type:z?"update":"add",object:this,newValue:T,name:w});if(!ee)return this;T=ee.newValue}return z?this._updateValue(w,T):this._addValue(w,T),this},O.prototype.delete=function(w){var T=this;if(Bt(this._keysAtom),Rr(this)&&!(ee=an(this,{type:"delete",object:this,name:w})))return!1;if(this._has(w)){var z=Ir(this),ee=z?{type:"delete",object:this,oldValue:this._data.get(w).value,name:w}:null;return ir(function(){T._keysAtom.reportChanged(),T._updateHasMapEntry(w,!1),T._data.get(w).setNewValue(void 0),T._data.delete(w)}),z&&fr(this,ee),!0}return!1},O.prototype._updateHasMapEntry=function(w,T){var z=this._hasMap.get(w);z&&z.setNewValue(T)},O.prototype._updateValue=function(w,T){var z=this._data.get(w);if((T=z.prepareNewValue(T))!==ft.UNCHANGED){var ee=Ir(this),pe=ee?{type:"update",object:this,oldValue:z.value,name:w,newValue:T}:null;z.setNewValue(T),ee&&fr(this,pe)}},O.prototype._addValue=function(w,T){var z=this;Bt(this._keysAtom),ir(function(){var Se=new zn(T,z.enhancer,z.name+"."+te(w),!1);z._data.set(w,Se),T=Se.value,z._updateHasMapEntry(w,!0),z._keysAtom.reportChanged()});var ee=Ir(this),pe=ee?{type:"add",object:this,name:w,newValue:T}:null;ee&&fr(this,pe)},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,T=this.keys();return en({next:function(){var z=T.next(),ee=z.done,pe=z.value;return{done:ee,value:ee?void 0:w.get(pe)}}})},O.prototype.entries=function(){var w=this,T=this.keys();return en({next:function(){var z=T.next(),ee=z.done,pe=z.value;return{done:ee,value:ee?void 0:[pe,w.get(pe)]}}})},O.prototype[ru=H,Symbol.iterator]=function(){return this.entries()},O.prototype.forEach=function(w,T){var z,ee;try{for(var pe=be(this),Se=pe.next();!Se.done;Se=pe.next()){var $e=Ae(Se.value,2),ct=$e[0],qt=$e[1];w.call(T,qt,ct,this)}}catch(tt){z={error:tt}}finally{try{Se&&!Se.done&&(ee=pe.return)&&ee.call(pe)}finally{if(z)throw z.error}}},O.prototype.merge=function(w){var T=this;return Vn(w)&&(w=w.toJS()),ir(function(){var z=zt(!0);try{N(w)?Q(w).forEach(function(ee){return T.set(ee,w[ee])}):Array.isArray(w)?w.forEach(function(ee){var pe=Ae(ee,2),Se=pe[0],$e=pe[1];return T.set(Se,$e)}):W(w)?(w.constructor!==Map&&j("Cannot initialize from classes that inherit from Map: "+w.constructor.name),w.forEach(function(ee,pe){return T.set(pe,ee)})):w!=null&&j("Cannot initialize map from "+w)}finally{bn(z)}}),this},O.prototype.clear=function(){var w=this;ir(function(){de(function(){var T,z;try{for(var ee=be(w.keys()),pe=ee.next();!pe.done;pe=ee.next()){var Se=pe.value;w.delete(Se)}}catch($e){T={error:$e}}finally{try{pe&&!pe.done&&(z=ee.return)&&z.call(ee)}finally{if(T)throw T.error}}})})},O.prototype.replace=function(w){var T=this;return ir(function(){var z,ee,pe,Se,$e=function(Ar){if(W(Ar)||Vn(Ar))return Ar;if(Array.isArray(Ar))return new Map(Ar);if(N(Ar)){var xa=new Map;for(var $i in Ar)xa.set($i,Ar[$i]);return xa}return j("Cannot convert to map from '"+Ar+"'")}(w),ct=new Map,qt=!1;try{for(var tt=be(T._data.keys()),On=tt.next();!On.done;On=tt.next()){var Gt=On.value;if(!$e.has(Gt))if(T.delete(Gt))qt=!0;else{var fn=T._data.get(Gt);ct.set(Gt,fn)}}}catch(Ar){z={error:Ar}}finally{try{On&&!On.done&&(ee=tt.return)&&ee.call(tt)}finally{if(z)throw z.error}}try{for(var eo=be($e.entries()),Rn=eo.next();!Rn.done;Rn=eo.next()){var Br=Ae(Rn.value,2),Xo=(Gt=Br[0],fn=Br[1],T._data.has(Gt));if(T.set(Gt,fn),T._data.has(Gt)){var Yo=T._data.get(Gt);ct.set(Gt,Yo),Xo||(qt=!0)}}}catch(Ar){pe={error:Ar}}finally{try{Rn&&!Rn.done&&(Se=eo.return)&&Se.call(eo)}finally{if(pe)throw pe.error}}if(!qt)if(T._data.size!==ct.size)T._keysAtom.reportChanged();else for(var wa=T._data.keys(),ic=ct.keys(),hi=wa.next(),iu=ic.next();!hi.done;){if(hi.value!==iu.value){T._keysAtom.reportChanged();break}hi=wa.next(),iu=ic.next()}T._data=ct}),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,T,z={};try{for(var ee=be(this),pe=ee.next();!pe.done;pe=ee.next()){var Se=Ae(pe.value,2),$e=Se[0],ct=Se[1];z[typeof $e=="symbol"?$e:te($e)]=ct}}catch(qt){w={error:qt}}finally{try{pe&&!pe.done&&(T=ee.return)&&T.call(ee)}finally{if(w)throw w.error}}return z},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(T){return te(T)+": "+w.get(T)}).join(", ")+" }]"},O.prototype.observe=function(w,T){return So(this,w)},O.prototype.intercept=function(w){return Go(this,w)},O}(),Vn=G("ObservableMap",rc),pi={},jo=function(){function O(w,T,z){if(T===void 0&&(T=Je),z===void 0&&(z="ObservableSet@"+E()),this.name=z,this[nc]=pi,this._data=new Set,this._atom=Y(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(ee,pe){return T(ee,pe,z)},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;ir(function(){de(function(){var T,z;try{for(var ee=be(w._data.values()),pe=ee.next();!pe.done;pe=ee.next()){var Se=pe.value;w.delete(Se)}}catch($e){T={error:$e}}finally{try{pe&&!pe.done&&(z=ee.return)&&z.call(ee)}finally{if(T)throw T.error}}})})},O.prototype.forEach=function(w,T){var z,ee;try{for(var pe=be(this),Se=pe.next();!Se.done;Se=pe.next()){var $e=Se.value;w.call(T,$e,$e,this)}}catch(ct){z={error:ct}}finally{try{Se&&!Se.done&&(ee=pe.return)&&ee.call(pe)}finally{if(z)throw z.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 T=this;if(Bt(this._atom),Rr(this)&&!(ee=an(this,{type:"add",object:this,newValue:w})))return this;if(!this.has(w)){ir(function(){T._data.add(T.enhancer(w,void 0)),T._atom.reportChanged()});var z=Ir(this),ee=z?{type:"add",object:this,newValue:w}:null;z&&fr(this,ee)}return this},O.prototype.delete=function(w){var T=this;if(Rr(this)&&!(ee=an(this,{type:"delete",object:this,oldValue:w})))return!1;if(this.has(w)){var z=Ir(this),ee=z?{type:"delete",object:this,oldValue:w}:null;return ir(function(){T._atom.reportChanged(),T._data.delete(w)}),z&&fr(this,ee),!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,T=Array.from(this.keys()),z=Array.from(this.values());return en({next:function(){var ee=w;return w+=1,ee<z.length?{value:[T[ee],z[ee]],done:!1}:{done:!0}}})},O.prototype.keys=function(){return this.values()},O.prototype.values=function(){this._atom.reportObserved();var w=this,T=0,z=Array.from(this._data.values());return en({next:function(){return T<z.length?{value:w.dehanceValue(z[T++]),done:!1}:{done:!0}}})},O.prototype.replace=function(w){var T=this;return Pr(w)&&(w=w.toJS()),ir(function(){var z=zt(!0);try{Array.isArray(w)||X(w)?(T.clear(),w.forEach(function(ee){return T.add(ee)})):w!=null&&j("Cannot initialize set from "+w)}finally{bn(z)}}),this},O.prototype.observe=function(w,T){return So(this,w)},O.prototype.intercept=function(w){return Go(this,w)},O.prototype.toJS=function(){return new Set(this)},O.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},O.prototype[nc=H,Symbol.iterator]=function(){return this.values()},O}(),Pr=G("ObservableSet",jo),oc=function(){function O(w,T,z,ee){T===void 0&&(T=new Map),this.target=w,this.values=T,this.name=z,this.defaultEnhancer=ee,this.keysAtom=new B(z+".keys")}return O.prototype.read=function(w){return this.values.get(w).get()},O.prototype.write=function(w,T){var z=this.target,ee=this.values.get(w);if(ee instanceof wo)ee.set(T);else{if(Rr(this)){if(!(Se=an(this,{type:"update",object:this.proxy||z,name:w,newValue:T})))return;T=Se.newValue}if((T=ee.prepareNewValue(T))!==ft.UNCHANGED){var pe=Ir(this),Se=pe?{type:"update",object:this.proxy||z,oldValue:ee.value,name:w,newValue:T}:null;ee.setNewValue(T),pe&&fr(this,Se)}}},O.prototype.has=function(w){var T=this.pendingKeys||(this.pendingKeys=new Map),z=T.get(w);if(z)return z.get();var ee=!!this.values.get(w);return z=new zn(ee,mt,this.name+"."+te(w)+"?",!1),T.set(w,z),z.get()},O.prototype.addObservableProp=function(w,T,z){z===void 0&&(z=this.defaultEnhancer);var ee=this.target;if(Rr(this)){var pe=an(this,{object:this.proxy||ee,name:w,type:"add",newValue:T});if(!pe)return;T=pe.newValue}var Se=new zn(T,z,this.name+"."+te(w),!1);this.values.set(w,Se),T=Se.value,Object.defineProperty(ee,w,function($e){return di[$e]||(di[$e]={configurable:!0,enumerable:!0,get:function(){return this[H].read($e)},set:function(ct){this[H].write($e,ct)}})}(w)),this.notifyPropertyAddition(w,T)},O.prototype.addComputedProp=function(w,T,z){var ee,pe,Se,$e=this.target;z.name=z.name||this.name+"."+te(T),this.values.set(T,new wo(z)),(w===$e||(ee=w,pe=T,!(Se=Object.getOwnPropertyDescriptor(ee,pe))||Se.configurable!==!1&&Se.writable!==!1))&&Object.defineProperty(w,T,function(ct){return ou[ct]||(ou[ct]={configurable:ft.computedConfigurable,enumerable:!1,get:function(){return Po(this).read(ct)},set:function(qt){Po(this).write(ct,qt)}})}(T))},O.prototype.remove=function(w){if(this.values.has(w)){var T=this.target;if(Rr(this)&&!(ct=an(this,{object:this.proxy||T,name:w,type:"remove"})))return;try{Dr();var z=Ir(this),ee=!1,pe=this.values.get(w),Se=pe&&pe.get();if(pe&&pe.set(void 0),this.keysAtom.reportChanged(),this.values.delete(w),this.pendingKeys){var $e=this.pendingKeys.get(w);$e&&$e.set(!1)}delete this.target[w];var ct=z?{type:"remove",object:this.proxy||T,oldValue:Se,name:w}:null;z&&fr(this,ct)}finally{Fr()}}},O.prototype.illegalAccess=function(w,T){},O.prototype.observe=function(w,T){return So(this,w)},O.prototype.intercept=function(w){return Go(this,w)},O.prototype.notifyPropertyAddition=function(w,T){var z=Ir(this),ee=z?{type:"add",object:this.proxy||this.target,name:w,newValue:T}:null;if(z&&fr(this,ee),this.pendingKeys){var pe=this.pendingKeys.get(w);pe&&pe.set(!0)}this.keysAtom.reportChanged()},O.prototype.getKeys=function(){var w,T;this.keysAtom.reportObserved();var z=[];try{for(var ee=be(this.values),pe=ee.next();!pe.done;pe=ee.next()){var Se=Ae(pe.value,2),$e=Se[0];Se[1]instanceof zn&&z.push($e)}}catch(ct){w={error:ct}}finally{try{pe&&!pe.done&&(T=ee.return)&&T.call(ee)}finally{if(w)throw w.error}}return z},O}();function $r(O,w,T){if(w===void 0&&(w=""),T===void 0&&(T=Je),Object.prototype.hasOwnProperty.call(O,H))return O[H];N(O)||(w=(O.constructor.name||"ObservableObject")+"@"+E()),w||(w="ObservableObject@"+E());var z=new oc(O,new Map,te(w),T);return L(O,H,z),z}var di=Object.create(null),ou=Object.create(null);function Po(O){var w=O[H];return w||(it(O),O[H])}var Wr=G("ObservableObjectAdministration",oc);function Lr(O){return!!R(O)&&(it(O),Wr(O[H]))}function Qr(O,w){if(typeof O=="object"&&O!==null){if(Jr(O))return w!==void 0&&j(!1),O[H].atom;if(Pr(O))return O[H];if(Vn(O)){var T=O;return w===void 0?T._keysAtom:((z=T._data.get(w)||T._hasMap.get(w))||j(!1),z)}var z;if(it(O),w&&!O[H]&&O[w],Lr(O))return w?((z=O[H].values.get(w))||j(!1),z):j(!1);if(V(O)||Fo(O)||ma(O))return O}else if(typeof O=="function"&&ma(O[H]))return O[H];return j(!1)}function Ao(O,w){return O||j("Expecting some object"),w!==void 0?Ao(Qr(O,w)):V(O)||Fo(O)||ma(O)||Vn(O)||Pr(O)?O:(it(O),O[H]?O[H]:void j(!1))}var we=Object.prototype.toString;function Ne(O,w,T){return T===void 0&&(T=-1),Ie(O,w,T)}function Ie(O,w,T,z,ee){if(O===w)return O!==0||1/O==1/w;if(O==null||w==null)return!1;if(O!=O)return w!=w;var pe=typeof O;if(pe!=="function"&&pe!=="object"&&typeof w!="object")return!1;var Se=we.call(O);if(Se!==we.call(w))return!1;switch(Se){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!="undefined"&&Symbol.valueOf.call(O)===Symbol.valueOf.call(w);case"[object Map]":case"[object Set]":T>=0&&T++}O=et(O),w=et(w);var $e=Se==="[object Array]";if(!$e){if(typeof O!="object"||typeof w!="object")return!1;var ct=O.constructor,qt=w.constructor;if(ct!==qt&&!(typeof ct=="function"&&ct instanceof ct&&typeof qt=="function"&&qt instanceof qt)&&"constructor"in O&&"constructor"in w)return!1}if(T===0)return!1;T<0&&(T=-1),ee=ee||[];for(var tt=(z=z||[]).length;tt--;)if(z[tt]===O)return ee[tt]===w;if(z.push(O),ee.push(w),$e){if((tt=O.length)!==w.length)return!1;for(;tt--;)if(!Ie(O[tt],w[tt],T-1,z,ee))return!1}else{var On=Object.keys(O),Gt=void 0;if(tt=On.length,Object.keys(w).length!==tt)return!1;for(;tt--;)if(!Ut(w,Gt=On[tt])||!Ie(O[Gt],w[Gt],T-1,z,ee))return!1}return z.pop(),ee.pop(),!0}function et(O){return Jr(O)?O.slice():W(O)||Vn(O)||X(O)||Pr(O)?Array.from(O.entries()):O}function Ut(O,w){return Object.prototype.hasOwnProperty.call(O,w)}function en(O){return O[Symbol.iterator]=An,O}function An(){return this}if(typeof Proxy=="undefined"||typeof Symbol=="undefined")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:Gu,extras:{getDebugName:function(O,w){return(w!==void 0?Qr(O,w):Lr(O)||Vn(O)||Pr(O)?Ao(O):Qr(O)).name}},$mobx:H})}).call(this,o(163),o(68))},function(u,l,o){var d=o(113),h=o(42),b=o(179);d||h(Object.prototype,"toString",b,{unsafe:!0})},function(u,l,o){var d=o(41),h=o(100),b=o(80),g=o(58),E=o(116),j="Array Iterator",P=g.set,k=g.getterFor(j);u.exports=E(Array,"Array",function(M,R){P(this,{type:j,target:d(M),index:0,kind:R})},function(){var M=k(this),R=M.target,N=M.kind,L=M.index++;return!R||L>=R.length?(M.target=void 0,{value:void 0,done:!0}):N=="keys"?{value:L,done:!1}:N=="values"?{value:R[L],done:!1}:{value:[L,R[L]],done:!1}},"values"),b.Arguments=b.Array,h("keys"),h("values"),h("entries")},function(u,l,o){var d=o(16),h=o(7),b=o(46),g=o(76),E=o(34),j=o(15),P=o(71),k=o(36),M=o(108),R=o(18),N=o(35),L=o(96),G=o(30),W=o(33),X=o(54),Q=o(87),te=o(32),Z=o(40),J=o(41),H=o(86),B=o(39),V=o(69),Y=o(60),q=o(77),ue=o(74),xe=o(139),be=o(112),Ae=o(50),Fe=o(38),je=o(84),ve=o(98),Pe=o(42),Te=o(89),We=o(93),it=o(72),xt=o(90),Ye=o(28),Je=o(140),mt=o(141),se=o(78),ce=o(58),ge=o(79).forEach,De=We("hidden"),Ge="Symbol",ze=Ye("toPrimitive"),Et=ce.set,Rt=ce.getterFor(Ge),At=Object.prototype,gt=h.Symbol,Me=gt&&gt.prototype,lt=h.TypeError,fe=h.QObject,at=b("JSON","stringify"),$t=Ae.f,hn=Fe.f,Wt=xe.f,on=je.f,_n=j([].push),Nn=Te("symbols"),Bt=Te("op-symbols"),Xn=Te("string-to-symbol-registry"),ne=Te("symbol-to-string-registry"),de=Te("wks"),ae=!fe||!fe.prototype||!fe.prototype.findChild,_e=k&&R(function(){return Y(hn({},"a",{get:function(){return hn(this,"a",{value:7}).a}})).a!=7})?function(ut,Ot,St){var zt=$t(At,Ot);zt&&delete At[Ot],hn(ut,Ot,St),zt&&ut!==At&&hn(At,Ot,zt)}:hn,Ve=function(ut,Ot){var St=Nn[ut]=Y(Me);return Et(St,{type:Ge,tag:ut,description:Ot}),k||(St.description=Ot),St},Ke=function(ut,Ot,St){ut===At&&Ke(Bt,Ot,St),te(ut);var zt=H(Ot);return te(St),N(Nn,zt)?(St.enumerable?(N(ut,De)&&ut[De][zt]&&(ut[De][zt]=!1),St=Y(St,{enumerable:V(0,!1)})):(N(ut,De)||hn(ut,De,V(1,{})),ut[De][zt]=!0),_e(ut,zt,St)):hn(ut,zt,St)},pt=function(ut,Ot){te(ut);var St=J(Ot),zt=q(St).concat(Yn(St));return ge(zt,function(bn){k&&!E(Vt,St,bn)||Ke(ut,bn,St[bn])}),ut},Vt=function(ut){var Ot=H(ut),St=E(on,this,Ot);return!(this===At&&N(Nn,Ot)&&!N(Bt,Ot))&&(!(St||!N(this,Ot)||!N(Nn,Ot)||N(this,De)&&this[De][Ot])||St)},or=function(ut,Ot){var St=J(ut),zt=H(Ot);if(St!==At||!N(Nn,zt)||N(Bt,zt)){var bn=$t(St,zt);return!bn||!N(Nn,zt)||N(St,De)&&St[De][zt]||(bn.enumerable=!0),bn}},yr=function(ut){var Ot=Wt(J(ut)),St=[];return ge(Ot,function(zt){N(Nn,zt)||N(it,zt)||_n(St,zt)}),St},Yn=function(ut){var Ot=ut===At,St=Wt(Ot?Bt:J(ut)),zt=[];return ge(St,function(bn){!N(Nn,bn)||Ot&&!N(At,bn)||_n(zt,Nn[bn])}),zt};if(M||(gt=function(){if(X(Me,this))throw lt("Symbol is not a constructor");var ut=arguments.length&&arguments[0]!==void 0?B(arguments[0]):void 0,Ot=xt(ut),St=function(zt){this===At&&E(St,Bt,zt),N(this,De)&&N(this[De],Ot)&&(this[De][Ot]=!1),_e(this,Ot,V(1,zt))};return k&&ae&&_e(At,Ot,{configurable:!0,set:St}),Ve(Ot,ut)},Pe(Me=gt.prototype,"toString",function(){return Rt(this).tag}),Pe(gt,"withoutSetter",function(ut){return Ve(xt(ut),ut)}),je.f=Vt,Fe.f=Ke,Ae.f=or,ue.f=xe.f=yr,be.f=Yn,Je.f=function(ut){return Ve(Ye(ut),ut)},k&&(hn(Me,"description",{configurable:!0,get:function(){return Rt(this).description}}),P||Pe(At,"propertyIsEnumerable",Vt,{unsafe:!0}))),d({global:!0,wrap:!0,forced:!M,sham:!M},{Symbol:gt}),ge(q(de),function(ut){mt(ut)}),d({target:Ge,stat:!0,forced:!M},{for:function(ut){var Ot=B(ut);if(N(Xn,Ot))return Xn[Ot];var St=gt(Ot);return Xn[Ot]=St,ne[St]=Ot,St},keyFor:function(ut){if(!Q(ut))throw lt(ut+" is not a symbol");if(N(ne,ut))return ne[ut]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),d({target:"Object",stat:!0,forced:!M,sham:!k},{create:function(ut,Ot){return Ot===void 0?Y(ut):pt(Y(ut),Ot)},defineProperty:Ke,defineProperties:pt,getOwnPropertyDescriptor:or}),d({target:"Object",stat:!0,forced:!M},{getOwnPropertyNames:yr,getOwnPropertySymbols:Yn}),d({target:"Object",stat:!0,forced:R(function(){be.f(1)})},{getOwnPropertySymbols:function(ut){return be.f(Z(ut))}}),at&&d({target:"JSON",stat:!0,forced:!M||R(function(){var ut=gt();return at([ut])!="[null]"||at({a:ut})!="{}"||at(Object(ut))!="{}"})},{stringify:function(ut,Ot,St){var zt=ve(arguments),bn=Ot;if((W(Ot)||ut!==void 0)&&!Q(ut))return L(Ot)||(Ot=function(zn,zo){if(G(bn)&&(zo=E(bn,this,zn,zo)),!Q(zo))return zo}),zt[1]=Ot,g(at,null,zt)}}),!Me[ze]){var Zn=Me.valueOf;Pe(Me,ze,function(ut){return E(Zn,this)})}se(gt,Ge),it[De]=!0},function(u,l,o){var d=o(7),h=o(152),b=o(153),g=o(3),E=o(57),j=o(28),P=j("iterator"),k=j("toStringTag"),M=g.values,R=function(L,G){if(L){if(L[P]!==M)try{E(L,P,M)}catch{L[P]=M}if(L[k]||E(L,k,G),h[G]){for(var W in g)if(L[W]!==g[W])try{E(L,W,g[W])}catch{L[W]=g[W]}}}};for(var N in h)R(d[N]&&d[N].prototype,N);R(b,"DOMTokenList")},function(u,l,o){var d=o(151).charAt,h=o(39),b=o(58),g=o(116),E="String Iterator",j=b.set,P=b.getterFor(E);g(String,"String",function(k){j(this,{type:E,string:h(k),index:0})},function(){var k,M=P(this),R=M.string,N=M.index;return N>=R.length?{value:void 0,done:!0}:(k=d(R,N),M.index+=k.length,{value:k,done:!1})})},function(u,l,o){(function(d){var h=function(b){return b&&b.Math==Math&&b};u.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof d=="object"&&d)||function(){return this}()||Function("return this")()}).call(this,o(68))},function(u,l,o){var d=o(16),h=o(36),b=o(7),g=o(15),E=o(35),j=o(30),P=o(54),k=o(39),M=o(38).f,R=o(134),N=b.Symbol,L=N&&N.prototype;if(h&&j(N)&&(!("description"in L)||N().description!==void 0)){var G={},W=function(){var B=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),V=P(L,this)?new N(B):B===void 0?N():N(B);return B===""&&(G[V]=!0),V};R(W,N),W.prototype=L,L.constructor=W;var X=String(N("test"))=="Symbol(test)",Q=g(L.toString),te=g(L.valueOf),Z=/^Symbol\((.*)\)[^)]+$/,J=g("".replace),H=g("".slice);M(L,"description",{configurable:!0,get:function(){var B=te(this),V=Q(B);if(E(G,B))return"";var Y=X?H(V,7,-1):J(V,Z,"$1");return Y===""?void 0:Y}}),d({global:!0,forced:!0},{Symbol:W})}},function(u,l,o){o(141)("iterator")},function(u,l,o){o.d(l,"a",function(){return g.a}),o.d(l,"c",function(){return g.e}),o.d(l,"h",function(){return Z}),o.d(l,"i",function(){return X}),o.d(l,"j",function(){return G}),o.d(l,"b",function(){return Ae}),o.d(l,"e",function(){return Pe}),o.d(l,"f",function(){return Fe}),o.d(l,"g",function(){return Nn});var d,h,b,g=o(0),E=0,j=[],P=g.i.__b,k=g.i.__r,M=g.i.diffed,R=g.i.__c,N=g.i.unmount;function L(ne,de){g.i.__h&&g.i.__h(h,ne,E||de),E=0;var ae=h.__H||(h.__H={__:[],__h:[]});return ne>=ae.__.length&&ae.__.push({}),ae.__[ne]}function G(ne){return E=1,W(ue,ne)}function W(ne,de,ae){var _e=L(d++,2);return _e.t=ne,_e.__c||(_e.__=[ae?ae(de):ue(void 0,de),function(Ve){var Ke=_e.t(_e.__[0],Ve);_e.__[0]!==Ke&&(_e.__=[Ke,_e.__[1]],_e.__c.setState({}))}],_e.__c=h),_e.__}function X(ne,de){var ae=L(d++,3);!g.i.__s&&q(ae.__H,de)&&(ae.__=ne,ae.__H=de,h.__H.__h.push(ae))}function Q(ne,de){var ae=L(d++,4);!g.i.__s&&q(ae.__H,de)&&(ae.__=ne,ae.__H=de,h.__h.push(ae))}function te(ne,de){var ae=L(d++,7);return q(ae.__H,de)&&(ae.__=ne(),ae.__H=de,ae.__h=ne),ae.__}function Z(ne,de){return E=8,te(function(){return ne},de)}function J(){var ne;for(j.sort(function(de,ae){return de.__v.__b-ae.__v.__b});ne=j.pop();)if(ne.__P)try{ne.__H.__h.forEach(V),ne.__H.__h.forEach(Y),ne.__H.__h=[]}catch(de){ne.__H.__h=[],g.i.__e(de,ne.__v)}}g.i.__b=function(ne){h=null,P&&P(ne)},g.i.__r=function(ne){k&&k(ne),d=0;var de=(h=ne.__c).__H;de&&(de.__h.forEach(V),de.__h.forEach(Y),de.__h=[])},g.i.diffed=function(ne){M&&M(ne);var de=ne.__c;de&&de.__H&&de.__H.__h.length&&(j.push(de)!==1&&b===g.i.requestAnimationFrame||((b=g.i.requestAnimationFrame)||B)(J)),h=null},g.i.__c=function(ne,de){de.some(function(ae){try{ae.__h.forEach(V),ae.__h=ae.__h.filter(function(_e){return!_e.__||Y(_e)})}catch(_e){de.some(function(Ve){Ve.__h&&(Ve.__h=[])}),de=[],g.i.__e(_e,ae.__v)}}),R&&R(ne,de)},g.i.unmount=function(ne){N&&N(ne);var de,ae=ne.__c;ae&&ae.__H&&(ae.__H.__.forEach(function(_e){try{V(_e)}catch(Ve){de=Ve}}),de&&g.i.__e(de,ae.__v))};var H=typeof requestAnimationFrame=="function";function B(ne){var de,ae=function(){clearTimeout(_e),H&&cancelAnimationFrame(de),setTimeout(ne)},_e=setTimeout(ae,100);H&&(de=requestAnimationFrame(ae))}function V(ne){var de=h,ae=ne.__c;typeof ae=="function"&&(ne.__c=void 0,ae()),h=de}function Y(ne){var de=h;ne.__c=ne.__(),h=de}function q(ne,de){return!ne||ne.length!==de.length||de.some(function(ae,_e){return ae!==ne[_e]})}function ue(ne,de){return typeof de=="function"?de(ne):de}function xe(ne,de){for(var ae in de)ne[ae]=de[ae];return ne}function be(ne,de){for(var ae in ne)if(ae!=="__source"&&!(ae in de))return!0;for(var _e in de)if(_e!=="__source"&&ne[_e]!==de[_e])return!0;return!1}function Ae(ne){this.props=ne}function Fe(ne,de){function ae(Ve){var Ke=this.props.ref,pt=Ke==Ve.ref;return!pt&&Ke&&(Ke.call?Ke(null):Ke.current=null),de?!de(this.props,Ve)||!pt:be(this.props,Ve)}function _e(Ve){return this.shouldComponentUpdate=ae,Object(g.e)(ne,Ve)}return _e.displayName="Memo("+(ne.displayName||ne.name)+")",_e.prototype.isReactComponent=!0,_e.__f=!0,_e}(Ae.prototype=new g.a).isPureReactComponent=!0,Ae.prototype.shouldComponentUpdate=function(ne,de){return be(this.props,ne)||be(this.state,de)};var je=g.i.__b;g.i.__b=function(ne){ne.type&&ne.type.__f&&ne.ref&&(ne.props.ref=ne.ref,ne.ref=null),je&&je(ne)};var ve=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Pe(ne){function de(ae,_e){var Ve=xe({},ae);return delete Ve.ref,ne(Ve,!(_e=ae.ref||_e)||typeof _e=="object"&&!("current"in _e)?null:_e)}return de.$$typeof=ve,de.render=de,de.prototype.isReactComponent=de.__f=!0,de.displayName="ForwardRef("+(ne.displayName||ne.name)+")",de}var Te=function(ne,de){return ne==null?null:Object(g.k)(Object(g.k)(ne).map(de))},We={map:Te,forEach:Te,count:function(ne){return ne?Object(g.k)(ne).length:0},only:function(ne){var de=Object(g.k)(ne);if(de.length!==1)throw"Children.only";return de[0]},toArray:g.k},it=g.i.__e;g.i.__e=function(ne,de,ae){if(ne.then){for(var _e,Ve=de;Ve=Ve.__;)if((_e=Ve.__c)&&_e.__c)return de.__e==null&&(de.__e=ae.__e,de.__k=ae.__k),_e.__c(ne,de)}it(ne,de,ae)};var xt=g.i.unmount;function Ye(ne,de,ae){return ne&&(ne.__c&&ne.__c.__H&&(ne.__c.__H.__.forEach(function(_e){typeof _e.__c=="function"&&_e.__c()}),ne.__c.__H=null),(ne=xe({},ne)).__c!=null&&(ne.__c.__P===ae&&(ne.__c.__P=de),ne.__c=null),ne.__k=ne.__k&&ne.__k.map(function(_e){return Ye(_e,de,ae)})),ne}function Je(ne,de,ae){return ne&&(ne.__v=null,ne.__k=ne.__k&&ne.__k.map(function(_e){return Je(_e,de,ae)}),ne.__c&&ne.__c.__P===de&&(ne.__e&&ae.insertBefore(ne.__e,ne.__d),ne.__c.__e=!0,ne.__c.__P=ae)),ne}function mt(){this.__u=0,this.t=null,this.__b=null}function se(ne){var de=ne.__.__c;return de&&de.__e&&de.__e(ne)}function ce(){this.u=null,this.o=null}g.i.unmount=function(ne){var de=ne.__c;de&&de.__R&&de.__R(),de&&ne.__h===!0&&(ne.type=null),xt&&xt(ne)},(mt.prototype=new g.a).__c=function(ne,de){var ae=de.__c,_e=this;_e.t==null&&(_e.t=[]),_e.t.push(ae);var Ve=se(_e.__v),Ke=!1,pt=function(){Ke||(Ke=!0,ae.__R=null,Ve?Ve(Vt):Vt())};ae.__R=pt;var Vt=function(){if(!--_e.__u){if(_e.state.__e){var yr=_e.state.__e;_e.__v.__k[0]=Je(yr,yr.__c.__P,yr.__c.__O)}var Yn;for(_e.setState({__e:_e.__b=null});Yn=_e.t.pop();)Yn.forceUpdate()}},or=de.__h===!0;_e.__u++||or||_e.setState({__e:_e.__b=_e.__v.__k[0]}),ne.then(pt,pt)},mt.prototype.componentWillUnmount=function(){this.t=[]},mt.prototype.render=function(ne,de){if(this.__b){if(this.__v.__k){var ae=document.createElement("div"),_e=this.__v.__k[0].__c;this.__v.__k[0]=Ye(this.__b,ae,_e.__O=_e.__P)}this.__b=null}var Ve=de.__e&&Object(g.e)(g.b,null,ne.fallback);return Ve&&(Ve.__h=null),[Object(g.e)(g.b,null,de.__e?null:ne.children),Ve]};var ge=function(ne,de,ae){if(++ae[1]===ae[0]&&ne.o.delete(de),ne.props.revealOrder&&(ne.props.revealOrder[0]!=="t"||!ne.o.size))for(ae=ne.u;ae;){for(;ae.length>3;)ae.pop()();if(ae[1]<ae[0])break;ne.u=ae=ae[2]}};function De(ne){return this.getChildContext=function(){return ne.context},ne.children}function Ge(ne){var de=this,ae=ne.i;de.componentWillUnmount=function(){Object(g.j)(null,de.l),de.l=null,de.i=null},de.i&&de.i!==ae&&de.componentWillUnmount(),ne.__v?(de.l||(de.i=ae,de.l={nodeType:1,parentNode:ae,childNodes:[],appendChild:function(_e){this.childNodes.push(_e),de.i.appendChild(_e)},insertBefore:function(_e,Ve){this.childNodes.push(_e),de.i.appendChild(_e)},removeChild:function(_e){this.childNodes.splice(this.childNodes.indexOf(_e)>>>1,1),de.i.removeChild(_e)}}),Object(g.j)(Object(g.e)(De,{context:de.context},ne.__v),de.l)):de.l&&de.componentWillUnmount()}(ce.prototype=new g.a).__e=function(ne){var de=this,ae=se(de.__v),_e=de.o.get(ne);return _e[0]++,function(Ve){var Ke=function(){de.props.revealOrder?(_e.push(Ve),ge(de,ne,_e)):Ve()};ae?ae(Ke):Ke()}},ce.prototype.render=function(ne){this.u=null,this.o=new Map;var de=Object(g.k)(ne.children);ne.revealOrder&&ne.revealOrder[0]==="b"&&de.reverse();for(var ae=de.length;ae--;)this.o.set(de[ae],this.u=[1,0,this.u]);return ne.children},ce.prototype.componentDidUpdate=ce.prototype.componentDidMount=function(){var ne=this;this.o.forEach(function(de,ae){ge(ne,ae,de)})};var ze=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Et=/^(?: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]/,Rt=typeof document!="undefined",At=function(ne){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(ne)};g.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(ne){Object.defineProperty(g.a.prototype,ne,{configurable:!0,get:function(){return this["UNSAFE_"+ne]},set:function(de){Object.defineProperty(this,ne,{configurable:!0,writable:!0,value:de})}})});var gt=g.i.event;function Me(){}function lt(){return this.cancelBubble}function fe(){return this.defaultPrevented}g.i.event=function(ne){return gt&&(ne=gt(ne)),ne.persist=Me,ne.isPropagationStopped=lt,ne.isDefaultPrevented=fe,ne.nativeEvent=ne};var at,$t={configurable:!0,get:function(){return this.class}},hn=g.i.vnode;g.i.vnode=function(ne){var de=ne.type,ae=ne.props,_e=ae;if(typeof de=="string"){var Ve=de.indexOf("-")===-1;for(var Ke in _e={},ae){var pt=ae[Ke];Rt&&Ke==="children"&&de==="noscript"||Ke==="value"&&"defaultValue"in ae&&pt==null||(Ke==="defaultValue"&&"value"in ae&&ae.value==null?Ke="value":Ke==="download"&&pt===!0?pt="":/ondoubleclick/i.test(Ke)?Ke="ondblclick":/^onchange(textarea|input)/i.test(Ke+de)&&!At(ae.type)?Ke="oninput":/^onfocus$/i.test(Ke)?Ke="onfocusin":/^onblur$/i.test(Ke)?Ke="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Ke)?Ke=Ke.toLowerCase():Ve&&Et.test(Ke)?Ke=Ke.replace(/[A-Z0-9]/,"-$&").toLowerCase():pt===null&&(pt=void 0),_e[Ke]=pt)}de=="select"&&_e.multiple&&Array.isArray(_e.value)&&(_e.value=Object(g.k)(ae.children).forEach(function(Vt){Vt.props.selected=_e.value.indexOf(Vt.props.value)!=-1})),de=="select"&&_e.defaultValue!=null&&(_e.value=Object(g.k)(ae.children).forEach(function(Vt){Vt.props.selected=_e.multiple?_e.defaultValue.indexOf(Vt.props.value)!=-1:_e.defaultValue==Vt.props.value})),ne.props=_e,ae.class!=ae.className&&($t.enumerable="className"in ae,ae.className!=null&&(_e.class=ae.className),Object.defineProperty(_e,"className",$t))}ne.$$typeof=ze,hn&&hn(ne)};var Wt=g.i.__r;g.i.__r=function(ne){Wt&&Wt(ne),at=ne.__c};var on={ReactCurrentDispatcher:{current:{readContext:function(ne){return at.__n[ne.__c].props.value}}}};function _n(ne){return!!ne&&ne.$$typeof===ze}var Nn=function(ne,de){return ne(de)},Bt=g.b,Xn={useState:G,useReducer:W,useEffect:X,useLayoutEffect:Q,useRef:function(ne){return E=5,te(function(){return{current:ne}},[])},useImperativeHandle:function(ne,de,ae){E=6,Q(function(){typeof ne=="function"?ne(de()):ne&&(ne.current=de())},ae==null?ae:ae.concat(ne))},useMemo:te,useCallback:Z,useContext:function(ne){var de=h.context[ne.__c],ae=L(d++,9);return ae.c=ne,de?(ae.__==null&&(ae.__=!0,de.sub(h)),de.props.value):ne.__},useDebugValue:function(ne,de){g.i.useDebugValue&&g.i.useDebugValue(de?de(ne):ne)},version:"17.0.2",Children:We,render:function(ne,de,ae){return de.__k==null&&(de.textContent=""),Object(g.j)(ne,de),typeof ae=="function"&&ae(),ne?ne.__c:null},hydrate:function(ne,de,ae){return Object(g.h)(ne,de),typeof ae=="function"&&ae(),ne?ne.__c:null},unmountComponentAtNode:function(ne){return!!ne.__k&&(Object(g.j)(null,ne),!0)},createPortal:function(ne,de){return Object(g.e)(Ge,{__v:ne,i:de})},createElement:g.e,createContext:g.d,createFactory:function(ne){return g.e.bind(null,ne)},cloneElement:function(ne){return _n(ne)?g.c.apply(null,arguments):ne},createRef:g.f,Fragment:g.b,isValidElement:_n,findDOMNode:function(ne){return ne&&(ne.base||ne.nodeType===1&&ne)||null},Component:g.a,PureComponent:Ae,memo:Fe,forwardRef:Pe,flushSync:function(ne,de){return ne(de)},unstable_batchedUpdates:Nn,StrictMode:Bt,Suspense:mt,SuspenseList:ce,lazy:function(ne){var de,ae,_e;function Ve(Ke){if(de||(de=ne()).then(function(pt){ae=pt.default||pt},function(pt){_e=pt}),_e)throw _e;if(!ae)throw de;return Object(g.e)(ae,Ke)}return Ve.displayName="Lazy",Ve.__f=!0,Ve},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:on};l.d=Xn},function(u,l,o){var d=o(7),h=o(152),b=o(153),g=o(187),E=o(57),j=function(k){if(k&&k.forEach!==g)try{E(k,"forEach",g)}catch{k.forEach=g}};for(var P in h)h[P]&&j(d[P]&&d[P].prototype);j(b)},function(u,l,o){o(16)({target:"Object",stat:!0},{setPrototypeOf:o(102)})},function(u,l,o){var d=o(16),h=o(18),b=o(40),g=o(101),E=o(143);d({target:"Object",stat:!0,forced:h(function(){g(1)}),sham:!E},{getPrototypeOf:function(j){return g(b(j))}})},function(u,l,o){var d=o(16),h=o(46),b=o(76),g=o(203),E=o(165),j=o(32),P=o(33),k=o(60),M=o(18),R=h("Reflect","construct"),N=Object.prototype,L=[].push,G=M(function(){function Q(){}return!(R(function(){},[],Q)instanceof Q)}),W=!M(function(){R(function(){})}),X=G||W;d({target:"Reflect",stat:!0,forced:X,sham:X},{construct:function(Q,te){E(Q),j(te);var Z=arguments.length<3?Q:E(arguments[2]);if(W&&!G)return R(Q,te,Z);if(Q==Z){switch(te.length){case 0:return new Q;case 1:return new Q(te[0]);case 2:return new Q(te[0],te[1]);case 3:return new Q(te[0],te[1],te[2]);case 4:return new Q(te[0],te[1],te[2],te[3])}var J=[null];return b(L,J,te),new(b(g,Q,J))}var H=Z.prototype,B=k(P(H)?H:N),V=b(Q,B,te);return P(V)?V:B}})},function(u,l){var o=Function.prototype,d=o.bind,h=o.call,b=d&&d.bind(h);u.exports=d?function(g){return g&&b(h,g)}:function(g){return g&&function(){return h.apply(g,arguments)}}},function(u,l,o){var d=o(7),h=o(50).f,b=o(57),g=o(42),E=o(110),j=o(134),P=o(95);u.exports=function(k,M){var R,N,L,G,W,X=k.target,Q=k.global,te=k.stat;if(R=Q?d:te?d[X]||E(X,{}):(d[X]||{}).prototype)for(N in M){if(G=M[N],L=k.noTargetGet?(W=h(R,N))&&W.value:R[N],!P(Q?N:X+(te?".":"#")+N,k.forced)&&L!==void 0){if(typeof G==typeof L)continue;j(G,L)}(k.sham||L&&L.sham)&&b(G,"sham",!0),g(R,N,G,k)}}},function(u,l,o){var d=o(16),h=o(7),b=o(96),g=o(99),E=o(33),j=o(75),P=o(45),k=o(41),M=o(63),R=o(28),N=o(81),L=o(98),G=N("slice"),W=R("species"),X=h.Array,Q=Math.max;d({target:"Array",proto:!0,forced:!G},{slice:function(te,Z){var J,H,B,V=k(this),Y=P(V),q=j(te,Y),ue=j(Z===void 0?Y:Z,Y);if(b(V)&&(J=V.constructor,(g(J)&&(J===X||b(J.prototype))||E(J)&&(J=J[W])===null)&&(J=void 0),J===X||J===void 0))return L(V,q,ue);for(H=new(J===void 0?X:J)(Q(ue-q,0)),B=0;q<ue;q++,B++)q in V&&M(H,B,V[q]);return H.length=B,H}})},function(u,l){u.exports=function(o){try{return!!o()}catch{return!0}}},function(u,l,o){var d=o(16),h=o(103);d({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},function(u,l,o){var d=o(16),h=o(40),b=o(77);d({target:"Object",stat:!0,forced:o(18)(function(){b(1)})},{keys:function(g){return b(h(g))}})},function(u,l,o){var d=o(36),h=o(73).EXISTS,b=o(15),g=o(38).f,E=Function.prototype,j=b(E.toString),P=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,k=b(P.exec);d&&!h&&g(E,"name",{configurable:!0,get:function(){try{return k(P,j(this))[1]}catch{return""}}})},function(u,l,o){var d=o(16),h=o(18),b=o(41),g=o(50).f,E=o(36),j=h(function(){g(1)});d({target:"Object",stat:!0,forced:!E||j,sham:!E},{getOwnPropertyDescriptor:function(P,k){return g(b(P),k)}})},function(u,l,o){var d=o(16),h=o(188);d({target:"Array",stat:!0,forced:!o(120)(function(b){Array.from(b)})},{from:h})},function(u,l,o){var d=o(16),h=o(79).filter;d({target:"Array",proto:!0,forced:!o(81)("filter")},{filter:function(b){return h(this,b,arguments.length>1?arguments[1]:void 0)}})},function(u,l,o){var d=o(16),h=o(36),b=o(135),g=o(41),E=o(50),j=o(63);d({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(P){for(var k,M,R=g(P),N=E.f,L=b(R),G={},W=0;L.length>W;)(M=N(R,k=L[W++]))!==void 0&&j(G,k,M);return G}})},,function(u,l,o){var d=o(16),h=o(7),b=o(18),g=o(96),E=o(33),j=o(40),P=o(45),k=o(63),M=o(115),R=o(81),N=o(28),L=o(70),G=N("isConcatSpreadable"),W=9007199254740991,X="Maximum allowed index exceeded",Q=h.TypeError,te=L>=51||!b(function(){var H=[];return H[G]=!1,H.concat()[0]!==H}),Z=R("concat"),J=function(H){if(!E(H))return!1;var B=H[G];return B!==void 0?!!B:g(H)};d({target:"Array",proto:!0,forced:!te||!Z},{concat:function(H){var B,V,Y,q,ue,xe=j(this),be=M(xe,0),Ae=0;for(B=-1,Y=arguments.length;B<Y;B++)if(J(ue=B===-1?xe:arguments[B])){if(Ae+(q=P(ue))>W)throw Q(X);for(V=0;V<q;V++,Ae++)V in ue&&k(be,Ae,ue[V])}else{if(Ae>=W)throw Q(X);k(be,Ae++,ue)}return be.length=Ae,be}})},function(u,l,o){var d=o(7),h=o(89),b=o(35),g=o(90),E=o(108),j=o(132),P=h("wks"),k=d.Symbol,M=k&&k.for,R=j?k:k&&k.withoutSetter||g;u.exports=function(N){if(!b(P,N)||!E&&typeof P[N]!="string"){var L="Symbol."+N;E&&b(k,N)?P[N]=k[N]:P[N]=j&&M?M(L):R(L)}return P[N]}},function(u,l,o){var d=o(16),h=o(202);d({target:"Object",stat:!0,forced:Object.assign!==h},{assign:h})},function(u,l){u.exports=function(o){return typeof o=="function"}},function(u,l,o){var d=o(106),h=typeof self=="object"&&self&&self.Object===Object&&self,b=d.a||h||Function("return this")();l.a=b},function(u,l,o){var d=o(7),h=o(33),b=d.String,g=d.TypeError;u.exports=function(E){if(h(E))return E;throw g(b(E)+" is not an object")}},function(u,l,o){var d=o(30);u.exports=function(h){return typeof h=="object"?h!==null:d(h)}},function(u,l){var o=Function.prototype.call;u.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(u,l,o){var d=o(15),h=o(40),b=d({}.hasOwnProperty);u.exports=Object.hasOwn||function(g,E){return b(h(g),E)}},function(u,l,o){var d=o(18);u.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(u,l,o){var d=o(16),h=o(79).map;d({target:"Array",proto:!0,forced:!o(81)("map")},{map:function(b){return h(this,b,arguments.length>1?arguments[1]:void 0)}})},function(u,l,o){var d=o(7),h=o(36),b=o(133),g=o(32),E=o(86),j=d.TypeError,P=Object.defineProperty;l.f=h?P:function(k,M,R){if(g(k),M=E(M),g(R),b)try{return P(k,M,R)}catch{}if("get"in R||"set"in R)throw j("Accessors not supported");return"value"in R&&(k[M]=R.value),k}},function(u,l,o){var d=o(7),h=o(97),b=d.String;u.exports=function(g){if(h(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return b(g)}},function(u,l,o){var d=o(7),h=o(44),b=d.Object;u.exports=function(g){return b(h(g))}},function(u,l,o){var d=o(85),h=o(44);u.exports=function(b){return d(h(b))}},function(u,l,o){var d=o(7),h=o(30),b=o(35),g=o(57),E=o(110),j=o(92),P=o(58),k=o(73).CONFIGURABLE,M=P.get,R=P.enforce,N=String(String).split("String");(u.exports=function(L,G,W,X){var Q,te=!!X&&!!X.unsafe,Z=!!X&&!!X.enumerable,J=!!X&&!!X.noTargetGet,H=X&&X.name!==void 0?X.name:G;h(W)&&(String(H).slice(0,7)==="Symbol("&&(H="["+String(H).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b(W,"name")||k&&W.name!==H)&&g(W,"name",H),(Q=R(W)).source||(Q.source=N.join(typeof H=="string"?H:""))),L!==d?(te?!J&&L[G]&&(Z=!0):delete L[G],Z?L[G]=W:g(L,G,W)):Z?L[G]=W:E(G,W)})(Function.prototype,"toString",function(){return h(this)&&M(this).source||j(this)})},function(u,l,o){(function(d){o.d(l,"d",function(){return g}),o.d(l,"c",function(){return E}),o.d(l,"b",function(){return j}),o.d(l,"a",function(){return k});var h=o(10),b=function(M,R){var N=typeof Symbol=="function"&&M[Symbol.iterator];if(!N)return M;var L,G,W=N.call(M),X=[];try{for(;(R===void 0||R-- >0)&&!(L=W.next()).done;)X.push(L.value)}catch(Q){G={error:Q}}finally{try{L&&!L.done&&(N=W.return)&&N.call(W)}finally{if(G)throw G.error}}return X};function g(){var M=b(Object(h.j)(0),2)[1];return Object(h.h)(function(){M(function(R){return R+1})},[])}function E(M){if(!M||typeof M!="object")return!1;var R=Object.getPrototypeOf(M);return!R||R===Object.prototype}function j(M){return typeof Symbol=="function"?Symbol.for(M):"__$mobx-react "+M+"__"}var P={};function k(){return typeof window!="undefined"?window:d!==void 0?d:typeof self!="undefined"?self:P}}).call(this,o(68))},function(u,l,o){var d=o(7).TypeError;u.exports=function(h){if(h==null)throw d("Can't call method on "+h);return h}},function(u,l,o){var d=o(94);u.exports=function(h){return d(h.length)}},function(u,l,o){var d=o(7),h=o(30),b=function(g){return h(g)?g:void 0};u.exports=function(g,E){return arguments.length<2?b(d[g]):d[g]&&d[g][E]}},function(u,l,o){var d=o(16),h=o(34),b=o(33),g=o(32),E=o(204),j=o(50),P=o(101);d({target:"Reflect",stat:!0},{get:function k(M,R){var N,L,G=arguments.length<3?M:arguments[2];return g(M)===G?M[R]:(N=j.f(M,R))?E(N)?N.value:N.get===void 0?void 0:h(N.get,G):b(L=P(M))?k(L,R,G):void 0}})},function(u,l,o){(function(d){var h=o(31),b=o(171),g=a&&!a.nodeType&&a,E=g&&typeof d=="object"&&d&&!d.nodeType&&d,j=E&&E.exports===g?h.a.Buffer:void 0,P=(j?j.isBuffer:void 0)||b.a;l.a=P}).call(this,o(122)(u))},function(u,l,o){(function(d){var h=o(106),b=a&&!a.nodeType&&a,g=b&&typeof d=="object"&&d&&!d.nodeType&&d,E=g&&g.exports===b&&h.a.process,j=function(){try{var P=g&&g.require&&g.require("util").types;return P||E&&E.binding&&E.binding("util")}catch{}}();l.a=j}).call(this,o(122)(u))},function(u,l,o){var d=o(36),h=o(34),b=o(84),g=o(69),E=o(41),j=o(86),P=o(35),k=o(133),M=Object.getOwnPropertyDescriptor;l.f=d?M:function(R,N){if(R=E(R),N=j(N),k)try{return M(R,N)}catch{}if(P(R,N))return g(!h(b.f,R,N),R[N])}},function(u,l,o){var d=o(15),h=d({}.toString),b=d("".slice);u.exports=function(g){return b(h(g),8,-1)}},function(u,l,o){o(182)("Map",function(d){return function(){return d(this,arguments.length?arguments[0]:void 0)}},o(186))},function(u,l,o){var d=o(16),h=o(220).entries;d({target:"Object",stat:!0},{entries:function(b){return h(b)}})},function(u,l,o){var d=o(15);u.exports=d({}.isPrototypeOf)},function(u,l,o){var d=o(46);u.exports=d("navigator","userAgent")||""},function(u,l,o){var d=o(7),h=o(30),b=o(88),g=d.TypeError;u.exports=function(E){if(h(E))return E;throw g(b(E)+" is not a function")}},function(u,l,o){var d=o(36),h=o(38),b=o(69);u.exports=d?function(g,E,j){return h.f(g,E,b(1,j))}:function(g,E,j){return g[E]=j,g}},function(u,l,o){var d,h,b,g=o(175),E=o(7),j=o(15),P=o(33),k=o(57),M=o(35),R=o(109),N=o(93),L=o(72),G="Object already initialized",W=E.TypeError,X=E.WeakMap;if(g||R.state){var Q=R.state||(R.state=new X),te=j(Q.get),Z=j(Q.has),J=j(Q.set);d=function(B,V){if(Z(Q,B))throw new W(G);return V.facade=B,J(Q,B,V),V},h=function(B){return te(Q,B)||{}},b=function(B){return Z(Q,B)}}else{var H=N("state");L[H]=!0,d=function(B,V){if(M(B,H))throw new W(G);return V.facade=B,k(B,H,V),V},h=function(B){return M(B,H)?B[H]:{}},b=function(B){return M(B,H)}}u.exports={set:d,get:h,has:b,enforce:function(B){return b(B)?h(B):d(B,{})},getterFor:function(B){return function(V){var Y;if(!P(V)||(Y=h(V)).type!==B)throw W("Incompatible receiver, "+B+" required");return Y}}}},function(u,l){var o=Math.ceil,d=Math.floor;u.exports=function(h){var b=+h;return b!=b||b===0?0:(b>0?d:o)(b)}},function(u,l,o){var d,h=o(32),b=o(176),g=o(111),E=o(72),j=o(138),P=o(91),k=o(93),M=k("IE_PROTO"),R=function(){},N=function(W){return"<script>"+W+"<\/script>"},L=function(W){W.write(N("")),W.close();var X=W.parentWindow.Object;return W=null,X},G=function(){try{d=new ActiveXObject("htmlfile")}catch{}var W,X;G=typeof document!="undefined"?document.domain&&d?L(d):((X=P("iframe")).style.display="none",j.appendChild(X),X.src=String("javascript:"),(W=X.contentWindow.document).open(),W.write(N("document.F=Object")),W.close(),W.F):L(d);for(var Q=g.length;Q--;)delete G.prototype[g[Q]];return G()};E[M]=!0,u.exports=Object.create||function(W,X){var Q;return W!==null?(R.prototype=h(W),Q=new R,R.prototype=null,Q[M]=W):Q=G(),X===void 0?Q:b(Q,X)}},function(u,l,o){var d=o(36),h=o(7),b=o(15),g=o(95),E=o(42),j=o(35),P=o(148),k=o(54),M=o(87),R=o(131),N=o(18),L=o(74).f,G=o(50).f,W=o(38).f,X=o(160),Q=o(161).trim,te="Number",Z=h.Number,J=Z.prototype,H=h.TypeError,B=b("".slice),V=b("".charCodeAt),Y=function(Fe){var je=R(Fe,"number");return typeof je=="bigint"?je:q(je)},q=function(Fe){var je,ve,Pe,Te,We,it,xt,Ye,Je=R(Fe,"number");if(M(Je))throw H("Cannot convert a Symbol value to a number");if(typeof Je=="string"&&Je.length>2){if(Je=Q(Je),(je=V(Je,0))===43||je===45){if((ve=V(Je,2))===88||ve===120)return NaN}else if(je===48){switch(V(Je,1)){case 66:case 98:Pe=2,Te=49;break;case 79:case 111:Pe=8,Te=55;break;default:return+Je}for(it=(We=B(Je,2)).length,xt=0;xt<it;xt++)if((Ye=V(We,xt))<48||Ye>Te)return NaN;return parseInt(We,Pe)}}return+Je};if(g(te,!Z(" 0o1")||!Z("0b1")||Z("+0x1"))){for(var ue,xe=function(Fe){var je=arguments.length<1?0:Z(Y(Fe)),ve=this;return k(J,ve)&&N(function(){X(ve)})?P(Object(je),ve,xe):je},be=d?L(Z):"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(","),Ae=0;be.length>Ae;Ae++)j(Z,ue=be[Ae])&&!j(xe,ue)&&W(xe,ue,G(Z,ue));xe.prototype=J,J.constructor=xe,E(h,te,xe)}},function(u,l,o){var d=o(56);u.exports=function(h,b){var g=h[b];return g==null?void 0:d(g)}},function(u,l,o){var d=o(86),h=o(38),b=o(69);u.exports=function(g,E,j){var P=d(E);P in g?h.f(g,P,b(0,j)):g[P]=j}},function(u,l,o){var d=o(15),h=o(56),b=d(d.bind);u.exports=function(g,E){return h(g),E===void 0?g:b?b(g,E):function(){return g.apply(E,arguments)}}},function(u,l,o){var d=o(16),h=o(15),b=o(85),g=o(41),E=o(121),j=h([].join),P=b!=Object,k=E("join",",");d({target:"Array",proto:!0,forced:P||!k},{join:function(M){return j(g(this),M===void 0?",":M)}})},function(u,l,o){var d=o(15),h=o(73).PROPER,b=o(42),g=o(32),E=o(54),j=o(39),P=o(18),k=o(154),M="toString",R=RegExp.prototype,N=R.toString,L=d(k),G=P(function(){return N.call({source:"a",flags:"b"})!="/a/b"}),W=h&&N.name!=M;(G||W)&&b(RegExp.prototype,M,function(){var X=g(this),Q=j(X.source),te=X.flags;return"/"+Q+"/"+j(te===void 0&&E(R,X)&&!("flags"in R)?L(X):te)},{unsafe:!0})},function(u,l,o){var d=o(16),h=o(217),b=o(100);d({target:"Array",proto:!0},{fill:h}),b("fill")},function(u,l){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}u.exports=o},function(u,l){u.exports=function(o,d){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:d}}},function(u,l,o){var d,h,b=o(7),g=o(55),E=b.process,j=b.Deno,P=E&&E.versions||j&&j.version,k=P&&P.v8;k&&(h=(d=k.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!h&&g&&(!(d=g.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=g.match(/Chrome\/(\d+)/))&&(h=+d[1]),u.exports=h},function(u,l){u.exports=!1},function(u,l){u.exports={}},function(u,l,o){var d=o(36),h=o(35),b=Function.prototype,g=d&&Object.getOwnPropertyDescriptor,E=h(b,"name"),j=E&&function(){}.name==="something",P=E&&(!d||d&&g(b,"name").configurable);u.exports={EXISTS:E,PROPER:j,CONFIGURABLE:P}},function(u,l,o){var d=o(136),h=o(111).concat("length","prototype");l.f=Object.getOwnPropertyNames||function(b){return d(b,h)}},function(u,l,o){var d=o(59),h=Math.max,b=Math.min;u.exports=function(g,E){var j=d(g);return j<0?h(j+E,0):b(j,E)}},function(u,l){var o=Function.prototype,d=o.apply,h=o.bind,b=o.call;u.exports=typeof Reflect=="object"&&Reflect.apply||(h?b.bind(d):function(){return b.apply(d,arguments)})},function(u,l,o){var d=o(136),h=o(111);u.exports=Object.keys||function(b){return d(b,h)}},function(u,l,o){var d=o(38).f,h=o(35),b=o(28)("toStringTag");u.exports=function(g,E,j){g&&!h(g=j?g:g.prototype,b)&&d(g,b,{configurable:!0,value:E})}},function(u,l,o){var d=o(64),h=o(15),b=o(85),g=o(40),E=o(45),j=o(115),P=h([].push),k=function(M){var R=M==1,N=M==2,L=M==3,G=M==4,W=M==6,X=M==7,Q=M==5||W;return function(te,Z,J,H){for(var B,V,Y=g(te),q=b(Y),ue=d(Z,J),xe=E(q),be=0,Ae=H||j,Fe=R?Ae(te,xe):N||X?Ae(te,0):void 0;xe>be;be++)if((Q||be in q)&&(V=ue(B=q[be],be,Y),M))if(R)Fe[be]=V;else if(V)switch(M){case 3:return!0;case 5:return B;case 6:return be;case 2:P(Fe,B)}else switch(M){case 4:return!1;case 7:P(Fe,B)}return W?-1:L||G?G:Fe}};u.exports={forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findIndex:k(6),filterReject:k(7)}},function(u,l){u.exports={}},function(u,l,o){var d=o(18),h=o(28),b=o(70),g=h("species");u.exports=function(E){return b>=51||!d(function(){var j=[];return(j.constructor={})[g]=function(){return{foo:1}},j[E](Boolean).foo!==1})}},function(u,l,o){var d=o(76),h=o(34),b=o(15),g=o(123),E=o(159),j=o(32),P=o(44),k=o(164),M=o(124),R=o(94),N=o(39),L=o(62),G=o(114),W=o(125),X=o(103),Q=o(155),te=o(18),Z=Q.UNSUPPORTED_Y,J=4294967295,H=Math.min,B=[].push,V=b(/./.exec),Y=b(B),q=b("".slice),ue=!te(function(){var xe=/(?:)/,be=xe.exec;xe.exec=function(){return be.apply(this,arguments)};var Ae="ab".split(xe);return Ae.length!==2||Ae[0]!=="a"||Ae[1]!=="b"});g("split",function(xe,be,Ae){var Fe;return Fe="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(je,ve){var Pe=N(P(this)),Te=ve===void 0?J:ve>>>0;if(Te===0)return[];if(je===void 0)return[Pe];if(!E(je))return h(be,Pe,je,Te);for(var We,it,xt,Ye=[],Je=(je.ignoreCase?"i":"")+(je.multiline?"m":"")+(je.unicode?"u":"")+(je.sticky?"y":""),mt=0,se=new RegExp(je.source,Je+"g");(We=h(X,se,Pe))&&!((it=se.lastIndex)>mt&&(Y(Ye,q(Pe,mt,We.index)),We.length>1&&We.index<Pe.length&&d(B,Ye,G(We,1)),xt=We[0].length,mt=it,Ye.length>=Te));)se.lastIndex===We.index&&se.lastIndex++;return mt===Pe.length?!xt&&V(se,"")||Y(Ye,""):Y(Ye,q(Pe,mt)),Ye.length>Te?G(Ye,0,Te):Ye}:"0".split(void 0,0).length?function(je,ve){return je===void 0&&ve===0?[]:h(be,this,je,ve)}:be,[function(je,ve){var Pe=P(this),Te=je==null?void 0:L(je,xe);return Te?h(Te,je,Pe,ve):h(Fe,N(Pe),je,ve)},function(je,ve){var Pe=j(this),Te=N(je),We=Ae(Fe,Pe,Te,ve,Fe!==be);if(We.done)return We.value;var it=k(Pe,RegExp),xt=Pe.unicode,Ye=(Pe.ignoreCase?"i":"")+(Pe.multiline?"m":"")+(Pe.unicode?"u":"")+(Z?"g":"y"),Je=new it(Z?"^(?:"+Pe.source+")":Pe,Ye),mt=ve===void 0?J:ve>>>0;if(mt===0)return[];if(Te.length===0)return W(Je,Te)===null?[Te]:[];for(var se=0,ce=0,ge=[];ce<Te.length;){Je.lastIndex=Z?0:ce;var De,Ge=W(Je,Z?q(Te,ce):Te);if(Ge===null||(De=H(R(Je.lastIndex+(Z?ce:0)),Te.length))===se)ce=M(Te,ce,xt);else{if(Y(ge,q(Te,se,ce)),ge.length===mt)return ge;for(var ze=1;ze<=Ge.length-1;ze++)if(Y(ge,Ge[ze]),ge.length===mt)return ge;ce=se=De}}return Y(ge,q(Te,se)),ge}]},!ue,Z)},function(u,l,o){o(16)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(u,l,o){var d={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,b=h&&!d.call({1:2},1);l.f=b?function(g){var E=h(this,g);return!!E&&E.enumerable}:d},function(u,l,o){var d=o(7),h=o(15),b=o(18),g=o(51),E=d.Object,j=h("".split);u.exports=b(function(){return!E("z").propertyIsEnumerable(0)})?function(P){return g(P)=="String"?j(P,""):E(P)}:E},function(u,l,o){var d=o(131),h=o(87);u.exports=function(b){var g=d(b,"string");return h(g)?g:g+""}},function(u,l,o){var d=o(7),h=o(46),b=o(30),g=o(54),E=o(132),j=d.Object;u.exports=E?function(P){return typeof P=="symbol"}:function(P){var k=h("Symbol");return b(k)&&g(k.prototype,j(P))}},function(u,l,o){var d=o(7).String;u.exports=function(h){try{return d(h)}catch{return"Object"}}},function(u,l,o){var d=o(71),h=o(109);(u.exports=function(b,g){return h[b]||(h[b]=g!==void 0?g:{})})("versions",[]).push({version:"3.19.3",mode:d?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},function(u,l,o){var d=o(15),h=0,b=Math.random(),g=d(1 .toString);u.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+g(++h+b,36)}},function(u,l,o){var d=o(7),h=o(33),b=d.document,g=h(b)&&h(b.createElement);u.exports=function(E){return g?b.createElement(E):{}}},function(u,l,o){var d=o(15),h=o(30),b=o(109),g=d(Function.toString);h(b.inspectSource)||(b.inspectSource=function(E){return g(E)}),u.exports=b.inspectSource},function(u,l,o){var d=o(89),h=o(90),b=d("keys");u.exports=function(g){return b[g]||(b[g]=h(g))}},function(u,l,o){var d=o(59),h=Math.min;u.exports=function(b){return b>0?h(d(b),9007199254740991):0}},function(u,l,o){var d=o(18),h=o(30),b=/#|\.prototype\./,g=function(M,R){var N=j[E(M)];return N==k||N!=P&&(h(R)?d(R):!!R)},E=g.normalize=function(M){return String(M).replace(b,".").toLowerCase()},j=g.data={},P=g.NATIVE="N",k=g.POLYFILL="P";u.exports=g},function(u,l,o){var d=o(51);u.exports=Array.isArray||function(h){return d(h)=="Array"}},function(u,l,o){var d=o(7),h=o(113),b=o(30),g=o(51),E=o(28)("toStringTag"),j=d.Object,P=g(function(){return arguments}())=="Arguments";u.exports=h?g:function(k){var M,R,N;return k===void 0?"Undefined":k===null?"Null":typeof(R=function(L,G){try{return L[G]}catch{}}(M=j(k),E))=="string"?R:P?g(M):(N=g(M))=="Object"&&b(M.callee)?"Arguments":N}},function(u,l,o){var d=o(15);u.exports=d([].slice)},function(u,l,o){var d=o(15),h=o(18),b=o(30),g=o(97),E=o(46),j=o(92),P=function(){},k=[],M=E("Reflect","construct"),R=/^\s*(?:class|function)\b/,N=d(R.exec),L=!R.exec(P),G=function(W){if(!b(W))return!1;try{return M(P,k,W),!0}catch{return!1}};u.exports=!M||h(function(){var W;return G(G.call)||!G(Object)||!G(function(){W=!0})||W})?function(W){if(!b(W))return!1;switch(g(W)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return L||!!N(R,j(W))}:G},function(u,l,o){var d=o(28),h=o(60),b=o(38),g=d("unscopables"),E=Array.prototype;E[g]==null&&b.f(E,g,{configurable:!0,value:h(null)}),u.exports=function(j){E[g][j]=!0}},function(u,l,o){var d=o(7),h=o(35),b=o(30),g=o(40),E=o(93),j=o(143),P=E("IE_PROTO"),k=d.Object,M=k.prototype;u.exports=j?k.getPrototypeOf:function(R){var N=g(R);if(h(N,P))return N[P];var L=N.constructor;return b(L)&&N instanceof L?L.prototype:N instanceof k?M:null}},function(u,l,o){var d=o(15),h=o(32),b=o(181);u.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g,E=!1,j={};try{(g=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(j,[]),E=j instanceof Array}catch{}return function(P,k){return h(P),b(k),E?g(P,k):P.__proto__=k,P}}():void 0)},function(u,l,o){var d,h,b=o(34),g=o(15),E=o(39),j=o(154),P=o(155),k=o(89),M=o(60),R=o(58).get,N=o(190),L=o(191),G=k("native-string-replace",String.prototype.replace),W=RegExp.prototype.exec,X=W,Q=g("".charAt),te=g("".indexOf),Z=g("".replace),J=g("".slice),H=(h=/b*/g,b(W,d=/a/,"a"),b(W,h,"a"),d.lastIndex!==0||h.lastIndex!==0),B=P.BROKEN_CARET,V=/()??/.exec("")[1]!==void 0;(H||V||B||N||L)&&(X=function(Y){var q,ue,xe,be,Ae,Fe,je,ve=this,Pe=R(ve),Te=E(Y),We=Pe.raw;if(We)return We.lastIndex=ve.lastIndex,q=b(X,We,Te),ve.lastIndex=We.lastIndex,q;var it=Pe.groups,xt=B&&ve.sticky,Ye=b(j,ve),Je=ve.source,mt=0,se=Te;if(xt&&(Ye=Z(Ye,"y",""),te(Ye,"g")===-1&&(Ye+="g"),se=J(Te,ve.lastIndex),ve.lastIndex>0&&(!ve.multiline||ve.multiline&&Q(Te,ve.lastIndex-1)!==`
  51. `)&&(Je="(?: "+Je+")",se=" "+se,mt++),ue=new RegExp("^(?:"+Je+")",Ye)),V&&(ue=new RegExp("^"+Je+"$(?!\\s)",Ye)),H&&(xe=ve.lastIndex),be=b(W,xt?ue:ve,se),xt?be?(be.input=J(be.input,mt),be[0]=J(be[0],mt),be.index=ve.lastIndex,ve.lastIndex+=be[0].length):ve.lastIndex=0:H&&be&&(ve.lastIndex=ve.global?be.index+be[0].length:xe),V&&be&&be.length>1&&b(G,be[0],ue,function(){for(Ae=1;Ae<arguments.length-2;Ae++)arguments[Ae]===void 0&&(be[Ae]=void 0)}),be&&it)for(be.groups=Fe=M(null),Ae=0;Ae<it.length;Ae++)Fe[(je=it[Ae])[0]]=be[je[1]];return be}),u.exports=X},function(u,l,o){var d=o(16),h=o(7),b=o(75),g=o(59),E=o(45),j=o(40),P=o(115),k=o(63),M=o(81)("splice"),R=h.TypeError,N=Math.max,L=Math.min,G=9007199254740991,W="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!M},{splice:function(X,Q){var te,Z,J,H,B,V,Y=j(this),q=E(Y),ue=b(X,q),xe=arguments.length;if(xe===0?te=Z=0:xe===1?(te=0,Z=q-ue):(te=xe-2,Z=L(N(g(Q),0),q-ue)),q+te-Z>G)throw R(W);for(J=P(Y,Z),H=0;H<Z;H++)(B=ue+H)in Y&&k(J,H,Y[B]);if(J.length=Z,te<Z){for(H=ue;H<q-Z;H++)V=H+te,(B=H+Z)in Y?Y[V]=Y[B]:delete Y[V];for(H=q;H>q-Z+te;H--)delete Y[H-1]}else if(te>Z)for(H=q-Z;H>ue;H--)V=H+te-1,(B=H+Z-1)in Y?Y[V]=Y[B]:delete Y[V];for(H=0;H<te;H++)Y[H+ue]=arguments[H+2];return Y.length=q-Z+te,J}})},function(u,l,o){var d=o(16),h=o(205);d({target:"String",proto:!0,forced:o(206)("anchor")},{anchor:function(b){return h(this,"a","name",b)}})},function(u,l,o){(function(d){var h=typeof d=="object"&&d&&d.Object===Object&&d;l.a=h}).call(this,o(68))},function(u,l,o){(function(d){var h=o(31),b=a&&!a.nodeType&&a,g=b&&typeof d=="object"&&d&&!d.nodeType&&d,E=g&&g.exports===b?h.a.Buffer:void 0,j=E?E.allocUnsafe:void 0;l.a=function(P,k){if(k)return P.slice();var M=P.length,R=j?j(M):new P.constructor(M);return P.copy(R),R}}).call(this,o(122)(u))},function(u,l,o){var d=o(70),h=o(18);u.exports=!!Object.getOwnPropertySymbols&&!h(function(){var b=Symbol();return!String(b)||!(Object(b)instanceof Symbol)||!Symbol.sham&&d&&d<41})},function(u,l,o){var d=o(7),h=o(110),b="__core-js_shared__",g=d[b]||h(b,{});u.exports=g},function(u,l,o){var d=o(7),h=Object.defineProperty;u.exports=function(b,g){try{h(d,b,{value:g,configurable:!0,writable:!0})}catch{d[b]=g}return g}},function(u,l){u.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(u,l){l.f=Object.getOwnPropertySymbols},function(u,l,o){var d={};d[o(28)("toStringTag")]="z",u.exports=String(d)==="[object z]"},function(u,l,o){var d=o(7),h=o(75),b=o(45),g=o(63),E=d.Array,j=Math.max;u.exports=function(P,k,M){for(var R=b(P),N=h(k,R),L=h(M===void 0?R:M,R),G=E(j(L-N,0)),W=0;N<L;N++,W++)g(G,W,P[N]);return G.length=W,G}},function(u,l,o){var d=o(178);u.exports=function(h,b){return new(d(h))(b===0?0:b)}},function(u,l,o){var d=o(16),h=o(34),b=o(71),g=o(73),E=o(30),j=o(180),P=o(101),k=o(102),M=o(78),R=o(57),N=o(42),L=o(28),G=o(80),W=o(142),X=g.PROPER,Q=g.CONFIGURABLE,te=W.IteratorPrototype,Z=W.BUGGY_SAFARI_ITERATORS,J=L("iterator"),H="keys",B="values",V="entries",Y=function(){return this};u.exports=function(q,ue,xe,be,Ae,Fe,je){j(xe,ue,be);var ve,Pe,Te,We=function(ce){if(ce===Ae&&mt)return mt;if(!Z&&ce in Ye)return Ye[ce];switch(ce){case H:case B:case V:return function(){return new xe(this,ce)}}return function(){return new xe(this)}},it=ue+" Iterator",xt=!1,Ye=q.prototype,Je=Ye[J]||Ye["@@iterator"]||Ae&&Ye[Ae],mt=!Z&&Je||We(Ae),se=ue=="Array"&&Ye.entries||Je;if(se&&(ve=P(se.call(new q)))!==Object.prototype&&ve.next&&(b||P(ve)===te||(k?k(ve,te):E(ve[J])||N(ve,J,Y)),M(ve,it,!0,!0),b&&(G[it]=Y)),X&&Ae==B&&Je&&Je.name!==B&&(!b&&Q?R(Ye,"name",B):(xt=!0,mt=function(){return h(Je,this)})),Ae)if(Pe={values:We(B),keys:Fe?mt:We(H),entries:We(V)},je)for(Te in Pe)(Z||xt||!(Te in Ye))&&N(Ye,Te,Pe[Te]);else d({target:ue,proto:!0,forced:Z||xt},Pe);return b&&!je||Ye[J]===mt||N(Ye,J,mt,{name:Ae}),G[ue]=mt,Pe}},function(u,l,o){var d=o(7),h=o(64),b=o(34),g=o(32),E=o(88),j=o(145),P=o(45),k=o(54),M=o(146),R=o(118),N=o(147),L=d.TypeError,G=function(X,Q){this.stopped=X,this.result=Q},W=G.prototype;u.exports=function(X,Q,te){var Z,J,H,B,V,Y,q,ue=te&&te.that,xe=!(!te||!te.AS_ENTRIES),be=!(!te||!te.IS_ITERATOR),Ae=!(!te||!te.INTERRUPTED),Fe=h(Q,ue),je=function(Pe){return Z&&N(Z,"normal",Pe),new G(!0,Pe)},ve=function(Pe){return xe?(g(Pe),Ae?Fe(Pe[0],Pe[1],je):Fe(Pe[0],Pe[1])):Ae?Fe(Pe,je):Fe(Pe)};if(be)Z=X;else{if(!(J=R(X)))throw L(E(X)+" is not iterable");if(j(J)){for(H=0,B=P(X);B>H;H++)if((V=ve(X[H]))&&k(W,V))return V;return new G(!1)}Z=M(X,J)}for(Y=Z.next;!(q=b(Y,Z)).done;){try{V=ve(q.value)}catch(Pe){N(Z,"throw",Pe)}if(typeof V=="object"&&V&&k(W,V))return V}return new G(!1)}},function(u,l,o){var d=o(97),h=o(62),b=o(80),g=o(28)("iterator");u.exports=function(E){if(E!=null)return h(E,g)||h(E,"@@iterator")||b[d(E)]}},function(u,l,o){var d=o(7),h=o(54),b=d.TypeError;u.exports=function(g,E){if(h(E,g))return g;throw b("Incorrect invocation")}},function(u,l,o){var d=o(28)("iterator"),h=!1;try{var b=0,g={next:function(){return{done:!!b++}},return:function(){h=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}u.exports=function(E,j){if(!j&&!h)return!1;var P=!1;try{var k={};k[d]=function(){return{next:function(){return{done:P=!0}}}},E(k)}catch{}return P}},function(u,l,o){var d=o(18);u.exports=function(h,b){var g=[][h];return!!g&&d(function(){g.call(null,b||function(){throw 1},1)})}},function(u,l){u.exports=function(o){if(!o.webpackPolyfill){var d=Object.create(o);d.children||(d.children=[]),Object.defineProperty(d,"loaded",{enumerable:!0,get:function(){return d.l}}),Object.defineProperty(d,"id",{enumerable:!0,get:function(){return d.i}}),Object.defineProperty(d,"exports",{enumerable:!0}),d.webpackPolyfill=1}return d}},function(u,l,o){o(19);var d=o(15),h=o(42),b=o(103),g=o(18),E=o(28),j=o(57),P=E("species"),k=RegExp.prototype;u.exports=function(M,R,N,L){var G=E(M),W=!g(function(){var Z={};return Z[G]=function(){return 7},""[M](Z)!=7}),X=W&&!g(function(){var Z=!1,J=/a/;return M==="split"&&((J={}).constructor={},J.constructor[P]=function(){return J},J.flags="",J[G]=/./[G]),J.exec=function(){return Z=!0,null},J[G](""),!Z});if(!W||!X||N){var Q=d(/./[G]),te=R(G,""[M],function(Z,J,H,B,V){var Y=d(Z),q=J.exec;return q===b||q===k.exec?W&&!V?{done:!0,value:Q(J,H,B)}:{done:!0,value:Y(H,J,B)}:{done:!1}});h(String.prototype,M,te[0]),h(k,G,te[1])}L&&j(k[G],"sham",!0)}},function(u,l,o){var d=o(151).charAt;u.exports=function(h,b,g){return b+(g?d(h,b).length:1)}},function(u,l,o){var d=o(7),h=o(34),b=o(32),g=o(30),E=o(51),j=o(103),P=d.TypeError;u.exports=function(k,M){var R=k.exec;if(g(R)){var N=h(R,k,M);return N!==null&&b(N),N}if(E(k)==="RegExp")return h(j,k,M);throw P("RegExp#exec called on incompatible receiver")}},function(u,l,o){var d=o(76),h=o(34),b=o(15),g=o(123),E=o(18),j=o(32),P=o(30),k=o(59),M=o(94),R=o(39),N=o(44),L=o(124),G=o(62),W=o(201),X=o(125),Q=o(28)("replace"),te=Math.max,Z=Math.min,J=b([].concat),H=b([].push),B=b("".indexOf),V=b("".slice),Y="a".replace(/./,"$0")==="$0",q=!!/./[Q]&&/./[Q]("a","$0")==="";g("replace",function(ue,xe,be){var Ae=q?"$":"$0";return[function(Fe,je){var ve=N(this),Pe=Fe==null?void 0:G(Fe,Q);return Pe?h(Pe,Fe,ve,je):h(xe,R(ve),Fe,je)},function(Fe,je){var ve=j(this),Pe=R(Fe);if(typeof je=="string"&&B(je,Ae)===-1&&B(je,"$<")===-1){var Te=be(xe,ve,Pe,je);if(Te.done)return Te.value}var We=P(je);We||(je=R(je));var it=ve.global;if(it){var xt=ve.unicode;ve.lastIndex=0}for(var Ye=[];;){var Je=X(ve,Pe);if(Je===null||(H(Ye,Je),!it))break;R(Je[0])===""&&(ve.lastIndex=L(Pe,M(ve.lastIndex),xt))}for(var mt,se="",ce=0,ge=0;ge<Ye.length;ge++){for(var De=R((Je=Ye[ge])[0]),Ge=te(Z(k(Je.index),Pe.length),0),ze=[],Et=1;Et<Je.length;Et++)H(ze,(mt=Je[Et])===void 0?mt:String(mt));var Rt=Je.groups;if(We){var At=J([De],ze,Ge,Pe);Rt!==void 0&&H(At,Rt);var gt=R(d(je,void 0,At))}else gt=W(De,Pe,Ge,ze,Rt,je);Ge>=ce&&(se+=V(Pe,ce,Ge)+gt,ce=Ge+De.length)}return se+V(Pe,ce)}]},!!E(function(){var ue=/./;return ue.exec=function(){var xe=[];return xe.groups={a:"7"},xe},"".replace(ue,"$<a>")!=="7"})||!Y||q)},function(u,l,o){var d=o(16),h=Math.hypot,b=Math.abs,g=Math.sqrt;d({target:"Math",stat:!0,forced:!!h&&h(1/0,NaN)!==1/0},{hypot:function(E,j){for(var P,k,M=0,R=0,N=arguments.length,L=0;R<N;)L<(P=b(arguments[R++]))?(M=M*(k=L/P)*k+1,L=P):M+=P>0?(k=P/L)*k:P;return L===1/0?1/0:L*g(M)}})},function(u,l,o){var d=o(51),h=o(7);u.exports=d(h.process)=="process"},function(u,l,o){o(16)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(u,l,o){(function(d,h){var b;/**
  52. * @license
  53. * Lodash <https://lodash.com/>
  54. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  55. * Released under MIT license <https://lodash.com/license>
  56. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  57. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  58. */(function(){var g,E="Expected a function",j="__lodash_hash_undefined__",P="__lodash_placeholder__",k=16,M=32,R=64,N=128,L=256,G=1/0,W=9007199254740991,X=NaN,Q=4294967295,te=[["ary",N],["bind",1],["bindKey",2],["curry",8],["curryRight",k],["flip",512],["partial",M],["partialRight",R],["rearg",L]],Z="[object Arguments]",J="[object Array]",H="[object Boolean]",B="[object Date]",V="[object Error]",Y="[object Function]",q="[object GeneratorFunction]",ue="[object Map]",xe="[object Number]",be="[object Object]",Ae="[object Promise]",Fe="[object RegExp]",je="[object Set]",ve="[object String]",Pe="[object Symbol]",Te="[object WeakMap]",We="[object ArrayBuffer]",it="[object DataView]",xt="[object Float32Array]",Ye="[object Float64Array]",Je="[object Int8Array]",mt="[object Int16Array]",se="[object Int32Array]",ce="[object Uint8Array]",ge="[object Uint8ClampedArray]",De="[object Uint16Array]",Ge="[object Uint32Array]",ze=/\b__p \+= '';/g,Et=/\b(__p \+=) '' \+/g,Rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,At=/&(?:amp|lt|gt|quot|#39);/g,gt=/[&<>"']/g,Me=RegExp(At.source),lt=RegExp(gt.source),fe=/<%-([\s\S]+?)%>/g,at=/<%([\s\S]+?)%>/g,$t=/<%=([\s\S]+?)%>/g,hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wt=/^\w*$/,on=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_n=/[\\^$.*+?()[\]{}|]/g,Nn=RegExp(_n.source),Bt=/^\s+/,Xn=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,de=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,_e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/[()=,{}\[\]\/\s]/,Ke=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,or=/^[-+]0x[0-9a-f]+$/i,yr=/^0b[01]+$/i,Yn=/^\[object .+?Constructor\]$/,Zn=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,Ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,bn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",zn="\\u2700-\\u27bf",zo="a-z\\xdf-\\xf6\\xf8-\\xff",wo="A-Z\\xc0-\\xd6\\xd8-\\xde",Fo="\\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",Bl="['\u2019]",zu="[\\ud800-\\udfff]",qr="["+Li+"]",ba="["+bn+"]",ft="\\d+",zl="[\\u2700-\\u27bf]",Fu="["+zo+"]",$u="[^\\ud800-\\udfff"+Li+ft+zn+zo+wo+"]",Dr="\\ud83c[\\udffb-\\udfff]",Fr="[^\\ud800-\\udfff]",qa="(?:\\ud83c[\\udde6-\\uddff]){2}",lo="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+wo+"]",fo="(?:"+Fu+"|"+$u+")",Wu="(?:"+Zr+"|"+$u+")",Uu="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Qc="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",ma="(?:"+ba+"|"+Dr+")?",es="[\\ufe0e\\ufe0f]?",Gu=es+ma+("(?:\\u200d(?:"+[Fr,qa,lo].join("|")+")"+es+ma+")*"),Fl="(?:"+[zl,qa,lo].join("|")+")"+Gu,fi="(?:"+[Fr+ba+"?",ba,qa,lo,zu].join("|")+")",ts=RegExp(Bl,"g"),$o=RegExp(ba,"g"),Hu=RegExp(Dr+"(?="+Dr+")|"+fi+Gu,"g"),Za=RegExp([Zr+"?"+Fu+"+"+Uu+"(?="+[qr,Zr,"$"].join("|")+")",Wu+"+"+Qc+"(?="+[qr,Zr+fo,"$"].join("|")+")",Zr+"?"+fo+"+"+Uu,Zr+"+"+Qc,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ft,Fl].join("|"),"g"),Xu=RegExp("[\\u200d\\ud800-\\udfff"+bn+Fo+"]"),Yu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$l=["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"],ns=-1,vn={};vn[xt]=vn[Ye]=vn[Je]=vn[mt]=vn[se]=vn[ce]=vn[ge]=vn[De]=vn[Ge]=!0,vn[Z]=vn[J]=vn[We]=vn[H]=vn[it]=vn[B]=vn[V]=vn[Y]=vn[ue]=vn[xe]=vn[be]=vn[Fe]=vn[je]=vn[ve]=vn[Te]=!1;var yn={};yn[Z]=yn[J]=yn[We]=yn[it]=yn[H]=yn[B]=yn[xt]=yn[Ye]=yn[Je]=yn[mt]=yn[se]=yn[ue]=yn[xe]=yn[be]=yn[Fe]=yn[je]=yn[ve]=yn[Pe]=yn[ce]=yn[ge]=yn[De]=yn[Ge]=!0,yn[V]=yn[Y]=yn[Te]=!1;var rs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bi=parseFloat,Wo=parseInt,Vu=typeof d=="object"&&d&&d.Object===Object&&d,os=typeof self=="object"&&self&&self.Object===Object&&self,Gn=Vu||os||Function("return this")(),Ku=l&&!l.nodeType&&l,_a=Ku&&typeof h=="object"&&h&&!h.nodeType&&h,qu=_a&&_a.exports===Ku,Ja=qu&&Vu.process,vr=function(){try{var we=_a&&_a.require&&_a.require("util").types;return we||Ja&&Ja.binding&&Ja.binding("util")}catch{}}(),Zu=vr&&vr.isArrayBuffer,is=vr&&vr.isDate,Ju=vr&&vr.isMap,Qa=vr&&vr.isRegExp,zi=vr&&vr.isSet,xo=vr&&vr.isTypedArray;function Sn(we,Ne,Ie){switch(Ie.length){case 0:return we.call(Ne);case 1:return we.call(Ne,Ie[0]);case 2:return we.call(Ne,Ie[0],Ie[1]);case 3:return we.call(Ne,Ie[0],Ie[1],Ie[2])}return we.apply(Ne,Ie)}function as(we,Ne,Ie,et){for(var Ut=-1,en=we==null?0:we.length;++Ut<en;){var An=we[Ut];Ne(et,An,Ie(An),we)}return et}function Nr(we,Ne){for(var Ie=-1,et=we==null?0:we.length;++Ie<et&&Ne(we[Ie],Ie,we)!==!1;);return we}function us(we,Ne){for(var Ie=we==null?0:we.length;Ie--&&Ne(we[Ie],Ie,we)!==!1;);return we}function cs(we,Ne){for(var Ie=-1,et=we==null?0:we.length;++Ie<et;)if(!Ne(we[Ie],Ie,we))return!1;return!0}function jr(we,Ne){for(var Ie=-1,et=we==null?0:we.length,Ut=0,en=[];++Ie<et;){var An=we[Ie];Ne(An,Ie,we)&&(en[Ut++]=An)}return en}function Cr(we,Ne){return!!(we!=null&&we.length)&&Fi(we,Ne,0)>-1}function Qu(we,Ne,Ie){for(var et=-1,Ut=we==null?0:we.length;++et<Ut;)if(Ie(Ne,we[et]))return!0;return!1}function sn(we,Ne){for(var Ie=-1,et=we==null?0:we.length,Ut=Array(et);++Ie<et;)Ut[Ie]=Ne(we[Ie],Ie,we);return Ut}function ir(we,Ne){for(var Ie=-1,et=Ne.length,Ut=we.length;++Ie<et;)we[Ut+Ie]=Ne[Ie];return we}function eu(we,Ne,Ie,et){var Ut=-1,en=we==null?0:we.length;for(et&&en&&(Ie=we[++Ut]);++Ut<en;)Ie=Ne(Ie,we[Ut],Ut,we);return Ie}function ss(we,Ne,Ie,et){var Ut=we==null?0:we.length;for(et&&Ut&&(Ie=we[--Ut]);Ut--;)Ie=Ne(Ie,we[Ut],Ut,we);return Ie}function ec(we,Ne){for(var Ie=-1,et=we==null?0:we.length;++Ie<et;)if(Ne(we[Ie],Ie,we))return!0;return!1}var tu=Ir("length");function Eo(we,Ne,Ie){var et;return Ie(we,function(Ut,en,An){if(Ne(Ut,en,An))return et=en,!1}),et}function Uo(we,Ne,Ie,et){for(var Ut=we.length,en=Ie+(et?1:-1);et?en--:++en<Ut;)if(Ne(we[en],en,we))return en;return-1}function Fi(we,Ne,Ie){return Ne==Ne?function(et,Ut,en){for(var An=en-1,O=et.length;++An<O;)if(et[An]===Ut)return An;return-1}(we,Ne,Ie):Uo(we,Go,Ie)}function Rr(we,Ne,Ie,et){for(var Ut=Ie-1,en=we.length;++Ut<en;)if(et(we[Ut],Ne))return Ut;return-1}function Go(we){return we!=we}function an(we,Ne){var Ie=we==null?0:we.length;return Ie?nu(we,Ne)/Ie:X}function Ir(we){return function(Ne){return Ne==null?g:Ne[we]}}function So(we){return function(Ne){return we==null?g:we[Ne]}}function fr(we,Ne,Ie,et,Ut){return Ut(we,function(en,An,O){Ie=et?(et=!1,en):Ne(Ie,en,An,O)}),Ie}function nu(we,Ne){for(var Ie,et=-1,Ut=we.length;++et<Ut;){var en=Ne(we[et]);en!==g&&(Ie=Ie===g?en:Ie+en)}return Ie}function Oa(we,Ne){for(var Ie=-1,et=Array(we);++Ie<we;)et[Ie]=Ne(Ie);return et}function tc(we){return we&&we.slice(0,Lr(we)+1).replace(Bt,"")}function Fn(we){return function(Ne){return we(Ne)}}function ru(we,Ne){return sn(Ne,function(Ie){return we[Ie]})}function Ho(we,Ne){return we.has(Ne)}function Jr(we,Ne){for(var Ie=-1,et=we.length;++Ie<et&&Fi(Ne,we[Ie],0)>-1;);return Ie}function nc(we,Ne){for(var Ie=we.length;Ie--&&Fi(Ne,we[Ie],0)>-1;);return Ie}function Wl(we,Ne){for(var Ie=we.length,et=0;Ie--;)we[Ie]===Ne&&++et;return et}var rc=So({\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"}),Vn=So({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function pi(we){return"\\"+rs[we]}function jo(we){return Xu.test(we)}function Pr(we){var Ne=-1,Ie=Array(we.size);return we.forEach(function(et,Ut){Ie[++Ne]=[Ut,et]}),Ie}function oc(we,Ne){return function(Ie){return we(Ne(Ie))}}function $r(we,Ne){for(var Ie=-1,et=we.length,Ut=0,en=[];++Ie<et;){var An=we[Ie];An!==Ne&&An!==P||(we[Ie]=P,en[Ut++]=Ie)}return en}function di(we){var Ne=-1,Ie=Array(we.size);return we.forEach(function(et){Ie[++Ne]=et}),Ie}function ou(we){var Ne=-1,Ie=Array(we.size);return we.forEach(function(et){Ie[++Ne]=[et,et]}),Ie}function Po(we){return jo(we)?function(Ne){for(var Ie=Hu.lastIndex=0;Hu.test(Ne);)++Ie;return Ie}(we):tu(we)}function Wr(we){return jo(we)?function(Ne){return Ne.match(Hu)||[]}(we):function(Ne){return Ne.split("")}(we)}function Lr(we){for(var Ne=we.length;Ne--&&Xn.test(we.charAt(Ne)););return Ne}var Qr=So({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Ao=function we(Ne){var Ie,et=(Ne=Ne==null?Gn:Ao.defaults(Gn.Object(),Ne,Ao.pick(Gn,$l))).Array,Ut=Ne.Date,en=Ne.Error,An=Ne.Function,O=Ne.Math,w=Ne.Object,T=Ne.RegExp,z=Ne.String,ee=Ne.TypeError,pe=et.prototype,Se=An.prototype,$e=w.prototype,ct=Ne["__core-js_shared__"],qt=Se.toString,tt=$e.hasOwnProperty,On=0,Gt=(Ie=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+Ie:"",fn=$e.toString,eo=qt.call(w),Rn=Gn._,Br=T("^"+qt.call(tt).replace(_n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xo=qu?Ne.Buffer:g,Yo=Ne.Symbol,wa=Ne.Uint8Array,ic=Xo?Xo.allocUnsafe:g,hi=oc(w.getPrototypeOf,w),iu=w.create,Ar=$e.propertyIsEnumerable,xa=pe.splice,$i=Yo?Yo.isConcatSpreadable:g,yi=Yo?Yo.iterator:g,vi=Yo?Yo.toStringTag:g,au=function(){try{var f=Aa(w,"defineProperty");return f({},"",{}),f}catch{}}(),Hy=Ne.clearTimeout!==Gn.clearTimeout&&Ne.clearTimeout,Xy=Ut&&Ut.now!==Gn.Date.now&&Ut.now,Up=Ne.setTimeout!==Gn.setTimeout&&Ne.setTimeout,ls=O.ceil,uu=O.floor,Ul=w.getOwnPropertySymbols,Yy=Xo?Xo.isBuffer:g,Gp=Ne.isFinite,Gl=pe.join,Hp=oc(w.keys,w),pr=O.max,Tr=O.min,fs=Ut.now,ps=Ne.parseInt,ds=O.random,Vy=pe.reverse,cu=Aa(Ne,"DataView"),Vo=Aa(Ne,"Map"),Hl=Aa(Ne,"Promise"),Ea=Aa(Ne,"Set"),su=Aa(Ne,"WeakMap"),ac=Aa(w,"create"),hs=su&&new su,lu={},Ky=Zi(cu),Xp=Zi(Vo),qy=Zi(Hl),Zy=Zi(Ea),Yp=Zi(su),ys=Yo?Yo.prototype:g,br=ys?ys.valueOf:g,Vp=ys?ys.toString:g;function F(f){if(Wn(f)&&!Ht(f)&&!(f instanceof cn)){if(f instanceof po)return f;if(tt.call(f,"__wrapped__"))return jf(f)}return new po(f)}var fu=function(){function f(){}return function(y){if(!xn(y))return{};if(iu)return iu(y);f.prototype=y;var _=new f;return f.prototype=g,_}}();function uc(){}function po(f,y){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!y,this.__index__=0,this.__values__=g}function cn(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function Sa(f){var y=-1,_=f==null?0:f.length;for(this.clear();++y<_;){var A=f[y];this.set(A[0],A[1])}}function wn(f){var y=-1,_=f==null?0:f.length;for(this.clear();++y<_;){var A=f[y];this.set(A[0],A[1])}}function Ko(f){var y=-1,_=f==null?0:f.length;for(this.clear();++y<_;){var A=f[y];this.set(A[0],A[1])}}function Wi(f){var y=-1,_=f==null?0:f.length;for(this.__data__=new Ko;++y<_;)this.add(f[y])}function ho(f){var y=this.__data__=new wn(f);this.size=y.size}function Xl(f,y){var _=Ht(f),A=!_&&Ji(f),C=!_&&!A&&bo(f),U=!_&&!A&&!C&&Ta(f),ie=_||A||C||U,le=ie?Oa(f.length,z):[],Oe=le.length;for(var Le in f)!y&&!tt.call(f,Le)||ie&&(Le=="length"||C&&(Le=="offset"||Le=="parent")||U&&(Le=="buffer"||Le=="byteLength"||Le=="byteOffset")||Bn(Le,Oe))||le.push(Le);return le}function Yl(f){var y=f.length;return y?f[tf(0,y-1)]:g}function Kp(f,y){return yc(Gr(f),Ui(y,0,f.length))}function qp(f){return yc(Gr(f))}function vs(f,y,_){(_!==g&&!ro(f[y],_)||_===g&&!(y in f))&&qo(f,y,_)}function pu(f,y,_){var A=f[y];tt.call(f,y)&&ro(A,_)&&(_!==g||y in f)||qo(f,y,_)}function cc(f,y){for(var _=f.length;_--;)if(ro(f[_][0],y))return _;return-1}function Zp(f,y,_,A){return In(f,function(C,U,ie){y(A,C,_(C),ie)}),A}function Vl(f,y){return f&&Zo(y,dr(y),f)}function qo(f,y,_){y=="__proto__"&&au?au(f,y,{configurable:!0,enumerable:!0,value:_,writable:!0}):f[y]=_}function gs(f,y){for(var _=-1,A=y.length,C=et(A),U=f==null;++_<A;)C[_]=U?g:ea(f,y[_]);return C}function Ui(f,y,_){return f==f&&(_!==g&&(f=f<=_?f:_),y!==g&&(f=f>=y?f:y)),f}function to(f,y,_,A,C,U){var ie,le=1&y,Oe=2&y,Le=4&y;if(_&&(ie=C?_(f,A,C,U):_(f)),ie!==g)return ie;if(!xn(f))return f;var Ce=Ht(f);if(Ce){if(ie=function(Be){var He=Be.length,Ft=new Be.constructor(He);return He&&typeof Be[0]=="string"&&tt.call(Be,"index")&&(Ft.index=Be.index,Ft.input=Be.input),Ft}(f),!le)return Gr(f,ie)}else{var Ue=Mr(f),st=Ue==Y||Ue==q;if(bo(f))return sf(f,le);if(Ue==be||Ue==Z||st&&!C){if(ie=Oe||st?{}:Ed(f),!le)return Oe?function(Be,He){return Zo(Be,bf(Be),He)}(f,function(Be,He){return Be&&Zo(He,wr(He),Be)}(ie,f)):function(Be,He){return Zo(Be,pc(Be),He)}(f,Vl(ie,f))}else{if(!yn[Ue])return C?f:{};ie=function(Be,He,Ft){var nt=Be.constructor;switch(He){case We:return lf(Be);case H:case B:return new nt(+Be);case it:return function(Mt,rn){var bt=rn?lf(Mt.buffer):Mt.buffer;return new Mt.constructor(bt,Mt.byteOffset,Mt.byteLength)}(Be,Ft);case xt:case Ye:case Je:case mt:case se:case ce:case ge:case De:case Ge:return Mn(Be,Ft);case ue:return new nt;case xe:case ve:return new nt(Be);case Fe:return function(Mt){var rn=new Mt.constructor(Mt.source,Vt.exec(Mt));return rn.lastIndex=Mt.lastIndex,rn}(Be);case je:return new nt;case Pe:return Dt=Be,br?w(br.call(Dt)):{}}var Dt}(f,Ue,le)}}U||(U=new ho);var vt=U.get(f);if(vt)return vt;U.set(f,ie),Bf(f)?f.forEach(function(Be){ie.add(to(Be,y,_,Be,f,U))}):Or(f)&&f.forEach(function(Be,He){ie.set(He,to(Be,y,_,He,f,U))});var jt=Ce?g:(Le?Oe?yf:hf:Oe?wr:dr)(f);return Nr(jt||f,function(Be,He){jt&&(Be=f[He=Be]),pu(ie,He,to(Be,y,_,He,f,U))}),ie}function Kl(f,y,_){var A=_.length;if(f==null)return!A;for(f=w(f);A--;){var C=_[A],U=y[C],ie=f[C];if(ie===g&&!(C in f)||!U(ie))return!1}return!0}function ql(f,y,_){if(typeof f!="function")throw new ee(E);return mu(function(){f.apply(g,_)},y)}function gi(f,y,_,A){var C=-1,U=Cr,ie=!0,le=f.length,Oe=[],Le=y.length;if(!le)return Oe;_&&(y=sn(y,Fn(_))),A?(U=Qu,ie=!1):y.length>=200&&(U=Ho,ie=!1,y=new Wi(y));e:for(;++C<le;){var Ce=f[C],Ue=_==null?Ce:_(Ce);if(Ce=A||Ce!==0?Ce:0,ie&&Ue==Ue){for(var st=Le;st--;)if(y[st]===Ue)continue e;Oe.push(Ce)}else U(y,Ue,A)||Oe.push(Ce)}return Oe}F.templateSettings={escape:fe,evaluate:at,interpolate:$t,variable:"",imports:{_:F}},F.prototype=uc.prototype,F.prototype.constructor=F,po.prototype=fu(uc.prototype),po.prototype.constructor=po,cn.prototype=fu(uc.prototype),cn.prototype.constructor=cn,Sa.prototype.clear=function(){this.__data__=ac?ac(null):{},this.size=0},Sa.prototype.delete=function(f){var y=this.has(f)&&delete this.__data__[f];return this.size-=y?1:0,y},Sa.prototype.get=function(f){var y=this.__data__;if(ac){var _=y[f];return _===j?g:_}return tt.call(y,f)?y[f]:g},Sa.prototype.has=function(f){var y=this.__data__;return ac?y[f]!==g:tt.call(y,f)},Sa.prototype.set=function(f,y){var _=this.__data__;return this.size+=this.has(f)?0:1,_[f]=ac&&y===g?j:y,this},wn.prototype.clear=function(){this.__data__=[],this.size=0},wn.prototype.delete=function(f){var y=this.__data__,_=cc(y,f);return!(_<0)&&(_==y.length-1?y.pop():xa.call(y,_,1),--this.size,!0)},wn.prototype.get=function(f){var y=this.__data__,_=cc(y,f);return _<0?g:y[_][1]},wn.prototype.has=function(f){return cc(this.__data__,f)>-1},wn.prototype.set=function(f,y){var _=this.__data__,A=cc(_,f);return A<0?(++this.size,_.push([f,y])):_[A][1]=y,this},Ko.prototype.clear=function(){this.size=0,this.__data__={hash:new Sa,map:new(Vo||wn),string:new Sa}},Ko.prototype.delete=function(f){var y=Cs(this,f).delete(f);return this.size-=y?1:0,y},Ko.prototype.get=function(f){return Cs(this,f).get(f)},Ko.prototype.has=function(f){return Cs(this,f).has(f)},Ko.prototype.set=function(f,y){var _=Cs(this,f),A=_.size;return _.set(f,y),this.size+=_.size==A?0:1,this},Wi.prototype.add=Wi.prototype.push=function(f){return this.__data__.set(f,j),this},Wi.prototype.has=function(f){return this.__data__.has(f)},ho.prototype.clear=function(){this.__data__=new wn,this.size=0},ho.prototype.delete=function(f){var y=this.__data__,_=y.delete(f);return this.size=y.size,_},ho.prototype.get=function(f){return this.__data__.get(f)},ho.prototype.has=function(f){return this.__data__.has(f)},ho.prototype.set=function(f,y){var _=this.__data__;if(_ instanceof wn){var A=_.__data__;if(!Vo||A.length<199)return A.push([f,y]),this.size=++_.size,this;_=this.__data__=new Ko(A)}return _.set(f,y),this.size=_.size,this};var In=hd(dt),Jp=hd(Tn,!0);function Qp(f,y){var _=!0;return In(f,function(A,C,U){return _=!!y(A,C,U)}),_}function Kn(f,y,_){for(var A=-1,C=f.length;++A<C;){var U=f[A],ie=y(U);if(ie!=null&&(le===g?ie==ie&&!Vr(ie):_(ie,le)))var le=ie,Oe=U}return Oe}function gn(f,y){var _=[];return In(f,function(A,C,U){y(A,C,U)&&_.push(A)}),_}function gr(f,y,_,A,C){var U=-1,ie=f.length;for(_||(_=rv),C||(C=[]);++U<ie;){var le=f[U];y>0&&_(le)?y>1?gr(le,y-1,_,A,C):ir(C,le):A||(C[C.length]=le)}return C}var Zt=yd(),Jn=yd(!0);function dt(f,y){return f&&Zt(f,y,dr)}function Tn(f,y){return f&&Jn(f,y,dr)}function bs(f,y){return jr(y,function(_){return Ei(f[_])})}function bi(f,y){for(var _=0,A=(y=Hi(y,f)).length;f!=null&&_<A;)f=f[To(y[_++])];return _&&_==A?f:g}function Zl(f,y,_){var A=y(f);return Ht(f)?A:ir(A,_(f))}function $n(f){return f==null?f===g?"[object Undefined]":"[object Null]":vi&&vi in w(f)?function(y){var _=tt.call(y,vi),A=y[vi];try{y[vi]=g;var C=!0}catch{}var U=fn.call(y);return C&&(_?y[vi]=A:delete y[vi]),U}(f):function(y){return fn.call(y)}(f)}function Hn(f,y){return f>y}function ed(f,y){return f!=null&&tt.call(f,y)}function td(f,y){return f!=null&&y in w(f)}function ms(f,y,_){for(var A=_?Qu:Cr,C=f[0].length,U=f.length,ie=U,le=et(U),Oe=1/0,Le=[];ie--;){var Ce=f[ie];ie&&y&&(Ce=sn(Ce,Fn(y))),Oe=Tr(Ce.length,Oe),le[ie]=!_&&(y||C>=120&&Ce.length>=120)?new Wi(ie&&Ce):g}Ce=f[0];var Ue=-1,st=le[0];e:for(;++Ue<C&&Le.length<Oe;){var vt=Ce[Ue],jt=y?y(vt):vt;if(vt=_||vt!==0?vt:0,!(st?Ho(st,jt):A(Le,jt,_))){for(ie=U;--ie;){var Be=le[ie];if(!(Be?Ho(Be,jt):A(f[ie],jt,_)))continue e}st&&st.push(jt),Le.push(vt)}}return Le}function du(f,y,_){var A=(f=Of(f,y=Hi(y,f)))==null?f:f[To(Hr(y))];return A==null?g:Sn(A,f,_)}function Jl(f){return Wn(f)&&$n(f)==Z}function hu(f,y,_,A,C){return f===y||(f==null||y==null||!Wn(f)&&!Wn(y)?f!=f&&y!=y:function(U,ie,le,Oe,Le,Ce){var Ue=Ht(U),st=Ht(ie),vt=Ue?J:Mr(U),jt=st?J:Mr(ie),Be=(vt=vt==Z?be:vt)==be,He=(jt=jt==Z?be:jt)==be,Ft=vt==jt;if(Ft&&bo(U)){if(!bo(ie))return!1;Ue=!0,Be=!1}if(Ft&&!Be)return Ce||(Ce=new ho),Ue||Ta(U)?wd(U,ie,le,Oe,Le,Ce):function(bt,Pt,Un,me,ko,ar,ei){switch(Un){case it:if(bt.byteLength!=Pt.byteLength||bt.byteOffset!=Pt.byteOffset)return!1;bt=bt.buffer,Pt=Pt.buffer;case We:return!(bt.byteLength!=Pt.byteLength||!ar(new wa(bt),new wa(Pt)));case H:case B:case xe:return ro(+bt,+Pt);case V:return bt.name==Pt.name&&bt.message==Pt.message;case Fe:case ve:return bt==Pt+"";case ue:var Ai=Pr;case je:var xu=1&me;if(Ai||(Ai=di),bt.size!=Pt.size&&!xu)return!1;var kc=ei.get(bt);if(kc)return kc==Pt;me|=2,ei.set(bt,Pt);var Na=wd(Ai(bt),Ai(Pt),me,ko,ar,ei);return ei.delete(bt),Na;case Pe:if(br)return br.call(bt)==br.call(Pt)}return!1}(U,ie,vt,le,Oe,Le,Ce);if(!(1&le)){var nt=Be&&tt.call(U,"__wrapped__"),Dt=He&&tt.call(ie,"__wrapped__");if(nt||Dt){var Mt=nt?U.value():U,rn=Dt?ie.value():ie;return Ce||(Ce=new ho),Le(Mt,rn,le,Oe,Ce)}}return Ft?(Ce||(Ce=new ho),function(bt,Pt,Un,me,ko,ar){var ei=1&Un,Ai=hf(bt),xu=Ai.length,kc=hf(Pt).length;if(xu!=kc&&!ei)return!1;for(var Na=xu;Na--;){var na=Ai[Na];if(!(ei?na in Pt:tt.call(Pt,na)))return!1}var op=ar.get(bt),ip=ar.get(Pt);if(op&&ip)return op==Pt&&ip==bt;var Dc=!0;ar.set(bt,Pt),ar.set(Pt,bt);for(var Js=ei;++Na<xu;){var ra=bt[na=Ai[Na]],Nc=Pt[na];if(me)var ap=ei?me(Nc,ra,na,Pt,bt,ar):me(ra,Nc,na,bt,Pt,ar);if(!(ap===g?ra===Nc||ko(ra,Nc,Un,me,ar):ap)){Dc=!1;break}Js||(Js=na=="constructor")}if(Dc&&!Js){var oa=bt.constructor,Cc=Pt.constructor;oa==Cc||!("constructor"in bt)||!("constructor"in Pt)||typeof oa=="function"&&oa instanceof oa&&typeof Cc=="function"&&Cc instanceof Cc||(Dc=!1)}return ar.delete(bt),ar.delete(Pt),Dc}(U,ie,le,Oe,Le,Ce)):!1}(f,y,_,A,hu,C))}function _s(f,y,_,A){var C=_.length,U=C,ie=!A;if(f==null)return!U;for(f=w(f);C--;){var le=_[C];if(ie&&le[2]?le[1]!==f[le[0]]:!(le[0]in f))return!1}for(;++C<U;){var Oe=(le=_[C])[0],Le=f[Oe],Ce=le[1];if(ie&&le[2]){if(Le===g&&!(Oe in f))return!1}else{var Ue=new ho;if(A)var st=A(Le,Ce,Oe,f,y,Ue);if(!(st===g?hu(Ce,Le,3,A,Ue):st))return!1}}return!0}function yu(f){return!(!xn(f)||(y=f,Gt&&Gt in y))&&(Ei(f)?Br:Yn).test(Zi(f));var y}function Ql(f){return typeof f=="function"?f:f==null?xr:typeof f=="object"?Ht(f)?rd(f[0],f[1]):nd(f):tr(f)}function mi(f){if(!hc(f))return Hp(f);var y=[];for(var _ in w(f))tt.call(f,_)&&_!="constructor"&&y.push(_);return y}function Jy(f){if(!xn(f))return function(C){var U=[];if(C!=null)for(var ie in w(C))U.push(ie);return U}(f);var y=hc(f),_=[];for(var A in f)(A!="constructor"||!y&&tt.call(f,A))&&_.push(A);return _}function _i(f,y){return f<y}function yo(f,y){var _=-1,A=Yr(f)?et(f.length):[];return In(f,function(C,U,ie){A[++_]=y(C,U,ie)}),A}function nd(f){var y=gf(f);return y.length==1&&y[0][2]?Rs(y[0][0],y[0][1]):function(_){return _===f||_s(_,f,y)}}function rd(f,y){return mf(f)&&bu(y)?Rs(To(f),y):function(_){var A=ea(_,f);return A===g&&A===y?Ma(_,f):hu(y,A,3)}}function Os(f,y,_,A,C){f!==y&&Zt(y,function(U,ie){if(C||(C=new ho),xn(U))(function(Oe,Le,Ce,Ue,st,vt,jt){var Be=ke(Oe,Ce),He=ke(Le,Ce),Ft=jt.get(He);if(Ft)return void vs(Oe,Ce,Ft);var nt=vt?vt(Be,He,Ce+"",Oe,Le,jt):g,Dt=nt===g;if(Dt){var Mt=Ht(He),rn=!Mt&&bo(He),bt=!Mt&&!rn&&Ta(He);nt=He,Mt||rn||bt?Ht(Be)?nt=Be:er(Be)?nt=Gr(Be):rn?(Dt=!1,nt=sf(He,!0)):bt?(Dt=!1,nt=Mn(He,!0)):nt=[]:Si(He)||Ji(He)?(nt=Be,Ji(Be)?nt=Ws(Be):xn(Be)&&!Ei(Be)||(nt=Ed(He))):Dt=!1}Dt&&(jt.set(He,nt),st(nt,He,Ue,vt,jt),jt.delete(He)),vs(Oe,Ce,nt)})(f,y,ie,_,Os,A,C);else{var le=A?A(ke(f,ie),U,ie+"",f,y,C):g;le===g&&(le=U),vs(f,ie,le)}},wr)}function od(f,y){var _=f.length;if(_)return Bn(y+=y<0?_:0,_)?f[y]:g}function id(f,y,_){y=y.length?sn(y,function(U){return Ht(U)?function(ie){return bi(ie,U.length===1?U[0]:U)}:U}):[xr];var A=-1;y=sn(y,Fn(kt()));var C=yo(f,function(U,ie,le){var Oe=sn(y,function(Le){return Le(U)});return{criteria:Oe,index:++A,value:U}});return function(U,ie){var le=U.length;for(U.sort(ie);le--;)U[le]=U[le].value;return U}(C,function(U,ie){return function(le,Oe,Le){for(var Ce=-1,Ue=le.criteria,st=Oe.criteria,vt=Ue.length,jt=Le.length;++Ce<vt;){var Be=dd(Ue[Ce],st[Ce]);if(Be)return Ce>=jt?Be:Be*(Le[Ce]=="desc"?-1:1)}return le.index-Oe.index}(U,ie,_)})}function ad(f,y,_){for(var A=-1,C=y.length,U={};++A<C;){var ie=y[A],le=bi(f,ie);_(le,ie)&&gu(U,Hi(ie,f),le)}return U}function ef(f,y,_,A){var C=A?Rr:Fi,U=-1,ie=y.length,le=f;for(f===y&&(y=Gr(y)),_&&(le=sn(f,Fn(_)));++U<ie;)for(var Oe=0,Le=y[U],Ce=_?_(Le):Le;(Oe=C(le,Ce,Oe,A))>-1;)le!==f&&xa.call(le,Oe,1),xa.call(f,Oe,1);return f}function vu(f,y){for(var _=f?y.length:0,A=_-1;_--;){var C=y[_];if(_==A||C!==U){var U=C;Bn(C)?xa.call(f,C,1):Es(f,C)}}return f}function tf(f,y){return f+uu(ds()*(y-f+1))}function ws(f,y){var _="";if(!f||y<1||y>W)return _;do y%2&&(_+=f),(y=uu(y/2))&&(f+=f);while(y);return _}function Jt(f,y){return Is(_f(f,y,xr),f+"")}function Qy(f){return Yl(Da(f))}function nf(f,y){var _=Da(f);return yc(_,Ui(y,0,_.length))}function gu(f,y,_,A){if(!xn(f))return f;for(var C=-1,U=(y=Hi(y,f)).length,ie=U-1,le=f;le!=null&&++C<U;){var Oe=To(y[C]),Le=_;if(Oe==="__proto__"||Oe==="constructor"||Oe==="prototype")return f;if(C!=ie){var Ce=le[Oe];(Le=A?A(Ce,Oe,le):g)===g&&(Le=xn(Ce)?Ce:Bn(y[C+1])?[]:{})}pu(le,Oe,Le),le=le[Oe]}return f}var ud=hs?function(f,y){return hs.set(f,y),f}:xr,ev=au?function(f,y){return au(f,"toString",{configurable:!0,enumerable:!1,value:Yf(y),writable:!0})}:xr;function tv(f){return yc(Da(f))}function vo(f,y,_){var A=-1,C=f.length;y<0&&(y=-y>C?0:C+y),(_=_>C?C:_)<0&&(_+=C),C=y>_?0:_-y>>>0,y>>>=0;for(var U=et(C);++A<C;)U[A]=f[A+y];return U}function rf(f,y){var _;return In(f,function(A,C,U){return!(_=y(A,C,U))}),!!_}function xs(f,y,_){var A=0,C=f==null?A:f.length;if(typeof y=="number"&&y==y&&C<=2147483647){for(;A<C;){var U=A+C>>>1,ie=f[U];ie!==null&&!Vr(ie)&&(_?ie<=y:ie<y)?A=U+1:C=U}return C}return of(f,y,xr,_)}function of(f,y,_,A){var C=0,U=f==null?0:f.length;if(U===0)return 0;for(var ie=(y=_(y))!=y,le=y===null,Oe=Vr(y),Le=y===g;C<U;){var Ce=uu((C+U)/2),Ue=_(f[Ce]),st=Ue!==g,vt=Ue===null,jt=Ue==Ue,Be=Vr(Ue);if(ie)var He=A||jt;else He=Le?jt&&(A||st):le?jt&&st&&(A||!vt):Oe?jt&&st&&!vt&&(A||!Be):!vt&&!Be&&(A?Ue<=y:Ue<y);He?C=Ce+1:U=Ce}return Tr(U,4294967294)}function cd(f,y){for(var _=-1,A=f.length,C=0,U=[];++_<A;){var ie=f[_],le=y?y(ie):ie;if(!_||!ro(le,Oe)){var Oe=le;U[C++]=ie===0?0:ie}}return U}function af(f){return typeof f=="number"?f:Vr(f)?X:+f}function Ur(f){if(typeof f=="string")return f;if(Ht(f))return sn(f,Ur)+"";if(Vr(f))return Vp?Vp.call(f):"";var y=f+"";return y=="0"&&1/f==-1/0?"-0":y}function Gi(f,y,_){var A=-1,C=Cr,U=f.length,ie=!0,le=[],Oe=le;if(_)ie=!1,C=Qu;else if(U>=200){var Le=y?null:pf(f);if(Le)return di(Le);ie=!1,C=Ho,Oe=new Wi}else Oe=y?[]:le;e:for(;++A<U;){var Ce=f[A],Ue=y?y(Ce):Ce;if(Ce=_||Ce!==0?Ce:0,ie&&Ue==Ue){for(var st=Oe.length;st--;)if(Oe[st]===Ue)continue e;y&&Oe.push(Ue),le.push(Ce)}else C(Oe,Ue,_)||(Oe!==le&&Oe.push(Ue),le.push(Ce))}return le}function Es(f,y){return(f=Of(f,y=Hi(y,f)))==null||delete f[To(Hr(y))]}function sd(f,y,_,A){return gu(f,y,_(bi(f,y)),A)}function sc(f,y,_,A){for(var C=f.length,U=A?C:-1;(A?U--:++U<C)&&y(f[U],U,f););return _?vo(f,A?0:U,A?U+1:C):vo(f,A?U+1:0,A?C:U)}function ld(f,y){var _=f;return _ instanceof cn&&(_=_.value()),eu(y,function(A,C){return C.func.apply(C.thisArg,ir([A],C.args))},_)}function Ss(f,y,_){var A=f.length;if(A<2)return A?Gi(f[0]):[];for(var C=-1,U=et(A);++C<A;)for(var ie=f[C],le=-1;++le<A;)le!=C&&(U[C]=gi(U[C]||ie,f[le],y,_));return Gi(gr(U,1),y,_)}function fd(f,y,_){for(var A=-1,C=f.length,U=y.length,ie={};++A<C;){var le=A<U?y[A]:g;_(ie,f[A],le)}return ie}function js(f){return er(f)?f:[]}function uf(f){return typeof f=="function"?f:xr}function Hi(f,y){return Ht(f)?f:mf(f,y)?[f]:Sf(En(f))}var pd=Jt;function Xi(f,y,_){var A=f.length;return _=_===g?A:_,!y&&_>=A?f:vo(f,y,_)}var cf=Hy||function(f){return Gn.clearTimeout(f)};function sf(f,y){if(y)return f.slice();var _=f.length,A=ic?ic(_):new f.constructor(_);return f.copy(A),A}function lf(f){var y=new f.constructor(f.byteLength);return new wa(y).set(new wa(f)),y}function Mn(f,y){var _=y?lf(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.length)}function dd(f,y){if(f!==y){var _=f!==g,A=f===null,C=f==f,U=Vr(f),ie=y!==g,le=y===null,Oe=y==y,Le=Vr(y);if(!le&&!Le&&!U&&f>y||U&&ie&&Oe&&!le&&!Le||A&&ie&&Oe||!_&&Oe||!C)return 1;if(!A&&!U&&!Le&&f<y||Le&&_&&C&&!A&&!U||le&&_&&C||!ie&&C||!Oe)return-1}return 0}function Ln(f,y,_,A){for(var C=-1,U=f.length,ie=_.length,le=-1,Oe=y.length,Le=pr(U-ie,0),Ce=et(Oe+Le),Ue=!A;++le<Oe;)Ce[le]=y[le];for(;++C<ie;)(Ue||C<U)&&(Ce[_[C]]=f[C]);for(;Le--;)Ce[le++]=f[C++];return Ce}function Ps(f,y,_,A){for(var C=-1,U=f.length,ie=-1,le=_.length,Oe=-1,Le=y.length,Ce=pr(U-le,0),Ue=et(Ce+Le),st=!A;++C<Ce;)Ue[C]=f[C];for(var vt=C;++Oe<Le;)Ue[vt+Oe]=y[Oe];for(;++ie<le;)(st||C<U)&&(Ue[vt+_[ie]]=f[C++]);return Ue}function Gr(f,y){var _=-1,A=f.length;for(y||(y=et(A));++_<A;)y[_]=f[_];return y}function Zo(f,y,_,A){var C=!_;_||(_={});for(var U=-1,ie=y.length;++U<ie;){var le=y[U],Oe=A?A(_[le],f[le],le,_,f):g;Oe===g&&(Oe=f[le]),C?qo(_,le,Oe):pu(_,le,Oe)}return _}function As(f,y){return function(_,A){var C=Ht(_)?as:Zp,U=y?y():{};return C(_,f,kt(A,2),U)}}function ja(f){return Jt(function(y,_){var A=-1,C=_.length,U=C>1?_[C-1]:g,ie=C>2?_[2]:g;for(U=f.length>3&&typeof U=="function"?(C--,U):g,ie&&mr(_[0],_[1],ie)&&(U=C<3?g:U,C=1),y=w(y);++A<C;){var le=_[A];le&&f(y,le,A,U)}return y})}function hd(f,y){return function(_,A){if(_==null)return _;if(!Yr(_))return f(_,A);for(var C=_.length,U=y?C:-1,ie=w(_);(y?U--:++U<C)&&A(ie[U],U,ie)!==!1;);return _}}function yd(f){return function(y,_,A){for(var C=-1,U=w(y),ie=A(y),le=ie.length;le--;){var Oe=ie[f?le:++C];if(_(U[Oe],Oe,U)===!1)break}return y}}function vd(f){return function(y){var _=jo(y=En(y))?Wr(y):g,A=_?_[0]:y.charAt(0),C=_?Xi(_,1).join(""):y.slice(1);return A[f]()+C}}function Yi(f){return function(y){return eu(Hf(Ys(y).replace(ts,"")),f,"")}}function lc(f){return function(){var y=arguments;switch(y.length){case 0:return new f;case 1:return new f(y[0]);case 2:return new f(y[0],y[1]);case 3:return new f(y[0],y[1],y[2]);case 4:return new f(y[0],y[1],y[2],y[3]);case 5:return new f(y[0],y[1],y[2],y[3],y[4]);case 6:return new f(y[0],y[1],y[2],y[3],y[4],y[5]);case 7:return new f(y[0],y[1],y[2],y[3],y[4],y[5],y[6])}var _=fu(f.prototype),A=f.apply(_,y);return xn(A)?A:_}}function gd(f){return function(y,_,A){var C=w(y);if(!Yr(y)){var U=kt(_,3);y=dr(y),_=function(le){return U(C[le],le,C)}}var ie=f(y,_,A);return ie>-1?C[U?y[ie]:ie]:g}}function bd(f){return wi(function(y){var _=y.length,A=_,C=po.prototype.thru;for(f&&y.reverse();A--;){var U=y[A];if(typeof U!="function")throw new ee(E);if(C&&!ie&&Ns(U)=="wrapper")var ie=new po([],!0)}for(A=ie?A:_;++A<_;){var le=Ns(U=y[A]),Oe=le=="wrapper"?vf(U):g;ie=Oe&&dc(Oe[0])&&Oe[1]==424&&!Oe[4].length&&Oe[9]==1?ie[Ns(Oe[0])].apply(ie,Oe[3]):U.length==1&&dc(U)?ie[le]():ie.thru(U)}return function(){var Le=arguments,Ce=Le[0];if(ie&&Le.length==1&&Ht(Ce))return ie.plant(Ce).value();for(var Ue=0,st=_?y[Ue].apply(this,Le):Ce;++Ue<_;)st=y[Ue].call(this,st);return st}})}function Pa(f,y,_,A,C,U,ie,le,Oe,Le){var Ce=y&N,Ue=1&y,st=2&y,vt=24&y,jt=512&y,Be=st?g:lc(f);return function He(){for(var Ft=arguments.length,nt=et(Ft),Dt=Ft;Dt--;)nt[Dt]=arguments[Dt];if(vt)var Mt=Ki(He),rn=Wl(nt,Mt);if(A&&(nt=Ln(nt,A,C,vt)),U&&(nt=Ps(nt,U,ie,vt)),Ft-=rn,vt&&Ft<Le){var bt=$r(nt,Mt);return ks(f,y,Pa,He.placeholder,_,nt,bt,le,Oe,Le-Ft)}var Pt=Ue?_:this,Un=st?Pt[f]:f;return Ft=nt.length,le?nt=ov(nt,le):jt&&Ft>1&&nt.reverse(),Ce&&Oe<Ft&&(nt.length=Oe),this&&this!==Gn&&this instanceof He&&(Un=Be||lc(Un)),Un.apply(Pt,nt)}}function md(f,y){return function(_,A){return function(C,U,ie,le){return dt(C,function(Oe,Le,Ce){U(le,ie(Oe),Le,Ce)}),le}(_,f,y(A),{})}}function fc(f,y){return function(_,A){var C;if(_===g&&A===g)return y;if(_!==g&&(C=_),A!==g){if(C===g)return A;typeof _=="string"||typeof A=="string"?(_=Ur(_),A=Ur(A)):(_=af(_),A=af(A)),C=f(_,A)}return C}}function ff(f){return wi(function(y){return y=sn(y,Fn(kt())),Jt(function(_){var A=this;return f(y,function(C){return Sn(C,A,_)})})})}function Ts(f,y){var _=(y=y===g?" ":Ur(y)).length;if(_<2)return _?ws(y,f):y;var A=ws(y,ls(f/Po(y)));return jo(y)?Xi(Wr(A),0,f).join(""):A.slice(0,f)}function Vi(f){return function(y,_,A){return A&&typeof A!="number"&&mr(y,_,A)&&(_=A=g),y=ji(y),_===g?(_=y,y=0):_=ji(_),function(C,U,ie,le){for(var Oe=-1,Le=pr(ls((U-C)/(ie||1)),0),Ce=et(Le);Le--;)Ce[le?Le:++Oe]=C,C+=ie;return Ce}(y,_,A=A===g?y<_?1:-1:ji(A),f)}}function Ms(f){return function(y,_){return typeof y=="string"&&typeof _=="string"||(y=oo(y),_=oo(_)),f(y,_)}}function ks(f,y,_,A,C,U,ie,le,Oe,Le){var Ce=8&y;y|=Ce?M:R,4&(y&=~(Ce?R:M))||(y&=-4);var Ue=[f,y,C,Ce?U:g,Ce?ie:g,Ce?g:U,Ce?g:ie,le,Oe,Le],st=_.apply(g,Ue);return dc(f)&&wf(st,Ue),st.placeholder=A,xf(st,f,y)}function Ds(f){var y=O[f];return function(_,A){if(_=oo(_),(A=A==null?0:Tr(Yt(A),292))&&Gp(_)){var C=(En(_)+"e").split("e");return+((C=(En(y(C[0]+"e"+(+C[1]+A)))+"e").split("e"))[0]+"e"+(+C[1]-A))}return y(_)}}var pf=Ea&&1/di(new Ea([,-0]))[1]==G?function(f){return new Ea(f)}:Tc;function df(f){return function(y){var _=Mr(y);return _==ue?Pr(y):_==je?ou(y):function(A,C){return sn(C,function(U){return[U,A[U]]})}(y,f(y))}}function Oi(f,y,_,A,C,U,ie,le){var Oe=2&y;if(!Oe&&typeof f!="function")throw new ee(E);var Le=A?A.length:0;if(Le||(y&=-97,A=C=g),ie=ie===g?ie:pr(Yt(ie),0),le=le===g?le:Yt(le),Le-=C?C.length:0,y&R){var Ce=A,Ue=C;A=C=g}var st=Oe?g:vf(f),vt=[f,y,_,A,C,Ce,Ue,U,ie,le];if(st&&function(Be,He){var Ft=Be[1],nt=He[1],Dt=Ft|nt,Mt=Dt<131,rn=nt==N&&Ft==8||nt==N&&Ft==L&&Be[7].length<=He[8]||nt==384&&He[7].length<=He[8]&&Ft==8;if(!Mt&&!rn)return Be;1&nt&&(Be[2]=He[2],Dt|=1&Ft?0:4);var bt=He[3];if(bt){var Pt=Be[3];Be[3]=Pt?Ln(Pt,bt,He[4]):bt,Be[4]=Pt?$r(Be[3],P):He[4]}(bt=He[5])&&(Pt=Be[5],Be[5]=Pt?Ps(Pt,bt,He[6]):bt,Be[6]=Pt?$r(Be[5],P):He[6]),(bt=He[7])&&(Be[7]=bt),nt&N&&(Be[8]=Be[8]==null?He[8]:Tr(Be[8],He[8])),Be[9]==null&&(Be[9]=He[9]),Be[0]=He[0],Be[1]=Dt}(vt,st),f=vt[0],y=vt[1],_=vt[2],A=vt[3],C=vt[4],!(le=vt[9]=vt[9]===g?Oe?0:f.length:pr(vt[9]-Le,0))&&24&y&&(y&=-25),y&&y!=1)jt=y==8||y==k?function(Be,He,Ft){var nt=lc(Be);return function Dt(){for(var Mt=arguments.length,rn=et(Mt),bt=Mt,Pt=Ki(Dt);bt--;)rn[bt]=arguments[bt];var Un=Mt<3&&rn[0]!==Pt&&rn[Mt-1]!==Pt?[]:$r(rn,Pt);return(Mt-=Un.length)<Ft?ks(Be,He,Pa,Dt.placeholder,g,rn,Un,g,g,Ft-Mt):Sn(this&&this!==Gn&&this instanceof Dt?nt:Be,this,rn)}}(f,y,le):y!=M&&y!=33||C.length?Pa.apply(g,vt):function(Be,He,Ft,nt){var Dt=1&He,Mt=lc(Be);return function rn(){for(var bt=-1,Pt=arguments.length,Un=-1,me=nt.length,ko=et(me+Pt),ar=this&&this!==Gn&&this instanceof rn?Mt:Be;++Un<me;)ko[Un]=nt[Un];for(;Pt--;)ko[Un++]=arguments[++bt];return Sn(ar,Dt?Ft:this,ko)}}(f,y,_,A);else var jt=function(Be,He,Ft){var nt=1&He,Dt=lc(Be);return function Mt(){return(this&&this!==Gn&&this instanceof Mt?Dt:Be).apply(nt?Ft:this,arguments)}}(f,y,_);return xf((st?ud:wf)(jt,vt),f,y)}function _d(f,y,_,A){return f===g||ro(f,$e[_])&&!tt.call(A,_)?y:f}function Od(f,y,_,A,C,U){return xn(f)&&xn(y)&&(U.set(y,f),Os(f,y,g,Od,U),U.delete(y)),f}function nv(f){return Si(f)?g:f}function wd(f,y,_,A,C,U){var ie=1&_,le=f.length,Oe=y.length;if(le!=Oe&&!(ie&&Oe>le))return!1;var Le=U.get(f),Ce=U.get(y);if(Le&&Ce)return Le==y&&Ce==f;var Ue=-1,st=!0,vt=2&_?new Wi:g;for(U.set(f,y),U.set(y,f);++Ue<le;){var jt=f[Ue],Be=y[Ue];if(A)var He=ie?A(Be,jt,Ue,y,f,U):A(jt,Be,Ue,f,y,U);if(He!==g){if(He)continue;st=!1;break}if(vt){if(!ec(y,function(Ft,nt){if(!Ho(vt,nt)&&(jt===Ft||C(jt,Ft,_,A,U)))return vt.push(nt)})){st=!1;break}}else if(jt!==Be&&!C(jt,Be,_,A,U)){st=!1;break}}return U.delete(f),U.delete(y),st}function wi(f){return Is(_f(f,g,Tf),f+"")}function hf(f){return Zl(f,dr,pc)}function yf(f){return Zl(f,wr,bf)}var vf=hs?function(f){return hs.get(f)}:Tc;function Ns(f){for(var y=f.name+"",_=lu[y],A=tt.call(lu,y)?_.length:0;A--;){var C=_[A],U=C.func;if(U==null||U==f)return C.name}return y}function Ki(f){return(tt.call(F,"placeholder")?F:f).placeholder}function kt(){var f=F.iteratee||wu;return f=f===wu?Ql:f,arguments.length?f(arguments[0],arguments[1]):f}function Cs(f,y){var _,A,C=f.__data__;return((A=typeof(_=y))=="string"||A=="number"||A=="symbol"||A=="boolean"?_!=="__proto__":_===null)?C[typeof y=="string"?"string":"hash"]:C.map}function gf(f){for(var y=dr(f),_=y.length;_--;){var A=y[_],C=f[A];y[_]=[A,C,bu(C)]}return y}function Aa(f,y){var _=function(A,C){return A==null?g:A[C]}(f,y);return yu(_)?_:g}var pc=Ul?function(f){return f==null?[]:(f=w(f),jr(Ul(f),function(y){return Ar.call(f,y)}))}:Mc,bf=Ul?function(f){for(var y=[];f;)ir(y,pc(f)),f=hi(f);return y}:Mc,Mr=$n;function xd(f,y,_){for(var A=-1,C=(y=Hi(y,f)).length,U=!1;++A<C;){var ie=To(y[A]);if(!(U=f!=null&&_(f,ie)))break;f=f[ie]}return U||++A!=C?U:!!(C=f==null?0:f.length)&&Qi(C)&&Bn(ie,C)&&(Ht(f)||Ji(f))}function Ed(f){return typeof f.constructor!="function"||hc(f)?{}:fu(hi(f))}function rv(f){return Ht(f)||Ji(f)||!!($i&&f&&f[$i])}function Bn(f,y){var _=typeof f;return!!(y=y==null?W:y)&&(_=="number"||_!="symbol"&&ut.test(f))&&f>-1&&f%1==0&&f<y}function mr(f,y,_){if(!xn(_))return!1;var A=typeof y;return!!(A=="number"?Yr(_)&&Bn(y,_.length):A=="string"&&y in _)&&ro(_[y],f)}function mf(f,y){if(Ht(f))return!1;var _=typeof f;return!(_!="number"&&_!="symbol"&&_!="boolean"&&f!=null&&!Vr(f))||Wt.test(f)||!hn.test(f)||y!=null&&f in w(y)}function dc(f){var y=Ns(f),_=F[y];if(typeof _!="function"||!(y in cn.prototype))return!1;if(f===_)return!0;var A=vf(_);return!!A&&f===A[0]}(cu&&Mr(new cu(new ArrayBuffer(1)))!=it||Vo&&Mr(new Vo)!=ue||Hl&&Mr(Hl.resolve())!=Ae||Ea&&Mr(new Ea)!=je||su&&Mr(new su)!=Te)&&(Mr=function(f){var y=$n(f),_=y==be?f.constructor:g,A=_?Zi(_):"";if(A)switch(A){case Ky:return it;case Xp:return ue;case qy:return Ae;case Zy:return je;case Yp:return Te}return y});var qi=ct?Ei:Zs;function hc(f){var y=f&&f.constructor;return f===(typeof y=="function"&&y.prototype||$e)}function bu(f){return f==f&&!xn(f)}function Rs(f,y){return function(_){return _!=null&&_[f]===y&&(y!==g||f in w(_))}}function _f(f,y,_){return y=pr(y===g?f.length-1:y,0),function(){for(var A=arguments,C=-1,U=pr(A.length-y,0),ie=et(U);++C<U;)ie[C]=A[y+C];C=-1;for(var le=et(y+1);++C<y;)le[C]=A[C];return le[y]=_(ie),Sn(f,this,le)}}function Of(f,y){return y.length<2?f:bi(f,vo(y,0,-1))}function ov(f,y){for(var _=f.length,A=Tr(y.length,_),C=Gr(f);A--;){var U=y[A];f[A]=Bn(U,_)?C[U]:g}return f}function ke(f,y){if((y!=="constructor"||typeof f[y]!="function")&&y!="__proto__")return f[y]}var wf=Ef(ud),mu=Up||function(f,y){return Gn.setTimeout(f,y)},Is=Ef(ev);function xf(f,y,_){var A=y+"";return Is(f,function(C,U){var ie=U.length;if(!ie)return C;var le=ie-1;return U[le]=(ie>1?"& ":"")+U[le],U=U.join(ie>2?", ":" "),C.replace(ne,`{
  59. /* [wrapped with `+U+`] */
  60. `)}(A,function(C,U){return Nr(te,function(ie){var le="_."+ie[0];U&ie[1]&&!Cr(C,le)&&C.push(le)}),C.sort()}(function(C){var U=C.match(de);return U?U[1].split(ae):[]}(A),_)))}function Ef(f){var y=0,_=0;return function(){var A=fs(),C=16-(A-_);if(_=A,C>0){if(++y>=800)return arguments[0]}else y=0;return f.apply(g,arguments)}}function yc(f,y){var _=-1,A=f.length,C=A-1;for(y=y===g?A:y;++_<y;){var U=tf(_,C),ie=f[U];f[U]=f[_],f[_]=ie}return f.length=y,f}var Sf=function(f){var y=_c(f,function(A){return _.size===500&&_.clear(),A}),_=y.cache;return y}(function(f){var y=[];return f.charCodeAt(0)===46&&y.push(""),f.replace(on,function(_,A,C,U){y.push(C?U.replace(Ke,"$1"):A||_)}),y});function To(f){if(typeof f=="string"||Vr(f))return f;var y=f+"";return y=="0"&&1/f==-1/0?"-0":y}function Zi(f){if(f!=null){try{return qt.call(f)}catch{}try{return f+""}catch{}}return""}function jf(f){if(f instanceof cn)return f.clone();var y=new po(f.__wrapped__,f.__chain__);return y.__actions__=Gr(f.__actions__),y.__index__=f.__index__,y.__values__=f.__values__,y}var Sd=Jt(function(f,y){return er(f)?gi(f,gr(y,1,er,!0)):[]}),jd=Jt(function(f,y){var _=Hr(y);return er(_)&&(_=g),er(f)?gi(f,gr(y,1,er,!0),kt(_,2)):[]}),Pd=Jt(function(f,y){var _=Hr(y);return er(_)&&(_=g),er(f)?gi(f,gr(y,1,er,!0),g,_):[]});function Pf(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var C=_==null?0:Yt(_);return C<0&&(C=pr(A+C,0)),Uo(f,kt(y,3),C)}function Af(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var C=A-1;return _!==g&&(C=Yt(_),C=_<0?pr(A+C,0):Tr(C,A-1)),Uo(f,kt(y,3),C,!0)}function Tf(f){return f!=null&&f.length?gr(f,1):[]}function Mf(f){return f&&f.length?f[0]:g}var Ad=Jt(function(f){var y=sn(f,js);return y.length&&y[0]===f[0]?ms(y):[]}),Td=Jt(function(f){var y=Hr(f),_=sn(f,js);return y===Hr(_)?y=g:_.pop(),_.length&&_[0]===f[0]?ms(_,kt(y,2)):[]}),Md=Jt(function(f){var y=Hr(f),_=sn(f,js);return(y=typeof y=="function"?y:g)&&_.pop(),_.length&&_[0]===f[0]?ms(_,g,y):[]});function Hr(f){var y=f==null?0:f.length;return y?f[y-1]:g}var Ls=Jt(kd);function kd(f,y){return f&&f.length&&y&&y.length?ef(f,y):f}var Mo=wi(function(f,y){var _=f==null?0:f.length,A=gs(f,y);return vu(f,sn(y,function(C){return Bn(C,_)?+C:C}).sort(dd)),A});function Jo(f){return f==null?f:Vy.call(f)}var iv=Jt(function(f){return Gi(gr(f,1,er,!0))}),no=Jt(function(f){var y=Hr(f);return er(y)&&(y=g),Gi(gr(f,1,er,!0),kt(y,2))}),Dd=Jt(function(f){var y=Hr(f);return y=typeof y=="function"?y:g,Gi(gr(f,1,er,!0),g,y)});function vc(f){if(!f||!f.length)return[];var y=0;return f=jr(f,function(_){if(er(_))return y=pr(_.length,y),!0}),Oa(y,function(_){return sn(f,Ir(_))})}function kf(f,y){if(!f||!f.length)return[];var _=vc(f);return y==null?_:sn(_,function(A){return Sn(y,g,A)})}var Nd=Jt(function(f,y){return er(f)?gi(f,y):[]}),Cd=Jt(function(f){return Ss(jr(f,er))}),Rd=Jt(function(f){var y=Hr(f);return er(y)&&(y=g),Ss(jr(f,er),kt(y,2))}),Id=Jt(function(f){var y=Hr(f);return y=typeof y=="function"?y:g,Ss(jr(f,er),g,y)}),Df=Jt(vc),gc=Jt(function(f){var y=f.length,_=y>1?f[y-1]:g;return _=typeof _=="function"?(f.pop(),_):g,kf(f,_)});function _r(f){var y=F(f);return y.__chain__=!0,y}function Bs(f,y){return y(f)}var av=wi(function(f){var y=f.length,_=y?f[0]:0,A=this.__wrapped__,C=function(U){return gs(U,f)};return!(y>1||this.__actions__.length)&&A instanceof cn&&Bn(_)?((A=A.slice(_,+_+(y?1:0))).__actions__.push({func:Bs,args:[C],thisArg:g}),new po(A,this.__chain__).thru(function(U){return y&&!U.length&&U.push(g),U})):this.thru(C)}),Nf=As(function(f,y,_){tt.call(f,_)?++f[_]:qo(f,_,1)}),Ld=gd(Pf),Xr=gd(Af);function Qn(f,y){return(Ht(f)?Nr:In)(f,kt(y,3))}function Bd(f,y){return(Ht(f)?us:Jp)(f,kt(y,3))}var go=As(function(f,y,_){tt.call(f,_)?f[_].push(y):qo(f,_,[y])}),Tt=Jt(function(f,y,_){var A=-1,C=typeof y=="function",U=Yr(f)?et(f.length):[];return In(f,function(ie){U[++A]=C?Sn(y,ie,_):du(ie,y,_)}),U}),Cf=As(function(f,y,_){qo(f,_,y)});function _u(f,y){return(Ht(f)?sn:yo)(f,kt(y,3))}var Rf=As(function(f,y,_){f[_?0:1].push(y)},function(){return[[],[]]}),zd=Jt(function(f,y){if(f==null)return[];var _=y.length;return _>1&&mr(f,y[0],y[1])?y=[]:_>2&&mr(y[0],y[1],y[2])&&(y=[y[0]]),id(f,gr(y,1),[])}),bc=Xy||function(){return Gn.Date.now()};function Fd(f,y,_){return y=_?g:y,y=f&&y==null?f.length:y,Oi(f,N,g,g,g,g,y)}function $d(f,y){var _;if(typeof y!="function")throw new ee(E);return f=Yt(f),function(){return--f>0&&(_=y.apply(this,arguments)),f<=1&&(y=g),_}}var mc=Jt(function(f,y,_){var A=1;if(_.length){var C=$r(_,Ki(mc));A|=M}return Oi(f,A,y,_,C)}),Wd=Jt(function(f,y,_){var A=3;if(_.length){var C=$r(_,Ki(Wd));A|=M}return Oi(y,A,f,_,C)});function zs(f,y,_){var A,C,U,ie,le,Oe,Le=0,Ce=!1,Ue=!1,st=!0;if(typeof f!="function")throw new ee(E);function vt(Dt){var Mt=A,rn=C;return A=C=g,Le=Dt,ie=f.apply(rn,Mt)}function jt(Dt){return Le=Dt,le=mu(He,y),Ce?vt(Dt):ie}function Be(Dt){var Mt=Dt-Oe;return Oe===g||Mt>=y||Mt<0||Ue&&Dt-Le>=U}function He(){var Dt=bc();if(Be(Dt))return Ft(Dt);le=mu(He,function(Mt){var rn=y-(Mt-Oe);return Ue?Tr(rn,U-(Mt-Le)):rn}(Dt))}function Ft(Dt){return le=g,st&&A?vt(Dt):(A=C=g,ie)}function nt(){var Dt=bc(),Mt=Be(Dt);if(A=arguments,C=this,Oe=Dt,Mt){if(le===g)return jt(Oe);if(Ue)return cf(le),le=mu(He,y),vt(Oe)}return le===g&&(le=mu(He,y)),ie}return y=oo(y)||0,xn(_)&&(Ce=!!_.leading,U=(Ue="maxWait"in _)?pr(oo(_.maxWait)||0,y):U,st="trailing"in _?!!_.trailing:st),nt.cancel=function(){le!==g&&cf(le),Le=0,A=Oe=C=le=g},nt.flush=function(){return le===g?ie:Ft(bc())},nt}var uv=Jt(function(f,y){return ql(f,1,y)}),cv=Jt(function(f,y,_){return ql(f,oo(y)||0,_)});function _c(f,y){if(typeof f!="function"||y!=null&&typeof y!="function")throw new ee(E);var _=function(){var A=arguments,C=y?y.apply(this,A):A[0],U=_.cache;if(U.has(C))return U.get(C);var ie=f.apply(this,A);return _.cache=U.set(C,ie)||U,ie};return _.cache=new(_c.Cache||Ko),_}function xi(f){if(typeof f!="function")throw new ee(E);return function(){var y=arguments;switch(y.length){case 0:return!f.call(this);case 1:return!f.call(this,y[0]);case 2:return!f.call(this,y[0],y[1]);case 3:return!f.call(this,y[0],y[1],y[2])}return!f.apply(this,y)}}_c.Cache=Ko;var Ud=pd(function(f,y){var _=(y=y.length==1&&Ht(y[0])?sn(y[0],Fn(kt())):sn(gr(y,1),Fn(kt()))).length;return Jt(function(A){for(var C=-1,U=Tr(A.length,_);++C<U;)A[C]=y[C].call(this,A[C]);return Sn(f,this,A)})}),It=Jt(function(f,y){var _=$r(y,Ki(It));return Oi(f,M,g,y,_)}),If=Jt(function(f,y){var _=$r(y,Ki(If));return Oi(f,R,g,y,_)}),Fs=wi(function(f,y){return Oi(f,L,g,g,g,y)});function ro(f,y){return f===y||f!=f&&y!=y}var sv=Ms(Hn),Gd=Ms(function(f,y){return f>=y}),Ji=Jl(function(){return arguments}())?Jl:function(f){return Wn(f)&&tt.call(f,"callee")&&!Ar.call(f,"callee")},Ht=et.isArray,lv=Zu?Fn(Zu):function(f){return Wn(f)&&$n(f)==We};function Yr(f){return f!=null&&Qi(f.length)&&!Ei(f)}function er(f){return Wn(f)&&Yr(f)}var bo=Yy||Zs,fv=is?Fn(is):function(f){return Wn(f)&&$n(f)==B};function Oc(f){if(!Wn(f))return!1;var y=$n(f);return y==V||y=="[object DOMException]"||typeof f.message=="string"&&typeof f.name=="string"&&!Si(f)}function Ei(f){if(!xn(f))return!1;var y=$n(f);return y==Y||y==q||y=="[object AsyncFunction]"||y=="[object Proxy]"}function Hd(f){return typeof f=="number"&&f==Yt(f)}function Qi(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=W}function xn(f){var y=typeof f;return f!=null&&(y=="object"||y=="function")}function Wn(f){return f!=null&&typeof f=="object"}var Or=Ju?Fn(Ju):function(f){return Wn(f)&&Mr(f)==ue};function wc(f){return typeof f=="number"||Wn(f)&&$n(f)==xe}function Si(f){if(!Wn(f)||$n(f)!=be)return!1;var y=hi(f);if(y===null)return!0;var _=tt.call(y,"constructor")&&y.constructor;return typeof _=="function"&&_ instanceof _&&qt.call(_)==eo}var Lf=Qa?Fn(Qa):function(f){return Wn(f)&&$n(f)==Fe},Bf=zi?Fn(zi):function(f){return Wn(f)&&Mr(f)==je};function xc(f){return typeof f=="string"||!Ht(f)&&Wn(f)&&$n(f)==ve}function Vr(f){return typeof f=="symbol"||Wn(f)&&$n(f)==Pe}var Ta=xo?Fn(xo):function(f){return Wn(f)&&Qi(f.length)&&!!vn[$n(f)]},Xd=Ms(_i),$s=Ms(function(f,y){return f<=y});function Yd(f){if(!f)return[];if(Yr(f))return xc(f)?Wr(f):Gr(f);if(yi&&f[yi])return function(_){for(var A,C=[];!(A=_.next()).done;)C.push(A.value);return C}(f[yi]());var y=Mr(f);return(y==ue?Pr:y==je?di:Da)(f)}function ji(f){return f?(f=oo(f))===G||f===-1/0?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0}function Yt(f){var y=ji(f),_=y%1;return y==y?_?y-_:y:0}function Ec(f){return f?Ui(Yt(f),0,Q):0}function oo(f){if(typeof f=="number")return f;if(Vr(f))return X;if(xn(f)){var y=typeof f.valueOf=="function"?f.valueOf():f;f=xn(y)?y+"":y}if(typeof f!="string")return f===0?f:+f;f=tc(f);var _=yr.test(f);return _||Zn.test(f)?Wo(f.slice(2),_?2:8):or.test(f)?X:+f}function Ws(f){return Zo(f,wr(f))}function En(f){return f==null?"":Ur(f)}var Vd=ja(function(f,y){if(hc(y)||Yr(y))Zo(y,dr(y),f);else for(var _ in y)tt.call(y,_)&&pu(f,_,y[_])}),Ou=ja(function(f,y){Zo(y,wr(y),f)}),Us=ja(function(f,y,_,A){Zo(y,wr(y),f,A)}),Sc=ja(function(f,y,_,A){Zo(y,dr(y),f,A)}),Kd=wi(gs),jc=Jt(function(f,y){f=w(f);var _=-1,A=y.length,C=A>2?y[2]:g;for(C&&mr(y[0],y[1],C)&&(A=1);++_<A;)for(var U=y[_],ie=wr(U),le=-1,Oe=ie.length;++le<Oe;){var Le=ie[le],Ce=f[Le];(Ce===g||ro(Ce,$e[Le])&&!tt.call(f,Le))&&(f[Le]=U[Le])}return f}),zf=Jt(function(f){return f.push(g,Od),Sn(Gs,g,f)});function ea(f,y,_){var A=f==null?g:bi(f,y);return A===g?_:A}function Ma(f,y){return f!=null&&xd(f,y,td)}var Pc=md(function(f,y,_){y!=null&&typeof y.toString!="function"&&(y=fn.call(y)),f[y]=_},Yf(xr)),qd=md(function(f,y,_){y!=null&&typeof y.toString!="function"&&(y=fn.call(y)),tt.call(f,y)?f[y].push(_):f[y]=[_]},kt),Zd=Jt(du);function dr(f){return Yr(f)?Xl(f):mi(f)}function wr(f){return Yr(f)?Xl(f,!0):Jy(f)}var Jd=ja(function(f,y,_){Os(f,y,_)}),Gs=ja(function(f,y,_,A){Os(f,y,_,A)}),Qd=wi(function(f,y){var _={};if(f==null)return _;var A=!1;y=sn(y,function(U){return U=Hi(U,f),A||(A=U.length>1),U}),Zo(f,yf(f),_),A&&(_=to(_,7,nv));for(var C=y.length;C--;)Es(_,y[C]);return _}),eh=wi(function(f,y){return f==null?{}:function(_,A){return ad(_,A,function(C,U){return Ma(_,U)})}(f,y)});function ka(f,y){if(f==null)return{};var _=sn(yf(f),function(A){return[A]});return y=kt(y),ad(f,_,function(A,C){return y(A,C[0])})}var Hs=df(dr),Ff=df(wr);function Da(f){return f==null?[]:ru(f,dr(f))}var $f=Yi(function(f,y,_){return y=y.toLowerCase(),f+(_?Xs(y):y)});function Xs(f){return Vs(En(f).toLowerCase())}function Ys(f){return(f=En(f))&&f.replace(Ot,rc).replace($o,"")}var th=Yi(function(f,y,_){return f+(_?"-":"")+y.toLowerCase()}),Wf=Yi(function(f,y,_){return f+(_?" ":"")+y.toLowerCase()}),Uf=vd("toLowerCase"),Gf=Yi(function(f,y,_){return f+(_?"_":"")+y.toLowerCase()}),Ac=Yi(function(f,y,_){return f+(_?" ":"")+Vs(y)}),ta=Yi(function(f,y,_){return f+(_?" ":"")+y.toUpperCase()}),Vs=vd("toUpperCase");function Hf(f,y,_){return f=En(f),(y=_?g:y)===g?function(A){return Yu.test(A)}(f)?function(A){return A.match(Za)||[]}(f):function(A){return A.match(_e)||[]}(f):f.match(y)||[]}var Ks=Jt(function(f,y){try{return Sn(f,g,y)}catch(_){return Oc(_)?_:new en(_)}}),Xf=wi(function(f,y){return Nr(y,function(_){_=To(_),qo(f,_,mc(f[_],f))}),f});function Yf(f){return function(){return f}}var nh=bd(),Vf=bd(!0);function xr(f){return f}function wu(f){return Ql(typeof f=="function"?f:to(f,1))}var Kf=Jt(function(f,y){return function(_){return du(_,f,y)}}),qf=Jt(function(f,y){return function(_){return du(f,_,y)}});function qs(f,y,_){var A=dr(y),C=bs(y,A);_!=null||xn(y)&&(C.length||!A.length)||(_=y,y=f,f=this,C=bs(y,dr(y)));var U=!(xn(_)&&"chain"in _&&!_.chain),ie=Ei(f);return Nr(C,function(le){var Oe=y[le];f[le]=Oe,ie&&(f.prototype[le]=function(){var Le=this.__chain__;if(U||Le){var Ce=f(this.__wrapped__),Ue=Ce.__actions__=Gr(this.__actions__);return Ue.push({func:Oe,args:arguments,thisArg:f}),Ce.__chain__=Le,Ce}return Oe.apply(f,ir([this.value()],arguments))})}),f}function Tc(){}var rh=ff(sn),Zf=ff(cs),pv=ff(ec);function tr(f){return mf(f)?Ir(To(f)):function(y){return function(_){return bi(_,y)}}(f)}var Qo=Vi(),Jf=Vi(!0);function Mc(){return[]}function Zs(){return!1}var Qf=fc(function(f,y){return f+y},0),ep=Ds("ceil"),tp=fc(function(f,y){return f/y},1),dv=Ds("floor"),Pi,np=fc(function(f,y){return f*y},1),rp=Ds("round"),oh=fc(function(f,y){return f-y},0);return F.after=function(f,y){if(typeof y!="function")throw new ee(E);return f=Yt(f),function(){if(--f<1)return y.apply(this,arguments)}},F.ary=Fd,F.assign=Vd,F.assignIn=Ou,F.assignInWith=Us,F.assignWith=Sc,F.at=Kd,F.before=$d,F.bind=mc,F.bindAll=Xf,F.bindKey=Wd,F.castArray=function(){if(!arguments.length)return[];var f=arguments[0];return Ht(f)?f:[f]},F.chain=_r,F.chunk=function(f,y,_){y=(_?mr(f,y,_):y===g)?1:pr(Yt(y),0);var A=f==null?0:f.length;if(!A||y<1)return[];for(var C=0,U=0,ie=et(ls(A/y));C<A;)ie[U++]=vo(f,C,C+=y);return ie},F.compact=function(f){for(var y=-1,_=f==null?0:f.length,A=0,C=[];++y<_;){var U=f[y];U&&(C[A++]=U)}return C},F.concat=function(){var f=arguments.length;if(!f)return[];for(var y=et(f-1),_=arguments[0],A=f;A--;)y[A-1]=arguments[A];return ir(Ht(_)?Gr(_):[_],gr(y,1))},F.cond=function(f){var y=f==null?0:f.length,_=kt();return f=y?sn(f,function(A){if(typeof A[1]!="function")throw new ee(E);return[_(A[0]),A[1]]}):[],Jt(function(A){for(var C=-1;++C<y;){var U=f[C];if(Sn(U[0],this,A))return Sn(U[1],this,A)}})},F.conforms=function(f){return function(y){var _=dr(y);return function(A){return Kl(A,y,_)}}(to(f,1))},F.constant=Yf,F.countBy=Nf,F.create=function(f,y){var _=fu(f);return y==null?_:Vl(_,y)},F.curry=function f(y,_,A){var C=Oi(y,8,g,g,g,g,g,_=A?g:_);return C.placeholder=f.placeholder,C},F.curryRight=function f(y,_,A){var C=Oi(y,k,g,g,g,g,g,_=A?g:_);return C.placeholder=f.placeholder,C},F.debounce=zs,F.defaults=jc,F.defaultsDeep=zf,F.defer=uv,F.delay=cv,F.difference=Sd,F.differenceBy=jd,F.differenceWith=Pd,F.drop=function(f,y,_){var A=f==null?0:f.length;return A?vo(f,(y=_||y===g?1:Yt(y))<0?0:y,A):[]},F.dropRight=function(f,y,_){var A=f==null?0:f.length;return A?vo(f,0,(y=A-(y=_||y===g?1:Yt(y)))<0?0:y):[]},F.dropRightWhile=function(f,y){return f&&f.length?sc(f,kt(y,3),!0,!0):[]},F.dropWhile=function(f,y){return f&&f.length?sc(f,kt(y,3),!0):[]},F.fill=function(f,y,_,A){var C=f==null?0:f.length;return C?(_&&typeof _!="number"&&mr(f,y,_)&&(_=0,A=C),function(U,ie,le,Oe){var Le=U.length;for((le=Yt(le))<0&&(le=-le>Le?0:Le+le),(Oe=Oe===g||Oe>Le?Le:Yt(Oe))<0&&(Oe+=Le),Oe=le>Oe?0:Ec(Oe);le<Oe;)U[le++]=ie;return U}(f,y,_,A)):[]},F.filter=function(f,y){return(Ht(f)?jr:gn)(f,kt(y,3))},F.flatMap=function(f,y){return gr(_u(f,y),1)},F.flatMapDeep=function(f,y){return gr(_u(f,y),G)},F.flatMapDepth=function(f,y,_){return _=_===g?1:Yt(_),gr(_u(f,y),_)},F.flatten=Tf,F.flattenDeep=function(f){return f!=null&&f.length?gr(f,G):[]},F.flattenDepth=function(f,y){return f!=null&&f.length?gr(f,y=y===g?1:Yt(y)):[]},F.flip=function(f){return Oi(f,512)},F.flow=nh,F.flowRight=Vf,F.fromPairs=function(f){for(var y=-1,_=f==null?0:f.length,A={};++y<_;){var C=f[y];A[C[0]]=C[1]}return A},F.functions=function(f){return f==null?[]:bs(f,dr(f))},F.functionsIn=function(f){return f==null?[]:bs(f,wr(f))},F.groupBy=go,F.initial=function(f){return f!=null&&f.length?vo(f,0,-1):[]},F.intersection=Ad,F.intersectionBy=Td,F.intersectionWith=Md,F.invert=Pc,F.invertBy=qd,F.invokeMap=Tt,F.iteratee=wu,F.keyBy=Cf,F.keys=dr,F.keysIn=wr,F.map=_u,F.mapKeys=function(f,y){var _={};return y=kt(y,3),dt(f,function(A,C,U){qo(_,y(A,C,U),A)}),_},F.mapValues=function(f,y){var _={};return y=kt(y,3),dt(f,function(A,C,U){qo(_,C,y(A,C,U))}),_},F.matches=function(f){return nd(to(f,1))},F.matchesProperty=function(f,y){return rd(f,to(y,1))},F.memoize=_c,F.merge=Jd,F.mergeWith=Gs,F.method=Kf,F.methodOf=qf,F.mixin=qs,F.negate=xi,F.nthArg=function(f){return f=Yt(f),Jt(function(y){return od(y,f)})},F.omit=Qd,F.omitBy=function(f,y){return ka(f,xi(kt(y)))},F.once=function(f){return $d(2,f)},F.orderBy=function(f,y,_,A){return f==null?[]:(Ht(y)||(y=y==null?[]:[y]),Ht(_=A?g:_)||(_=_==null?[]:[_]),id(f,y,_))},F.over=rh,F.overArgs=Ud,F.overEvery=Zf,F.overSome=pv,F.partial=It,F.partialRight=If,F.partition=Rf,F.pick=eh,F.pickBy=ka,F.property=tr,F.propertyOf=function(f){return function(y){return f==null?g:bi(f,y)}},F.pull=Ls,F.pullAll=kd,F.pullAllBy=function(f,y,_){return f&&f.length&&y&&y.length?ef(f,y,kt(_,2)):f},F.pullAllWith=function(f,y,_){return f&&f.length&&y&&y.length?ef(f,y,g,_):f},F.pullAt=Mo,F.range=Qo,F.rangeRight=Jf,F.rearg=Fs,F.reject=function(f,y){return(Ht(f)?jr:gn)(f,xi(kt(y,3)))},F.remove=function(f,y){var _=[];if(!f||!f.length)return _;var A=-1,C=[],U=f.length;for(y=kt(y,3);++A<U;){var ie=f[A];y(ie,A,f)&&(_.push(ie),C.push(A))}return vu(f,C),_},F.rest=function(f,y){if(typeof f!="function")throw new ee(E);return Jt(f,y=y===g?y:Yt(y))},F.reverse=Jo,F.sampleSize=function(f,y,_){return y=(_?mr(f,y,_):y===g)?1:Yt(y),(Ht(f)?Kp:nf)(f,y)},F.set=function(f,y,_){return f==null?f:gu(f,y,_)},F.setWith=function(f,y,_,A){return A=typeof A=="function"?A:g,f==null?f:gu(f,y,_,A)},F.shuffle=function(f){return(Ht(f)?qp:tv)(f)},F.slice=function(f,y,_){var A=f==null?0:f.length;return A?(_&&typeof _!="number"&&mr(f,y,_)?(y=0,_=A):(y=y==null?0:Yt(y),_=_===g?A:Yt(_)),vo(f,y,_)):[]},F.sortBy=zd,F.sortedUniq=function(f){return f&&f.length?cd(f):[]},F.sortedUniqBy=function(f,y){return f&&f.length?cd(f,kt(y,2)):[]},F.split=function(f,y,_){return _&&typeof _!="number"&&mr(f,y,_)&&(y=_=g),(_=_===g?Q:_>>>0)?(f=En(f))&&(typeof y=="string"||y!=null&&!Lf(y))&&!(y=Ur(y))&&jo(f)?Xi(Wr(f),0,_):f.split(y,_):[]},F.spread=function(f,y){if(typeof f!="function")throw new ee(E);return y=y==null?0:pr(Yt(y),0),Jt(function(_){var A=_[y],C=Xi(_,0,y);return A&&ir(C,A),Sn(f,this,C)})},F.tail=function(f){var y=f==null?0:f.length;return y?vo(f,1,y):[]},F.take=function(f,y,_){return f&&f.length?vo(f,0,(y=_||y===g?1:Yt(y))<0?0:y):[]},F.takeRight=function(f,y,_){var A=f==null?0:f.length;return A?vo(f,(y=A-(y=_||y===g?1:Yt(y)))<0?0:y,A):[]},F.takeRightWhile=function(f,y){return f&&f.length?sc(f,kt(y,3),!1,!0):[]},F.takeWhile=function(f,y){return f&&f.length?sc(f,kt(y,3)):[]},F.tap=function(f,y){return y(f),f},F.throttle=function(f,y,_){var A=!0,C=!0;if(typeof f!="function")throw new ee(E);return xn(_)&&(A="leading"in _?!!_.leading:A,C="trailing"in _?!!_.trailing:C),zs(f,y,{leading:A,maxWait:y,trailing:C})},F.thru=Bs,F.toArray=Yd,F.toPairs=Hs,F.toPairsIn=Ff,F.toPath=function(f){return Ht(f)?sn(f,To):Vr(f)?[f]:Gr(Sf(En(f)))},F.toPlainObject=Ws,F.transform=function(f,y,_){var A=Ht(f),C=A||bo(f)||Ta(f);if(y=kt(y,4),_==null){var U=f&&f.constructor;_=C?A?new U:[]:xn(f)&&Ei(U)?fu(hi(f)):{}}return(C?Nr:dt)(f,function(ie,le,Oe){return y(_,ie,le,Oe)}),_},F.unary=function(f){return Fd(f,1)},F.union=iv,F.unionBy=no,F.unionWith=Dd,F.uniq=function(f){return f&&f.length?Gi(f):[]},F.uniqBy=function(f,y){return f&&f.length?Gi(f,kt(y,2)):[]},F.uniqWith=function(f,y){return y=typeof y=="function"?y:g,f&&f.length?Gi(f,g,y):[]},F.unset=function(f,y){return f==null||Es(f,y)},F.unzip=vc,F.unzipWith=kf,F.update=function(f,y,_){return f==null?f:sd(f,y,uf(_))},F.updateWith=function(f,y,_,A){return A=typeof A=="function"?A:g,f==null?f:sd(f,y,uf(_),A)},F.values=Da,F.valuesIn=function(f){return f==null?[]:ru(f,wr(f))},F.without=Nd,F.words=Hf,F.wrap=function(f,y){return It(uf(y),f)},F.xor=Cd,F.xorBy=Rd,F.xorWith=Id,F.zip=Df,F.zipObject=function(f,y){return fd(f||[],y||[],pu)},F.zipObjectDeep=function(f,y){return fd(f||[],y||[],gu)},F.zipWith=gc,F.entries=Hs,F.entriesIn=Ff,F.extend=Ou,F.extendWith=Us,qs(F,F),F.add=Qf,F.attempt=Ks,F.camelCase=$f,F.capitalize=Xs,F.ceil=ep,F.clamp=function(f,y,_){return _===g&&(_=y,y=g),_!==g&&(_=(_=oo(_))==_?_:0),y!==g&&(y=(y=oo(y))==y?y:0),Ui(oo(f),y,_)},F.clone=function(f){return to(f,4)},F.cloneDeep=function(f){return to(f,5)},F.cloneDeepWith=function(f,y){return to(f,5,y=typeof y=="function"?y:g)},F.cloneWith=function(f,y){return to(f,4,y=typeof y=="function"?y:g)},F.conformsTo=function(f,y){return y==null||Kl(f,y,dr(y))},F.deburr=Ys,F.defaultTo=function(f,y){return f==null||f!=f?y:f},F.divide=tp,F.endsWith=function(f,y,_){f=En(f),y=Ur(y);var A=f.length,C=_=_===g?A:Ui(Yt(_),0,A);return(_-=y.length)>=0&&f.slice(_,C)==y},F.eq=ro,F.escape=function(f){return(f=En(f))&&lt.test(f)?f.replace(gt,Vn):f},F.escapeRegExp=function(f){return(f=En(f))&&Nn.test(f)?f.replace(_n,"\\$&"):f},F.every=function(f,y,_){var A=Ht(f)?cs:Qp;return _&&mr(f,y,_)&&(y=g),A(f,kt(y,3))},F.find=Ld,F.findIndex=Pf,F.findKey=function(f,y){return Eo(f,kt(y,3),dt)},F.findLast=Xr,F.findLastIndex=Af,F.findLastKey=function(f,y){return Eo(f,kt(y,3),Tn)},F.floor=dv,F.forEach=Qn,F.forEachRight=Bd,F.forIn=function(f,y){return f==null?f:Zt(f,kt(y,3),wr)},F.forInRight=function(f,y){return f==null?f:Jn(f,kt(y,3),wr)},F.forOwn=function(f,y){return f&&dt(f,kt(y,3))},F.forOwnRight=function(f,y){return f&&Tn(f,kt(y,3))},F.get=ea,F.gt=sv,F.gte=Gd,F.has=function(f,y){return f!=null&&xd(f,y,ed)},F.hasIn=Ma,F.head=Mf,F.identity=xr,F.includes=function(f,y,_,A){f=Yr(f)?f:Da(f),_=_&&!A?Yt(_):0;var C=f.length;return _<0&&(_=pr(C+_,0)),xc(f)?_<=C&&f.indexOf(y,_)>-1:!!C&&Fi(f,y,_)>-1},F.indexOf=function(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var C=_==null?0:Yt(_);return C<0&&(C=pr(A+C,0)),Fi(f,y,C)},F.inRange=function(f,y,_){return y=ji(y),_===g?(_=y,y=0):_=ji(_),function(A,C,U){return A>=Tr(C,U)&&A<pr(C,U)}(f=oo(f),y,_)},F.invoke=Zd,F.isArguments=Ji,F.isArray=Ht,F.isArrayBuffer=lv,F.isArrayLike=Yr,F.isArrayLikeObject=er,F.isBoolean=function(f){return f===!0||f===!1||Wn(f)&&$n(f)==H},F.isBuffer=bo,F.isDate=fv,F.isElement=function(f){return Wn(f)&&f.nodeType===1&&!Si(f)},F.isEmpty=function(f){if(f==null)return!0;if(Yr(f)&&(Ht(f)||typeof f=="string"||typeof f.splice=="function"||bo(f)||Ta(f)||Ji(f)))return!f.length;var y=Mr(f);if(y==ue||y==je)return!f.size;if(hc(f))return!mi(f).length;for(var _ in f)if(tt.call(f,_))return!1;return!0},F.isEqual=function(f,y){return hu(f,y)},F.isEqualWith=function(f,y,_){var A=(_=typeof _=="function"?_:g)?_(f,y):g;return A===g?hu(f,y,g,_):!!A},F.isError=Oc,F.isFinite=function(f){return typeof f=="number"&&Gp(f)},F.isFunction=Ei,F.isInteger=Hd,F.isLength=Qi,F.isMap=Or,F.isMatch=function(f,y){return f===y||_s(f,y,gf(y))},F.isMatchWith=function(f,y,_){return _=typeof _=="function"?_:g,_s(f,y,gf(y),_)},F.isNaN=function(f){return wc(f)&&f!=+f},F.isNative=function(f){if(qi(f))throw new en("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return yu(f)},F.isNil=function(f){return f==null},F.isNull=function(f){return f===null},F.isNumber=wc,F.isObject=xn,F.isObjectLike=Wn,F.isPlainObject=Si,F.isRegExp=Lf,F.isSafeInteger=function(f){return Hd(f)&&f>=-9007199254740991&&f<=W},F.isSet=Bf,F.isString=xc,F.isSymbol=Vr,F.isTypedArray=Ta,F.isUndefined=function(f){return f===g},F.isWeakMap=function(f){return Wn(f)&&Mr(f)==Te},F.isWeakSet=function(f){return Wn(f)&&$n(f)=="[object WeakSet]"},F.join=function(f,y){return f==null?"":Gl.call(f,y)},F.kebabCase=th,F.last=Hr,F.lastIndexOf=function(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var C=A;return _!==g&&(C=(C=Yt(_))<0?pr(A+C,0):Tr(C,A-1)),y==y?function(U,ie,le){for(var Oe=le+1;Oe--;)if(U[Oe]===ie)return Oe;return Oe}(f,y,C):Uo(f,Go,C,!0)},F.lowerCase=Wf,F.lowerFirst=Uf,F.lt=Xd,F.lte=$s,F.max=function(f){return f&&f.length?Kn(f,xr,Hn):g},F.maxBy=function(f,y){return f&&f.length?Kn(f,kt(y,2),Hn):g},F.mean=function(f){return an(f,xr)},F.meanBy=function(f,y){return an(f,kt(y,2))},F.min=function(f){return f&&f.length?Kn(f,xr,_i):g},F.minBy=function(f,y){return f&&f.length?Kn(f,kt(y,2),_i):g},F.stubArray=Mc,F.stubFalse=Zs,F.stubObject=function(){return{}},F.stubString=function(){return""},F.stubTrue=function(){return!0},F.multiply=np,F.nth=function(f,y){return f&&f.length?od(f,Yt(y)):g},F.noConflict=function(){return Gn._===this&&(Gn._=Rn),this},F.noop=Tc,F.now=bc,F.pad=function(f,y,_){f=En(f);var A=(y=Yt(y))?Po(f):0;if(!y||A>=y)return f;var C=(y-A)/2;return Ts(uu(C),_)+f+Ts(ls(C),_)},F.padEnd=function(f,y,_){f=En(f);var A=(y=Yt(y))?Po(f):0;return y&&A<y?f+Ts(y-A,_):f},F.padStart=function(f,y,_){f=En(f);var A=(y=Yt(y))?Po(f):0;return y&&A<y?Ts(y-A,_)+f:f},F.parseInt=function(f,y,_){return _||y==null?y=0:y&&(y=+y),ps(En(f).replace(Bt,""),y||0)},F.random=function(f,y,_){if(_&&typeof _!="boolean"&&mr(f,y,_)&&(y=_=g),_===g&&(typeof y=="boolean"?(_=y,y=g):typeof f=="boolean"&&(_=f,f=g)),f===g&&y===g?(f=0,y=1):(f=ji(f),y===g?(y=f,f=0):y=ji(y)),f>y){var A=f;f=y,y=A}if(_||f%1||y%1){var C=ds();return Tr(f+C*(y-f+Bi("1e-"+((C+"").length-1))),y)}return tf(f,y)},F.reduce=function(f,y,_){var A=Ht(f)?eu:fr,C=arguments.length<3;return A(f,kt(y,4),_,C,In)},F.reduceRight=function(f,y,_){var A=Ht(f)?ss:fr,C=arguments.length<3;return A(f,kt(y,4),_,C,Jp)},F.repeat=function(f,y,_){return y=(_?mr(f,y,_):y===g)?1:Yt(y),ws(En(f),y)},F.replace=function(){var f=arguments,y=En(f[0]);return f.length<3?y:y.replace(f[1],f[2])},F.result=function(f,y,_){var A=-1,C=(y=Hi(y,f)).length;for(C||(C=1,f=g);++A<C;){var U=f==null?g:f[To(y[A])];U===g&&(A=C,U=_),f=Ei(U)?U.call(f):U}return f},F.round=rp,F.runInContext=we,F.sample=function(f){return(Ht(f)?Yl:Qy)(f)},F.size=function(f){if(f==null)return 0;if(Yr(f))return xc(f)?Po(f):f.length;var y=Mr(f);return y==ue||y==je?f.size:mi(f).length},F.snakeCase=Gf,F.some=function(f,y,_){var A=Ht(f)?ec:rf;return _&&mr(f,y,_)&&(y=g),A(f,kt(y,3))},F.sortedIndex=function(f,y){return xs(f,y)},F.sortedIndexBy=function(f,y,_){return of(f,y,kt(_,2))},F.sortedIndexOf=function(f,y){var _=f==null?0:f.length;if(_){var A=xs(f,y);if(A<_&&ro(f[A],y))return A}return-1},F.sortedLastIndex=function(f,y){return xs(f,y,!0)},F.sortedLastIndexBy=function(f,y,_){return of(f,y,kt(_,2),!0)},F.sortedLastIndexOf=function(f,y){if(f!=null&&f.length){var _=xs(f,y,!0)-1;if(ro(f[_],y))return _}return-1},F.startCase=Ac,F.startsWith=function(f,y,_){return f=En(f),_=_==null?0:Ui(Yt(_),0,f.length),y=Ur(y),f.slice(_,_+y.length)==y},F.subtract=oh,F.sum=function(f){return f&&f.length?nu(f,xr):0},F.sumBy=function(f,y){return f&&f.length?nu(f,kt(y,2)):0},F.template=function(f,y,_){var A=F.templateSettings;_&&mr(f,y,_)&&(y=g),f=En(f),y=Us({},y,A,_d);var C,U,ie=Us({},y.imports,A.imports,_d),le=dr(ie),Oe=ru(ie,le),Le=0,Ce=y.interpolate||St,Ue="__p += '",st=T((y.escape||St).source+"|"+Ce.source+"|"+(Ce===$t?pt:St).source+"|"+(y.evaluate||St).source+"|$","g"),vt="//# sourceURL="+(tt.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ns+"]")+`
  61. `;f.replace(st,function(He,Ft,nt,Dt,Mt,rn){return nt||(nt=Dt),Ue+=f.slice(Le,rn).replace(zt,pi),Ft&&(C=!0,Ue+=`' +
  62. __e(`+Ft+`) +
  63. '`),Mt&&(U=!0,Ue+=`';
  64. `+Mt+`;
  65. __p += '`),nt&&(Ue+=`' +
  66. ((__t = (`+nt+`)) == null ? '' : __t) +
  67. '`),Le=rn+He.length,He}),Ue+=`';
  68. `;var jt=tt.call(y,"variable")&&y.variable;if(jt){if(Ve.test(jt))throw new en("Invalid `variable` option passed into `_.template`")}else Ue=`with (obj) {
  69. `+Ue+`
  70. }
  71. `;Ue=(U?Ue.replace(ze,""):Ue).replace(Et,"$1").replace(Rt,"$1;"),Ue="function("+(jt||"obj")+`) {
  72. `+(jt?"":`obj || (obj = {});
  73. `)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(U?`, __j = Array.prototype.join;
  74. function print() { __p += __j.call(arguments, '') }
  75. `:`;
  76. `)+Ue+`return __p
  77. }`;var Be=Ks(function(){return An(le,vt+"return "+Ue).apply(g,Oe)});if(Be.source=Ue,Oc(Be))throw Be;return Be},F.times=function(f,y){if((f=Yt(f))<1||f>W)return[];var _=Q,A=Tr(f,Q);y=kt(y),f-=Q;for(var C=Oa(A,y);++_<f;)y(_);return C},F.toFinite=ji,F.toInteger=Yt,F.toLength=Ec,F.toLower=function(f){return En(f).toLowerCase()},F.toNumber=oo,F.toSafeInteger=function(f){return f?Ui(Yt(f),-9007199254740991,W):f===0?f:0},F.toString=En,F.toUpper=function(f){return En(f).toUpperCase()},F.trim=function(f,y,_){if((f=En(f))&&(_||y===g))return tc(f);if(!f||!(y=Ur(y)))return f;var A=Wr(f),C=Wr(y);return Xi(A,Jr(A,C),nc(A,C)+1).join("")},F.trimEnd=function(f,y,_){if((f=En(f))&&(_||y===g))return f.slice(0,Lr(f)+1);if(!f||!(y=Ur(y)))return f;var A=Wr(f);return Xi(A,0,nc(A,Wr(y))+1).join("")},F.trimStart=function(f,y,_){if((f=En(f))&&(_||y===g))return f.replace(Bt,"");if(!f||!(y=Ur(y)))return f;var A=Wr(f);return Xi(A,Jr(A,Wr(y))).join("")},F.truncate=function(f,y){var _=30,A="...";if(xn(y)){var C="separator"in y?y.separator:C;_="length"in y?Yt(y.length):_,A="omission"in y?Ur(y.omission):A}var U=(f=En(f)).length;if(jo(f)){var ie=Wr(f);U=ie.length}if(_>=U)return f;var le=_-Po(A);if(le<1)return A;var Oe=ie?Xi(ie,0,le).join(""):f.slice(0,le);if(C===g)return Oe+A;if(ie&&(le+=Oe.length-le),Lf(C)){if(f.slice(le).search(C)){var Le,Ce=Oe;for(C.global||(C=T(C.source,En(Vt.exec(C))+"g")),C.lastIndex=0;Le=C.exec(Ce);)var Ue=Le.index;Oe=Oe.slice(0,Ue===g?le:Ue)}}else if(f.indexOf(Ur(C),le)!=le){var st=Oe.lastIndexOf(C);st>-1&&(Oe=Oe.slice(0,st))}return Oe+A},F.unescape=function(f){return(f=En(f))&&Me.test(f)?f.replace(At,Qr):f},F.uniqueId=function(f){var y=++On;return En(f)+y},F.upperCase=ta,F.upperFirst=Vs,F.each=Qn,F.eachRight=Bd,F.first=Mf,qs(F,(Pi={},dt(F,function(f,y){tt.call(F.prototype,y)||(Pi[y]=f)}),Pi),{chain:!1}),F.VERSION="4.17.21",Nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){F[f].placeholder=F}),Nr(["drop","take"],function(f,y){cn.prototype[f]=function(_){_=_===g?1:pr(Yt(_),0);var A=this.__filtered__&&!y?new cn(this):this.clone();return A.__filtered__?A.__takeCount__=Tr(_,A.__takeCount__):A.__views__.push({size:Tr(_,Q),type:f+(A.__dir__<0?"Right":"")}),A},cn.prototype[f+"Right"]=function(_){return this.reverse()[f](_).reverse()}}),Nr(["filter","map","takeWhile"],function(f,y){var _=y+1,A=_==1||_==3;cn.prototype[f]=function(C){var U=this.clone();return U.__iteratees__.push({iteratee:kt(C,3),type:_}),U.__filtered__=U.__filtered__||A,U}}),Nr(["head","last"],function(f,y){var _="take"+(y?"Right":"");cn.prototype[f]=function(){return this[_](1).value()[0]}}),Nr(["initial","tail"],function(f,y){var _="drop"+(y?"":"Right");cn.prototype[f]=function(){return this.__filtered__?new cn(this):this[_](1)}}),cn.prototype.compact=function(){return this.filter(xr)},cn.prototype.find=function(f){return this.filter(f).head()},cn.prototype.findLast=function(f){return this.reverse().find(f)},cn.prototype.invokeMap=Jt(function(f,y){return typeof f=="function"?new cn(this):this.map(function(_){return du(_,f,y)})}),cn.prototype.reject=function(f){return this.filter(xi(kt(f)))},cn.prototype.slice=function(f,y){f=Yt(f);var _=this;return _.__filtered__&&(f>0||y<0)?new cn(_):(f<0?_=_.takeRight(-f):f&&(_=_.drop(f)),y!==g&&(_=(y=Yt(y))<0?_.dropRight(-y):_.take(y-f)),_)},cn.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},cn.prototype.toArray=function(){return this.take(Q)},dt(cn.prototype,function(f,y){var _=/^(?:filter|find|map|reject)|While$/.test(y),A=/^(?:head|last)$/.test(y),C=F[A?"take"+(y=="last"?"Right":""):y],U=A||/^find/.test(y);C&&(F.prototype[y]=function(){var ie=this.__wrapped__,le=A?[1]:arguments,Oe=ie instanceof cn,Le=le[0],Ce=Oe||Ht(ie),Ue=function(Ft){var nt=C.apply(F,ir([Ft],le));return A&&st?nt[0]:nt};Ce&&_&&typeof Le=="function"&&Le.length!=1&&(Oe=Ce=!1);var st=this.__chain__,vt=!!this.__actions__.length,jt=U&&!st,Be=Oe&&!vt;if(!U&&Ce){ie=Be?ie:new cn(this);var He=f.apply(ie,le);return He.__actions__.push({func:Bs,args:[Ue],thisArg:g}),new po(He,st)}return jt&&Be?f.apply(this,le):(He=this.thru(Ue),jt?A?He.value()[0]:He.value():He)})}),Nr(["pop","push","shift","sort","splice","unshift"],function(f){var y=pe[f],_=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",A=/^(?:pop|shift)$/.test(f);F.prototype[f]=function(){var C=arguments;if(A&&!this.__chain__){var U=this.value();return y.apply(Ht(U)?U:[],C)}return this[_](function(ie){return y.apply(Ht(ie)?ie:[],C)})}}),dt(cn.prototype,function(f,y){var _=F[y];if(_){var A=_.name+"";tt.call(lu,A)||(lu[A]=[]),lu[A].push({name:y,func:_})}}),lu[Pa(g,2).name]=[{name:"wrapper",func:g}],cn.prototype.clone=function(){var f=new cn(this.__wrapped__);return f.__actions__=Gr(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Gr(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Gr(this.__views__),f},cn.prototype.reverse=function(){if(this.__filtered__){var f=new cn(this);f.__dir__=-1,f.__filtered__=!0}else(f=this.clone()).__dir__*=-1;return f},cn.prototype.value=function(){var f=this.__wrapped__.value(),y=this.__dir__,_=Ht(f),A=y<0,C=_?f.length:0,U=function(rn,bt,Pt){for(var Un=-1,me=Pt.length;++Un<me;){var ko=Pt[Un],ar=ko.size;switch(ko.type){case"drop":rn+=ar;break;case"dropRight":bt-=ar;break;case"take":bt=Tr(bt,rn+ar);break;case"takeRight":rn=pr(rn,bt-ar)}}return{start:rn,end:bt}}(0,C,this.__views__),ie=U.start,le=U.end,Oe=le-ie,Le=A?le:ie-1,Ce=this.__iteratees__,Ue=Ce.length,st=0,vt=Tr(Oe,this.__takeCount__);if(!_||!A&&C==Oe&&vt==Oe)return ld(f,this.__actions__);var jt=[];e:for(;Oe--&&st<vt;){for(var Be=-1,He=f[Le+=y];++Be<Ue;){var Ft=Ce[Be],nt=Ft.iteratee,Dt=Ft.type,Mt=nt(He);if(Dt==2)He=Mt;else if(!Mt){if(Dt==1)continue e;break e}}jt[st++]=He}return jt},F.prototype.at=av,F.prototype.chain=function(){return _r(this)},F.prototype.commit=function(){return new po(this.value(),this.__chain__)},F.prototype.next=function(){this.__values__===g&&(this.__values__=Yd(this.value()));var f=this.__index__>=this.__values__.length;return{done:f,value:f?g:this.__values__[this.__index__++]}},F.prototype.plant=function(f){for(var y,_=this;_ instanceof uc;){var A=jf(_);A.__index__=0,A.__values__=g,y?C.__wrapped__=A:y=A;var C=A;_=_.__wrapped__}return C.__wrapped__=f,y},F.prototype.reverse=function(){var f=this.__wrapped__;if(f instanceof cn){var y=f;return this.__actions__.length&&(y=new cn(this)),(y=y.reverse()).__actions__.push({func:Bs,args:[Jo],thisArg:g}),new po(y,this.__chain__)}return this.thru(Jo)},F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=function(){return ld(this.__wrapped__,this.__actions__)},F.prototype.first=F.prototype.head,yi&&(F.prototype[yi]=function(){return this}),F}();Gn._=Ao,(b=function(){return Ao}.call(l,o,l,h))===g||(h.exports=b)}).call(this)}).call(this,o(68),o(221)(u))},function(u,l,o){var d=o(7),h=o(34),b=o(33),g=o(87),E=o(62),j=o(174),P=o(28),k=d.TypeError,M=P("toPrimitive");u.exports=function(R,N){if(!b(R)||g(R))return R;var L,G=E(R,M);if(G){if(N===void 0&&(N="default"),L=h(G,R,N),!b(L)||g(L))return L;throw k("Can't convert object to primitive value")}return N===void 0&&(N="number"),j(R,N)}},function(u,l,o){var d=o(108);u.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(u,l,o){var d=o(36),h=o(18),b=o(91);u.exports=!d&&!h(function(){return Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a!=7})},function(u,l,o){var d=o(35),h=o(135),b=o(50),g=o(38);u.exports=function(E,j){for(var P=h(j),k=g.f,M=b.f,R=0;R<P.length;R++){var N=P[R];d(E,N)||k(E,N,M(j,N))}}},function(u,l,o){var d=o(46),h=o(15),b=o(74),g=o(112),E=o(32),j=h([].concat);u.exports=d("Reflect","ownKeys")||function(P){var k=b.f(E(P)),M=g.f;return M?j(k,M(P)):k}},function(u,l,o){var d=o(15),h=o(35),b=o(41),g=o(137).indexOf,E=o(72),j=d([].push);u.exports=function(P,k){var M,R=b(P),N=0,L=[];for(M in R)!h(E,M)&&h(R,M)&&j(L,M);for(;k.length>N;)h(R,M=k[N++])&&(~g(L,M)||j(L,M));return L}},function(u,l,o){var d=o(41),h=o(75),b=o(45),g=function(E){return function(j,P,k){var M,R=d(j),N=b(R),L=h(k,N);if(E&&P!=P){for(;N>L;)if((M=R[L++])!=M)return!0}else for(;N>L;L++)if((E||L in R)&&R[L]===P)return E||L||0;return!E&&-1}};u.exports={includes:g(!0),indexOf:g(!1)}},function(u,l,o){var d=o(46);u.exports=d("document","documentElement")},function(u,l,o){var d=o(51),h=o(41),b=o(74).f,g=o(114),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];u.exports.f=function(j){return E&&d(j)=="Window"?function(P){try{return b(P)}catch{return g(E)}}(j):b(h(j))}},function(u,l,o){var d=o(28);l.f=d},function(u,l,o){var d=o(177),h=o(35),b=o(140),g=o(38).f;u.exports=function(E){var j=d.Symbol||(d.Symbol={});h(j,E)||g(j,E,{value:b.f(E)})}},function(u,l,o){var d,h,b,g=o(18),E=o(30),j=o(60),P=o(101),k=o(42),M=o(28),R=o(71),N=M("iterator"),L=!1;[].keys&&("next"in(b=[].keys())?(h=P(P(b)))!==Object.prototype&&(d=h):L=!0),d==null||g(function(){var G={};return d[N].call(G)!==G})?d={}:R&&(d=j(d)),E(d[N])||k(d,N,function(){return this}),u.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:L}},function(u,l,o){var d=o(18);u.exports=!d(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},function(u,l,o){var d=o(16),h=o(15),b=o(72),g=o(33),E=o(35),j=o(38).f,P=o(74),k=o(139),M=o(183),R=o(90),N=o(185),L=!1,G=R("meta"),W=0,X=function(te){j(te,G,{value:{objectID:"O"+W++,weakData:{}}})},Q=u.exports={enable:function(){Q.enable=function(){},L=!0;var te=P.f,Z=h([].splice),J={};J[G]=1,te(J).length&&(P.f=function(H){for(var B=te(H),V=0,Y=B.length;V<Y;V++)if(B[V]===G){Z(B,V,1);break}return B},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:k.f}))},fastKey:function(te,Z){if(!g(te))return typeof te=="symbol"?te:(typeof te=="string"?"S":"P")+te;if(!E(te,G)){if(!M(te))return"F";if(!Z)return"E";X(te)}return te[G].objectID},getWeakData:function(te,Z){if(!E(te,G)){if(!M(te))return!0;if(!Z)return!1;X(te)}return te[G].weakData},onFreeze:function(te){return N&&L&&M(te)&&!E(te,G)&&X(te),te}};b[G]=!0},function(u,l,o){var d=o(28),h=o(80),b=d("iterator"),g=Array.prototype;u.exports=function(E){return E!==void 0&&(h.Array===E||g[b]===E)}},function(u,l,o){var d=o(7),h=o(34),b=o(56),g=o(32),E=o(88),j=o(118),P=d.TypeError;u.exports=function(k,M){var R=arguments.length<2?j(k):M;if(b(R))return g(h(R,k));throw P(E(k)+" is not iterable")}},function(u,l,o){var d=o(34),h=o(32),b=o(62);u.exports=function(g,E,j){var P,k;h(g);try{if(!(P=b(g,"return"))){if(E==="throw")throw j;return j}P=d(P,g)}catch(M){k=!0,P=M}if(E==="throw")throw j;if(k)throw P;return h(P),j}},function(u,l,o){var d=o(30),h=o(33),b=o(102);u.exports=function(g,E,j){var P,k;return b&&d(P=E.constructor)&&P!==j&&h(k=P.prototype)&&k!==j.prototype&&b(g,k),g}},function(u,l,o){var d=o(42);u.exports=function(h,b,g){for(var E in b)d(h,E,b[E],g);return h}},function(u,l,o){var d=o(46),h=o(38),b=o(28),g=o(36),E=b("species");u.exports=function(j){var P=d(j),k=h.f;g&&P&&!P[E]&&k(P,E,{configurable:!0,get:function(){return this}})}},function(u,l,o){var d=o(15),h=o(59),b=o(39),g=o(44),E=d("".charAt),j=d("".charCodeAt),P=d("".slice),k=function(M){return function(R,N){var L,G,W=b(g(R)),X=h(N),Q=W.length;return X<0||X>=Q?M?"":void 0:(L=j(W,X))<55296||L>56319||X+1===Q||(G=j(W,X+1))<56320||G>57343?M?E(W,X):L:M?P(W,X,X+2):G-56320+(L-55296<<10)+65536}};u.exports={codeAt:k(!1),charAt:k(!0)}},function(u,l){u.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(u,l,o){var d=o(91)("span").classList,h=d&&d.constructor&&d.constructor.prototype;u.exports=h===Object.prototype?void 0:h},function(u,l,o){var d=o(32);u.exports=function(){var h=d(this),b="";return h.global&&(b+="g"),h.ignoreCase&&(b+="i"),h.multiline&&(b+="m"),h.dotAll&&(b+="s"),h.unicode&&(b+="u"),h.sticky&&(b+="y"),b}},function(u,l,o){var d=o(18),h=o(7).RegExp,b=d(function(){var j=h("a","y");return j.lastIndex=2,j.exec("abcd")!=null}),g=b||d(function(){return!h("a","y").sticky}),E=b||d(function(){var j=h("^r","gy");return j.lastIndex=2,j.exec("str")!=null});u.exports={BROKEN_CARET:E,MISSED_STICKY:g,UNSUPPORTED_Y:b}},function(u,l,o){var d=o(16),h=o(79).find,b=o(100),g="find",E=!0;g in[]&&Array(1).find(function(){E=!1}),d({target:"Array",proto:!0,forced:E},{find:function(j){return h(this,j,arguments.length>1?arguments[1]:void 0)}}),b(g)},function(u,l,o){var d=o(16),h=o(137).includes,b=o(100);d({target:"Array",proto:!0},{includes:function(g){return h(this,g,arguments.length>1?arguments[1]:void 0)}}),b("includes")},function(u,l,o){var d=o(16),h=o(15),b=o(197),g=o(44),E=o(39),j=o(198),P=h("".indexOf);d({target:"String",proto:!0,forced:!j("includes")},{includes:function(k){return!!~P(E(g(this)),E(b(k)),arguments.length>1?arguments[1]:void 0)}})},function(u,l,o){var d=o(33),h=o(51),b=o(28)("match");u.exports=function(g){var E;return d(g)&&((E=g[b])!==void 0?!!E:h(g)=="RegExp")}},function(u,l,o){var d=o(15);u.exports=d(1 .valueOf)},function(u,l,o){var d=o(15),h=o(44),b=o(39),g=o(162),E=d("".replace),j="["+g+"]",P=RegExp("^"+j+j+"*"),k=RegExp(j+j+"*$"),M=function(R){return function(N){var L=b(h(N));return 1&R&&(L=E(L,P,"")),2&R&&(L=E(L,k,"")),L}};u.exports={start:M(1),end:M(2),trim:M(3)}},function(u,l){u.exports=`
  78. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(u,l){var o,d,h=u.exports={};function b(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function E(W){if(o===setTimeout)return setTimeout(W,0);if((o===b||!o)&&setTimeout)return o=setTimeout,setTimeout(W,0);try{return o(W,0)}catch{try{return o.call(null,W,0)}catch{return o.call(this,W,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:b}catch{o=b}try{d=typeof clearTimeout=="function"?clearTimeout:g}catch{d=g}})();var j,P=[],k=!1,M=-1;function R(){k&&j&&(k=!1,j.length?P=j.concat(P):M=-1,P.length&&N())}function N(){if(!k){var W=E(R);k=!0;for(var X=P.length;X;){for(j=P,P=[];++M<X;)j&&j[M].run();M=-1,X=P.length}j=null,k=!1,function(Q){if(d===clearTimeout)return clearTimeout(Q);if((d===g||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(Q);try{d(Q)}catch{try{return d.call(null,Q)}catch{return d.call(this,Q)}}}(W)}}function L(W,X){this.fun=W,this.array=X}function G(){}h.nextTick=function(W){var X=new Array(arguments.length-1);if(arguments.length>1)for(var Q=1;Q<arguments.length;Q++)X[Q-1]=arguments[Q];P.push(new L(W,X)),P.length!==1||k||E(N)},L.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=G,h.addListener=G,h.once=G,h.off=G,h.removeListener=G,h.removeAllListeners=G,h.emit=G,h.prependListener=G,h.prependOnceListener=G,h.listeners=function(W){return[]},h.binding=function(W){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(W){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(u,l,o){var d=o(32),h=o(165),b=o(28)("species");u.exports=function(g,E){var j,P=d(g).constructor;return P===void 0||(j=d(P)[b])==null?E:h(j)}},function(u,l,o){var d=o(7),h=o(99),b=o(88),g=d.TypeError;u.exports=function(E){if(h(E))return E;throw g(b(E)+" is not a constructor")}},function(u,l,o){var d=o(16),h=o(161).trim;d({target:"String",proto:!0,forced:o(200)("trim")},{trim:function(){return h(this)}})},function(u,l,o){var d=o(34),h=o(123),b=o(32),g=o(94),E=o(39),j=o(44),P=o(62),k=o(124),M=o(125);h("match",function(R,N,L){return[function(G){var W=j(this),X=G==null?void 0:P(G,R);return X?d(X,G,W):new RegExp(G)[R](E(W))},function(G){var W=b(this),X=E(G),Q=L(N,W,X);if(Q.done)return Q.value;if(!W.global)return M(W,X);var te=W.unicode;W.lastIndex=0;for(var Z,J=[],H=0;(Z=M(W,X))!==null;){var B=E(Z[0]);J[H]=B,B===""&&(W.lastIndex=k(X,g(W.lastIndex),te)),H++}return H===0?null:J}]})},function(u,l,o){var d,h,b,g,E=o(7),j=o(76),P=o(64),k=o(30),M=o(35),R=o(18),N=o(138),L=o(98),G=o(91),W=o(169),X=o(128),Q=E.setImmediate,te=E.clearImmediate,Z=E.process,J=E.Dispatch,H=E.Function,B=E.MessageChannel,V=E.String,Y=0,q={},ue="onreadystatechange";try{d=E.location}catch{}var xe=function(je){if(M(q,je)){var ve=q[je];delete q[je],ve()}},be=function(je){return function(){xe(je)}},Ae=function(je){xe(je.data)},Fe=function(je){E.postMessage(V(je),d.protocol+"//"+d.host)};Q&&te||(Q=function(je){var ve=L(arguments,1);return q[++Y]=function(){j(k(je)?je:H(je),void 0,ve)},h(Y),Y},te=function(je){delete q[je]},X?h=function(je){Z.nextTick(be(je))}:J&&J.now?h=function(je){J.now(be(je))}:B&&!W?(g=(b=new B).port2,b.port1.onmessage=Ae,h=P(g.postMessage,g)):E.addEventListener&&k(E.postMessage)&&!E.importScripts&&d&&d.protocol!=="file:"&&!R(Fe)?(h=Fe,E.addEventListener("message",Ae,!1)):h=ue in G("script")?function(je){N.appendChild(G("script")).onreadystatechange=function(){N.removeChild(this),xe(je)}}:function(je){setTimeout(be(je),0)}),u.exports={set:Q,clear:te}},function(u,l,o){var d=o(55);u.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},function(u,l,o){var d=o(56),h=function(b){var g,E;this.promise=new b(function(j,P){if(g!==void 0||E!==void 0)throw TypeError("Bad Promise constructor");g=j,E=P}),this.resolve=d(g),this.reject=d(E)};u.exports.f=function(b){return new h(b)}},function(u,l,o){l.a=function(){return!1}},function(u,l,o){(function(d){o.d(l,"a",function(){return Z});var h=o(1);function b(B){throw new Error("[mobx-utils] "+B)}function g(B,V){V===void 0&&(V="Illegal state"),B||b(V)}var E=function(B){return B&&B!==Object.prototype&&Object.getOwnPropertyNames(B).concat(E(Object.getPrototypeOf(B))||[])},j=function(B){return function(V){var Y=E(V);return Y.filter(function(q,ue){return Y.indexOf(q)===ue})}(B).filter(function(V){return V!=="constructor"&&!~V.indexOf("__")})},P="pending",k="fulfilled",M="rejected";function R(B){switch(this.state){case P:return B.pending&&B.pending(this.value);case M:return B.rejected&&B.rejected(this.value);case k:return B.fulfilled?B.fulfilled(this.value):this.value}}function N(B,V){if(g(arguments.length<=2,"fromPromise expects up to two arguments"),g(typeof B=="function"||typeof B=="object"&&B&&typeof B.then=="function","Please pass a promise or function to fromPromise"),B.isPromiseBasedObservable===!0)return B;typeof B=="function"&&(B=new Promise(B));var Y=B;B.then(Object(h.k)("observableFromPromise-resolve",function(ue){Y.value=ue,Y.state=k}),Object(h.k)("observableFromPromise-reject",function(ue){Y.value=ue,Y.state=M})),Y.isPromiseBasedObservable=!0,Y.case=R;var q=V&&V.state===k?V.value:void 0;return Object(h.q)(Y,{value:q,state:P},{},{deep:!1}),Y}(function(B){B.reject=Object(h.k)("fromPromise.reject",function(V){var Y=B(Promise.reject(V));return Y.state=M,Y.value=V,Y}),B.resolve=Object(h.k)("fromPromise.resolve",function(V){V===void 0&&(V=void 0);var Y=B(Promise.resolve(V));return Y.state=k,Y.value=V,Y})})(N||(N={}));var L=function(B,V,Y,q){var ue,xe=arguments.length,be=xe<3?V:q===null?q=Object.getOwnPropertyDescriptor(V,Y):q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(B,V,Y,q);else for(var Ae=B.length-1;Ae>=0;Ae--)(ue=B[Ae])&&(be=(xe<3?ue(be):xe>3?ue(V,Y,be):ue(V,Y))||be);return xe>3&&be&&Object.defineProperty(V,Y,be),be};(function(){function B(V,Y){var q=this;Object(h.G)(function(){q.current=Y,q.subscription=V.subscribe(q)})}B.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},B.prototype.next=function(V){this.current=V},B.prototype.complete=function(){this.dispose()},B.prototype.error=function(V){this.current=V,this.dispose()},L([h.C.ref],B.prototype,"current",void 0),L([h.k.bound],B.prototype,"next",null),L([h.k.bound],B.prototype,"complete",null),L([h.k.bound],B.prototype,"error",null)})();var G=function(){return G=Object.assign||function(B){for(var V,Y=1,q=arguments.length;Y<q;Y++)for(var ue in V=arguments[Y])Object.prototype.hasOwnProperty.call(V,ue)&&(B[ue]=V[ue]);return B},G.apply(this,arguments)},W=function(B,V,Y,q){var ue,xe=arguments.length,be=xe<3?V:q===null?q=Object.getOwnPropertyDescriptor(V,Y):q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(B,V,Y,q);else for(var Ae=B.length-1;Ae>=0;Ae--)(ue=B[Ae])&&(be=(xe<3?ue(be):xe>3?ue(V,Y,be):ue(V,Y))||be);return xe>3&&be&&Object.defineProperty(V,Y,be),be},X=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function B(V){var Y=this;this.model=V,this.localValues=h.C.map({}),this.localComputedValues=h.C.map({}),this.isPropertyDirty=function(q){return Y.localValues.has(q)},g(Object(h.A)(V),"createViewModel expects an observable object"),j(V).forEach(function(q){if(q!==h.a&&q!=="__mobxDidRunLazyInitializers"){if(g(X.indexOf(q)===-1,"The propertyname "+q+" is reserved and cannot be used with viewModels"),Object(h.w)(V,q)){var ue=Object(h.h)(V,q).derivation;Y.localComputedValues.set(q,Object(h.m)(ue.bind(Y)))}var xe=Object.getOwnPropertyDescriptor(V,q),be=xe?{enumerable:xe.enumerable}:{};Object.defineProperty(Y,q,G(G({},be),{configurable:!0,get:function(){return Object(h.w)(V,q)?Y.localComputedValues.get(q).get():Y.isPropertyDirty(q)?Y.localValues.get(q):Y.model[q]},set:Object(h.k)(function(Ae){Ae!==Y.model[q]?Y.localValues.set(q,Ae):Y.localValues.delete(q)})}))}})}Object.defineProperty(B.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),B.prototype.submit=function(){var V=this;Object(h.B)(this.localValues).forEach(function(Y){var q=V.localValues.get(Y),ue=V.model[Y];Object(h.y)(ue)?ue.replace(q):Object(h.z)(ue)?(ue.clear(),ue.merge(q)):Object(h.v)(q)||(V.model[Y]=q)}),this.localValues.clear()},B.prototype.reset=function(){this.localValues.clear()},B.prototype.resetProperty=function(V){this.localValues.delete(V)},W([h.m],B.prototype,"isDirty",null),W([h.m],B.prototype,"changedValues",null),W([h.k.bound],B.prototype,"submit",null),W([h.k.bound],B.prototype,"reset",null),W([h.k.bound],B.prototype,"resetProperty",null)})();function Q(B){if(!B)return"ROOT";for(var V=[];B.parent;)V.push(B.path),B=B.parent;return V.reverse().join("/")}function te(B){return Object(h.A)(B)||Object(h.y)(B)||Object(h.z)(B)}function Z(B,V){var Y=new WeakMap;function q(be){var Ae=Y.get(be.object);(function(Fe,je){switch(Fe.type){case"add":ue(Fe.newValue,je,Fe.name);break;case"update":xe(Fe.oldValue),ue(Fe.newValue,je,Fe.name||""+Fe.index);break;case"remove":case"delete":xe(Fe.oldValue);break;case"splice":Fe.removed.map(xe),Fe.added.forEach(function(Te,We){return ue(Te,je,""+(Fe.index+We))});for(var ve=Fe.index+Fe.addedCount;ve<Fe.object.length;ve++)if(te(Fe.object[ve])){var Pe=Y.get(Fe.object[ve]);Pe&&(Pe.path=""+ve)}}})(be,Ae),V(be,Q(Ae),B)}function ue(be,Ae,Fe){if(te(be)){var je=Y.get(be);if(je){if(je.parent!==Ae||je.path!==Fe)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+Q(Ae)+"/"+Fe+"', but it already exists at '"+Q(je.parent)+"/"+je.path+"'")}else{var ve={parent:Ae,path:Fe,dispose:Object(h.D)(be,q)};Y.set(be,ve),Object(h.p)(be).forEach(function(Pe){var Te=Pe[0];return ue(Pe[1],ve,Te)})}}}function xe(be){if(te(be)){var Ae=Y.get(be);if(!Ae)return;Y.delete(be),Ae.dispose(),Object(h.L)(be).forEach(xe)}}return ue(B,void 0,""),function(){xe(B)}}var J,H=(J=function(B,V){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,q){Y.__proto__=q}||function(Y,q){for(var ue in q)q.hasOwnProperty(ue)&&(Y[ue]=q[ue])},J(B,V)},function(B,V){function Y(){this.constructor=B}J(B,V),B.prototype=V===null?Object.create(V):(Y.prototype=V.prototype,new Y)});(function(B){function V(Y,q,ue){var xe=ue===void 0?{}:ue,be=xe.name,Ae=be===void 0?"ogm"+(1e3*Math.random()|0):be,Fe=xe.keyToName,je=Fe===void 0?function(Te){return""+Te}:Fe,ve=B.call(this)||this;ve._keyToName=je,ve._groupBy=q,ve._ogmInfoKey=Symbol("ogmInfo"+Ae),ve._base=Y;for(var Pe=0;Pe<Y.length;Pe++)ve._addItem(Y[Pe]);return ve._disposeBaseObserver=Object(h.D)(ve._base,function(Te){if(Te.type==="splice")Object(h.J)(function(){for(var We=0,it=Te.removed;We<it.length;We++){var xt=it[We];ve._removeItem(xt)}for(var Ye=0,Je=Te.added;Ye<Je.length;Ye++){var mt=Je[Ye];ve._addItem(mt)}});else{if(Te.type!=="update")throw new Error("illegal state");Object(h.J)(function(){ve._removeItem(Te.oldValue),ve._addItem(Te.newValue)})}}),ve}H(V,B),V.prototype.clear=function(){throw new Error("not supported")},V.prototype.delete=function(Y){throw new Error("not supported")},V.prototype.set=function(Y,q){throw new Error("not supported")},V.prototype.dispose=function(){this._disposeBaseObserver();for(var Y=0;Y<this._base.length;Y++){var q=this._base[Y];q[this._ogmInfoKey].reaction(),delete q[this._ogmInfoKey]}},V.prototype._getGroupArr=function(Y){var q=B.prototype.get.call(this,Y);return q===void 0&&(q=Object(h.C)([],{name:"GroupArray["+this._keyToName(Y)+"]",deep:!1}),B.prototype.set.call(this,Y,q)),q},V.prototype._removeFromGroupArr=function(Y,q){var ue=B.prototype.get.call(this,Y);ue.length===1?B.prototype.delete.call(this,Y):(q===ue.length-1||(ue[q]=ue[ue.length-1],ue[q][this._ogmInfoKey].groupArrIndex=q),ue.length--)},V.prototype._addItem=function(Y){var q=this,ue=this._groupBy(Y),xe=this._getGroupArr(ue),be={groupByValue:ue,groupArrIndex:xe.length,reaction:Object(h.F)(function(){return q._groupBy(Y)},function(Ae,Fe){var je=Y[q._ogmInfoKey];q._removeFromGroupArr(je.groupByValue,je.groupArrIndex);var ve=q._getGroupArr(Ae),Pe=ve.length;ve.push(Y),je.groupByValue=Ae,je.groupArrIndex=Pe})};Object.defineProperty(Y,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:be}),xe.push(Y)},V.prototype._removeItem=function(Y){var q=Y[this._ogmInfoKey];this._removeFromGroupArr(q.groupByValue,q.groupArrIndex),q.reaction(),delete Y[this._ogmInfoKey]}})(h.b),function(){function B(V,Y){this.base=V,this.args=Y,this.closestIdx=0,this.isDisposed=!1;for(var q=this.closest=this.root=V,ue=0;ue<this.args.length-1&&(q=q.get(Y[ue]));ue++)this.closest=q;this.closestIdx=ue}return B.prototype.exists=function(){this.assertNotDisposed();var V=this.args.length;return this.closestIdx>=V-1&&this.closest.has(this.args[V-1])},B.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])},B.prototype.set=function(V){this.assertNotDisposed();for(var Y=this.args.length,q=this.closest,ue=this.closestIdx;ue<Y-1;ue++){var xe=new Map;q.set(this.args[ue],xe),q=xe}this.closestIdx=Y-1,this.closest=q,q.set(this.args[Y-1],V)},B.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var V=this.args.length;this.closest.delete(this.args[V-1]);for(var Y=this.root,q=[Y],ue=0;ue<V-1;ue++)Y=Y.get(this.args[ue]),q.push(Y);for(ue=q.length-1;ue>0;ue--)q[ue].size===0&&q[ue-1].delete(this.args[ue-1]);this.isDisposed=!0},B.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},B}(),Promise.resolve(),typeof queueMicrotask!="undefined"||d!==void 0&&d.nextTick}).call(this,o(163))},function(u,l,o){var d;(function(h,b,g){if(h){for(var E,j={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"},P={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},k={"~":"`","!":"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"},R=1;R<20;++R)j[111+R]="f"+R;for(R=0;R<=9;++R)j[R+96]=R.toString();te.prototype.bind=function(Z,J,H){var B=this;return Z=Z instanceof Array?Z:[Z],B._bindMultiple.call(B,Z,J,H),B},te.prototype.unbind=function(Z,J){return this.bind.call(this,Z,function(){},J)},te.prototype.trigger=function(Z,J){var H=this;return H._directMap[Z+":"+J]&&H._directMap[Z+":"+J]({},Z),H},te.prototype.reset=function(){var Z=this;return Z._callbacks={},Z._directMap={},Z},te.prototype.stopCallback=function(Z,J){if((" "+J.className+" ").indexOf(" mousetrap ")>-1||Q(J,this.target))return!1;if("composedPath"in Z&&typeof Z.composedPath=="function"){var H=Z.composedPath()[0];H!==Z.target&&(J=H)}return J.tagName=="INPUT"||J.tagName=="SELECT"||J.tagName=="TEXTAREA"||J.isContentEditable},te.prototype.handleKey=function(){var Z=this;return Z._handleKey.apply(Z,arguments)},te.addKeycodes=function(Z){for(var J in Z)Z.hasOwnProperty(J)&&(j[J]=Z[J]);E=null},te.init=function(){var Z=te(b);for(var J in Z)J.charAt(0)!=="_"&&(te[J]=function(H){return function(){return Z[H].apply(Z,arguments)}}(J))},te.init(),h.Mousetrap=te,u.exports&&(u.exports=te),(d=function(){return te}.call(l,o,l,u))===void 0||(u.exports=d)}function N(Z,J,H){Z.addEventListener?Z.addEventListener(J,H,!1):Z.attachEvent("on"+J,H)}function L(Z){if(Z.type=="keypress"){var J=String.fromCharCode(Z.which);return Z.shiftKey||(J=J.toLowerCase()),J}return j[Z.which]?j[Z.which]:P[Z.which]?P[Z.which]:String.fromCharCode(Z.which).toLowerCase()}function G(Z){return Z=="shift"||Z=="ctrl"||Z=="alt"||Z=="meta"}function W(Z,J,H){return H||(H=function(){if(!E)for(var B in E={},j)B>95&&B<112||j.hasOwnProperty(B)&&(E[j[B]]=B);return E}()[Z]?"keydown":"keypress"),H=="keypress"&&J.length&&(H="keydown"),H}function X(Z,J){var H,B,V,Y=[];for(H=function(q){return q==="+"?["+"]:(q=q.replace(/\+{2}/g,"+plus")).split("+")}(Z),V=0;V<H.length;++V)B=H[V],M[B]&&(B=M[B]),J&&J!="keypress"&&k[B]&&(B=k[B],Y.push("shift")),G(B)&&Y.push(B);return{key:B,modifiers:Y,action:J=W(B,Y,J)}}function Q(Z,J){return Z!==null&&Z!==b&&(Z===J||Q(Z.parentNode,J))}function te(Z){var J=this;if(Z=Z||b,!(J instanceof te))return new te(Z);J.target=Z,J._callbacks={},J._directMap={};var H,B={},V=!1,Y=!1,q=!1;function ue(ve){ve=ve||{};var Pe,Te=!1;for(Pe in B)ve[Pe]?Te=!0:B[Pe]=0;Te||(q=!1)}function xe(ve,Pe,Te,We,it,xt){var Ye,Je,mt,se,ce=[],ge=Te.type;if(!J._callbacks[ve])return[];for(ge=="keyup"&&G(ve)&&(Pe=[ve]),Ye=0;Ye<J._callbacks[ve].length;++Ye)if(Je=J._callbacks[ve][Ye],(We||!Je.seq||B[Je.seq]==Je.level)&&ge==Je.action&&(ge=="keypress"&&!Te.metaKey&&!Te.ctrlKey||(mt=Pe,se=Je.modifiers,mt.sort().join(",")===se.sort().join(",")))){var De=!We&&Je.combo==it,Ge=We&&Je.seq==We&&Je.level==xt;(De||Ge)&&J._callbacks[ve].splice(Ye,1),ce.push(Je)}return ce}function be(ve,Pe,Te,We){J.stopCallback(Pe,Pe.target||Pe.srcElement,Te,We)||ve(Pe,Te)===!1&&(function(it){it.preventDefault?it.preventDefault():it.returnValue=!1}(Pe),function(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}(Pe))}function Ae(ve){typeof ve.which!="number"&&(ve.which=ve.keyCode);var Pe=L(ve);Pe&&(ve.type!="keyup"||V!==Pe?J.handleKey(Pe,function(Te){var We=[];return Te.shiftKey&&We.push("shift"),Te.altKey&&We.push("alt"),Te.ctrlKey&&We.push("ctrl"),Te.metaKey&&We.push("meta"),We}(ve),ve):V=!1)}function Fe(ve,Pe,Te,We){function it(mt){return function(){q=mt,++B[ve],clearTimeout(H),H=setTimeout(ue,1e3)}}function xt(mt){be(Te,mt,ve),We!=="keyup"&&(V=L(mt)),setTimeout(ue,10)}B[ve]=0;for(var Ye=0;Ye<Pe.length;++Ye){var Je=Ye+1===Pe.length?xt:it(We||X(Pe[Ye+1]).action);je(Pe[Ye],Je,We,ve,Ye)}}function je(ve,Pe,Te,We,it){J._directMap[ve+":"+Te]=Pe;var xt,Ye=(ve=ve.replace(/\s+/g," ")).split(" ");Ye.length>1?Fe(ve,Ye,Pe,Te):(xt=X(ve,Te),J._callbacks[xt.key]=J._callbacks[xt.key]||[],xe(xt.key,xt.modifiers,{type:xt.action},We,ve,it),J._callbacks[xt.key][We?"unshift":"push"]({callback:Pe,modifiers:xt.modifiers,action:xt.action,seq:We,level:it,combo:ve}))}J._handleKey=function(ve,Pe,Te){var We,it=xe(ve,Pe,Te),xt={},Ye=0,Je=!1;for(We=0;We<it.length;++We)it[We].seq&&(Ye=Math.max(Ye,it[We].level));for(We=0;We<it.length;++We)if(it[We].seq){if(it[We].level!=Ye)continue;Je=!0,xt[it[We].seq]=1,be(it[We].callback,Te,it[We].combo,it[We].seq)}else Je||be(it[We].callback,Te,it[We].combo);var mt=Te.type=="keypress"&&Y;Te.type!=q||G(ve)||mt||ue(xt),Y=Je&&Te.type=="keydown"},J._bindMultiple=function(ve,Pe,Te){for(var We=0;We<ve.length;++We)je(ve[We],Pe,Te)},N(Z,"keypress",Ae),N(Z,"keydown",Ae),N(Z,"keyup",Ae)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)},function(u,l,o){var d=o(7),h=o(34),b=o(30),g=o(33),E=d.TypeError;u.exports=function(j,P){var k,M;if(P==="string"&&b(k=j.toString)&&!g(M=h(k,j))||b(k=j.valueOf)&&!g(M=h(k,j))||P!=="string"&&b(k=j.toString)&&!g(M=h(k,j)))return M;throw E("Can't convert object to primitive value")}},function(u,l,o){var d=o(7),h=o(30),b=o(92),g=d.WeakMap;u.exports=h(g)&&/native code/.test(b(g))},function(u,l,o){var d=o(36),h=o(38),b=o(32),g=o(41),E=o(77);u.exports=d?Object.defineProperties:function(j,P){b(j);for(var k,M=g(P),R=E(P),N=R.length,L=0;N>L;)h.f(j,k=R[L++],M[k]);return j}},function(u,l,o){var d=o(7);u.exports=d},function(u,l,o){var d=o(7),h=o(96),b=o(99),g=o(33),E=o(28)("species"),j=d.Array;u.exports=function(P){var k;return h(P)&&(k=P.constructor,(b(k)&&(k===j||h(k.prototype))||g(k)&&(k=k[E])===null)&&(k=void 0)),k===void 0?j:k}},function(u,l,o){var d=o(113),h=o(97);u.exports=d?{}.toString:function(){return"[object "+h(this)+"]"}},function(u,l,o){var d=o(142).IteratorPrototype,h=o(60),b=o(69),g=o(78),E=o(80),j=function(){return this};u.exports=function(P,k,M,R){var N=k+" Iterator";return P.prototype=h(d,{next:b(+!R,M)}),g(P,N,!1,!0),E[N]=j,P}},function(u,l,o){var d=o(7),h=o(30),b=d.String,g=d.TypeError;u.exports=function(E){if(typeof E=="object"||h(E))return E;throw g("Can't set "+b(E)+" as a prototype")}},function(u,l,o){var d=o(16),h=o(7),b=o(15),g=o(95),E=o(42),j=o(144),P=o(117),k=o(119),M=o(30),R=o(33),N=o(18),L=o(120),G=o(78),W=o(148);u.exports=function(X,Q,te){var Z=X.indexOf("Map")!==-1,J=X.indexOf("Weak")!==-1,H=Z?"set":"add",B=h[X],V=B&&B.prototype,Y=B,q={},ue=function(ve){var Pe=b(V[ve]);E(V,ve,ve=="add"?function(Te){return Pe(this,Te===0?0:Te),this}:ve=="delete"?function(Te){return!(J&&!R(Te))&&Pe(this,Te===0?0:Te)}:ve=="get"?function(Te){return J&&!R(Te)?void 0:Pe(this,Te===0?0:Te)}:ve=="has"?function(Te){return!(J&&!R(Te))&&Pe(this,Te===0?0:Te)}:function(Te,We){return Pe(this,Te===0?0:Te,We),this})};if(g(X,!M(B)||!(J||V.forEach&&!N(function(){new B().entries().next()}))))Y=te.getConstructor(Q,X,Z,H),j.enable();else if(g(X,!0)){var xe=new Y,be=xe[H](J?{}:-0,1)!=xe,Ae=N(function(){xe.has(1)}),Fe=L(function(ve){new B(ve)}),je=!J&&N(function(){for(var ve=new B,Pe=5;Pe--;)ve[H](Pe,Pe);return!ve.has(-0)});Fe||((Y=Q(function(ve,Pe){k(ve,V);var Te=W(new B,ve,Y);return Pe!=null&&P(Pe,Te[H],{that:Te,AS_ENTRIES:Z}),Te})).prototype=V,V.constructor=Y),(Ae||je)&&(ue("delete"),ue("has"),Z&&ue("get")),(je||be)&&ue(H),J&&V.clear&&delete V.clear}return q[X]=Y,d({global:!0,forced:Y!=B},q),G(Y,X),J||te.setStrong(Y,X,Z),Y}},function(u,l,o){var d=o(18),h=o(33),b=o(51),g=o(184),E=Object.isExtensible,j=d(function(){});u.exports=j||g?function(P){return!!h(P)&&(!g||b(P)!="ArrayBuffer")&&(!E||E(P))}:E},function(u,l,o){var d=o(18);u.exports=d(function(){if(typeof ArrayBuffer=="function"){var h=new ArrayBuffer(8);Object.isExtensible(h)&&Object.defineProperty(h,"a",{value:8})}})},function(u,l,o){var d=o(18);u.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(u,l,o){var d=o(38).f,h=o(60),b=o(149),g=o(64),E=o(119),j=o(117),P=o(116),k=o(150),M=o(36),R=o(144).fastKey,N=o(58),L=N.set,G=N.getterFor;u.exports={getConstructor:function(W,X,Q,te){var Z=W(function(Y,q){E(Y,J),L(Y,{type:X,index:h(null),first:void 0,last:void 0,size:0}),M||(Y.size=0),q!=null&&j(q,Y[te],{that:Y,AS_ENTRIES:Q})}),J=Z.prototype,H=G(X),B=function(Y,q,ue){var xe,be,Ae=H(Y),Fe=V(Y,q);return Fe?Fe.value=ue:(Ae.last=Fe={index:be=R(q,!0),key:q,value:ue,previous:xe=Ae.last,next:void 0,removed:!1},Ae.first||(Ae.first=Fe),xe&&(xe.next=Fe),M?Ae.size++:Y.size++,be!=="F"&&(Ae.index[be]=Fe)),Y},V=function(Y,q){var ue,xe=H(Y),be=R(q);if(be!=="F")return xe.index[be];for(ue=xe.first;ue;ue=ue.next)if(ue.key==q)return ue};return b(J,{clear:function(){for(var Y=H(this),q=Y.index,ue=Y.first;ue;)ue.removed=!0,ue.previous&&(ue.previous=ue.previous.next=void 0),delete q[ue.index],ue=ue.next;Y.first=Y.last=void 0,M?Y.size=0:this.size=0},delete:function(Y){var q=this,ue=H(q),xe=V(q,Y);if(xe){var be=xe.next,Ae=xe.previous;delete ue.index[xe.index],xe.removed=!0,Ae&&(Ae.next=be),be&&(be.previous=Ae),ue.first==xe&&(ue.first=be),ue.last==xe&&(ue.last=Ae),M?ue.size--:q.size--}return!!xe},forEach:function(Y){for(var q,ue=H(this),xe=g(Y,arguments.length>1?arguments[1]:void 0);q=q?q.next:ue.first;)for(xe(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(Y){return!!V(this,Y)}}),b(J,Q?{get:function(Y){var q=V(this,Y);return q&&q.value},set:function(Y,q){return B(this,Y===0?0:Y,q)}}:{add:function(Y){return B(this,Y=Y===0?0:Y,Y)}}),M&&d(J,"size",{get:function(){return H(this).size}}),Z},setStrong:function(W,X,Q){var te=X+" Iterator",Z=G(X),J=G(te);P(W,X,function(H,B){L(this,{type:te,target:H,state:Z(H),kind:B,last:void 0})},function(){for(var H=J(this),B=H.kind,V=H.last;V&&V.removed;)V=V.previous;return H.target&&(H.last=V=V?V.next:H.state.first)?B=="keys"?{value:V.key,done:!1}:B=="values"?{value:V.value,done:!1}:{value:[V.key,V.value],done:!1}:(H.target=void 0,{value:void 0,done:!0})},Q?"entries":"values",!Q,!0),k(X)}}},function(u,l,o){var d=o(79).forEach,h=o(121)("forEach");u.exports=h?[].forEach:function(b){return d(this,b,arguments.length>1?arguments[1]:void 0)}},function(u,l,o){var d=o(7),h=o(64),b=o(34),g=o(40),E=o(189),j=o(145),P=o(99),k=o(45),M=o(63),R=o(146),N=o(118),L=d.Array;u.exports=function(G){var W=g(G),X=P(this),Q=arguments.length,te=Q>1?arguments[1]:void 0,Z=te!==void 0;Z&&(te=h(te,Q>2?arguments[2]:void 0));var J,H,B,V,Y,q,ue=N(W),xe=0;if(!ue||this==L&&j(ue))for(J=k(W),H=X?new this(J):L(J);J>xe;xe++)q=Z?te(W[xe],xe):W[xe],M(H,xe,q);else for(Y=(V=R(W,ue)).next,H=X?new this:[];!(B=b(Y,V)).done;xe++)q=Z?E(V,te,[B.value,xe],!0):B.value,M(H,xe,q);return H.length=xe,H}},function(u,l,o){var d=o(32),h=o(147);u.exports=function(b,g,E,j){try{return j?g(d(E)[0],E[1]):g(E)}catch(P){h(b,"throw",P)}}},function(u,l,o){var d=o(18),h=o(7).RegExp;u.exports=d(function(){var b=h(".","s");return!(b.dotAll&&b.exec(`
  79. `)&&b.flags==="s")})},function(u,l,o){var d=o(18),h=o(7).RegExp;u.exports=d(function(){var b=h("(?<a>b)","g");return b.exec("b").groups.a!=="b"||"b".replace(b,"$<a>c")!=="bc"})},function(u,l,o){var d=o(16),h=o(15),b=o(56),g=o(40),E=o(45),j=o(39),P=o(18),k=o(193),M=o(121),R=o(194),N=o(195),L=o(70),G=o(196),W=[],X=h(W.sort),Q=h(W.push),te=P(function(){W.sort(void 0)}),Z=P(function(){W.sort(null)}),J=M("sort"),H=!P(function(){if(L)return L<70;if(!(R&&R>3)){if(N)return!0;if(G)return G<603;var B,V,Y,q,ue="";for(B=65;B<76;B++){switch(V=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:Y=3;break;case 68:case 71:Y=4;break;default:Y=2}for(q=0;q<47;q++)W.push({k:V+q,v:Y})}for(W.sort(function(xe,be){return be.v-xe.v}),q=0;q<W.length;q++)V=W[q].k.charAt(0),ue.charAt(ue.length-1)!==V&&(ue+=V);return ue!=="DGBEFHACIJK"}});d({target:"Array",proto:!0,forced:te||!Z||!J||!H},{sort:function(B){B!==void 0&&b(B);var V=g(this);if(H)return B===void 0?X(V):X(V,B);var Y,q,ue=[],xe=E(V);for(q=0;q<xe;q++)q in V&&Q(ue,V[q]);for(k(ue,function(be){return function(Ae,Fe){return Fe===void 0?-1:Ae===void 0?1:be!==void 0?+be(Ae,Fe)||0:j(Ae)>j(Fe)?1:-1}}(B)),Y=ue.length,q=0;q<Y;)V[q]=ue[q++];for(;q<xe;)delete V[q++];return V}})},function(u,l,o){var d=o(114),h=Math.floor,b=function(j,P){var k=j.length,M=h(k/2);return k<8?g(j,P):E(j,b(d(j,0,M),P),b(d(j,M),P),P)},g=function(j,P){for(var k,M,R=j.length,N=1;N<R;){for(M=N,k=j[N];M&&P(j[M-1],k)>0;)j[M]=j[--M];M!==N++&&(j[M]=k)}return j},E=function(j,P,k,M){for(var R=P.length,N=k.length,L=0,G=0;L<R||G<N;)j[L+G]=L<R&&G<N?M(P[L],k[G])<=0?P[L++]:k[G++]:L<R?P[L++]:k[G++];return j};u.exports=b},function(u,l,o){var d=o(55).match(/firefox\/(\d+)/i);u.exports=!!d&&+d[1]},function(u,l,o){var d=o(55);u.exports=/MSIE|Trident/.test(d)},function(u,l,o){var d=o(55).match(/AppleWebKit\/(\d+)\./);u.exports=!!d&&+d[1]},function(u,l,o){var d=o(7),h=o(159),b=d.TypeError;u.exports=function(g){if(h(g))throw b("The method doesn't accept regular expressions");return g}},function(u,l,o){var d=o(28)("match");u.exports=function(h){var b=/./;try{"/./"[h](b)}catch{try{return b[d]=!1,"/./"[h](b)}catch{}}return!1}},function(u,l,o){o(16)({target:"Number",stat:!0},{isNaN:function(d){return d!=d}})},function(u,l,o){var d=o(73).PROPER,h=o(18),b=o(162);u.exports=function(g){return h(function(){return!!b[g]()||"\u200B\x85\u180E"[g]()!=="\u200B\x85\u180E"||d&&b[g].name!==g})}},function(u,l,o){var d=o(15),h=o(40),b=Math.floor,g=d("".charAt),E=d("".replace),j=d("".slice),P=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,k=/\$([$&'`]|\d{1,2})/g;u.exports=function(M,R,N,L,G,W){var X=N+M.length,Q=L.length,te=k;return G!==void 0&&(G=h(G),te=P),E(W,te,function(Z,J){var H;switch(g(J,0)){case"$":return"$";case"&":return M;case"`":return j(R,0,N);case"'":return j(R,X);case"<":H=G[j(J,1,-1)];break;default:var B=+J;if(B===0)return Z;if(B>Q){var V=b(B/10);return V===0?Z:V<=Q?L[V-1]===void 0?g(J,1):L[V-1]+g(J,1):Z}H=L[B-1]}return H===void 0?"":H})}},function(u,l,o){var d=o(36),h=o(15),b=o(34),g=o(18),E=o(77),j=o(112),P=o(84),k=o(40),M=o(85),R=Object.assign,N=Object.defineProperty,L=h([].concat);u.exports=!R||g(function(){if(d&&R({b:1},R(N({},"a",{enumerable:!0,get:function(){N(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var G={},W={},X=Symbol(),Q="abcdefghijklmnopqrst";return G[X]=7,Q.split("").forEach(function(te){W[te]=te}),R({},G)[X]!=7||E(R({},W)).join("")!=Q})?function(G,W){for(var X=k(G),Q=arguments.length,te=1,Z=j.f,J=P.f;Q>te;)for(var H,B=M(arguments[te++]),V=Z?L(E(B),Z(B)):E(B),Y=V.length,q=0;Y>q;)H=V[q++],d&&!b(J,B,H)||(X[H]=B[H]);return X}:R},function(u,l,o){var d=o(7),h=o(15),b=o(56),g=o(33),E=o(35),j=o(98),P=d.Function,k=h([].concat),M=h([].join),R={},N=function(L,G,W){if(!E(R,G)){for(var X=[],Q=0;Q<G;Q++)X[Q]="a["+Q+"]";R[G]=P("C,a","return new C("+M(X,",")+")")}return R[G](L,W)};u.exports=P.bind||function(L){var G=b(this),W=G.prototype,X=j(arguments,1),Q=function(){var te=k(X,j(arguments));return this instanceof Q?N(G,te.length,te):G.apply(L,te)};return g(W)&&(Q.prototype=W),Q}},function(u,l,o){var d=o(35);u.exports=function(h){return h!==void 0&&(d(h,"value")||d(h,"writable"))}},function(u,l,o){var d=o(15),h=o(44),b=o(39),g=/"/g,E=d("".replace);u.exports=function(j,P,k,M){var R=b(h(j)),N="<"+P;return k!==""&&(N+=" "+k+'="'+E(b(M),g,"&quot;")+'"'),N+">"+R+"</"+P+">"}},function(u,l,o){var d=o(18);u.exports=function(h){return d(function(){var b=""[h]('"');return b!==b.toLowerCase()||b.split('"').length>3})}},function(u,l,o){o(16)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(u,l,o){var d,h,b,g,E=o(16),j=o(71),P=o(7),k=o(46),M=o(34),R=o(209),N=o(42),L=o(149),G=o(102),W=o(78),X=o(150),Q=o(56),te=o(30),Z=o(33),J=o(119),H=o(92),B=o(117),V=o(120),Y=o(164),q=o(168).set,ue=o(210),xe=o(213),be=o(214),Ae=o(170),Fe=o(215),je=o(58),ve=o(95),Pe=o(28),Te=o(216),We=o(128),it=o(70),xt=Pe("species"),Ye="Promise",Je=je.getterFor(Ye),mt=je.set,se=je.getterFor(Ye),ce=R&&R.prototype,ge=R,De=ce,Ge=P.TypeError,ze=P.document,Et=P.process,Rt=Ae.f,At=Rt,gt=!!(ze&&ze.createEvent&&P.dispatchEvent),Me=te(P.PromiseRejectionEvent),lt="unhandledrejection",fe=!1,at=ve(Ye,function(){var ae=H(ge),_e=ae!==String(ge);if(!_e&&it===66||j&&!De.finally)return!0;if(it>=51&&/native code/.test(ae))return!1;var Ve=new ge(function(pt){pt(1)}),Ke=function(pt){pt(function(){},function(){})};return(Ve.constructor={})[xt]=Ke,!(fe=Ve.then(function(){})instanceof Ke)||!_e&&Te&&!Me}),$t=at||!V(function(ae){ge.all(ae).catch(function(){})}),hn=function(ae){var _e;return!(!Z(ae)||!te(_e=ae.then))&&_e},Wt=function(ae,_e){if(!ae.notified){ae.notified=!0;var Ve=ae.reactions;ue(function(){for(var Ke=ae.value,pt=ae.state==1,Vt=0;Ve.length>Vt;){var or,yr,Yn,Zn=Ve[Vt++],ut=pt?Zn.ok:Zn.fail,Ot=Zn.resolve,St=Zn.reject,zt=Zn.domain;try{ut?(pt||(ae.rejection===2&&Bt(ae),ae.rejection=1),ut===!0?or=Ke:(zt&&zt.enter(),or=ut(Ke),zt&&(zt.exit(),Yn=!0)),or===Zn.promise?St(Ge("Promise-chain cycle")):(yr=hn(or))?M(yr,or,Ot,St):Ot(or)):St(Ke)}catch(bn){zt&&!Yn&&zt.exit(),St(bn)}}ae.reactions=[],ae.notified=!1,_e&&!ae.rejection&&_n(ae)})}},on=function(ae,_e,Ve){var Ke,pt;gt?((Ke=ze.createEvent("Event")).promise=_e,Ke.reason=Ve,Ke.initEvent(ae,!1,!0),P.dispatchEvent(Ke)):Ke={promise:_e,reason:Ve},!Me&&(pt=P["on"+ae])?pt(Ke):ae===lt&&be("Unhandled promise rejection",Ve)},_n=function(ae){M(q,P,function(){var _e,Ve=ae.facade,Ke=ae.value;if(Nn(ae)&&(_e=Fe(function(){We?Et.emit("unhandledRejection",Ke,Ve):on(lt,Ve,Ke)}),ae.rejection=We||Nn(ae)?2:1,_e.error))throw _e.value})},Nn=function(ae){return ae.rejection!==1&&!ae.parent},Bt=function(ae){M(q,P,function(){var _e=ae.facade;We?Et.emit("rejectionHandled",_e):on("rejectionhandled",_e,ae.value)})},Xn=function(ae,_e,Ve){return function(Ke){ae(_e,Ke,Ve)}},ne=function(ae,_e,Ve){ae.done||(ae.done=!0,Ve&&(ae=Ve),ae.value=_e,ae.state=2,Wt(ae,!0))},de=function(ae,_e,Ve){if(!ae.done){ae.done=!0,Ve&&(ae=Ve);try{if(ae.facade===_e)throw Ge("Promise can't be resolved itself");var Ke=hn(_e);Ke?ue(function(){var pt={done:!1};try{M(Ke,_e,Xn(de,pt,ae),Xn(ne,pt,ae))}catch(Vt){ne(pt,Vt,ae)}}):(ae.value=_e,ae.state=1,Wt(ae,!1))}catch(pt){ne({done:!1},pt,ae)}}};if(at&&(De=(ge=function(ae){J(this,De),Q(ae),M(d,this);var _e=Je(this);try{ae(Xn(de,_e),Xn(ne,_e))}catch(Ve){ne(_e,Ve)}}).prototype,(d=function(ae){mt(this,{type:Ye,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=L(De,{then:function(ae,_e){var Ve=se(this),Ke=Ve.reactions,pt=Rt(Y(this,ge));return pt.ok=!te(ae)||ae,pt.fail=te(_e)&&_e,pt.domain=We?Et.domain:void 0,Ve.parent=!0,Ke[Ke.length]=pt,Ve.state!=0&&Wt(Ve,!1),pt.promise},catch:function(ae){return this.then(void 0,ae)}}),h=function(){var ae=new d,_e=Je(ae);this.promise=ae,this.resolve=Xn(de,_e),this.reject=Xn(ne,_e)},Ae.f=Rt=function(ae){return ae===ge||ae===b?new h(ae):At(ae)},!j&&te(R)&&ce!==Object.prototype)){g=ce.then,fe||(N(ce,"then",function(ae,_e){var Ve=this;return new ge(function(Ke,pt){M(g,Ve,Ke,pt)}).then(ae,_e)},{unsafe:!0}),N(ce,"catch",De.catch,{unsafe:!0}));try{delete ce.constructor}catch{}G&&G(ce,De)}E({global:!0,wrap:!0,forced:at},{Promise:ge}),W(ge,Ye,!1,!0),X(Ye),b=k(Ye),E({target:Ye,stat:!0,forced:at},{reject:function(ae){var _e=Rt(this);return M(_e.reject,void 0,ae),_e.promise}}),E({target:Ye,stat:!0,forced:j||at},{resolve:function(ae){return xe(j&&this===b?ge:this,ae)}}),E({target:Ye,stat:!0,forced:$t},{all:function(ae){var _e=this,Ve=Rt(_e),Ke=Ve.resolve,pt=Ve.reject,Vt=Fe(function(){var or=Q(_e.resolve),yr=[],Yn=0,Zn=1;B(ae,function(ut){var Ot=Yn++,St=!1;Zn++,M(or,_e,ut).then(function(zt){St||(St=!0,yr[Ot]=zt,--Zn||Ke(yr))},pt)}),--Zn||Ke(yr)});return Vt.error&&pt(Vt.value),Ve.promise},race:function(ae){var _e=this,Ve=Rt(_e),Ke=Ve.reject,pt=Fe(function(){var Vt=Q(_e.resolve);B(ae,function(or){M(Vt,_e,or).then(Ve.resolve,Ke)})});return pt.error&&Ke(pt.value),Ve.promise}})},function(u,l,o){var d=o(7);u.exports=d.Promise},function(u,l,o){var d,h,b,g,E,j,P,k,M=o(7),R=o(64),N=o(50).f,L=o(168).set,G=o(169),W=o(211),X=o(212),Q=o(128),te=M.MutationObserver||M.WebKitMutationObserver,Z=M.document,J=M.process,H=M.Promise,B=N(M,"queueMicrotask"),V=B&&B.value;V||(d=function(){var Y,q;for(Q&&(Y=J.domain)&&Y.exit();h;){q=h.fn,h=h.next;try{q()}catch(ue){throw h?g():b=void 0,ue}}b=void 0,Y&&Y.enter()},G||Q||X||!te||!Z?!W&&H&&H.resolve?((P=H.resolve(void 0)).constructor=H,k=R(P.then,P),g=function(){k(d)}):Q?g=function(){J.nextTick(d)}:(L=R(L,M),g=function(){L(d)}):(E=!0,j=Z.createTextNode(""),new te(d).observe(j,{characterData:!0}),g=function(){j.data=E=!E})),u.exports=V||function(Y){var q={fn:Y,next:void 0};b&&(b.next=q),h||(h=q,g()),b=q}},function(u,l,o){var d=o(55),h=o(7);u.exports=/ipad|iphone|ipod/i.test(d)&&h.Pebble!==void 0},function(u,l,o){var d=o(55);u.exports=/web0s(?!.*chrome)/i.test(d)},function(u,l,o){var d=o(32),h=o(33),b=o(170);u.exports=function(g,E){if(d(g),h(E)&&E.constructor===g)return E;var j=b.f(g);return(0,j.resolve)(E),j.promise}},function(u,l,o){var d=o(7);u.exports=function(h,b){var g=d.console;g&&g.error&&(arguments.length==1?g.error(h):g.error(h,b))}},function(u,l){u.exports=function(o){try{return{error:!1,value:o()}}catch(d){return{error:!0,value:d}}}},function(u,l){u.exports=typeof window=="object"},function(u,l,o){var d=o(40),h=o(75),b=o(45);u.exports=function(g){for(var E=d(this),j=b(E),P=arguments.length,k=h(P>1?arguments[1]:void 0,j),M=P>2?arguments[2]:void 0,R=M===void 0?j:h(M,j);R>k;)E[k++]=g;return E}},function(u,l,o){var d=o(16),h=o(7),b=o(15),g=o(59),E=o(160),j=o(219),P=o(18),k=h.RangeError,M=h.String,R=Math.floor,N=b(j),L=b("".slice),G=b(1 .toFixed),W=function(Z,J,H){return J===0?H:J%2==1?W(Z,J-1,H*Z):W(Z*Z,J/2,H)},X=function(Z,J,H){for(var B=-1,V=H;++B<6;)V+=J*Z[B],Z[B]=V%1e7,V=R(V/1e7)},Q=function(Z,J){for(var H=6,B=0;--H>=0;)B+=Z[H],Z[H]=R(B/J),B=B%J*1e7},te=function(Z){for(var J=6,H="";--J>=0;)if(H!==""||J===0||Z[J]!==0){var B=M(Z[J]);H=H===""?B:H+N("0",7-B.length)+B}return H};d({target:"Number",proto:!0,forced:P(function(){return G(8e-5,3)!=="0.000"||G(.9,0)!=="1"||G(1.255,2)!=="1.25"||G(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!P(function(){G({})})},{toFixed:function(Z){var J,H,B,V,Y=E(this),q=g(Z),ue=[0,0,0,0,0,0],xe="",be="0";if(q<0||q>20)throw k("Incorrect fraction digits");if(Y!=Y)return"NaN";if(Y<=-1e21||Y>=1e21)return M(Y);if(Y<0&&(xe="-",Y=-Y),Y>1e-21)if(H=(J=function(Ae){for(var Fe=0,je=Ae;je>=4096;)Fe+=12,je/=4096;for(;je>=2;)Fe+=1,je/=2;return Fe}(Y*W(2,69,1))-69)<0?Y*W(2,-J,1):Y/W(2,J,1),H*=4503599627370496,(J=52-J)>0){for(X(ue,0,H),B=q;B>=7;)X(ue,1e7,0),B-=7;for(X(ue,W(10,B,1),0),B=J-1;B>=23;)Q(ue,1<<23),B-=23;Q(ue,1<<B),X(ue,1,1),Q(ue,2),be=te(ue)}else X(ue,0,H),X(ue,1<<-J,0),be=te(ue)+N("0",q);return be=q>0?xe+((V=be.length)<=q?"0."+N("0",q-V)+be:L(be,0,V-q)+"."+L(be,V-q)):xe+be}})},function(u,l,o){var d=o(7),h=o(59),b=o(39),g=o(44),E=d.RangeError;u.exports=function(j){var P=b(g(this)),k="",M=h(j);if(M<0||M==1/0)throw E("Wrong number of repetitions");for(;M>0;(M>>>=1)&&(P+=P))1&M&&(k+=P);return k}},function(u,l,o){var d=o(36),h=o(15),b=o(77),g=o(41),E=h(o(84).f),j=h([].push),P=function(k){return function(M){for(var R,N=g(M),L=b(N),G=L.length,W=0,X=[];G>W;)R=L[W++],d&&!E(N,R)||j(X,k?[R,N[R]]:N[R]);return X}};u.exports={entries:P(!0),values:P(!1)}},function(u,l){u.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(u,l,o){o.r(l),o.d(l,"observer",function(){return Ni}),o.d(l,"LogicFlow",function(){return Hb}),o.d(l,"h",function(){return fe.g}),o.d(l,"LogicFlowUtil",function(){return d}),o.d(l,"BaseNode",function(){return Ba}),o.d(l,"RectNode",function(){return Ig}),o.d(l,"CircleNode",function(){return Fg}),o.d(l,"PolygonNode",function(){return Hg}),o.d(l,"DiamondNode",function(){return Kg}),o.d(l,"EllipseNode",function(){return eb}),o.d(l,"TextNode",function(){return rb}),o.d(l,"HtmlNode",function(){return ub}),o.d(l,"BaseEdge",function(){return vp}),o.d(l,"LineEdge",function(){return Ob}),o.d(l,"PolylineEdge",function(){return jb}),o.d(l,"BezierEdge",function(){return Mb}),o.d(l,"Arrow",function(){return CA}),o.d(l,"BaseEdgeModel",function(){return Cf}),o.d(l,"BezierEdgeModel",function(){return Wv}),o.d(l,"LineEdgeModel",function(){return Fs}),o.d(l,"PolylineEdgeModel",function(){return wc}),o.d(l,"BaseNodeModel",function(){return La}),o.d(l,"CircleNodeModel",function(){return Vv}),o.d(l,"DiamondNodeModel",function(){return Qv}),o.d(l,"EllipseNodeModel",function(){return rg}),o.d(l,"PolygonNodeModel",function(){return sg}),o.d(l,"RectNodeModel",function(){return dg}),o.d(l,"TextNodeModel",function(){return gg}),o.d(l,"HtmlNodeModel",function(){return _g}),o.d(l,"EditConfigModel",function(){return Zl}),o.d(l,"GraphModel",function(){return v0}),o.d(l,"SnaplineModel",function(){return e1}),o.d(l,"Keyboard",function(){return F1}),o.d(l,"get",function(){return F0}),o.d(l,"defaults",function(){return W0}),o.d(l,"ElementState",function(){return gn}),o.d(l,"ModelType",function(){return Zt}),o.d(l,"ElementType",function(){return Jn}),o.d(l,"EventType",function(){return dt}),o.d(l,"formateAnchorConnectValidateData",function(){return gc});var d={};o.r(d),o.d(d,"createUuid",function(){return qi}),o.d(d,"refreshGraphId",function(){return hc}),o.d(d,"StepDrag",function(){return Qo}),o.d(d,"setupEdgeModel",function(){return En}),o.d(d,"isBboxOverLapping",function(){return Vd}),o.d(d,"filterRepeatPoints",function(){return Ou}),o.d(d,"getSimplePolyline",function(){return Us}),o.d(d,"getExpandedBBox",function(){return Sc}),o.d(d,"pointDirection",function(){return Kd}),o.d(d,"getExpandedBBoxPoint",function(){return jc}),o.d(d,"mergeBBox",function(){return zf}),o.d(d,"getBBoxOfPoints",function(){return ea}),o.d(d,"getPointsFromBBox",function(){return Ma}),o.d(d,"isPointOutsideBBox",function(){return Pc}),o.d(d,"getBBoxXCrossPoints",function(){return qd}),o.d(d,"getBBoxYCrossPoints",function(){return Zd}),o.d(d,"getBBoxCrossPointsByPoint",function(){return dr}),o.d(d,"estimateDistance",function(){return wr}),o.d(d,"costByPoints",function(){return Jd}),o.d(d,"heuristicCostEstimate",function(){return Gs}),o.d(d,"rebuildPath",function(){return Qd}),o.d(d,"removeClosePointFromOpenList",function(){return eh}),o.d(d,"isSegmentsIntersected",function(){return ka}),o.d(d,"isSegmentCrossingBBox",function(){return Hs}),o.d(d,"getNextNeighborPoints",function(){return Ff}),o.d(d,"pathFinder",function(){return Da}),o.d(d,"getBoxByOriginNode",function(){return $f}),o.d(d,"pointFilter",function(){return Xs}),o.d(d,"getPolylinePoints",function(){return Ys}),o.d(d,"getLongestEdge",function(){return th}),o.d(d,"isSegmentsInNode",function(){return Wf}),o.d(d,"isSegmentsCrossNode",function(){return Uf}),o.d(d,"getCrossPointInRect",function(){return Gf}),o.d(d,"segmentDirection",function(){return Ac}),o.d(d,"points2PointsList",function(){return ta}),o.d(d,"getSimplePoints",function(){return Vs}),o.d(d,"getBytesLength",function(){return Ks}),o.d(d,"getTextWidth",function(){return Yf}),o.d(d,"getAppendAttributes",function(){return nh}),o.d(d,"getBezierControlPoints",function(){return Vf}),o.d(d,"getBezierPoints",function(){return xr}),o.d(d,"getEndTangent",function(){return Kf}),o.d(d,"getClosestPointOfPolyline",function(){return qf}),o.d(d,"pickEdgeConfig",function(){return qs}),o.d(d,"twoPointDistance",function(){return Tc}),o.d(d,"createEdgeGenerator",function(){return rh}),o.d(d,"snapToGrid",function(){return Vi}),o.d(d,"getGridOffset",function(){return Ms}),o.d(d,"sampleCubic",function(){return Bf}),o.d(d,"getThetaOfVector",function(){return Vr}),o.d(d,"degrees",function(){return Ta}),o.d(d,"Vector",function(){return U}),o.d(d,"Point",function(){return ie}),o.d(d,"Matrix",function(){return ra}),o.d(d,"RotateMatrix",function(){return Nc}),o.d(d,"ScaleMatrix",function(){return ap}),o.d(d,"TranslateMatrix",function(){return oa});var h=o(1),b=o(10);if(!b.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!h.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var g=o(43),E=Object(g.b)("observerBatching");function j(t){t()}var P=!1;function k(){return P}function M(t){return Object(h.t)(t)}var R,N=1e4,L=new Set;function G(){R===void 0&&(R=setTimeout(W,1e4))}function W(){R=void 0;var t=Date.now();L.forEach(function(e){var n=e.current;n&&t>=n.cleanAt&&(n.reaction.dispose(),e.current=null,L.delete(e))}),L.size>0&&G()}var X=!1,Q=[],te={};function Z(t){return"observer"+t}function J(t,e,n){e===void 0&&(e="observed"),n===void 0&&(n=te),k();var i,s=function(x){return function(){X?Q.push(x):x()}}((n.useForceUpdate||g.d)()),c=b.d.useRef(null);if(!c.current){var p=new h.c(Z(e),function(){v.mounted?s():(p.dispose(),c.current=null)}),v=function(x){return{cleanAt:Date.now()+N,reaction:x}}(p);c.current=v,i=c,L.add(i),G()}var m=c.current.reaction;return b.d.useDebugValue(m,M),b.d.useEffect(function(){var x;return x=c,L.delete(x),c.current?c.current.mounted=!0:(c.current={reaction:new h.c(Z(e),function(){s()}),cleanAt:1/0},s()),function(){c.current.reaction.dispose(),c.current=null}},[]),function(x){X=!0,Q=[];try{var S=x();X=!1;var D=Q.length>0?Q:void 0;return b.d.useLayoutEffect(function(){D&&D.forEach(function(I){return I()})},[D]),S}finally{X=!1}}(function(){var x,S;if(m.track(function(){try{x=t()}catch(D){S=D}}),S)throw S;return x})}var H=function(){return H=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},H.apply(this,arguments)};function B(t,e){var n,i,s,c=H({forwardRef:!1},e),p=t.displayName||t.name,v=function(m,x){return J(function(){return t(m,x)},p)};return v.displayName=p,n=c.forwardRef?Object(b.f)(Object(b.e)(v)):Object(b.f)(v),i=t,s=n,Object.keys(i).forEach(function(m){V[m]||Object.defineProperty(s,m,Object.getOwnPropertyDescriptor(i,m))}),n.displayName=p,n}var V={$$typeof:!0,render:!0,compare:!0,type:!0};function Y(t){var e=t.children,n=t.render,i=e||n;return typeof i!="function"?null:J(i)}function q(t,e,n,i,s){var c=e==="children"?"render":"children",p=typeof t[e]=="function",v=typeof t[c]=="function";return p&&v?new Error("MobX Observer: Do not use children and render in the same time in`"+n):p||v?null:new Error("Invalid prop `"+s+"` of type `"+typeof t[e]+"` supplied to `"+n+"`, expected `function`.")}Y.propTypes={children:q,render:q},Y.displayName="Observer";var ue;(ue=b.g)||(ue=j),Object(h.n)({reactionScheduler:ue}),Object(g.a)()[E]=!0;var xe=0,be={};function Ae(t){return be[t]||(be[t]=function(e){if(typeof Symbol=="function")return Symbol(e);var n="__$mobx-react "+e+" ("+xe+")";return xe++,n}(t)),be[t]}function Fe(t,e){if(je(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var s=0;s<n.length;s++)if(!Object.hasOwnProperty.call(e,n[s])||!je(t[n[s]],e[n[s]]))return!1;return!0}function je(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ve(t,e,n){Object.hasOwnProperty.call(t,e)?t[e]=n:Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})}var Pe=Ae("patchMixins"),Te=Ae("patchedDefinition");function We(t,e){for(var n=this,i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];e.locks++;try{var p;return t!=null&&(p=t.apply(this,s)),p}finally{e.locks--,e.locks===0&&e.methods.forEach(function(v){v.apply(n,s)})}}function it(t,e){return function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];We.call.apply(We,[this,t,e].concat(i))}}function xt(t,e,n){var i=function(v,m){var x=v[Pe]=v[Pe]||{},S=x[m]=x[m]||{};return S.locks=S.locks||0,S.methods=S.methods||[],S}(t,e);i.methods.indexOf(n)<0&&i.methods.push(n);var s=Object.getOwnPropertyDescriptor(t,e);if(!s||!s[Te]){var c=t[e],p=Ye(t,e,s?s.enumerable:void 0,i,c);Object.defineProperty(t,e,p)}}function Ye(t,e,n,i,s){var c,p=it(s,i);return(c={})[Te]=!0,c.get=function(){return p},c.set=function(v){if(this===t)p=it(v,i);else{var m=Ye(this,e,n,i,v);Object.defineProperty(this,e,m)}},c.configurable=!0,c.enumerable=n,c}var Je=h.a||"$mobx",mt=Ae("isMobXReactObserver"),se=Ae("isUnmounted"),ce=Ae("skipRender"),ge=Ae("isForcingUpdate");function De(t){var e=t.prototype;if(t[mt]?Ge(e):t[mt]=!0,e.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(t.__proto__!==b.b)if(e.shouldComponentUpdate){if(e.shouldComponentUpdate!==Et)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else e.shouldComponentUpdate=Et;Rt(e,"props"),Rt(e,"state");var n=e.render;return e.render=function(){return ze.call(this,n)},xt(e,"componentWillUnmount",function(){var i;(i=this.render[Je])===null||i===void 0||i.dispose(),this[se]=!0,!this.render[Je]&&Ge(this)}),t}function Ge(t){return t.displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>"}function ze(t){var e=this;ve(this,ce,!1),ve(this,ge,!1);var n=Ge(this),i=t.bind(this),s=!1,c=new h.c(n+".render()",function(){if(!s&&(s=!0,e[se]!==!0)){var v=!0;try{ve(e,ge,!0),e[ce]||b.a.prototype.forceUpdate.call(e),v=!1}finally{ve(e,ge,!1),v&&c.dispose()}}});function p(){s=!1;var v=void 0,m=void 0;if(c.track(function(){try{m=Object(h.d)(!1,i)}catch(x){v=x}}),v)throw v;return m}return c.reactComponent=this,p[Je]=c,this.render=p,p.call(this)}function Et(t,e){return this.state!==e||!Fe(this.props,t)}function Rt(t,e){var n=Ae("reactProp_"+e+"_valueHolder"),i=Ae("reactProp_"+e+"_atomHolder");function s(){return this[i]||ve(this,i,Object(h.o)("reactive "+e)),this[i]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var c=!1;return h.f&&h.e&&(c=Object(h.f)(!0)),s.call(this).reportObserved(),h.f&&h.e&&Object(h.e)(c),this[n]},set:function(c){this[ge]||Fe(this[n],c)?ve(this,n,c):(ve(this,n,c),ve(this,ce,!0),s.call(this).reportChanged(),ve(this,ce,!1))}})}var At=typeof Symbol=="function"&&Symbol.for,gt=At?Symbol.for("react.forward_ref"):typeof b.e=="function"&&Object(b.e)(function(t){return null}).$$typeof,Me=At?Symbol.for("react.memo"):typeof b.f=="function"&&Object(b.f)(function(t){return null}).$$typeof;function lt(t){if(t.isMobxInjector,Me&&t.$$typeof===Me)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(gt&&t.$$typeof===gt){var e=t.render;if(typeof e!="function")throw new Error("render property of ForwardRef was not a function");return Object(b.e)(function(){var n=arguments;return Object(b.c)(Y,null,function(){return e.apply(void 0,n)})})}return typeof t!="function"||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(b.a,t)?De(t):B(t)}if(!b.a)throw new Error("mobx-react requires React to be available");if(!h.C)throw new Error("mobx-react requires mobx to be available");var fe=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 at=function(t,e){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s},$t=function(){this.__data__=[],this.size=0},hn=function(t,e){return t===e||t!=t&&e!=e},Wt=function(t,e){for(var n=t.length;n--;)if(hn(t[n][0],e))return n;return-1},on=Array.prototype.splice,_n=function(t){var e=this.__data__,n=Wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():on.call(e,n,1),--this.size,!0)},Nn=function(t){var e=this.__data__,n=Wt(e,t);return n<0?void 0:e[n][1]},Bt=function(t){return Wt(this.__data__,t)>-1},Xn=function(t,e){var n=this.__data__,i=Wt(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function ne(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}ne.prototype.clear=$t,ne.prototype.delete=_n,ne.prototype.get=Nn,ne.prototype.has=Bt,ne.prototype.set=Xn;var de=ne,ae=function(){this.__data__=new de,this.size=0},_e=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ve=function(t){return this.__data__.get(t)},Ke=function(t){return this.__data__.has(t)},pt=o(31),Vt=pt.a.Symbol,or=Object.prototype,yr=or.hasOwnProperty,Yn=or.toString,Zn=Vt?Vt.toStringTag:void 0,ut=function(t){var e=yr.call(t,Zn),n=t[Zn];try{t[Zn]=void 0;var i=!0}catch{}var s=Yn.call(t);return i&&(e?t[Zn]=n:delete t[Zn]),s},Ot=Object.prototype.toString,St=function(t){return Ot.call(t)},zt=Vt?Vt.toStringTag:void 0,bn=function(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":zt&&zt in Object(t)?ut(t):St(t)},zn=function(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")},zo,wo=function(t){if(!zn(t))return!1;var e=bn(t);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"},Fo=pt.a["__core-js_shared__"],Li=(zo=/[^.]+$/.exec(Fo&&Fo.keys&&Fo.keys.IE_PROTO||""))?"Symbol(src)_1."+zo:"",Bl=function(t){return!!Li&&Li in t},zu=Function.prototype.toString,qr=function(t){if(t!=null){try{return zu.call(t)}catch{}try{return t+""}catch{}}return""},ba=/^\[object .+?Constructor\]$/,ft=Function.prototype,zl=Object.prototype,Fu=ft.toString,$u=zl.hasOwnProperty,Dr=RegExp("^"+Fu.call($u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fr=function(t){return!(!zn(t)||Bl(t))&&(wo(t)?Dr:ba).test(qr(t))},qa=function(t,e){return t==null?void 0:t[e]},lo=function(t,e){var n=qa(t,e);return Fr(n)?n:void 0},Zr=lo(pt.a,"Map"),fo=lo(Object,"create"),Wu=function(){this.__data__=fo?fo(null):{},this.size=0},Uu=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Qc=Object.prototype.hasOwnProperty,ma=function(t){var e=this.__data__;if(fo){var n=e[t];return n==="__lodash_hash_undefined__"?void 0:n}return Qc.call(e,t)?e[t]:void 0},es=Object.prototype.hasOwnProperty,Gu=function(t){var e=this.__data__;return fo?e[t]!==void 0:es.call(e,t)},Fl=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=fo&&e===void 0?"__lodash_hash_undefined__":e,this};function fi(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}fi.prototype.clear=Wu,fi.prototype.delete=Uu,fi.prototype.get=ma,fi.prototype.has=Gu,fi.prototype.set=Fl;var ts=fi,$o=function(){this.size=0,this.__data__={hash:new ts,map:new(Zr||de),string:new ts}},Hu=function(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null},Za=function(t,e){var n=t.__data__;return Hu(e)?n[typeof e=="string"?"string":"hash"]:n.map},Xu=function(t){var e=Za(this,t).delete(t);return this.size-=e?1:0,e},Yu=function(t){return Za(this,t).get(t)},$l=function(t){return Za(this,t).has(t)},ns=function(t,e){var n=Za(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function vn(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}vn.prototype.clear=$o,vn.prototype.delete=Xu,vn.prototype.get=Yu,vn.prototype.has=$l,vn.prototype.set=ns;var yn=vn,rs=function(t,e){var n=this.__data__;if(n instanceof de){var i=n.__data__;if(!Zr||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new yn(i)}return n.set(t,e),this.size=n.size,this};function Bi(t){var e=this.__data__=new de(t);this.size=e.size}Bi.prototype.clear=ae,Bi.prototype.delete=_e,Bi.prototype.get=Ve,Bi.prototype.has=Ke,Bi.prototype.set=rs;var Wo=Bi,Vu=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},os=function(t){return this.__data__.has(t)};function Gn(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new yn;++e<n;)this.add(t[e])}Gn.prototype.add=Gn.prototype.push=Vu,Gn.prototype.has=os;var Ku=Gn,_a=function(t,e){for(var n=-1,i=t==null?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1},qu=function(t,e){return t.has(e)},Ja=function(t,e,n,i,s,c){var p=1&n,v=t.length,m=e.length;if(v!=m&&!(p&&m>v))return!1;var x=c.get(t),S=c.get(e);if(x&&S)return x==e&&S==t;var D=-1,I=!0,K=2&n?new Ku:void 0;for(c.set(t,e),c.set(e,t);++D<v;){var re=t[D],oe=e[D];if(i)var he=p?i(oe,re,D,e,t,c):i(re,oe,D,t,e,c);if(he!==void 0){if(he)continue;I=!1;break}if(K){if(!_a(e,function(ye,Ee){if(!qu(K,Ee)&&(re===ye||s(re,ye,n,i,c)))return K.push(Ee)})){I=!1;break}}else if(re!==oe&&!s(re,oe,n,i,c)){I=!1;break}}return c.delete(t),c.delete(e),I},vr=pt.a.Uint8Array,Zu=function(t){var e=-1,n=Array(t.size);return t.forEach(function(i,s){n[++e]=[s,i]}),n},is=function(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n},Ju=Vt?Vt.prototype:void 0,Qa=Ju?Ju.valueOf:void 0,zi=function(t,e,n,i,s,c,p){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!c(new vr(t),new vr(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return hn(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var v=Zu;case"[object Set]":var m=1&i;if(v||(v=is),t.size!=e.size&&!m)return!1;var x=p.get(t);if(x)return x==e;i|=2,p.set(t,e);var S=Ja(v(t),v(e),i,s,c,p);return p.delete(t),S;case"[object Symbol]":if(Qa)return Qa.call(t)==Qa.call(e)}return!1},xo=function(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t},Sn=Array.isArray,as=function(t,e,n){var i=e(t);return Sn(t)?i:xo(i,n(t))},Nr=function(t,e){for(var n=-1,i=t==null?0:t.length,s=0,c=[];++n<i;){var p=t[n];e(p,n,t)&&(c[s++]=p)}return c},us=function(){return[]},cs=Object.prototype.propertyIsEnumerable,jr=Object.getOwnPropertySymbols,Cr=jr?function(t){return t==null?[]:(t=Object(t),Nr(jr(t),function(e){return cs.call(t,e)}))}:us,Qu=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i},sn=function(t){return t!=null&&typeof t=="object"},ir=function(t){return sn(t)&&bn(t)=="[object Arguments]"},eu=Object.prototype,ss=eu.hasOwnProperty,ec=eu.propertyIsEnumerable,tu=ir(function(){return arguments}())?ir:function(t){return sn(t)&&ss.call(t,"callee")&&!ec.call(t,"callee")},Eo=tu,Uo=o(48),Fi=/^(?:0|[1-9]\d*)$/,Rr=function(t,e){var n=typeof t;return!!(e=e==null?9007199254740991:e)&&(n=="number"||n!="symbol"&&Fi.test(t))&&t>-1&&t%1==0&&t<e},Go=function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991},an={};an["[object Float32Array]"]=an["[object Float64Array]"]=an["[object Int8Array]"]=an["[object Int16Array]"]=an["[object Int32Array]"]=an["[object Uint8Array]"]=an["[object Uint8ClampedArray]"]=an["[object Uint16Array]"]=an["[object Uint32Array]"]=!0,an["[object Arguments]"]=an["[object Array]"]=an["[object ArrayBuffer]"]=an["[object Boolean]"]=an["[object DataView]"]=an["[object Date]"]=an["[object Error]"]=an["[object Function]"]=an["[object Map]"]=an["[object Number]"]=an["[object Object]"]=an["[object RegExp]"]=an["[object Set]"]=an["[object String]"]=an["[object WeakMap]"]=!1;var Ir=function(t){return sn(t)&&Go(t.length)&&!!an[bn(t)]},So=function(t){return function(e){return t(e)}},fr=o(49),nu=fr.a&&fr.a.isTypedArray,Oa=nu?So(nu):Ir,tc=Object.prototype.hasOwnProperty,Fn=function(t,e){var n=Sn(t),i=!n&&Eo(t),s=!n&&!i&&Object(Uo.a)(t),c=!n&&!i&&!s&&Oa(t),p=n||i||s||c,v=p?Qu(t.length,String):[],m=v.length;for(var x in t)!e&&!tc.call(t,x)||p&&(x=="length"||s&&(x=="offset"||x=="parent")||c&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||Rr(x,m))||v.push(x);return v},ru=Object.prototype,Ho=function(t){var e=t&&t.constructor;return t===(typeof e=="function"&&e.prototype||ru)},Jr=function(t,e){return function(n){return t(e(n))}},nc=Jr(Object.keys,Object),Wl=Object.prototype.hasOwnProperty,rc=function(t){if(!Ho(t))return nc(t);var e=[];for(var n in Object(t))Wl.call(t,n)&&n!="constructor"&&e.push(n);return e},Vn=function(t){return t!=null&&Go(t.length)&&!wo(t)},pi=function(t){return Vn(t)?Fn(t):rc(t)},jo=function(t){return as(t,pi,Cr)},Pr=Object.prototype.hasOwnProperty,oc=function(t,e,n,i,s,c){var p=1&n,v=jo(t),m=v.length;if(m!=jo(e).length&&!p)return!1;for(var x=m;x--;){var S=v[x];if(!(p?S in e:Pr.call(e,S)))return!1}var D=c.get(t),I=c.get(e);if(D&&I)return D==e&&I==t;var K=!0;c.set(t,e),c.set(e,t);for(var re=p;++x<m;){var oe=t[S=v[x]],he=e[S];if(i)var ye=p?i(he,oe,S,e,t,c):i(oe,he,S,t,e,c);if(!(ye===void 0?oe===he||s(oe,he,n,i,c):ye)){K=!1;break}re||(re=S=="constructor")}if(K&&!re){var Ee=t.constructor,Re=e.constructor;Ee==Re||!("constructor"in t)||!("constructor"in e)||typeof Ee=="function"&&Ee instanceof Ee&&typeof Re=="function"&&Re instanceof Re||(K=!1)}return c.delete(t),c.delete(e),K},$r=lo(pt.a,"DataView"),di=lo(pt.a,"Promise"),ou=lo(pt.a,"Set"),Po=lo(pt.a,"WeakMap"),Wr="[object Map]",Lr="[object Promise]",Qr="[object Set]",Ao="[object WeakMap]",we="[object DataView]",Ne=qr($r),Ie=qr(Zr),et=qr(di),Ut=qr(ou),en=qr(Po),An=bn;($r&&An(new $r(new ArrayBuffer(1)))!=we||Zr&&An(new Zr)!=Wr||di&&An(di.resolve())!=Lr||ou&&An(new ou)!=Qr||Po&&An(new Po)!=Ao)&&(An=function(t){var e=bn(t),n=e=="[object Object]"?t.constructor:void 0,i=n?qr(n):"";if(i)switch(i){case Ne:return we;case Ie:return Wr;case et:return Lr;case Ut:return Qr;case en:return Ao}return e});var O=An,w="[object Arguments]",T="[object Array]",z="[object Object]",ee=Object.prototype.hasOwnProperty,pe=function(t,e,n,i,s,c){var p=Sn(t),v=Sn(e),m=p?T:O(t),x=v?T:O(e),S=(m=m==w?z:m)==z,D=(x=x==w?z:x)==z,I=m==x;if(I&&Object(Uo.a)(t)){if(!Object(Uo.a)(e))return!1;p=!0,S=!1}if(I&&!S)return c||(c=new Wo),p||Oa(t)?Ja(t,e,n,i,s,c):zi(t,e,m,n,i,s,c);if(!(1&n)){var K=S&&ee.call(t,"__wrapped__"),re=D&&ee.call(e,"__wrapped__");if(K||re){var oe=K?t.value():t,he=re?e.value():e;return c||(c=new Wo),s(oe,he,n,i,c)}}return!!I&&(c||(c=new Wo),oc(t,e,n,i,s,c))},Se=function t(e,n,i,s,c){return e===n||(e==null||n==null||!sn(e)&&!sn(n)?e!=e&&n!=n:pe(e,n,i,s,t,c))},$e=function(t,e,n,i){var s=n.length,c=s,p=!i;if(t==null)return!c;for(t=Object(t);s--;){var v=n[s];if(p&&v[2]?v[1]!==t[v[0]]:!(v[0]in t))return!1}for(;++s<c;){var m=(v=n[s])[0],x=t[m],S=v[1];if(p&&v[2]){if(x===void 0&&!(m in t))return!1}else{var D=new Wo;if(i)var I=i(x,S,m,t,e,D);if(!(I===void 0?Se(S,x,3,i,D):I))return!1}}return!0},ct=function(t){return t==t&&!zn(t)},qt=function(t){for(var e=pi(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,ct(s)]}return e},tt=function(t,e){return function(n){return n!=null&&n[t]===e&&(e!==void 0||t in Object(n))}},On=function(t){var e=qt(t);return e.length==1&&e[0][2]?tt(e[0][0],e[0][1]):function(n){return n===t||$e(n,t,e)}},Gt=function(t){return typeof t=="symbol"||sn(t)&&bn(t)=="[object Symbol]"},fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eo=/^\w*$/,Rn=function(t,e){if(Sn(t))return!1;var n=typeof t;return!(n!="number"&&n!="symbol"&&n!="boolean"&&t!=null&&!Gt(t))||eo.test(t)||!fn.test(t)||e!=null&&t in Object(e)};function Br(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],c=n.cache;if(c.has(s))return c.get(s);var p=t.apply(this,i);return n.cache=c.set(s,p)||c,p};return n.cache=new(Br.Cache||yn),n}Br.Cache=yn;var Xo=Br,Yo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wa=/\\(\\)?/g,ic=function(t){var e=Xo(t,function(i){return n.size===500&&n.clear(),i}),n=e.cache;return e}(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Yo,function(n,i,s,c){e.push(s?c.replace(wa,"$1"):i||n)}),e}),hi=Vt?Vt.prototype:void 0,iu=hi?hi.toString:void 0,Ar=function t(e){if(typeof e=="string")return e;if(Sn(e))return at(e,t)+"";if(Gt(e))return iu?iu.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n},xa=function(t){return t==null?"":Ar(t)},$i=function(t,e){return Sn(t)?t:Rn(t,e)?[t]:ic(xa(t))},yi=function(t){if(typeof t=="string"||Gt(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e},vi=function(t,e){for(var n=0,i=(e=$i(e,t)).length;t!=null&&n<i;)t=t[yi(e[n++])];return n&&n==i?t:void 0},au=function(t,e,n){var i=t==null?void 0:vi(t,e);return i===void 0?n:i},Hy=function(t,e){return t!=null&&e in Object(t)},Xy=function(t,e,n){for(var i=-1,s=(e=$i(e,t)).length,c=!1;++i<s;){var p=yi(e[i]);if(!(c=t!=null&&n(t,p)))break;t=t[p]}return c||++i!=s?c:!!(s=t==null?0:t.length)&&Go(s)&&Rr(p,s)&&(Sn(t)||Eo(t))},Up=function(t,e){return t!=null&&Xy(t,e,Hy)},ls=function(t,e){return Rn(t)&&ct(e)?tt(yi(t),e):function(n){var i=au(n,t);return i===void 0&&i===e?Up(n,t):Se(e,i,3)}},uu=function(t){return t},Ul=function(t){return function(e){return e==null?void 0:e[t]}},Yy=function(t){return function(e){return vi(e,t)}},Gp=function(t){return Rn(t)?Ul(yi(t)):Yy(t)},Gl=function(t){return typeof t=="function"?t:t==null?uu:typeof t=="object"?Sn(t)?ls(t[0],t[1]):On(t):Gp(t)},Hp=function(t){return function(e,n,i){for(var s=-1,c=Object(e),p=i(e),v=p.length;v--;){var m=p[t?v:++s];if(n(c[m],m,c)===!1)break}return e}}(),pr=function(t,e){return function(n,i){if(n==null)return n;if(!Vn(n))return t(n,i);for(var s=n.length,c=e?s:-1,p=Object(n);(e?c--:++c<s)&&i(p[c],c,p)!==!1;);return n}}(function(t,e){return t&&Hp(t,e,pi)}),Tr=function(t,e){var n=-1,i=Vn(t)?Array(t.length):[];return pr(t,function(s,c,p){i[++n]=e(s,c,p)}),i},fs=function(t,e){return(Sn(t)?at:Tr)(t,Gl(e))};Object(h.n)({isolateGlobalState:!0});var ps=function(){try{var t=lo(Object,"defineProperty");return t({},"",{}),t}catch{}}(),ds=function(t,e,n){e=="__proto__"&&ps?ps(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Vy=Object.prototype.hasOwnProperty,cu=function(t,e,n){var i=t[e];Vy.call(t,e)&&hn(i,n)&&(n!==void 0||e in t)||ds(t,e,n)},Vo=function(t,e,n,i){var s=!n;n||(n={});for(var c=-1,p=e.length;++c<p;){var v=e[c],m=i?i(n[v],t[v],v,n,t):void 0;m===void 0&&(m=t[v]),s?ds(n,v,m):cu(n,v,m)}return n},Hl=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Ea=Math.max,su=function(t,e,n){return e=Ea(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,c=Ea(i.length-e,0),p=Array(c);++s<c;)p[s]=i[e+s];s=-1;for(var v=Array(e+1);++s<e;)v[s]=i[s];return v[e]=n(p),Hl(t,this,v)}},ac=function(t){return function(){return t}},hs=ps?function(t,e){return ps(t,"toString",{configurable:!0,enumerable:!1,value:ac(e),writable:!0})}:uu,lu=Date.now,Ky=function(t){var e=0,n=0;return function(){var i=lu(),s=16-(i-n);if(n=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Xp=Ky(hs),qy=function(t,e){return Xp(su(t,e,uu),t+"")},Zy=function(t,e,n){if(!zn(n))return!1;var i=typeof e;return!!(i=="number"?Vn(n)&&Rr(e,n.length):i=="string"&&e in n)&&hn(n[e],t)},Yp=function(t){return qy(function(e,n){var i=-1,s=n.length,c=s>1?n[s-1]:void 0,p=s>2?n[2]:void 0;for(c=t.length>3&&typeof c=="function"?(s--,c):void 0,p&&Zy(n[0],n[1],p)&&(c=s<3?void 0:c,s=1),e=Object(e);++i<s;){var v=n[i];v&&t(e,v,i,c)}return e})},ys=Object.prototype.hasOwnProperty,br=Yp(function(t,e){if(Ho(e)||Vn(e))Vo(e,pi(e),t);else for(var n in e)ys.call(e,n)&&cu(t,n,e[n])}),Vp=function(t,e,n,i){if(!zn(t))return t;for(var s=-1,c=(e=$i(e,t)).length,p=c-1,v=t;v!=null&&++s<c;){var m=yi(e[s]),x=n;if(m==="__proto__"||m==="constructor"||m==="prototype")return t;if(s!=p){var S=v[m];(x=i?i(S,m,v):void 0)===void 0&&(x=zn(S)?S:Rr(e[s+1])?[]:{})}cu(v,m,x),v=v[m]}return t},F=function(t,e,n){for(var i=-1,s=e.length,c={};++i<s;){var p=e[i],v=vi(t,p);n(v,p)&&Vp(c,$i(p,t),v)}return c},fu=function(t,e){return F(t,e,function(n,i){return Up(t,i)})},uc=Vt?Vt.isConcatSpreadable:void 0,po=function(t){return Sn(t)||Eo(t)||!!(uc&&t&&t[uc])},cn=function t(e,n,i,s,c){var p=-1,v=e.length;for(i||(i=po),c||(c=[]);++p<v;){var m=e[p];n>0&&i(m)?n>1?t(m,n-1,i,s,c):xo(c,m):s||(c[c.length]=m)}return c},Sa=function(t){return t!=null&&t.length?cn(t,1):[]},wn,Ko,Wi,ho,Xl,Yl,Kp,qp,vs,pu,cc,Zp,Vl,qo,gs,Ui,to,Kl,ql,gi=function(t){return Xp(su(t,void 0,Sa),t+"")}(function(t,e){return t==null?{}:fu(t,e)});function In(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Jp(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Qp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kn(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var gn,gr,Zt,Jn,dt,Tn,bs={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},bi=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","allowRotation","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],Zl=(Ko=Kn((wn=function(){function t(i){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),In(this,"isSilentMode",Ko,this),In(this,"stopZoomGraph",Wi,this),In(this,"stopScrollGraph",ho,this),In(this,"stopMoveGraph",Xl,this),In(this,"adjustEdge",Yl,this),In(this,"adjustEdgeMiddle",Kp,this),In(this,"adjustEdgeStartAndEnd",qp,this),In(this,"adjustNodePosition",vs,this),In(this,"hideAnchors",pu,this),In(this,"allowRotation",cc,this),In(this,"hoverOutline",Zp,this),In(this,"nodeSelectedOutline",Vl,this),In(this,"edgeSelectedOutline",qo,this),In(this,"nodeTextEdit",gs,this),In(this,"edgeTextEdit",Ui,this),In(this,"nodeTextDraggable",to,this),In(this,"edgeTextDraggable",Kl,this),In(this,"autoExpand",ql,this),Qp(this,"multipleSelectKey",""),Qp(this,"defaultConfig",{}),br(this,this.getConfigDetail(i))}var e,n;return e=t,(n=[{key:"updateEditConfig",value:function(i){var s=this.getConfigDetail(i);br(this,s)}},{key:"getConfigDetail",value:function(i){var s=i.isSilentMode,c=i.textEdit,p={};if(s===!1&&br(p,this.defaultConfig),s===!0&&s!==this.isSilentMode){var v=gi(bs,bi);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},br(p,v)}c===!1&&br(p,{nodeTextEdit:!1,edgeTextEdit:!1});var m=gi(i,bi);return br(p,m)}},{key:"getConfig",value:function(){return gi(this,bi)}}])&&Jp(e.prototype,n),t}()).prototype,"isSilentMode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wi=Kn(wn.prototype,"stopZoomGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ho=Kn(wn.prototype,"stopScrollGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xl=Kn(wn.prototype,"stopMoveGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yl=Kn(wn.prototype,"adjustEdge",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Kp=Kn(wn.prototype,"adjustEdgeMiddle",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),qp=Kn(wn.prototype,"adjustEdgeStartAndEnd",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vs=Kn(wn.prototype,"adjustNodePosition",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),pu=Kn(wn.prototype,"hideAnchors",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),cc=Kn(wn.prototype,"allowRotation",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zp=Kn(wn.prototype,"hoverOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Vl=Kn(wn.prototype,"nodeSelectedOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),qo=Kn(wn.prototype,"edgeSelectedOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),gs=Kn(wn.prototype,"nodeTextEdit",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ui=Kn(wn.prototype,"edgeTextEdit",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),to=Kn(wn.prototype,"nodeTextDraggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Kl=Kn(wn.prototype,"edgeTextDraggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ql=Kn(wn.prototype,"autoExpand",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Kn(wn.prototype,"updateEditConfig",[h.k],Object.getOwnPropertyDescriptor(wn.prototype,"updateEditConfig"),wn.prototype),wn);o(65),o(66),function(t){t[t.DEFAULT=1]="DEFAULT",t[t.TEXT_EDIT=2]="TEXT_EDIT",t[t.SHOW_MENU=3]="SHOW_MENU",t[t.ALLOW_CONNECT=4]="ALLOW_CONNECT",t[t.NOT_ALLOW_CONNECT=5]="NOT_ALLOW_CONNECT"}(gn||(gn={})),function(t){t.KEY="logic-flow",t.NODE_NAME="lf-node",t.EDGE_NAME="lf-edge"}(gr||(gr={})),function(t){t.NODE="node",t.CIRCLE_NODE="circle-node",t.POLYGON_NODE="polygon-node",t.RECT_NODE="rect-node",t.TEXT_NODE="text-node",t.ELLIPSE_NODE="ellipse-node",t.DIAMOND_NODE="diamond-node",t.HTML_NODE="html-node",t.EDGE="edge",t.LINE_EDGE="line-edge",t.POLYLINE_EDGE="polyline-edge",t.BEZIER_EDGE="bezier-edge",t.GRAPH="graph"}(Zt||(Zt={})),function(t){t.NODE="node",t.EDGE="edge",t.GRAPH="graph"}(Jn||(Jn={})),function(t){t.ELEMENT_CLICK="element:click",t.NODE_CLICK="node:click",t.NODE_DBCLICK="node:dbclick",t.NODE_DELETE="node:delete",t.NODE_ADD="node:add",t.NODE_GROUP_COPY="node:group-copy-add",t.NODE_DND_ADD="node:dnd-add",t.NODE_DND_DRAG="node:dnd-drag",t.NODE_MOUSEDOWN="node:mousedown",t.NODE_DRAGSTART="node:dragstart",t.NODE_DRAG="node:drag",t.NODE_DROP="node:drop",t.NODE_MOUSEUP="node:mouseup",t.NODE_MOUSEMOVE="node:mousemove",t.NODE_MOUSEENTER="node:mouseenter",t.NODE_MOUSELEAVE="node:mouseleave",t.NODE_CONTEXTMENU="node:contextmenu",t.NODE_ROTATE="node:rotate",t.EDGE_DELETE="edge:delete",t.EDGE_ADD="edge:add",t.EDGE_CLICK="edge:click",t.EDGE_DBCLICK="edge:dbclick",t.EDGE_MOUSEENTER="edge:mouseenter",t.EDGE_MOUSELEAVE="edge:mouseleave",t.EDGE_CONTEXTMENU="edge:contextmenu",t.EDGE_ADJUST="edge:adjust",t.EDGE_EXCHANGE_NODE="edge:exchange-node",t.ANCHOR_DRAGSTART="anchor:dragstart",t.ANCHOR_DRAG="anchor:drag",t.ANCHOR_DROP="anchor:drop",t.ANCHOR_DRAGEND="anchor:dragend",t.ADJUST_POINT_MOUSEDOWN="adjustPoint:mousedown",t.ADJUST_POINT_MOUSEUP="adjustPoint:mouseup",t.ADJUST_POINT_MOUSEMOVE="adjustPoint:mousemove",t.ADJUST_POINT_DRAGSTART="adjustPoint:dragstart",t.ADJUST_POINT_DRAG="adjustPoint:drag",t.ADJUST_POINT_DROP="adjustPoint:drop",t.ADJUST_POINT_DRAGEND="adjustPoint:dragend",t.BLANK_MOUSEDOWN="blank:mousedown",t.BLANK_DRAGSTART="blank:dragstart",t.BLANK_DRAG="blank:drag",t.BLANK_DROP="blank:drop",t.BLANK_MOUSEMOVE="blank:mousemove",t.BLANK_MOUSEUP="blank:mouseup",t.BLANK_CLICK="blank:click",t.BLANK_CONTEXTMENU="blank:contextmenu",t.SELECTION_MOUSEDOWN="selection:mousedown",t.SELECTION_DRAGSTART="selection:dragstart",t.SELECTION_DRAG="selection:drag",t.SELECTION_DROP="selection:drop",t.SELECTION_MOUSEMOVE="selection:mousemove",t.SELECTION_MOUSEUP="selection:mouseup",t.SELECTION_CONTEXTMENU="selection:contextmenu",t.CONNECTION_NOT_ALLOWED="connection:not-allowed",t.HISTORY_CHANGE="history:change",t.TEXT_UPDATE="text:update",t.GRAPH_TRANSFORM="graph:transform",t.GRAPH_RENDERED="graph:rendered"}(dt||(dt={})),function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"}(Tn||(Tn={}));var $n,Hn,ed,td,ms,du,Jl,hu,_s;function yu(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return Ql(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Ql(n,i)}}(t,e)||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 Ql(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function mi(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Jy(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yo(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.INCREASE=1]="INCREASE"})($n||($n={}));var nd={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]},rd=(Hn=function(){function t(i,s){(function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")})(this,t),_i(this,"MINI_SCALE_SIZE",.2),_i(this,"MAX_SCALE_SIZE",16),mi(this,"SCALE_X",ed,this),mi(this,"SKEW_Y",td,this),mi(this,"SKEW_X",ms,this),mi(this,"SCALE_Y",du,this),mi(this,"TRANSLATE_X",Jl,this),mi(this,"TRANSLATE_Y",hu,this),mi(this,"ZOOM_SIZE",_s,this),_i(this,"eventCenter",void 0),_i(this,"translateLimitMinX",void 0),_i(this,"translateLimitMinY",void 0),_i(this,"translateLimitMaxX",void 0),_i(this,"translateLimitMaxY",void 0),this.eventCenter=i;var c=s.stopMoveGraph,p=c!==void 0&&c;this.updateTranslateLimits(p)}var e,n;return e=t,n=[{key:"setZoomMiniSize",value:function(i){this.MINI_SCALE_SIZE=i}},{key:"setZoomMaxSize",value:function(i){this.MAX_SCALE_SIZE=i}},{key:"HtmlPointToCanvasPoint",value:function(i){var s=yu(i,2),c=s[0],p=s[1];return[(c-this.TRANSLATE_X)/this.SCALE_X,(p-this.TRANSLATE_Y)/this.SCALE_Y]}},{key:"CanvasPointToHtmlPoint",value:function(i){var s=yu(i,2),c=s[0],p=s[1];return[c*this.SCALE_X+this.TRANSLATE_X,p*this.SCALE_Y+this.TRANSLATE_Y]}},{key:"moveCanvasPointByHtml",value:function(i,s,c){var p=yu(i,2),v=p[0],m=p[1];return[v+s/this.SCALE_X,m+c/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(i,s){return[i/this.SCALE_X,s/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var i=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(i,")")}}},{key:"zoom",value:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],s=arguments.length>1?arguments[1]:void 0,c=this.SCALE_X,p=this.SCALE_Y;return i===!0?(c+=this.ZOOM_SIZE,p+=this.ZOOM_SIZE):i===!1?(c-=this.ZOOM_SIZE,p-=this.ZOOM_SIZE):typeof i=="number"&&(c=i,p=i),c<this.MINI_SCALE_SIZE||c>this.MAX_SCALE_SIZE||(s&&(this.TRANSLATE_X-=(c-this.SCALE_X)*s[0],this.TRANSLATE_Y-=(p-this.SCALE_Y)*s[1]),this.SCALE_X=c,this.SCALE_Y=p,this.emitGraphTransform("zoom")),"".concat(100*this.SCALE_X,"%")}},{key:"emitGraphTransform",value:function(i){this.eventCenter.emit(dt.GRAPH_TRANSFORM,{type:i,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(i,s){this.TRANSLATE_X+i<=this.translateLimitMaxX&&this.TRANSLATE_X+i>=this.translateLimitMinX&&(this.TRANSLATE_X+=i),this.TRANSLATE_Y+s<=this.translateLimitMaxY&&this.TRANSLATE_Y+s>=this.translateLimitMinY&&(this.TRANSLATE_Y+=s),this.emitGraphTransform("translate")}},{key:"focusOn",value:function(i,s,c,p){var v=yu(this.CanvasPointToHtmlPoint([i,s]),2),m=c/2-v[0],x=p/2-v[1];this.TRANSLATE_X+=m,this.TRANSLATE_Y+=x,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(i){var s=yu(Array.isArray(i)&&i.length===4?i:nd[i.toString()],4);this.translateLimitMinX=s[0],this.translateLimitMinY=s[1],this.translateLimitMaxX=s[2],this.translateLimitMaxY=s[3]}}],n&&Jy(e.prototype,n),t}(),ed=yo(Hn.prototype,"SCALE_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),td=yo(Hn.prototype,"SKEW_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ms=yo(Hn.prototype,"SKEW_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),du=yo(Hn.prototype,"SCALE_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Jl=yo(Hn.prototype,"TRANSLATE_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),hu=yo(Hn.prototype,"TRANSLATE_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_s=yo(Hn.prototype,"ZOOM_SIZE",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),yo(Hn.prototype,"zoom",[h.k],Object.getOwnPropertyDescriptor(Hn.prototype,"zoom"),Hn.prototype),yo(Hn.prototype,"resetZoom",[h.k],Object.getOwnPropertyDescriptor(Hn.prototype,"resetZoom"),Hn.prototype),yo(Hn.prototype,"translate",[h.k],Object.getOwnPropertyDescriptor(Hn.prototype,"translate"),Hn.prototype),yo(Hn.prototype,"focusOn",[h.k],Object.getOwnPropertyDescriptor(Hn.prototype,"focusOn"),Hn.prototype),Hn),Os=function(t,e){for(var n=-1,i=t==null?0:t.length;++n<i&&e(t[n],n,t)!==!1;);return t},od=function(t,e){return t&&Vo(e,pi(e),t)},id=function(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e},ad=Object.prototype.hasOwnProperty,ef=function(t){if(!zn(t))return id(t);var e=Ho(t),n=[];for(var i in t)(i!="constructor"||!e&&ad.call(t,i))&&n.push(i);return n},vu=function(t){return Vn(t)?Fn(t,!0):ef(t)},tf=function(t,e){return t&&Vo(e,vu(e),t)},ws=o(107),Jt=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e},Qy=function(t,e){return Vo(t,Cr(t),e)},nf=Jr(Object.getPrototypeOf,Object),gu=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)xo(e,Cr(t)),t=nf(t);return e}:us,ud=function(t,e){return Vo(t,gu(t),e)},ev=function(t){return as(t,vu,gu)},tv=Object.prototype.hasOwnProperty,vo=function(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&tv.call(t,"index")&&(n.index=t.index,n.input=t.input),n},rf=function(t){var e=new t.constructor(t.byteLength);return new vr(e).set(new vr(t)),e},xs=function(t,e){var n=e?rf(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},of=/\w*$/,cd=function(t){var e=new t.constructor(t.source,of.exec(t));return e.lastIndex=t.lastIndex,e},af=Vt?Vt.prototype:void 0,Ur=af?af.valueOf:void 0,Gi=function(t){return Ur?Object(Ur.call(t)):{}},Es=function(t,e){var n=e?rf(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},sd=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return rf(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return xs(t,n);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 Es(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return cd(t);case"[object Symbol]":return Gi(t)}},sc=Object.create,ld=function(){function t(){}return function(e){if(!zn(e))return{};if(sc)return sc(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Ss=function(t){return typeof t.constructor!="function"||Ho(t)?{}:ld(nf(t))},fd=function(t){return sn(t)&&O(t)=="[object Map]"},js=fr.a&&fr.a.isMap,uf=js?So(js):fd,Hi=function(t){return sn(t)&&O(t)=="[object Set]"},pd=fr.a&&fr.a.isSet,Xi=pd?So(pd):Hi,cf="[object Arguments]",sf="[object Function]",lf="[object Object]",Mn={};Mn[cf]=Mn["[object Array]"]=Mn["[object ArrayBuffer]"]=Mn["[object DataView]"]=Mn["[object Boolean]"]=Mn["[object Date]"]=Mn["[object Float32Array]"]=Mn["[object Float64Array]"]=Mn["[object Int8Array]"]=Mn["[object Int16Array]"]=Mn["[object Int32Array]"]=Mn["[object Map]"]=Mn["[object Number]"]=Mn["[object Object]"]=Mn["[object RegExp]"]=Mn["[object Set]"]=Mn["[object String]"]=Mn["[object Symbol]"]=Mn["[object Uint8Array]"]=Mn["[object Uint8ClampedArray]"]=Mn["[object Uint16Array]"]=Mn["[object Uint32Array]"]=!0,Mn["[object Error]"]=Mn[sf]=Mn["[object WeakMap]"]=!1;var dd=function t(e,n,i,s,c,p){var v,m=1&n,x=2&n,S=4&n;if(i&&(v=c?i(e,s,c,p):i(e)),v!==void 0)return v;if(!zn(e))return e;var D=Sn(e);if(D){if(v=vo(e),!m)return Jt(e,v)}else{var I=O(e),K=I==sf||I=="[object GeneratorFunction]";if(Object(Uo.a)(e))return Object(ws.a)(e,m);if(I==lf||I==cf||K&&!c){if(v=x||K?{}:Ss(e),!m)return x?ud(e,tf(v,e)):Qy(e,od(v,e))}else{if(!Mn[I])return c?e:{};v=sd(e,I,m)}}p||(p=new Wo);var re=p.get(e);if(re)return re;p.set(e,v),Xi(e)?e.forEach(function(he){v.add(t(he,n,i,he,e,p))}):uf(e)&&e.forEach(function(he,ye){v.set(ye,t(he,n,i,ye,e,p))});var oe=D?void 0:(S?x?ev:jo:x?vu:pi)(e);return Os(oe||e,function(he,ye){oe&&(he=e[ye=he]),cu(v,ye,t(he,n,i,ye,e,p))}),v},Ln=function(t){return dd(t,5)},Ps=function(t,e,n){(n!==void 0&&!hn(t[e],n)||n===void 0&&!(e in t))&&ds(t,e,n)},Gr=function(t){return sn(t)&&Vn(t)},Zo=Function.prototype,As=Object.prototype,ja=Zo.toString,hd=As.hasOwnProperty,yd=ja.call(Object),vd=function(t){if(!sn(t)||bn(t)!="[object Object]")return!1;var e=nf(t);if(e===null)return!0;var n=hd.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&ja.call(n)==yd},Yi=function(t,e){if((e!=="constructor"||typeof t[e]!="function")&&e!="__proto__")return t[e]},lc=function(t){return Vo(t,vu(t))},gd=function(t,e,n,i,s,c,p){var v=Yi(t,n),m=Yi(e,n),x=p.get(m);if(x)Ps(t,n,x);else{var S=c?c(v,m,n+"",t,e,p):void 0,D=S===void 0;if(D){var I=Sn(m),K=!I&&Object(Uo.a)(m),re=!I&&!K&&Oa(m);S=m,I||K||re?Sn(v)?S=v:Gr(v)?S=Jt(v):K?(D=!1,S=Object(ws.a)(m,!0)):re?(D=!1,S=Es(m,!0)):S=[]:vd(m)||Eo(m)?(S=v,Eo(v)?S=lc(v):zn(v)&&!wo(v)||(S=Ss(m))):D=!1}D&&(p.set(m,S),s(S,m,i,c,p),p.delete(m)),Ps(t,n,S)}},bd=function t(e,n,i,s,c){e!==n&&Hp(n,function(p,v){if(c||(c=new Wo),zn(p))gd(e,n,v,i,t,s,c);else{var m=s?s(Yi(e,v),p,v+"",e,n,c):void 0;m===void 0&&(m=p),Ps(e,v,m)}},vu)},Pa=Yp(function(t,e,n){bd(t,e,n)}),md={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}},fc=function(t){var e=Ln(md);return t&&(e=Pa(e,t)),e};o(82),o(166);function ff(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Ts=function(){function t(){var i,s,c;(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,t),c={},(s="_events")in(i=this)?Object.defineProperty(i,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[s]=c}var e,n;return e=t,(n=[{key:"on",value:function(i,s,c){var p=this;return i==null||i.split(",").forEach(function(v){v=v.trim(),p._events[v]||(p._events[v]=[]),p._events[v].push({callback:s,once:!!c})}),this}},{key:"once",value:function(i,s){var c=this;i==null||i.split(",").forEach(function(p){return p=p.trim(),c.on(p,s,!0)})}},{key:"emit",value:function(i,s){var c=this;i==null||i.split(",").forEach(function(p){var v=c._events[p]||[],m=c._events["*"]||[],x=function(S){for(var D=S.length,I=0;I<D;I++)if(S[I]){var K=S[I],re=K.callback;K.once&&(S.splice(I,1),S.length===0&&delete c._events[p],D--,I--),re.apply(c,[s])}};x(v),x(m)})}},{key:"off",value:function(i,s){var c=this;return i||(this._events={}),i.split(",").forEach(function(p){if(s){for(var v=c._events[p]||[],m=v.length,x=0;x<m;x++)v[x].callback===s&&(v.splice(x,1),m--,x--);v.length===0&&delete c._events[p]}else delete c._events[p]}),this}},{key:"getEvents",value:function(){return this._events}}])&&ff(e.prototype,n),t}();function Vi(t,e){return e*Math.round(t/e)||t}function Ms(t,e){return t%e}function ks(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return Ds(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Ds(n,i)}}(t,e)||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 Ds(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var pf=function(t,e,n){var i=ks(t,2),s=i[0],c=i[1],p=ks(e,2),v=p[0],m=p[1],x=ks(n,2),S=x[0],D=x[1];return s>v&&s<S&&c>m&&c<D},df=function(t,e){var n=!1;switch(e.multipleSelectKey){case"meta":n=t.metaKey;break;case"alt":n=t.altKey;break;case"shift":n=t.shiftKey;break;case"ctrl":n=t.ctrlKey;break;default:n=!1}return n};o(167),o(126),o(83),o(29),o(12),o(13),o(14),o(47);var Oi=function(t){return function(e,n,i){var s=Object(e);if(!Vn(e)){var c=Gl(n);e=pi(e),n=function(v){return c(s[v],v,s)}}var p=t(e,n,i);return p>-1?s[c?e[p]:p]:void 0}},_d=function(t,e,n,i){for(var s=t.length,c=n+(i?1:-1);i?c--:++c<s;)if(e(t[c],c,t))return c;return-1},Od=/\s/,nv=function(t){for(var e=t.length;e--&&Od.test(t.charAt(e)););return e},wd=/^\s+/,wi=function(t){return t&&t.slice(0,nv(t)+1).replace(wd,"")},hf=/^[-+]0x[0-9a-f]+$/i,yf=/^0b[01]+$/i,vf=/^0o[0-7]+$/i,Ns=parseInt,Ki=function(t){if(typeof t=="number")return t;if(Gt(t))return NaN;if(zn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=zn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=wi(t);var n=yf.test(t);return n||vf.test(t)?Ns(t.slice(2),n?2:8):hf.test(t)?NaN:+t},kt=1/0,Cs=function(t){return t?(t=Ki(t))===kt||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:t===0?t:0},gf=function(t){var e=Cs(t),n=e%1;return e==e?n?e-n:e:0},Aa=Math.max,pc,bf=Oi(function(t,e,n){var i=t==null?0:t.length;if(!i)return-1;var s=n==null?0:gf(n);return s<0&&(s=Aa(i+s,0)),_d(t,Gl(e),s)}),Mr=new Uint8Array(16);function xd(){if(!pc&&!(pc=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&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 pc(Mr)}for(var Ed=/^(?:[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,rv=function(t){return typeof t=="string"&&Ed.test(t)},Bn=[],mr=0;mr<256;++mr)Bn.push((mr+256).toString(16).substr(1));var mf=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Bn[t[e+0]]+Bn[t[e+1]]+Bn[t[e+2]]+Bn[t[e+3]]+"-"+Bn[t[e+4]]+Bn[t[e+5]]+"-"+Bn[t[e+6]]+Bn[t[e+7]]+"-"+Bn[t[e+8]]+Bn[t[e+9]]+"-"+Bn[t[e+10]]+Bn[t[e+11]]+Bn[t[e+12]]+Bn[t[e+13]]+Bn[t[e+14]]+Bn[t[e+15]]).toLowerCase();if(!rv(n))throw TypeError("Stringified UUID is invalid");return n},dc=function(t,e,n){var i=(t=t||{}).random||(t.rng||xd)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(var s=0;s<16;++s)e[n+s]=i[s];return e}return mf(i)},qi=function(){return dc()},hc=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t.nodes.reduce(function(i,s){return i[s.id]=e+dc(),s.id=i[s.id],i},{});return t.edges.forEach(function(i){i.id=e+dc(),i.sourceNodeId=n[i.sourceNodeId],i.targetNodeId=n[i.targetNodeId]}),t},bu=(o(105),o(127),o(207),function(t,e,n){var i=t.x,s=t.y,c=e.x,p=e.y,v=n.x,m=n.y,x=(m-p)/(v-c),S=p-x*c;return i>=c&&i<=v&&s>=p&&s<=m&&Math.abs(s-x*i+S)<Number.EPSILON});function Rs(t){return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(t)}function _f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Of(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_f(Object(n),!0).forEach(function(i){ov(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ov(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ke,wf,mu,Is,xf,Ef,yc,Sf,To,Zi,jf,Sd,jd,Pd,Pf,Af,Tf,Mf,Ad,Td,Md,Hr=function(t){return t.anchors},Ls=function(t,e){for(var n,i=e.nodes,s=i.length-1;s>=0;s--){var c=i[s];if(iv(t,c)){var p=c.getTargetAnchor(t);if(p){var v={node:c,anchorIndex:p.index,anchor:p.anchor};n&&!kd(c,n.node,e)||(n=v)}}}return n},kd=function(t,e,n){return t.zIndex>e.zIndex||n.nodesMap[t.id].index>n.nodesMap[e.id].index},Mo=function(t,e,n,i){return Math.hypot(t-n,e-i)},Jo=function(t,e){var n=!1,i=no(e);return t.x>=i.minX-0&&t.x<=i.maxX+0&&t.y>=i.minY-0&&t.y<=i.maxY+0&&(n=!0),n},iv=function(t,e){var n=!1,i=no(e);return t.x>=i.minX-5&&t.x<=i.maxX+5&&t.y>=i.minY-5&&t.y<=i.maxY+5&&(n=!0),n},no=function(t){var e=t.x,n=t.y,i=t.width,s=t.height;return{minX:e-i/2,minY:n-s/2,maxX:e+i/2,maxY:n+s/2,x:e,y:n,width:i,height:s,centerX:e,centerY:n}},Dd=function(t,e,n){var i,s=function(p){var v=p,m=v.x,x=v.y,S=v.width,D=v.height,I=v.radius;return[{x:m-S/2+I,y:x-D/2+I,r:I},{x:m+S/2-I,y:x-D/2+I,r:I},{x:m-S/2+I,y:x+D/2-I,r:I},{x:m+S/2-I,y:x+D/2-I,r:I}]}(n),c=Number.MAX_SAFE_INTEGER;return s.forEach(function(p){var v=Mo(t.x,t.y,p.x,p.y);v<c&&(c=v,i=p)}),vc(t,e,i)},vc=function(t,e,n){var i,s=n,c=s.x,p=s.y,v=s.r;if(e===Tn.HORIZONTAL){var m=c-Math.sqrt(v*v-(t.y-p)*(t.y-p)),x=c+Math.sqrt(v*v-(t.y-p)*(t.y-p));i={x:Math.abs(m-t.x)<Math.abs(x-t.x)?m:x,y:t.y}}else if(e===Tn.VERTICAL){var S=p-Math.sqrt(v*v-(t.x-c)*(t.x-c)),D=p+Math.sqrt(v*v-(t.x-c)*(t.x-c)),I=Math.abs(S-t.y)<Math.abs(D-t.y)?S:D;i={x:t.x,y:I}}return i},kf=function(t,e){var n=e,i=!1,s=n.x-n.width/2+n.radius,c=n.x+n.width/2-n.radius,p=n.y-n.height/2+n.radius,v=n.y+n.height/2-n.radius,m=n.x,x=n.y,S=n.width,D=n.height;return t.y===x+D/2||t.y===x-D/2?i=t.x>s&&t.x<c:t.x!==m+S/2&&t.x!==m-S/2||(i=t.y>p&&t.y<v),i},Nd=function(t,e,n){var i,s=n,c=s.x,p=s.y,v=s.rx,m=s.ry;if(e===Tn.HORIZONTAL){var x=c-Math.sqrt(v*v-(t.y-p)*(t.y-p)*v*v/(m*m)),S=c+Math.sqrt(v*v-(t.y-p)*(t.y-p)*v*v/(m*m));i={x:Math.abs(x-t.x)<Math.abs(S-t.x)?x:S,y:t.y}}else if(e===Tn.VERTICAL){var D=p-Math.sqrt(m*m-(t.x-c)*(t.x-c)*m*m/(v*v)),I=p+Math.sqrt(m*m-(t.x-c)*(t.x-c)*m*m/(v*v)),K=Math.abs(D-t.y)<Math.abs(I-t.y)?D:I;i={x:t.x,y:K}}return i},Cd=function(t,e,n){for(var i,s=n.pointsPosition,c=Number.MAX_SAFE_INTEGER,p=[],v=0;v<s.length;v++)p.push({start:s[v],end:s[(v+1)%s.length]});return p.forEach(function(m){var x=m.start,S=m.end,D=x,I=S;x.x>S.x&&(D=S,I=x);var K={x:t.x,y:t.y};if(D.x===I.x&&e===Tn.HORIZONTAL&&(K={x:D.x,y:t.y}),D.y===I.y&&e===Tn.VERTICAL&&(K={x:t.x,y:D.y}),D.x!==I.x&&D.y!==I.y){var re=(I.y-D.y)/(I.x-D.x),oe=(D.x*I.y-I.x*D.y)/(D.x-I.x);e===Tn.HORIZONTAL?K={x:(t.y-oe)/re,y:t.y}:e===Tn.VERTICAL&&(K={x:t.x,y:re*t.x+oe})}if(bu(K,x,S)){var he=Mo(K.x,K.y,t.x,t.y);he<c&&(c=he,i=K)}}),i},Rd=function(t,e,n,i){var s=t.x,c=t.y;return e.x>t.x?s=t.x+n/2:e.x<t.x&&(s=t.x-n/2),e.y>t.y?c=t.y+i/2:e.y<t.y&&(c=t.y-i/2),{x:s,y:c}},Id=function(t){var e=t.rows,n=t.style,i=t.rowsLength,s=t.className,c=document.createElement("div");c.style.fontSize=n.fontSize,c.style.width=n.width,c.className=s,c.style.lineHeight=n.lineHeight,c.style.padding=n.padding,n.fontFamily&&(c.style.fontFamily=n.fontFamily),i>1?e.forEach(function(v){var m=document.createElement("div");m.textContent=v,c.appendChild(m)}):c.textContent=e,document.body.appendChild(c);var p=c.clientHeight;return document.body.removeChild(c),p},Df=function(t){var e=t.rows,n=t.rowsLength,i=t.fontSize,s=0;return e&&e.forEach(function(c){var p=Ks(c);s=p>s?p:s}),{width:Math.ceil(s/2)*i+i/4,height:n*(i+2)+i/4}},gc=function(t){return Rs(t)!=="object"?{isAllPass:!!t,msg:t?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:t},_r=function(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}},Bs=1e3,av=999,Nf=function(){return++Bs};function Ld(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Xr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ld(Object(n),!0).forEach(function(i){go(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ld(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Qn(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Bd(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function go(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tt(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Cf=(ke=function(){function t(i,s){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),go(this,"id",""),Qn(this,"type",wf,this),Qn(this,"sourceNodeId",mu,this),Qn(this,"targetNodeId",Is,this),Qn(this,"startPoint",xf,this),Qn(this,"endPoint",Ef,this),Qn(this,"text",yc,this),Qn(this,"properties",Sf,this),Qn(this,"points",To,this),Qn(this,"pointsList",Zi,this),Qn(this,"isSelected",jf,this),Qn(this,"isHovered",Sd,this),Qn(this,"isHitable",jd,this),Qn(this,"draggable",Pd,this),Qn(this,"visible",Pf,this),go(this,"virtual",!1),Qn(this,"isAnimation",Af,this),Qn(this,"isShowAdjustPoint",Tf,this),go(this,"graphModel",void 0),Qn(this,"zIndex",Mf,this),go(this,"BaseType",Jn.EDGE),go(this,"modelType",Zt.EDGE),Qn(this,"state",Ad,this),go(this,"additionStateData",void 0),go(this,"sourceAnchorId",""),go(this,"targetAnchorId",""),go(this,"menu",void 0),go(this,"customTextPosition",!1),Qn(this,"style",Td,this),Qn(this,"arrowConfig",Md,this),this.graphModel=s,this.initEdgeData(i),this.setAttributes()}var e,n;return e=t,n=[{key:"initEdgeData",value:function(i){if(i.properties||(i.properties={}),!i.id){var s=this.graphModel.idGenerator,c=s&&s(i.type),p=this.createId();i.id=p||c||qi()}this.arrowConfig.markerEnd="url(#marker-end-".concat(i.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(i.id,")");var v=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=v,br(this,qs(i)),this.graphModel.overlapMode===$n.INCREASE&&(this.zIndex=i.zIndex||Nf()),this.setAnchors(),this.initPoints(),this.formatText(i)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return Xr(Xr({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return Xr({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var i=this.graphModel.theme.edgeText;return Ln(i)}},{key:"getEdgeAnimationStyle",value:function(){var i=this.graphModel.theme.edgeAnimation;return Ln(i)}},{key:"getArrowStyle",value:function(){var i=this.getEdgeStyle(),s=this.getEdgeAnimationStyle(),c=this.graphModel.theme.arrow,p=this.isAnimation?s.stroke:i.stroke;return Xr(Xr({},i),{},{fill:p,stroke:p},c)}},{key:"getOutlineStyle",value:function(){var i=this.graphModel.theme.outline;return Ln(i)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var i,s;return(i=this.graphModel)===null||i===void 0||(s=i.nodesMap[this.sourceNodeId])===null||s===void 0?void 0:s.model}},{key:"targetNode",get:function(){var i,s;return(i=this.graphModel)===null||i===void 0||(s=i.nodesMap[this.targetNodeId])===null||s===void 0?void 0:s.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(i,s,c){var p,v,m=Hr(i);return c&&(p=bf(m,function(x){return x.id===c}))||m.forEach(function(x){var S=Tc(x,s);(v===void 0||S<v)&&(v=S,p=x)}),p}},{key:"getEndAnchor",value:function(i,s){var c,p,v=this,m=Hr(i);return s&&(c=bf(m,function(x){return x.id===s}))||m.forEach(function(x){var S=Tc(x,v.startPoint);(p===void 0||S<p)&&(p=S,c=x)}),c}},{key:"getProperties",value:function(){return Object(h.I)(this.properties)}},{key:"getData",value:function(){var i=this.text,s=i.x,c=i.y,p=i.value,v={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(h.I)(this.properties)};return p&&(v.text={x:s,y:c,value:p}),this.graphModel.overlapMode===$n.INCREASE&&(v.zIndex=this.zIndex),v}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(i,s){this.properties[i]=_r(s),this.setAttributes()}},{key:"deleteProperty",value:function(i){delete this.properties[i],this.setAttributes()}},{key:"setProperties",value:function(i){this.properties=Xr(Xr({},Object(h.I)(this.properties)),_r(i)),this.setAttributes()}},{key:"changeEdgeId",value:function(i){var s=this.arrowConfig,c=s.markerEnd,p=s.markerStart;p&&p==="url(#marker-start-".concat(this.id,")")&&(this.arrowConfig.markerStart="url(#marker-start-".concat(i,")")),c&&c==="url(#marker-end-".concat(this.id,")")&&(this.arrowConfig.markerEnd="url(#marker-end-".concat(i,")")),this.id=i}},{key:"setStyle",value:function(i,s){this.style=Xr(Xr({},this.style),{},go({},i,_r(s)))}},{key:"setStyles",value:function(i){this.style=Xr(Xr({},this.style),_r(i))}},{key:"updateStyles",value:function(i){this.style=Xr({},_r(i))}},{key:"formatText",value:function(i){var s=this.textPosition,c=s.x,p=s.y;i.text&&typeof i.text!="string"?Object.prototype.toString.call(i.text)==="[object Object]"&&(this.text={x:i.text.x||c,y:i.text.y||p,value:i.text.value||"",draggable:this.text.draggable,editable:this.text.editable}):this.text={value:i.text||"",x:c,y:p,draggable:this.text.draggable,editable:this.text.editable}}},{key:"resetTextPosition",value:function(){var i=this.textPosition,s=i.x,c=i.y;this.text.x=s,this.text.y=c}},{key:"moveText",value:function(i,s){if(this.text){var c=this.text,p=c.x,v=c.y,m=c.value,x=c.draggable,S=c.editable;this.text={value:m,draggable:x,x:p+i,y:v+s,editable:S}}}},{key:"setText",value:function(i){i&&br(this.text,i)}},{key:"updateText",value:function(i){this.text=Xr(Xr({},Object(h.I)(this.text)),{},{value:i})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var i=this.getBeginAnchor(this.sourceNode,this.targetNode,this.sourceAnchorId);if(!i)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:i.x,y:i.y}),this.sourceAnchorId||(this.sourceAnchorId=i.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 i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=i}},{key:"setHovered",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=i}},{key:"setHitable",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=i}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(i,s){this.state=i,this.additionStateData=s}},{key:"updateStartPoint",value:function(i){this.startPoint=i}},{key:"moveStartPoint",value:function(i,s){this.startPoint.x+=i,this.startPoint.y+=s}},{key:"updateEndPoint",value:function(i){this.endPoint=i}},{key:"moveEndPoint",value:function(i,s){this.endPoint.x+=i,this.endPoint.y+=s}},{key:"setZIndex",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=i}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(i){br(this,i)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(i){var s=i.startPoint,c=i.endPoint;this.updateStartPoint({x:s.x,y:s.y}),this.updateEndPoint({x:c.x,y:c.y})}}],n&&Bd(e.prototype,n),t}(),wf=Tt(ke.prototype,"type",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),mu=Tt(ke.prototype,"sourceNodeId",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Is=Tt(ke.prototype,"targetNodeId",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),xf=Tt(ke.prototype,"startPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ef=Tt(ke.prototype,"endPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),yc=Tt(ke.prototype,"text",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),Sf=Tt(ke.prototype,"properties",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),To=Tt(ke.prototype,"points",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Zi=Tt(ke.prototype,"pointsList",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),jf=Tt(ke.prototype,"isSelected",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Sd=Tt(ke.prototype,"isHovered",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jd=Tt(ke.prototype,"isHitable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Pd=Tt(ke.prototype,"draggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Pf=Tt(ke.prototype,"visible",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Af=Tt(ke.prototype,"isAnimation",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Tf=Tt(ke.prototype,"isShowAdjustPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mf=Tt(ke.prototype,"zIndex",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ad=Tt(ke.prototype,"state",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Td=Tt(ke.prototype,"style",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Md=Tt(ke.prototype,"arrowConfig",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")}}}),Tt(ke.prototype,"sourceNode",[h.m],Object.getOwnPropertyDescriptor(ke.prototype,"sourceNode"),ke.prototype),Tt(ke.prototype,"targetNode",[h.m],Object.getOwnPropertyDescriptor(ke.prototype,"targetNode"),ke.prototype),Tt(ke.prototype,"textPosition",[h.m],Object.getOwnPropertyDescriptor(ke.prototype,"textPosition"),ke.prototype),Tt(ke.prototype,"setProperty",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setProperty"),ke.prototype),Tt(ke.prototype,"deleteProperty",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"deleteProperty"),ke.prototype),Tt(ke.prototype,"setProperties",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setProperties"),ke.prototype),Tt(ke.prototype,"changeEdgeId",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"changeEdgeId"),ke.prototype),Tt(ke.prototype,"setStyle",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setStyle"),ke.prototype),Tt(ke.prototype,"setStyles",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setStyles"),ke.prototype),Tt(ke.prototype,"updateStyles",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateStyles"),ke.prototype),Tt(ke.prototype,"formatText",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"formatText"),ke.prototype),Tt(ke.prototype,"resetTextPosition",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"resetTextPosition"),ke.prototype),Tt(ke.prototype,"moveText",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"moveText"),ke.prototype),Tt(ke.prototype,"setText",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setText"),ke.prototype),Tt(ke.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateText"),ke.prototype),Tt(ke.prototype,"setAnchors",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setAnchors"),ke.prototype),Tt(ke.prototype,"setSelected",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setSelected"),ke.prototype),Tt(ke.prototype,"setHovered",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setHovered"),ke.prototype),Tt(ke.prototype,"setHitable",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setHitable"),ke.prototype),Tt(ke.prototype,"openEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"openEdgeAnimation"),ke.prototype),Tt(ke.prototype,"closeEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"closeEdgeAnimation"),ke.prototype),Tt(ke.prototype,"setElementState",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setElementState"),ke.prototype),Tt(ke.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateStartPoint"),ke.prototype),Tt(ke.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"moveStartPoint"),ke.prototype),Tt(ke.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateEndPoint"),ke.prototype),Tt(ke.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"moveEndPoint"),ke.prototype),Tt(ke.prototype,"setZIndex",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setZIndex"),ke.prototype),Tt(ke.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"initPoints"),ke.prototype),Tt(ke.prototype,"updateAttributes",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateAttributes"),ke.prototype),Tt(ke.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"getAdjustStart"),ke.prototype),Tt(ke.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"getAdjustEnd"),ke.prototype),Tt(ke.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateAfterAdjustStartAndEnd"),ke.prototype),ke),_u=Cf;function Rf(t){return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rf(t)}function zd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function bc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zd(Object(n),!0).forEach(function(i){Ud(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Fd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mc(){return mc=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=Wd(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},mc.apply(this,arguments)}function Wd(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=xi(t))!==null;);return t}function zs(t,e){return zs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},zs(t,e)}function uv(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=xi(t);if(e){var s=xi(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return cv(this,n)}}function cv(t,e){if(e&&(Rf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _c(t)}function _c(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xi(t){return xi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xi(t)}function Ud(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var It,If,Fs=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&zs(c,p)})(s,t);var e,n,i=uv(s);function s(){var c;Fd(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return Ud(_c(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.LINE_EDGE),c}return e=s,(n=[{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.line;return bc(bc({},mc(xi(s.prototype),"getEdgeStyle",this).call(this)),Ln(c))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&$d(e.prototype,n),s}(_u);function ro(t){return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ro(t)}function sv(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return Gd(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Gd(n,i)}}(t,e)||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 Gd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ji(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Ht(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ji(Object(n),!0).forEach(function(i){Wn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function lv(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Yr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function er(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function bo(){return bo=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=fv(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},bo.apply(this,arguments)}function fv(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=xn(t))!==null;);return t}function Oc(t,e){return Oc=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Oc(t,e)}function Ei(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=xn(t);if(e){var s=xn(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return Hd(this,n)}}function Hd(t,e){if(e&&(ro(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qi(t)}function Qi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xn(t){return xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xn(t)}function Wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Or(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var wc=(It=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Oc(c,p)})(s,t);var e,n,i=Ei(s);function s(){var c;Yr(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return Wn(Qi(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.POLYLINE_EDGE),Wn(Qi(c),"draggingPointList",void 0),lv(Qi(c),"dbClickPosition",If,Qi(c)),c}return e=s,(n=[{key:"initEdgeData",value:function(c){this.offset=30,bo(xn(s.prototype),"initEdgeData",this).call(this,c)}},{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.polyline;return Ht(Ht({},bo(xn(s.prototype),"getEdgeStyle",this).call(this)),Ln(c))}},{key:"getTextPosition",value:function(){var c,p=(c=this.text)===null||c===void 0?void 0:c.value;if(this.dbClickPosition&&!p){var v=this.dbClickPosition;return{x:v.x,y:v.y}}var m=ta(this.points),x=sv(th(m),2),S=x[0],D=x[1];return{x:(S.x+D.x)/2,y:(S.y+D.y)/2}}},{key:"getAfterAnchor",value:function(c,p,v){var m,x;return v.forEach(function(S){var D;c===Tn.HORIZONTAL?D=Math.abs(p.y-S.y):c===Tn.VERTICAL&&(D=Math.abs(p.x-S.x)),(!x||x>D)&&(x=D,m=S)}),m}},{key:"getCrossPoint",value:function(c,p,v){var m;return c===Tn.HORIZONTAL?m={x:v.x,y:p.y}:c===Tn.VERTICAL&&(m={x:p.x,y:v.y}),m}},{key:"removeCrossPoints",value:function(c,p,v){var m=v.map(function(ye){return ye});if(c===1){var x=m[c],S=m[p],D=m[c-1];if(Wf(D,x,this.sourceNode)){if(Uf(x,S,this.sourceNode)){var I=Gf(x,S,this.sourceNode);I&&(m[c]=I,m.splice(c-1,1),c--,p--)}}else this.sourceNode.anchors.forEach(function(ye){(ye.x===D.x&&ye.x===x.x||ye.y===D.y&&ye.y===x.y)&&Mo(ye.x,ye.y,x.x,x.y)<Mo(D.x,D.y,x.x,x.y)&&(m[c-1]=ye)})}if(p===v.length-2){var K=m[c],re=m[p],oe=m[p+1];if(Wf(re,oe,this.targetNode)){if(Uf(K,re,this.targetNode)){var he=Gf(K,re,this.targetNode);he&&(m[p]=he,m.splice(p+1,1))}}else this.targetNode.anchors.forEach(function(ye){(ye.x===oe.x&&ye.x===re.x||ye.y===oe.y&&ye.y===re.y)&&Mo(ye.x,ye.y,re.x,re.y)<Mo(oe.x,oe.y,re.x,re.y)&&(m[p+1]=ye)})}return m}},{key:"getDraggingPoints",value:function(c,p,v,m,x){var S=x.map(function(K){return K}),D=this.getAfterAnchor(c,v,m),I=this.getCrossPoint(c,v,D);return p==="start"?(S.unshift(I),S.unshift(D)):(S.push(I),S.push(D)),S}},{key:"updateCrossPoints",value:function(c){var p=c.map(function(Re){return Re}),v=c[0],m=c[1],x=c[p.length-2],S=c[p.length-1],D=this.sourceNode,I=this.targetNode,K=D.modelType,re=I.modelType,oe=Ac(v,m),he=p[0];switch(K){case Zt.RECT_NODE:D.radius!==0&&(kf(v,D)||(he=Dd(v,oe,D)));break;case Zt.CIRCLE_NODE:he=vc(v,oe,D);break;case Zt.ELLIPSE_NODE:he=Nd(v,oe,D);break;case Zt.DIAMOND_NODE:case Zt.POLYGON_NODE:he=Cd(v,oe,D)}he&&(p[0]=he);var ye=Ac(x,S),Ee=p[p.length-1];switch(re){case Zt.RECT_NODE:I.radius!==0&&(kf(S,I)||(Ee=Dd(S,ye,I)));break;case Zt.CIRCLE_NODE:Ee=vc(S,ye,I);break;case Zt.ELLIPSE_NODE:Ee=Nd(S,ye,I);break;case Zt.DIAMOND_NODE:case Zt.POLYGON_NODE:Ee=Cd(S,ye,I)}return Ee&&(p[p.length-1]=Ee),p}},{key:"getData",value:function(){var c=bo(xn(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(v){return{x:v.x,y:v.y}});return Object.assign({},c,{pointsList:p})}},{key:"initPoints",value:function(){this.pointsList.length>0?this.points=this.pointsList.map(function(c){return"".concat(c.x,",").concat(c.y)}).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var c=Ys({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=c,this.points=c.map(function(p){return"".concat(p.x,",").concat(p.y)}).join(" ")}},{key:"updateStartPoint",value:function(c){this.startPoint=Object.assign({},c),this.updatePoints()}},{key:"moveStartPoint",value:function(c,p){this.startPoint.x+=c,this.startPoint.y+=p,this.updatePoints()}},{key:"updateEndPoint",value:function(c){this.endPoint=Object.assign({},c),this.updatePoints()}},{key:"moveEndPoint",value:function(c,p){this.endPoint.x+=c,this.endPoint.y+=p,this.updatePoints()}},{key:"updatePointsList",value:function(c,p){this.pointsList.forEach(function(x){x.x+=c,x.y+=p});var v=this.pointsList[0];this.startPoint=Object.assign({},v);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(c){return c})}},{key:"dragAppendSimple",value:function(c,p){this.isDragging=!0;var v=c.start,m=c.end,x=c.startIndex,S=c.endIndex,D=c.direction,I=this.pointsList,K=I;return D===Tn.HORIZONTAL?(I[x]={x:v.x,y:v.y+p.y},I[S]={x:m.x,y:m.y+p.y},K=this.pointsList.map(function(re){return re})):D===Tn.VERTICAL&&(I[x]={x:v.x+p.x,y:v.y},I[S]={x:m.x+p.x,y:m.y},K=this.pointsList.map(function(re){return re})),this.updatePointsAfterDrag(K),this.draggingPointList=K,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},I[x]),end:Object.assign({},I[S]),startIndex:x,endIndex:S,direction:D}}},{key:"dragAppend",value:function(c,p){this.isDragging=!0;var v=c.start,m=c.end,x=c.startIndex,S=c.endIndex,D=c.direction,I=this.pointsList;if(D===Tn.HORIZONTAL){I[x]={x:v.x,y:v.y+p.y},I[S]={x:m.x,y:m.y+p.y};var K=this.pointsList.map(function(qe){return qe});if(x!==0&&S!==this.pointsList.length-1&&(K=this.removeCrossPoints(x,S,K)),x===0){var re={x:v.x,y:v.y+p.y};if(!Jo(re,this.sourceNode)){var oe=this.sourceNode.anchors;K=this.getDraggingPoints(D,"start",re,oe,K)}}if(S===this.pointsList.length-1){var he={x:m.x,y:m.y+p.y};if(!Jo(he,this.targetNode)){var ye=this.targetNode.anchors;K=this.getDraggingPoints(D,"end",he,ye,K)}}this.updatePointsAfterDrag(K),this.draggingPointList=K}else if(D===Tn.VERTICAL){I[x]={x:v.x+p.x,y:v.y},I[S]={x:m.x+p.x,y:m.y};var Ee=this.pointsList.map(function(qe){return qe});if(x!==0&&S!==this.pointsList.length-1&&(Ee=this.removeCrossPoints(x,S,Ee)),x===0){var Re={x:v.x+p.x,y:v.y};if(!Jo(Re,this.sourceNode)){var Qe=this.sourceNode.anchors;Ee=this.getDraggingPoints(D,"start",Re,Qe,Ee)}}if(S===this.pointsList.length-1){var Ze={x:m.x+p.x,y:m.y};if(!Jo(Ze,this.targetNode)){var _t=this.targetNode.anchors;Ee=this.getDraggingPoints(D,"end",Ze,_t,Ee)}}this.updatePointsAfterDrag(Ee),this.draggingPointList=Ee}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},I[x]),end:Object.assign({},I[S]),startIndex:x,endIndex:S,direction:D}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var c=Xs(ta(this.points));this.pointsList=c.map(function(m){return m}),this.draggingPointList=[];var p=c[0];this.startPoint=Object.assign({},p);var v=c[c.length-1];this.endPoint=Object.assign({},v)}this.isDragging=!1}},{key:"updatePointsAfterDrag",value:function(c){var p=this.updateCrossPoints(c);this.points=p.map(function(v){return"".concat(v.x,",").concat(v.y)}).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var c=this.pointsList;return c[c.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(c){var p=c.startPoint,v=c.endPoint,m=c.sourceNode,x=c.targetNode,S=Ys({x:p.x,y:p.y},{x:v.x,y:v.y},m,x,this.offset||0);this.pointsList=S,this.initPoints()}}])&&er(e.prototype,n),s}(_u),If=Or(It.prototype,"dbClickPosition",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Or(It.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"initPoints"),It.prototype),Or(It.prototype,"updatePoints",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updatePoints"),It.prototype),Or(It.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updateStartPoint"),It.prototype),Or(It.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"moveStartPoint"),It.prototype),Or(It.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updateEndPoint"),It.prototype),Or(It.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"moveEndPoint"),It.prototype),Or(It.prototype,"updatePointsList",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updatePointsList"),It.prototype),Or(It.prototype,"dragAppendStart",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"dragAppendStart"),It.prototype),Or(It.prototype,"dragAppendSimple",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"dragAppendSimple"),It.prototype),Or(It.prototype,"dragAppend",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"dragAppend"),It.prototype),Or(It.prototype,"dragAppendEnd",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"dragAppendEnd"),It.prototype),Or(It.prototype,"updatePointsAfterDrag",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updatePointsAfterDrag"),It.prototype),Or(It.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"getAdjustStart"),It.prototype),Or(It.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"getAdjustEnd"),It.prototype),Or(It.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updateAfterAdjustStartAndEnd"),It.prototype),It),Si=function(t){var e=t.start,n=t.end,i=t.offset,s=t.verticalLength,c=t.type,p={leftX:0,leftY:0,rightX:0,rightY:0},v=Math.atan((n.y-e.y)/(n.x-e.x)),m=Math.atan(i/s),x=Math.sqrt(s*s+i*i);return c==="start"?n.x>=e.x?(p.leftX=e.x+x*Math.sin(v+m),p.leftY=e.y-x*Math.cos(v+m),p.rightX=e.x-x*Math.sin(v-m),p.rightY=e.y+x*Math.cos(v-m)):(p.leftX=e.x-x*Math.sin(v+m),p.leftY=e.y+x*Math.cos(v+m),p.rightX=e.x+x*Math.sin(v-m),p.rightY=e.y-x*Math.cos(v-m)):c==="end"&&(n.x>=e.x?(p.leftX=n.x+x*Math.sin(v-m),p.leftY=n.y-x*Math.cos(v-m),p.rightX=n.x-x*Math.sin(v+m),p.rightY=n.y+x*Math.cos(v+m)):(p.leftX=n.x-x*Math.sin(v-m),p.leftY=n.y+x*Math.cos(v-m),p.rightX=n.x+x*Math.sin(v+m),p.rightY=n.y-x*Math.cos(v+m))),p},Lf={x:1,y:0,z:0};function Bf(t,e,n,i,s){for(var c=function(re){if(re<0||re>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:t.x*Math.pow(1-re,3)+3*e.x*re*Math.pow(1-re,2)+3*n.x*Math.pow(re,2)*(1-re)+i.x*Math.pow(re,3),y:t.y*Math.pow(1-re,3)+3*e.y*re*Math.pow(1-re,2)+3*n.y*Math.pow(re,2)*(1-re)+i.y*Math.pow(re,3)}},p=0,v=2,m=i.x,x=i.y,S=i;p<s&&v<50;){var D=S=c(1-v/100),I=D.x,K=D.y;p=Mo(m,x,I,K),v++}return S}function xc(t){var e=Math.hypot(t.x,t.y);return{x:t.x/e,y:t.y/e,z:0}}function Vr(t){return i=function(c,p){return c.x*p.y-c.y*p.x}(e=Lf,n=t),s=Math.acos(function(c,p){var v=[c.x,c.y,c.z];return[p.x,p.y,p.z].reduce(function(m,x,S){return m+x*v[S]})}(xc(e),xc(n))),i>=0?s:-s;var e,n,i,s}function Ta(t){return t*(180/Math.PI)}function Xd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function $s(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xd(Object(n),!0).forEach(function(i){Yd(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Yd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ji(t){return function(e){if(Array.isArray(e))return Ws(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||oo(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  83. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yt(t){return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(t)}function Ec(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||oo(t,e)||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 oo(t,e){if(t){if(typeof t=="string")return Ws(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ws(t,e):void 0}}function Ws(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var En=function(t,e){var n;switch(t.type){case"line":default:n=new Fs(t,e);break;case"polyline":n=new wc(t,e)}return n},Vd=function(t,e){return 2*Math.abs(t.centerX-e.centerX)<t.width+e.width&&2*Math.abs(t.centerY-e.centerY)<t.height+e.height},Ou=function(t){var e=[],n={};return t.forEach(function(i){var s="".concat(i.x,"-").concat(i.y);i.id=s,n[s]=i}),Object.keys(n).forEach(function(i){e.push(n[i])}),e},Us=function(t,e){var n=[t,{x:t.x,y:e.y},e];return Ou(n)},Sc=function(t,e){return t.width===0&&t.height===0?t:{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}},Kd=function(t,e){var n=Math.abs(t.x-e.centerX),i=Math.abs(t.y-e.centerY);return n/e.width>i/e.height?Tn.HORIZONTAL:Tn.VERTICAL},jc=function(t,e,n){return Kd(n,e)===Tn.HORIZONTAL?{x:n.x>t.centerX?t.maxX:t.minX,y:n.y}:{x:n.x,y:n.y>t.centerY?t.maxY:t.minY}},zf=function(t,e){var n=Math.min(t.minX,e.minX),i=Math.min(t.minY,e.minY),s=Math.max(t.maxX,e.maxX),c=Math.max(t.maxY,e.maxY);return{centerX:(n+s)/2,centerY:(i+c)/2,minX:n,minY:i,maxX:s,maxY:c,height:c-i,width:s-n}},ea=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=[],i=[];t.forEach(function(S){n.push(S.x),i.push(S.y)});var s=Math.min.apply(Math,n),c=Math.max.apply(Math,n),p=Math.min.apply(Math,i),v=Math.max.apply(Math,i),m=c-s,x=v-p;return e&&(m+=e,x+=e),{centerX:(s+c)/2,centerY:(p+v)/2,maxX:c,maxY:v,minX:s,minY:p,x:(s+c)/2,y:(p+v)/2,height:x,width:m}},Ma=function(t){var e=t.minX,n=t.minY,i=t.maxX,s=t.maxY;return[{x:e,y:n},{x:i,y:n},{x:i,y:s},{x:e,y:s}]},Pc=function(t,e){var n=t.x,i=t.y;return n<e.minX||n>e.maxX||i<e.minY||i>e.maxY},qd=function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},Zd=function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},dr=function(t,e){return qd(t,e.x).concat(Zd(t,e.y))},wr=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Jd=function(t,e){var n=0;return e.forEach(function(i){i&&(t.x===i.x&&(n+=-2),t.y===i.y&&(n+=-2))}),n},Gs=function(t,e,n,i,s){return wr(t,e)+wr(t,n)+Jd(t,[e,n,i,s])},Qd=function t(e,n,i,s,c){c||(c=0),e.unshift(n[s]),i[s]&&i[s]!==s&&c<=100&&t(e,n,i,i[s],c+1)},eh=function(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)},ka=function(t,e,n,i){var s=e.x-t.x,c=e.y-t.y,p=i.x-n.x,v=i.y-n.y,m=(-c*(t.x-n.x)+s*(t.y-n.y))/(-p*c+s*v),x=(p*(t.y-n.y)-v*(t.x-n.x))/(-p*c+s*v);return m>=0&&m<=1&&x>=0&&x<=1},Hs=function(t,e,n){if(n.width===0&&n.height===0)return!1;var i=Ec(Ma(n),4),s=i[0],c=i[1],p=i[2],v=i[3];return ka(t,e,s,c)||ka(t,e,s,v)||ka(t,e,c,p)||ka(t,e,p,v)},Ff=function(t,e,n,i){var s=[];return t.forEach(function(c){c!==e&&(c.x!==e.x&&c.y!==e.y||Hs(c,e,n)||Hs(c,e,i)||s.push(c))}),Ou(s)},Da=function(t,e,n,i,s,c,p){var v=[],m=[e],x={},S={},D={};S[e.id]=0,D[e.id]=Gs(e,n,e);var I={};t.forEach(function(oe){I[oe.id]=oe});for(var K=function(){var oe=void 0,he=1/0;if(m.forEach(function(Ee){D[Ee.id]<he&&(he=D[Ee.id],oe=Ee)}),oe===n){var ye=[];return Qd(ye,I,x,n.id),{v:ye}}eh(m,oe),v.push(oe),Ff(t,oe,i,s).forEach(function(Ee){if(v.indexOf(Ee)===-1){m.indexOf(Ee)===-1&&m.push(Ee);var Re=D[oe.id]+wr(oe,Ee);S[Ee.id]&&Re>=S[Ee.id]||(x[Ee.id]=oe.id,S[Ee.id]=Re,D[Ee.id]=S[Ee.id]+Gs(Ee,n,e,c,p))}})};m.length;){var re=K();if(Yt(re)==="object")return re.v}return[e,n]},$f=function(t){return no(t)},Xs=function(t){for(var e=1;e<t.length-1;){var n=t[e-1],i=t[e],s=t[e+1];n.x===i.x&&i.x===s.x||n.y===i.y&&i.y===s.y?t.splice(e,1):e++}return t},Ys=function(t,e,n,i,s){var c=$f(n),p=$f(i),v=Sc(c,s),m=Sc(p,s),x=jc(v,c,t),S=jc(m,p,e);if(Vd(v,m)){var D=Vs(t,e,x,S);return[t,x].concat(ji(D),[S,e])}var I=ea([x,S]),K=zf(v,I),re=zf(m,I),oe=[];oe=(oe=oe.concat(Ma(K))).concat(Ma(re));var he={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[I,K,re].forEach(function(Ee){oe=oe.concat(dr(Ee,he).filter(function(Re){return Pc(Re,v)&&Pc(Re,m)}))}),[{x:x.x,y:S.y},{x:S.x,y:x.y}].forEach(function(Ee){Pc(Ee,v)&&Pc(Ee,m)&&oe.push(Ee)}),oe.unshift(x),oe.push(S),oe=Ou(oe);var ye=Da(oe,x,S,c,p,t,e);return ye.unshift(t),ye.push(e),ye.length>2&&(ye=Xs(ye)),Ou(ye)},th=function(t){var e;if(t.length===1)e=[t[0],t[0]];else if(t.length>=2){for(var n=t[0],i=t[1],s=Mo(n.x,n.y,i.x,i.y),c=1;c<t.length-1;c++){var p=t[c],v=t[c+1],m=Mo(p.x,p.y,v.x,v.y);m>s&&(s=m,n=p,i=v)}e=[n,i]}return e},Wf=function(t,e,n){var i=Jo(t,n),s=Jo(e,n);return i&&s},Uf=function(t,e,n){var i=Jo(t,n),s=Jo(e,n);return!(i&&s)&&(i||s)},Gf=function(t,e,n){for(var i,s,c=no(n),p=Ma(c),v=0;v<p.length;v++)ka(t,e,p[v],p[(v+1)%p.length])&&(s=[p[v],p[(v+1)%p.length]]);return s&&(i=function(m,x,S,D){var I=(x.y-m.y)*(D.x-S.x)-(m.x-x.x)*(S.y-D.y);if(I===0)return!1;var K=((x.x-m.x)*(D.x-S.x)*(S.y-m.y)+(x.y-m.y)*(D.x-S.x)*m.x-(D.y-S.y)*(x.x-m.x)*S.x)/I,re=-((x.y-m.y)*(D.y-S.y)*(S.x-m.x)+(x.x-m.x)*(D.y-S.y)*m.y-(D.x-S.x)*(x.y-m.y)*S.y)/I;return(K-m.x)*(K-x.x)<=0&&(re-m.y)*(re-x.y)<=0&&(K-S.x)*(K-D.x)<=0&&(re-S.y)*(re-D.y)<=0&&{x:K,y:re}}(t,e,s[0],s[1])),i},Ac=function(t,e){var n;return t.x===e.x?n=Tn.VERTICAL:t.y===e.y&&(n=Tn.HORIZONTAL),n},ta=function(t){var e=t.split(" "),n=[];return e&&e.forEach(function(i){var s=Ec(i.split(","),2),c=s[0],p=s[1];n.push({x:Number(c),y:Number(p)})}),n},Vs=function(t,e,n,i){var s=[];if(Ac(t,n)===Ac(e,i))t.y===n.y?(s.push({x:n.x,y:(n.y+i.y)/2}),s.push({x:i.x,y:(n.y+i.y)/2})):(s.push({x:(n.x+i.x)/2,y:n.y}),s.push({x:(n.x+i.x)/2,y:i.y}));else{var c={x:n.x,y:i.y},p=bu(c,t,n),v=bu(c,e,i);if(p||v)c={x:i.x,y:n.y};else{var m=Hf(c,t,n),x=Hf(c,e,i);m&&x&&(c={x:i.x,y:n.y})}s.push(c)}return s},Hf=function(t,e,n){return t.x===e.x&&t.x===n.x||t.y===e.y&&t.y===n.y},Ks=function(t){if(!t)return 0;for(var e=0,n=0;n<t.length;n++){var i=t.charCodeAt(n);t.match(/[A-Z]/)?e+=1.5:e+=i>=1&&i<=126||i>=65376&&i<=65439?1:2}return e},Xf=null,Yf=function(t,e){Xf||(Xf=document.createElement("canvas"));var n=Xf.getContext("2d");return n.font=e,n.measureText(t).width},nh=function(t){var e,n=t.start,i=t.end;if(n.x===i.x&&n.y===i.y)e="";else{var s={start:n,end:i,offset:10,verticalLength:5},c=Si($s($s({},s),{},{type:"start"})),p=Si($s($s({},s),{},{type:"end"}));e="M".concat(c.leftX," ").concat(c.leftY,`
  85. L`).concat(c.rightX," ").concat(c.rightY,`
  86. L`).concat(p.rightX," ").concat(p.rightY,`
  87. L`).concat(p.leftX," ").concat(p.leftY," z")}return{d:e,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},Vf=function(t){var e=t.start,n=t.end,i=t.sourceNode,s=t.targetNode,c=t.offset,p=no(i),v=no(s),m=Sc(p,c),x=Sc(v,c);return{sNext:jc(m,p,e),ePre:jc(x,v,n)}},xr=function(t){var e=t.replace(/M/g,"").replace(/C/g,",").split(",");return[wu(e[0]),wu(e[1]),wu(e[2]),wu(e[3])]},wu=function(t){var e=Ec(t.replace(/(^\s*)/g,"").split(" "),2);return{x:+e[0],y:+e[1]}},Kf=function(t,e){var n=Ec(t,4);return[Bf(n[0],n[1],n[2],n[3],e),t[3]]},qf=function(t,e){for(var n,i=t.x,s=t.y,c=ta(e),p=Number.MAX_SAFE_INTEGER,v=[],m=0;m<c.length;m++)v.push({start:c[m],end:c[(m+1)%c.length]});if(v.forEach(function(I){var K=I.start,re=I.end;if(K.x===re.x){var oe={x:K.x,y:s};if(bu(oe,K,re)){var he=Math.abs(K.x-i);he<p&&(p=he,n=oe)}}else if(K.y===re.y){var ye={x:i,y:K.y};if(bu(ye,K,re)){var Ee=Math.abs(K.y-s);Ee<p&&(p=Ee,n=ye)}}}),!n){var x=v[0],S=x.start,D=x.end;n={x:S.x+(D.x-S.x)/2,y:S.y+(D.y-S.y)/2}}return n},qs=function(t){return gi(t,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Tc=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};function rh(t,e){return typeof e!="function"?function(n,i,s){return Object.assign({type:t.edgeType},s)}:function(n,i,s){var c=e(n,i,s);return c?typeof c=="string"?Object.assign({},s,{type:c}):Object.assign({type:c},s):{type:t.edgeType}}}o(208);var Zf=function(){};function pv(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function tr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qo=function(){function t(i){var s=this,c=i.onDragStart,p=c===void 0?Zf:c,v=i.onDragging,m=v===void 0?Zf:v,x=i.onDragEnd,S=x===void 0?Zf:x,D=i.eventType,I=D===void 0?"":D,K=i.eventCenter,re=K===void 0?null:K,oe=i.step,he=oe===void 0?1:oe,ye=i.isStopPropagation,Ee=ye===void 0||ye,Re=i.model,Qe=Re===void 0?null:Re,Ze=i.data,_t=Ze===void 0?null:Ze;(function(qe,ht){if(!(qe instanceof ht))throw new TypeError("Cannot call a class as a function")})(this,t),tr(this,"onDragStart",void 0),tr(this,"onDragging",void 0),tr(this,"onDragEnd",void 0),tr(this,"step",void 0),tr(this,"isStopPropagation",void 0),tr(this,"isDragging",!1),tr(this,"isStartDragging",!1),tr(this,"startX",0),tr(this,"startY",0),tr(this,"sumDeltaX",0),tr(this,"sumDeltaY",0),tr(this,"eventType",void 0),tr(this,"eventCenter",void 0),tr(this,"model",void 0),tr(this,"data",void 0),tr(this,"startTime",void 0),tr(this,"handleMouseDown",function(qe){var ht,rt,tn,un=(ht=window)===null||ht===void 0?void 0:ht.document;if(qe.button===0){s.isStopPropagation&&qe.stopPropagation(),s.isStartDragging=!0,s.startX=qe.clientX,s.startY=qe.clientY,un.addEventListener("mousemove",s.handleMouseMove,!1),un.addEventListener("mouseup",s.handleMouseUp,!1);var Lt=(rt=s.model)===null||rt===void 0?void 0:rt.getData();(tn=s.eventCenter)===null||tn===void 0||tn.emit(dt["".concat(s.eventType,"_MOUSEDOWN")],{e:qe,data:s.data||Lt}),s.startTime=new Date().getTime()}}),tr(this,"handleMouseMove",function(qe){if(s.isStopPropagation&&qe.stopPropagation(),s.isStartDragging&&(s.sumDeltaX+=qe.clientX-s.startX,s.sumDeltaY+=qe.clientY-s.startY,s.startX=qe.clientX,s.startY=qe.clientY,s.step<=1||Math.abs(s.sumDeltaX)>s.step||Math.abs(s.sumDeltaY)>s.step)){var ht,rt=s.sumDeltaX%s.step,tn=s.sumDeltaY%s.step,un=s.sumDeltaX-rt,Lt=s.sumDeltaY-tn;s.sumDeltaX=rt,s.sumDeltaY=tn;var pn,nr=(ht=s.model)===null||ht===void 0?void 0:ht.getData();s.isDragging||((pn=s.eventCenter)===null||pn===void 0||pn.emit(dt["".concat(s.eventType,"_DRAGSTART")],{e:qe,data:s.data||nr}),s.onDragStart({event:qe})),s.isDragging=!0,Promise.resolve().then(function(){var rr,zr;s.onDragging({deltaX:un,deltaY:Lt,event:qe}),(rr=s.eventCenter)===null||rr===void 0||rr.emit(dt["".concat(s.eventType,"_MOUSEMOVE")],{e:qe,data:s.data||nr}),(zr=s.eventCenter)===null||zr===void 0||zr.emit(dt["".concat(s.eventType,"_DRAG")],{e:qe,data:s.data||nr})})}}),tr(this,"handleMouseUp",function(qe){var ht=window.document;s.isStartDragging=!1,s.isStopPropagation&&qe.stopPropagation(),Promise.resolve().then(function(){var rt,tn,un;ht.removeEventListener("mousemove",s.handleMouseMove,!1),ht.removeEventListener("mouseup",s.handleMouseUp,!1);var Lt=(rt=s.model)===null||rt===void 0?void 0:rt.getData();(tn=s.eventCenter)===null||tn===void 0||tn.emit(dt["".concat(s.eventType,"_MOUSEUP")],{e:qe,data:s.data||Lt}),s.isDragging&&(s.isDragging=!1,s.onDragEnd({event:qe}),(un=s.eventCenter)===null||un===void 0||un.emit(dt["".concat(s.eventType,"_DROP")],{e:qe,data:s.data||Lt}))})}),tr(this,"cancelDrag",function(){var qe,ht=(qe=window)===null||qe===void 0?void 0:qe.document;ht.removeEventListener("mousemove",s.handleMouseMove,!1),ht.removeEventListener("mouseup",s.handleMouseUp,!1),s.onDragEnd({event:null}),s.isDragging=!1}),this.onDragStart=p,this.onDragging=m,this.onDragEnd=S,this.step=he,this.isStopPropagation=Ee,this.eventType=I,this.eventCenter=re,this.model=Qe,this.data=_t}var e,n;return e=t,(n=[{key:"setStep",value:function(i){this.step=i}},{key:"setModel",value:function(i){this.model=i}}])&&pv(e.prototype,n),t}();function Jf(t){return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jf(t)}function Mc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zs(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Qf(t,e,n){return e&&Zs(t.prototype,e),n&&Zs(t,n),t}function ep(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function tp(t){var e=oh();return function(){var n,i=y(t);if(e){var s=y(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return dv(this,n)}}function dv(t,e){if(e&&(Jf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pi(t)}function Pi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function np(t){var e=typeof Map=="function"?new Map:void 0;return np=function(n){if(n===null||(i=n,Function.toString.call(i).indexOf("[native code]")===-1))return n;var i;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,s)}function s(){return rp(n,arguments,y(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f(s,n)},np(t)}function rp(t,e,n){return rp=oh()?Reflect.construct:function(i,s,c){var p=[null];p.push.apply(p,s);var v=new(Function.bind.apply(i,p));return c&&f(v,c.prototype),v},rp.apply(null,arguments)}function oh(){if(typeof Reflect=="undefined"||!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{return!1}}function f(t,e){return f=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},f(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(t)}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t,e){return t instanceof U&&e instanceof U}var C=function(t){ep(n,t);var e=tp(n);function n(i,s,c){var p;return Mc(this,n),_(Pi(p=e.call(this,3)),"x",void 0),_(Pi(p),"y",void 0),_(Pi(p),"z",void 0),p[0]=i,p[1]=s,p[2]=c,p.x=i,p.y=s,p.z=c,Object.setPrototypeOf(Pi(p),n.prototype),p}return Qf(n,[{key:"add",value:function(i){if(A(this,i))return new U(this.x+i.x,this.y+i.y);var s=this.z+i.z;return new ie((this.x+i.x)/s,(this.y+i.y)/s)}},{key:"subtract",value:function(i){if(A(this,i))return new U(this.x-i.x,this.y-i.y);var s=this.z-i.z;return s===0?new U(this.x-i.x,this.y-i.y):new ie((this.x-i.x)/s,(this.y-i.y)/s)}}]),n}(np(Array)),U=function(t){ep(n,t);var e=tp(n);function n(i,s,c){var p;return Mc(this,n),p=e.call(this,i,s,c!=null?c:0),Object.setPrototypeOf(Pi(p),n.prototype),p}return Qf(n,[{key:"toString",value:function(){return"Vector"}},{key:"dot",value:function(i){var s=this;return i.reduce(function(c,p,v){return c+p*s[v]})}},{key:"cross",value:function(i){return new n(this.y*i.z-this.z*i.y,this.z*i.x-this.x*i.z,this.x*i.y-this.y*i.x)}},{key:"getLength",value:function(){return Math.hypot(this.x,this.y)}},{key:"normalize",value:function(){var i=this.getLength();return new n(this.x/i,this.y/i)}},{key:"crossZ",value:function(i){return this.x*i.y-this.y*i.x}},{key:"angle",value:function(i){var s=this.crossZ(i),c=Math.acos(this.normalize().dot(i.normalize()));return s>=0?c:-c}}]),n}(C),ie=function(t){ep(n,t);var e=tp(n);function n(i,s){var c;return Mc(this,n),c=e.call(this,i,s,1),Object.setPrototypeOf(Pi(c),n.prototype),c}return Qf(n,[{key:"toString",value:function(){return"Point"}}]),n}(C);o(67),o(218);function le(t){return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(t)}function Oe(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||Ce(t,e)||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 Le(t){return function(e){if(Array.isArray(e))return Ue(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Ce(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  89. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ce(t,e){if(t){if(typeof t=="string")return Ue(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ue(t,e):void 0}}function Ue(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function jt(t,e,n){return e&&vt(t.prototype,e),n&&vt(t,n),t}function Be(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bt(t,e)}function He(t){var e=rn();return function(){var n,i=Pt(t);if(e){var s=Pt(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return Ft(this,n)}}function Ft(t,e){if(e&&(le(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nt(t)}function nt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dt(t){var e=typeof Map=="function"?new Map:void 0;return Dt=function(n){if(n===null||(i=n,Function.toString.call(i).indexOf("[native code]")===-1))return n;var i;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,s)}function s(){return Mt(n,arguments,Pt(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),bt(s,n)},Dt(t)}function Mt(t,e,n){return Mt=rn()?Reflect.construct:function(i,s,c){var p=[null];p.push.apply(p,s);var v=new(Function.bind.apply(i,p));return c&&bt(v,c.prototype),v},Mt.apply(null,arguments)}function rn(){if(typeof Reflect=="undefined"||!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{return!1}}function bt(t,e){return bt=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},bt(t,e)}function Pt(t){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pt(t)}function Un(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var me,ko,ar,ei,Ai,xu,kc,Na,na,op,ip,Dc,Js,ra=function(t){Be(n,t);var e=He(n);function n(){var i;st(this,n);for(var s=arguments.length,c=new Array(s),p=0;p<s;p++)c[p]=arguments[p];return Un(nt(i=e.call(this,c.length)),"rows",void 0),Un(nt(i),"columns",void 0),i.fill(new Array(3)),c.forEach(function(v,m){i[m]=v}),i.columns=c[0].length,i.rows=c.length,Object.setPrototypeOf(nt(i),n.prototype),i}return jt(n,[{key:"getRow",value:function(i){return this[i]}},{key:"getColumn",value:function(i){return Le(this.map(function(s){return s[i]}))}},{key:"transpose",value:function(){for(var i=[],s=0;s<this.columns;s++)i.push(this.getColumn(s));return Mt(n,i)}},{key:"cross",value:function(i){var s=new Array(this.rows).fill("").map(function(){return[]});if(this.columns===i.rows)for(var c=0;c<this.rows;c++)for(var p=this.getRow(c),v=function(x){var S=i.getColumn(x);s[c][x]=p.reduce(function(D,I,K){return D+I*S[K]},0)},m=0;m<i.columns;m++)v(m);return Mt(n,Le(s))}},{key:"to2D",value:function(){return this.map(function(i){return[i[0],i[1]]})}},{key:"toPoints",value:function(){return this.map(function(i){return new ie(i[0],i[1])})}},{key:"toString",value:function(){var i=Oe(this[0],2),s=i[0],c=i[1],p=Oe(this[1],2),v=p[0],m=p[1],x=Oe(this[2],2),S=x[0],D=x[1];return"matrix(".concat(s," ").concat(c," ").concat(v," ").concat(m," ").concat(S," ").concat(D,")")}},{key:"translate",value:function(i,s){return this.cross(new oa(i,s))}},{key:"rotate",value:function(i){return this.cross(new Nc(i))}},{key:"scale",value:function(i,s){return this.cross(new ap(i,s))}}]),n}(Dt(Array)),Nc=function(t){Be(n,t);var e=He(n);function n(i){var s;return st(this,n),s=e.call(this,new U(+Math.cos(i).toFixed(2),+Math.sin(i).toFixed(2),0),new U(-Math.sin(i).toFixed(2),+Math.cos(i).toFixed(2),0),new U(0,0,1)),Object.setPrototypeOf(nt(s),n.prototype),s}return jt(n,[{key:"inverse",value:function(){return this.transpose()}}]),n}(ra),ap=function(t){Be(n,t);var e=He(n);function n(i,s){var c;return st(this,n),Un(nt(c=e.call(this,new U(i,0,0),new U(0,s,0),new U(0,0,1))),"sx",void 0),Un(nt(c),"sy",void 0),c.sx=i,c.sy=s,Object.setPrototypeOf(nt(c),n.prototype),c}return jt(n,[{key:"inverse",value:function(){return new n(1/this.sx,1/this.sy)}}]),n}(ra),oa=function(t){Be(n,t);var e=He(n);function n(i,s){var c;return st(this,n),Un(nt(c=e.call(this,new U(1,0,0),new U(0,1,0),new U(i,s,1))),"tx",void 0),Un(nt(c),"ty",void 0),c.tx=i,c.ty=s,Object.setPrototypeOf(nt(c),n.prototype),c}return jt(n,[{key:"inverse",value:function(){return new n(-this.tx,-this.ty)}}]),n}(ra),Cc={node:!1,edge:!1},aS={node:!0,edge:!0};function p0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function ih(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?p0(Object(n),!0).forEach(function(i){Ti(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p0(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Qs(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||d0(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  90. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function el(t){return function(e){if(Array.isArray(e))return hv(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||d0(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  91. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function d0(t,e){if(t){if(typeof t=="string")return hv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hv(t,e):void 0}}function hv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ah(t){return ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ah(t)}function ti(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function uS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ti(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wt(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var h0,y0=200,v0=(me=function(){function t(i){(function(K,re){if(!(K instanceof re))throw new TypeError("Cannot call a class as a function")})(this,t),Ti(this,"rootEl",void 0),ti(this,"width",ko,this),ti(this,"height",ar,this),Ti(this,"theme",void 0),Ti(this,"eventCenter",void 0),Ti(this,"modelMap",new Map),Ti(this,"topElement",void 0),Ti(this,"animation",void 0),Ti(this,"idGenerator",void 0),Ti(this,"edgeGenerator",void 0),Ti(this,"nodeMoveRules",[]),Ti(this,"customTrajectory",void 0),ti(this,"edgeType",ei,this),ti(this,"nodes",Ai,this),ti(this,"edges",xu,this),ti(this,"overlapMode",kc,this),ti(this,"background",Na,this),ti(this,"transformModel",na,this),ti(this,"editConfigModel",op,this),ti(this,"gridSize",ip,this),ti(this,"partial",Dc,this),ti(this,"fakerNode",Js,this);var s,c=i.container,p=i.background,v=p===void 0?{}:p,m=i.grid,x=i.idGenerator,S=i.edgeGenerator,D=i.animation,I=i.customTrajectory;this.background=v,ah(m)==="object"&&(this.gridSize=m.size),this.rootEl=c,this.editConfigModel=new Zl(i),this.eventCenter=new Ts,this.transformModel=new rd(this.eventCenter,i),this.theme=fc(i.style),this.edgeType=i.edgeType||"polyline",this.width=i.width,this.height=i.height,this.animation=(s=D)&&typeof s!="boolean"?Pa(Ln(Cc),s):Ln(s===!0?aS:Cc),this.partial=i.partial,this.overlapMode=i.overlapMode||0,this.idGenerator=x,this.customTrajectory=I,this.edgeGenerator=rh(this,S),this.width=i.width||this.rootEl.getBoundingClientRect().width,this.height=i.height||this.rootEl.getBoundingClientRect().height,this.flowId=qi()}var e,n;return e=t,n=[{key:"nodesMap",get:function(){return this.nodes.reduce(function(i,s,c){return i[s.id]={index:c,model:s},i},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(i,s,c){return i[s.id]={index:c,model:s},i},{})}},{key:"modelsMap",get:function(){return[].concat(el(this.nodes),el(this.edges)).reduce(function(i,s){return i[s.id]=s,i},{})}},{key:"sortElements",get:function(){var i=[];this.nodes.forEach(function(x){return i.push(x)}),this.edges.forEach(function(x){return i.push(x)}),i=i.sort(function(x,S){return x.zIndex-S.zIndex});for(var s=[],c=[-200,-200],p=[this.width+y0,this.height+y0],v=0;v<i.length;v++){var m=i[v];m.visible&&(!this.partial||m.isSelected||this.isElementInArea(m,c,p,!1,!1))&&s.push(m)}return s}},{key:"textEditElement",get:function(){var i=this.nodes.find(function(c){return c.state===gn.TEXT_EDIT}),s=this.edges.find(function(c){return c.state===gn.TEXT_EDIT});return i||s}},{key:"selectElements",get:function(){var i=new Map;return this.nodes.forEach(function(s){s.isSelected&&i.set(s.id,s)}),this.edges.forEach(function(s){s.isSelected&&i.set(s.id,s)}),i}},{key:"selectNodes",get:function(){var i=[];return this.nodes.forEach(function(s){s.isSelected&&i.push(s)}),i}},{key:"getAreaElement",value:function(i,s){var c=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],v=arguments.length>4&&arguments[4]!==void 0&&arguments[4],m=[],x=[];this.nodes.forEach(function(I){return x.push(I)}),this.edges.forEach(function(I){return x.push(I)});for(var S=0;S<x.length;S++){var D=x[S];v&&!D.visible||!this.isElementInArea(D,i,s,c,p)||m.push(D)}return m}},{key:"getModel",value:function(i){return this.modelMap.get(i)}},{key:"getNodeModelById",value:function(i){var s;return this.fakerNode&&i===this.fakerNode.id?this.fakerNode:(s=this.nodesMap[i])===null||s===void 0?void 0:s.model}},{key:"getPointByClient",value:function(i){var s=i.x,c=i.y,p=this.rootEl.getBoundingClientRect(),v={x:s-p.left,y:c-p.top},m=Qs(this.transformModel.HtmlPointToCanvasPoint([v.x,v.y]),2);return{domOverlayPosition:v,canvasOverlayPosition:{x:m[0],y:m[1]}}}},{key:"isElementInArea",value:function(i,s,c){var p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],v=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];if(i.BaseType===Jn.NODE){for(var m=no(i=i),x=m.minX,S=m.minY,D=m.maxX,I=m.maxY,K=[{x,y:S},{x:D,y:S},{x:D,y:I},{x,y:I}],re=v,oe=0;oe<K.length;oe++){var he=K[oe],ye=he.x,Ee=he.y,Re=this.transformModel.CanvasPointToHtmlPoint([ye,Ee]),Qe=Qs(Re,2);if(ye=Qe[0],Ee=Qe[1],pf([ye,Ee],s,c)!==v){re=!v;break}}return re}if(i.BaseType===Jn.EDGE){var Ze=i=i,_t=Ze.startPoint,qe=Ze.endPoint,ht=this.transformModel.CanvasPointToHtmlPoint([_t.x,_t.y]),rt=this.transformModel.CanvasPointToHtmlPoint([qe.x,qe.y]),tn=pf(ht,s,c),un=pf(rt,s,c);return p?tn&&un:tn||un}return!1}},{key:"graphDataToModel",value:function(i){var s=this;if(this.width&&this.height||this.resize(),!i)return this.nodes=[],void(this.edges=[]);i.nodes?this.nodes=fs(i.nodes,function(c){return s.getModelAfterSnapToGrid(c)}):this.nodes=[],i.edges?this.edges=fs(i.edges,function(c){var p=s.getModel(c.type);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(c.type,"\u5BF9\u5E94\u7684\u8FB9\u3002"));return new p(c,s)}):this.edges=[]}},{key:"modelToGraphData",value:function(){var i=[];this.edges.forEach(function(c){var p=c.getData();p&&!c.virtual&&i.push(p)});var s=[];return this.nodes.forEach(function(c){var p=c.getData();p&&!c.virtual&&s.push(p)}),{nodes:s,edges:i}}},{key:"modelToHistoryData",value:function(){for(var i=!1,s=[],c=0;c<this.nodes.length;c++){var p=this.nodes[c];if(p.isDragging){i=!0;break}s.push(p.getHistoryData())}if(i)return!1;for(var v=!1,m=[],x=0;x<this.edges.length;x++){var S=this.edges[x];if(S.isDragging){v=!0;break}m.push(S.getHistoryData())}return!v&&{nodes:s,edges:m}}},{key:"getEdgeModelById",value:function(i){var s;return(s=this.edgesMap[i])===null||s===void 0?void 0:s.model}},{key:"getElement",value:function(i){return this.modelsMap[i]}},{key:"getNodeEdges",value:function(i){for(var s=[],c=0;c<this.edges.length;c++){var p=this.edges[c],v=this.edges[c].sourceNodeId===i,m=this.edges[c].targetNodeId===i;(v||m)&&s.push(p)}return s}},{key:"getSelectElements",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],s=this.selectElements,c={nodes:[],edges:[]};return s.forEach(function(p){if(p.BaseType===Jn.NODE&&c.nodes.push(p.getData()),p.BaseType===Jn.EDGE){var v=p.getData(),m=s.get(v.sourceNodeId)&&s.get(v.targetNodeId);(i||m)&&c.edges.push(v)}}),c}},{key:"updateAttributes",value:function(i,s){this.getElement(i).updateAttributes(s)}},{key:"changeNodeId",value:function(i,s){return s||(s=qi()),this.nodesMap[s]?"":this.nodesMap[i]?(this.edges.forEach(function(c){c.sourceNodeId===i&&(c.sourceNodeId=s),c.targetNodeId===i&&(c.targetNodeId=s)}),this.nodesMap[i].model.id=s,this.nodesMap[s]=this.nodesMap[i],s):""}},{key:"changeEdgeId",value:function(i,s){return s||(s=qi()),this.edgesMap[s]?"":this.edgesMap[i]?(this.edges.forEach(function(c){c.id===i&&c.changeEdgeId(s)}),s):""}},{key:"setFakerNode",value:function(i){this.fakerNode=i}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(i,s){return this.modelMap.set(i,s)}},{key:"toFront",value:function(i){var s,c,p,v=((s=this.nodesMap[i])===null||s===void 0?void 0:s.model)||((c=this.edgesMap[i])===null||c===void 0?void 0:c.model);v&&(this.overlapMode===$n.DEFAULT&&((p=this.topElement)===null||p===void 0||p.setZIndex(),v.setZIndex(9999),this.topElement=v),this.overlapMode===$n.INCREASE&&this.setElementZIndex(i,"top"))}},{key:"setElementZIndex",value:function(i,s){var c,p,v,m=((c=this.nodesMap[i])===null||c===void 0?void 0:c.model)||((p=this.edgesMap[i])===null||p===void 0?void 0:p.model);m&&(typeof s=="number"&&(v=s),s==="top"&&(v=Nf()),s==="bottom"&&(v=--av),m.setZIndex(v))}},{key:"deleteNode",value:function(i){var s=this.nodesMap[i].model.getData();this.deleteEdgeBySource(i),this.deleteEdgeByTarget(i),this.nodes.splice(this.nodesMap[i].index,1),this.eventCenter.emit(dt.NODE_DELETE,{data:s})}},{key:"addNode",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt.NODE_ADD,c=arguments.length>2?arguments[2]:void 0,p=_r(i);p.id&&this.nodesMap[i.id]&&delete p.id;var v=this.getModelAfterSnapToGrid(p);this.nodes.push(v);var m=v.getData(),x={data:m};return c&&(x.e=c),this.eventCenter.emit(s,x),v}},{key:"getModelAfterSnapToGrid",value:function(i){var s=this.getModel(i.type);if(!s)throw new Error("\u627E\u4E0D\u5230".concat(i.type,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var c=i.x,p=i.y;return c&&p&&(i.x=Vi(c,this.gridSize),i.y=Vi(p,this.gridSize),ah(i.text)==="object"&&(i.text.x+=i.x-c,i.text.y+=i.y-p)),new s(i,this)}},{key:"cloneNode",value:function(i){var s=this.getNodeModelById(i),c=s.getData();c.x+=30,c.y+=30,delete c.id,c.text&&(c.text.x+=30,c.text.y+=30);var p=this.addNode(c);return p.setSelected(!0),s.setSelected(!1),p.getData()}},{key:"moveNode",value:function(i,s,c){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],v=this.nodesMap[i];if(v){var m=v.model,x=m.getMoveDistance(s,c,p),S=Qs(x,2);s=S[0],c=S[1],this.moveEdge(i,s,c)}}},{key:"moveNode2Coordinate",value:function(i,s,c){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],v=this.nodesMap[i];if(v){var m=v.model,x=m.x,S=m.y,D=s-x,I=c-S;this.moveNode(i,D,I,p)}}},{key:"editText",value:function(i){this.setElementStateById(i,gn.TEXT_EDIT)}},{key:"addEdge",value:function(i){var s=_r(i),c=s.type;c||(c=this.edgeType),s.id&&this.edgesMap[s.id]&&delete s.id;var p=this.getModel(c);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(c,"\u5BF9\u5E94\u7684\u8FB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8FB9\u3002"));var v=new p(ih(ih({},s),{},{type:c}),this),m=v.getData();return this.edges.push(v),this.eventCenter.emit(dt.EDGE_ADD,{data:m}),v}},{key:"moveEdge",value:function(i,s,c){for(var p=0;p<this.edges.length;p++){var v=this.edges[p],m=v.textPosition,x=m.x,S=m.y,D=this.edges[p].sourceNodeId===i,I=this.edges[p].targetNodeId===i;D&&v.moveStartPoint(s,c),I&&v.moveEndPoint(s,c),(D||I)&&this.handleEdgeTextMove(v,x,S)}}},{key:"handleEdgeTextMove",value:function(i,s,c){var p;if(i.customTextPosition===!0)i.resetTextPosition();else if(i.modelType===Zt.POLYLINE_EDGE&&(p=i.text)!==null&&p!==void 0&&p.value){var v=i.text,m=qf(v,i.points);i.moveText(m.x-v.x,m.y-v.y)}else{var x=i.textPosition,S=x.x,D=x.y;i.moveText(S-s,D-c)}}},{key:"deleteEdgeBySourceAndTarget",value:function(i,s){for(var c=0;c<this.edges.length;c++)if(this.edges[c].sourceNodeId===i&&this.edges[c].targetNodeId===s){var p=this.edges[c].getData();this.edges.splice(c,1),c--,this.eventCenter.emit(dt.EDGE_DELETE,{data:p})}}},{key:"deleteEdgeById",value:function(i){if(this.edgesMap[i]){var s=this.edgesMap[i].index,c=this.edgesMap[i].model.getData();this.edges.splice(s,1),this.eventCenter.emit(dt.EDGE_DELETE,{data:c})}}},{key:"deleteEdgeBySource",value:function(i){for(var s=0;s<this.edges.length;s++)if(this.edges[s].sourceNodeId===i){var c=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(dt.EDGE_DELETE,{data:c})}}},{key:"deleteEdgeByTarget",value:function(i){for(var s=0;s<this.edges.length;s++)if(this.edges[s].targetNodeId===i){var c=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(dt.EDGE_DELETE,{data:c})}}},{key:"setElementStateById",value:function(i,s,c){this.nodes.forEach(function(p){p.id===i?p.setElementState(s,c):p.setElementState(gn.DEFAULT)}),this.edges.forEach(function(p){p.id===i?p.setElementState(s,c):p.setElementState(gn.DEFAULT)})}},{key:"updateText",value:function(i,s){this.nodes.forEach(function(c){c.id===i&&c.updateText(s)}),this.edges.forEach(function(c){c.id===i&&c.updateText(s)})}},{key:"selectNodeById",value:function(i){var s,c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];c||this.clearSelectElements();var p=(s=this.nodesMap[i])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectEdgeById",value:function(i){var s,c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];c||this.clearSelectElements();var p=(s=this.edgesMap[i])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectElementById",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];s||this.clearSelectElements();var c=this.getElement(i);c==null||c.setSelected(!0)}},{key:"clearSelectElements",value:function(){var i;this.selectElements.forEach(function(s){s==null||s.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===$n.DEFAULT&&((i=this.topElement)===null||i===void 0||i.setZIndex())}},{key:"moveNodes",value:function(i,s,c){for(var p=this,v=arguments.length>3&&arguments[3]!==void 0&&arguments[3],m=i.reduce(function(Ze,_t){var qe=p.nodesMap[_t].model.getMoveDistance(s,c,v);return Ze[_t]=qe,Ze},{}),x=0;x<this.edges.length;x++){var S=this.edges[x],D=S.textPosition,I=D.x,K=D.y,re=m[S.sourceNodeId],oe=m[S.targetNodeId],he=void 0,ye=void 0;if(re&&oe&&S.modelType===Zt.POLYLINE_EDGE){var Ee=Qs(re,2);he=Ee[0],ye=Ee[1],S.updatePointsList(he,ye)}else{if(re){var Re=Qs(re,2);he=Re[0],ye=Re[1],S.moveStartPoint(he,ye)}if(oe){var Qe=Qs(oe,2);he=Qe[0],ye=Qe[1],S.moveEndPoint(he,ye)}}(re||oe)&&this.handleEdgeTextMove(S,I,K)}}},{key:"addNodeMoveRules",value:function(i){this.nodeMoveRules.includes(i)||this.nodeMoveRules.push(i)}},{key:"setDefaultEdgeType",value:function(i){this.edgeType=i}},{key:"changeNodeType",value:function(i,s){var c=this.getNodeModelById(i);if(c){var p=c.getData();p.type=s;var v=this.getModel(s);if(!v)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 v(p,this);this.nodes.splice(this.nodesMap[i].index,1,m),this.getNodeEdges(i).forEach(function(x){if(x.sourceNodeId===i){var S=Rd(m,x.startPoint,m.width,m.height);x.updateStartPoint(S)}if(x.targetNodeId===i){var D=Rd(m,x.endPoint,m.width,m.height);x.updateEndPoint(D)}})}}},{key:"changeEdgeType",value:function(i,s){var c=this.getEdgeModelById(i);if(c&&c.type!==s){var p=c.getData();p.type=s;var v=this.getModel(s);if(!v)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 v(p,this);this.edges.splice(this.edgesMap[i].index,1,m)}}},{key:"getNodeIncomingEdge",value:function(i){var s=[];return this.edges.forEach(function(c){c.targetNodeId===i&&s.push(c)}),s}},{key:"getNodeOutgoingEdge",value:function(i){var s=[];return this.edges.forEach(function(c){c.sourceNodeId===i&&s.push(c)}),s}},{key:"getAnchorIncomingEdge",value:function(i){var s=[];return this.edges.forEach(function(c){c.targetAnchorId===i&&s.push(c)}),s}},{key:"getAnchorOutcomingEdge",value:function(i){var s=[];return this.edges.forEach(function(c){c.sourceAnchorId===i&&s.push(c)}),s}},{key:"getNodeIncomingNode",value:function(i){var s=this,c=[];return this.edges.forEach(function(p){p.targetNodeId===i&&c.push(s.nodesMap[p.sourceNodeId].model)}),c}},{key:"getNodeOutgoingNode",value:function(i){var s=this,c=[];return this.edges.forEach(function(p){p.sourceNodeId===i&&c.push(s.nodesMap[p.targetNodeId].model)}),c}},{key:"setTheme",value:function(i){this.theme=fc(ih(ih({},this.theme),i))}},{key:"resize",value:function(i,s){this.width=i||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 i=this.nodes,s=[],c=[];i.forEach(function(D){var I=D.x,K=D.y,re=D.width,oe=D.height,he=D.getNodeStyle().strokeWidth,ye=he===void 0?0:he,Ee=I+re/2+ye,Re=I-re/2-ye,Qe=K+oe/2+ye,Ze=K-oe/2-ye;s=s.concat([Ee,Re].filter(function(_t){return!Number.isNaN(_t)})),c=c.concat([Qe,Ze].filter(function(_t){return!Number.isNaN(_t)}))});var p=Math.min.apply(Math,el(s)),v=Math.max.apply(Math,el(s)),m=Math.min.apply(Math,el(c)),x=v-p||0,S=Math.max.apply(Math,el(c))-m||0;return{virtualRectWidth:x,virtualRectHeight:S,virtualRectCenterPositionX:p+x/2,virtualRectCenterPositionY:m+S/2}}},{key:"translateCenter",value:function(){var i=this.nodes,s=this.width,c=this.height,p=this.rootEl,v=this.transformModel;if(i.length){var m=s||p.clientWidth,x=c||p.clientHeight,S=this.getVirtualRectSize(),D=S.virtualRectCenterPositionX,I=S.virtualRectCenterPositionY;v.focusOn(D,I,m,x)}}},{key:"fitView",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:20,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,c=this.nodes,p=this.width,v=this.height,m=this.rootEl,x=this.transformModel;if(c.length){var S=p||m.clientWidth,D=v||m.clientHeight,I=this.getVirtualRectSize(),K=I.virtualRectWidth,re=I.virtualRectHeight,oe=I.virtualRectCenterPositionX,he=I.virtualRectCenterPositionY,ye=(K+s)/S,Ee=(re+i)/D,Re=0;Re=1/Math.max(ye,Ee);var Qe=[S/2,D/2];x.zoom(Re,Qe),x.focusOn(oe,he,S,D)}}},{key:"openEdgeAnimation",value:function(i){this.getEdgeModelById(i).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(i){this.getEdgeModelById(i).closeEdgeAnimation()}}],n&&uS(e.prototype,n),t}(),ko=wt(me.prototype,"width",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ar=wt(me.prototype,"height",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ei=wt(me.prototype,"edgeType",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ai=wt(me.prototype,"nodes",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),xu=wt(me.prototype,"edges",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),kc=wt(me.prototype,"overlapMode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return $n.DEFAULT}}),Na=wt(me.prototype,"background",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),na=wt(me.prototype,"transformModel",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),op=wt(me.prototype,"editConfigModel",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ip=wt(me.prototype,"gridSize",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Dc=wt(me.prototype,"partial",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Js=wt(me.prototype,"fakerNode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt(me.prototype,"nodesMap",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"nodesMap"),me.prototype),wt(me.prototype,"edgesMap",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"edgesMap"),me.prototype),wt(me.prototype,"modelsMap",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"modelsMap"),me.prototype),wt(me.prototype,"sortElements",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"sortElements"),me.prototype),wt(me.prototype,"textEditElement",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"textEditElement"),me.prototype),wt(me.prototype,"selectElements",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"selectElements"),me.prototype),wt(me.prototype,"selectNodes",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"selectNodes"),me.prototype),wt(me.prototype,"setFakerNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setFakerNode"),me.prototype),wt(me.prototype,"removeFakerNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"removeFakerNode"),me.prototype),wt(me.prototype,"setModel",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setModel"),me.prototype),wt(me.prototype,"toFront",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"toFront"),me.prototype),wt(me.prototype,"setElementZIndex",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setElementZIndex"),me.prototype),wt(me.prototype,"deleteNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteNode"),me.prototype),wt(me.prototype,"addNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"addNode"),me.prototype),wt(me.prototype,"cloneNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"cloneNode"),me.prototype),wt(me.prototype,"moveNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"moveNode"),me.prototype),wt(me.prototype,"moveNode2Coordinate",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"moveNode2Coordinate"),me.prototype),wt(me.prototype,"editText",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"editText"),me.prototype),wt(me.prototype,"addEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"addEdge"),me.prototype),wt(me.prototype,"moveEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"moveEdge"),me.prototype),wt(me.prototype,"deleteEdgeBySourceAndTarget",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteEdgeBySourceAndTarget"),me.prototype),wt(me.prototype,"deleteEdgeById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteEdgeById"),me.prototype),wt(me.prototype,"deleteEdgeBySource",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteEdgeBySource"),me.prototype),wt(me.prototype,"deleteEdgeByTarget",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteEdgeByTarget"),me.prototype),wt(me.prototype,"setElementStateById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setElementStateById"),me.prototype),wt(me.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"updateText"),me.prototype),wt(me.prototype,"selectNodeById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"selectNodeById"),me.prototype),wt(me.prototype,"selectEdgeById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"selectEdgeById"),me.prototype),wt(me.prototype,"selectElementById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"selectElementById"),me.prototype),wt(me.prototype,"clearSelectElements",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"clearSelectElements"),me.prototype),wt(me.prototype,"moveNodes",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"moveNodes"),me.prototype),wt(me.prototype,"setDefaultEdgeType",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setDefaultEdgeType"),me.prototype),wt(me.prototype,"changeNodeType",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"changeNodeType"),me.prototype),wt(me.prototype,"changeEdgeType",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"changeEdgeType"),me.prototype),wt(me.prototype,"getNodeIncomingEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getNodeIncomingEdge"),me.prototype),wt(me.prototype,"getNodeOutgoingEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getNodeOutgoingEdge"),me.prototype),wt(me.prototype,"getAnchorIncomingEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getAnchorIncomingEdge"),me.prototype),wt(me.prototype,"getAnchorOutcomingEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getAnchorOutcomingEdge"),me.prototype),wt(me.prototype,"getNodeIncomingNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getNodeIncomingNode"),me.prototype),wt(me.prototype,"getNodeOutgoingNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getNodeOutgoingNode"),me.prototype),wt(me.prototype,"setTheme",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setTheme"),me.prototype),wt(me.prototype,"resize",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"resize"),me.prototype),wt(me.prototype,"clearData",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"clearData"),me.prototype),wt(me.prototype,"translateCenter",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"translateCenter"),me.prototype),wt(me.prototype,"fitView",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"fitView"),me.prototype),wt(me.prototype,"openEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"openEdgeAnimation"),me.prototype),wt(me.prototype,"closeEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"closeEdgeAnimation"),me.prototype),me),cS=v0;function yv(t){return yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yv(t)}function vv(){return vv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},vv.apply(this,arguments)}function sS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function gv(t,e){return gv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},gv(t,e)}function lS(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=uh(t);if(e){var s=uh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return fS(this,n)}}function fS(t,e){if(e&&(yv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ia(t)}function ia(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uh(t){return uh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uh(t)}function Ca(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g0,pS=Ni(h0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&gv(c,p)})(s,t);var e,n,i=lS(s);function s(c){var p;(function(S,D){if(!(S instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),Ca(ia(p=i.call(this)),"stepDrag",void 0),Ca(ia(p),"stepScrollX",0),Ca(ia(p),"stepScrollY",0),Ca(ia(p),"onDragging",function(S){var D=S.deltaX,I=S.deltaY;p.setState({isDragging:!0});var K=p.props.graphModel,re=K.transformModel;K.editConfigModel.stopMoveGraph!==!0&&re.translate(D,I)}),Ca(ia(p),"onDragEnd",function(){p.setState({isDragging:!1})}),Ca(ia(p),"zoomHandler",function(S){var D=p.props,I=D.graphModel,K=I.editConfigModel,re=I.transformModel,oe=I.gridSize,he=D.graphModel,ye=S.deltaX,Ee=S.deltaY;if(K.stopScrollGraph||S.ctrlKey===!0){if(!K.stopZoomGraph){S.preventDefault();var Re=he.getPointByClient({x:S.clientX,y:S.clientY}).canvasOverlayPosition,Qe=Re.x,Ze=Re.y;re.zoom(S.deltaY<0,[Qe,Ze])}}else{if(S.preventDefault(),p.stepScrollX+=ye,p.stepScrollY+=Ee,Math.abs(p.stepScrollX)>=oe){var _t=p.stepScrollX%oe,qe=p.stepScrollX-_t;re.translate(-qe*re.SCALE_X,0),p.stepScrollX=_t}if(Math.abs(p.stepScrollY)>=oe){var ht=p.stepScrollY%oe,rt=p.stepScrollY-ht;re.translate(0,-rt*re.SCALE_Y),p.stepScrollY=ht}}}),Ca(ia(p),"clickHandler",function(S){if(S.target.getAttribute("name")==="canvas-overlay"){var D=p.props.graphModel;D.selectElements.size>0&&D.clearSelectElements(),D.eventCenter.emit(dt.BLANK_CLICK,{e:S})}}),Ca(ia(p),"handleContextMenu",function(S){if(S.target.getAttribute("name")==="canvas-overlay"){S.preventDefault();var D=p.props.graphModel,I=D.getPointByClient({x:S.clientX,y:S.clientY});D.eventCenter.emit(dt.BLANK_CONTEXTMENU,{e:S,position:I})}}),Ca(ia(p),"mouseDownHandler",function(S){var D=p.props.graphModel,I=D.eventCenter,K=D.editConfigModel,re=D.transformModel.SCALE_X,oe=D.gridSize,he=S.target,ye=!K.adjustEdge&&!K.adjustNodePosition;(he.getAttribute("name")==="canvas-overlay"||ye)&&(K.stopMoveGraph!==!0?(p.stepDrag.setStep(oe*re),p.stepDrag.handleMouseDown(S)):I.emit(dt.BLANK_MOUSEDOWN,{e:S}),p.clickHandler(S))});var v=c.graphModel,m=v.gridSize,x=v.eventCenter;return p.stepDrag=new Qo({onDragging:p.onDragging,onDragEnd:p.onDragEnd,step:m,eventType:"BLANK",isStopPropagation:!1,eventCenter:x,model:null}),p.state={isDragging:!1},p}return e=s,(n=[{key:"render",value:function(){var c=this.props.graphModel.transformModel.getTransformStyle().transform,p=this.props,v=p.children,m=p.dnd,x=this.state.isDragging;return Object(fe.g)("svg",vv({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(fe.g)("g",{transform:c},v))}}])&&sS(e.prototype,n),s}(fe.a))||h0;function bv(t){return bv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bv(t)}function dS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mv(t,e){return mv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},mv(t,e)}function yS(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ch(t);if(e){var s=ch(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return vS(this,n)}}function vS(t,e){if(e&&(bv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function ch(t){return ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ch(t)}var gS=Ni(g0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&mv(c,p)})(s,t);var e,n,i=yS(s);function s(){return dS(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"componentDidMount",value:function(){this.triggerToolRender()}},{key:"componentDidUpdate",value:function(){this.triggerToolRender()}},{key:"getTools",value:function(){var c=this.props,p=c.tool,v=c.graphModel,m=p.getTools().map(function(x){return Object(fe.g)(x,{graphModel:v,logicFlow:p.instance})});return p.components=m,m}},{key:"triggerToolRender",value:function(){var c=this.props,p=c.tool,v=c.graphModel,m=document.querySelector("#ToolOverlay_".concat(v.flowId)),x=p.getInstance();x.components.forEach(function(S){return S(x,m)}),x.components=[]}},{key:"render",value:function(){var c=this.props.graphModel;return Object(fe.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(c.flowId)},this.getTools())}}])&&hS(e.prototype,n),s}(fe.a))||g0;function _v(t){return _v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_v(t)}function bS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ov(t,e){return Ov=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ov(t,e)}function _S(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=sh(t);if(e){var s=sh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return OS(this,n)}}function OS(t,e){if(e&&(_v(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function sh(t){return sh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sh(t)}var b0,wS=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Ov(c,p)})(s,t);var e,n,i=_S(s);function s(){return bS(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"render",value:function(){var c=this.props.background;return Object(fe.g)("div",{className:"lf-background"},Object(fe.g)("div",{style:c,className:"lf-background-area"}))}}])&&mS(e.prototype,n),s}(fe.a);function wv(t){return wv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wv(t)}function xS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ES(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function xv(t,e){return xv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xv(t,e)}function SS(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=lh(t);if(e){var s=lh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return jS(this,n)}}function jS(t,e){if(e&&(wv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m0(t)}function m0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lh(t){return lh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lh(t)}function PS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _0=Ni(b0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&xv(c,p)})(s,t);var e,n,i=SS(s);function s(){var c;xS(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return PS(m0(c=i.call.apply(i,[this].concat(v))),"id",qi()),c}return e=s,(n=[{key:"renderDot",value:function(){var c=this.props,p=c.config,v=p.color,m=p.thickness,x=m===void 0?2:m,S=c.size,D=c.visible,I=Math.min(Math.max(2,x),S/2),K=1;return D||(K=0),Object(fe.g)("rect",{width:I,height:I,rx:I/2,ry:I/2,fill:v,opacity:K})}},{key:"renderMesh",value:function(){var c=this.props,p=c.config,v=p.color,m=p.thickness,x=m===void 0?1:m,S=c.size,D=c.visible,I=Math.min(Math.max(1,x),S/2),K="M ".concat(S," 0 H0 M0 0 V0 ").concat(S),re=1;return D||(re=0),Object(fe.g)("path",{d:K,stroke:v,strokeWidth:I,opacity:re})}},{key:"render",value:function(){var c=this.props,p=c.type,v=c.size,m=c.graphModel.transformModel,x=[m.SCALE_X,m.SKEW_Y,m.SKEW_X,m.SCALE_Y,m.TRANSLATE_X,m.TRANSLATE_Y].join(","),S="matrix(".concat(x,")");return Object(fe.g)("div",{className:"lf-grid"},Object(fe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(fe.g)("defs",null,Object(fe.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:S,x:"0",y:"0",width:v,height:v},p==="dot"&&this.renderDot(),p==="mesh"&&this.renderMesh())),Object(fe.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&ES(e.prototype,n),s}(fe.a))||b0;_0.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(53);function Ev(t){return Ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ev(t)}function AS(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return O0(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return O0(n,i)}}(t,e)||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 O0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var w0,tl=function(t){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(t).forEach(function(n){var i=AS(n,2),s=i[0],c=i[1];(s==="style"||Ev(c)!=="object")&&(e[s]=c)}),Object(fe.g)("line",e)};function Sv(t){return Sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sv(t)}function x0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function fh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x0(Object(n),!0).forEach(function(i){TS(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function TS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function MS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function jv(t,e){return jv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},jv(t,e)}function DS(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ph(t);if(e){var s=ph(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return NS(this,n)}}function NS(t,e){if(e&&(Sv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function ph(t){return ph=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ph(t)}var E0,CS=Ni(w0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&jv(c,p)})(s,t);var e,n,i=DS(s);function s(){return MS(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"render",value:function(){var c=this.props.snaplineModel,p=c.position,v=c.isShowHorizontal,m=c.isShowVertical,x=c.getStyle(),S=p.x,D=S===void 0?0:S,I=p.y,K=I===void 0?0:I,re=fh(fh({x1:-1e5,y1:K,x2:1e5,y2:K},x),{},{stroke:v?x.stroke:"none"}),oe=fh(fh({x1:D,y1:-1e5,x2:D,y2:1e5},x),{},{stroke:m?x.stroke:"none"});return Object(fe.g)("g",{className:"lf-snapline"},Object(fe.g)(tl,re),Object(fe.g)(tl,oe))}}])&&kS(e.prototype,n),s}(fe.a))||w0;function Pv(t){return Pv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pv(t)}function RS(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return S0(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return S0(n,i)}}(t,e)||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 S0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Eu(t){var e=t.x,n=t.y,i=t.width,s=t.height,c=t.className,p=t.radius,v=e-i/2,m=n-s/2,x={};return Object.entries(t).forEach(function(S){var D=RS(S,2),I=D[0],K=D[1];Pv(K)!=="object"&&(x[I]=K)}),x.className=c?"lf-basic-shape ".concat(c):"lf-basic-shape",p&&(x.rx=p,x.ry=p),x.x=v,x.y=m,Object(fe.g)("rect",x)}function Av(t){return Av=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Av(t)}function nl(){return nl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},nl.apply(this,arguments)}function j0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function P0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j0(Object(n),!0).forEach(function(i){IS(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function IS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Tv(t,e){return Tv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Tv(t,e)}function zS(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=dh(t);if(e){var s=dh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return FS(this,n)}}function FS(t,e){if(e&&(Av(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function dh(t){return dh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dh(t)}Eu.defaultProps={className:"",radius:""};var A0,$S=Ni(E0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Tv(c,p)})(s,t);var e,n,i=zS(s);function s(){return LS(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getNodesOutline",value:function(){var c=this.props.graphModel,p=c.nodes,v=c.editConfigModel,m=v.hoverOutline,x=v.nodeSelectedOutline,S=[];return p.forEach(function(D){if(D.isHovered||D.isSelected){var I=D.isHovered,K=D.isSelected,re=D.x,oe=D.y,he=D.width,ye=D.height;if(x&&K||m&&I){var Ee=D.getOutlineStyle(),Re={};if(Object.keys(Ee).forEach(function(Ze){Ze!=="hover"&&(Re[Ze]=Ee[Ze])}),I){var Qe=Ee.hover;Re=P0(P0({},Re),Qe)}S.push(Object(fe.g)(Eu,nl({transform:D.transform,className:"lf-outline-node",x:re,y:oe,width:he+10,height:ye+10},Re)))}}}),S}},{key:"getEdgeOutline",value:function(){for(var c=this.props.graphModel,p=c.edges,v=c.editConfigModel,m=v.edgeSelectedOutline,x=v.hoverOutline,S=[],D=0;D<p.length;D++){var I=p[D];(m&&I.isSelected||x&&I.isHovered)&&(I.modelType===Zt.LINE_EDGE?S.push(this.getLineOutline(I)):I.modelType===Zt.POLYLINE_EDGE?S.push(this.getPolylineOutline(I)):I.modelType===Zt.BEZIER_EDGE&&S.push(this.getBezierOutline(I)))}return S}},{key:"getLineOutline",value:function(c){var p=c.startPoint,v=c.endPoint,m=(p.x+v.x)/2,x=(p.y+v.y)/2,S=Math.abs(p.x-v.x)+10,D=Math.abs(p.y-v.y)+10,I=c.getOutlineStyle();return Object(fe.g)(Eu,nl({className:"lf-outline-edge",x:m,y:x,width:S,height:D},I))}},{key:"getPolylineOutline",value:function(c){var p=c.points,v=ta(p),m=ea(v,8),x=m.x,S=m.y,D=m.width,I=m.height,K=c.getOutlineStyle();return Object(fe.g)(Eu,nl({className:"lf-outline",x,y:S,width:D,height:I},K))}},{key:"getBezierOutline",value:function(c){var p=c.path,v=xr(p),m=ea(v,8),x=m.x,S=m.y,D=m.width,I=m.height,K=c.getOutlineStyle();return Object(fe.g)(Eu,nl({className:"lf-outline",x,y:S,width:D,height:I},K))}},{key:"render",value:function(){return Object(fe.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&BS(e.prototype,n),s}(fe.a))||E0;function Mv(t){return Mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mv(t)}function WS(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return T0(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return T0(n,i)}}(t,e)||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 T0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function rl(t){var e=t.x,n=e===void 0?0:e,i=t.y,s=i===void 0?0:i,c=t.r,p=c===void 0?4:c,v=t.className,m={cx:n,cy:s,r:p,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(t).forEach(function(x){var S=WS(x,2),D=S[0],I=S[1];Mv(I)!=="object"&&(m[D]=I)}),m.className=v?"lf-basic-shape ".concat(v):"lf-basic-shape",Object(fe.g)("circle",m)}function kv(t){return kv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kv(t)}function US(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return M0(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return M0(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  95. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function M0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function up(){return up=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},up.apply(this,arguments)}function k0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D0(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function N0(t,e,n){return e&&D0(t.prototype,e),n&&D0(t,n),t}function C0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dv(t,e)}function Dv(t,e){return Dv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Dv(t,e)}function R0(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=yh(t);if(e){var s=yh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return GS(this,n)}}function GS(t,e){if(e&&(kv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hh(t)}function hh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yh(t){return yh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yh(t)}function Nv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var I0,L0=function(t){C0(n,t);var e=R0(n);function n(){var i;return k0(this,n),Nv(hh(i=e.call(this)),"dragHandler",void 0),Nv(hh(i),"onDragging",function(s){var c=s.event,p=i.props,v=p.graphModel,m=p.bezierModel,x=p.type,S=v.getPointByClient({x:c.clientX,y:c.clientY}).canvasOverlayPosition,D=S.x,I=S.y;m.updateAdjustAnchor({x:D,y:I},x),v.eventCenter.emit(dt.EDGE_ADJUST,{data:m.getData()})}),Nv(hh(i),"onDragEnd",function(){i.props.bezierModel.isDragging=!1}),i.dragHandler=new Qo({onDragging:i.onDragging,onDragEnd:i.onDragEnd}),i}return N0(n,[{key:"render",value:function(){var i=this,s=this.props.position,c=s.x,p=s.y,v=this.props.bezierModel.getEdgeStyle().adjustAnchor;return Object(fe.g)(rl,up({className:"lf-bezier-adjust-anchor",x:c,y:p},v,{onMouseDown:function(m){i.dragHandler.handleMouseDown(m)}}))}}]),n}(fe.a),HS=Ni(A0=function(t){C0(n,t);var e=R0(n);function n(){return k0(this,n),e.apply(this,arguments)}return N0(n,[{key:"getBezierAdjust",value:function(i,s){var c=i.path,p=i.id,v=US(xr(c),4),m=v[0],x=v[1],S=v[2],D=v[3],I=i.getEdgeStyle().adjustLine,K=[];return K.push(Object(fe.g)(tl,up({x1:m.x,y1:m.y,x2:x.x,y2:x.y},I))),K.push(Object(fe.g)(L0,{position:x,bezierModel:i,graphModel:s,key:"".concat(p,"_ePre"),type:"sNext"})),K.push(Object(fe.g)(tl,up({x1:D.x,y1:D.y,x2:S.x,y2:S.y},I))),K.push(Object(fe.g)(L0,{position:S,bezierModel:i,graphModel:s,key:"".concat(p,"_sNext"),type:"ePre"})),K}},{key:"selectedBezierEdge",value:function(){for(var i=this.props.graphModel,s=i.edges,c=[],p=0;p<s.length;p++){var v=s[p];v.isSelected&&v.modelType===Zt.BEZIER_EDGE&&v.draggable&&c.push(this.getBezierAdjust(v,i))}return c}},{key:"render",value:function(){return Object(fe.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),n}(fe.a))||A0;function Cv(t){return Cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cv(t)}function XS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Rv(t,e){return Rv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Rv(t,e)}function VS(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=vh(t);if(e){var s=vh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return KS(this,n)}}function KS(t,e){if(e&&(Cv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function vh(t){return vh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vh(t)}var B0,qS=Ni(I0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Rv(c,p)})(s,t);var e,n,i=VS(s);function s(){return XS(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"render",value:function(){var c=this.props.graphModel.transformModel.getTransformStyle().transform,p=this.props.children;return Object(fe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(fe.g)("g",{transform:c},p))}}])&&YS(e.prototype,n),s}(fe.a))||I0;function Iv(t){return Iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iv(t)}function Lv(){return Lv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Lv.apply(this,arguments)}function ZS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Bv(t,e){return Bv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Bv(t,e)}function QS(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=gh(t);if(e){var s=gh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return ej(this,n)}}function ej(t,e){if(e&&(Iv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function gh(t){return gh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gh(t)}var tj=Ni(B0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Bv(c,p)})(s,t);var e,n,i=QS(s);function s(){return ZS(this,s),i.apply(this,arguments)}return e=s,n=[{key:"getComponent",value:function(c,p){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"canvas-overlay",m=this.props.getView,x=m(c.type);return Object(fe.g)(x,{key:c.id,model:c,graphModel:p,overlay:v})}},{key:"render",value:function(){var c=this,p=this.props,v=p.graphModel,m=p.tool,x=p.options,S=p.dnd,D=p.snaplineModel,I={};x.width&&(I.width="".concat(v.width,"px")),x.height&&(I.height="".concat(v.height,"px"));var K=x.grid,re=v.fakerNode,oe=v.editConfigModel.adjustEdge;return Object(fe.g)("div",{className:"lf-graph","flow-id":v.flowId,style:I},Object(fe.g)(pS,{graphModel:v,dnd:S},Object(fe.g)("g",{className:"lf-base"},fs(v.sortElements,function(he){return c.getComponent(he,v)})),re?this.getComponent(re,v):""),Object(fe.g)(qS,{graphModel:v},Object(fe.g)($S,{graphModel:v}),oe?Object(fe.g)(HS,{graphModel:v}):"",x.snapline!==!1?Object(fe.g)(CS,{snaplineModel:D}):""),Object(fe.g)(gS,{graphModel:v,tool:m}),x.background&&Object(fe.g)(wS,{background:x.background}),x.grid&&Object(fe.g)(_0,Lv({},K,{graphModel:v})))}}],n&&JS(e.prototype,n),s}(fe.a))||B0,nj=tj;function z0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function bh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z0(Object(n),!0).forEach(function(i){Ra(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z0(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function rj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ra(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oj=function(){function t(i){var s=this;(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,t),Ra(this,"nodeConfig",void 0),Ra(this,"lf",void 0),Ra(this,"fakerNode",void 0),Ra(this,"stopDrag",function(){s.nodeConfig=null,window.document.removeEventListener("mouseup",s.stopDrag)}),Ra(this,"dragEnter",function(p){s.nodeConfig&&!s.fakerNode&&(s.fakerNode=s.lf.createFakerNode(bh(bh({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY}))))}),Ra(this,"onDragOver",function(p){if(p.preventDefault(),s.fakerNode){var v=s.clientToLocalPoint({x:p.clientX,y:p.clientY}),m=v.x,x=v.y;s.fakerNode.moveTo(m,x);var S=s.fakerNode.getData();s.lf.setNodeSnapLine(S),s.lf.graphModel.eventCenter.emit(dt.NODE_DND_DRAG,{data:S})}return!1}),Ra(this,"onDragLeave",function(){s.fakerNode&&(s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)}),Ra(this,"onDrop",function(p){s.lf.graphModel&&p&&s.nodeConfig&&(s.lf.addNode(bh(bh({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY})),dt.NODE_DND_ADD,p),p.preventDefault(),p.stopPropagation(),s.nodeConfig=null,s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)});var c=i.lf;this.lf=c}var e,n;return e=t,(n=[{key:"clientToLocalPoint",value:function(i){var s=i.x,c=i.y,p=au(this.lf.options,["grid","size"]),v=this.lf.graphModel.getPointByClient({x:s,y:c}).canvasOverlayPosition,m=v.x,x=v.y;return{x:Vi(m,p),y:Vi(x,p)}}},{key:"startDrag",value:function(i){var s=this.lf.graphModel.editConfigModel;s!=null&&s.isSilentMode||(this.nodeConfig=i,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}}}])&&rj(e.prototype,n),t}();function F0(t){var e=t.container,n=t.grid,i=t.width,s=t.height;if(!e)throw new Error("\u8BF7\u68C0\u67E5 container \u53C2\u6570\u662F\u5426\u6709\u6548");if(typeof i=="string"||typeof s=="string")throw new Error("width\u6216height\u4E0D\u652F\u6301\u4F20\u5165\u5B57\u7B26\u4E32\uFF0C\u8BF7\u4F20\u6570\u5B57");return n&&(t.grid=Pa({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},n)),Pa({},W0,t)}var mn,$0,W0={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function zv(t){return zv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zv(t)}function Fv(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return U0(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return U0(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  96. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function U0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function G0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function mh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G0(Object(n),!0).forEach(function(i){H0(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G0(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ij(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function aj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function cp(){return cp=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=cj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},cp.apply(this,arguments)}function cj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Su(t))!==null;);return t}function $v(t,e){return $v=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$v(t,e)}function sj(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Su(t);if(e){var s=Su(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return lj(this,n)}}function lj(t,e){if(e&&(zv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _h(t)}function _h(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Su(t){return Su=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Su(t)}function H0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mi(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Wv=(mn=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&$v(c,p)})(s,t);var e,n,i=sj(s);function s(){var c;aj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return H0(_h(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.BEZIER_EDGE),ij(_h(c),"path",$0,_h(c)),c}return e=s,(n=[{key:"initEdgeData",value:function(c){this.offset=100,cp(Su(s.prototype),"initEdgeData",this).call(this,c)}},{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.bezier;return mh(mh({},cp(Su(s.prototype),"getEdgeStyle",this).call(this)),Ln(c))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var c=0,p=0;return this.pointsList.forEach(function(v){var m=v.x,x=v.y;c+=m,p+=x}),{x:c/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 c=cp(Su(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(v){return{x:v.x,y:v.y}});return mh(mh({},c),{},{pointsList:p})}},{key:"getControls",value:function(){var c=this.startPoint,p=this.endPoint;return Vf({start:c,end:p,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(c){var p=Fv(c,4),v=p[0],m=p[1],x=p[2],S=p[3];return"M ".concat(v.x," ").concat(v.y,`
  97. C `).concat(m.x," ").concat(m.y,`,
  98. `).concat(x.x," ").concat(x.y,`,
  99. `).concat(S.x," ").concat(S.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var c=this.getControls(),p=c.sNext,v=c.ePre;this.updatePath(p,v)}},{key:"updatePath",value:function(c,p){c=Ln(c),p=Ln(p);var v={x:this.startPoint.x,y:this.startPoint.y},m={x:this.endPoint.x,y:this.endPoint.y};if(!c||!p){var x=this.getControls();c=x.sNext,p=x.ePre}this.pointsList=[v,c,p,m],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(c){this.startPoint=Object.assign({},c),this.updatePoints()}},{key:"updateEndPoint",value:function(c){this.endPoint=Object.assign({},c),this.updatePoints()}},{key:"moveStartPoint",value:function(c,p){this.startPoint.x+=c,this.startPoint.y+=p;var v=Fv(this.pointsList,3),m=v[1],x=v[2];m.x+=c,m.y+=p,this.updatePath(m,x)}},{key:"moveEndPoint",value:function(c,p){this.endPoint.x+=c,this.endPoint.y+=p;var v=Fv(this.pointsList,3),m=v[1],x=v[2];x.x+=c,x.y+=p,this.updatePath(m,x)}},{key:"updateAdjustAnchor",value:function(c,p){p==="sNext"?this.pointsList[1]=c:p==="ePre"&&(this.pointsList[2]=c),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 c=this.pointsList;return c[c.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(c){var p=c.startPoint,v=c.endPoint,m=c.sourceNode,x=c.targetNode,S=Vf({start:p,end:v,sourceNode:m,targetNode:x,offset:this.offset}),D=S.sNext,I=S.ePre;this.pointsList=[p,D,I,v],this.initPoints()}}])&&uj(e.prototype,n),s}(_u),$0=Mi(mn.prototype,"path",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Mi(mn.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"initPoints"),mn.prototype),Mi(mn.prototype,"updatePoints",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updatePoints"),mn.prototype),Mi(mn.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updateStartPoint"),mn.prototype),Mi(mn.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updateEndPoint"),mn.prototype),Mi(mn.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"moveStartPoint"),mn.prototype),Mi(mn.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"moveEndPoint"),mn.prototype),Mi(mn.prototype,"updateAdjustAnchor",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updateAdjustAnchor"),mn.prototype),Mi(mn.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"getAdjustStart"),mn.prototype),Mi(mn.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"getAdjustEnd"),mn.prototype),Mi(mn.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updateAfterAdjustStartAndEnd"),mn.prototype),mn),Xe,X0,Y0,V0,K0,q0,Z0,J0,Q0,e_,t_,n_,r_,o_,i_,a_,u_,c_,s_,l_,f_,p_,d_,fj=function(t){return t==null};function pj(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||h_(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  100. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Uv(t){return Uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uv(t)}function h_(t,e){if(t){if(typeof t=="string")return y_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y_(t,e):void 0}}function y_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function v_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function io(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?v_(Object(n),!0).forEach(function(i){mo(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ur(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function dj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kt(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Ia,g_,La=(Xe=function(){function t(i,s){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),mo(this,"id",""),ur(this,"type",X0,this),ur(this,"x",Y0,this),ur(this,"y",V0,this),ur(this,"text",K0,this),ur(this,"properties",q0,this),ur(this,"_width",Z0,this),ur(this,"_height",J0,this),ur(this,"anchorsOffset",Q0,this),ur(this,"isSelected",e_,this),ur(this,"isHovered",t_,this),ur(this,"isShowAnchor",n_,this),ur(this,"isDragging",r_,this),ur(this,"isHitable",o_,this),ur(this,"draggable",i_,this),ur(this,"visible",a_,this),ur(this,"enableRotate",u_,this),mo(this,"virtual",!1),mo(this,"graphModel",void 0),ur(this,"zIndex",c_,this),ur(this,"state",s_,this),ur(this,"autoToFront",l_,this),ur(this,"style",f_,this),ur(this,"transform",p_,this),ur(this,"_rotate",d_,this),mo(this,"BaseType",Jn.NODE),mo(this,"modelType",Zt.NODE),mo(this,"additionStateData",void 0),mo(this,"targetRules",[]),mo(this,"sourceRules",[]),mo(this,"moveRules",[]),mo(this,"hasSetTargetRules",!1),mo(this,"hasSetSourceRules",!1),this.graphModel=s,this.initNodeData(i),this.setAttributes()}var e,n;return e=t,n=[{key:"width",get:function(){return this._width},set:function(i){this._width=i}},{key:"height",get:function(){return this._height},set:function(i){this._height=i}},{key:"rotate",get:function(){return this._rotate},set:function(i){this._rotate=i;var s=this.x,c=s===void 0?0:s,p=this.y,v=p===void 0?0:p;this.transform=new oa(-c,-v).rotate(i).translate(c,v).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(i){if(i.properties||(i.properties={}),!i.id){var s=this.graphModel.idGenerator,c=s&&s(i.type),p=this.createId();i.id=p||c||qi()}this.formatText(i),br(this,function(v){return gi(v,["id","type","x","y","text","properties","virtual","rotate"])}(i)),this.graphModel.overlapMode===$n.INCREASE&&(this.zIndex=i.zIndex||Nf())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(i){i.text||(i.text={value:"",x:i.x,y:i.y,draggable:!1,editable:!0}),i.text&&typeof i.text=="string"?i.text={value:i.text,x:i.x,y:i.y,draggable:!1,editable:!0}:i.text&&i.text.editable===void 0&&(i.text.editable=!0)}},{key:"getData",value:function(){var i=this.text,s=i.x,c=i.y,p=i.value,v=this.properties;Object(h.x)(v)&&(v=Object(h.I)(v));var m={id:this.id,type:this.type,x:this.x,y:this.y,properties:v};return this.rotate&&(m.rotate=this.rotate),this.graphModel.overlapMode===$n.INCREASE&&(m.zIndex=this.zIndex),p&&(m.text={x:s,y:c,value:p}),m}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"getProperties",value:function(){return Object(h.I)(this.properties)}},{key:"getOuterGAttributes",value:function(){return{className:""}}},{key:"getNodeStyle",value:function(){return io(io({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var i=this.graphModel.theme.nodeText;return Ln(i)}},{key:"getRotateControlStyle",value:function(){var i=this.graphModel.theme.rotateControl;return Ln(i)}},{key:"getAnchorStyle",value:function(i){var s=this.graphModel.theme.anchor;return Ln(s)}},{key:"getAnchorLineStyle",value:function(i){var s=this.graphModel.theme.anchorLine;return Ln(s)}},{key:"getOutlineStyle",value:function(){var i=this.graphModel.theme.outline;return Ln(i)}},{key:"isAllowConnectedAsSource",value:function(i,s,c,p){var v=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var m,x=!0,S=0;S<v.length;S++){var D=v[S];if(!D.validate.call(this,this,i,s,c,p)){x=!1,m=D.message;break}}return{isAllPass:x,msg:m}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(i,s,c,p){var v=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var m,x=!0,S=0;S<v.length;S++){var D=v[S];if(!D.validate.call(this,i,this,s,c,p)){x=!1,m=D.message;break}}return{isAllPass:x,msg:m}}},{key:"isAllowMoveNode",value:function(i,s){var c,p=!0,v=!0,m=function(D,I){var K=typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(!K){if(Array.isArray(D)||(K=h_(D))||I&&D&&typeof D.length=="number"){K&&(D=K);var re=0,oe=function(){};return{s:oe,n:function(){return re>=D.length?{done:!0}:{done:!1,value:D[re++]}},e:function(Re){throw Re},f:oe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  101. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var he,ye=!0,Ee=!1;return{s:function(){K=K.call(D)},n:function(){var Re=K.next();return ye=Re.done,Re},e:function(Re){Ee=!0,he=Re},f:function(){try{ye||K.return==null||K.return()}finally{if(Ee)throw he}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(m.s();!(c=m.n()).done;){var x=(0,c.value)(this,i,s);if(!x)return!1;if(Uv(x)==="object"){var S=x;if(S.x===!1&&S.y===!1)return!1;p=p&&S.x,v=v&&S.y}}}catch(D){m.e(D)}finally{m.f()}return{x:p,y:v}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var i=this.anchorsOffset,s=this.id,c=this.x,p=this.y;return i&&i.length>0?i.map(function(v,m){return v.length?(v=v,{id:"".concat(s,"_").concat(m),x:c+v[0],y:p+v[1]}):io(io({},v=v),{},{x:c+v.x,y:p+v.y,id:v.id||"".concat(s,"_").concat(m)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(i){return function(s,c){for(var p,v=Hr(c),m=Number.MAX_SAFE_INTEGER,x=0;x<v.length;x++){var S=Mo(s.x,s.y,v[x].x,v[x].y);S<m&&(m=S,p={index:x,anchor:Of(Of({},v[x]),{},{x:v[x].x,y:v[x].y,id:v[x].id})})}return p}(i,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 i=this.getAnchorsByOffset(),s=this.x,c=this.y,p=this.rotate;return i.forEach(function(v){var m=v.x,x=v.y,S=pj(new ra([m,x,1]).translate(-s,-c).rotate(p).translate(s,c)[0],2),D=S[0],I=S[1];v.x=D,v.y=I}),i}},{key:"getAnchorInfo",value:function(i){if(!fj(i))for(var s=0;s<this.anchors.length;s++){var c=this.anchors[s];if(c.id===i)return c}}},{key:"addNodeMoveRules",value:function(i){this.moveRules.includes(i)||this.moveRules.push(i)}},{key:"move",value:function(i,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,v=!1;if(c)p=!0,v=!0;else{var m=this.isAllowMoveNode(i,s);typeof m=="boolean"?(p=m,v=m):(p=m.x,v=m.y)}if(p){var x=this.x+i;this.x=x,this.text&&this.moveText(i,0)}if(v){var S=this.y+s;this.y=S,this.text&&this.moveText(0,s)}return p||v}},{key:"getMoveDistance",value:function(i,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,v=!1,m=0,x=0;if(c)p=!0,v=!0;else{var S=this.isAllowMoveNode(i,s);typeof S=="boolean"?(p=S,v=S):(p=S.x,v=S.y)}if(p&&i){var D=this.x+i;this.x=D,this.text&&this.moveText(i,0),m=i}if(v&&s){var I=this.y+s;this.y=I,this.text&&this.moveText(0,s),x=s}return[m,x]}},{key:"moveTo",value:function(i,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=i-this.x,v=s-this.y;return!(!c&&!this.isAllowMoveNode(p,v)||(this.text&&this.text&&this.moveText(p,v),this.x=i,this.y=s,0))}},{key:"moveText",value:function(i,s){var c=this.text,p=c.x,v=c.y,m=c.value,x=c.draggable,S=c.editable;this.text={value:m,editable:S,draggable:x,x:p+i,y:v+s}}},{key:"updateText",value:function(i){this.text=io(io({},Object(h.I)(this.text)),{},{value:i})}},{key:"setSelected",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=i}},{key:"setHovered",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=i,this.setIsShowAnchor(i)}},{key:"setIsShowAnchor",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isShowAnchor=i}},{key:"setEnableRotate",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.enableRotate=i}},{key:"setHitable",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=i}},{key:"setElementState",value:function(i,s){this.state=i,this.additionStateData=s}},{key:"setProperty",value:function(i,s){this.properties=io(io({},Object(h.I)(this.properties)),{},mo({},i,_r(s))),this.setAttributes()}},{key:"setProperties",value:function(i){this.properties=io(io({},Object(h.I)(this.properties)),_r(i)),this.setAttributes()}},{key:"deleteProperty",value:function(i){delete this.properties[i],this.setAttributes()}},{key:"setStyle",value:function(i,s){this.style=io(io({},this.style),{},mo({},i,_r(s)))}},{key:"setStyles",value:function(i){this.style=io(io({},this.style),_r(i))}},{key:"updateStyles",value:function(i){this.style=io({},_r(i))}},{key:"setZIndex",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=i}},{key:"updateAttributes",value:function(i){br(this,i)}}],n&&dj(e.prototype,n),t}(),X0=Kt(Xe.prototype,"type",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Y0=Kt(Xe.prototype,"x",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),V0=Kt(Xe.prototype,"y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),K0=Kt(Xe.prototype,"text",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),q0=Kt(Xe.prototype,"properties",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Z0=Kt(Xe.prototype,"_width",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),J0=Kt(Xe.prototype,"_height",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),Q0=Kt(Xe.prototype,"anchorsOffset",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),e_=Kt(Xe.prototype,"isSelected",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),t_=Kt(Xe.prototype,"isHovered",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n_=Kt(Xe.prototype,"isShowAnchor",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),r_=Kt(Xe.prototype,"isDragging",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o_=Kt(Xe.prototype,"isHitable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),i_=Kt(Xe.prototype,"draggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),a_=Kt(Xe.prototype,"visible",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),u_=Kt(Xe.prototype,"enableRotate",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),c_=Kt(Xe.prototype,"zIndex",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),s_=Kt(Xe.prototype,"state",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),l_=Kt(Xe.prototype,"autoToFront",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f_=Kt(Xe.prototype,"style",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),p_=Kt(Xe.prototype,"transform",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d_=Kt(Xe.prototype,"_rotate",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Kt(Xe.prototype,"incoming",[h.m],Object.getOwnPropertyDescriptor(Xe.prototype,"incoming"),Xe.prototype),Kt(Xe.prototype,"outgoing",[h.m],Object.getOwnPropertyDescriptor(Xe.prototype,"outgoing"),Xe.prototype),Kt(Xe.prototype,"addNodeMoveRules",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"addNodeMoveRules"),Xe.prototype),Kt(Xe.prototype,"move",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"move"),Xe.prototype),Kt(Xe.prototype,"getMoveDistance",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"getMoveDistance"),Xe.prototype),Kt(Xe.prototype,"moveTo",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"moveTo"),Xe.prototype),Kt(Xe.prototype,"moveText",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"moveText"),Xe.prototype),Kt(Xe.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateText"),Xe.prototype),Kt(Xe.prototype,"setSelected",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setSelected"),Xe.prototype),Kt(Xe.prototype,"setHovered",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setHovered"),Xe.prototype),Kt(Xe.prototype,"setIsShowAnchor",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setIsShowAnchor"),Xe.prototype),Kt(Xe.prototype,"setEnableRotate",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setEnableRotate"),Xe.prototype),Kt(Xe.prototype,"setHitable",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setHitable"),Xe.prototype),Kt(Xe.prototype,"setElementState",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setElementState"),Xe.prototype),Kt(Xe.prototype,"setProperty",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setProperty"),Xe.prototype),Kt(Xe.prototype,"setProperties",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setProperties"),Xe.prototype),Kt(Xe.prototype,"deleteProperty",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"deleteProperty"),Xe.prototype),Kt(Xe.prototype,"setStyle",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setStyle"),Xe.prototype),Kt(Xe.prototype,"setStyles",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setStyles"),Xe.prototype),Kt(Xe.prototype,"updateStyles",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateStyles"),Xe.prototype),Kt(Xe.prototype,"setZIndex",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setZIndex"),Xe.prototype),Kt(Xe.prototype,"updateAttributes",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateAttributes"),Xe.prototype),Xe);function Gv(t){return Gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gv(t)}function b_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function m_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?b_(Object(n),!0).forEach(function(i){__(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function hj(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function yj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Hv(){return Hv=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=gj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Hv.apply(this,arguments)}function gj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ol(t))!==null;);return t}function Xv(t,e){return Xv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xv(t,e)}function bj(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ol(t);if(e){var s=ol(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return mj(this,n)}}function mj(t,e){if(e&&(Gv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oh(t)}function Oh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ol(t){return ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ol(t)}function __(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yv(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Kr,O_,w_,Vv=(Ia=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Xv(c,p)})(s,t);var e,n,i=bj(s);function s(){var c;yj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return __(Oh(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.CIRCLE_NODE),hj(Oh(c),"r",g_,Oh(c)),c}return e=s,(n=[{key:"width",get:function(){return 2*this.r}},{key:"height",get:function(){return 2*this.r}},{key:"getNodeStyle",value:function(){var c=Hv(ol(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.circle;return m_(m_({},c),Ln(p))}},{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.r;return[{x:c,y:p-v,id:"".concat(this.id,"_0")},{x:c+v,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+v,id:"".concat(this.id,"_2")},{x:c-v,y:p,id:"".concat(this.id,"_3")}]}}])&&vj(e.prototype,n),s}(La),g_=Yv(Ia.prototype,"r",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Yv(Ia.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(Ia.prototype,"width"),Ia.prototype),Yv(Ia.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(Ia.prototype,"height"),Ia.prototype),Ia);o(129);function Kv(t){return Kv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kv(t)}function qv(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return x_(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return x_(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  102. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function x_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function E_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function S_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?E_(Object(n),!0).forEach(function(i){P_(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function j_(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function _j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Zv(){return Zv=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=wj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Zv.apply(this,arguments)}function wj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=al(t))!==null;);return t}function Jv(t,e){return Jv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jv(t,e)}function xj(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=al(t);if(e){var s=al(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return Ej(this,n)}}function Ej(t,e){if(e&&(Kv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return il(t)}function il(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function al(t){return al=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},al(t)}function P_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ul(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var aa,A_,T_,Qv=(Kr=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Jv(c,p)})(s,t);var e,n,i=xj(s);function s(){var c;_j(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return P_(il(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.DIAMOND_NODE),j_(il(c),"rx",O_,il(c)),j_(il(c),"ry",w_,il(c)),c}return e=s,(n=[{key:"getNodeStyle",value:function(){var c=Zv(al(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.diamond;return S_(S_({},c),Ln(p))}},{key:"points",get:function(){var c=this.x,p=this.y,v=this.rx,m=this.ry;return[[c,p-m],[c+v,p],[c,p+m],[c-v,p]]}},{key:"pointsPosition",get:function(){return this.points.map(function(c){return{x:c[0],y:c[1]}})}},{key:"width",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var m=qv(v,1)[0];m<c&&(c=m),m>p&&(p=m)}),p-c}},{key:"height",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var m=qv(v,2)[1];m<c&&(c=m),m>p&&(p=m)}),p-c}},{key:"getDefaultAnchor",value:function(){var c=this;return this.points.map(function(p,v){var m=qv(p,2);return{x:m[0],y:m[1],id:"".concat(c.id,"_").concat(v)}})}}])&&Oj(e.prototype,n),s}(La),O_=ul(Kr.prototype,"rx",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),w_=ul(Kr.prototype,"ry",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),ul(Kr.prototype,"points",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"points"),Kr.prototype),ul(Kr.prototype,"pointsPosition",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"pointsPosition"),Kr.prototype),ul(Kr.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"width"),Kr.prototype),ul(Kr.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"height"),Kr.prototype),Kr);function eg(t){return eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eg(t)}function M_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function k_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M_(Object(n),!0).forEach(function(i){N_(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function D_(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Sj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function tg(){return tg=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=Pj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},tg.apply(this,arguments)}function Pj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=sl(t))!==null;);return t}function ng(t,e){return ng=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ng(t,e)}function Aj(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=sl(t);if(e){var s=sl(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return Tj(this,n)}}function Tj(t,e){if(e&&(eg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cl(t)}function cl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sl(t){return sl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sl(t)}function N_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wh(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var ni,C_,rg=(aa=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&ng(c,p)})(s,t);var e,n,i=Aj(s);function s(){var c;Sj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return N_(cl(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.ELLIPSE_NODE),D_(cl(c),"rx",A_,cl(c)),D_(cl(c),"ry",T_,cl(c)),c}return e=s,(n=[{key:"getNodeStyle",value:function(){var c=tg(sl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.ellipse;return k_(k_({},c),Ln(p))}},{key:"width",get:function(){return 2*this.rx}},{key:"height",get:function(){return 2*this.ry}},{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.rx,m=this.ry;return[{x:c,y:p-m,id:"".concat(this.id,"_0")},{x:c+v,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+m,id:"".concat(this.id,"_2")},{x:c-v,y:p,id:"".concat(this.id,"_3")}]}}])&&jj(e.prototype,n),s}(La),A_=wh(aa.prototype,"rx",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),T_=wh(aa.prototype,"ry",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),wh(aa.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(aa.prototype,"width"),aa.prototype),wh(aa.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(aa.prototype,"height"),aa.prototype),aa);function og(t){return og=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},og(t)}function ig(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return R_(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return R_(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  103. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function I_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function L_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?I_(Object(n),!0).forEach(function(i){B_(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Mj(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function kj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ag(){return ag=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=Nj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},ag.apply(this,arguments)}function Nj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ll(t))!==null;);return t}function ug(t,e){return ug=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ug(t,e)}function Cj(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=ll(t);if(e){var s=ll(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return Rj(this,n)}}function Rj(t,e){if(e&&(og(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xh(t)}function xh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ll(t){return ll=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ll(t)}function B_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eh(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var cg,z_,sg=(ni=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&ug(c,p)})(s,t);var e,n,i=Cj(s);function s(){var c;kj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return B_(xh(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.POLYGON_NODE),Mj(xh(c),"points",C_,xh(c)),c}return e=s,(n=[{key:"getNodeStyle",value:function(){var c=ag(ll(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.polygon;return L_(L_({},c),Ln(p))}},{key:"pointsPosition",get:function(){var c=this.x,p=this.y,v=this.width,m=this.height;return this.points.map(function(x){return{x:x[0]+c-v/2,y:x[1]+p-m/2}})}},{key:"width",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var m=ig(v,1)[0];m<c&&(c=m),m>p&&(p=m)}),p-c}},{key:"height",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var m=ig(v,2)[1];m<c&&(c=m),m>p&&(p=m)}),p-c}},{key:"getDefaultAnchor",value:function(){var c=this,p=this.x,v=this.y,m=this.width,x=this.height;return this.points.map(function(S,D){var I=ig(S,2),K=I[0],re=I[1];return{x:p+K-m/2,y:v+re-x/2,id:"".concat(c.id,"_").concat(D)}})}}])&&Dj(e.prototype,n),s}(La),C_=Eh(ni.prototype,"points",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),Eh(ni.prototype,"pointsPosition",[h.m],Object.getOwnPropertyDescriptor(ni.prototype,"pointsPosition"),ni.prototype),Eh(ni.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(ni.prototype,"width"),ni.prototype),Eh(ni.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(ni.prototype,"height"),ni.prototype),ni);function lg(t){return lg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lg(t)}function F_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function $_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F_(Object(n),!0).forEach(function(i){W_(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ij(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Lj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function fg(){return fg=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=zj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},fg.apply(this,arguments)}function zj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=fl(t))!==null;);return t}function pg(t,e){return pg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},pg(t,e)}function Fj(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=fl(t);if(e){var s=fl(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return $j(this,n)}}function $j(t,e){if(e&&(lg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sh(t)}function Sh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fl(t){return fl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fl(t)}function W_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ju,dg=(cg=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&pg(c,p)})(s,t);var e,n,i=Fj(s);function s(){var c;Lj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return W_(Sh(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.RECT_NODE),Ij(Sh(c),"radius",z_,Sh(c)),c}return e=s,(n=[{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.width,m=this.height;return[{x:c,y:p-m/2,id:"".concat(this.id,"_0")},{x:c+v/2,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+m/2,id:"".concat(this.id,"_2")},{x:c-v/2,y:p,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var c=fg(fl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.rect;return $_($_({},c),Ln(p))}}])&&Bj(e.prototype,n),s}(La),z_=function(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}(cg.prototype,"radius",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),cg);function hg(t){return hg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hg(t)}function U_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function G_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U_(Object(n),!0).forEach(function(i){X_(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Wj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function yg(){return yg=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,n){var i=Gj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},yg.apply(this,arguments)}function Gj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=pl(t))!==null;);return t}function vg(t,e){return vg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},vg(t,e)}function Hj(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=pl(t);if(e){var s=pl(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return Xj(this,n)}}function Xj(t,e){if(e&&(hg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H_(t)}function H_(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pl(t){return pl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pl(t)}function X_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y_(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var gg=(ju=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&vg(c,p)})(s,t);var e,n,i=Hj(s);function s(){var c;Wj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return X_(H_(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.TEXT_NODE),c}return e=s,(n=[{key:"getTextStyle",value:function(){var c=yg(pl(s.prototype),"getTextStyle",this).call(this),p=this.graphModel.theme.text;return G_(G_({},c),Ln(p))}},{key:"width",get:function(){var c=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return Df({rows:c,fontSize:p,rowsLength:c.length}).width}},{key:"height",get:function(){var c=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return Df({rows:c,fontSize:p,rowsLength:c.length}).height}}])&&Uj(e.prototype,n),s}(La),Y_(ju.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(ju.prototype,"width"),ju.prototype),Y_(ju.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(ju.prototype,"height"),ju.prototype),ju);function bg(t){return bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bg(t)}function Yj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mg(t,e){return mg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},mg(t,e)}function Kj(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=jh(t);if(e){var s=jh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return qj(this,n)}}function qj(t,e){if(e&&(bg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V_(t)}function V_(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jh(t){return jh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jh(t)}function Zj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ki,K_,q_,Z_,_g=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&mg(c,p)})(s,t);var e,n,i=Kj(s);function s(){var c;Yj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return Zj(V_(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.HTML_NODE),c}return e=s,(n=[{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.width,m=this.height;return[{x:c,y:p-m/2,id:"".concat(this.id,"_0")},{x:c+v/2,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+m/2,id:"".concat(this.id,"_2")},{x:c-v/2,y:p,id:"".concat(this.id,"_3")}]}}])&&Vj(e.prototype,n),s}(La);function J_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Og(t,e,n,i){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}function Jj(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Q_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sp(t,e,n,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=n.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var e1=(ki=function(){function t(i){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),Q_(this,"graphModel",void 0),Og(this,"isShowHorizontal",K_,this),Og(this,"isShowVertical",q_,this),Og(this,"position",Z_,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=i}var e,n;return e=t,n=[{key:"getStyle",value:function(){return function(i){for(var s=1;s<arguments.length;s++){var c=arguments[s]!=null?arguments[s]:{};s%2?J_(Object(c),!0).forEach(function(p){Q_(i,p,c[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):J_(Object(c)).forEach(function(p){Object.defineProperty(i,p,Object.getOwnPropertyDescriptor(c,p))})}return i}({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(i,s){for(var c=i.x,p=i.y,v=!1,m=!1,x=0;x<s.length;x++){var S=s[x];if(S.id!==i.id&&(c===S.x&&(v=!0),p===S.y&&(m=!0),v&&m))break}return{isShowVertical:v,isShowHorizontal:m,position:{x:c,y:p}}}},{key:"getHorizontalSnapline",value:function(i,s){var c,p,v=!1,m=i.id;if(m){var x=this.graphModel.fakerNode;if(x&&x.id===m)p=no(x);else{var S=this.graphModel.getNodeModelById(m);p=no(S)}}for(var D=0;D<s.length;D++){var I=s[D];if(I.id!==i.id){var K=no(I);if(K.minY===p.minY||K.maxY===p.minY){v=!0,c=p.minY;break}if(K.minY===p.maxY||K.maxY===p.maxY){v=!0,c=p.maxY;break}}}return br({isShowHorizontal:v,position:{y:c}})}},{key:"getVerticalSnapline",value:function(i,s){var c,p,v=!1,m=i.id;if(m){var x=this.graphModel.fakerNode;if(x&&x.id===m)p=no(x);else{var S=this.graphModel.getNodeModelById(m);p=no(S)}}for(var D=0;D<s.length;D++){var I=s[D];if(I.id!==i.id){var K=no(I);if(K.minX===p.minX||K.maxX===p.minX){v=!0,c=p.minX;break}if(K.minX===p.maxX||K.maxX===p.maxX){v=!0,c=p.maxX;break}}}return br({isShowVertical:v,position:{x:c}})}},{key:"getSnapLinePosition",value:function(i,s){var c=this.getCenterSnapLine(i,s),p=c.isShowHorizontal,v=c.isShowVertical;if(!p){var m=this.getHorizontalSnapline(i,s);m.isShowHorizontal&&(c.isShowHorizontal=m.isShowHorizontal,c.position.y=m.position.y)}if(!v){var x=this.getVerticalSnapline(i,s);x.isShowVertical&&(c.isShowVertical=x.isShowVertical,c.position.x=x.position.x)}return c}},{key:"setSnaplineInfo",value:function(i){var s=i.isShowHorizontal,c=i.isShowVertical,p=i.position;this.position=p,this.isShowHorizontal=s,this.isShowVertical=c}},{key:"clearSnapline",value:function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1}},{key:"setNodeSnapLine",value:function(i){var s=this.graphModel.nodes,c=this.getSnapLinePosition(i,s);this.setSnaplineInfo(c)}}],n&&Jj(e.prototype,n),t}(),K_=sp(ki.prototype,"isShowHorizontal",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q_=sp(ki.prototype,"isShowVertical",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z_=sp(ki.prototype,"position",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sp(ki.prototype,"clearSnapline",[h.k],Object.getOwnPropertyDescriptor(ki.prototype,"clearSnapline"),ki.prototype),sp(ki.prototype,"setNodeSnapLine",[h.k],Object.getOwnPropertyDescriptor(ki.prototype,"setNodeSnapLine"),ki.prototype),ki),lp=new Map,t1=function(t){var e=qi(),n=window.requestAnimationFrame(function i(){if(t(),lp.get(e)){var s=window.requestAnimationFrame(i);lp.set(e,s)}});return lp.set(e,n),e},Ph=function(t){var e=lp.get(t);e&&(window.cancelAnimationFrame(e),lp.delete(t))};function wg(t){return wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wg(t)}function fp(){return fp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fp.apply(this,arguments)}function n1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function pp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?n1(Object(n),!0).forEach(function(i){ca(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):n1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Qj(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return r1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return r1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  104. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function r1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function eP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function xg(t,e){return xg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xg(t,e)}function tP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ah(t);if(e){var s=Ah(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return nP(this,n)}}function nP(t,e){if(e&&(wg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ua(t)}function ua(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ah(t){return Ah=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ah(t)}function ca(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rP=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&xg(c,p)})(s,t);var e,n,i=tP(s);function s(){var c;return function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}(this,s),ca(ua(c=i.call(this)),"preTargetNode",void 0),ca(ua(c),"sourceRuleResults",void 0),ca(ua(c),"targetRuleResults",void 0),ca(ua(c),"dragHandler",void 0),ca(ua(c),"t",void 0),ca(ua(c),"onDragStart",function(p){var v=p.event,m=c.props,x=m.anchorData,S=m.nodeModel,D=m.graphModel;D.overlapMode,D.selectNodeById(S.id),S.autoToFront&&D.toFront(S.id),D.eventCenter.emit(dt.ANCHOR_DRAGSTART,{data:x,e:v,nodeModel:S}),c.setState({startX:x.x,startY:x.y,endX:x.x,endY:x.y})}),ca(ua(c),"onDragging",function(p){var v=p.event,m=c.props,x=m.graphModel,S=m.nodeModel,D=m.anchorData,I=x.transformModel,K=x.eventCenter,re=x.width,oe=x.height,he=x.editConfigModel,ye=he.autoExpand,Ee=he.stopMoveGraph,Re=v.clientX,Qe=v.clientY,Ze=x.getPointByClient({x:Re,y:Qe}),_t=Ze.domOverlayPosition,qe=_t.x,ht=_t.y,rt=Ze.canvasOverlayPosition,tn=rt.x,un=rt.y;c.t&&Ph(c.t);var Lt=[];qe<10?Lt=[10,0]:qe+10>re?Lt=[-10,0]:ht<10?Lt=[0,10]:ht+10>oe&&(Lt=[0,-10]),c.setState({endX:tn,endY:un,dragging:!0}),c.moveAnchorEnd(tn,un),Lt.length>0&&!Ee&&ye&&(c.t=t1(function(){var pn=Qj(Lt,2),nr=pn[0],rr=pn[1];I.translate(nr,rr);var zr=c.state,Co=zr.endX,Ro=zr.endY;c.setState({endX:Co-nr,endY:Ro-rr}),c.moveAnchorEnd(Co-nr,Ro-rr)})),K.emit(dt.ANCHOR_DRAG,{data:D,e:v,nodeModel:S})}),ca(ua(c),"onDragEnd",function(p){var v=p.event;c.t&&Ph(c.t);var m=c.checkEnd(v);c.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),c.sourceRuleResults.clear(),c.targetRuleResults.clear();var x=c.props,S=x.graphModel,D=x.nodeModel,I=x.anchorData;S.eventCenter.emit(dt.ANCHOR_DRAGEND,{data:I,e:v,nodeModel:D,edgeModel:m})}),ca(ua(c),"checkEnd",function(p){var v=c.props,m=v.graphModel,x=v.nodeModel,S=v.anchorData,D=S.x,I=S.y,K=S.id,re=(m.edgeType,c.state),oe=re.endX,he=re.endY,ye=re.dragging,Ee=Ls({x:oe,y:he},m);if(c.preTargetNode&&c.preTargetNode.state!==gn.DEFAULT&&c.preTargetNode.setElementState(gn.DEFAULT),ye&&Ee&&Ee.node){var Re=Ee.node,Qe=Ee.anchor.id,Ze="".concat(x.id,"_").concat(Re.id,"_").concat(Qe,"_").concat(K),_t=c.sourceRuleResults.get(Ze)||{},qe=_t.isAllPass,ht=_t.msg,rt=c.targetRuleResults.get(Ze)||{},tn=rt.isAllPass,un=rt.msg;if(qe&&tn){Re.setElementState(gn.DEFAULT);var Lt=m.edgeGenerator(x.getData(),m.getNodeModelById(Ee.node.id).getData()),pn=m.addEdge(pp(pp({},Lt),{},{sourceNodeId:x.id,sourceAnchorId:K,startPoint:{x:D,y:I},targetNodeId:Ee.node.id,targetAnchorId:Ee.anchor.id,endPoint:{x:Ee.anchor.x,y:Ee.anchor.y}})),nr=c.props.anchorData;return m.eventCenter.emit(dt.ANCHOR_DROP,{data:nr,e:p,nodeModel:x,edgeModel:pn}),pn}var rr=Re.getData();return m.eventCenter.emit(dt.CONNECTION_NOT_ALLOWED,{data:rr,msg:un||ht||"\u4E0D\u5141\u8BB8\u6DFB\u52A0\u8FDE\u7EBF"}),null}}),c.sourceRuleResults=new Map,c.targetRuleResults=new Map,c.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},c.dragHandler=new Qo({onDragStart:c.onDragStart,onDragging:c.onDragging,onDragEnd:c.onDragEnd}),c}return e=s,(n=[{key:"getAnchorShape",value:function(){var c=this.props,p=c.anchorData,v=c.style,m=c.node.getAnchorShape(p);if(m)return m;var x=p.x,S=p.y,D=pp(pp({},v),v.hover);return Object(fe.g)("g",null,Object(fe.g)(rl,fp({className:"lf-node-anchor-hover"},D,{x,y:S})),Object(fe.g)(rl,fp({className:"lf-node-anchor"},v,{x,y:S})))}},{key:"customTrajectory",get:function(){return this.props.graphModel.customTrajectory}},{key:"relateEdges",get:function(){var c=this.props,p=c.graphModel,v=p.getAnchorIncomingEdge,m=p.getAnchorOutcomingEdge,x=c.anchorData.id;return{incomingEdgeList:v(x),outcomingEdgeList:m(x)}}},{key:"moveAnchorEnd",value:function(c,p){var v=this.props,m=v.graphModel,x=v.nodeModel,S=v.anchorData,D=Ls({x:c,y:p},m);if(D){var I=D.node,K=D.anchor.id;if(this.preTargetNode&&this.preTargetNode!==D.node&&this.preTargetNode.setElementState(gn.DEFAULT),S.id===K)return;this.preTargetNode=I;var re="".concat(x.id,"_").concat(I.id,"_").concat(K,"_").concat(S.id);if(!this.targetRuleResults.has(re)){var oe=D.anchor,he=x.isAllowConnectedAsSource(I,S,oe),ye=I.isAllowConnectedAsTarget(x,S,oe);this.sourceRuleResults.set(re,gc(he)),this.targetRuleResults.set(re,gc(ye))}var Ee=this.sourceRuleResults.get(re).isAllPass,Re=this.targetRuleResults.get(re).isAllPass;Ee&&Re?I.setElementState(gn.ALLOW_CONNECT):I.setElementState(gn.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==gn.DEFAULT&&this.preTargetNode.setElementState(gn.DEFAULT)}},{key:"isShowLine",value:function(){var c=this.state,p=c.startX,v=c.startY,m=c.endX,x=c.endY;return Mo(p,v,m,x)>10}},{key:"render",value:function(){var c=this,p=this.state,v=p.startX,m=p.startY,x=p.endX,S=p.endY,D=this.props,I=D.anchorData.edgeAddable,K=D.edgeStyle;return Object(fe.g)("g",{className:"lf-anchor"},Object(fe.g)("g",{onMouseDown:function(re){I!==!1&&c.dragHandler.handleMouseDown(re)}},this.getAnchorShape()),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(pp({sourcePoint:{x:v,y:m},targetPoint:{x,y:S}},K)):Object(fe.g)(tl,fp({x1:v,y1:m,x2:x,y2:S},K,{"pointer-events":"none"}))))}}])&&eP(e.prototype,n),s}(fe.a);function o1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function oP(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?o1(Object(n),!0).forEach(function(i){iP(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function iP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eg(t){return Eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eg(t)}function aP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return i1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return i1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  105. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a1(t){var e=t.x,n=e===void 0?0:e,i=t.y,s=i===void 0?0:i,c=t.value,p=t.fontSize,v=t.fill,m=v===void 0?"currentColor":v,x=t.overflowMode,S=x===void 0?"default":x,D=t.textWidth,I=D===void 0?"":D,K=t.model,re={textAnchor:"middle","dominant-baseline":"middle",x:n,y:s,fill:m};if(Object.entries(t).forEach(function(Qe){var Ze=aP(Qe,2),_t=Ze[0],qe=Ze[1];Eg(qe)!=="object"&&(re[_t]=qe)}),c){var oe=String(c).split(/[\r\n]/g),he=oe.length;if(S!=="default"){var ye=K.BaseType,Ee=K.modelType;if(ye===Jn.NODE&&Ee!==Zt.TEXT_NODE||ye===Jn.EDGE&&I)return function(Qe){var Ze=Qe.value,_t=Qe.fontSize,qe=Qe.model,ht=Qe.fontFamily,rt=ht===void 0?"":ht,tn=Qe.lineHeight,un=Qe.wrapPadding,Lt=un===void 0?"0, 0":un,pn=Qe.overflowMode,nr=Qe.x,rr=Qe.y,zr=qe.width,Co=qe.textHeight,Ro=Qe.textWidth||zr,fa=String(Ze).split(/[\r\n]/g),zc=fa.length,Qh=Id({rows:fa,style:{fontSize:"".concat(_t,"px"),width:"".concat(Ro,"px"),fontFamily:rt,lineHeight:tn,padding:Lt},rowsLength:zc,className:"lf-get-text-height"}),Fc=qe.height>Qh?qe.height:Qh;Co&&(Fc=Co);var Tu=pn==="ellipsis";return Tu&&(Fc=_t+2),Object(fe.g)("g",null,Object(fe.g)("foreignObject",{width:Ro,height:Fc,x:nr-Ro/2,y:rr-Fc/2},Object(fe.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:Fc,width:Ro,padding:Lt}},Object(fe.g)("div",{className:Tu?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:Tu?fa.join(""):"",style:oP({},Qe)},fa.map(function(Mu){return Object(fe.g)("div",{className:"lf-node-text--auto-wrap-inner"},Mu)})))))}(t)}if(he>1){var Re=oe.map(function(Qe,Ze){var _t=(Ze-(he-1)/2)*(p+2);return Object(fe.g)("tspan",{className:"lf-text-tspan",x:n,y:s+_t},Qe)});return Object(fe.g)("text",re,Re)}return Object(fe.g)("text",re,c)}}function Sg(t){return Sg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sg(t)}function jg(){return jg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jg.apply(this,arguments)}function uP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return u1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return u1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  106. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function cP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Pg(t,e){return Pg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Pg(t,e)}function sP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Th(t);if(e){var s=Th(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return lP(this,n)}}function lP(t,e){if(e&&(Sg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pu(t)}function Pu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Th(t){return Th=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Th(t)}function Rc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c1=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Pg(c,p)})(s,t);var e,n,i=sP(s);function s(c){var p;(function(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")})(this,s),Rc(Pu(p=i.call(this)),"dragHandler",void 0),Rc(Pu(p),"sumDeltaX",0),Rc(Pu(p),"sumDeltaY",0),Rc(Pu(p),"stepDrag",void 0),Rc(Pu(p),"onDragging",function(m){var x=m.deltaX,S=m.deltaY,D=p.props,I=D.model,K=uP(D.graphModel.transformModel.fixDeltaXY(x,S),2),re=K[0],oe=K[1];I.moveText(re,oe)}),Rc(Pu(p),"dblClickHandler",function(){p.props.editable&&p.props.model.setElementState(gn.TEXT_EDIT)}),Rc(Pu(p),"mouseDownHandle",function(m){var x=p.props,S=x.draggable,D=x.model,I=x.graphModel.editConfigModel.nodeTextDraggable;(S||I)&&(p.stepDrag.model=D,p.stepDrag.handleMouseDown(m))}),c.model;var v=c.draggable;return p.stepDrag=new Qo({onDragging:p.onDragging,step:1,isStopPropagation:v}),p}return e=s,(n=[{key:"getShape",value:function(){var c=this.props,p=c.model,v=c.graphModel,m=p.text,x=v.editConfigModel,S=m.value,D=m.x,I=m.y,K=m.editable,re=m.draggable,oe={x:D,y:I,className:"",value:S};K?oe.className="lf-element-text":re||x.nodeTextDraggable?oe.className="lf-text-draggable":oe.className="lf-text-disabled";var he=p.getTextStyle();return Object(fe.g)(a1,jg({},oe,he,{model:p}))}},{key:"render",value:function(){if(this.props.model.text)return Object(fe.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&cP(e.prototype,n),s}(fe.a),fP=au(window,"navigator.userAgent","").match(/MSIE|Trident/)!==null,s1=o(130);function Ag(t){return Ag=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ag(t)}function Tg(){return Tg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Tg.apply(this,arguments)}function pP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Mg(t,e){return Mg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Mg(t,e)}function dP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Mh(t);if(e){var s=Mh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return hP(this,n)}}function hP(t,e){if(e&&(Ag(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dl(t)}function dl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mh(t){return Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mh(t)}function dp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yP=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Mg(c,p)})(s,t);var e,n,i=dP(s);function s(c){var p;return function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),dp(dl(p=i.call(this,c)),"style",{}),dp(dl(p),"defaultAngle",void 0),dp(dl(p),"normal",void 0),dp(dl(p),"stepperDrag",void 0),dp(dl(p),"onDragging",function(v){var m,x=v.event,S=p.props,D=S.graphModel,I=S.nodeModel,K=S.eventCenter,re=D.selectNodes,oe=I.x,he=I.y,ye=x.clientX,Ee=x.clientY,Re=D.getPointByClient({x:ye,y:Ee}).canvasOverlayPosition,Qe=Re.x,Ze=Re.y,_t=new U(Qe-oe,Ze-he),qe=((m=p.normal)===null||m===void 0?void 0:m.angle(_t))-p.defaultAngle,ht=new oa(-oe,-he).rotate(qe).translate(oe,he).toString();I.transform=ht,I.rotate=qe;var rt=Object(s1.map)(re,function(un){return un.id});rt.indexOf(I.id)===-1&&(rt=[I.id]);var tn=Object(s1.reduce)(rt,function(un,Lt){var pn=D.getNodeModelById(Lt);return un[Lt]=pn==null?void 0:pn.getMoveDistance(0,0,!1),un},{});rt.forEach(function(un){D.getNodeEdges(un).forEach(function(Lt){if(tn[Lt.sourceNodeId]){var pn=D.getNodeModelById(Lt.sourceNodeId).anchors.find(function(rr){return rr.id===Lt.sourceAnchorId});Lt.updateStartPoint(pn)}if(tn[Lt.targetNodeId]){var nr=D.getNodeModelById(Lt.targetNodeId).anchors.find(function(rr){return rr.id===Lt.targetAnchorId});Lt.updateEndPoint(nr)}})}),K.emit(dt.NODE_ROTATE,{e:x,nodeModel:I})}),p.style=c.style,p.stepperDrag=new Qo({onDragging:p.onDragging}),p}return e=s,(n=[{key:"render",value:function(){var c=this,p=this.props.nodeModel,v=p.x,m=p.y,x=v+p.width/2+20,S=m-p.height/2-20;return this.normal=new U(1,0),this.defaultAngle=this.normal.angle(new U(x-v,S-m)),p.defaultAngle=this.defaultAngle,Object(fe.g)("g",{className:"lf-rotate-control"},Object(fe.g)("g",{onMouseDown:function(D){c.stepperDrag.handleMouseDown(D)}},Object(fe.g)(rl,Tg({},this.style,{cx:x,cy:S}))))}}])&&pP(e.prototype,n),s}(fe.a);function kg(t){return kg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kg(t)}var vP=["className"];function kh(){return kh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},kh.apply(this,arguments)}function gP(t,e){if(t==null)return{};var n,i,s=function(p,v){if(p==null)return{};var m,x,S={},D=Object.keys(p);for(x=0;x<D.length;x++)m=D[x],v.indexOf(m)>=0||(S[m]=p[m]);return S}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(i=0;i<c.length;i++)n=c[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function Dh(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return l1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return l1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  107. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function l1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function f1(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Dg(t,e){return Dg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Dg(t,e)}function bP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Nh(t);if(e){var s=Nh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return mP(this,n)}}function mP(t,e){if(e&&(kg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Er(t)}function Er(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nh(t){return Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nh(t)}function kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ba=function(t){(function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),v&&Dg(p,v)})(c,t);var e,n,i,s=bP(c);function c(p){var v;(function(I,K){if(!(I instanceof K))throw new TypeError("Cannot call a class as a function")})(this,c),kr(Er(v=s.call(this)),"t",void 0),kr(Er(v),"moveOffset",void 0),kr(Er(v),"stepDrag",void 0),kr(Er(v),"contextMenuTime",void 0),kr(Er(v),"mouseUpDrag",void 0),kr(Er(v),"startTime",void 0),kr(Er(v),"clickTimer",void 0),kr(Er(v),"modelDisposer",void 0),kr(Er(v),"onDragStart",function(I){var K=I.event,re=K.clientX,oe=K.clientY,he=v.props,ye=he.model,Ee=he.graphModel.getPointByClient({x:re,y:oe}).canvasOverlayPosition,Re=Ee.x,Qe=Ee.y;v.moveOffset={x:ye.x-Re,y:ye.y-Qe}}),kr(Er(v),"onDragging",function(I){var K=I.event,re=v.props,oe=re.model,he=re.graphModel,ye=he.editConfigModel,Ee=ye.stopMoveGraph,Re=ye.autoExpand,Qe=he.transformModel,Ze=he.selectNodes,_t=he.width,qe=he.height,ht=he.gridSize;oe.isDragging=!0;var rt=K.clientX,tn=K.clientY,un=he.getPointByClient({x:rt,y:tn}).canvasOverlayPosition,Lt=un.x,pn=un.y,nr=Dh(Qe.CanvasPointToHtmlPoint([Lt,pn]),2),rr=nr[0],zr=nr[1];if(Lt+=v.moveOffset.x,pn+=v.moveOffset.y,Lt=Vi(Lt,ht),pn=Vi(pn,ht),_t&&qe){if(!Re||Ee||!(rr<0||zr<0||rr>_t||zr>qe)){var Co=Dh(Qe.CanvasPointToHtmlPoint([Lt-oe.width/2,pn-oe.height/2]),2),Ro=Co[0],fa=Co[1],zc=Dh(Qe.CanvasPointToHtmlPoint([Lt+oe.width/2,pn+oe.height/2]),2),Qh=zc[0],Fc=zc[1],Tu=Math.max(ht,20),Mu=[];Ro<0?Mu=[Tu,0]:Qh>he.width?Mu=[-Tu,0]:fa<0?Mu=[0,Tu]:Fc>he.height&&(Mu=[0,-Tu]),v.t&&Ph(v.t);var n2=new oa(-Lt,-pn).rotate(oe.rotate).translate(Lt,pn).toString();oe.transform=n2;var ey=Ze.map(function(ty){return ty.id});ey.indexOf(oe.id)===-1&&(ey=[oe.id]),Mu.length>0&&!Ee&&Re?v.t=t1(function(){var ty=Dh(Mu,2),H1=ty[0],X1=ty[1];Qe.translate(H1,X1);var r2=-H1/Qe.SCALE_X,o2=-X1/Qe.SCALE_X;he.moveNodes(ey,r2,o2)}):he.moveNodes(ey,Lt-oe.x,pn-oe.y)}}else he.moveNode2Coordinate(oe.id,Lt,pn)}),kr(Er(v),"onDragEnd",function(){v.t&&Ph(v.t),v.props.model.isDragging=!1}),kr(Er(v),"handleMouseUp",function(){var I=v.props.model;v.mouseUpDrag=I.isDragging}),kr(Er(v),"handleClick",function(I){var K=v.mouseUpDrag===!1;if(v.startTime){var re=v.props,oe=re.model,he=re.graphModel;if(K){var ye={data:oe.getData(),e:I,position:he.getPointByClient({x:I.clientX,y:I.clientY}),isSelected:!1,isMultiple:!1},Ee=I.button===2,Re=I.detail===2;if(!Ee){var Qe=he.editConfigModel,Ze=df(I,Qe);ye.isMultiple=Ze,oe.isSelected&&!Re&&Ze?(ye.isSelected=!1,oe.setSelected(!1)):(he.selectNodeById(oe.id,Ze),ye.isSelected=!0,v.toFront()),Re?(Qe.nodeTextEdit&&oe.text.editable&&(oe.setSelected(!1),he.setElementStateById(oe.id,gn.TEXT_EDIT)),he.eventCenter.emit(dt.NODE_DBCLICK,ye)):(he.eventCenter.emit(dt.ELEMENT_CLICK,ye),he.eventCenter.emit(dt.NODE_CLICK,ye))}}}}),kr(Er(v),"handleContextMenu",function(I){I.preventDefault();var K=v.props,re=K.model,oe=K.graphModel,he=re.getData(),ye=oe.getPointByClient({x:I.clientX,y:I.clientY});oe.setElementStateById(re.id,gn.SHOW_MENU,ye.domOverlayPosition),re.isSelected||oe.selectNodeById(re.id),oe.eventCenter.emit(dt.NODE_CONTEXTMENU,{data:he,e:I,position:ye}),v.toFront()}),kr(Er(v),"handleMouseDown",function(I){var K=v.props,re=K.model,oe=K.graphModel;v.startTime=new Date().getTime(),oe.editConfigModel.adjustNodePosition&&re.draggable&&v.stepDrag&&v.stepDrag.handleMouseDown(I)}),kr(Er(v),"setHoverON",function(I){var K=v.props,re=K.model,oe=K.graphModel;if(!re.isHovered){var he=re.getData();re.setHovered(!0),oe.eventCenter.emit(dt.NODE_MOUSEENTER,{data:he,e:I})}}),kr(Er(v),"setHoverOFF",function(I){var K=v.props,re=K.model,oe=K.graphModel,he=re.getData();re.isHovered&&(re.setHovered(!1),oe.eventCenter.emit(dt.NODE_MOUSELEAVE,{data:he,e:I}))}),kr(Er(v),"onMouseOut",function(I){fP&&v.setHoverOFF(I)});var m=p.graphModel,x=m.gridSize,S=m.eventCenter,D=p.model;return v.stepDrag=new Qo({onDragStart:v.onDragStart,onDragging:v.onDragging,onDragEnd:v.onDragEnd,step:x,eventType:"NODE",isStopPropagation:!1,eventCenter:S,model:D}),v.modelDisposer=Object(h.F)(function(){return v.props},function(I){I&&I.model&&v.stepDrag.setModel(I.model)}),v}return e=c,i=[{key:"getModel",value:function(p){return p}}],(n=[{key:"componentWillUnmount",value:function(){this.modelDisposer&&this.modelDisposer()}},{key:"getAnchorShape",value:function(p){return null}},{key:"getAnchors",value:function(){var p=this,v=this.props,m=v.model,x=v.graphModel,S=m.isSelected,D=m.isHitable,I=m.isDragging,K=m.isShowAnchor;return D&&(S||K)&&!I?fs(m.anchors,function(re,oe){var he=m.getAnchorLineStyle(re),ye=m.getAnchorStyle(re);return Object(fe.g)(rP,{anchorData:re,node:p,style:ye,edgeStyle:he,anchorIndex:oe,nodeModel:m,graphModel:x,setHoverOFF:p.setHoverOFF})}):[]}},{key:"getRotateControl",value:function(){var p=this.props,v=p.model,m=p.graphModel,x=v.isSelected,S=v.isHitable,D=v.enableRotate,I=v.isHovered,K=v.getRotateControlStyle().style;if(S&&(x||I)&&D)return Object(fe.g)(yP,{graphModel:m,nodeModel:v,eventCenter:m.eventCenter,style:K})}},{key:"getText",value:function(){var p=this.props,v=p.model,m=p.graphModel;if(v.state===gn.TEXT_EDIT)return"";if(v.text){var x=m.editConfigModel,S=!1;return(v.text.draggable||x.nodeTextDraggable)&&(S=!0),Object(fe.g)(c1,{editable:x.nodeTextEdit&&v.text.editable,model:v,graphModel:m,draggable:S})}}},{key:"getStateClassName",value:function(){var p=this.props.model,v=p.state,m=p.isDragging,x=p.isSelected,S="lf-node";switch(v){case gn.ALLOW_CONNECT:S+=" lf-node-allow";break;case gn.NOT_ALLOW_CONNECT:S+=" lf-node-not-allow";break;default:S+=" lf-node-default"}return m&&(S+=" lf-isDragging"),x&&(S+=" lf-node-selected"),S}},{key:"toFront",value:function(){var p=this.props,v=p.model,m=p.graphModel;v.autoToFront&&m.toFront(v.id)}},{key:"render",value:function(){var p,v=this.props,m=v.model,x=v.graphModel,S=x.editConfigModel,D=S.hideAnchors,I=S.adjustNodePosition,K=S.allowRotation,re=x.gridSize,oe=x.transformModel.SCALE_X,he=m.isHitable,ye=m.draggable,Ee=m.transform,Re=m.getOuterGAttributes(),Qe=Re.className,Ze=Qe===void 0?"":Qe,_t=gP(Re,vP),qe=Object(fe.g)("g",{className:"lf-node-content"},Object(fe.g)("g",{transform:Ee},this.getShape(),this.getText(),K&&this.getRotateControl()),!D&&this.getAnchors());return he?(I&&ye&&this.stepDrag.setStep(re*oe),p=Object(fe.g)("g",kh({className:"".concat(this.getStateClassName()," ").concat(Ze),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},_t),qe)):p=Object(fe.g)("g",kh({className:"".concat(this.getStateClassName()," ").concat(Ze)},_t),qe),p}}])&&f1(e.prototype,n),i&&f1(e,i),c}(fe.a);function Ng(t){return Ng=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ng(t)}function Cg(){return Cg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Cg.apply(this,arguments)}function _P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Rg(t,e){return Rg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Rg(t,e)}function wP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ch(t);if(e){var s=Ch(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return xP(this,n)}}function xP(t,e){if(e&&(Ng(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Ch(t){return Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ch(t)}var Ig=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Rg(c,p)})(s,t);var e,n,i=wP(s);function s(){return _P(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(fe.g)(Eu,Cg({},p,{x:c.x,y:c.y,width:c.width,height:c.height,radius:c.radius}))}}])&&OP(e.prototype,n),s}(Ba);function Lg(t){return Lg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lg(t)}function Bg(){return Bg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Bg.apply(this,arguments)}function EP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function SP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function zg(t,e){return zg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},zg(t,e)}function jP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Rh(t);if(e){var s=Rh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return PP(this,n)}}function PP(t,e){if(e&&(Lg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Rh(t){return Rh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rh(t)}var Fg=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&zg(c,p)})(s,t);var e,n,i=jP(s);function s(){return EP(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.x,v=c.y,m=c.r,x=c.getNodeStyle();return Object(fe.g)(rl,Bg({},x,{x:p,y:v,r:m}))}}])&&SP(e.prototype,n),s}(Ba);function $g(t){return $g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$g(t)}function AP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return p1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return p1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  108. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d1(t){var e=t.points,n=t.className,i={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(t).forEach(function(s){var c=AP(s,2),p=c[0],v=c[1];$g(v)!=="object"&&(i[p]=v)}),i.className=n?"lf-basic-shape ".concat(n):"lf-basic-shape",i.points=e.map(function(s){return s.join(",")}).join(" "),Object(fe.g)("polygon",i)}function Wg(t){return Wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wg(t)}function Ug(){return Ug=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ug.apply(this,arguments)}function TP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Gg(t,e){return Gg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Gg(t,e)}function kP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Ih(t);if(e){var s=Ih(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return DP(this,n)}}function DP(t,e){if(e&&(Wg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Ih(t){return Ih=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ih(t)}var Hg=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Gg(c,p)})(s,t);var e,n,i=kP(s);function s(){return TP(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.x,v=c.y,m=c.width,x=c.height,S=c.points,D=c.getNodeStyle(),I={transform:"matrix(1 0 0 1 ".concat(p-m/2," ").concat(v-x/2,")")};return Object(fe.g)("g",I,Object(fe.g)(d1,Ug({},D,{points:S,x:p,y:v})))}}])&&MP(e.prototype,n),s}(Ba);function Xg(t){return Xg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xg(t)}function Yg(){return Yg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Yg.apply(this,arguments)}function NP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Vg(t,e){return Vg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Vg(t,e)}function RP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Lh(t);if(e){var s=Lh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return IP(this,n)}}function IP(t,e){if(e&&(Xg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Lh(t){return Lh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lh(t)}var Kg=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Vg(c,p)})(s,t);var e,n,i=RP(s);function s(){return NP(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(fe.g)("g",null,Object(fe.g)(d1,Yg({},p,{points:c.points,x:c.x,y:c.y})))}}])&&CP(e.prototype,n),s}(Ba);function qg(t){return qg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qg(t)}function LP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return h1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return h1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  109. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function h1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function BP(t){var e=t.x,n=e===void 0?0:e,i=t.y,s=i===void 0?0:i,c=t.rx,p=c===void 0?4:c,v=t.ry,m=v===void 0?4:v,x=t.className,S={cx:n,cy:s,rx:p,ry:m,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(t).forEach(function(D){var I=LP(D,2),K=I[0],re=I[1];qg(re)!=="object"&&(S[K]=re)}),S.className=x?"lf-basic-shape ".concat(x):"lf-basic-shape",Object(fe.g)("ellipse",S)}function Zg(t){return Zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zg(t)}function Jg(){return Jg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Jg.apply(this,arguments)}function zP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Qg(t,e){return Qg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qg(t,e)}function $P(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Bh(t);if(e){var s=Bh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return WP(this,n)}}function WP(t,e){if(e&&(Zg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Bh(t){return Bh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bh(t)}var eb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Qg(c,p)})(s,t);var e,n,i=$P(s);function s(){return zP(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(fe.g)(BP,Jg({},p,{x:c.x,y:c.y,rx:c.rx,ry:c.ry}))}}])&&FP(e.prototype,n),s}(Ba);function tb(t){return tb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tb(t)}function y1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function v1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?y1(Object(n),!0).forEach(function(i){UP(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function UP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function nb(t,e){return nb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},nb(t,e)}function XP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=zh(t);if(e){var s=zh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return YP(this,n)}}function YP(t,e){if(e&&(tb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function zh(t){return zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zh(t)}var rb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&nb(c,p)})(s,t);var e,n,i=XP(s);function s(){return GP(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getBackground",value:function(){var c=this.props.model,p=c.getTextStyle(),v=c.width,m=c.height,x=c.x,S=c.y,D=v1(v1({},p.background),{},{x,y:S-1,width:v,height:m});return Object(fe.g)(Eu,D)}},{key:"getShape",value:function(){return Object(fe.g)("g",null,this.getBackground())}}])&&HP(e.prototype,n),s}(Ba);function ob(t){return ob=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ob(t)}function ib(){return ib=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ib.apply(this,arguments)}function VP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ab(t,e){return ab=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ab(t,e)}function qP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Fh(t);if(e){var s=Fh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return ZP(this,n)}}function ZP(t,e){if(e&&(ob(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hp(t)}function hp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fh(t){return Fh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fh(t)}function $h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ub=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&ab(c,p)})(s,t);var e,n,i=qP(s);function s(){var c;VP(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return $h(hp(c=i.call.apply(i,[this].concat(v))),"ref",void 0),$h(hp(c),"currentProperties",void 0),$h(hp(c),"preProperties",void 0),$h(hp(c),"setRef",function(x){c.ref=x}),c}return e=s,(n=[{key:"rootEl",get:function(){return this.ref}},{key:"setHtml",value:function(c){c.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 c=this.props.model,p=c.x,v=c.y,m=c.height,x=c.width,S=c.getNodeStyle();return this.currentProperties=JSON.stringify(c.properties),Object(fe.g)("foreignObject",ib({},S,{x:p-x/2,y:v-m/2,width:x,height:m,ref:this.setRef}))}}])&&KP(e.prototype,n),s}(Ba);function cb(t){return cb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cb(t)}function sb(){return sb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},sb.apply(this,arguments)}function g1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?g1(Object(n),!0).forEach(function(i){pb(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function JP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function lb(t,e){return lb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},lb(t,e)}function QP(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Wh(t);if(e){var s=Wh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return eA(this,n)}}function eA(t,e){if(e&&(cb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fb(t)}function fb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wh(t){return Wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wh(t)}function pb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tA=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&lb(c,p)})(s,t);var e,n,i=QP(s);function s(c){var p;return function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),pb(fb(p=i.call(this,c)),"setHoverON",function(){p.setState({isHovered:!0})}),pb(fb(p),"setHoverOFF",function(){p.setState({isHovered:!1})}),p.state={isHovered:!1},p}return e=s,(n=[{key:"getBackground",value:function(){var c=this.props.model,p=c.getTextStyle(),v=c.text,m=c.width,x=p.background||{};if(this.state.isHovered&&p.hover&&p.hover.background&&(x=Ic(Ic({},x),p.hover.background)),v&&v.value&&x.fill!=="transparent"){var S,D=p.fontSize,I=p.overflowMode,K=p.lineHeight,re=p.wrapPadding,oe=p.textWidth,he=v.value,ye=v.x,Ee=v.y,Re=String(he).split(/[\r\n]/g),Qe=Re.length;if(I==="autoWrap"&&oe){var Ze=Id({rows:Re,style:{fontSize:"".concat(D,"px"),width:"".concat(oe,"px"),lineHeight:K,padding:re},rowsLength:Qe,className:"lf-get-text-height"});S=Ic(Ic({},x),{},{x:ye-1,y:Ee-1,width:oe,height:Ze})}else{Re&&Re.forEach(function(tn){Ks(tn)});var _t=Df({rows:Re,fontSize:D,rowsLength:Qe}),qe=_t.width,ht=_t.height;if(I==="ellipsis"&&(qe=oe||m,ht=D+2),typeof x.wrapPadding=="string"){var rt=x.wrapPadding.split(",").filter(function(tn){return tn.trim()}).map(function(tn){return parseFloat(tn.trim())});rt.length>0&&rt.length<=4&&(rt.length===1?rt=[rt[0],rt[0],rt[0],rt[0]]:rt.length===2?rt=[rt[0],rt[1],rt[0],rt[1]]:rt.length===3&&(rt=[rt[0],rt[1],rt[2],rt[1]]),qe+=rt[1]+rt[3],ht+=rt[0]+rt[2],ye+=(rt[1]-rt[3])/2,Ee+=(rt[2]-rt[0])/2)}S=Ic(Ic({},x),{},{x:ye-1,y:Ee-1,width:qe,height:ht})}return Object(fe.g)(Eu,S)}}},{key:"getShape",value:function(){var c=this.props.model,p=c.text,v=p.value,m=p.x,x=p.y;if(v){var S=Ic({x:m,y:x,className:"lf-element-text",value:v},c.getTextStyle());return Object(fe.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(fe.g)(a1,sb({},S,{model:c})))}}}])&&JP(e.prototype,n),s}(c1);function db(t){return db=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(t)}var sa,nA=["text","sourceAnchorId","targetAnchorId"];function b1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function za(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?b1(Object(n),!0).forEach(function(i){No(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function rA(t,e){if(t==null)return{};var n,i,s=function(p,v){if(p==null)return{};var m,x,S={},D=Object.keys(p);for(x=0;x<D.length;x++)m=D[x],v.indexOf(m)>=0||(S[m]=p[m]);return S}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(i=0;i<c.length;i++)n=c[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function oA(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return m1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return m1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  110. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function m1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function iA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function hb(t,e){return hb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},hb(t,e)}function aA(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Uh(t);if(e){var s=Uh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return uA(this,n)}}function uA(t,e){if(e&&(db(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Do(t)}function Do(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uh(t){return Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uh(t)}function No(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(sa||(sa={}));var _1=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&hb(c,p)})(s,t);var e,n,i=aA(s);function s(c){var p;(function(S,D){if(!(S instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),No(Do(p=i.call(this)),"stepDragData",void 0),No(Do(p),"stepDrag",void 0),No(Do(p),"oldEdge",void 0),No(Do(p),"preTargetNode",void 0),No(Do(p),"targetRuleResults",void 0),No(Do(p),"sourceRuleResults",void 0),No(Do(p),"handleMouseDown",function(S){p.stepDrag&&p.stepDrag.handleMouseDown(S)}),No(Do(p),"onDragStart",function(){var S=p.props,D=S.x,I=S.y,K=S.edgeModel,re=K.startPoint,oe=K.endPoint,he=K.pointsList;p.oldEdge={startPoint:re,endPoint:oe,pointsList:he},p.setState({endX:D,endY:I,dragging:!0})}),No(Do(p),"onDragging",function(S){var D=S.deltaX,I=S.deltaY,K=p.state,re=K.endX,oe=K.endY,he=p.props,ye=he.graphModel,Ee=he.type,Re=ye.transformModel,Qe=ye.editConfigModel,Ze=oA(Re.moveCanvasPointByHtml([re,oe],D,I),2),_t=Ze[0],qe=Ze[1];p.setState({endX:_t,endY:qe,dragging:!0});var ht=p.props.edgeModel,rt=Ls({x:re,y:oe},ye);if(rt&&rt.node&&p.isAllowAdjust(rt).pass){var tn,un=ht.startPoint,Lt=ht.endPoint,pn=ht.sourceNode,nr=ht.targetNode;Ee===sa.SOURCE?tn={startPoint:{x:rt.anchor.x,y:rt.anchor.y},endPoint:{x:Lt.x,y:Lt.y},sourceNode:rt.node,targetNode:nr}:Ee===sa.TARGET&&(tn={startPoint:{x:un.x,y:un.y},endPoint:{x:rt.anchor.x,y:rt.anchor.y},sourceNode:pn,targetNode:rt.node}),ht.updateAfterAdjustStartAndEnd(tn)}else Ee===sa.SOURCE?ht.updateStartPoint({x:_t,y:qe}):Ee===sa.TARGET&&ht.updateEndPoint({x:_t,y:qe});ht.text.value&&Qe.adjustEdge&&ht.setText(Object.assign({},ht.text,ht.textPosition))}),No(Do(p),"onDragEnd",function(S){var D=S.event;try{var I;p.setState({dragging:!1});var K=p.props,re=K.graphModel,oe=K.edgeModel,he=K.type,ye=p.state,Ee=ye.endX,Re=ye.endY,Qe=ye.dragging,Ze=Ls({x:Ee,y:Re},re);if(!Qe)return;var _t,qe=!1;if(Ze&&Ze.node){var ht=p.isAllowAdjust(Ze),rt=ht.pass,tn=ht.msg,un=ht.newTargetNode;if(rt){var Lt=oe.getData(),pn=Lt.text,nr=Lt.sourceAnchorId,rr=nr===void 0?"":nr,zr=Lt.targetAnchorId;_t=za(za({sourceAnchorId:rr,targetAnchorId:zr===void 0?"":zr},rA(Lt,nA)),{},{text:(pn==null?void 0:pn.value)||""}),he===sa.SOURCE?(_t=za(za({},re.edgeGenerator(re.getNodeModelById(Ze.node.id).getData(),re.getNodeModelById(oe.targetNodeId).getData(),_t)),{},{sourceNodeId:Ze.node.id,sourceAnchorId:Ze.anchor.id,startPoint:{x:Ze.anchor.x,y:Ze.anchor.y},targetNodeId:oe.targetNodeId,endPoint:za({},oe.endPoint)}),oe.sourceNodeId===Ze.node.id&&oe.sourceAnchorId===Ze.anchor.id&&(qe=!0)):he===sa.TARGET&&(_t=za(za({},re.edgeGenerator(re.getNodeModelById(oe.sourceNodeId).getData(),re.getNodeModelById(Ze.node.id).getData(),_t)),{},{sourceNodeId:oe.sourceNodeId,startPoint:za({},oe.startPoint),targetNodeId:Ze.node.id,targetAnchorId:Ze.anchor.id,endPoint:{x:Ze.anchor.x,y:Ze.anchor.y}}),oe.targetNodeId===Ze.node.id&&oe.targetAnchorId===Ze.anchor.id&&(qe=!0))}else{qe=!0;var Co=un.getData();re.eventCenter.emit(dt.CONNECTION_NOT_ALLOWED,{data:Co,msg:tn})}}else qe=!0;if(qe)p.recoveryEdge();else{var Ro=oe.getData();re.deleteEdgeById(oe.id);var fa=re.addEdge(za({},_t));re.eventCenter.emit(dt.EDGE_EXCHANGE_NODE,{data:{newEdge:fa.getData(),oldEdge:Ro}})}(I=p.preTargetNode)===null||I===void 0||I.setElementState(gn.DEFAULT)}finally{p.props.graphModel.eventCenter.emit(dt.ADJUST_POINT_DRAGEND,{e:D,data:p.stepDragData})}}),No(Do(p),"recoveryEdge",function(){var S=p.props.edgeModel,D=p.oldEdge,I=D.startPoint,K=D.endPoint,re=D.pointsList;S.updateStartPoint(I),S.updateEndPoint(K),S.modelType!==Zt.LINE_EDGE&&(S.pointsList=re,S.initPoints())}),No(Do(p),"getAdjustPointStyle",function(){var S=p.props,D=S.graphModel.theme;return S.edgeModel,D.edgeAdjust}),p.state={dragging:!1,endX:0,endY:0},p.targetRuleResults=new Map,p.sourceRuleResults=new Map;var v=c.type,m=c.edgeModel,x=c.graphModel.eventCenter;return p.stepDragData={type:v,edgeData:m.getData()},p.stepDrag=new Qo({onDragStart:p.onDragStart,onDragging:p.onDragging,onDragEnd:p.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:x,data:p.stepDragData}),p}return e=s,(n=[{key:"isAllowAdjust",value:function(c){var p=this.props,v=p.edgeModel,m=v.id,x=v.sourceNode,S=v.targetNode,D=v.sourceAnchorId,I=v.targetAnchorId,K=p.type,re=null,oe=null,he=null,ye=null;if(K===sa.SOURCE?(re=c.node,oe=S,he=c.anchor,ye=S.getAnchorInfo(I)):(re=x,oe=c.node,ye=c.anchor,he=x.getAnchorInfo(D)),this.preTargetNode&&this.preTargetNode!==c.node&&this.preTargetNode.setElementState(gn.DEFAULT),this.preTargetNode=c.node,ye.id===he.id)return{pass:!1,msg:"",newTargetNode:oe};var Ee="".concat(re.id,"_").concat(oe.id,"_").concat(he.id,"_").concat(ye.id);if(!this.targetRuleResults.has(Ee)){var Re=re.isAllowConnectedAsSource(oe,he,ye,m),Qe=oe.isAllowConnectedAsTarget(re,he,ye,m);this.sourceRuleResults.set(Ee,gc(Re)),this.targetRuleResults.set(Ee,gc(Qe))}var Ze=this.sourceRuleResults.get(Ee),_t=Ze.isAllPass,qe=Ze.msg,ht=this.targetRuleResults.get(Ee),rt=ht.isAllPass,tn=ht.msg,un=_t&&rt?gn.ALLOW_CONNECT:gn.NOT_ALLOW_CONNECT;return K===sa.SOURCE?re.setElementState(un):oe.setElementState(un),{pass:_t&&rt,msg:tn||qe,newTargetNode:oe}}},{key:"render",value:function(){var c=this.props,p=c.x,v=c.y,m=c.getAdjustPointShape,x=c.edgeModel,S=this.state.dragging;return Object(fe.g)("g",{pointerEvents:S?"none":"",onMouseDown:this.handleMouseDown},S?"":m(p,v,x))}}])&&iA(e.prototype,n),s}(fe.a);function yb(t){return yb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yb(t)}function yp(){return yp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},yp.apply(this,arguments)}function cA(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return O1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return O1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  111. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function O1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function sA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function vb(t,e){return vb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},vb(t,e)}function fA(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Gh(t);if(e){var s=Gh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return pA(this,n)}}function pA(t,e){if(e&&(yb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Di(t)}function Di(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gh(t){return Gh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gh(t)}function la(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vp=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&vb(c,p)})(s,t);var e,n,i=fA(s);function s(){var c;sA(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return la(Di(c=i.call.apply(i,[this].concat(v))),"startTime",void 0),la(Di(c),"contextMenuTime",void 0),la(Di(c),"clickTimer",void 0),la(Di(c),"textRef",Object(fe.f)()),la(Di(c),"handleHover",function(x,S){var D=c.props,I=D.model,K=D.graphModel.eventCenter;I.setHovered(x);var re=x?dt.EDGE_MOUSEENTER:dt.EDGE_MOUSELEAVE,oe=I.getData();K.emit(re,{data:oe,e:S})}),la(Di(c),"setHoverON",function(x){c.props.model.isHovered||(c.textRef&&c.textRef.current&&c.textRef.current.setHoverON(),c.handleHover(!0,x))}),la(Di(c),"setHoverOFF",function(x){c.props.model.isHovered&&(c.textRef&&c.textRef.current&&c.textRef.current.setHoverOFF(),c.handleHover(!1,x))}),la(Di(c),"handleContextMenu",function(x){x.preventDefault(),c.contextMenuTime=new Date().getTime(),c.clickTimer&&clearTimeout(c.clickTimer);var S=c.props,D=S.model,I=S.graphModel,K=I.getPointByClient({x:x.clientX,y:x.clientY});I.setElementStateById(D.id,gn.SHOW_MENU,K.domOverlayPosition),c.toFront(),D.isSelected||I.selectEdgeById(D.id);var re=D==null?void 0:D.getData();I.eventCenter.emit(dt.EDGE_CONTEXTMENU,{data:re,e:x,position:K})}),la(Di(c),"handleMouseDown",function(x){x.stopPropagation(),c.startTime=new Date().getTime()}),la(Di(c),"handleMouseUp",function(x){if(c.startTime&&!(new Date().getTime()-c.startTime>200||x.button===2)){var S=x.detail===2,D=c.props,I=D.model,K=D.graphModel,re=I==null?void 0:I.getData(),oe=K.getPointByClient({x:x.clientX,y:x.clientY});if(S){var he=K.editConfigModel,ye=K.textEditElement;if(ye&&ye.id===I.id&&K.setElementStateById(I.id,gn.DEFAULT),he.edgeTextEdit&&I.text.editable&&K.setElementStateById(I.id,gn.TEXT_EDIT),I.modelType===Zt.POLYLINE_EDGE){var Ee=I,Re=K.getPointByClient({x:x.x,y:x.y}).canvasOverlayPosition,Qe=Re.x,Ze=Re.y,_t=qf({x:Qe,y:Ze},Ee.points);Ee.dbClickPosition=_t}K.eventCenter.emit(dt.EDGE_DBCLICK,{data:re,e:x,position:oe})}else K.eventCenter.emit(dt.ELEMENT_CLICK,{data:re,e:x,position:oe}),K.eventCenter.emit(dt.EDGE_CLICK,{data:re,e:x,position:oe});var qe=K.editConfigModel;K.selectEdgeById(I.id,df(x,qe)),c.toFront()}}),c}return e=s,(n=[{key:"getShape",value:function(){return Object(fe.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var c=this.props,p=c.model,v=c.graphModel;if(p.state===gn.TEXT_EDIT)return null;var m=!1,x=v.editConfigModel;return(p.text.draggable||x.edgeTextDraggable)&&(m=!0),Object(fe.g)(tA,{ref:this.textRef,editable:x.edgeTextEdit&&p.text.editable,model:p,graphModel:v,draggable:m})}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,m=c.isSelected;return{start:p,end:v,hover:this.state.hover,isSelected:m}}},{key:"getLastTwoPoints",value:function(){var c=this.props.model;return[c.startPoint,c.endPoint]}},{key:"getArrowStyle",value:function(){return null}},{key:"getArrow",value:function(){var c=this.props.model,p=c.id,v=c.getArrowStyle(),m=v.refY,x=m===void 0?0:m,S=v.refX,D=S===void 0?2:S,I=cA(this.getLastTwoPoints(),2),K=I[0],re=I[1],oe="auto";return K!==null&&re!==null&&(oe=Ta(Vr({x:re.x-K.x,y:re.y-K.y,z:0}))),Object(fe.g)("g",null,Object(fe.g)("defs",null,Object(fe.g)("marker",{id:"marker-start-".concat(p),refX:-D,refY:x,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(fe.g)("marker",{id:"marker-end-".concat(p),refX:D,refY:x,overflow:"visible",orient:oe,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var c=this.props.model.getArrowStyle();return c.stroke,c.strokeWidth,c.offset,c.verticalLength,Object(fe.g)("path",null)}},{key:"getEndArrow",value:function(){var c=this.props.model.getArrowStyle(),p=c.stroke,v=c.strokeWidth,m=c.offset,x=c.verticalLength;return Object(fe.g)("path",{stroke:p,fill:p,strokeWidth:v,transform:"rotate(180)",d:"M 0 0 L ".concat(m," -").concat(x," L ").concat(m," ").concat(x," Z")})}},{key:"getAdjustPointShape",value:function(c,p,v){var m=v.getAdjustPointStyle();return Object(fe.g)(rl,yp({className:"lf-edge-adjust-point"},m,{x:c,y:p}))}},{key:"getAdjustPoints",value:function(){var c=this.props,p=c.model,v=c.graphModel,m=p.getAdjustStart(),x=p.getAdjustEnd();return Object(fe.g)("g",null,Object(fe.g)(_1,yp({type:"SOURCE"},m,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:v})),Object(fe.g)(_1,yp({type:"TARGET"},x,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:v})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(fe.g)("g",null)}},{key:"getAppend",value:function(){return Object(fe.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"getEdge",value:function(){return null}},{key:"toFront",value:function(){var c=this.props,p=c.graphModel,v=c.model;p.toFront(v.id)}},{key:"render",value:function(){var c=this.props,p=c.model,v=p.isSelected,m=p.isHitable,x=p.isShowAdjustPoint;return c.graphModel.animation,Object(fe.g)("g",null,Object(fe.g)("g",{className:["lf-edge",!m&&"pointer-none",v&&"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&&v?this.getAdjustPoints():"")}}])&&lA(e.prototype,n),s}(fe.a);function gb(t){return gb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gb(t)}function dA(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return w1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return w1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  112. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function w1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var gp=function(t){var e={d:""};return Object.entries(t).forEach(function(n){var i=dA(n,2),s=i[0],c=i[1],p=gb(c);s!=="style"&&p==="object"||(e[s]=c)}),Object(fe.g)("path",e)};function bb(t){return bb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bb(t)}function mb(){return mb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},mb.apply(this,arguments)}function hA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _b(t,e){return _b=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},_b(t,e)}function vA(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Hh(t);if(e){var s=Hh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return gA(this,n)}}function gA(t,e){if(e&&(bb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Hh(t){return Hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hh(t)}var Ob=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&_b(c,p)})(s,t);var e,n,i=vA(s);function s(){return hA(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getEdge",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,m=c.isAnimation,x=c.arrowConfig,S=c.getEdgeStyle(),D=c.getEdgeAnimationStyle(),I=D.strokeDasharray,K=D.stroke,re=D.strokeDashoffset,oe=D.animationName,he=D.animationDuration,ye=D.animationIterationCount,Ee=D.animationTimingFunction,Re=D.animationDirection;return Object(fe.g)(tl,mb({},S,{x1:p.x,y1:p.y,x2:v.x,y2:v.y},x,m?{strokeDasharray:I,stroke:K,style:{strokeDashoffset:re,animationName:oe,animationDuration:he,animationIterationCount:ye,animationTimingFunction:Ee,animationDirection:Re}}:{}))}},{key:"getAppendWidth",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,m=nh({start:p,end:v}),x=m.d,S=m.strokeWidth,D=m.fill,I=m.strokeDasharray,K=m.stroke;return Object(fe.g)(gp,{d:x,fill:D,strokeWidth:S,stroke:K,strokeDasharray:I})}}])&&yA(e.prototype,n),s}(vp);function wb(t){return wb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wb(t)}function bA(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return x1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return x1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  113. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function x1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var mA=function(t){var e={points:"",fill:"none"};return Object.entries(t).forEach(function(n){var i=bA(n,2),s=i[0],c=i[1];(s==="style"||wb(c)!=="object")&&(e[s]=c)}),Object(fe.g)("polyline",e)};function xb(t){return xb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xb(t)}function E1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Xh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?E1(Object(n),!0).forEach(function(i){$a(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Eb(){return Eb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Eb.apply(this,arguments)}function _A(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return S1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return S1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  114. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function S1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function OA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Sb(t,e){return Sb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Sb(t,e)}function wA(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Yh(t);if(e){var s=Yh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return xA(this,n)}}function xA(t,e){if(e&&(xb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fa(t)}function Fa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yh(t){return Yh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yh(t)}function $a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Sb(c,p)})(s,t);var e,n,i=wA(s);function s(){var c;return function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}(this,s),$a(Fa(c=i.call(this)),"drag",void 0),$a(Fa(c),"isDragging",void 0),$a(Fa(c),"isShowAdjustPointTemp",void 0),$a(Fa(c),"appendInfo",void 0),$a(Fa(c),"onDragStart",function(){var p=c.props.model;p.dragAppendStart(),c.isShowAdjustPointTemp=p.isShowAdjustPoint,p.isShowAdjustPoint=!1}),$a(Fa(c),"onDragging",function(p){var v=p.deltaX,m=p.deltaY,x=c.props,S=x.model,D=x.graphModel;c.isDragging=!0;var I=D.transformModel,K=D.editConfigModel,re=_A(I.fixDeltaXY(v,m),2),oe=re[0],he=re[1],ye=S,Ee=K.adjustEdgeMiddle;c.appendInfo=Ee?ye.dragAppendSimple(c.appendInfo,{x:oe,y:he}):ye.dragAppend(c.appendInfo,{x:oe,y:he})}),$a(Fa(c),"onDragEnd",function(){var p=c.props,v=p.model,m=p.graphModel.eventCenter,x=v;x.dragAppendEnd(),c.isDragging=!1,x.isShowAdjustPoint=c.isShowAdjustPointTemp,c.appendInfo=void 0,m.emit(dt.EDGE_ADJUST,{data:x.getData()})}),$a(Fa(c),"beforeDragStart",function(p,v){v.dragAble&&c.drag.handleMouseDown(p),c.appendInfo=v}),c.drag=new Qo({onDragStart:c.onDragStart,onDragging:c.onDragging,onDragEnd:c.onDragEnd,isStopPropagation:!1}),c}return e=s,(n=[{key:"getEdge",value:function(){var c=this.props.model,p=c.points,v=c.isAnimation,m=c.arrowConfig,x=c.getEdgeStyle(),S=c.getEdgeAnimationStyle(),D=S.strokeDasharray,I=S.stroke,K=S.strokeDashoffset,re=S.animationName,oe=S.animationDuration,he=S.animationIterationCount,ye=S.animationTimingFunction,Ee=S.animationDirection;return Object(fe.g)(mA,Eb({points:p},x,m,v?{strokeDasharray:D,stroke:I,style:{strokeDashoffset:K,animationName:re,animationDuration:oe,animationIterationCount:he,animationTimingFunction:ye,animationDirection:Ee}}:{}))}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=c.points,v=c.isSelected,m={start:null,end:null,hover:this.state.hover,isSelected:v},x=ta(p);return x.length>=2&&(m.start=x[x.length-2],m.end=x[x.length-1]),m}},{key:"getLastTwoPoints",value:function(){var c=this.props.model.points,p=ta(c);return p.length>=2?[p[p.length-2],p[p.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(c){var p,v=c.start,m=c.end;if(v.x===m.x&&v.y===m.y)p="";else{var x={start:v,end:m,offset:10,verticalLength:5},S=Si(Xh(Xh({},x),{},{type:"start"})),D=Si(Xh(Xh({},x),{},{type:"end"}));p="M".concat(S.leftX," ").concat(S.leftY,`
  115. L`).concat(S.rightX," ").concat(S.rightY,`
  116. L`).concat(D.rightX," ").concat(D.rightY,`
  117. L`).concat(D.leftX," ").concat(D.leftY," z")}return{d:p,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(c){var p=this.getAppendAttributes(c),v=p.d,m=p.strokeWidth,x=p.fill,S=p.strokeDasharray,D=p.stroke;return Object(fe.g)(gp,{d:v,fill:x,strokeWidth:m,stroke:D,strokeDasharray:S})}},{key:"getAppendWidth",value:function(){for(var c=this,p=this.props,v=p.model,m=p.graphModel,x=v.pointsList,S=v.draggable,D=[],I=x.length,K=function(oe){var he="lf-polyline-append",ye={start:{x:x[oe].x,y:x[oe].y},end:{x:x[oe+1].x,y:x[oe+1].y},startIndex:oe,endIndex:oe+1,direction:"",dragAble:!0},Ee=Object(fe.g)("g",{className:he},c.getAppendShape(ye)),Re=m.editConfigModel,Qe=Re.adjustEdge,Ze=Re.adjustEdgeMiddle;if(Qe&&S){var _t=ye.startIndex,qe=ye.endIndex,ht=Ze&&(_t===0||qe===I-1);ye.dragAble=!ht,ye.start.x===ye.end.x?(ye.dragAble&&(he+="-ew-resize"),ye.direction=Tn.VERTICAL):ye.start.y===ye.end.y&&(ye.dragAble&&(he+="-ns-resize"),ye.direction=Tn.HORIZONTAL),Ee=Object(fe.g)("g",{className:c.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(rt){return c.beforeDragStart(rt,ye)}},Object(fe.g)("g",{className:he},c.getAppendShape(ye)))}D.push(Ee)},re=0;re<I-1;re++)K(re);return Object(fe.g)("g",null,D)}}])&&OA(e.prototype,n),s}(vp);function Pb(t){return Pb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pb(t)}function EA(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return j1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return j1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  118. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function j1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ab(){return Ab=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ab.apply(this,arguments)}function SA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Tb(t,e){return Tb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Tb(t,e)}function PA(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Vh(t);if(e){var s=Vh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return AA(this,n)}}function AA(t,e){if(e&&(Pb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Vh(t){return Vh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vh(t)}var Mb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Tb(c,p)})(s,t);var e,n,i=PA(s);function s(){return SA(this,s),i.apply(this,arguments)}return e=s,(n=[{key:"getEdge",value:function(){var c=this.props.model,p=c.getEdgeStyle(),v=c.path,m=c.isAnimation,x=c.arrowConfig,S=c.getEdgeAnimationStyle(),D=S.strokeDasharray,I=S.stroke,K=S.strokeDashoffset,re=S.animationName,oe=S.animationDuration,he=S.animationIterationCount,ye=S.animationTimingFunction,Ee=S.animationDirection;return Object(fe.g)(gp,Ab({d:v},p,x,m?{strokeDasharray:D,stroke:I,style:{strokeDashoffset:K,animationName:re,animationDuration:oe,animationIterationCount:he,animationTimingFunction:ye,animationDirection:Ee}}:{}))}},{key:"getAppendWidth",value:function(){var c=this.props.model.path;return Object(fe.g)(gp,{d:c,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=this.state.hover,v=c.isSelected,m=c.getArrowStyle().offset,x=c.pointsList.map(function(D){return{x:D.x,y:D.y}}),S=EA(Kf(x,m),2);return{start:S[0],end:S[1],hover:p,isSelected:v}}},{key:"getLastTwoPoints",value:function(){var c=this.props.model,p=c.getArrowStyle().offset,v=c.pointsList.map(function(m){return{x:m.x,y:m.y}});return Kf(v,p)}}])&&jA(e.prototype,n),s}(vp);function kb(t){return kb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kb(t)}function P1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function TA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function MA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Db(t,e){return Db=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Db(t,e)}function DA(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Kh(t);if(e){var s=Kh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return NA(this,n)}}function NA(t,e){if(e&&(kb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Kh(t){return Kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kh(t)}var CA=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Db(c,p)})(s,t);var e,n,i=DA(s);function s(){return MA(this,s),i.apply(this,arguments)}return e=s,n=[{key:"getArrowAttributes",value:function(){var c=this.props,p=c.arrowInfo,v=c.style,m=p.start,x=p.end,S={start:m,end:x,offset:v.offset,verticalLength:v.verticalLength,type:"end"},D=Si(S),I=D.leftX,K=D.leftY,re=D.rightX,oe=D.rightY;return function(he){for(var ye=1;ye<arguments.length;ye++){var Ee=arguments[ye]!=null?arguments[ye]:{};ye%2?P1(Object(Ee),!0).forEach(function(Re){TA(he,Re,Ee[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Ee)):P1(Object(Ee)).forEach(function(Re){Object.defineProperty(he,Re,Object.getOwnPropertyDescriptor(Ee,Re))})}return he}({d:"M".concat(I," ").concat(K," L").concat(x.x," ").concat(x.y," L").concat(re," ").concat(oe," z")},v)}},{key:"getShape",value:function(){var c=this.getArrowAttributes(),p=c.d,v=c.strokeWidth,m=c.stroke,x=c.fill;return Object(fe.g)(gp,{d:p,fill:x,strokeWidth:v,stroke:m})}},{key:"render",value:function(){return Object(fe.g)("g",{className:"lf-arrow"},this.getShape())}}],n&&kA(e.prototype,n),s}(fe.a),A1=function(t,e){return Se(t,e)},RA=function(t){var e=t==null?0:t.length;return e?t[e-1]:void 0},Nb=function(){return pt.a.Date.now()},IA=Math.max,LA=Math.min,BA=function(t,e,n){var i,s,c,p,v,m,x=0,S=!1,D=!1,I=!0;if(typeof t!="function")throw new TypeError("Expected a function");function K(Re){var Qe=i,Ze=s;return i=s=void 0,x=Re,p=t.apply(Ze,Qe)}function re(Re){return x=Re,v=setTimeout(he,e),S?K(Re):p}function oe(Re){var Qe=Re-m;return m===void 0||Qe>=e||Qe<0||D&&Re-x>=c}function he(){var Re=Nb();if(oe(Re))return ye(Re);v=setTimeout(he,function(Qe){var Ze=e-(Qe-m);return D?LA(Ze,c-(Qe-x)):Ze}(Re))}function ye(Re){return v=void 0,I&&i?K(Re):(i=s=void 0,p)}function Ee(){var Re=Nb(),Qe=oe(Re);if(i=arguments,s=this,m=Re,Qe){if(v===void 0)return re(m);if(D)return clearTimeout(v),v=setTimeout(he,e),K(m)}return v===void 0&&(v=setTimeout(he,e)),p}return e=Ki(e)||0,zn(n)&&(S=!!n.leading,c=(D="maxWait"in n)?IA(Ki(n.maxWait)||0,e):c,I="trailing"in n?!!n.trailing:I),Ee.cancel=function(){v!==void 0&&clearTimeout(v),x=0,i=m=s=v=void 0},Ee.flush=function(){return v===void 0?p:ye(Nb())},Ee},zA=o(172);function FA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Au(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T1,M1,k1,$A=function(){function t(i){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),Au(this,"undos",[]),Au(this,"redos",[]),Au(this,"callbacks",[]),Au(this,"stopWatch",null),Au(this,"curData",null),Au(this,"maxSize",50),Au(this,"waitTime",100),Au(this,"eventCenter",void 0),this.eventCenter=i}var e,n;return e=t,(n=[{key:"add",value:function(i){A1(RA(this.undos),i)||(this.undos.push(i),A1(this.curData,i)||(this.redos=[]),this.eventCenter.emit(dt.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 i=this.undos.pop();this.redos.push(i);var s=this.undos.pop();return this.curData=Ln(s),s}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var i=this.redos.pop();return this.curData=Ln(i),i}}},{key:"watch",value:function(i){var s=this;this.stopWatch&&this.stopWatch(),this.undos.push(i.modelToGraphData()),this.stopWatch=Object(zA.a)(i,BA(function(){var c=i.modelToHistoryData();c&&s.add(c)},this.waitTime))}}])&&FA(e.prototype,n),t}();function Cb(t){return Cb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cb(t)}function WA(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,i){if(!!n){if(typeof n=="string")return D1(n,i);var s=Object.prototype.toString.call(n).slice(8,-1);if(s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set")return Array.from(n);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return D1(n,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  119. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function N1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Lc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?N1(Object(n),!0).forEach(function(i){Bc(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function C1(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Rb(t,e){return Rb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Rb(t,e)}function UA(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=qh(t);if(e){var s=qh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return GA(this,n)}}function GA(t,e){if(e&&(Cb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hl(t)}function hl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qh(t){return qh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qh(t)}function Bc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var R1,I1,L1,Ib=Ni((k1=M1=function(t){(function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),v&&Rb(p,v)})(c,t);var e,n,i,s=UA(c);function c(){var p;return function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,c),Bc(hl(p=s.call(this)),"ref",Object(fe.f)()),Bc(hl(p),"__prevText",{type:"",text:"",id:""}),Bc(hl(p),"keyupHandler",function(v){var m=p.props.graphModel.textEditElement;v.key==="Enter"&&v.altKey&&m.setElementState(0)}),Bc(hl(p),"inputHandler",function(v){var m=v.target.innerText,x=p.props.graphModel.textEditElement;p.__prevText={type:x.type,text:m.replace(/(\r\n)+$|(\n)+$/,""),id:x.id}}),Bc(hl(p),"keydownHandler",function(v){v.stopPropagation()}),p.state={style:{left:0,top:0}},p}return e=c,i=[{key:"getDerivedStateFromProps",value:function(p){var v,m=p.graphModel,x=m.transformModel,S=m.theme,D=S.inputText,I=m.textEditElement;if(I){var K;if((K=I.text)===null||K===void 0||!K.value)if(I.BaseType===Jn.EDGE){var re=(I=I).text,oe=I.textPosition,he=oe.x,ye=oe.y;re.x=he,re.y=ye,I.setText(re)}else I=I;var Ee={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(I.BaseType===Jn.EDGE){var Re=S.edgeText,Qe=Re.overflowMode,Ze=Re.lineHeight,_t=Re.wrapPadding,qe=Re.textWidth;qe&&Qe==="autoWrap"&&(v=Lc(Lc({},Ee),{},{width:qe,minWidth:qe,lineHeight:Ze,padding:_t}))}else if(I.BaseType===Jn.NODE){var ht=S.nodeText,rt=ht.overflowMode,tn=ht.lineHeight,un=ht.wrapPadding,Lt=ht.textWidth,pn=I,nr=pn.width,rr=pn.modelType,zr=pn.textWidth||Lt||nr;(rr!==Zt.TEXT_NODE&&rt==="autoWrap"||rr===Zt.TEXT_NODE&&Lt)&&(v=Lc(Lc({},Ee),{},{width:zr,minWidth:zr,lineHeight:tn,padding:un}))}var Co=I.text,Ro=Co.x,fa=Co.y,zc=WA(x.CanvasPointToHtmlPoint([Ro,fa]),2);return{style:Lc(Lc({left:zc[0],top:zc[1]},v),D)}}}}],(n=[{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 v=this.__prevText,m=v.text,x=v.id;p.updateText(x,m),p.eventCenter.emit(dt.TEXT_UPDATE,Lc({},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 v=document.createRange();v.selectNodeContents(p),v.collapse(!1);var m=window.getSelection();m.removeAllRanges(),m.addRange(v)}}},{key:"render",value:function(){var p,v=this.props.graphModel.textEditElement,m=this.state.style;return v?Object(fe.g)("div",{contentEditable:!0,className:"lf-text-input",style:m,ref:this.ref,key:v.id,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler},(p=v.text)===null||p===void 0?void 0:p.value):null}}])&&C1(e.prototype,n),i&&C1(e,i),c}(fe.a),Bc(M1,"toolName","textEdit"),T1=k1))||T1,HA=function(t){return t.modelType===Zt.LINE_EDGE?function(e){var n=e.startPoint,i=e.endPoint,s=(n.x+i.x)/2,c=(n.y+i.y)/2,p=Math.abs(n.x-i.x)+10,v=Math.abs(n.y-i.y)+10;return{x:s-p/2,y:c-v/2,x1:s+p/2,y1:c+v/2}}(t):t.modelType===Zt.POLYLINE_EDGE?function(e){var n=e.points,i=ta(n),s=ea(i,8),c=s.x,p=s.y,v=s.width,m=s.height;return{x:c-v/2,y:p-m/2,x1:c+v/2,y1:p+m/2}}(t):t.modelType===Zt.BEZIER_EDGE?function(e){var n=e.path,i=xr(n),s=ea(i,8),c=s.x,p=s.y,v=s.width,m=s.height;return{x:c-v/2,y:p-m/2,x1:c+v/2,y1:p+m/2}}(t):void 0};function Lb(t){return Lb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lb(t)}function B1(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,i){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(n);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(S){x=!0,p=S}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||z1(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  120. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function XA(t){return function(e){if(Array.isArray(e))return Bb(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||z1(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  121. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function z1(t,e){if(t){if(typeof t=="string")return Bb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bb(t,e):void 0}}function Bb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function YA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function zb(t,e){return zb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},zb(t,e)}function VA(t){var e=function(){if(typeof Reflect=="undefined"||!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{return!1}}();return function(){var n,i=Zh(t);if(e){var s=Zh(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return KA(this,n)}}function KA(t,e){if(e&&(Lb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yl(t)}function yl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zh(t){return Zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zh(t)}function vl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fb=Ni((L1=I1=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&zb(c,p)})(s,t);var e,n,i=VA(s);function s(c){var p;(function(S,D){if(!(S instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),vl(yl(p=i.call(this)),"stepDrag",void 0),vl(yl(p),"handleMouseDown",function(S){p.stepDrag.handleMouseDown(S)}),vl(yl(p),"handleWheelEvent",function(S){var D,I;S.preventDefault();var K=S.deltaX,re=S.deltaY,oe=S.clientX,he=S.clientY,ye=S.ctrlKey,Ee=new WheelEvent("wheel",{deltaX:K,deltaY:re,clientX:oe,clientY:he,ctrlKey:ye});(D=p.props.logicFlow.container)===null||D===void 0||(I=D.querySelector('.lf-canvas-overlay[name="canvas-overlay"]'))===null||I===void 0||I.dispatchEvent(Ee)}),vl(yl(p),"onDragging",function(S){var D=S.deltaX,I=S.deltaY,K=p.props.graphModel,re=K.getSelectElements(!0);K.moveNodes(re.nodes.map(function(oe){return oe.id}),D,I)}),vl(yl(p),"handleContextMenu",function(S){S.preventDefault();var D=p.props,I=D.graphModel,K=D.graphModel,re=K.eventCenter,oe=K.selectElements,he=I.getPointByClient({x:S.clientX,y:S.clientY}),ye={nodes:[],edges:[]};XA(oe.values()).forEach(function(Ee){Ee.BaseType===Jn.NODE&&ye.nodes.push(Ee.getData()),Ee.BaseType===Jn.EDGE&&ye.edges.push(Ee.getData())}),re.emit(dt.SELECTION_CONTEXTMENU,{data:ye,e:S,position:he})});var v=c.graphModel,m=v.gridSize,x=v.eventCenter;return p.stepDrag=new Qo({onDragging:p.onDragging,step:m,eventType:"SELECTION",eventCenter:x}),p}return e=s,(n=[{key:"render",value:function(){var c=this.props.graphModel,p=c.selectElements,v=c.transformModel;if(!(p.size<=1)){var m=Number.MAX_SAFE_INTEGER,x=Number.MAX_SAFE_INTEGER,S=Number.MIN_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER;p.forEach(function(oe){var he={x:0,y:0,x1:0,y1:0};oe.BaseType===Jn.NODE&&(he=function(ye){var Ee=ye.x,Re=ye.y,Qe=ye.width,Ze=ye.height;return{x:Ee-Qe/2,y:Re-Ze/2,x1:Ee+Qe/2,y1:Re+Ze/2}}(oe)),oe.BaseType===Jn.EDGE&&(he=HA(oe)),m=Math.min(m,he.x),x=Math.min(x,he.y),S=Math.max(S,he.x1),D=Math.max(D,he.y1)});var I=B1(v.CanvasPointToHtmlPoint([m,x]),2);m=I[0],x=I[1];var K=B1(v.CanvasPointToHtmlPoint([S,D]),2);S=K[0],D=K[1];var re={left:"".concat(m-10,"px"),top:"".concat(x-10,"px"),width:"".concat(S-m+20,"px"),height:"".concat(D-x+20,"px")};return Object(fe.g)("div",{className:"lf-multiple-select",style:re,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu,onWheel:this.handleWheelEvent})}}}])&&YA(e.prototype,n),s}(fe.a),vl(I1,"toolName","multipleSelect"),R1=L1))||R1;function qA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Jh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ZA=function(){function t(i){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),Jh(this,"tools",void 0),Jh(this,"components",void 0),Jh(this,"toolMap",new Map),Jh(this,"instance",void 0),this.instance=i,this.isDisabledTool(Ib.toolName)||this.registerTool(Ib.toolName,Ib),this.isDisabledTool(Fb.toolName)||this.registerTool(Fb.toolName,Fb);var s=i.graphModel;s.eventCenter.on("".concat(dt.GRAPH_TRANSFORM,",").concat(dt.NODE_CLICK,",").concat(dt.BLANK_CLICK," "),function(){var c=s.textEditElement,p=s.editConfigModel,v=p.edgeTextEdit,m=p.nodeTextEdit;(v||m)&&c&&s.textEditElement.setElementState(gn.DEFAULT)})}var e,n;return e=t,(n=[{key:"isDisabledTool",value:function(i){return this.instance.options.disabledTools.indexOf(i)!==-1}},{key:"registerTool",value:function(i,s){this.toolMap.set(i,s)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}])&&qA(e.prototype,n),t}(),JA=o(173),QA=o.n(JA);function e2(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function $b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F1=function(){function t(i){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),$b(this,"mousetrap",void 0),$b(this,"options",void 0),$b(this,"target",void 0),i.keyboard||(i.keyboard={enabled:!1}),this.options=i;var s=i.lf;this.target=s.container,this.mousetrap=new QA.a(this.target),i.keyboard.enabled&&!s.options.isSilentMode&&this.enable(!0)}var e,n;return e=t,(n=[{key:"initShortcuts",value:function(){var i=this,s=this.options.keyboard.shortcuts;if(s)if(Sn(s))s.forEach(function(m){var x=m.keys,S=m.callback,D=m.action;return i.on(x,S,D)});else{var c=s.keys,p=s.callback,v=s.action;this.on(c,p,v)}}},{key:"on",value:function(i,s,c){this.mousetrap.bind(this.getKeys(i),s,c)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(i,s){this.mousetrap.unbind(this.getKeys(i),s)}},{key:"enable",value:function(i){(this.disabled||i)&&(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(i){var s=this;return(Array.isArray(i)?i:[i]).map(function(c){return s.formatKey(c)})}},{key:"formatKey",value:function(i){return i.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")}}])&&e2(e.prototype,n),t}(),t2=F1,Wa=null;function $1(t,e){return t.x+=e,t.y+=e,t.text&&(t.text.x+=e,t.text.y+=e),t}function W1(t,e){return t.startPoint&&(t.startPoint.x+=e,t.startPoint.y+=e),t.endPoint&&(t.endPoint.x+=e,t.endPoint.y+=e),t.pointsList&&t.pointsList.length>0&&t.pointsList.forEach(function(n){n.x+=e,n.y+=e}),t.text&&(t.text.x+=e,t.text.y+=e),t}var gl=40,Wb=40;function Ub(t){return Ub=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ub(t)}function U1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function bp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U1(Object(n),!0).forEach(function(i){qn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function G1(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function qn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gb=Symbol("plugin register by Logicflow.use"),Hb=function(){function t(s){var c,p,v=this;(function(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")})(this,t),qn(this,"container",void 0),qn(this,"width",void 0),qn(this,"height",void 0),qn(this,"graphModel",void 0),qn(this,"history",void 0),qn(this,"viewMap",new Map),qn(this,"tool",void 0),qn(this,"keyboard",void 0),qn(this,"dnd",void 0),qn(this,"options",void 0),qn(this,"snaplineModel",void 0),qn(this,"components",[]),qn(this,"plugins",void 0),qn(this,"extension",{}),qn(this,"adapterIn",void 0),qn(this,"adapterOut",void 0),qn(this,"getView",function(m){return v.viewMap.get(m)}),s=F0(s),this.options=s,this.container=this.initContainer(s.container),this.plugins=s.plugins,this.graphModel=new cS(bp({},s)),this.tool=new ZA(this),this.history=new $A(this.graphModel.eventCenter),this.dnd=new oj({lf:this}),this.keyboard=new t2({lf:this,keyboard:s.keyboard}),s.snapline!==!1&&(this.snaplineModel=new e1(this.graphModel),c=this.graphModel.eventCenter,p=this.snaplineModel,c.on("node:mousemove",function(m){var x=m.data;p.setNodeSnapLine(x)}),c.on("node:mouseup",function(){p.clearSnapline()})),function(m,x){var S=m.keyboard,D=S.options.keyboard;S.on(["cmd + c","ctrl + c"],function(){if(Wb=gl,!D.enabled||x.textEditElement)return!0;var I=m.options.guards,K=x.getSelectElements(!1);return I&&I.beforeClone&&!I.beforeClone(K)||K.nodes.length===0&&K.edges.length===0?(Wa=null,!0):((Wa=K).nodes.forEach(function(re){return $1(re,gl)}),Wa.edges.forEach(function(re){return W1(re,gl)}),!1)}),S.on(["cmd + v","ctrl + v"],function(){if(!D.enabled||x.textEditElement)return!0;if(Wa&&(Wa.nodes||Wa.edges)){m.clearSelectElements();var I=m.addElements(Wa,Wb);if(!I)return!0;I.nodes.forEach(function(K){return m.selectElementById(K.id,!0)}),I.edges.forEach(function(K){return m.selectElementById(K.id,!0)}),Wa.nodes.forEach(function(K){return $1(K,gl)}),Wa.edges.forEach(function(K){return W1(K,gl)}),Wb+=gl}return!1}),S.on(["cmd + z","ctrl + z"],function(){return!D.enabled||!!x.textEditElement||(m.undo(),!1)}),S.on(["cmd + y","ctrl + y"],function(){return!D.enabled||!!x.textEditElement||(m.redo(),!1)}),S.on(["backspace"],function(){if(!D.enabled||x.textEditElement)return!0;var I=x.getSelectElements(!0);return m.clearSelectElements(),I.edges.forEach(function(K){return m.deleteEdge(K.id)}),I.nodes.forEach(function(K){return m.deleteNode(K.id)}),!1})}(this,this.graphModel),this.keyboard.initShortcuts(),this.defaultRegister(),this.installPlugins(s.disabledPlugins)}var e,n,i;return e=t,n=[{key:"register",value:function(s,c){var p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(typeof s=="string"){var v={BaseEdge:vp,BaseEdgeModel:Cf,BaseNode:Ba,BaseNodeModel:La,RectNode:Ig,RectNodeModel:dg,CircleNode:Fg,CircleNodeModel:Vv,PolygonNode:Hg,PolygonNodeModel:sg,TextNode:rb,TextNodeModel:gg,LineEdge:Ob,LineEdgeModel:Fs,DiamondNode:Kg,DiamondNodeModel:Qv,PolylineEdge:jb,PolylineEdgeModel:wc,BezierEdge:Mb,BezierEdgeModel:Wv,EllipseNode:eb,EllipseNodeModel:rg,HtmlNode:ub,HtmlNodeModel:_g,h:fe.g,type:s};this.viewMap.forEach(function(I){var K=I.extendKey;K&&(v[K]=I)}),this.graphModel.modelMap.forEach(function(I){var K=I.extendKey;K&&(v[K]=I)});var m=c(v),x=m.view,S=m.model,D=x;p&&!D.isObervered&&(D.isObervered=!0,D=lt(D)),this.setView(s,D),this.graphModel.setModel(s,S)}else this.registerElement(s)}},{key:"registerElement",value:function(s){var c=s.view;s.isObserverView===!1||c.isObervered||(c.isObervered=!0,c=lt(c)),this.setView(s.type,c),this.graphModel.setModel(s.type,s.model)}},{key:"batchRegister",value:function(){var s=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];c.forEach(function(p){s.registerElement(p)})}},{key:"defaultRegister",value:function(){this.registerElement({view:Ig,model:dg,type:"rect"}),this.registerElement({type:"circle",view:Fg,model:Vv}),this.registerElement({type:"polygon",view:Hg,model:sg}),this.registerElement({type:"line",view:Ob,model:Fs}),this.registerElement({type:"polyline",view:jb,model:wc}),this.registerElement({type:"bezier",view:Mb,model:Wv}),this.registerElement({type:"text",view:rb,model:gg}),this.registerElement({type:"ellipse",view:eb,model:rg}),this.registerElement({type:"diamond",view:Kg,model:Qv}),this.registerElement({type:"html",view:ub,model:_g})}},{key:"selectElementById",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1],p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.graphModel.selectElementById(s,c),!c&&p&&this.graphModel.toFront(s)}},{key:"focusOn",value:function(s){var c=this.graphModel.transformModel,p=s.coordinate,v=s.id;if(!p){var m=this.getNodeModelById(v);m&&(p=m.getData());var x=this.getEdgeModelById(v);x&&(p=x.textPosition)}var S=p,D=S.x,I=S.y;c.focusOn(D,I,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(s){this.graphModel.setTheme(s)}},{key:"resize",value:function(s,c){this.graphModel.resize(s,c),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,c){this.graphModel.updateText(s,c)}},{key:"deleteElement",value:function(s){var c,p,v,m=this.getModelById(s);return!!m&&(p=(v=(qn(c={},Jn.NODE,this.deleteNode),qn(c,Jn.EDGE,this.deleteEdge),c)[m.BaseType])===null||v===void 0?void 0:v.call(this,s))!==null&&p!==void 0&&p}},{key:"getModelById",value:function(s){return this.graphModel.getElement(s)}},{key:"getDataById",value:function(s){var c;return(c=this.graphModel.getElement(s))===null||c===void 0?void 0:c.getData()}},{key:"changeNodeType",value:function(s,c){this.graphModel.changeNodeType(s,c)}},{key:"changeEdgeType",value:function(s,c){this.graphModel.changeEdgeType(s,c)}},{key:"getNodeEdges",value:function(s){return this.graphModel.getNodeEdges(s)}},{key:"addNode",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt.NODE_ADD,p=arguments.length>2?arguments[2]:void 0;return this.graphModel.addNode(s,c,p)}},{key:"deleteNode",value:function(s){var c=this.graphModel.getNodeModelById(s);if(!c)return!1;var p=c.getData(),v=this.options.guards,m=!v||!v.beforeDelete||v.beforeDelete(p);return m&&this.graphModel.deleteNode(s),m}},{key:"cloneNode",value:function(s){var c=this.graphModel.getNodeModelById(s).getData(),p=this.options.guards;if(!p||!p.beforeClone||p.beforeClone(c))return this.graphModel.cloneNode(s)}},{key:"changeNodeId",value:function(s,c){return this.graphModel.changeNodeId(s,c)}},{key:"getNodeModelById",value:function(s){return this.graphModel.getNodeModelById(s)}},{key:"getNodeDataById",value:function(s){var c;return(c=this.graphModel.getNodeModelById(s))===null||c===void 0?void 0:c.getData()}},{key:"addEdge",value:function(s){return this.graphModel.addEdge(s)}},{key:"deleteEdge",value:function(s){var c=this.options.guards,p=this.graphModel.edgesMap[s];if(!p)return!1;var v=p.model.getData(),m=!c||!c.beforeDelete||c.beforeDelete(v);return m&&this.graphModel.deleteEdgeById(s),m}},{key:"deleteEdgeByNodeId",value:function(s){var c=s.sourceNodeId,p=s.targetNodeId;c&&p?this.graphModel.deleteEdgeBySourceAndTarget(c,p):c?this.graphModel.deleteEdgeBySource(c):p&&this.graphModel.deleteEdgeByTarget(p)}},{key:"changeEdgeId",value:function(s,c){return this.graphModel.changeEdgeId(s,c)}},{key:"getEdgeModelById",value:function(s){var c;return(c=this.graphModel.edgesMap[s])===null||c===void 0?void 0:c.model}},{key:"getEdgeModels",value:function(s){var c=this.graphModel.edges,p=s.sourceNodeId,v=s.targetNodeId;if(p&&v){var m=[];return c.forEach(function(D){D.sourceNodeId===p&&D.targetNodeId===v&&m.push(D)}),m}if(p){var x=[];return c.forEach(function(D){D.sourceNodeId===p&&x.push(D)}),x}if(v){var S=[];return c.forEach(function(D){D.targetNodeId===v&&S.push(D)}),S}return[]}},{key:"getEdgeDataById",value:function(s){var c;return(c=this.getEdgeModelById(s))===null||c===void 0?void 0:c.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,c){var p;(p=this.graphModel.getElement(s))===null||p===void 0||p.setProperties(_r(c))}},{key:"deleteProperty",value:function(s,c){var p;(p=this.graphModel.getElement(s))===null||p===void 0||p.deleteProperty(c)}},{key:"getProperties",value:function(s){var c;return(c=this.graphModel.getElement(s))===null||c===void 0?void 0:c.getProperties()}},{key:"toFront",value:function(s){this.graphModel.toFront(s)}},{key:"setElementZIndex",value:function(s,c){return this.graphModel.setElementZIndex(s,c)}},{key:"addElements",value:function(s){for(var c=this,p=s.nodes,v=s.edges,m={},x={nodes:[],edges:[]},S=0;S<p.length;S++){var D=p[S],I=D.id,K=this.addNode(D);if(!K)return;I&&(m[I]=K.id),x.nodes.push(K)}return v.forEach(function(re){var oe=re.sourceNodeId,he=re.targetNodeId;m[oe]&&(oe=m[oe]),m[he]&&(he=m[he]);var ye=c.graphModel.addEdge(bp(bp({},re),{},{sourceNodeId:oe,targetNodeId:he}));x.edges.push(ye)}),x}},{key:"getAreaElement",value:function(s,c){var p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],v=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],m=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(s,c,p,v,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 c=arguments.length,p=new Array(c),v=0;v<c;v++)p[v]=arguments[v];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 c=this.graphModel,p=c.editConfigModel,v=c.transformModel;p.updateEditConfig(s),(s==null?void 0:s.stopMoveGraph)!==void 0&&v.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,c){return this.graphModel.getPointByClient({x:s,y:c})}},{key:"undo",value:function(){if(this.history.undoAble()){var s=_r(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"redo",value:function(){if(this.history.redoAble()){var s=_r(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"zoom",value:function(s,c){return this.graphModel.transformModel.zoom(s,c)}},{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,c){this.graphModel.transformModel.translate(s,c)}},{key:"resetTranslate",value:function(){var s=this.graphModel.transformModel,c=s.TRANSLATE_X,p=s.TRANSLATE_Y;this.translate(-c,-p)}},{key:"translateCenter",value:function(){this.graphModel.translateCenter()}},{key:"fitView",value:function(s,c){c===void 0&&(c=s),this.graphModel.fitView(s,c)}},{key:"openEdgeAnimation",value:function(s){this.graphModel.openEdgeAnimation(s)}},{key:"closeEdgeAnimation",value:function(s){this.graphModel.closeEdgeAnimation(s)}},{key:"on",value:function(s,c){this.graphModel.eventCenter.on(s,c)}},{key:"off",value:function(s,c){this.graphModel.eventCenter.off(s,c)}},{key:"once",value:function(s,c){this.graphModel.eventCenter.once(s,c)}},{key:"emit",value:function(s,c){this.graphModel.eventCenter.emit(s,c)}},{key:"initContainer",value:function(s){var c=document.createElement("div");return c.style.position="relative",c.style.width="100%",c.style.height="100%",s.innerHTML="",s.appendChild(c),c}},{key:"installPlugins",value:function(){var s,c=this,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=(s=this.plugins)!==null&&s!==void 0?s:t.extensions;v.forEach(function(m){var x=null,S=null;m[Gb]?(x=m.extension,S=m.props):x=m;var D=x.pluginName||x.name;p.indexOf(D)===-1&&c.installPlugin(x,S)})}},{key:"installPlugin",value:function(s,c){if(Ub(s)==="object"){var p=s.install,v=s.render;return p&&p.call(s,this,t),v&&this.components.push(v.bind(s)),void(this.extension[s.pluginName]=s)}var m=s,x=new m({lf:this,LogicFlow:t,options:this.options.pluginsOptions,props:c});x.render&&this.components.push(x.render.bind(x)),this.extension[m.pluginName]=x}},{key:"updateAttributes",value:function(s,c){this.graphModel.updateAttributes(s,c)}},{key:"createFakerNode",value:function(s){var c=this.graphModel.modelMap.get(s.type);if(c){var p=new c(bp(bp({},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,c){this.viewMap.set(s,c)}},{key:"renderRawData",value:function(s){this.graphModel.graphDataToModel(_r(s)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(fe.j)(Object(fe.g)(nj,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(dt.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)}}],i=[{key:"use",value:function(s,c){var p,v,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,(qn(v={},Gb,Gb),qn(v,"extension",s),qn(v,"props",c),v))}}],n&&G1(e.prototype,n),i&&G1(e,i),t}();function Ni(t){return lt(t)}qn(Hb,"extensions",new Map),l.default=Hb}])})})(ot,ot.exports);var ry=q2(ot.exports);const k8=[{type:"bpmn:startEvent",text:"\u5F00\u59CB",class:"bpmn-start"},{type:"bpmn:endEvent",text:"\u7ED3\u675F",class:"bpmn-end"},{type:"bpmn:exclusiveGateway",text:"\u7F51\u5173",class:"bpmn-exclusiveGateway"},{type:"bpmn:userTask",text:"\u7528\u6237",class:"bpmn-user"}];var D8=function(){function r(){globalThis._ids=this,this._ids=new Set}return r.prototype.generateId=function(){var a="xxxxxxx".replace(/[x]/g,function(u){var l=Math.random()*16|0,o=u==="x"?l:l&3|8;return o.toString(16)});return a},r.prototype.next=function(){for(var a=this.generateId();this._ids.has(a);)a=this.generateId();return this._ids.add(a),a},r}(),N8=(globalThis==null?void 0:globalThis._ids)||new D8;function Il(){return N8.next()}var PE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),C8=function(r){PE(a,r);function a(u,l){var o=this;return u.id||(u.id="Event_"+Il()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),o=r.call(this,u,l)||this,o}return a.prototype.setAttributes=function(){this.r=18},a.prototype.getConnectedTargetRules=function(){var u=r.prototype.getConnectedTargetRules.call(this),l={message:"\u8D77\u59CB\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u7EC8\u70B9",validate:function(){return!1}};return u.push(l),u},a.extendKey="StartEventModel",a}(ot.exports.CircleNodeModel),R8=function(r){PE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.extendKey="StartEventNode",a}(ot.exports.CircleNode),I8={type:"bpmn:startEvent",view:R8,model:C8},AE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),dy=globalThis&&globalThis.__assign||function(){return dy=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},dy.apply(this,arguments)},L8=function(r){AE(a,r);function a(u,l){var o=this;return u.id||(u.id="Event_"+Il()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),o=r.call(this,u,l)||this,o}return a.prototype.setAttributes=function(){this.r=18},a.prototype.getConnectedSourceRules=function(){var u=r.prototype.getConnectedSourceRules.call(this),l={message:"\u7ED3\u675F\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u8D77\u70B9",validate:function(){return!1}};return u.push(l),u},a.extendKey="EndEventModel",a}(ot.exports.CircleNodeModel),B8=function(r){AE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},a.prototype.getShape=function(){var u=this.props.model,l=u.getNodeStyle(),o=u.x,d=u.y,h=u.r,b=r.prototype.getShape.call(this);return ot.exports.h("g",{},b,ot.exports.h("circle",dy(dy({},l),{cx:o,cy:d,r:h-5})))},a.extendKey="EndEventView",a}(ot.exports.CircleNode),z8={type:"bpmn:endEvent",view:B8,model:L8},TE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Ep=globalThis&&globalThis.__assign||function(){return Ep=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},Ep.apply(this,arguments)},F8=function(r){TE(a,r);function a(u,l){var o=this;return u.id||(u.id="Gateway_"+Il()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),o=r.call(this,u,l)||this,o.points=[[25,0],[50,25],[25,50],[0,25]],o}return a.extendKey="ExclusiveGatewayModel",a}(ot.exports.PolygonNodeModel),$8=function(r){TE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.points,g=u.getNodeStyle();return ot.exports.h("g",{transform:"matrix(1 0 0 1 "+(l-d/2)+" "+(o-h/2)+")"},ot.exports.h("polygon",Ep(Ep({},g),{x:l,y:o,points:b})),ot.exports.h("path",Ep({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"},g)))},a.extendKey="ExclusiveGatewayNode",a}(ot.exports.PolygonNode),W8={type:"bpmn:exclusiveGateway",view:$8,model:F8},ME=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),hy=globalThis&&globalThis.__assign||function(){return hy=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},hy.apply(this,arguments)},U8=function(r){ME(a,r);function a(u,l){var o=this;return u.id||(u.id="Activity_"+Il()),o=r.call(this,u,l)||this,o}return a.extendKey="UserTaskModel",a}(ot.exports.RectNodeModel),G8=function(r){ME(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getLabelShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.getNodeStyle();return ot.exports.h("svg",{x:l-d/2+5,y:o-h/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},ot.exports.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"}))},a.prototype.getShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.radius,g=u.getNodeStyle();return ot.exports.h("g",{},[ot.exports.h("rect",hy(hy({},g),{x:l-d/2,y:o-h/2,rx:b,ry:b,width:d,height:h})),this.getLabelShape()])},a.extendKey="UserTaskNode",a}(ot.exports.RectNode),H8={type:"bpmn:userTask",view:G8,model:U8},kE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),pm=globalThis&&globalThis.__assign||function(){return pm=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},pm.apply(this,arguments)},X8=function(r){kE(a,r);function a(u,l){var o=this;return u.id||(u.id="Activity_"+Il()),o=r.call(this,u,l)||this,o}return a.extendKey="ServiceTaskModel",a}(ot.exports.RectNodeModel),Y8=function(r){kE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getLabelShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.getNodeStyle();return ot.exports.h("svg",{x:l-d/2+5,y:o-h/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},ot.exports.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"}))},a.prototype.getShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.radius,g=u.getNodeStyle();return ot.exports.h("g",{},[ot.exports.h("rect",pm({x:l-d/2,y:o-h/2,rx:b,ry:b,width:d,height:h},g)),this.getLabelShape()])},a.extendKey="ServiceTaskNode",a}(ot.exports.RectNode),V8={type:"bpmn:serviceTask",view:Y8,model:X8},DE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),K8=function(r){DE(a,r);function a(u,l){var o=this;return u.id||(u.id="Flow_"+Il()),o=r.call(this,u,l)||this,o}return a.extendKey="SequenceFlowModel",a}(ot.exports.PolylineEdgeModel),q8=function(r){DE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.extendKey="SequenceFlowEdge",a}(ot.exports.PolylineEdge),Z8={type:"bpmn:sequenceFlow",view:q8,model:K8},AO={width:40,height:40},TO={width:40,height:40},MO={width:40,height:40},kO={width:100,height:80},DO={width:100,height:80},J8={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}}},Q8=function(){function r(a){var u=a.lf;u.setTheme(J8),u.register(I8),u.register(z8),u.register(W8),u.register(H8),u.register(V8),u.options.customBpmnEdge||(u.register(Z8),u.setDefaultEdgeType("bpmn:sequenceFlow"))}return r.pluginName="bpmnElement",r}(),e5=function(){function r(){globalThis._ids=this,this._ids=new Set}return r.prototype.generateId=function(){var a="xxxxxxx".replace(/[x]/g,function(u){var l=Math.random()*16|0,o=u==="x"?l:l&3|8;return o.toString(16)});return a},r.prototype.next=function(){for(var a=this.generateId();this._ids.has(a);)a=this.generateId();return this._ids.add(a),a},r}(),t5=(globalThis==null?void 0:globalThis._ids)||new e5;function NO(){return t5.next()}function NE(r){return Object.prototype.toString.call(r)}function n5(r){return" ".repeat(r)}function yy(r){var a=r;return NE(r)==="[object Object]"?(a={},Object.keys(r).forEach(function(u){var l=u;u.charAt(0)==="-"&&(l=u.substring(1)),a[l]=yy(r[u])})):Array.isArray(r)&&(a=[],r.forEach(function(u,l){a[l]=yy(u)})),a}function r5(r){var a=r;try{typeof a!="string"&&(a=JSON.parse(r))}catch{a=JSON.stringify(yy(r)).replace(/"/g,"'")}return a}var bl=`
  122. `;function ay(r,a,u){var l=n5(u),o="";if(a==="#text")return bl+l+r;if(a==="#cdata-section")return bl+l+"<![CDATA["+r+"]]>";if(a==="#comment")return bl+l+"<!--"+r+"-->";if((""+a).charAt(0)==="-")return" "+a.substring(1)+'="'+r5(r)+'"';if(Array.isArray(r))r.forEach(function(g){o+=ay(g,a,u+1)});else if(NE(r)==="[object Object]"){var d=Object.keys(r),h="",b="";o+=(u===0?"":bl+l)+"<"+a,d.forEach(function(g){g.charAt(0)==="-"?h+=ay(r[g],g,u+1):b+=ay(r[g],g,u+1)}),o+=h+(b!==""?">"+b+(bl+l)+"</"+a+">":" />")}else o+=bl+l+("<"+a+">"+r.toString()+"</"+a+">");return o}function o5(r){var a="";for(var u in r)a+=ay(r[u],u,0);return a}var co=function(){};co.ObjTree=function(){return this};co.ObjTree.VERSION="0.23";co.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  123. `;co.ObjTree.prototype.attr_prefix="-";co.ObjTree.prototype.parseXML=function(r){var a;if(window.DOMParser){var u=new DOMParser,l=u.parseFromString(r,"application/xml");if(!l)return;a=l.documentElement}else window.ActiveXObject&&(u=new ActiveXObject("Microsoft.XMLDOM"),u.async=!1,u.loadXML(r),a=u.documentElement);if(!!a)return this.parseDOM(a)};co.ObjTree.prototype.parseHTTP=function(r,a,u){var l={};for(var o in a)l[o]=a[o];if(l.method||(typeof l.postBody=="undefined"&&typeof l.postbody=="undefined"&&typeof l.parameters=="undefined"?l.method="get":l.method="post"),u){l.asynchronous=!0;var d=this,h=u,b=l.onComplete;l.onComplete=function(j){var P;j&&j.responseXML&&j.responseXML.documentElement&&(P=d.parseDOM(j.responseXML.documentElement)),h(P,j),b&&b(j)}}else l.asynchronous=!1;var g;if(typeof HTTP!="undefined"&&HTTP.Request){l.uri=r;var E=new HTTP.Request(l);E&&(g=E.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var E=new Ajax.Request(r,l);E&&(g=E.transport)}if(u)return g;if(g&&g.responseXML&&g.responseXML.documentElement)return this.parseDOM(g.responseXML.documentElement)};co.ObjTree.prototype.parseDOM=function(r){if(!!r){if(this.__force_array={},this.force_array)for(var a=0;a<this.force_array.length;a++)this.__force_array[this.force_array[a]]=1;var u=this.parseElement(r);if(this.__force_array[r.nodeName]&&(u=[u]),r.nodeType!=11){var l={};l[r.nodeName]=u,u=l}return u}};co.ObjTree.prototype.parseElement=function(r){if(r.nodeType!=7){if(r.nodeType==3||r.nodeType==4||r.nodeType==8){var a=r.nodeValue.match(/[^\x00-\x20]/);return a==null?void 0:r.nodeValue}var u=null,l={};if(r.attributes&&r.attributes.length){u={};for(var o=0;o<r.attributes.length;o++){var d=r.attributes[o].nodeName;if(typeof d=="string"){var h=r.attributes[o].nodeValue;try{h=JSON.parse(r.attributes[o].nodeValue.replace(/'/g,'"'))}catch{h=r.attributes[o].nodeValue}!h||(d=this.attr_prefix+d,typeof l[d]=="undefined"&&(l[d]=0),l[d]++,this.addNode(u,d,l[d],h))}}}if(r.childNodes&&r.childNodes.length){var b=!0;u&&(b=!1);for(var o=0;o<r.childNodes.length&&b;o++){var g=r.childNodes[o].nodeType;g==3||g==4||g==8||(b=!1)}if(b){u||(u="");for(var o=0;o<r.childNodes.length;o++)u+=r.childNodes[o].nodeValue}else{u||(u={});for(var o=0;o<r.childNodes.length;o++){var d=r.childNodes[o].nodeName;if(typeof d=="string"){var h=this.parseElement(r.childNodes[o]);!h||(typeof l[d]=="undefined"&&(l[d]=0),l[d]++,this.addNode(u,d,l[d],h))}}}}else u===null&&(u={});return u}};co.ObjTree.prototype.addNode=function(r,a,u,l){this.__force_array[a]?(u==1&&(r[a]=[]),r[a][r[a].length]=l):u==1?r[a]=l:u==2?r[a]=[r[a],l]:r[a][r[a].length]=l};co.ObjTree.prototype.writeXML=function(r){var a=this.hash_to_xml(null,r);return this.xmlDecl+a};co.ObjTree.prototype.hash_to_xml=function(r,a){var u=[],l=[];for(var o in a)if(!!a.hasOwnProperty(o)){var d=a[o];o.charAt(0)!=this.attr_prefix?typeof d=="undefined"||d==null?u[u.length]="<"+o+" />":typeof d=="object"&&d.constructor==Array?u[u.length]=this.array_to_xml(o,d):typeof d=="object"?u[u.length]=this.hash_to_xml(o,d):u[u.length]=this.scalar_to_xml(o,d):l[l.length]=" "+o.substring(1)+'="'+this.xml_escape(d)+'"'}var h=l.join(""),b=u.join("");return typeof r=="undefined"||r==null||(u.length>0?b.match(/\n/)?b="<"+r+h+`>
  124. `+b+"</"+r+`>
  125. `:b="<"+r+h+">"+b+"</"+r+`>
  126. `:b="<"+r+h+` />
  127. `),b};co.ObjTree.prototype.array_to_xml=function(r,a){for(var u=[],l=0;l<a.length;l++){var o=a[l];typeof o=="undefined"||o==null?u[u.length]="<"+r+" />":typeof o=="object"&&o.constructor==Array?u[u.length]=this.array_to_xml(r,o):typeof o=="object"?u[u.length]=this.hash_to_xml(r,o):u[u.length]=this.scalar_to_xml(r,o)}return u.join("")};co.ObjTree.prototype.scalar_to_xml=function(r,a){return r=="#text"?this.xml_escape(a):"<"+r+">"+this.xml_escape(a)+"</"+r+`>
  128. `};co.ObjTree.prototype.xml_escape=function(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var i5=function(r){return new co.ObjTree().parseXML(r)},a5=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),dm=globalThis&&globalThis.__assign||function(){return dm=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},dm.apply(this,arguments)},Wy=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},ya;(function(r){r.START="bpmn:startEvent",r.END="bpmn:endEvent",r.GATEWAY="bpmn:exclusiveGateway",r.USER="bpmn:userTask",r.SYSTEM="bpmn:serviceTask",r.FLOW="bpmn:sequenceFlow"})(ya||(ya={}));var CE=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],CO=["properties","startPoint","endPoint","pointsList"];function RO(r){var a=r?CO.concat(r):CO;return function(u){function l(o){var d={};return typeof o=="string"?o:Array.isArray(o)?o.map(function(h){return l(h)}):(Object.entries(o).forEach(function(h){var b=Wy(h,2),g=b[0],E=b[1];typeof E!="object"?g.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(g)?d[g]=E:d["-"+g]=E:a.includes(g)?d["-"+g]=l(E):d[g]=l(E)}),d)}return l(u)}}function vy(r){var a={};return Object.entries(r).forEach(function(u){var l=Wy(u,2),o=l[0],d=l[1];o.indexOf("-")===0?a[o.substring(1)]=yy(d):typeof d=="string"?a[o]=d:Object.prototype.toString.call(d)==="[object Object]"?a[o]=vy(d):Array.isArray(d)?a[o]=d.map(function(h){return vy(h)}):a[o]=d}),a}function u5(r,a,u){var l=new Map;a.nodes.forEach(function(d){var h,b={"-id":d.id};if(!((h=d.text)===null||h===void 0)&&h.value&&(b["-name"]=d.text.value),d.properties){var g=RO(u)(d.properties);Object.assign(b,g)}l.set(d.id,b),r[d.type]?Array.isArray(r[d.type])?r[d.type].push(b):r[d.type]=[r[d.type],b]:r[d.type]=b});var o=a.edges.map(function(d){var h,b,g=l.get(d.targetNodeId);g["bpmn:incoming"]?Array.isArray(g["bpmn:incoming"])?g["bpmn:incoming"].push(d.id):g["bpmn:incoming"]=[g["bpmn:incoming"],d.id]:g["bpmn:incoming"]=d.id;var E={"-id":d.id,"-sourceRef":d.sourceNodeId,"-targetRef":d.targetNodeId};if(!((h=d.text)===null||h===void 0)&&h.value&&(E["-name"]=(b=d.text)===null||b===void 0?void 0:b.value),d.properties){var j=RO(u)(d.properties);Object.assign(E,j)}return E});a.edges.forEach(function(d){var h=l.get(d.sourceNodeId);h["bpmn:outgoing"]?Array.isArray(h["bpmn:outgoing"])?h["bpmn:outgoing"].push(d.id):h["bpmn:outgoing"]=[h["bpmn:outgoing"],d.id]:h["bpmn:outgoing"]=d.id}),r[ya.FLOW]=o}function c5(r,a){r["bpmndi:BPMNEdge"]=a.edges.map(function(u){var l,o=u.id,d=u.pointsList.map(function(b){var g=b.x,E=b.y;return{"-x":g,"-y":E}}),h={"-id":o+"_di","-bpmnElement":o,"di:waypoint":d};return!((l=u.text)===null||l===void 0)&&l.value&&(h["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),h}),r["bpmndi:BPMNShape"]=a.nodes.map(function(u){var l,o=u.id,d=100,h=80,b=u.x,g=u.y,E=Bu.shapeConfigMap.get(u.type);E&&(d=E.width,h=E.height),b-=d/2,g-=h/2;var j={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":b,"-y":g,"-width":d,"-height":h}};return!((l=u.text)===null||l===void 0)&&l.value&&(j["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),j})}function s5(r){var a=[],u=[],l=r["bpmn:definitions"];if(l){var o=l["bpmn:process"];Object.keys(o).forEach(function(d){if(d.indexOf("bpmn:")===0){var h=o[d];if(d===ya.FLOW){var b=l["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];u=f5(h,b)}else{var g=l["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];a=a.concat(l5(h,g,d))}}})}return{nodes:a,edges:u}}function l5(r,a,u){var l=[];if(Array.isArray(r))r.forEach(function(h){var b;Array.isArray(a)?b=a.find(function(E){return E["-bpmnElement"]===h["-id"]}):b=a;var g=IO(b,u,h);l.push(g)});else{var o=void 0;Array.isArray(a)?o=a.find(function(h){return h["-bpmnElement"]===r["-id"]}):o=a;var d=IO(o,u,r);l.push(d)}return l}function IO(r,a,u){var l=Number(r["dc:Bounds"]["-x"]),o=Number(r["dc:Bounds"]["-y"]),d=u["-name"],h=Bu.shapeConfigMap.get(a);h&&(l+=h.width/2,o+=h.height/2);var b;Object.entries(u).forEach(function(P){var k=Wy(P,2),M=k[0],R=k[1];CE.indexOf(M)===-1&&(b||(b={}),b[M]=R)}),b&&(b=vy(b));var g;if(d&&(g={x:l,y:o,value:d},r["bpmndi:BPMNLabel"]&&r["bpmndi:BPMNLabel"]["dc:Bounds"])){var E=r["bpmndi:BPMNLabel"]["dc:Bounds"];g.x=Number(E["-x"])+Number(E["-width"])/2,g.y=Number(E["-y"])+Number(E["-height"])/2}var j={id:r["-bpmnElement"],type:a,x:l,y:o,properties:b};return g&&(j.text=g),j}function f5(r,a){var u=[];if(Array.isArray(r))r.forEach(function(o){var d;Array.isArray(a)?d=a.find(function(h){return h["-bpmnElement"]===o["-id"]}):d=a,u.push(LO(d,o))});else{var l=void 0;Array.isArray(a)?l=a.find(function(o){return o["-bpmnElement"]===r["-id"]}):l=a,u.push(LO(l,r))}return u}function LO(r,a){var u,l=a["-name"];if(l){var o=r["bpmndi:BPMNLabel"]["dc:Bounds"],d=0;l.split(`
  129. `).forEach(function(g){d<g.length&&(d=g.length)}),u={value:l,x:Number(o["-x"])+d*10/2,y:Number(o["-y"])+7}}var h;Object.entries(a).forEach(function(g){var E=Wy(g,2),j=E[0],P=E[1];CE.indexOf(j)===-1&&(h||(h={}),h[j]=P)}),h&&(h=vy(h));var b={id:a["-id"],type:ya.FLOW,pointsList:r["di:waypoint"].map(function(g){return{x:Number(g["-x"]),y:Number(g["-y"])}}),sourceNodeId:a["-sourceRef"],targetNodeId:a["-targetRef"],properties:h};return u&&(b.text=u),b}var Bu=function(){function r(a){var u=this,l=a.lf;this.adapterOut=function(o,d){var h=dm({},u.processAttributes);u5(h,o,d);var b={"-id":"BPMNPlane_1","-bpmnElement":h["-id"]};c5(b,o);var g=u.definitionAttributes;g["bpmn:process"]=h,g["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":b};var E={"bpmn:definitions":g};return E},this.adapterIn=function(o){if(o)return s5(o)},l.adapterIn=function(o){return u.adapterIn(o)},l.adapterOut=function(o,d){return u.adapterOut(o,d)},this.processAttributes={"-isExecutable":"true","-id":"Process_"+NO()},this.definitionAttributes={"-id":"Definitions_"+NO(),"-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 r.prototype.setCustomShape=function(a,u){r.shapeConfigMap.set(a,u)},r.pluginName="bpmn-adapter",r.shapeConfigMap=new Map,r}();Bu.shapeConfigMap.set(ya.START,{width:AO.width,height:AO.height});Bu.shapeConfigMap.set(ya.END,{width:TO.width,height:TO.height});Bu.shapeConfigMap.set(ya.GATEWAY,{width:MO.width,height:MO.height});Bu.shapeConfigMap.set(ya.SYSTEM,{width:kO.width,height:kO.height});Bu.shapeConfigMap.set(ya.USER,{width:DO.width,height:DO.height});(function(r){a5(a,r);function a(u){var l=r.call(this,u)||this;l.adapterXmlIn=function(d){var h=i5(d);return l.adapterIn(h)},l.adapterXmlOut=function(d,h){var b=l.adapterOut(d,h);return o5(b)};var o=u.lf;return o.adapterIn=l.adapterXmlIn,o.adapterOut=l.adapterXmlOut,l}return a.pluginName="bpmnXmlAdapter",a})(Bu);var p5=function(){function r(){globalThis._ids=this,this._ids=new Set}return r.prototype.generateId=function(){var a="xxxxxxx".replace(/[x]/g,function(u){var l=Math.random()*16|0,o=u==="x"?l:l&3|8;return o.toString(16)});return a},r.prototype.next=function(){for(var a=this.generateId();this._ids.has(a);)a=this.generateId();return this._ids.add(a),a},r}(),d5=(globalThis==null?void 0:globalThis._ids)||new p5;function h5(){return d5.next()}globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var BO=globalThis&&globalThis.__assign||function(){return BO=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},BO.apply(this,arguments)},y5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var zO=globalThis&&globalThis.__assign||function(){return zO=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},zO.apply(this,arguments)},v5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var FO=globalThis&&globalThis.__assign||function(){return FO=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},FO.apply(this,arguments)},g5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var $O=globalThis&&globalThis.__assign||function(){return $O=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},$O.apply(this,arguments)},b5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var WO=globalThis&&globalThis.__assign||function(){return WO=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},WO.apply(this,arguments)},m5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;ot.exports.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"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"}),ot.exports.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;"});ot.exports.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);"});ot.exports.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 r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var UO=globalThis&&globalThis.__assign||function(){return UO=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},UO.apply(this,arguments)};globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var GO=globalThis&&globalThis.__assign||function(){return GO=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},GO.apply(this,arguments)},_5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var i0,cr,RE,Uc,HO,IE,LE,BE,a0,hm,ym,vm={},zE=[],O5=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Uy=Array.isArray;function Ua(r,a){for(var u in a)r[u]=a[u];return r}function u0(r){r&&r.parentNode&&r.parentNode.removeChild(r)}function Sp(r,a,u){var l,o,d,h={};for(d in a)d=="key"?l=a[d]:d=="ref"?o=a[d]:h[d]=a[d];if(arguments.length>2&&(h.children=arguments.length>3?i0.call(arguments,2):u),typeof r=="function"&&r.defaultProps!=null)for(d in r.defaultProps)h[d]===void 0&&(h[d]=r.defaultProps[d]);return uy(r,h,l,o,null)}function uy(r,a,u,l,o){var d={type:r,props:a,key:u,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++RE:o,__i:-1,__u:0};return o==null&&cr.vnode!=null&&cr.vnode(d),d}function c0(r){return r.children}function El(r,a){this.props=r,this.context=a}function Pl(r,a){if(a==null)return r.__?Pl(r.__,r.__i+1):null;for(var u;a<r.__k.length;a++)if((u=r.__k[a])!=null&&u.__e!=null)return u.__e;return typeof r.type=="function"?Pl(r):null}function FE(r){var a,u;if((r=r.__)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,a=0;a<r.__k.length;a++)if((u=r.__k[a])!=null&&u.__e!=null){r.__e=r.__c.base=u.__e;break}return FE(r)}}function XO(r){(!r.__d&&(r.__d=!0)&&Uc.push(r)&&!gy.__r++||HO!==cr.debounceRendering)&&((HO=cr.debounceRendering)||IE)(gy)}function gy(){for(var r,a,u,l,o,d,h,b=1;Uc.length;)Uc.length>b&&Uc.sort(LE),r=Uc.shift(),b=Uc.length,r.__d&&(u=void 0,o=(l=(a=r).__v).__e,d=[],h=[],a.__P&&((u=Ua({},l)).__v=l.__v+1,cr.vnode&&cr.vnode(u),UE(a.__P,u,l,a.__n,a.__P.namespaceURI,32&l.__u?[o]:null,d,o==null?Pl(l):o,!!(32&l.__u),h),u.__v=l.__v,u.__.__k[u.__i]=u,E5(d,u,h),u.__e!=o&&FE(u)));gy.__r=0}function $E(r,a,u,l,o,d,h,b,g,E,j){var P,k,M,R,N,L,G=l&&l.__k||zE,W=a.length;for(g=w5(u,a,G,g,W),P=0;P<W;P++)(M=u.__k[P])!=null&&(k=M.__i===-1?vm:G[M.__i]||vm,M.__i=P,L=UE(r,M,k,o,d,h,b,g,E,j),R=M.__e,M.ref&&k.ref!=M.ref&&(k.ref&&s0(k.ref,null,M),j.push(M.ref,M.__c||R,M)),N==null&&R!=null&&(N=R),4&M.__u||k.__k===M.__k?g=WE(M,g,r):typeof M.type=="function"&&L!==void 0?g=L:R&&(g=R.nextSibling),M.__u&=-7);return u.__e=N,g}function w5(r,a,u,l,o){var d,h,b,g,E,j=u.length,P=j,k=0;for(r.__k=new Array(o),d=0;d<o;d++)(h=a[d])!=null&&typeof h!="boolean"&&typeof h!="function"?(g=d+k,(h=r.__k[d]=typeof h=="string"||typeof h=="number"||typeof h=="bigint"||h.constructor==String?uy(null,h,null,null,null):Uy(h)?uy(c0,{children:h},null,null,null):h.constructor===void 0&&h.__b>0?uy(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h).__=r,h.__b=r.__b+1,b=null,(E=h.__i=x5(h,u,g,P))!==-1&&(P--,(b=u[E])&&(b.__u|=2)),b==null||b.__v===null?(E==-1&&(o>j?k--:o<j&&k++),typeof h.type!="function"&&(h.__u|=4)):E!=g&&(E==g-1?k--:E==g+1?k++:(E>g?k--:k++,h.__u|=4))):r.__k[d]=null;if(P)for(d=0;d<j;d++)(b=u[d])!=null&&(2&b.__u)==0&&(b.__e==l&&(l=Pl(b)),HE(b,b));return l}function WE(r,a,u){var l,o;if(typeof r.type=="function"){for(l=r.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=r,a=WE(l[o],a,u));return a}r.__e!=a&&(a&&r.type&&!u.contains(a)&&(a=Pl(r)),u.insertBefore(r.__e,a||null),a=r.__e);do a=a&&a.nextSibling;while(a!=null&&a.nodeType==8);return a}function x5(r,a,u,l){var o,d,h=r.key,b=r.type,g=a[u];if(g===null&&r.key==null||g&&h==g.key&&b===g.type&&(2&g.__u)==0)return u;if(l>(g!=null&&(2&g.__u)==0?1:0))for(o=u-1,d=u+1;o>=0||d<a.length;){if(o>=0){if((g=a[o])&&(2&g.__u)==0&&h==g.key&&b===g.type)return o;o--}if(d<a.length){if((g=a[d])&&(2&g.__u)==0&&h==g.key&&b===g.type)return d;d++}}return-1}function YO(r,a,u){a[0]=="-"?r.setProperty(a,u==null?"":u):r[a]=u==null?"":typeof u!="number"||O5.test(a)?u:u+"px"}function oy(r,a,u,l,o){var d;e:if(a=="style")if(typeof u=="string")r.style.cssText=u;else{if(typeof l=="string"&&(r.style.cssText=l=""),l)for(a in l)u&&a in u||YO(r.style,a,"");if(u)for(a in u)l&&u[a]===l[a]||YO(r.style,a,u[a])}else if(a[0]=="o"&&a[1]=="n")d=a!=(a=a.replace(BE,"$1")),a=a.toLowerCase()in r||a=="onFocusOut"||a=="onFocusIn"?a.toLowerCase().slice(2):a.slice(2),r.l||(r.l={}),r.l[a+d]=u,u?l?u.t=l.t:(u.t=a0,r.addEventListener(a,d?ym:hm,d)):r.removeEventListener(a,d?ym:hm,d);else{if(o=="http://www.w3.org/2000/svg")a=a.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(a!="width"&&a!="height"&&a!="href"&&a!="list"&&a!="form"&&a!="tabIndex"&&a!="download"&&a!="rowSpan"&&a!="colSpan"&&a!="role"&&a!="popover"&&a in r)try{r[a]=u==null?"":u;break e}catch{}typeof u=="function"||(u==null||u===!1&&a[4]!="-"?r.removeAttribute(a):r.setAttribute(a,a=="popover"&&u==1?"":u))}}function VO(r){return function(a){if(this.l){var u=this.l[a.type+r];if(a.u==null)a.u=a0++;else if(a.u<u.t)return;return u(cr.event?cr.event(a):a)}}}function UE(r,a,u,l,o,d,h,b,g,E){var j,P,k,M,R,N,L,G,W,X,Q,te,Z,J,H,B,V,Y=a.type;if(a.constructor!==void 0)return null;128&u.__u&&(g=!!(32&u.__u),d=[b=a.__e=u.__e]),(j=cr.__b)&&j(a);e:if(typeof Y=="function")try{if(G=a.props,W="prototype"in Y&&Y.prototype.render,X=(j=Y.contextType)&&l[j.__c],Q=j?X?X.props.value:j.__:l,u.__c?L=(P=a.__c=u.__c).__=P.__E:(W?a.__c=P=new Y(G,Q):(a.__c=P=new El(G,Q),P.constructor=Y,P.render=j5),X&&X.sub(P),P.props=G,P.state||(P.state={}),P.context=Q,P.__n=l,k=P.__d=!0,P.__h=[],P._sb=[]),W&&P.__s==null&&(P.__s=P.state),W&&Y.getDerivedStateFromProps!=null&&(P.__s==P.state&&(P.__s=Ua({},P.__s)),Ua(P.__s,Y.getDerivedStateFromProps(G,P.__s))),M=P.props,R=P.state,P.__v=a,k)W&&Y.getDerivedStateFromProps==null&&P.componentWillMount!=null&&P.componentWillMount(),W&&P.componentDidMount!=null&&P.__h.push(P.componentDidMount);else{if(W&&Y.getDerivedStateFromProps==null&&G!==M&&P.componentWillReceiveProps!=null&&P.componentWillReceiveProps(G,Q),!P.__e&&(P.shouldComponentUpdate!=null&&P.shouldComponentUpdate(G,P.__s,Q)===!1||a.__v==u.__v)){for(a.__v!=u.__v&&(P.props=G,P.state=P.__s,P.__d=!1),a.__e=u.__e,a.__k=u.__k,a.__k.some(function(q){q&&(q.__=a)}),te=0;te<P._sb.length;te++)P.__h.push(P._sb[te]);P._sb=[],P.__h.length&&h.push(P);break e}P.componentWillUpdate!=null&&P.componentWillUpdate(G,P.__s,Q),W&&P.componentDidUpdate!=null&&P.__h.push(function(){P.componentDidUpdate(M,R,N)})}if(P.context=Q,P.props=G,P.__P=r,P.__e=!1,Z=cr.__r,J=0,W){for(P.state=P.__s,P.__d=!1,Z&&Z(a),j=P.render(P.props,P.state,P.context),H=0;H<P._sb.length;H++)P.__h.push(P._sb[H]);P._sb=[]}else do P.__d=!1,Z&&Z(a),j=P.render(P.props,P.state,P.context),P.state=P.__s;while(P.__d&&++J<25);P.state=P.__s,P.getChildContext!=null&&(l=Ua(Ua({},l),P.getChildContext())),W&&!k&&P.getSnapshotBeforeUpdate!=null&&(N=P.getSnapshotBeforeUpdate(M,R)),B=j,j!=null&&j.type===c0&&j.key==null&&(B=GE(j.props.children)),b=$E(r,Uy(B)?B:[B],a,u,l,o,d,h,b,g,E),P.base=a.__e,a.__u&=-161,P.__h.length&&h.push(P),L&&(P.__E=P.__=null)}catch(q){if(a.__v=null,g||d!=null)if(q.then){for(a.__u|=g?160:128;b&&b.nodeType==8&&b.nextSibling;)b=b.nextSibling;d[d.indexOf(b)]=null,a.__e=b}else for(V=d.length;V--;)u0(d[V]);else a.__e=u.__e,a.__k=u.__k;cr.__e(q,a,u)}else d==null&&a.__v==u.__v?(a.__k=u.__k,a.__e=u.__e):b=a.__e=S5(u.__e,a,u,l,o,d,h,g,E);return(j=cr.diffed)&&j(a),128&a.__u?void 0:b}function E5(r,a,u){for(var l=0;l<u.length;l++)s0(u[l],u[++l],u[++l]);cr.__c&&cr.__c(a,r),r.some(function(o){try{r=o.__h,o.__h=[],r.some(function(d){d.call(o)})}catch(d){cr.__e(d,o.__v)}})}function GE(r){return typeof r!="object"||r==null?r:Uy(r)?r.map(GE):Ua({},r)}function S5(r,a,u,l,o,d,h,b,g){var E,j,P,k,M,R,N,L=u.props,G=a.props,W=a.type;if(W=="svg"?o="http://www.w3.org/2000/svg":W=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),d!=null){for(E=0;E<d.length;E++)if((M=d[E])&&"setAttribute"in M==!!W&&(W?M.localName==W:M.nodeType==3)){r=M,d[E]=null;break}}if(r==null){if(W==null)return document.createTextNode(G);r=document.createElementNS(o,W,G.is&&G),b&&(cr.__m&&cr.__m(a,d),b=!1),d=null}if(W===null)L===G||b&&r.data===G||(r.data=G);else{if(d=d&&i0.call(r.childNodes),L=u.props||vm,!b&&d!=null)for(L={},E=0;E<r.attributes.length;E++)L[(M=r.attributes[E]).name]=M.value;for(E in L)if(M=L[E],E!="children"){if(E=="dangerouslySetInnerHTML")P=M;else if(!(E in G)){if(E=="value"&&"defaultValue"in G||E=="checked"&&"defaultChecked"in G)continue;oy(r,E,null,M,o)}}for(E in G)M=G[E],E=="children"?k=M:E=="dangerouslySetInnerHTML"?j=M:E=="value"?R=M:E=="checked"?N=M:b&&typeof M!="function"||L[E]===M||oy(r,E,M,L[E],o);if(j)b||P&&(j.__html===P.__html||j.__html===r.innerHTML)||(r.innerHTML=j.__html),a.__k=[];else if(P&&(r.innerHTML=""),$E(a.type==="template"?r.content:r,Uy(k)?k:[k],a,u,l,W=="foreignObject"?"http://www.w3.org/1999/xhtml":o,d,h,d?d[0]:u.__k&&Pl(u,0),b,g),d!=null)for(E=d.length;E--;)u0(d[E]);b||(E="value",W=="progress"&&R==null?r.removeAttribute("value"):R!==void 0&&(R!==r[E]||W=="progress"&&!R||W=="option"&&R!==L[E])&&oy(r,E,R,L[E],o),E="checked",N!==void 0&&N!==r[E]&&oy(r,E,N,L[E],o))}return r}function s0(r,a,u){try{if(typeof r=="function"){var l=typeof r.__u=="function";l&&r.__u(),l&&a==null||(r.__u=r(a))}else r.current=a}catch(o){cr.__e(o,u)}}function HE(r,a,u){var l,o;if(cr.unmount&&cr.unmount(r),(l=r.ref)&&(l.current&&l.current!==r.__e||s0(l,null,a)),(l=r.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(d){cr.__e(d,a)}l.base=l.__P=null}if(l=r.__k)for(o=0;o<l.length;o++)l[o]&&HE(l[o],a,u||typeof r.type!="function");u||u0(r.__e),r.__c=r.__=r.__e=void 0}function j5(r,a,u){return this.constructor(r,u)}i0=zE.slice,cr={__e:function(r,a,u,l){for(var o,d,h;a=a.__;)if((o=a.__c)&&!o.__)try{if((d=o.constructor)&&d.getDerivedStateFromError!=null&&(o.setState(d.getDerivedStateFromError(r)),h=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(r,l||{}),h=o.__d),h)return o.__E=o}catch(b){r=b}throw r}},RE=0,El.prototype.setState=function(r,a){var u;u=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ua({},this.state),typeof r=="function"&&(r=r(Ua({},u),this.props)),r&&Ua(u,r),r!=null&&this.__v&&(a&&this._sb.push(a),XO(this))},El.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),XO(this))},El.prototype.render=c0,Uc=[],IE=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,LE=function(r,a){return r.__v.__b-a.__v.__b},gy.__r=0,BE=/(PointerCapture)$|Capture$/i,a0=0,hm=VO(!1),ym=VO(!0);var jp=globalThis&&globalThis.__assign||function(){return jp=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},jp.apply(this,arguments)};function l0(r){var a=r.x,u=r.y,l=r.width,o=r.height,d=r.radius,h=r.className,b=a-l/2,g=u-o/2,E=jp(jp({width:10,height:10,cx:0,cy:0,rx:d||0,ry:d||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape "+h},r),{x:b,y:g});return ot.exports.h("rect",jp({},E))}l0.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var Ol;(function(r){r.NODE="node",r.CIRCLE_NODE="circle-node",r.POLYGON_NODE="polygon-node",r.RECT_NODE="rect-node",r.HTML_NODE="html-node",r.TEXT_NODE="text-node",r.ELLIPSE_NODE="ellipse-node",r.DIAMOND_NODE="diamond-node",r.EDGE="edge",r.LINE_EDGE="line-edge",r.POLYLINE_EDGE="polyline-edge",r.BEZIER_EDGE="bezier-edge",r.GRAPH="graph"})(Ol||(Ol={}));var P5=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Gc=globalThis&&globalThis.__assign||function(){return Gc=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},Gc.apply(this,arguments)},A5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},T5=ot.exports.LogicFlowUtil.StepDrag,M5=function(r){P5(a,r);function a(u){var l=r.call(this)||this;return l.updatePosition=function(o){var d=o.deltaX,h=o.deltaY,b=l.nodeModel,g=b.x,E=b.y;l.nodeModel.x=g+d/2,l.nodeModel.y=E+h/2,l.nodeModel.moveText(d/2,h/2)},l.getResize=function(o){var d=o.index,h=o.deltaX,b=o.deltaY,g=o.width,E=o.height,j=o.PCTResizeInfo,P=o.pct,k=P===void 0?1:P,M=o.freezeWidth,R=M===void 0?!1:M,N=o.freezeHeight,L=N===void 0?!1:N,G={width:g,height:E,deltaX:h,deltaY:b};if(j){var W=4,X=0,Q=0;switch(d){case 0:Q=(h*-1-b)/W;break;case 1:Q=(h-b)/W;break;case 2:Q=(h+b)/W;break;case 3:Q=(h*-1+b)/W;break}Q!==0&&(X=Math.round(Q/j.ResizeBasis.basisHeight*1e5)/1e3),j.ResizePCT.widthPCT=Math.max(Math.min(j.ResizePCT.widthPCT+X,j.ScaleLimit.maxScaleLimit),j.ScaleLimit.minScaleLimit),j.ResizePCT.hightPCT=Math.max(Math.min(j.ResizePCT.hightPCT+X,j.ScaleLimit.maxScaleLimit),j.ScaleLimit.minScaleLimit);var te=Math.round(j.ResizePCT.widthPCT*j.ResizeBasis.basisWidth/100),Z=Math.round(j.ResizePCT.hightPCT*j.ResizeBasis.basisHeight/100);switch(d){case 0:h=g-te,b=E-Z;break;case 1:h=te-g,b=E-Z;break;case 2:h=te-g,b=Z-E;break;case 3:h=g-te,b=Z-E;break}return G.width=te,G.height=Z,G.deltaX=h/k,G.deltaY=b/k,G}switch(d){case 0:G.width=R?g:g-h*k,G.height=L?E:E-b*k;break;case 1:G.width=R?g:g+h*k,G.height=L?E:E-b*k;break;case 2:G.width=R?g:g+h*k,G.height=L?E:E+b*k;break;case 3:G.width=R?g:g-h*k,G.height=L?E:E+b*k;break}return G},l.updateEdgePointByAnchors=function(){var o=l.nodeModel,d=o.id,h=o.anchors,b=l.getNodeEdges(d);b.sourceEdges.forEach(function(g){var E=h.find(function(j){return j.id===g.sourceAnchorId});g.updateStartPoint({x:E.x,y:E.y})}),b.targetEdges.forEach(function(g){var E=h.find(function(j){return j.id===g.targetAnchorId});g.updateEndPoint({x:E.x,y:E.y})})},l.updateRect=function(o){var d=o.deltaX,h=o.deltaY,b=l.nodeModel,g=b.id,E=b.x,j=b.y,P=b.width,k=b.height,M=b.radius,R=b.PCTResizeInfo,N=l.nodeModel,L=N.minWidth,G=N.minHeight,W=N.maxWidth,X=N.maxHeight,Q=l.index,te=L===W,Z=G===X,J=l.getResize({index:Q,deltaX:d,deltaY:h,width:P,height:k,PCTResizeInfo:R,pct:1,freezeWidth:te,freezeHeight:Z});if(J.width<L||J.width>W||J.height<G||J.height>X){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:te?0:J.deltaX,deltaY:Z?0:J.deltaY}),l.nodeModel.width=J.width,l.nodeModel.height=J.height,l.nodeModel.setProperties({nodeSize:{width:J.width,height:J.height}}),l.getNodeEdges(g);var H={x:E,y:j,width:P,height:k,radius:M},B={x:l.nodeModel.x,y:l.nodeModel.y,width:l.nodeModel.width,height:l.nodeModel.height,radius:M};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:H,afterNode:B})},l.updateEllipse=function(o){var d=o.deltaX,h=o.deltaY,b=l.nodeModel,g=b.id,E=b.rx,j=b.ry,P=b.x,k=b.y,M=b.PCTResizeInfo,R=l.index,N=l.nodeModel,L=N.minWidth,G=N.minHeight,W=N.maxWidth,X=N.maxHeight,Q=L===W,te=G===X,Z=E,J=j,H=l.getResize({index:R,deltaX:d,deltaY:h,width:Z,height:J,PCTResizeInfo:M,pct:1/2,freezeWidth:Q,freezeHeight:te});if(H.width<L/2||H.width>W/2||H.height<G/2||H.height>X/2){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:Q?0:H.deltaX,deltaY:te?0:H.deltaY}),l.nodeModel.rx=H.width,l.nodeModel.ry=H.height,l.nodeModel.setProperties({nodeSize:{rx:H.width,ry:H.height}}),l.getNodeEdges(g);var B={x:P,y:k},V={rx:H.width,ry:H.height,x:l.nodeModel.x,y:l.nodeModel.y};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:Gc(Gc({},B),{rx:E,ry:j}),afterNode:V})},l.updateDiamond=function(o){var d=o.deltaX,h=o.deltaY,b=l.nodeModel;b.id;var g=b.rx,E=b.ry,j=b.x,P=b.y,k=b.PCTResizeInfo,M=l.index,R=l.nodeModel,N=R.minWidth,L=R.minHeight,G=R.maxWidth,W=R.maxHeight,X=N===G,Q=L===W,te=g,Z=E,J=l.getResize({index:M,deltaX:d,deltaY:h,width:te,height:Z,PCTResizeInfo:k,pct:1/2,freezeWidth:X,freezeHeight:Q});if(J.width<N/2||J.width>G/2||J.height<L/2||J.height>W/2){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:X?0:J.deltaX,deltaY:Q?0:J.deltaY}),l.nodeModel.rx=J.width,l.nodeModel.ry=J.height,l.nodeModel.setProperties({nodeSize:{rx:J.width,ry:J.height}});var H={x:j,y:P,rx:g,ry:E},B={rx:J.width,ry:J.height,x:l.nodeModel.x,y:l.nodeModel.y};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:H,afterNode:B})},l.eventEmit=function(o){var d=o.beforeNode,h=o.afterNode,b=l.nodeModel,g=b.id,E=b.modelType,j=b.type,P=Gc({id:g,modelType:E,type:j},d),k=Gc({id:g,modelType:E,type:j},h);l.graphModel.eventCenter.emit("node:resize",{oldNodeSize:P,newNodeSize:k})},l.onDragging=function(o){var d,h=o.deltaX,b=o.deltaY,g=l.graphModel.transformModel,E=l.nodeModel.modelType;d=A5(g.fixDeltaXY(h,b),2),h=d[0],b=d[1],E===Ol.RECT_NODE||E===Ol.HTML_NODE?l.updateRect({deltaX:h,deltaY:b}):E===Ol.ELLIPSE_NODE?l.updateEllipse({deltaX:h,deltaY:b}):E===Ol.DIAMOND_NODE&&l.updateDiamond({deltaX:h,deltaY:b})},l.onDragEnd=function(){var o=l.graphModel.gridSize,d=o===void 0?1:o,h=d*Math.round(l.nodeModel.x/d),b=d*Math.round(l.nodeModel.y/d);l.nodeModel.moveTo(h,b),l.updateEdgePointByAnchors()},l.index=u.index,l.nodeModel=u.model,l.graphModel=u.graphModel,l.state={},l.dragHandler=new T5({onDragging:l.onDragging,onDragEnd:l.onDragEnd,step:1}),l}return a.prototype.getNodeEdges=function(u){for(var l=this.graphModel,o=l.edges,d=[],h=[],b=0;b<o.length;b++){var g=o[b];g.sourceNodeId===u?d.push(g):o[b].targetNodeId===u&&h.push(g)}return{sourceEdges:d,targetEdges:h}},a.prototype.render=function(){var u=this.props,l=u.x,o=u.y,d=u.index,h=u.model,b=h.getControlPointStyle();return Sp("g",{className:"lf-resize-control-"+d},Sp(l0,Gc({className:"lf-node-control"},{x:l,y:o},b,{onMouseDown:this.dragHandler.handleMouseDown})))},a}(El),k5=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),by=globalThis&&globalThis.__assign||function(){return by=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},by.apply(this,arguments)},Gy=function(r){k5(a,r);function a(){var u=r.call(this)||this;return u.state={},u}return a.prototype.getResizeControl=function(){var u=this.props,l=u.model,o=u.graphModel,d=l.x,h=l.y,b=l.width,g=l.height,E={minX:d-b/2,minY:h-g/2,maxX:d+b/2,maxY:h+g/2},j=E.minX,P=E.minY,k=E.maxX,M=E.maxY,R=[{x:j,y:P},{x:k,y:P},{x:k,y:M},{x:j,y:M}];return R.map(function(N,L){return Sp(M5,by({index:L},N,{model:l,graphModel:o}))})},a.prototype.getGroupSolid=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.getResizeOutlineStyle();return Sp(l0,by({fill:"none"},b,{x:l,y:o,width:d,height:h}))},a.prototype.render=function(){return Sp("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},a}(El),XE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),D5=function(r){XE(a,r);function a(u,l){var o=r.call(this,u,l)||this,d=o.properties.nodeSize;return d&&(o.width=d.width,o.height=d.height),o}return a.prototype.initNodeData=function(u){r.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},a.prototype.getOutlineStyle=function(){var u=r.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(u.stroke="none",u.hover&&(u.hover.stroke="none")),u},a.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},a.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},a.prototype.resize=function(u,l){console.log(u,l)},a.prototype.enableProportionResize=function(u){if(u===void 0&&(u=!0),u){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},d={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:l,ResizeBasis:o,ScaleLimit:d}}else delete this.PCTResizeInfo},a}(ot.exports.RectNodeModel),N5=function(r){XE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props,l=u.model,o=u.graphModel;return ot.exports.h(Gy,{model:l,graphModel:o})},a.prototype.getResizeShape=function(){return r.prototype.getShape.call(this)},a.prototype.getShape=function(){var u=this.props,l=u.model.isSelected,o=u.graphModel.editConfigModel.isSilentMode;return ot.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},a}(ot.exports.RectNode),YE={type:"rect",view:N5,model:D5},VE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();(function(r){VE(a,r);function a(u,l){var o=r.call(this,u,l)||this,d=o.properties.nodeSize;return d&&(o.rx=d.rx,o.ry=d.ry),o}return a.prototype.initNodeData=function(u){r.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},a.prototype.getOutlineStyle=function(){var u=r.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(u.stroke="none",u.hover&&(u.hover.stroke="none")),u},a.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},a.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},a.prototype.enableProportionResize=function(u){if(u===void 0&&(u=!0),u){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},d={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:l,ResizeBasis:o,ScaleLimit:d}}else delete this.PCTResizeInfo},a})(ot.exports.EllipseNodeModel);(function(r){VE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props,l=u.model,o=u.graphModel;return ot.exports.h(Gy,{model:l,graphModel:o})},a.prototype.getResizeShape=function(){return r.prototype.getShape.call(this)},a.prototype.getShape=function(){var u=this.props,l=u.model,o=u.graphModel.editConfigModel.isSilentMode;return ot.exports.h("g",null,this.getResizeShape(),l.isSelected&&!o?this.getControlGroup():"")},a})(ot.exports.EllipseNode);var gm=globalThis&&globalThis.__assign||function(){return gm=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},gm.apply(this,arguments)};function C5(r){var a=r.fillOpacity,u=a===void 0?1:a,l=r.strokeWidth,o=l===void 0?1:l,d=r.strokeOpacity,h=d===void 0?1:d,b=r.fill,g=b===void 0?"transparent":b,E=r.stroke,j=E===void 0?"#000":E,P=r.points,k=r.className,M=k===void 0?"lf-basic-shape":k,R={fill:g,fillOpacity:u,strokeWidth:o,stroke:j,strokeOpacity:h,points:"",className:M};return R.points=P.map(function(N){return N.join(",")}).join(" "),ot.exports.h("polygon",gm({},R))}var KE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),bm=globalThis&&globalThis.__assign||function(){return bm=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},bm.apply(this,arguments)};(function(r){KE(a,r);function a(u,l){var o=r.call(this,u,l)||this,d=o.properties.nodeSize;return d&&(o.rx=d.rx,o.ry=d.ry),o}return a.prototype.initNodeData=function(u){r.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},a.prototype.getOutlineStyle=function(){var u=r.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(u.stroke="none",u.hover&&(u.hover.stroke="none")),u},a.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},a.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},a.prototype.enableProportionResize=function(u){if(u===void 0&&(u=!0),u){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},d={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:l,ResizeBasis:o,ScaleLimit:d}}else delete this.PCTResizeInfo},a})(ot.exports.DiamondNodeModel);(function(r){KE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props,l=u.model,o=u.graphModel;return ot.exports.h(Gy,{model:l,graphModel:o})},a.prototype.getResizeShape=function(){var u=this.props.model,l=u.points,o=u.getNodeStyle();return ot.exports.h("g",null,ot.exports.h(C5,bm({},o,{points:l})))},a.prototype.getShape=function(){var u=this.props,l=u.model.isSelected,o=u.graphModel.editConfigModel.isSilentMode;return ot.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},a})(ot.exports.DiamondNode);var qE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();(function(r){qE(a,r);function a(u,l){var o=r.call(this,u,l)||this,d=o.properties.nodeSize;return d&&(o.width=d.width,o.height=d.height),o}return a.prototype.initNodeData=function(u){r.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},a.prototype.getOutlineStyle=function(){var u=r.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(u.stroke="none",u.hover&&(u.hover.stroke="none")),u},a.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},a.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},a.prototype.enableProportionResize=function(u){if(u===void 0&&(u=!0),u){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},d={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:l,ResizeBasis:o,ScaleLimit:d}}else delete this.PCTResizeInfo},a})(ot.exports.HtmlNodeModel);(function(r){qE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props,l=u.model,o=u.graphModel;return ot.exports.h(Gy,{model:l,graphModel:o})},a.prototype.getResizeShape=function(){return r.prototype.getShape.call(this)},a.prototype.getShape=function(){var u=this.props,l=u.model.isSelected,o=u.graphModel.editConfigModel.isSilentMode;return ot.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},a})(ot.exports.HtmlNode);var ZE=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),my=globalThis&&globalThis.__assign||function(){return my=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},my.apply(this,arguments)},R5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},I5=globalThis&&globalThis.__spread||function(){for(var r=[],a=0;a<arguments.length;a++)r=r.concat(R5(arguments[a]));return r},KO=500,qO=300,L5=-1e4;(function(r){ZE(a,r);function a(){var u=r!==null&&r.apply(this,arguments)||this;return u.isGroup=!0,u.unfoldedWidth=KO,u.unfoldedHight=qO,u.childrenLastFoldStatus={},u}return a.prototype.initNodeData=function(u){var l=this;r.prototype.initNodeData.call(this,u);var o=[];Array.isArray(u.children)&&(o=u.children),this.children=new Set(o),this.width=KO,this.height=qO,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=L5,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(){l.isFolded&&l.foldGroup(l.isFolded)})},a.prototype.getResizeOutlineStyle=function(){var u=r.prototype.getResizeOutlineStyle.call(this);return u.stroke="none",u},a.prototype.foldGroup=function(u){var l=this;if(u!==this.isFolded){this.setProperty("isFolded",u),this.isFolded=u,u?(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(d){var h=l.graphModel.getElement(d),b=h.isFolded;if(h.isGroup&&!h.isFolded&&h.foldGroup(u),h.isGroup&&!u){var g=l.childrenLastFoldStatus[d];g!==void 0&&g!==h.isFolded&&h.foldGroup(g)}l.childrenLastFoldStatus[d]=b,h.visible=!u,o=o.concat(h.incoming.edges.concat(h.outgoing.edges))}),this.foldEdge(u,o)}},a.prototype.getAnchorStyle=function(u){var l=r.prototype.getAnchorStyle.call(this,u);return l.stroke="transparent",l.fill="transparent",l.hover.fill="transparent",l.hover.stroke="transparent",l},a.prototype.foldEdge=function(u,l){var o=this;l.forEach(function(d,h){var b=d.id,g=d.sourceNodeId,E=d.targetNodeId,j=d.startPoint,P=d.endPoint,k=d.type,M=d.text,R=d.getProperties(),N={id:b+"__"+h,sourceNodeId:g,targetNodeId:E,startPoint:j,endPoint:P,type:k,properties:R,text:M==null?void 0:M.value};d.virtual&&o.graphModel.deleteEdgeById(d.id);var L=o.graphModel.group.getNodeGroup(E);L||(L=o.graphModel.getNodeModelById(E));var G=o.graphModel.group.getNodeGroup(g);G||(G=o.graphModel.getNodeModelById(g)),u&&d.visible!==!1&&(o.children.has(g)||o.id===g?(N.startPoint=void 0,N.sourceNodeId=o.id):(N.endPoint=void 0,N.targetNodeId=o.id),(L.id!==o.id||G.id!==o.id)&&o.createVirtualEdge(N),d.visible=!1),!u&&d.visible===!1&&(L&&L.isGroup&&L.isFolded?(N.targetNodeId=L.id,N.endPoint=void 0,o.createVirtualEdge(N)):G&&G.isGroup&&G.isFolded?(N.sourceNodeId=G.id,N.startPoint=void 0,o.createVirtualEdge(N)):d.visible=!0)})},a.prototype.createVirtualEdge=function(u){u.pointsList=void 0;var l=this.graphModel.addEdge(u);l.virtual=!0,l.text.editable=!1,l.isFoldedEdge=!0},a.prototype.isInRange=function(u){var l=u.x1,o=u.y1,d=u.x2,h=u.y2;return l>=this.x-this.width/2&&d<=this.x+this.width/2&&o>=this.y-this.height/2&&h<=this.y+this.height/2},a.prototype.isAllowMoveTo=function(u){var l=u.x1,o=u.y1,d=u.x2,h=u.y2;return{x:l>=this.x-this.width/2&&d<=this.x+this.width/2,y:o>=this.y-this.height/2&&h<=this.y+this.height/2}},a.prototype.setAllowAppendChild=function(u){this.setProperty("groupAddable",u)},a.prototype.addChild=function(u){this.children.add(u),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})},a.prototype.removeChild=function(u){this.children.delete(u),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})},a.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},a.prototype.getData=function(){var u=this,l=r.prototype.getData.call(this);l.children=[],this.children.forEach(function(d){var h=u.graphModel.getNodeModelById(d);h&&!h.virtual&&l.children.push(d)});var o=l.properties;return delete o.groupAddable,delete o.isFolded,l},a.prototype.getHistoryData=function(){var u=r.prototype.getData.call(this);u.children=I5(this.children),u.isGroup=!0;var l=u.properties;return delete l.groupAddable,l.isFolded&&(u.x=u.x+this.unfoldedWidth/2-this.foldedWidth/2,u.y=u.y+this.unfoldedHight/2-this.foldedHeight/2),u},a.prototype.isAllowAppendIn=function(u){return!0},a.prototype.toBack=function(){this.zIndex--},a})(YE.model);(function(r){ZE(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props.model,l=u.resizable,o=u.properties;return l&&!o.isFolded?r.prototype.getControlGroup.call(this):null},a.prototype.getAddableShape=function(){var u=this.props.model,l=u.width,o=u.height,d=u.x,h=u.y,b=u.radius,g=u.properties;if(!g.groupAddable)return null;var E=this.props.model.getNodeStyle().strokeWidth,j=this.props.model.getAddableOutlineStyle(),P=l+E+8,k=o+E+8;return ot.exports.h("rect",my(my({},j),{width:P,height:k,x:d-P/2,y:h-k/2,rx:b,ry:b}))},a.prototype.getFoldIcon=function(){var u=this.props.model,l=u.x-u.width/2+5,o=u.y-u.height/2+5;if(!u.foldable)return null;var d=ot.exports.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:u.properties.isFolded?"M "+(l+3)+","+(o+6)+" "+(l+11)+","+(o+6)+" M"+(l+7)+","+(o+2)+" "+(l+7)+","+(o+10):"M "+(l+3)+","+(o+6)+" "+(l+11)+","+(o+6)+" "});return ot.exports.h("g",{},[ot.exports.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:u.x-u.width/2+5,y:u.y-u.height/2+5,onClick:function(){u.foldGroup(!u.properties.isFolded)}}),d])},a.prototype.getResizeShape=function(){return ot.exports.h("g",{},[this.getAddableShape(),r.prototype.getResizeShape.call(this),this.getFoldIcon()])},a})(YE.view);var ZO=globalThis&&globalThis.__assign||function(){return ZO=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},ZO.apply(this,arguments)};globalThis&&globalThis.__rest;var B5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var JO=globalThis&&globalThis.__assign||function(){return JO=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},JO.apply(this,arguments)};globalThis&&globalThis.__values;var QO=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Pp=globalThis&&globalThis.__assign||function(){return Pp=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},Pp.apply(this,arguments)};function z5(r){var a=function(l){QO(o,l);function o(d,h){var b=this;d.id||(d.id="Flow_"+h5());var g=Pp(Pp(Pp({},r||{}),d.properties),{isDefaultFlow:!1});return d.properties=g,b=l.call(this,d,h)||this,b}return o.extendKey="SequenceFlowModel",o}(ot.exports.PolylineEdgeModel),u=function(l){QO(o,l);function o(){return l!==null&&l.apply(this,arguments)||this}return o.prototype.getStartArrow=function(){var d=this.props.model,h=d.properties.isDefaultFlow;return h?ot.exports.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):ot.exports.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(ot.exports.PolylineEdge);return{type:"bpmn:sequenceFlow",view:u,model:a}}z5();globalThis&&globalThis.__read;var ew={width:40,height:40},tw={width:40,height:40},nw={width:100,height:80},_y={width:100,height:80},rw={width:100,height:80},ow={width:100,height:80},iw={width:100,height:80},aw={width:100,height:80},uw={width:100,height:80},cw={width:100,height:80},so=function(){};so.ObjTree=function(){return this};so.ObjTree.VERSION="0.23";so.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
  130. `;so.ObjTree.prototype.attr_prefix="-";so.ObjTree.prototype.parseXML=function(r){var a;if(window.DOMParser){var u=new DOMParser,l=u.parseFromString(r,"application/xml");if(!l)return;a=l.documentElement}else window.ActiveXObject&&(u=new ActiveXObject("Microsoft.XMLDOM"),u.async=!1,u.loadXML(r),a=u.documentElement);if(!!a){var o=this.parseDOM(a);return o}};so.ObjTree.prototype.parseHTTP=function(r,a,u){var l={};for(var o in a)l[o]=a[o];if(l.method||(typeof l.postBody=="undefined"&&typeof l.postbody=="undefined"&&typeof l.parameters=="undefined"?l.method="get":l.method="post"),u){l.asynchronous=!0;var d=this,h=u,b=l.onComplete;l.onComplete=function(j){var P;j&&j.responseXML&&j.responseXML.documentElement&&(P=d.parseDOM(j.responseXML.documentElement)),h(P,j),b&&b(j)}}else l.asynchronous=!1;var g;if(typeof HTTP!="undefined"&&HTTP.Request){l.uri=r;var E=new HTTP.Request(l);E&&(g=E.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var E=new Ajax.Request(r,l);E&&(g=E.transport)}if(u)return g;if(g&&g.responseXML&&g.responseXML.documentElement)return this.parseDOM(g.responseXML.documentElement)};so.ObjTree.prototype.parseDOM=function(r){if(!!r){if(this.__force_array={},this.force_array)for(var a=0;a<this.force_array.length;a++)this.__force_array[this.force_array[a]]=1;var u=this.parseElement(r);if(this.__force_array[r.nodeName]&&(u=[u]),r.nodeType!==11){var l={};l[r.nodeName]=u,u=l}return u}};so.ObjTree.prototype.parseElement=function(r){if(r.nodeType!==7){if(r.nodeType===3||r.nodeType===4||r.nodeType===8){var a=r.nodeValue.match(/[^\x00-\x20]/);return a==null?void 0:r.nodeValue}var u=null,l={};if(r.attributes&&r.attributes.length){u={};for(var o=0;o<r.attributes.length;o++){var d=r.attributes[o].nodeName;if(typeof d=="string"){var h=r.attributes[o].nodeValue;try{h=JSON.parse(r.attributes[o].nodeValue.replace(/'/g,'"'))}catch{h=r.attributes[o].nodeValue}h!=null&&(d=this.attr_prefix+d,typeof l[d]=="undefined"&&(l[d]=0),l[d]++,this.addNode(u,d,l[d],h))}}}if(r.childNodes&&r.childNodes.length){var b=!0;u&&(b=!1);for(var o=0;o<r.childNodes.length&&b;o++){var g=r.childNodes[o].nodeType;g===3||g===4||g===8||(b=!1)}if(b){u||(u="");for(var o=0;o<r.childNodes.length;o++)u+=r.childNodes[o].nodeValue}else{u||(u={});for(var o=0;o<r.childNodes.length;o++){var d=r.childNodes[o].nodeName;if(typeof d=="string"){var h=this.parseElement(r.childNodes[o]);!h||(typeof l[d]=="undefined"&&(l[d]=0),l[d]++,this.addNode(u,d,l[d],h))}}}}else u===null&&(u={});return u}};so.ObjTree.prototype.addNode=function(r,a,u,l){this.__force_array[a]?(u===1&&(r[a]=[]),r[a][r[a].length]=l):u===1?r[a]=l:u===2?r[a]=[r[a],l]:r[a][r[a].length]=l};so.ObjTree.prototype.writeXML=function(r){var a=this.hash_to_xml(null,r);return this.xmlDecl+a};so.ObjTree.prototype.hash_to_xml=function(r,a){var u=[],l=[];for(var o in a)if(!!(a!=null&&a.hasOwnProperty(o))){var d=a[o];o.charAt(0)!==this.attr_prefix?typeof d=="undefined"||d==null?u[u.length]="<"+o+" />":typeof d=="object"&&d.constructor===Array?u[u.length]=this.array_to_xml(o,d):typeof d=="object"?u[u.length]=this.hash_to_xml(o,d):u[u.length]=this.scalar_to_xml(o,d):l[l.length]=" "+o.substring(1)+'="'+this.xml_escape(d)+'"'}var h=l.join(""),b=u.join("");return typeof r=="undefined"||r==null||(u.length>0?b.match(/\n/)?b="<"+r+h+`>
  131. `+b+"</"+r+`>
  132. `:b="<"+r+h+">"+b+"</"+r+`>
  133. `:b="<"+r+h+` />
  134. `),b};so.ObjTree.prototype.array_to_xml=function(r,a){for(var u=[],l=0;l<a.length;l++){var o=a[l];typeof o=="undefined"||o==null?u[u.length]="<"+r+" />":typeof o=="object"&&o.constructor===Array?u[u.length]=this.array_to_xml(r,o):typeof o=="object"?u[u.length]=this.hash_to_xml(r,o):u[u.length]=this.scalar_to_xml(r,o)}return u.join("")};so.ObjTree.prototype.scalar_to_xml=function(r,a){return r==="#text"?this.xml_escape(a):"<"+r+">"+this.xml_escape(a)+"</"+r+`>
  135. `};so.ObjTree.prototype.xml_escape=function(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var F5=function(r){return new so.ObjTree().parseXML(r)};function JE(r){return Object.prototype.toString.call(r)}function sw(r){return" ".repeat(r)}function Oy(r){return JE(r)==="[object Object]"?Object.keys(r).reduce(function(a,u){var l=u;return u.charAt(0)==="-"&&(l=u.substring(1)),a[l]=Oy(r[u]),a},{}):Array.isArray(r)?r.map(function(a){return Oy(a)}):r}function $5(r){var a=r;try{typeof a!="string"&&(a=JSON.parse(r))}catch{a=JSON.stringify(Oy(r)).replace(/"/g,"'")}return a}var lw=`
  136. `;function cy(r,a,u){var l=sw(u),o="",d=lw+l;if(a==="-json")return"";if(a==="#text")return d+r;if(a==="#cdata-section")return d+"<![CDATA["+r+"]]>";if(a==="#comment")return d+"<!--"+r+"-->";if((""+a).charAt(0)==="-")return" "+a.substring(1)+'="'+$5(r)+'"';if(Array.isArray(r))o+=r.map(function(E){return cy(E,a,u+1)}).join("");else if(JE(r)==="[object Object]"){var h=Object.keys(r),b="",g=r["-json"]?lw+sw(u+1)+r["-json"]:"";o+=(u===0?"":d)+"<"+a,h.forEach(function(E){E.charAt(0)==="-"?b+=cy(r[E],E,u+1):g+=cy(r[E],E,u+1)}),o+=b+(g!==""?">"+g+d+"</"+a+">":" />")}else o+=d+"<"+a+">"+r.toString()+"</"+a+">";return o}function W5(r){var a="";for(var u in r)a+=cy(r[u],u,0);return a}var U5=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),mm=globalThis&&globalThis.__assign||function(){return mm=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},mm.apply(this,arguments)},fw=globalThis&&globalThis.__rest||function(r,a){var u={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&a.indexOf(l)<0&&(u[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(r);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(r,l[o])&&(u[l[o]]=r[l[o]]);return u},f0=globalThis&&globalThis.__values||function(r){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&r[a],l=0;if(u)return u.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&l>=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},Ll=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},Sl=globalThis&&globalThis.__spread||function(){for(var r=[],a=0;a<arguments.length;a++)r=r.concat(Ll(arguments[a]));return r},ao;(function(r){r.START="bpmn:startEvent",r.END="bpmn:endEvent",r.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",r.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",r.BOUNDARY="bpmn:boundaryEvent",r.PARALLEL_GATEWAY="bpmn:parallelGateway",r.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",r.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",r.USER="bpmn:userTask",r.SYSTEM="bpmn:serviceTask",r.FLOW="bpmn:sequenceFlow",r.SUBPROCESS="bpmn:subProcess"})(ao||(ao={}));var QE=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],G5=["properties","startPoint","endPoint","pointsList"],wy={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},eS=function(r,a){var u=Object.keys(a||{});return u.forEach(function(l){if(r[l]){var o=a[l],d=o.in,h=o.out;d&&(r[l].in=d),h&&(r[l].out=h)}else r[l]=a[l]}),r},ri={"bpmn:startEvent":{out:function(r){var a,u,l=r.properties;return((u=(a=ri[l.definitionType])===null||a===void 0?void 0:a.out)===null||u===void 0?void 0:u.call(a,r))||{}}},"bpmn:intermediateCatchEvent":{out:function(r){var a,u,l=r.properties;return((u=(a=ri[l.definitionType])===null||a===void 0?void 0:a.out)===null||u===void 0?void 0:u.call(a,r))||{}}},"bpmn:intermediateThrowEvent":{out:function(r){var a,u,l=r.properties;return((u=(a=ri[l.definitionType])===null||a===void 0?void 0:a.out)===null||u===void 0?void 0:u.call(a,r))||{}}},"bpmn:boundaryEvent":{out:function(r){var a,u,l=r.properties;return((u=(a=ri[l.definitionType])===null||a===void 0?void 0:a.out)===null||u===void 0?void 0:u.call(a,r))||{}}},"bpmn:sequenceFlow":{out:function(r){var a=r.properties,u=a.expressionType,l=a.condition;return l?u==="cdata"?{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${'+l+"}]]></bpmn:conditionExpression>"}:{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression">'+l+"</bpmn:conditionExpression>"}:{json:""}}},"bpmn:timerEventDefinition":{out:function(r){var a=r.properties,u=a.timerType,l=a.timerValue,o=a.definitionId,d=function(){return"<bpmn:"+u+' xsi:type="bpmn:tFormalExpression">'+l+"</bpmn:"+u+">"};return{json:'<bpmn:timerEventDefinition id="'+o+'"'+(u&&l?">"+d()+"</bpmn:timerEventDefinition>":"/>")}},in:function(r,a){var u,l,o,d,h=r,b=a["-id"],g="",E="";try{for(var j=f0(Object.keys(a)),P=j.next();!P.done;P=j.next()){var k=P.value;k.includes("bpmn:")&&(o=Ll(k.split(":"),2),g=o[1],E=(d=a[k])===null||d===void 0?void 0:d["#text"])}}catch(M){u={error:M}}finally{try{P&&!P.done&&(l=j.return)&&l.call(j)}finally{if(u)throw u.error}}return{"-definitionId":b,"-definitionType":h,"-timerType":g,"-timerValue":E}}},"bpmn:conditionExpression":{in:function(r,a){var u,l="",o="";return a["#cdata-section"]?(o="cdata",l=((u=/^\$\{(.*)\}$/g.exec(a["#cdata-section"]))===null||u===void 0?void 0:u[1])||""):a["#text"]&&(o="normal",l=a["#text"]),{"-condition":l,"-expressionType":o}}}};function H5(r){var a=r!=null?r:{},u=a.retainedAttrsFields,l=a.excludeFields,o=a.transformer,d=new Set(Sl(G5,u||[])),h={in:new Set(Sl(wy.in,(l==null?void 0:l.in)||[])),out:new Set(Sl(wy.out,(l==null?void 0:l.out)||[]))};return ri=eS(ri,o),function(b){var g=b.nodes,E=b.edges;function j(P,k){var M,R,N;if((P==null?void 0:P.flag)!==1){var L;if((L=ri[P.type])&&L.out){var G=L.out(P),W=Object.keys(G);W.length>0&&W.forEach(function(V){P[V]=G[V]})}P!=null&&P.children&&(P.children=P.children.map(function(V){var Y=g.find(function(q){return q.id===V})||E.find(function(q){return q.id===V});return Y||{}}));var X={};if(typeof P=="string")return P;if(Array.isArray(P))return P.map(function(V){return j(V,"")}).filter(function(V){return V!=null});try{for(var Q=f0(Object.entries(P)),te=Q.next();!te.done;te=Q.next()){var Z=Ll(te.value,2),J=Z[0],H=Z[1];if(((N=H)===null||N===void 0?void 0:N.flag)===1)return;var B=[k,J].filter(function(V){return V}).join(".");h.out.has(B)||(typeof H!="object"?J.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(J)?X[J]=H:X["-"+J]=H:d.has(B)?X["-"+J]=j(H,B):X[J]=j(H,B))}}catch(V){M={error:V}}finally{try{te&&!te.done&&(R=Q.return)&&R.call(Q)}finally{if(M)throw M.error}}return X}}return j(b,"")}}function xy(r){var a,u,l={};try{for(var o=f0(Object.entries(r)),d=o.next();!d.done;d=o.next()){var h=Ll(d.value,2),b=h[0],g=h[1];b.indexOf("-")===0?l[b.substring(1)]=Oy(g):typeof g=="string"?l[b]=g:Object.prototype.toString.call(g)==="[object Object]"?l[b]=xy(g):Array.isArray(g)?l[b]=g.map(function(E){return xy(E)}):l[b]=g}}catch(E){a={error:E}}finally{try{d&&!d.done&&(u=o.return)&&u.call(o)}finally{if(a)throw a.error}}return l}function X5(r,a,u){var l,o=new Map,d=H5(u)(a);d.nodes.forEach(function(b){var g=b["-id"],E=b["-type"],j=b.text,P=b.children,k=fw(b,["-id","-type","text","children"]),M={"-id":g};j!=null&&j["-value"]&&(M["-name"]=j["-value"]),k["-json"]&&(M["-json"]=k["-json"]),k["-properties"]&&Object.assign(M,k["-properties"]),P&&(M.children=P),r[E]||(r[E]=[]),r[E].push(M),o.set(g,M)});var h=d.edges.map(function(b){var g=b["-id"];b["-type"];var E=b["-sourceNodeId"],j=b["-targetNodeId"],P=b.text,k=fw(b,["-id","-type","-sourceNodeId","-targetNodeId","text"]),M=o.get(j);M["bpmn:incoming"]||(M["bpmn:incoming"]=[]),M["bpmn:incoming"].push(g);var R={"-id":g,"-sourceRef":E,"-targetRef":j};return P!=null&&P["-value"]&&(R["-name"]=P["-value"]),k["-json"]&&(R["-json"]=k["-json"]),k["-properties"]&&Object.assign(R,k["-properties"]),R});return a.edges.forEach(function(b){var g=b.sourceNodeId,E=b.id,j=o.get(g);j["bpmn:outgoing"]||(j["bpmn:outgoing"]=[]),j["bpmn:outgoing"].push(E)}),(l=r["bpmn:subProcess"])===null||l===void 0||l.forEach(function(b){var g={"bpmn:incoming":new Set,"bpmn:outgoing":new Set},E=[];b.children.forEach(function(N){var L,G=o.get(N["-id"]);["bpmn:incoming","bpmn:outgoing"].forEach(function(X){G[X]&&G[X].forEach(function(Q){g[X].add(Q)})});var W=(L=r[N["-type"]])===null||L===void 0?void 0:L.findIndex(function(X){return X["-id"]===N["-id"]});W>=0&&r[N["-type"]].splice(W,1),o.delete(N["-id"]),b[N["-type"]]||(b[N["-type"]]=[]),b[N["-type"]].push(G)});var j=g["bpmn:incoming"],P=g["bpmn:outgoing"];P.forEach(function(N){j.has(N)&&E.push(N)});for(var k=function(N){var L=h.findIndex(function(G){return G["-id"]===E[N]});L>=0?(b["bpmn:sequenceFlow"]||(b["bpmn:sequenceFlow"]=[]),b["bpmn:sequenceFlow"].push(h[L]),h.splice(L,1)):N++,M=N},M,R=0;R<E.length;)k(R),R=M;delete b.children}),r[ao.FLOW]=h,r}function Y5(r,a){r["bpmndi:BPMNEdge"]=a.edges.map(function(u){var l,o=u.id,d=u.pointsList.map(function(b){var g=b.x,E=b.y;return{"-x":g,"-y":E}}),h={"-id":o+"_di","-bpmnElement":o,"di:waypoint":d};return!((l=u.text)===null||l===void 0)&&l.value&&(h["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),h}),r["bpmndi:BPMNShape"]=a.nodes.map(function(u){var l,o=u.id,d=100,h=80,b=u.x,g=u.y,E=Oo.shapeConfigMap.get(u.type);E&&(d=E.width,h=E.height),b-=d/2,g-=h/2;var j={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":b,"-y":g,"-width":d,"-height":h}};return!((l=u.text)===null||l===void 0)&&l.value&&(j["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),j})}var V5=["bpmn:incoming","bpmn:outgoing"];function K5(r,a){var u=[],l=[],o=new Map,d=a!=null?a:{},h=d.transformer,b=d.excludeFields,g={in:new Set(Sl(wy.in,(b==null?void 0:b.in)||[])),out:new Set(Sl(wy.out,(b==null?void 0:b.out)||[]))};ri=eS(ri,h);var E=r["bpmn:definitions"];if(E){var j=E["bpmn:process"];(function(k,M){M.forEach(function(R){try{Object.keys(k).forEach(function(N){try{R(N)}catch(L){console.error(L)}})}catch(N){console.error(N)}})})(j,[function(k){function M(N){N["-children"]||(N["-children"]=[]),Object.keys(N).forEach(function(L){var G;L.indexOf("bpmn:")===0&&!V5.includes(L)&&(j[L]||(j[L]=[]),!Array.isArray(j[L])&&(j[L]=[j[L]]),Array.isArray(N[L])?(G=j[L]).push.apply(G,Sl(N[L])):j[L].push(N[L]),Array.isArray(N[L])?N[L].forEach(function(W){!L.includes("Flow")&&N["-children"].push(W["-id"])}):!L.includes("Flow")&&N["-children"].push(N[L]["-id"]),delete N[L])})}if(k==="bpmn:subProcess"){var R=j[k];Array.isArray(R)?R.forEach(function(N){k==="bpmn:subProcess"&&M(N)}):M(R)}},function(k){var M=function(N){Object.keys(N).forEach(function(L){var G,W;if(L.includes("bpmn:")){var X={};ri[L]&&ri[L].in?(X=(W=(G=ri[L]).in)===null||W===void 0?void 0:W.call(G,L,$.cloneDeep(N[L])),delete N[L]):R(N[L]);var Q=void 0;(Q=Reflect.ownKeys(X)).length>0&&Q.forEach(function(te){Reflect.set(N,te,X[te])})}})};function R(N){o.set(N["-id"],N),Array.isArray(N)?N.forEach(function(L){R(L)}):typeof N=="object"&&M(N)}R(j[k])},function(k){if(k.indexOf("bpmn:")===0){var M=j[k];if(k==="bpmn:sequenceFlow"){var R=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];l=Z5(M,R)}else{var N=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(k==="bpmn:boundaryEvent"){var L=j[k],G=function(W){var X=W["-attachedToRef"],Q=o.get(X);Q["-boundaryEvents"]||(Q["-boundaryEvents"]=[]),Q["-boundaryEvents"].push(W["-id"])};Array.isArray(L)?L.forEach(function(W){G(W)}):G(L)}u=u.concat(q5(M,N,k))}}}])}var P=function(k,M,R){Object.keys(k).forEach(function(N){var L=R?R+"."+N:N;M.has(L)?delete k[N]:typeof k[N]=="object"&&P(k[N],M,L)})};return u.forEach(function(k){var M,R;if(!((M=a==null?void 0:a.mapping)===null||M===void 0)&&M.in){var N=(R=a==null?void 0:a.mapping)===null||R===void 0?void 0:R.in,L=k.type;N[L]&&(k.type=N[L])}P(k,g.in,"")}),l.forEach(function(k){var M,R;if(!((M=a==null?void 0:a.mapping)===null||M===void 0)&&M.in){var N=(R=a==null?void 0:a.mapping)===null||R===void 0?void 0:R.in,L=k.type;N[L]&&(k.type=N[L])}P(k,g.in,"")}),{nodes:u,edges:l}}function q5(r,a,u){var l=[];if(Array.isArray(r))r.forEach(function(h){var b;Array.isArray(a)?b=a.find(function(E){return E["-bpmnElement"]===h["-id"]}):b=a;var g=pw(b,u,h);l.push(g)});else{var o=void 0;Array.isArray(a)?o=a.find(function(h){return h["-bpmnElement"]===r["-id"]}):o=a;var d=pw(o,u,r);l.push(d)}return l}function pw(r,a,u){var l=Number(r["dc:Bounds"]["-x"]),o=Number(r["dc:Bounds"]["-y"]),d=u["-children"],h=u["-name"],b=Oo.shapeConfigMap.get(a);b&&(l+=b.width/2,o+=b.height/2);var g={};Object.entries(u).forEach(function(k){var M=Ll(k,2),R=M[0],N=M[1];QE.includes(R)||(g[R]=N)}),g=xy(g);var E;if(h&&(E={x:l,y:o,value:h},r["bpmndi:BPMNLabel"]&&r["bpmndi:BPMNLabel"]["dc:Bounds"])){var j=r["bpmndi:BPMNLabel"]["dc:Bounds"];E.x=Number(j["-x"])+Number(j["-width"])/2,E.y=Number(j["-y"])+Number(j["-height"])/2}var P={id:r["-bpmnElement"],type:a,x:l,y:o,properties:g};return d&&(P.children=d),E&&(P.text=E),P}function Z5(r,a){var u=[];if(Array.isArray(r))r.forEach(function(o){var d;Array.isArray(a)?d=a.find(function(h){return h["-bpmnElement"]===o["-id"]}):d=a,u.push(dw(d,o))});else{var l=void 0;Array.isArray(a)?l=a.find(function(o){return o["-bpmnElement"]===r["-id"]}):l=a,u.push(dw(l,r))}return u}function dw(r,a){var u,l=a["-name"];if(l){var o=r["bpmndi:BPMNLabel"]["dc:Bounds"],d=0;l.split(`
  137. `).forEach(function(E){d<E.length&&(d=E.length)}),u={value:l,x:Number(o["-x"])+d*10/2,y:Number(o["-y"])+7}}var h={};Object.entries(a).forEach(function(E){var j=Ll(E,2),P=j[0],k=j[1];QE.includes(P)||(h[P]=k)}),h=xy(h);var b=r["di:waypoint"].map(function(E){return{x:Number(E["-x"]),y:Number(E["-y"])}}),g={id:a["-id"],type:ao.FLOW,pointsList:b,sourceNodeId:a["-sourceRef"],targetNodeId:a["-targetRef"],properties:h};return u&&(g.text=u),g}var Oo=function(){function r(a){var u=this,l=a.lf;this.adapterOut=function(o,d){var h,b,g=mm({},u.processAttributes);X5(g,o,d);var E={"-id":"BPMNPlane_1","-bpmnElement":g["-id"]};Y5(E,o);var j=u.definitionAttributes;j["bpmn:process"]=g,j["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":E};var P={"bpmn:definitions":j};if(!((h=d==null?void 0:d.mapping)===null||h===void 0)&&h.out){var k=(b=d==null?void 0:d.mapping)===null||b===void 0?void 0:b.out,M=function(R){Array.isArray(R)&&R.forEach(function(N){return M(N)}),typeof R=="object"&&Object.keys(R).forEach(function(N){var L;(L=k[N])?(R[L]=$.cloneDeep(R[N]),delete R[N],M(R[L])):M(R[N])})};M(P)}return P},this.adapterIn=function(o,d){if(o)return K5(o,d)},l.adapterIn=this.adapterIn,l.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 r.prototype.setCustomShape=function(a,u){r.shapeConfigMap.set(a,u)},r.pluginName="bpmn-adapter",r.shapeConfigMap=new Map,r}();Oo.shapeConfigMap.set(ao.START,{width:ew.width,height:ew.height});Oo.shapeConfigMap.set(ao.END,{width:tw.width,height:tw.height});Oo.shapeConfigMap.set(ao.INTERMEDIATE_CATCH,{width:_y.width,height:_y.height});Oo.shapeConfigMap.set(ao.INTERMEDIATE_THROW,{width:_y.width,height:_y.height});Oo.shapeConfigMap.set(ao.BOUNDARY,{width:nw.width,height:nw.height});Oo.shapeConfigMap.set(ao.PARALLEL_GATEWAY,{width:rw.width,height:rw.height});Oo.shapeConfigMap.set(ao.INCLUSIVE_GATEWAY,{width:ow.width,height:ow.height});Oo.shapeConfigMap.set(ao.EXCLUSIVE_GATEWAY,{width:iw.width,height:iw.height});Oo.shapeConfigMap.set(ao.SYSTEM,{width:aw.width,height:aw.height});Oo.shapeConfigMap.set(ao.USER,{width:uw.width,height:uw.height});Oo.shapeConfigMap.set(ao.SUBPROCESS,{width:cw.width,height:cw.height});(function(r){U5(a,r);function a(u){var l=r.call(this,u)||this;l.adapterXmlIn=function(h){var b=F5(h);return l.adapterIn(b,l.props)},l.adapterXmlOut=function(h){var b=l.adapterOut(h,l.props);return W5(b)};var o=u.lf,d=u.props;return o.adapterIn=l.adapterXmlIn,o.adapterOut=l.adapterXmlOut,l.props=d,l}return a.pluginName="BPMNAdapter",a})(Oo);var J5=function(){function r(a){var u=this,l=a.lf;this.lf=l,this.customCssRules="",this.useGlobalRules=!0,l.getSnapshot=function(o,d){u.getSnapshot(o,d)},l.getSnapshotBlob=function(o){return u.getSnapshotBlob(o)},l.getSnapshotBase64=function(o){return u.getSnapshotBase64(o)}}return r.prototype.getSvgRootElement=function(a){var u=a.container.querySelector(".lf-canvas-overlay");return u},r.prototype.triggerDownload=function(a){var u=new MouseEvent("click",{view:document.defaultView,bubbles:!1,cancelable:!0}),l=document.createElement("a");l.setAttribute("download",this.fileName),l.setAttribute("href",a),l.setAttribute("target","_blank"),l.dispatchEvent(u)},r.prototype.removeAnchor=function(a){for(var u=a.childNodes,l=a.childNodes&&a.childNodes.length,o=0;o<l;o++){var d=u[o],h=d.classList&&Array.from(d.classList)||[];h.indexOf("lf-anchor")>-1&&(a.removeChild(a.childNodes[o]),l--,o--)}},r.prototype.removeRotateControl=function(a){for(var u=a.childNodes,l=a.childNodes&&a.childNodes.length,o=0;o<l;o++){var d=u[o],h=d.classList&&Array.from(d.classList)||[];h.indexOf("lf-rotate-control")>-1&&(a.removeChild(a.childNodes[o]),l--,o--)}},r.prototype.getSnapshot=function(a,u){var l=this;this.fileName=a||"logic-flow."+Date.now()+".png";var o=this.getSvgRootElement(this.lf);this.getCanvasData(o,u).then(function(d){var h=d.toDataURL("image/png").replace("image/png","image/octet-stream");l.triggerDownload(h)})},r.prototype.getSnapshotBase64=function(a){var u=this,l=this.getSvgRootElement(this.lf);return new Promise(function(o){u.getCanvasData(l,a).then(function(d){var h=d.toDataURL("image/png");o({data:h,width:d.width,height:d.height})})})},r.prototype.getSnapshotBlob=function(a){var u=this,l=this.getSvgRootElement(this.lf);return new Promise(function(o){u.getCanvasData(l,a).then(function(d){d.toBlob(function(h){o({data:h,width:d.width,height:d.height})},"image/png")})})},r.prototype.getClassRules=function(){var a="";if(this.useGlobalRules)for(var u=document.styleSheets,l=0;l<u.length;l++)for(var o=u[l],d=0;d<o.cssRules.length;d++)a+=o.cssRules[d].cssText;return this.customCssRules&&(a+=this.customCssRules),a},r.prototype.getCanvasData=function(a,u){var l=this,o=a.cloneNode(!0),d=o.lastChild,h=d.childNodes&&d.childNodes.length;if(h)for(var b=0;b<h;b++){var g=d.childNodes[b],E=g.classList&&Array.from(g.classList);if(E&&E.indexOf("lf-base")<0)d.removeChild(d.childNodes[b]),h--,b--;else{var j=d.childNodes[b];j&&j.childNodes.forEach(function(xe){var be=xe;l.removeAnchor(be.firstChild),l.removeRotateControl(be.firstChild)})}}var P=window.devicePixelRatio||1;P<1&&(P=1);var k=document.createElement("canvas"),M=this.lf.graphModel.rootEl.querySelector(".lf-base"),R=M.getBoundingClientRect(),N=this.lf.container.querySelector(".lf-canvas-overlay").getBoundingClientRect(),L=R.x-N.x,G=R.y-N.y,W=this.lf.graphModel,X=W.transformModel,Q=X.SCALE_X,te=X.SCALE_Y,Z=X.TRANSLATE_X,J=X.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-L+Z)*(1/Q)+10)+", "+((-G+J)*(1/te)+10)+")";var H=Math.ceil(R.width/Q),B=Math.ceil(R.height/te);k.style.width=H+"px",k.style.height=B+"px",k.width=H*P+80,k.height=B*P+80;var V=k.getContext("2d");V.clearRect(0,0,k.width,k.height),V.scale(P,P),u?(V.fillStyle=u,V.fillRect(0,0,H*P+80,B*P+80)):V.clearRect(0,0,H,B);var Y=new Image,q=document.createElement("style");q.innerHTML=this.getClassRules();var ue=document.createElement("foreignObject");return ue.appendChild(q),o.appendChild(ue),new Promise(function(xe){Y.onload=function(){var Fe=navigator.userAgent.indexOf("Firefox")>-1;try{Fe?createImageBitmap(Y,{resizeWidth:k.width,resizeHeight:k.height}).then(function(je){V.drawImage(je,0,0),xe(k)}):(V.drawImage(Y,0,0),xe(k))}catch{V.drawImage(Y,0,0),xe(k)}};var be="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(o),Ae=be.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");Y.src=Ae})},r.pluginName="snapshot",r}(),hw=globalThis&&globalThis.__assign||function(){return hw=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},hw.apply(this,arguments)};globalThis&&globalThis.__read;var yw;(function(r){r.HORIZONTAL="horizontal",r.VERTICAL="vertical"})(yw||(yw={}));var Q5=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var e7=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var t7=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},n7=globalThis&&globalThis.__spread||function(){for(var r=[],a=0;a<arguments.length;a++)r=r.concat(t7(arguments[a]));return r},_p="lf:defaultNodeMenu",Op="lf:defaultEdgeMenu",wp="lf:defaultGraphMenu",vw="lf:defaultSelectionMenu",r7=function(){function r(a){var u=this,l=a.lf;this.lf=l;var o=l.options.isSilentMode;o||(this.__menuDOM=document.createElement("ul"),this.menuTypeMap=new Map,this.init(),this.lf.setMenuConfig=function(d){u.setMenuConfig(d)},this.lf.addMenuConfig=function(d){u.addMenuConfig(d)},this.lf.setMenuByType=function(d){u.setMenuByType(d)})}return r.prototype.init=function(){var a=this,u=[{text:"\u5220\u9664",callback:function(d){a.lf.deleteNode(d.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(d){a.lf.graphModel.editText(d.id)}},{text:"\u590D\u5236",callback:function(d){a.lf.cloneNode(d.id)}}];this.menuTypeMap.set(_p,u);var l=[{text:"\u5220\u9664",callback:function(d){a.lf.deleteEdge(d.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(d){a.lf.graphModel.editText(d.id)}}];this.menuTypeMap.set(Op,l),this.menuTypeMap.set(wp,[]);var o=[{text:"\u5220\u9664",callback:function(d){a.lf.clearSelectElements(),d.edges.forEach(function(h){return a.lf.deleteEdge(h.id)}),d.nodes.forEach(function(h){return a.lf.deleteNode(h.id)})}}];this.menuTypeMap.set(vw,o)},r.prototype.render=function(a,u){var l=this;a.options.isSilentMode||(this.__container=u,this.__currentData=null,this.__menuDOM.className="lf-menu",u.appendChild(this.__menuDOM),this.__menuDOM.addEventListener("click",function(o){o.stopPropagation();for(var d=o.target;Array.from(d.classList).indexOf("lf-menu-item")===-1&&Array.from(d.classList).indexOf("lf-menu")===-1;)d=d.parentElement;Array.from(d.classList).indexOf("lf-menu-item")>-1?(d.onclickCallback(l.__currentData),l.__menuDOM.style.display="none",l.__currentData=null):console.warn("\u70B9\u51FB\u533A\u57DF\u4E0D\u5728\u83DC\u5355\u9879\u5185\uFF0C\u8BF7\u68C0\u67E5\u4EE3\u7801\uFF01")},!0),this.lf.on("node:contextmenu",function(o){var d=o.data,h=o.position,b=o.e,g=h.domOverlayPosition,E=g.x,j=g.y,P=d.id,k=l.lf.graphModel.getNodeModelById(P),M=[],R=l.menuTypeMap.get(k.type);k&&k.menu&&Array.isArray(k.menu)?M=k.menu:R?M=R:M=l.menuTypeMap.get(_p),l.__currentData=d,l.showMenu(E,j,M,{width:k.width,height:k.height,clientX:b.clientX,clientY:b.clientY})}),this.lf.on("edge:contextmenu",function(o){var d=o.data,h=o.position,b=o.e,g=h.domOverlayPosition,E=g.x,j=g.y,P=d.id,k=l.lf.graphModel.getEdgeModelById(P),M=[],R=l.menuTypeMap.get(k.type);k&&k.menu&&Array.isArray(k.menu)?M=k.menu:R?M=R:M=l.menuTypeMap.get(Op),l.__currentData=d,l.showMenu(E,j,M,{width:k.width,height:k.height,clientX:b.clientX,clientY:b.clientY})}),this.lf.on("blank:contextmenu",function(o){var d=o.position,h=l.menuTypeMap.get(wp),b=d.domOverlayPosition,g=b.x,E=b.y;l.showMenu(g,E,h)}),this.lf.on("selection:contextmenu",function(o){var d=o.data,h=o.position,b=l.menuTypeMap.get(vw),g=h.domOverlayPosition,E=g.x,j=g.y;l.__currentData=d,l.showMenu(E,j,b)}),this.lf.on("node:mousedown",function(){l.__menuDOM.style.display="none"}),this.lf.on("edge:click",function(){l.__menuDOM.style.display="none"}),this.lf.on("blank:click",function(){l.__menuDOM.style.display="none"}))},r.prototype.destroy=function(){var a;(a=this===null||this===void 0?void 0:this.__container)===null||a===void 0||a.removeChild(this.__menuDOM),this.__menuDOM=null},r.prototype.showMenu=function(a,u,l,o){if(!(!l||!l.length)){var d=this.__menuDOM;if(d.innerHTML="",d.append.apply(d,n7(this.__getMenuDom(l))),!!d.children.length){if(d.style.display="block",!o){d.style.top=u+"px",d.style.left=a+"px";return}var h=o.width,b=o.height,g=o.clientX,E=o.clientY,j=this.lf.graphModel,P=d.offsetWidth,k=!0,M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,R=M-g,N=j.rootEl.getBoundingClientRect(),L=N.left+N.width;L<M&&(R=L-g),R<P&&(k=!1),k?d.style.left=a+"px":d.style.left=a-h+"px";var G=d.offsetHeight,W=!0,X=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Q=X-E,te=N.top+N.height;te<X&&(Q=te-E),Q<G&&(W=!1),W?d.style.top=u+"px":d.style.top=u-b+"px"}}},r.prototype.setMenuByType=function(a){!a.type||!a.menu||this.menuTypeMap.set(a.type,a.menu)},r.prototype.__getMenuDom=function(a){var u=[];return a&&a.length>0&&a.forEach(function(l){var o=document.createElement("li");if(l.className?o.className="lf-menu-item "+l.className:o.className="lf-menu-item",l.icon===!0){var d=document.createElement("span");d.className="lf-menu-item-icon",o.appendChild(d)}var h=document.createElement("span");h.className="lf-menu-item-text",l.text&&(h.innerText=l.text),o.appendChild(h),o.onclickCallback=l.callback,u.push(o)}),u},r.prototype.setMenuConfig=function(a){!a||(a.nodeMenu!==void 0&&this.menuTypeMap.set(_p,a.nodeMenu?a.nodeMenu:[]),a.edgeMenu!==void 0&&this.menuTypeMap.set(Op,a.edgeMenu?a.edgeMenu:[]),a.graphMenu!==void 0&&this.menuTypeMap.set(wp,a.graphMenu?a.graphMenu:[]))},r.prototype.addMenuConfig=function(a){if(!!a){if(Array.isArray(a.nodeMenu)){var u=this.menuTypeMap.get(_p);this.menuTypeMap.set(_p,u.concat(a.nodeMenu))}if(Array.isArray(a.edgeMenu)){var u=this.menuTypeMap.get(Op);this.menuTypeMap.set(Op,u.concat(a.edgeMenu))}if(Array.isArray(a.graphMenu)){var u=this.menuTypeMap.get(wp);this.menuTypeMap.set(wp,u.concat(a.graphMenu))}}},r.prototype.changeMenuItem=function(a,u){if(a==="add")this.addMenuConfig(u);else if(a==="reset")this.setMenuConfig(u);else throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'")},r.pluginName="menu",r}();globalThis&&globalThis.__read;globalThis&&globalThis.__values;var tS=globalThis&&globalThis.__extends||function(){var r=function(a,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},r(a,u)};return function(a,u){r(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),wl=globalThis&&globalThis.__assign||function(){return wl=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},wl.apply(this,arguments)},Ap=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},o7={tr:"tl",lb:"tl",tl:"tr",rb:"tr",br:"bl",lt:"bl",bl:"br",rt:"br"};function i7(r){for(var a=r,u=1;u<a.length-1;){var l=Ap(a[u-1],2),o=l[0],d=l[1],h=Ap(a[u],2),b=h[0],g=h[1],E=Ap(a[u+1],2),j=E[0],P=E[1];o===b&&b===j||d===g&&g===P?a.splice(u,1):u++}return a}function a7(r,a,u,l){var o=[r[0],r[1]],d=[r[0],r[1]];switch(u){case"tl":return a==="tr"?(o[1]+=l,d[0]+=l):a==="lb"&&(o[0]+=l,d[1]+=l),[o,d];case"tr":return a==="tl"?(o[1]+=l,d[0]-=l):a==="rb"&&(o[0]-=l,d[1]+=l),[o,d];case"bl":return a==="br"?(o[1]-=l,d[0]+=l):a==="lt"&&(o[0]+=l,d[1]-=l),[o,d];case"br":return a==="bl"?(o[1]-=l,d[0]-=l):a==="rt"&&(o[0]-=l,d[1]-=l),[o,d];default:return[]}}function u7(r,a,u,l){var o,d="",h="";r[0]===a[0]?d=r[1]>a[1]?"t":"b":r[1]===a[1]&&(d=r[0]>a[0]?"l":"r"),a[0]===u[0]?h=a[1]>u[1]?"t":"b":a[1]===u[1]&&(h=a[0]>u[0]?"l":"r");var b=Math.min(Math.hypot(a[0]-r[0],a[1]-r[1])/2,Math.hypot(u[0]-a[0],u[1]-a[1])/2,l)||1/5*l,g=""+d+h,E=o7[g]||"-",j="L "+r[0]+" "+r[1];if(E==="-")j+="L "+a[0]+" "+a[1]+" L "+u[0]+" "+u[1];else{var P=Ap(a7(a,g,E,b),2),k=P[0],M=P[1];k&&M&&(j+="L "+k[0]+" "+k[1]+" Q "+a[0]+" "+a[1]+" "+M[0]+" "+M[1],o=Ap(M,2),a[0]=o[0],a[1]=o[1])}return j}function c7(r,a){var u=0,l="";if(r.length===2)l+="M"+r[u][0]+" "+r[u++][1]+" L "+r[u][0]+" "+r[u][1];else{for(l+="M"+r[u][0]+" "+r[u++][1];u+1<r.length;){var o=r[u-1],d=r[u],h=r[u+++1];l+=u7(o,d,h,a)}l+="L "+r[u][0]+" "+r[u][1]}return l}(function(r){tS(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a.prototype.getEdge=function(){var u=this.props.model,l=u.points,o=u.isAnimation,d=u.arrowConfig,h=u.radius,b=h===void 0?5:h,g=u.getEdgeStyle(),E=u.getEdgeAnimationStyle(),j=i7(l.split(" ").map(function(M){return M.split(",").map(function(R){return+R})})),P=c7(j,b),k=wl(wl(wl({style:o?E:{}},g),d),{fill:"none"});return ot.exports.h("path",wl({d:P},k))},a})(ot.exports.PolylineEdge);(function(r){tS(a,r);function a(){return r!==null&&r.apply(this,arguments)||this}return a})(ot.exports.PolylineEdgeModel);var s7=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var gw=globalThis&&globalThis.__assign||function(){return gw=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},gw.apply(this,arguments)},bw=globalThis&&globalThis.__assign||function(){return bw=Object.assign||function(r){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])}return r},bw.apply(this,arguments)},l7=globalThis&&globalThis.__read||function(r,a){var u=typeof Symbol=="function"&&r[Symbol.iterator];if(!u)return r;var l=u.call(r),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;const f7={class:"control-container"},p7=["title","onMouseenter"],d7=["disabled","onClick"],h7=Bp({__name:"Control",props:{lf:{type:Object,required:!0,default:null},catTurboData:{type:Boolean,required:!1}},emits:["catData"],setup(r,{emit:a}){const u=r,l=a,o=V1("controlButton3",null),d=V1("controlButton4",null);let h=Du(-1),b=Du([{icon:"icon-zoom-out-hs",text:"\u7F29\u5C0F",size:"18",disabled:!1},{icon:"icon-enlarge-hs",text:"\u653E\u5927",size:"18",disabled:!1},{icon:"icon-full-screen-hs",text:"\u9002\u5E94",size:"15",disabled:!1},{icon:"icon-previous-hs",text:"\u4E0A\u4E00\u6B65",size:"15",disabled:!0},{icon:"icon-next-step-hs",text:"\u4E0B\u4E00\u6B65",size:"17",disabled:!0},{icon:"icon-download-hs",text:"\u4E0B\u8F7D\u56FE\u7247",size:"17",disabled:!1},{icon:"icon-watch-hs",text:"\u67E5\u770B\u6570\u636E",size:"17",disabled:!1}]);const g=(j,P)=>{["zoom","zoom","resetZoom","undo","redo","getSnapshot"].forEach((k,M)=>{let R=u.lf;P===1&&R.zoom(!0),P===6&&l("catData"),P===M&&R[k]()})},E=j=>{h.value=j};return Uw(()=>{u.lf.on("history:change",({data:{undoAble:j,redoAble:P}})=>{hr(b)[3].disabled=hr(o).disabled=!j,hr(b)[4].disabled=hr(d).disabled=!P})}),(j,P)=>{const k=xp("el-tooltip");return pa(),Hc("div",f7,[ku(" \u529F\u80FD\u6309\u94AE "),da("ul",null,[(pa(!0),Hc(tm,null,Gw(hr(b),(M,R)=>(pa(),Hc("li",{key:R,title:M.text,class:"dark:color-bg_color",onMouseenter:K1(N=>E(R),["prevent"]),onMouseleave:P[0]||(P[0]=K1(N=>Hw(h)?h.value=-1:h=-1,["prevent"]))},[Wc(k,{content:M.text,visible:hr(h)===R,placement:"right"},{default:ml(()=>[da("button",{ref_for:!0,ref:"controlButton"+R,disabled:M.disabled,style:q1({cursor:M.disabled===!1?"pointer":"not-allowed",color:M.disabled===!1?"":"#00000040"}),onClick:N=>g(M,R)},[da("span",{class:Xw("iconfont "+M.icon),style:q1({fontSize:`${M.size}px`})},null,6)],12,d7)]),_:2},1032,["content","visible"])],40,p7))),128))])])}}});var y7=My(h7,[["__scopeId","data-v-518de540"],["__file","D:/work/sjtj/report-v3/src/components/ReFlowChart/src/Control.vue"]]);const v7={class:"node-panel"},g7=["onMousedown"],b7={key:0,class:"shape"},m7={class:"node-label"},_7=Bp({__name:"NodePanel",props:{lf:{type:Object,required:!0,default:null},nodeList:{type:Array,required:!0,default:null}},setup(r){const a=r;let u=Du({a:"efrwe",b:"wewe"});const l=o=>{a.lf.dnd.startDrag({type:o.type,properties:hr(u)})};return(o,d)=>(pa(),Hc(tm,null,[ku(" \u5DE6\u4FA7bpmn\u5143\u7D20\u9009\u62E9\u5668 "),da("div",v7,[(pa(!0),Hc(tm,null,Gw(a.nodeList,h=>(pa(),Hc("div",{class:"node-item dark:color-bg_color",key:h.text,onMousedown:b=>l(h)},[da("div",{class:Xw(["node-item-icon",h.class])},[h.type==="user"||h.type==="time"?(pa(),Hc("div",b7)):ku("v-if",!0)],2),da("span",m7,Z2(h.text),1)],40,g7))),128))])],2112))}});var O7=My(_7,[["__scopeId","data-v-7322cbe5"],["__file","D:/work/sjtj/report-v3/src/components/ReFlowChart/src/NodePanel.vue"]]),Ey={d:(r,a)=>{for(var u in a)Ey.o(a,u)&&!Ey.o(r,u)&&Object.defineProperty(r,u,{enumerable:!0,get:a[u]})},o:(r,a)=>Object.prototype.hasOwnProperty.call(r,a)},nS={};function _m(r,a){(a==null||a>r.length)&&(a=r.length);for(var u=0,l=new Array(a);u<a;u++)l[u]=r[u];return l}function rS(r,a){if(r){if(typeof r=="string")return _m(r,a);var u=Object.prototype.toString.call(r).slice(8,-1);return u==="Object"&&r.constructor&&(u=r.constructor.name),u==="Map"||u==="Set"?Array.from(r):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?_m(r,a):void 0}}function Sy(r){return function(a){if(Array.isArray(a))return _m(a)}(r)||function(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(r)||rS(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  138. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function jy(r,a,u){return a in r?Object.defineProperty(r,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[a]=u,r}Ey.d(nS,{Z:()=>j7});const Nt=(mw={computed:()=>J2,createTextVNode:()=>nm,createVNode:()=>Wc,defineComponent:()=>Bp,reactive:()=>Q2,ref:()=>Du,watch:()=>eT,watchEffect:()=>tT},Qb={},Ey.d(Qb,mw),Qb),w7=(0,Nt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var r=this.data,a=this.onClick;return(0,Nt.createVNode)("span",{class:"vjs-tree-brackets",onClick:a},[r])}}),x7=(0,Nt.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(r,a){var u=a.emit;return{uiType:(0,Nt.computed)(function(){return r.isMultiple?"checkbox":"radio"}),model:(0,Nt.computed)({get:function(){return r.checked},set:function(l){return u("update:modelValue",l)}})}},render:function(){var r=this.uiType,a=this.model,u=this.$emit;return(0,Nt.createVNode)("label",{class:["vjs-check-controller",a?"is-checked":""],onClick:function(l){return l.stopPropagation()}},[(0,Nt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(r)},null),(0,Nt.createVNode)("input",{checked:a,class:"vjs-check-controller-original is-".concat(r),type:r,onChange:function(){return u("change",a)}},null)])}}),E7=(0,Nt.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var r=this.nodeType,a=this.onClick,u=r==="objectStart"||r==="arrayStart";return u||r==="objectCollapsed"||r==="arrayCollapsed"?(0,Nt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(u?"open":"close"),onClick:a},[(0,Nt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Nt.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var mw,Qb;function Om(r){return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Om(r)}function oS(r){return Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}function $c(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3?arguments[3]:void 0,o=l||{},d=o.key,h=o.index,b=o.type,g=b===void 0?"content":b,E=o.showComma,j=E!==void 0&&E,P=o.length,k=P===void 0?1:P,M=oS(r);if(M==="array"){var R=_w(r.map(function(G,W,X){return $c(G,"".concat(a,"[").concat(W,"]"),u+1,{index:W,showComma:W!==X.length-1,length:k,type:g})}));return[$c("[",a,u,{showComma:!1,key:d,length:r.length,type:"arrayStart"})[0]].concat(R,$c("]",a,u,{showComma:j,length:r.length,type:"arrayEnd"})[0])}if(M==="object"){var N=Object.keys(r),L=_w(N.map(function(G,W,X){return $c(r[G],/^[a-zA-Z_]\w*$/.test(G)?"".concat(a,".").concat(G):"".concat(a,'["').concat(G,'"]'),u+1,{key:G,showComma:W!==X.length-1,length:k,type:g})}));return[$c("{",a,u,{showComma:!1,key:d,index:h,length:N.length,type:"objectStart"})[0]].concat(L,$c("}",a,u,{showComma:j,length:N.length,type:"objectEnd"})[0])}return[{content:r,level:u,key:d,index:h,path:a,showComma:j,length:k,type:g}]}function _w(r){if(typeof Array.prototype.flat=="function")return r.flat();for(var a=Sy(r),u=[];a.length;){var l=a.shift();Array.isArray(l)?a.unshift.apply(a,Sy(l)):u.push(l)}return u}function wm(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(r==null)return r;if(r instanceof Date)return new Date(r);if(r instanceof RegExp)return new RegExp(r);if(Om(r)!=="object")return r;if(a.get(r))return a.get(r);if(Array.isArray(r)){var u=r.map(function(d){return wm(d,a)});return a.set(r,u),u}var l={};for(var o in r)l[o]=wm(r[o],a);return a.set(r,l),l}function Ow(r,a){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);a&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),u.push.apply(u,l)}return u}function ww(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{};a%2?Ow(Object(u),!0).forEach(function(l){jy(r,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):Ow(Object(u)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(u,l))})}return r}var iS={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const S7=(0,Nt.defineComponent)({name:"TreeNode",props:ww(ww({},iS),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(r,a){var u=a.emit,l=(0,Nt.computed)(function(){return oS(r.node.content)}),o=(0,Nt.computed)(function(){return"vjs-value vjs-value-".concat(l.value)}),d=(0,Nt.computed)(function(){return r.showDoubleQuotes?'"'.concat(r.node.key,'"'):r.node.key}),h=(0,Nt.computed)(function(){return r.selectableType==="multiple"}),b=(0,Nt.computed)(function(){return r.selectableType==="single"}),g=(0,Nt.computed)(function(){return r.nodeSelectable(r.node)&&(h.value||b.value)}),E=(0,Nt.reactive)({editing:!1}),j=function(W){var X,Q,te=(Q=(X=W.target)===null||X===void 0?void 0:X.value)==="null"?null:Q==="undefined"?void 0:Q==="true"||Q!=="false"&&(Q[0]+Q[Q.length-1]==='""'||Q[0]+Q[Q.length-1]==="''"?Q.slice(1,-1):typeof Number(Q)=="number"&&!isNaN(Number(Q))||Q==="NaN"?Number(Q):Q);u("valueChange",te,r.node.path)},P=(0,Nt.computed)(function(){var W,X=(W=r.node)===null||W===void 0?void 0:W.content;return X===null?X="null":X===void 0&&(X="undefined"),l.value==="string"?'"'.concat(X,'"'):X+""}),k=function(){var W=r.renderNodeValue;return W?W({node:r.node,defaultValue:P.value}):P.value},M=function(){u("bracketsClick",!r.collapsed,r.node)},R=function(){u("iconClick",!r.collapsed,r.node)},N=function(){u("selectedChange",r.node)},L=function(){u("nodeClick",r.node),g.value&&r.selectOnClickNode&&u("selectedChange",r.node)},G=function(W){if(r.editable&&!E.editing){E.editing=!0;var X=function Q(te){var Z;te.target!==W.target&&((Z=te.target)===null||Z===void 0?void 0:Z.parentElement)!==W.target&&(E.editing=!1,document.removeEventListener("click",Q))};document.removeEventListener("click",X),document.addEventListener("click",X)}};return function(){var W,X=r.node;return(0,Nt.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":r.showSelectController,"has-carets":r.showIcon,"is-highlight":r.highlightSelectedNode&&r.checked,dark:r.theme==="dark"},onClick:L,style:r.style},[r.showLineNumber&&(0,Nt.createVNode)("span",{class:"vjs-node-index"},[X.id+1]),r.showSelectController&&g.value&&X.type!=="objectEnd"&&X.type!=="arrayEnd"&&(0,Nt.createVNode)(x7,{isMultiple:h.value,checked:r.checked,onChange:N},null),(0,Nt.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(X.level)).map(function(Q,te){return(0,Nt.createVNode)("div",{key:te,class:{"vjs-indent-unit":!0,"has-line":r.showLine}},null)}),r.showIcon&&(0,Nt.createVNode)(E7,{nodeType:X.type,onClick:R},null)]),X.key&&(0,Nt.createVNode)("span",{class:"vjs-key"},[(W=r.renderNodeKey,W?W({node:r.node,defaultKey:d.value||""}):d.value),(0,Nt.createVNode)("span",{class:"vjs-colon"},[":".concat(r.showKeyValueSpace?" ":"")])]),(0,Nt.createVNode)("span",null,[X.type!=="content"&&X.content?(0,Nt.createVNode)(w7,{data:X.content.toString(),onClick:M},null):(0,Nt.createVNode)("span",{class:o.value,onClick:!r.editable||r.editableTrigger&&r.editableTrigger!=="click"?void 0:G,onDblclick:r.editable&&r.editableTrigger==="dblclick"?G:void 0},[r.editable&&E.editing?(0,Nt.createVNode)("input",{value:P.value,onChange:j,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):k()]),X.showComma&&(0,Nt.createVNode)("span",null,[","]),r.showLength&&r.collapsed&&(0,Nt.createVNode)("span",{class:"vjs-comment"},[(0,Nt.createTextVNode)(" // "),X.length,(0,Nt.createTextVNode)(" items ")])])])}}});function xw(r,a){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);a&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),u.push.apply(u,l)}return u}function Io(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{};a%2?xw(Object(u),!0).forEach(function(l){jy(r,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):xw(Object(u)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(u,l))})}return r}const j7=(0,Nt.defineComponent)({name:"Tree",props:Io(Io({},iS),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(r,a){var u=a.emit,l=a.slots,o=(0,Nt.ref)(),d=(0,Nt.computed)(function(){return $c(r.data,r.rootPath)}),h=function(X,Q){return d.value.reduce(function(te,Z){var J,H=Z.level>=X||Z.length>=Q,B=(J=r.pathCollapsible)===null||J===void 0?void 0:J.call(r,Z);return Z.type!=="objectStart"&&Z.type!=="arrayStart"||!H&&!B?te:Io(Io({},te),{},jy({},Z.path,1))},{})},b=(0,Nt.reactive)({translateY:0,visibleData:null,hiddenPaths:h(r.deep,r.collapsedNodeLength)}),g=(0,Nt.computed)(function(){for(var X=null,Q=[],te=d.value.length,Z=0;Z<te;Z++){var J=Io(Io({},d.value[Z]),{},{id:Z}),H=b.hiddenPaths[J.path];if(X&&X.path===J.path){var B=X.type==="objectStart",V=Io(Io(Io({},J),X),{},{showComma:J.showComma,content:B?"{...}":"[...]",type:B?"objectCollapsed":"arrayCollapsed"});X=null,Q.push(V)}else{if(H&&!X){X=J;continue}if(X)continue;Q.push(J)}}return Q}),E=(0,Nt.computed)(function(){var X=r.selectedValue;return X&&r.selectableType==="multiple"&&Array.isArray(X)?X:[X]}),j=(0,Nt.computed)(function(){return!r.selectableType||r.selectOnClickNode||r.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),P=function(){var X=g.value;if(r.virtual){var Q,te=r.height/r.itemHeight,Z=((Q=o.value)===null||Q===void 0?void 0:Q.scrollTop)||0,J=Math.floor(Z/r.itemHeight),H=J<0?0:J+te>X.length?X.length-te:J;H<0&&(H=0);var B=H+te;b.translateY=H*r.itemHeight,b.visibleData=X.filter(function(V,Y){return Y>=H&&Y<B})}else b.visibleData=X},k=function(){P()},M=function(X){var Q,te,Z=X.path,J=r.selectableType;if(J==="multiple"){var H=E.value.findIndex(function(q){return q===Z}),B=Sy(E.value);H!==-1?B.splice(H,1):B.push(Z),u("update:selectedValue",B),u("selectedChange",B,Sy(E.value))}else if(J==="single"&&E.value[0]!==Z){var V=(Q=E.value,te=1,function(q){if(Array.isArray(q))return q}(Q)||function(q,ue){var xe=q==null?null:typeof Symbol!="undefined"&&q[Symbol.iterator]||q["@@iterator"];if(xe!=null){var be,Ae,Fe=[],je=!0,ve=!1;try{for(xe=xe.call(q);!(je=(be=xe.next()).done)&&(Fe.push(be.value),!ue||Fe.length!==ue);je=!0);}catch(Pe){ve=!0,Ae=Pe}finally{try{je||xe.return==null||xe.return()}finally{if(ve)throw Ae}}return Fe}}(Q,te)||rS(Q,te)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  139. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],Y=Z;u("update:selectedValue",Y),u("selectedChange",Y,V)}},R=function(X){u("nodeClick",X)},N=function(X,Q){if(X)b.hiddenPaths=Io(Io({},b.hiddenPaths),{},jy({},Q,1));else{var te=Io({},b.hiddenPaths);delete te[Q],b.hiddenPaths=te}},L=function(X,Q){r.collapsedOnClickBrackets&&N(X,Q.path),u("bracketsClick",X,Q)},G=function(X,Q){N(X,Q.path),u("iconClick",X,Q)},W=function(X,Q){var te=wm(r.data),Z=r.rootPath;new Function("data","val","data".concat(Q.slice(Z.length),"=val"))(te,X),u("update:data",te)};return(0,Nt.watchEffect)(function(){j.value&&function(X){throw new Error("[VueJSONPretty] ".concat(X))}(j.value)}),(0,Nt.watchEffect)(function(){g.value&&P()}),(0,Nt.watch)(function(){return r.deep},function(X){X&&(b.hiddenPaths=h(X,r.collapsedNodeLength))}),(0,Nt.watch)(function(){return r.collapsedNodeLength},function(X){X&&(b.hiddenPaths=h(r.deep,X))}),function(){var X,Q,te=(X=r.renderNodeKey)!==null&&X!==void 0?X:l.renderNodeKey,Z=(Q=r.renderNodeValue)!==null&&Q!==void 0?Q:l.renderNodeValue,J=b.visibleData&&b.visibleData.map(function(H){return(0,Nt.createVNode)(S7,{key:H.id,node:H,collapsed:!!b.hiddenPaths[H.path],theme:r.theme,showDoubleQuotes:r.showDoubleQuotes,showLength:r.showLength,checked:E.value.includes(H.path),selectableType:r.selectableType,showLine:r.showLine,showLineNumber:r.showLineNumber,showSelectController:r.showSelectController,selectOnClickNode:r.selectOnClickNode,nodeSelectable:r.nodeSelectable,highlightSelectedNode:r.highlightSelectedNode,editable:r.editable,editableTrigger:r.editableTrigger,showIcon:r.showIcon,showKeyValueSpace:r.showKeyValueSpace,renderNodeKey:te,renderNodeValue:Z,onNodeClick:R,onBracketsClick:L,onIconClick:G,onSelectedChange:M,onValueChange:W,style:r.itemHeight&&r.itemHeight!==20?{lineHeight:"".concat(r.itemHeight,"px")}:{}},null)});return(0,Nt.createVNode)("div",{ref:o,class:{"vjs-tree":!0,"is-virtual":r.virtual,dark:r.theme==="dark"},onScroll:r.virtual?k:void 0,style:r.showLineNumber?Io({paddingLeft:"".concat(12*Number(d.value.length.toString().length),"px")},r.style):r.style},[r.virtual?(0,Nt.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(r.height,"px")}},[(0,Nt.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(g.value.length*r.itemHeight,"px")}},[(0,Nt.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(b.translateY,"px)")}},[J])])]):J])}}});var P7=nS.Z;const A7=Bp({__name:"DataDialog",props:{graphData:Object},setup(r){const a=r;return(u,l)=>(pa(),rm(hr(P7),{path:"res",deep:3,showLength:!0,data:a.graphData},null,8,["data"]))}});var T7=My(A7,[["__file","D:/work/sjtj/report-v3/src/components/ReFlowChart/src/DataDialog.vue"]]);const M7=Am(y7),k7=Am(O7),D7=Am(T7),N7={SEQUENCE_FLOW:1,START_EVENT:2,END_EVENT:3,USER_TASK:4,SERVICE_TASK:5,EXCLUSIVE_GATEWAY:6};function C7(r){const{incoming:a,outgoing:u,properties:l,key:o}=r,{text:d,startPoint:h,endPoint:b,pointsList:g,logicFlowType:E}=l,j={id:o,type:E,sourceNodeId:a[0],targetNodeId:u[0],text:d,startPoint:h,endPoint:b,pointsList:g,properties:{}},P=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(r.properties).forEach(k=>{P.indexOf(k)===-1&&(j.properties[k]=r.properties[k])}),j}function R7(r){const{properties:a,key:u}=r,{x:l,y:o,text:d,logicFlowType:h}=a,b={id:u,type:h,x:l,y:o,text:d,properties:{}},g=["x","y","text","logicFlowType"];return Object.keys(r.properties).forEach(E=>{g.indexOf(E)===-1&&(b.properties[E]=r.properties[E])}),b}function I7(r){const a={nodes:[],edges:[]},u=r.flowElementList;return u&&u.length>0&&u.forEach(l=>{if(l.type===N7.SEQUENCE_FLOW){const o=C7(l);a.edges.push(o)}else{const o=R7(l);a.nodes.push(o)}}),a}const L7={class:"card-header"},B7={class:"font-medium"},z7={class:"logic-flow-view"},F7={name:"FlowChart"},$7=Bp({...F7,setup(r){let a=Du(null),u=Du(null),l=Du(!1),o=Du({grid:!0,background:{color:"#f7f9ff"},keyboard:{enabled:!0}}),d=k8;function h(){ry.use(J5),ry.use(Q8),ry.use(r7);const E=new ry({...hr(o),container:document.querySelector("#LF-Turbo")});a.value=E,hr(a).setDefaultEdgeType("bpmn:sequenceFlow"),b()}function b(){const E=I7(M8);a.value.render(E)}function g(){u.value=hr(a).getGraphData(),l.value=!0}return Uw(()=>{h()}),(E,j)=>{const P=xp("el-link"),k=xp("el-scrollbar"),M=xp("el-dialog"),R=xp("el-card");return pa(),rm(R,null,{header:ml(()=>[da("div",L7,[da("span",B7,[j[2]||(j[2]=nm(" \u6D41\u7A0B\u56FE\u7EC4\u4EF6\uFF0C\u91C7\u7528\u5F00\u6E90\u7684 ")),Wc(P,{href:"http://logic-flow.org/",target:"_blank",icon:hr(nT)("set-up"),style:{"font-size":"16px",margin:"0 4px 5px"}},{default:ml(()=>j[1]||(j[1]=[nm(" LogicFlow ")])),_:1},8,["icon"])])])]),default:ml(()=>[da("div",z7,[ku(" \u8F85\u52A9\u5DE5\u5177\u680F "),hr(a)?(pa(),rm(hr(M7),{key:0,class:"demo-control",lf:hr(a),catTurboData:!1,onCatData:g},null,8,["lf"])):ku("v-if",!0),ku(" \u8282\u70B9\u9762\u677F "),Wc(hr(k7),{lf:hr(a),nodeList:hr(d)},null,8,["lf","nodeList"]),ku(" \u753B\u5E03 "),j[3]||(j[3]=da("div",{id:"LF-Turbo"},null,-1)),ku(" \u6570\u636E\u67E5\u770B\u9762\u677F "),Wc(M,{customClass:"flow-dialog",title:"\u6570\u636E",modelValue:hr(l),"onUpdate:modelValue":j[0]||(j[0]=N=>Hw(l)?l.value=N:l=N),width:"50%","close-on-click-modal":!1},{default:ml(()=>[Wc(k,null,{default:ml(()=>[Wc(hr(D7),{graphData:hr(u)},null,8,["graphData"])]),_:1})]),_:1},8,["modelValue"])])]),_:1})}}});var G7=My($7,[["__scopeId","data-v-77d65f48"],["__file","D:/work/sjtj/report-v3/src/views/flow-chart/index.vue"]]);export{G7 as default};