2023-10-07 15:33:43 +08:00

144 lines
756 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{b8 as $a,b9 as Ni,ba as Qt,bb as _1,bc as fi,bd as wp,be as Wa,bf as $c,bg as XO,bh as ui,bi as pi,bj as Mn,bk as AA,bl as Ci,bm as Qb,bn as TA,bo as xp,bp as ci,bq as Ep,br as YO,bs as Iu,bt as Sp,bu as xo,bv as VO,bw as Ga,bx as KO,by as Lu,bz as Bu,bA as fy,bB as cn,bC as jp,bD as bl,bE as kn,bF as za,bG as wo,bH as Wc,bI as Pp,bJ as di,bK as fr,bL as Kt,bM as Gc,bN as MA,bO as ml,bP as qO,bQ as ua,bR as ZO,bS as JO,bT as Cb,bU as xr,bV as kA,bW as DA,bX as Ap,bY as QO,bZ as Uc,b_ as ew,b$ as Ua,c0 as tw,c1 as em,c2 as NA,c3 as _l,c4 as RA,c5 as Ru,c6 as Tp,c7 as nw,c8 as py,c9 as dy,ca as gl,cb as tm,cc as nm,cd as rw,ce as ow,cf as CA,cg as iw,ch as aw,ci as IA,cj as uw,ck as LA,cl as BA,cm as zA,cn as FA,co as Kh,cp as $A,cq as cw,cr as WA,cs as GA,ct as sw,cu as lw,cv as rm,cw as fw,cx as UA,cy as HA,cz as XA,cA as YA,cB as Fc,cC as VA,cD as KA,cE as qA,cF as ZA,cG as JA,cH as QA,cI as e2,cJ as t2,cK as n2,cL as r2,cM as o2,cN as i2,cO as a2,cP as u2,cQ as c2,cR as s2,cS as l2,cT as f2,cU as p2,cV as d2,cW as h2,cX as y2,cY as v2,cZ as g2,c_ as b2,U as m2,d as hy,r as Ba,a as pw,u as co,c as yp,n as zc,h as Fa,F as dw,y as hw,g as aa,an as O1,j as sl,w as ll,I as w1,at as yw,_ as om,k as vw,t as _2,f as Ib,W as im,i as x1,p as O2,m as w2}from"./index.js";import{u as x2}from"./hooks.js";import{V as E2}from"./styles.js";import{d as S2}from"./set-up.js";import"./vue.runtime.esm-bundler.js";var j2=0/0;function E1(i){return typeof i=="number"?i:$a(i)?j2:+i}function yy(i,u){return function(a,l){var o;if(a===void 0&&l===void 0)return u;if(a!==void 0&&(o=a),l!==void 0){if(o===void 0)return l;typeof a=="string"||typeof l=="string"?(a=Ni(a),l=Ni(l)):(a=E1(a),l=E1(l)),o=i(a,l)}return o}}var P2=yy(function(i,u){return i+u},0);const A2=P2;var T2="Expected a function";function M2(i,u){if(typeof u!="function")throw new TypeError(T2);return i=Qt(i),function(){if(--i<1)return u.apply(this,arguments)}}var k2=_1&&new _1;const qh=k2;var D2=qh?function(i,u){return qh.set(i,u),i}:fi;const gw=D2;function _p(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var a=wp(i.prototype),l=i.apply(a,u);return Wa(l)?l:a}}var N2=1;function R2(i,u,a){var l=u&N2,o=_p(i);function d(){var h=this&&this!==$c&&this instanceof d?o:i;return h.apply(l?a:this,arguments)}return d}var C2=Math.max;function bw(i,u,a,l){for(var o=-1,d=i.length,h=a.length,m=-1,g=u.length,E=C2(d-h,0),P=Array(g+E),j=!l;++m<g;)P[m]=u[m];for(;++o<h;)(j||o<d)&&(P[a[o]]=i[o]);for(;E--;)P[m++]=i[o++];return P}var I2=Math.max;function mw(i,u,a,l){for(var o=-1,d=i.length,h=-1,m=a.length,g=-1,E=u.length,P=I2(d-m,0),j=Array(P+E),k=!l;++o<P;)j[o]=i[o];for(var M=o;++g<E;)j[M+g]=u[g];for(;++h<m;)(k||o<d)&&(j[M+a[h]]=i[o++]);return j}function L2(i,u){for(var a=i.length,l=0;a--;)i[a]===u&&++l;return l}function vy(){}var B2=4294967295;function ln(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B2,this.__views__=[]}ln.prototype=wp(vy.prototype);ln.prototype.constructor=ln;var z2=qh?function(i){return qh.get(i)}:XO;const am=z2;var F2={};const hl=F2;var $2=Object.prototype,W2=$2.hasOwnProperty;function Uh(i){for(var u=i.name+"",a=hl[u],l=W2.call(hl,u)?a.length:0;l--;){var o=a[l],d=o.func;if(d==null||d==i)return o.name}return u}function si(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=void 0}si.prototype=wp(vy.prototype);si.prototype.constructor=si;function _w(i){if(i instanceof ln)return i.clone();var u=new si(i.__wrapped__,i.__chain__);return u.__actions__=ui(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}var G2=Object.prototype,U2=G2.hasOwnProperty;function $(i){if(pi(i)&&!Mn(i)&&!(i instanceof ln)){if(i instanceof si)return i;if(U2.call(i,"__wrapped__"))return _w(i)}return new si(i)}$.prototype=vy.prototype;$.prototype.constructor=$;function Lb(i){var u=Uh(i),a=$[u];if(typeof a!="function"||!(u in ln.prototype))return!1;if(i===a)return!0;var l=am(a);return!!l&&i===l[0]}var H2=AA(gw);const Ow=H2;var X2=/\{\n\/\* \[wrapped with (.+)\] \*/,Y2=/,? & /;function V2(i){var u=i.match(X2);return u?u[1].split(Y2):[]}var K2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function q2(i,u){var a=u.length;if(!a)return i;var l=a-1;return u[l]=(a>1?"& ":"")+u[l],u=u.join(a>2?", ":" "),i.replace(K2,`{
/* [wrapped with `+u+`] */
`)}var Z2=1,J2=2,Q2=8,eT=16,tT=32,nT=64,rT=128,oT=256,iT=512,aT=[["ary",rT],["bind",Z2],["bindKey",J2],["curry",Q2],["curryRight",eT],["flip",iT],["partial",tT],["partialRight",nT],["rearg",oT]];function uT(i,u){return Ci(aT,function(a){var l="_."+a[0];u&a[1]&&!Qb(i,l)&&i.push(l)}),i.sort()}function ww(i,u,a){var l=u+"";return TA(i,q2(l,uT(V2(l),a)))}var cT=1,sT=2,lT=4,fT=8,S1=32,j1=64;function xw(i,u,a,l,o,d,h,m,g,E){var P=u&fT,j=P?h:void 0,k=P?void 0:h,M=P?d:void 0,R=P?void 0:d;u|=P?S1:j1,u&=~(P?j1:S1),u&lT||(u&=~(cT|sT));var N=[i,u,o,M,j,R,k,m,g,E],I=a.apply(void 0,N);return Lb(i)&&Ow(I,N),I.placeholder=l,ww(I,i,u)}function Ol(i){var u=i;return u.placeholder}var pT=Math.min;function dT(i,u){for(var a=i.length,l=pT(u.length,a),o=ui(i);l--;){var d=u[l];i[l]=xp(d,a)?o[d]:void 0}return i}var P1="__lodash_placeholder__";function Cu(i,u){for(var a=-1,l=i.length,o=0,d=[];++a<l;){var h=i[a];(h===u||h===P1)&&(i[a]=P1,d[o++]=a)}return d}var hT=1,yT=2,vT=8,gT=16,bT=128,mT=512;function gy(i,u,a,l,o,d,h,m,g,E){var P=u&bT,j=u&hT,k=u&yT,M=u&(vT|gT),R=u&mT,N=k?void 0:_p(i);function I(){for(var W=arguments.length,U=Array(W),ne=W;ne--;)U[ne]=arguments[ne];if(M)var ue=Ol(I),re=L2(U,ue);if(l&&(U=bw(U,l,o,M)),d&&(U=mw(U,d,h,M)),W-=re,M&&W<E){var Q=Cu(U,ue);return xw(i,u,gy,I.placeholder,a,U,Q,m,g,E-W)}var ee=j?a:this,H=k?ee[i]:i;return W=U.length,m?U=dT(U,m):R&&W>1&&U.reverse(),P&&g<W&&(U.length=g),this&&this!==$c&&this instanceof I&&(H=N||_p(H)),H.apply(ee,U)}return I}function _T(i,u,a){var l=_p(i);function o(){for(var d=arguments.length,h=Array(d),m=d,g=Ol(o);m--;)h[m]=arguments[m];var E=d<3&&h[0]!==g&&h[d-1]!==g?[]:Cu(h,g);if(d-=E.length,d<a)return xw(i,u,gy,o.placeholder,void 0,h,E,void 0,void 0,a-d);var P=this&&this!==$c&&this instanceof o?l:i;return ci(P,this,h)}return o}var OT=1;function wT(i,u,a,l){var o=u&OT,d=_p(i);function h(){for(var m=-1,g=arguments.length,E=-1,P=l.length,j=Array(P+g),k=this&&this!==$c&&this instanceof h?d:i;++E<P;)j[E]=l[E];for(;g--;)j[E++]=arguments[++m];return ci(k,o?a:this,j)}return h}var A1="__lodash_placeholder__",Ab=1,xT=2,ET=4,T1=8,fp=128,M1=256,ST=Math.min;function jT(i,u){var a=i[1],l=u[1],o=a|l,d=o<(Ab|xT|fp),h=l==fp&&a==T1||l==fp&&a==M1&&i[7].length<=u[8]||l==(fp|M1)&&u[7].length<=u[8]&&a==T1;if(!(d||h))return i;l&Ab&&(i[2]=u[2],o|=a&Ab?0:ET);var m=u[3];if(m){var g=i[3];i[3]=g?bw(g,m,u[4]):m,i[4]=g?Cu(i[3],A1):u[4]}return m=u[5],m&&(g=i[5],i[5]=g?mw(g,m,u[6]):m,i[6]=g?Cu(i[5],A1):u[6]),m=u[7],m&&(i[7]=m),l&fp&&(i[8]=i[8]==null?u[8]:ST(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=o,i}var PT="Expected a function",k1=1,AT=2,Tb=8,Mb=16,kb=32,D1=64,N1=Math.max;function Ha(i,u,a,l,o,d,h,m){var g=u&AT;if(!g&&typeof i!="function")throw new TypeError(PT);var E=l?l.length:0;if(E||(u&=~(kb|D1),l=o=void 0),h=h===void 0?h:N1(Qt(h),0),m=m===void 0?m:Qt(m),E-=o?o.length:0,u&D1){var P=l,j=o;l=o=void 0}var k=g?void 0:am(i),M=[i,u,a,l,o,P,j,d,h,m];if(k&&jT(M,k),i=M[0],u=M[1],a=M[2],l=M[3],o=M[4],m=M[9]=M[9]===void 0?g?0:i.length:N1(M[9]-E,0),!m&&u&(Tb|Mb)&&(u&=~(Tb|Mb)),!u||u==k1)var R=R2(i,u,a);else u==Tb||u==Mb?R=_T(i,u,m):(u==kb||u==(k1|kb))&&!o.length?R=wT(i,u,a,l):R=gy.apply(void 0,M);var N=k?gw:Ow;return ww(N(R,M),i,u)}var TT=128;function Ew(i,u,a){return u=a?void 0:u,u=i&&u==null?i.length:u,Ha(i,TT,void 0,void 0,void 0,void 0,u)}var MT=Object.prototype,kT=MT.hasOwnProperty,DT=Ep(function(i,u){if(YO(u)||Iu(u)){Sp(u,xo(u),i);return}for(var a in u)kT.call(u,a)&&VO(i,a,u[a])});const NT=DT;var RT=Ep(function(i,u){Sp(u,Ga(u),i)});const R1=RT;var CT=Ep(function(i,u,a,l){Sp(u,Ga(u),i,l)});const Zh=CT;var IT=Ep(function(i,u,a,l){Sp(u,xo(u),i,l)});const LT=IT;function um(i,u){for(var a=-1,l=u.length,o=Array(l),d=i==null;++a<l;)o[a]=d?void 0:KO(i,u[a]);return o}var BT=Lu(um);const zT=BT;var FT="[object DOMException]",$T="[object Error]";function cm(i){if(!pi(i))return!1;var u=Bu(i);return u==$T||u==FT||typeof i.message=="string"&&typeof i.name=="string"&&!fy(i)}var WT=cn(function(i,u){try{return ci(i,void 0,u)}catch(a){return cm(a)?a:new Error(a)}});const Sw=WT;var GT="Expected a function";function jw(i,u){var a;if(typeof u!="function")throw new TypeError(GT);return i=Qt(i),function(){return--i>0&&(a=u.apply(this,arguments)),i<=1&&(u=void 0),a}}var UT=1,HT=32,sm=cn(function(i,u,a){var l=UT;if(a.length){var o=Cu(a,Ol(sm));l|=HT}return Ha(i,l,u,a,o)});sm.placeholder={};const Pw=sm;var XT=Lu(function(i,u){return Ci(u,function(a){a=jp(a),bl(i,a,Pw(i[a],i))}),i});const YT=XT;var VT=1,KT=2,qT=32,lm=cn(function(i,u,a){var l=VT|KT;if(a.length){var o=Cu(a,Ol(lm));l|=qT}return Ha(u,l,i,a,o)});lm.placeholder={};const ZT=lm;function li(i,u,a){var l=-1,o=i.length;u<0&&(u=-u>o?0:o+u),a=a>o?o:a,a<0&&(a+=o),o=u>a?0:a-u>>>0,u>>>=0;for(var d=Array(o);++l<o;)d[l]=i[l+u];return d}function zu(i,u,a){var l=i.length;return a=a===void 0?l:a,!u&&a>=l?i:li(i,u,a)}var JT="\\ud800-\\udfff",QT="\\u0300-\\u036f",eM="\\ufe20-\\ufe2f",tM="\\u20d0-\\u20ff",nM=QT+eM+tM,rM="\\ufe0e\\ufe0f",oM="\\u200d",iM=RegExp("["+oM+JT+nM+rM+"]");function wl(i){return iM.test(i)}function aM(i){return i.split("")}var Aw="\\ud800-\\udfff",uM="\\u0300-\\u036f",cM="\\ufe20-\\ufe2f",sM="\\u20d0-\\u20ff",lM=uM+cM+sM,fM="\\ufe0e\\ufe0f",pM="["+Aw+"]",Bb="["+lM+"]",zb="\\ud83c[\\udffb-\\udfff]",dM="(?:"+Bb+"|"+zb+")",Tw="[^"+Aw+"]",Mw="(?:\\ud83c[\\udde6-\\uddff]){2}",kw="[\\ud800-\\udbff][\\udc00-\\udfff]",hM="\\u200d",Dw=dM+"?",Nw="["+fM+"]?",yM="(?:"+hM+"(?:"+[Tw,Mw,kw].join("|")+")"+Nw+Dw+")*",vM=Nw+Dw+yM,gM="(?:"+[Tw+Bb+"?",Bb,Mw,kw,pM].join("|")+")",bM=RegExp(zb+"(?="+zb+")|"+gM+vM,"g");function mM(i){return i.match(bM)||[]}function Ri(i){return wl(i)?mM(i):aM(i)}function Rw(i){return function(u){u=kn(u);var a=wl(u)?Ri(u):void 0,l=a?a[0]:u.charAt(0),o=a?zu(a,1).join(""):u.slice(1);return l[i]()+o}}var _M=Rw("toUpperCase");const fm=_M;function Cw(i){return fm(kn(i).toLowerCase())}function pm(i,u,a,l){var o=-1,d=i==null?0:i.length;for(l&&d&&(a=i[++o]);++o<d;)a=u(a,i[o],o,i);return a}function dm(i){return function(u){return i==null?void 0:i[u]}}var OM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},wM=dm(OM);const xM=wM;var EM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,SM="\\u0300-\\u036f",jM="\\ufe20-\\ufe2f",PM="\\u20d0-\\u20ff",AM=SM+jM+PM,TM="["+AM+"]",MM=RegExp(TM,"g");function Iw(i){return i=kn(i),i&&i.replace(EM,xM).replace(MM,"")}var kM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function DM(i){return i.match(kM)||[]}var NM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function RM(i){return NM.test(i)}var Lw="\\ud800-\\udfff",CM="\\u0300-\\u036f",IM="\\ufe20-\\ufe2f",LM="\\u20d0-\\u20ff",BM=CM+IM+LM,Bw="\\u2700-\\u27bf",zw="a-z\\xdf-\\xf6\\xf8-\\xff",zM="\\xac\\xb1\\xd7\\xf7",FM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$M="\\u2000-\\u206f",WM=" \\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",Fw="A-Z\\xc0-\\xd6\\xd8-\\xde",GM="\\ufe0e\\ufe0f",$w=zM+FM+$M+WM,Ww="[']",C1="["+$w+"]",UM="["+BM+"]",Gw="\\d+",HM="["+Bw+"]",Uw="["+zw+"]",Hw="[^"+Lw+$w+Gw+Bw+zw+Fw+"]",XM="\\ud83c[\\udffb-\\udfff]",YM="(?:"+UM+"|"+XM+")",VM="[^"+Lw+"]",Xw="(?:\\ud83c[\\udde6-\\uddff]){2}",Yw="[\\ud800-\\udbff][\\udc00-\\udfff]",fl="["+Fw+"]",KM="\\u200d",I1="(?:"+Uw+"|"+Hw+")",qM="(?:"+fl+"|"+Hw+")",L1="(?:"+Ww+"(?:d|ll|m|re|s|t|ve))?",B1="(?:"+Ww+"(?:D|LL|M|RE|S|T|VE))?",Vw=YM+"?",Kw="["+GM+"]?",ZM="(?:"+KM+"(?:"+[VM,Xw,Yw].join("|")+")"+Kw+Vw+")*",JM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",QM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ek=Kw+Vw+ZM,tk="(?:"+[HM,Xw,Yw].join("|")+")"+ek,nk=RegExp([fl+"?"+Uw+"+"+L1+"(?="+[C1,fl,"$"].join("|")+")",qM+"+"+B1+"(?="+[C1,fl+I1,"$"].join("|")+")",fl+"?"+I1+"+"+L1,fl+"+"+B1,QM,JM,Gw,tk].join("|"),"g");function rk(i){return i.match(nk)||[]}function qw(i,u,a){return i=kn(i),u=a?void 0:u,u===void 0?RM(i)?rk(i):DM(i):i.match(u)||[]}var ok="[']",ik=RegExp(ok,"g");function xl(i){return function(u){return pm(qw(Iw(u).replace(ik,"")),i,"")}}var ak=xl(function(i,u,a){return u=u.toLowerCase(),i+(a?Cw(u):u)});const uk=ak;var ck=$c.isFinite,sk=Math.min;function hm(i){var u=Math[i];return function(a,l){if(a=za(a),l=l==null?0:sk(Qt(l),292),l&&ck(a)){var o=(kn(a)+"e").split("e"),d=u(o[0]+"e"+(+o[1]+l));return o=(kn(d)+"e").split("e"),+(o[0]+"e"+(+o[1]-l))}return u(a)}}var lk=hm("ceil");const fk=lk;function Zw(i){var u=$(i);return u.__chain__=!0,u}var pk=Math.ceil,dk=Math.max;function hk(i,u,a){(a?wo(i,u,a):u===void 0)?u=1:u=dk(Qt(u),0);var l=i==null?0:i.length;if(!l||u<1)return[];for(var o=0,d=0,h=Array(pk(l/u));o<l;)h[d++]=li(i,o,o+=u);return h}function Hc(i,u,a){return i===i&&(a!==void 0&&(i=i<=a?i:a),u!==void 0&&(i=i>=u?i:u)),i}function yk(i,u,a){return a===void 0&&(a=u,u=void 0),a!==void 0&&(a=za(a),a=a===a?a:0),u!==void 0&&(u=za(u),u=u===u?u:0),Hc(za(i),u,a)}var vk=1,gk=4;function bk(i,u){return u=typeof u=="function"?u:void 0,Wc(i,vk|gk,u)}var mk=4;function _k(i,u){return u=typeof u=="function"?u:void 0,Wc(i,mk,u)}function Ok(){return new si(this.value(),this.__chain__)}function wk(i){for(var u=-1,a=i==null?0:i.length,l=0,o=[];++u<a;){var d=i[u];d&&(o[l++]=d)}return o}function xk(){var i=arguments.length;if(!i)return[];for(var u=Array(i-1),a=arguments[0],l=i;l--;)u[l-1]=arguments[l];return Pp(Mn(a)?ui(a):[a],di(u,1))}var Ek="Expected a function";function Sk(i){var u=i==null?0:i.length,a=Kt;return i=u?fr(i,function(l){if(typeof l[1]!="function")throw new TypeError(Ek);return[a(l[0]),l[1]]}):[],cn(function(l){for(var o=-1;++o<u;){var d=i[o];if(ci(d[0],this,l))return ci(d[1],this,l)}})}function Jw(i,u,a){var l=a.length;if(i==null)return!l;for(i=Object(i);l--;){var o=a[l],d=u[o],h=i[o];if(h===void 0&&!(o in i)||!d(h))return!1}return!0}function jk(i){var u=xo(i);return function(a){return Jw(a,i,u)}}var Pk=1;function Ak(i){return jk(Wc(i,Pk))}function Tk(i,u){return u==null||Jw(i,u,xo(u))}function Mk(i,u,a,l){for(var o=-1,d=i==null?0:i.length;++o<d;){var h=i[o];u(l,h,a(h),i)}return l}function kk(i,u,a,l){return Gc(i,function(o,d,h){u(l,o,a(o),h)}),l}function by(i,u){return function(a,l){var o=Mn(a)?Mk:kk,d=u?u():{};return o(a,i,Kt(l),d)}}var Dk=Object.prototype,Nk=Dk.hasOwnProperty,Rk=by(function(i,u,a){Nk.call(i,a)?++i[a]:bl(i,a,1)});const Ck=Rk;function Ik(i,u){var a=wp(i);return u==null?a:MA(a,u)}var Lk=8;function ym(i,u,a){u=a?void 0:u;var l=Ha(i,Lk,void 0,void 0,void 0,void 0,void 0,u);return l.placeholder=ym.placeholder,l}ym.placeholder={};var Bk=16;function vm(i,u,a){u=a?void 0:u;var l=Ha(i,Bk,void 0,void 0,void 0,void 0,void 0,u);return l.placeholder=vm.placeholder,l}vm.placeholder={};function zk(i,u){return i==null||i!==i?u:i}var Qw=Object.prototype,Fk=Qw.hasOwnProperty,$k=cn(function(i,u){i=Object(i);var a=-1,l=u.length,o=l>2?u[2]:void 0;for(o&&wo(u[0],u[1],o)&&(l=1);++a<l;)for(var d=u[a],h=Ga(d),m=-1,g=h.length;++m<g;){var E=h[m],P=i[E];(P===void 0||ml(P,Qw[E])&&!Fk.call(i,E))&&(i[E]=d[E])}return i});const Wk=$k;function ex(i,u,a,l,o,d){return Wa(i)&&Wa(u)&&(d.set(u,i),qO(i,u,void 0,ex,d),d.delete(u)),i}var Gk=Ep(function(i,u,a,l){qO(i,u,a,l)});const tx=Gk;var Uk=cn(function(i){return i.push(void 0,ex),ci(tx,void 0,i)});const Hk=Uk;var Xk="Expected a function";function nx(i,u,a){if(typeof i!="function")throw new TypeError(Xk);return setTimeout(function(){i.apply(void 0,a)},u)}var Yk=cn(function(i,u){return nx(i,1,u)});const Vk=Yk;var Kk=cn(function(i,u,a){return nx(i,za(u)||0,a)});const qk=Kk;var Zk=200;function Mp(i,u,a,l){var o=-1,d=Qb,h=!0,m=i.length,g=[],E=u.length;if(!m)return g;a&&(u=fr(u,ua(a))),l?(d=JO,h=!1):u.length>=Zk&&(d=Cb,h=!1,u=new ZO(u));e:for(;++o<m;){var P=i[o],j=a==null?P:a(P);if(P=l||P!==0?P:0,h&&j===j){for(var k=E;k--;)if(u[k]===j)continue e;g.push(P)}else d(u,j,l)||g.push(P)}return g}var Jk=cn(function(i,u){return xr(i)?Mp(i,di(u,1,xr,!0)):[]});const Qk=Jk;function Lo(i){var u=i==null?0:i.length;return u?i[u-1]:void 0}var eD=cn(function(i,u){var a=Lo(u);return xr(a)&&(a=void 0),xr(i)?Mp(i,di(u,1,xr,!0),Kt(a)):[]});const tD=eD;var nD=cn(function(i,u){var a=Lo(u);return xr(a)&&(a=void 0),xr(i)?Mp(i,di(u,1,xr,!0),void 0,a):[]});const rD=nD;var oD=yy(function(i,u){return i/u},1);const iD=oD;function aD(i,u,a){var l=i==null?0:i.length;return l?(u=a||u===void 0?1:Qt(u),li(i,u<0?0:u,l)):[]}function uD(i,u,a){var l=i==null?0:i.length;return l?(u=a||u===void 0?1:Qt(u),u=l-u,li(i,0,u<0?0:u)):[]}function my(i,u,a,l){for(var o=i.length,d=l?o:-1;(l?d--:++d<o)&&u(i[d],d,i););return a?li(i,l?0:d,l?d+1:o):li(i,l?d+1:0,l?o:d)}function cD(i,u){return i&&i.length?my(i,Kt(u),!0,!0):[]}function sD(i,u){return i&&i.length?my(i,Kt(u),!0):[]}function sa(i){return typeof i=="function"?i:fi}function z1(i,u){var a=Mn(i)?Ci:Gc;return a(i,sa(u))}function lD(i,u){for(var a=i==null?0:i.length;a--&&u(i[a],a,i)!==!1;);return i}var fD=kA(!0);const rx=fD;function gm(i,u){return i&&rx(i,u,xo)}var pD=DA(gm,!0);const ox=pD;function F1(i,u){var a=Mn(i)?lD:ox;return a(i,sa(u))}function dD(i,u,a){i=kn(i),u=Ni(u);var l=i.length;a=a===void 0?l:Hc(Qt(a),0,l);var o=a;return a-=u.length,a>=0&&i.slice(a,o)==u}function hD(i,u){return fr(u,function(a){return[a,i[a]]})}function yD(i){var u=-1,a=Array(i.size);return i.forEach(function(l){a[++u]=[l,l]}),a}var vD="[object Map]",gD="[object Set]";function ix(i){return function(u){var a=Ap(u);return a==vD?QO(u):a==gD?yD(u):hD(u,i(u))}}var bD=ix(xo);const $1=bD;var mD=ix(Ga);const W1=mD;var _D={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},OD=dm(_D);const wD=OD;var ax=/[&<>"']/g,xD=RegExp(ax.source);function ux(i){return i=kn(i),i&&xD.test(i)?i.replace(ax,wD):i}var cx=/[\\^$.*+?()[\]{}|]/g,ED=RegExp(cx.source);function SD(i){return i=kn(i),i&&ED.test(i)?i.replace(cx,"\\$&"):i}function sx(i,u){for(var a=-1,l=i==null?0:i.length;++a<l;)if(!u(i[a],a,i))return!1;return!0}function jD(i,u){var a=!0;return Gc(i,function(l,o,d){return a=!!u(l,o,d),a}),a}function PD(i,u,a){var l=Mn(i)?sx:jD;return a&&wo(i,u,a)&&(u=void 0),l(i,Kt(u))}var AD=4294967295;function lx(i){return i?Hc(Qt(i),0,AD):0}function TD(i,u,a,l){var o=i.length;for(a=Qt(a),a<0&&(a=-a>o?0:o+a),l=l===void 0||l>o?o:Qt(l),l<0&&(l+=o),l=a>l?0:lx(l);a<l;)i[a++]=u;return i}function MD(i,u,a,l){var o=i==null?0:i.length;return o?(a&&typeof a!="number"&&wo(i,u,a)&&(a=0,l=o),TD(i,u,a,l)):[]}function fx(i,u){var a=[];return Gc(i,function(l,o,d){u(l,o,d)&&a.push(l)}),a}function kD(i,u){var a=Mn(i)?Uc:fx;return a(i,Kt(u))}function px(i){return function(u,a,l){var o=Object(u);if(!Iu(u)){var d=Kt(a);u=xo(u),a=function(m){return d(o[m],m,o)}}var h=i(u,a,l);return h>-1?o[d?u[h]:h]:void 0}}var DD=Math.max;function dx(i,u,a){var l=i==null?0:i.length;if(!l)return-1;var o=a==null?0:Qt(a);return o<0&&(o=DD(l+o,0)),ew(i,Kt(u),o)}var ND=px(dx);const RD=ND;function hx(i,u,a){var l;return a(i,function(o,d,h){if(u(o,d,h))return l=d,!1}),l}function CD(i,u){return hx(i,Kt(u),Ua)}var ID=px(tw);const LD=ID;function BD(i,u){return hx(i,Kt(u),gm)}function G1(i){return i&&i.length?i[0]:void 0}var zD=1/0;function FD(i,u){return di(em(i,u),zD)}function $D(i,u,a){return a=a===void 0?1:Qt(a),di(em(i,u),a)}function WD(i,u){var a=i==null?0:i.length;return a?(u=u===void 0?1:Qt(u),di(i,u)):[]}var GD=512;function UD(i){return Ha(i,GD)}var HD=hm("floor");const XD=HD;var YD="Expected a function",VD=8,KD=32,qD=128,ZD=256;function yx(i){return Lu(function(u){var a=u.length,l=a,o=si.prototype.thru;for(i&&u.reverse();l--;){var d=u[l];if(typeof d!="function")throw new TypeError(YD);if(o&&!h&&Uh(d)=="wrapper")var h=new si([],!0)}for(l=h?l:a;++l<a;){d=u[l];var m=Uh(d),g=m=="wrapper"?am(d):void 0;g&&Lb(g[0])&&g[1]==(qD|VD|KD|ZD)&&!g[4].length&&g[9]==1?h=h[Uh(g[0])].apply(h,g[3]):h=d.length==1&&Lb(d)?h[m]():h.thru(d)}return function(){var E=arguments,P=E[0];if(h&&E.length==1&&Mn(P))return h.plant(P).value();for(var j=0,k=a?u[j].apply(this,E):P;++j<a;)k=u[j].call(this,k);return k}})}var JD=yx();const QD=JD;var eN=yx(!0);const tN=eN;function nN(i,u){return i==null?i:NA(i,sa(u),Ga)}function rN(i,u){return i==null?i:rx(i,sa(u),Ga)}function oN(i,u){return i&&Ua(i,sa(u))}function iN(i,u){return i&&gm(i,sa(u))}function _y(i,u){return Uc(u,function(a){return _l(i[a])})}function aN(i){return i==null?[]:_y(i,xo(i))}function uN(i){return i==null?[]:_y(i,Ga(i))}var cN=Object.prototype,sN=cN.hasOwnProperty,lN=by(function(i,u,a){sN.call(i,a)?i[a].push(u):bl(i,a,[u])});const fN=lN;function bm(i,u){return i>u}function Oy(i){return function(u,a){return typeof u=="string"&&typeof a=="string"||(u=za(u),a=za(a)),i(u,a)}}var pN=Oy(bm);const dN=pN;var hN=Oy(function(i,u){return i>=u});const yN=hN;var vN=Object.prototype,gN=vN.hasOwnProperty;function bN(i,u){return i!=null&&gN.call(i,u)}function mN(i,u){return i!=null&&RA(i,u,bN)}var _N=Math.max,ON=Math.min;function wN(i,u,a){return i>=ON(u,a)&&i<_N(u,a)}function xN(i,u,a){return u=Ru(u),a===void 0?(a=u,u=0):a=Ru(a),i=za(i),wN(i,u,a)}var EN="[object String]";function wy(i){return typeof i=="string"||!Mn(i)&&pi(i)&&Bu(i)==EN}function mm(i,u){return fr(u,function(a){return i[a]})}function El(i){return i==null?[]:mm(i,xo(i))}var SN=Math.max;function jN(i,u,a,l){i=Iu(i)?i:El(i),a=a&&!l?Qt(a):0;var o=i.length;return a<0&&(a=SN(o+a,0)),wy(i)?a<=o&&i.indexOf(u,a)>-1:!!o&&Tp(i,u,a)>-1}var PN=Math.max;function AN(i,u,a){var l=i==null?0:i.length;if(!l)return-1;var o=a==null?0:Qt(a);return o<0&&(o=PN(l+o,0)),Tp(i,u,o)}function TN(i){var u=i==null?0:i.length;return u?li(i,0,-1):[]}var MN=Math.min;function _m(i,u,a){for(var l=a?JO:Qb,o=i[0].length,d=i.length,h=d,m=Array(d),g=1/0,E=[];h--;){var P=i[h];h&&u&&(P=fr(P,ua(u))),g=MN(P.length,g),m[h]=!a&&(u||o>=120&&P.length>=120)?new ZO(h&&P):void 0}P=i[0];var j=-1,k=m[0];e:for(;++j<o&&E.length<g;){var M=P[j],R=u?u(M):M;if(M=a||M!==0?M:0,!(k?Cb(k,R):l(E,R,a))){for(h=d;--h;){var N=m[h];if(!(N?Cb(N,R):l(i[h],R,a)))continue e}k&&k.push(R),E.push(M)}}return E}function Om(i){return xr(i)?i:[]}var kN=cn(function(i){var u=fr(i,Om);return u.length&&u[0]===i[0]?_m(u):[]});const DN=kN;var NN=cn(function(i){var u=Lo(i),a=fr(i,Om);return u===Lo(a)?u=void 0:a.pop(),a.length&&a[0]===i[0]?_m(a,Kt(u)):[]});const RN=NN;var CN=cn(function(i){var u=Lo(i),a=fr(i,Om);return u=typeof u=="function"?u:void 0,u&&a.pop(),a.length&&a[0]===i[0]?_m(a,void 0,u):[]});const IN=CN;function LN(i,u,a,l){return Ua(i,function(o,d,h){u(l,a(o),d,h)}),l}function vx(i,u){return function(a,l){return LN(a,i,u(l),{})}}var BN=Object.prototype,zN=BN.toString,FN=vx(function(i,u,a){u!=null&&typeof u.toString!="function"&&(u=zN.call(u)),i[u]=a},nw(fi));const $N=FN;var gx=Object.prototype,WN=gx.hasOwnProperty,GN=gx.toString,UN=vx(function(i,u,a){u!=null&&typeof u.toString!="function"&&(u=GN.call(u)),WN.call(i,u)?i[u].push(a):i[u]=[a]},Kt);const HN=UN;function bx(i,u){return u.length<2?i:py(i,li(u,0,-1))}function kp(i,u,a){u=dy(u,i),i=bx(i,u);var l=i==null?i:i[jp(Lo(u))];return l==null?void 0:ci(l,i,a)}var XN=cn(kp);const YN=XN;var VN=cn(function(i,u,a){var l=-1,o=typeof u=="function",d=Iu(i)?Array(i.length):[];return Gc(i,function(h){d[++l]=o?ci(u,h,a):kp(h,u,a)}),d});const KN=VN;var qN="[object ArrayBuffer]";function ZN(i){return pi(i)&&Bu(i)==qN}var U1=gl&&gl.isArrayBuffer,JN=U1?ua(U1):ZN;const QN=JN;var eR="[object Boolean]";function tR(i){return i===!0||i===!1||pi(i)&&Bu(i)==eR}var nR="[object Date]";function rR(i){return pi(i)&&Bu(i)==nR}var H1=gl&&gl.isDate,oR=H1?ua(H1):rR;const iR=oR;function aR(i){return pi(i)&&i.nodeType===1&&!fy(i)}var uR="[object Map]",cR="[object Set]",sR=Object.prototype,lR=sR.hasOwnProperty;function fR(i){if(i==null)return!0;if(Iu(i)&&(Mn(i)||typeof i=="string"||typeof i.splice=="function"||tm(i)||nm(i)||rw(i)))return!i.length;var u=Ap(i);if(u==uR||u==cR)return!i.size;if(YO(i))return!ow(i).length;for(var a in i)if(lR.call(i,a))return!1;return!0}function pR(i,u,a){a=typeof a=="function"?a:void 0;var l=a?a(i,u):void 0;return l===void 0?CA(i,u,void 0,a):!!l}var dR=$c.isFinite;function hR(i){return typeof i=="number"&&dR(i)}function mx(i){return typeof i=="number"&&i==Qt(i)}function yR(i,u){return i===u||iw(i,u,aw(u))}function vR(i,u,a){return a=typeof a=="function"?a:void 0,iw(i,u,aw(u),a)}var gR="[object Number]";function _x(i){return typeof i=="number"||pi(i)&&Bu(i)==gR}function bR(i){return _x(i)&&i!=+i}var mR=IA?_l:uw;const _R=mR;var OR="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function wR(i){if(_R(i))throw new Error(OR);return LA(i)}function xR(i){return i===null}var ER="[object RegExp]";function SR(i){return pi(i)&&Bu(i)==ER}var X1=gl&&gl.isRegExp,jR=X1?ua(X1):SR;const wm=jR;var Y1=9007199254740991;function PR(i){return mx(i)&&i>=-Y1&&i<=Y1}var AR="[object WeakMap]";function TR(i){return pi(i)&&Ap(i)==AR}var MR="[object WeakSet]";function kR(i){return pi(i)&&Bu(i)==MR}var DR=1;function NR(i){return Kt(typeof i=="function"?i:Wc(i,DR))}var RR=Array.prototype,CR=RR.join;function IR(i,u){return i==null?"":CR.call(i,u)}var LR=xl(function(i,u,a){return i+(a?"-":"")+u.toLowerCase()});const BR=LR;var zR=by(function(i,u,a){bl(i,a,u)});const FR=zR;function $R(i,u,a){for(var l=a+1;l--;)if(i[l]===u)return l;return l}var WR=Math.max,GR=Math.min;function UR(i,u,a){var l=i==null?0:i.length;if(!l)return-1;var o=l;return a!==void 0&&(o=Qt(a),o=o<0?WR(l+o,0):GR(o,l-1)),u===u?$R(i,u,o):ew(i,BA,o,!0)}var HR=xl(function(i,u,a){return i+(a?" ":"")+u.toLowerCase()});const XR=HR;var YR=Rw("toLowerCase");const VR=YR;function xm(i,u){return i<u}var KR=Oy(xm);const qR=KR;var ZR=Oy(function(i,u){return i<=u});const JR=ZR;function QR(i,u){var a={};return u=Kt(u),Ua(i,function(l,o,d){bl(a,u(l,o,d),l)}),a}function eC(i,u){var a={};return u=Kt(u),Ua(i,function(l,o,d){bl(a,o,u(l,o,d))}),a}var tC=1;function nC(i){return zA(Wc(i,tC))}var rC=1;function oC(i,u){return FA(i,Wc(u,rC))}function xy(i,u,a){for(var l=-1,o=i.length;++l<o;){var d=i[l],h=u(d);if(h!=null&&(m===void 0?h===h&&!$a(h):a(h,m)))var m=h,g=d}return g}function iC(i){return i&&i.length?xy(i,fi,bm):void 0}function aC(i,u){return i&&i.length?xy(i,Kt(u),bm):void 0}function Em(i,u){for(var a,l=-1,o=i.length;++l<o;){var d=u(i[l]);d!==void 0&&(a=a===void 0?d:a+d)}return a}var uC=0/0;function Ox(i,u){var a=i==null?0:i.length;return a?Em(i,u)/a:uC}function cC(i){return Ox(i,fi)}function sC(i,u){return Ox(i,Kt(u))}var lC=cn(function(i,u){return function(a){return kp(a,i,u)}});const fC=lC;var pC=cn(function(i,u){return function(a){return kp(i,a,u)}});const dC=pC;function hC(i){return i&&i.length?xy(i,fi,xm):void 0}function yC(i,u){return i&&i.length?xy(i,Kt(u),xm):void 0}function wx(i,u,a){var l=xo(u),o=_y(u,l),d=!(Wa(a)&&"chain"in a)||!!a.chain,h=_l(i);return Ci(o,function(m){var g=u[m];i[m]=g,h&&(i.prototype[m]=function(){var E=this.__chain__;if(d||E){var P=i(this.__wrapped__),j=P.__actions__=ui(this.__actions__);return j.push({func:g,args:arguments,thisArg:i}),P.__chain__=E,P}return g.apply(i,Pp([this.value()],arguments))})}),i}var vC=yy(function(i,u){return i*u},1);const gC=vC;var bC="Expected a function";function Dp(i){if(typeof i!="function")throw new TypeError(bC);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function mC(i){for(var u,a=[];!(u=i.next()).done;)a.push(u.value);return a}var _C="[object Map]",OC="[object Set]",Db=Kh?Kh.iterator:void 0;function xx(i){if(!i)return[];if(Iu(i))return wy(i)?Ri(i):ui(i);if(Db&&i[Db])return mC(i[Db]());var u=Ap(i),a=u==_C?QO:u==OC?$A:El;return a(i)}function wC(){this.__values__===void 0&&(this.__values__=xx(this.value()));var i=this.__index__>=this.__values__.length,u=i?void 0:this.__values__[this.__index__++];return{done:i,value:u}}function Ex(i,u){var a=i.length;if(a)return u+=u<0?a:0,xp(u,a)?i[u]:void 0}function xC(i,u){return i&&i.length?Ex(i,Qt(u)):void 0}function EC(i){return i=Qt(i),cn(function(u){return Ex(u,i)})}function Sm(i,u){return u=dy(u,i),i=bx(i,u),i==null||delete i[jp(Lo(u))]}function SC(i){return fy(i)?void 0:i}var jC=1,PC=2,AC=4,TC=Lu(function(i,u){var a={};if(i==null)return a;var l=!1;u=fr(u,function(d){return d=dy(d,i),l||(l=d.length>1),d}),Sp(i,cw(i),a),l&&(a=Wc(a,jC|PC|AC,SC));for(var o=u.length;o--;)Sm(a,u[o]);return a});const MC=TC;function Sx(i,u){if(i==null)return{};var a=fr(cw(i),function(l){return[l]});return u=Kt(u),WA(i,a,function(l,o){return u(l,o[0])})}function kC(i,u){return Sx(i,Dp(Kt(u)))}function DC(i){return jw(2,i)}function NC(i,u){var a=i.length;for(i.sort(u);a--;)i[a]=i[a].value;return i}function jx(i,u){if(i!==u){var a=i!==void 0,l=i===null,o=i===i,d=$a(i),h=u!==void 0,m=u===null,g=u===u,E=$a(u);if(!m&&!E&&!d&&i>u||d&&h&&g&&!m&&!E||l&&h&&g||!a&&g||!o)return 1;if(!l&&!d&&!E&&i<u||E&&a&&o&&!l&&!d||m&&a&&o||!h&&o||!g)return-1}return 0}function RC(i,u,a){for(var l=-1,o=i.criteria,d=u.criteria,h=o.length,m=a.length;++l<h;){var g=jx(o[l],d[l]);if(g){if(l>=m)return g;var E=a[l];return g*(E=="desc"?-1:1)}}return i.index-u.index}function Px(i,u,a){u.length?u=fr(u,function(d){return Mn(d)?function(h){return py(h,d.length===1?d[0]:d)}:d}):u=[fi];var l=-1;u=fr(u,ua(Kt));var o=GA(i,function(d,h,m){var g=fr(u,function(E){return E(d)});return{criteria:g,index:++l,value:d}});return NC(o,function(d,h){return RC(d,h,a)})}function CC(i,u,a,l){return i==null?[]:(Mn(u)||(u=u==null?[]:[u]),a=l?void 0:a,Mn(a)||(a=a==null?[]:[a]),Px(i,u,a))}function jm(i){return Lu(function(u){return u=fr(u,ua(Kt)),cn(function(a){var l=this;return i(u,function(o){return ci(o,l,a)})})})}var IC=jm(fr);const LC=IC;var BC=cn;const zC=BC;var FC=Math.min,$C=zC(function(i,u){u=u.length==1&&Mn(u[0])?fr(u[0],ua(Kt)):fr(di(u,1),ua(Kt));var a=u.length;return cn(function(l){for(var o=-1,d=FC(l.length,a);++o<d;)l[o]=u[o].call(this,l[o]);return ci(i,this,l)})});const WC=$C;var GC=jm(sx);const UC=GC;var HC=jm(sw);const XC=HC;var YC=9007199254740991,VC=Math.floor;function Fb(i,u){var a="";if(!i||u<1||u>YC)return a;do u%2&&(a+=i),u=VC(u/2),u&&(i+=i);while(u);return a}var KC=lw("length");const qC=KC;var Ax="\\ud800-\\udfff",ZC="\\u0300-\\u036f",JC="\\ufe20-\\ufe2f",QC="\\u20d0-\\u20ff",eI=ZC+JC+QC,tI="\\ufe0e\\ufe0f",nI="["+Ax+"]",$b="["+eI+"]",Wb="\\ud83c[\\udffb-\\udfff]",rI="(?:"+$b+"|"+Wb+")",Tx="[^"+Ax+"]",Mx="(?:\\ud83c[\\udde6-\\uddff]){2}",kx="[\\ud800-\\udbff][\\udc00-\\udfff]",oI="\\u200d",Dx=rI+"?",Nx="["+tI+"]?",iI="(?:"+oI+"(?:"+[Tx,Mx,kx].join("|")+")"+Nx+Dx+")*",aI=Nx+Dx+iI,uI="(?:"+[Tx+$b+"?",$b,Mx,kx,nI].join("|")+")",V1=RegExp(Wb+"(?="+Wb+")|"+uI+aI,"g");function cI(i){for(var u=V1.lastIndex=0;V1.test(i);)++u;return u}function Sl(i){return wl(i)?cI(i):qC(i)}var sI=Math.ceil;function Jh(i,u){u=u===void 0?" ":Ni(u);var a=u.length;if(a<2)return a?Fb(u,i):u;var l=Fb(u,sI(i/Sl(u)));return wl(u)?zu(Ri(l),0,i).join(""):l.slice(0,i)}var lI=Math.ceil,fI=Math.floor;function pI(i,u,a){i=kn(i),u=Qt(u);var l=u?Sl(i):0;if(!u||l>=u)return i;var o=(u-l)/2;return Jh(fI(o),a)+i+Jh(lI(o),a)}function dI(i,u,a){i=kn(i),u=Qt(u);var l=u?Sl(i):0;return u&&l<u?i+Jh(u-l,a):i}function hI(i,u,a){i=kn(i),u=Qt(u);var l=u?Sl(i):0;return u&&l<u?Jh(u-l,a)+i:i}var yI=/^\s+/,vI=$c.parseInt;function gI(i,u,a){return a||u==null?u=0:u&&(u=+u),vI(kn(i).replace(yI,""),u||0)}var bI=32,Pm=cn(function(i,u){var a=Cu(u,Ol(Pm));return Ha(i,bI,void 0,u,a)});Pm.placeholder={};const Rx=Pm;var mI=64,Am=cn(function(i,u){var a=Cu(u,Ol(Am));return Ha(i,mI,void 0,u,a)});Am.placeholder={};const _I=Am;var OI=by(function(i,u,a){i[a?0:1].push(u)},function(){return[[],[]]});const wI=OI;function xI(i){for(var u,a=this;a instanceof vy;){var l=_w(a);l.__index__=0,l.__values__=void 0,u?o.__wrapped__=l:u=l;var o=l;a=a.__wrapped__}return o.__wrapped__=i,u}function EI(i){return function(u){return i==null?void 0:py(i,u)}}function SI(i,u,a,l){for(var o=a-1,d=i.length;++o<d;)if(l(i[o],u))return o;return-1}var jI=Array.prototype,K1=jI.splice;function Tm(i,u,a,l){var o=l?SI:Tp,d=-1,h=u.length,m=i;for(i===u&&(u=ui(u)),a&&(m=fr(i,ua(a)));++d<h;)for(var g=0,E=u[d],P=a?a(E):E;(g=o(m,P,g,l))>-1;)m!==i&&K1.call(m,g,1),K1.call(i,g,1);return i}function Cx(i,u){return i&&i.length&&u&&u.length?Tm(i,u):i}var PI=cn(Cx);const AI=PI;function TI(i,u,a){return i&&i.length&&u&&u.length?Tm(i,u,Kt(a)):i}function MI(i,u,a){return i&&i.length&&u&&u.length?Tm(i,u,void 0,a):i}var kI=Array.prototype,DI=kI.splice;function Ix(i,u){for(var a=i?u.length:0,l=a-1;a--;){var o=u[a];if(a==l||o!==d){var d=o;xp(o)?DI.call(i,o,1):Sm(i,o)}}return i}var NI=Lu(function(i,u){var a=i==null?0:i.length,l=um(i,u);return Ix(i,fr(u,function(o){return xp(o,a)?+o:o}).sort(jx)),l});const RI=NI;var CI=Math.floor,II=Math.random;function Mm(i,u){return i+CI(II()*(u-i+1))}var LI=parseFloat,BI=Math.min,zI=Math.random;function FI(i,u,a){if(a&&typeof a!="boolean"&&wo(i,u,a)&&(u=a=void 0),a===void 0&&(typeof u=="boolean"?(a=u,u=void 0):typeof i=="boolean"&&(a=i,i=void 0)),i===void 0&&u===void 0?(i=0,u=1):(i=Ru(i),u===void 0?(u=i,i=0):u=Ru(u)),i>u){var l=i;i=u,u=l}if(a||i%1||u%1){var o=zI();return BI(i+o*(u-i+LI("1e-"+((o+"").length-1))),u)}return Mm(i,u)}var $I=Math.ceil,WI=Math.max;function GI(i,u,a,l){for(var o=-1,d=WI($I((u-i)/(a||1)),0),h=Array(d);d--;)h[l?d:++o]=i,i+=a;return h}function Lx(i){return function(u,a,l){return l&&typeof l!="number"&&wo(u,a,l)&&(a=l=void 0),u=Ru(u),a===void 0?(a=u,u=0):a=Ru(a),l=l===void 0?u<a?1:-1:Ru(l),GI(u,a,l,i)}}var UI=Lx();const HI=UI;var XI=Lx(!0);const YI=XI;var VI=256,KI=Lu(function(i,u){return Ha(i,VI,void 0,void 0,void 0,u)});const qI=KI;function Bx(i,u,a,l,o){return o(i,function(d,h,m){a=l?(l=!1,d):u(a,d,h,m)}),a}function ZI(i,u,a){var l=Mn(i)?pm:Bx,o=arguments.length<3;return l(i,Kt(u),a,o,Gc)}function JI(i,u,a,l){var o=i==null?0:i.length;for(l&&o&&(a=i[--o]);o--;)a=u(a,i[o],o,i);return a}function QI(i,u,a){var l=Mn(i)?JI:Bx,o=arguments.length<3;return l(i,Kt(u),a,o,ox)}function e3(i,u){var a=Mn(i)?Uc:fx;return a(i,Dp(Kt(u)))}function t3(i,u){var a=[];if(!(i&&i.length))return a;var l=-1,o=[],d=i.length;for(u=Kt(u);++l<d;){var h=i[l];u(h,l,i)&&(a.push(h),o.push(l))}return Ix(i,o),a}function n3(i,u,a){return(a?wo(i,u,a):u===void 0)?u=1:u=Qt(u),Fb(kn(i),u)}function r3(){var i=arguments,u=kn(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var o3="Expected a function";function i3(i,u){if(typeof i!="function")throw new TypeError(o3);return u=u===void 0?u:Qt(u),cn(i,u)}function a3(i,u,a){u=dy(u,i);var l=-1,o=u.length;for(o||(o=1,i=void 0);++l<o;){var d=i==null?void 0:i[jp(u[l])];d===void 0&&(l=o,d=a),i=_l(d)?d.call(i):d}return i}var u3=Array.prototype,c3=u3.reverse;function Gb(i){return i==null?i:c3.call(i)}var s3=hm("round");const l3=s3;function zx(i){var u=i.length;return u?i[Mm(0,u-1)]:void 0}function f3(i){return zx(El(i))}function p3(i){var u=Mn(i)?zx:f3;return u(i)}function Ey(i,u){var a=-1,l=i.length,o=l-1;for(u=u===void 0?l:u;++a<u;){var d=Mm(a,o),h=i[d];i[d]=i[a],i[a]=h}return i.length=u,i}function d3(i,u){return Ey(ui(i),Hc(u,0,i.length))}function h3(i,u){var a=El(i);return Ey(a,Hc(u,0,a.length))}function y3(i,u,a){(a?wo(i,u,a):u===void 0)?u=1:u=Qt(u);var l=Mn(i)?d3:h3;return l(i,u)}function v3(i,u,a,l){return l=typeof l=="function"?l:void 0,i==null?i:rm(i,u,a,l)}function g3(i){return Ey(ui(i))}function b3(i){return Ey(El(i))}function m3(i){var u=Mn(i)?g3:b3;return u(i)}var _3="[object Map]",O3="[object Set]";function w3(i){if(i==null)return 0;if(Iu(i))return wy(i)?Sl(i):i.length;var u=Ap(i);return u==_3||u==O3?i.size:ow(i).length}function x3(i,u,a){var l=i==null?0:i.length;return l?(a&&typeof a!="number"&&wo(i,u,a)?(u=0,a=l):(u=u==null?0:Qt(u),a=a===void 0?l:Qt(a)),li(i,u,a)):[]}var E3=xl(function(i,u,a){return i+(a?"_":"")+u.toLowerCase()});const S3=E3;function j3(i,u){var a;return Gc(i,function(l,o,d){return a=u(l,o,d),!a}),!!a}function P3(i,u,a){var l=Mn(i)?sw:j3;return a&&wo(i,u,a)&&(u=void 0),l(i,Kt(u))}var A3=cn(function(i,u){if(i==null)return[];var a=u.length;return a>1&&wo(i,u[0],u[1])?u=[]:a>2&&wo(u[0],u[1],u[2])&&(u=[u[0]]),Px(i,di(u,1),[])});const T3=A3;var M3=4294967295,k3=M3-1,D3=Math.floor,N3=Math.min;function km(i,u,a,l){var o=0,d=i==null?0:i.length;if(d===0)return 0;u=a(u);for(var h=u!==u,m=u===null,g=$a(u),E=u===void 0;o<d;){var P=D3((o+d)/2),j=a(i[P]),k=j!==void 0,M=j===null,R=j===j,N=$a(j);if(h)var I=l||R;else E?I=R&&(l||k):m?I=R&&k&&(l||!M):g?I=R&&k&&!M&&(l||!N):M||N?I=!1:I=l?j<=u:j<u;I?o=P+1:d=P}return N3(d,k3)}var R3=4294967295,C3=R3>>>1;function Sy(i,u,a){var l=0,o=i==null?l:i.length;if(typeof u=="number"&&u===u&&o<=C3){for(;l<o;){var d=l+o>>>1,h=i[d];h!==null&&!$a(h)&&(a?h<=u:h<u)?l=d+1:o=d}return o}return km(i,u,fi,a)}function I3(i,u){return Sy(i,u)}function L3(i,u,a){return km(i,u,Kt(a))}function B3(i,u){var a=i==null?0:i.length;if(a){var l=Sy(i,u);if(l<a&&ml(i[l],u))return l}return-1}function z3(i,u){return Sy(i,u,!0)}function F3(i,u,a){return km(i,u,Kt(a),!0)}function $3(i,u){var a=i==null?0:i.length;if(a){var l=Sy(i,u,!0)-1;if(ml(i[l],u))return l}return-1}function Fx(i,u){for(var a=-1,l=i.length,o=0,d=[];++a<l;){var h=i[a],m=u?u(h):h;if(!a||!ml(m,g)){var g=m;d[o++]=h===0?0:h}}return d}function W3(i){return i&&i.length?Fx(i):[]}function G3(i,u){return i&&i.length?Fx(i,Kt(u)):[]}var U3=4294967295;function H3(i,u,a){return a&&typeof a!="number"&&wo(i,u,a)&&(u=a=void 0),a=a===void 0?U3:a>>>0,a?(i=kn(i),i&&(typeof u=="string"||u!=null&&!wm(u))&&(u=Ni(u),!u&&wl(i))?zu(Ri(i),0,a):i.split(u,a)):[]}var X3="Expected a function",Y3=Math.max;function V3(i,u){if(typeof i!="function")throw new TypeError(X3);return u=u==null?0:Y3(Qt(u),0),cn(function(a){var l=a[u],o=zu(a,0,u);return l&&Pp(o,l),ci(i,this,o)})}var K3=xl(function(i,u,a){return i+(a?" ":"")+fm(u)});const q3=K3;function Z3(i,u,a){return i=kn(i),a=a==null?0:Hc(Qt(a),0,i.length),u=Ni(u),i.slice(a,a+u.length)==u}function J3(){return{}}function Q3(){return""}function eL(){return!0}var tL=yy(function(i,u){return i-u},0);const nL=tL;function rL(i){return i&&i.length?Em(i,fi):0}function oL(i,u){return i&&i.length?Em(i,Kt(u)):0}function iL(i){var u=i==null?0:i.length;return u?li(i,1,u):[]}function aL(i,u,a){return i&&i.length?(u=a||u===void 0?1:Qt(u),li(i,0,u<0?0:u)):[]}function uL(i,u,a){var l=i==null?0:i.length;return l?(u=a||u===void 0?1:Qt(u),u=l-u,li(i,u<0?0:u,l)):[]}function cL(i,u){return i&&i.length?my(i,Kt(u),!1,!0):[]}function sL(i,u){return i&&i.length?my(i,Kt(u)):[]}function lL(i,u){return u(i),i}var $x=Object.prototype,fL=$x.hasOwnProperty;function q1(i,u,a,l){return i===void 0||ml(i,$x[a])&&!fL.call(l,a)?u:i}var pL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function dL(i){return"\\"+pL[i]}var hL=/<%=([\s\S]+?)%>/g;const Wx=hL;var yL=/<%-([\s\S]+?)%>/g;const vL=yL;var gL=/<%([\s\S]+?)%>/g;const bL=gL;var mL={escape:vL,evaluate:bL,interpolate:Wx,variable:"",imports:{_:{escape:ux}}};const Ub=mL;var _L="Invalid `variable` option passed into `_.template`",OL=/\b__p \+= '';/g,wL=/\b(__p \+=) '' \+/g,xL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,EL=/[()=,{}\[\]\/\s]/,SL=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wh=/($^)/,jL=/['\n\r\u2028\u2029\\]/g,PL=Object.prototype,Z1=PL.hasOwnProperty;function AL(i,u,a){var l=Ub.imports._.templateSettings||Ub;a&&wo(i,u,a)&&(u=void 0),i=kn(i),u=Zh({},u,l,q1);var o=Zh({},u.imports,l.imports,q1),d=xo(o),h=mm(o,d),m,g,E=0,P=u.interpolate||Wh,j="__p += '",k=RegExp((u.escape||Wh).source+"|"+P.source+"|"+(P===Wx?SL:Wh).source+"|"+(u.evaluate||Wh).source+"|$","g"),M=Z1.call(u,"sourceURL")?"//# sourceURL="+(u.sourceURL+"").replace(/\s/g," ")+`
`:"";i.replace(k,function(I,W,U,ne,ue,re){return U||(U=ne),j+=i.slice(E,re).replace(jL,dL),W&&(m=!0,j+=`' +
__e(`+W+`) +
'`),ue&&(g=!0,j+=`';
`+ue+`;
__p += '`),U&&(j+=`' +
((__t = (`+U+`)) == null ? '' : __t) +
'`),E=re+I.length,I}),j+=`';
`;var R=Z1.call(u,"variable")&&u.variable;if(!R)j=`with (obj) {
`+j+`
}
`;else if(EL.test(R))throw new Error(_L);j=(g?j.replace(OL,""):j).replace(wL,"$1").replace(xL,"$1;"),j="function("+(R||"obj")+`) {
`+(R?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(g?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+j+`return __p
}`;var N=Sw(function(){return Function(d,M+"return "+j).apply(void 0,h)});if(N.source=j,cm(N))throw N;return N}function Np(i,u){return u(i)}var TL=9007199254740991,Nb=4294967295,ML=Math.min;function kL(i,u){if(i=Qt(i),i<1||i>TL)return[];var a=Nb,l=ML(i,Nb);u=sa(u),i-=Nb;for(var o=fw(l,u);++a<i;)u(a);return o}function DL(){return this}function Gx(i,u){var a=i;return a instanceof ln&&(a=a.value()),pm(u,function(l,o){return o.func.apply(o.thisArg,Pp([l],o.args))},a)}function Rb(){return Gx(this.__wrapped__,this.__actions__)}function NL(i){return kn(i).toLowerCase()}function RL(i){return Mn(i)?fr(i,jp):$a(i)?[i]:ui(UA(kn(i)))}var J1=9007199254740991;function CL(i){return i?Hc(Qt(i),-J1,J1):i===0?i:0}function IL(i){return kn(i).toUpperCase()}function LL(i,u,a){var l=Mn(i),o=l||tm(i)||nm(i);if(u=Kt(u),a==null){var d=i&&i.constructor;o?a=l?new d:[]:Wa(i)?a=_l(d)?wp(HA(i)):{}:a={}}return(o?Ci:Ua)(i,function(h,m,g){return u(a,h,m,g)}),a}function Ux(i,u){for(var a=i.length;a--&&Tp(u,i[a],0)>-1;);return a}function Hx(i,u){for(var a=-1,l=i.length;++a<l&&Tp(u,i[a],0)>-1;);return a}function BL(i,u,a){if(i=kn(i),i&&(a||u===void 0))return XA(i);if(!i||!(u=Ni(u)))return i;var l=Ri(i),o=Ri(u),d=Hx(l,o),h=Ux(l,o)+1;return zu(l,d,h).join("")}function zL(i,u,a){if(i=kn(i),i&&(a||u===void 0))return i.slice(0,YA(i)+1);if(!i||!(u=Ni(u)))return i;var l=Ri(i),o=Ux(l,Ri(u))+1;return zu(l,0,o).join("")}var FL=/^\s+/;function $L(i,u,a){if(i=kn(i),i&&(a||u===void 0))return i.replace(FL,"");if(!i||!(u=Ni(u)))return i;var l=Ri(i),o=Hx(l,Ri(u));return zu(l,o).join("")}var WL=30,GL="...",UL=/\w*$/;function HL(i,u){var a=WL,l=GL;if(Wa(u)){var o="separator"in u?u.separator:o;a="length"in u?Qt(u.length):a,l="omission"in u?Ni(u.omission):l}i=kn(i);var d=i.length;if(wl(i)){var h=Ri(i);d=h.length}if(a>=d)return i;var m=a-Sl(l);if(m<1)return l;var g=h?zu(h,0,m).join(""):i.slice(0,m);if(o===void 0)return g+l;if(h&&(m+=g.length-m),wm(o)){if(i.slice(m).search(o)){var E,P=g;for(o.global||(o=RegExp(o.source,kn(UL.exec(o))+"g")),o.lastIndex=0;E=o.exec(P);)var j=E.index;g=g.slice(0,j===void 0?m:j)}}else if(i.indexOf(Ni(o),m)!=m){var k=g.lastIndexOf(o);k>-1&&(g=g.slice(0,k))}return g+l}function XL(i){return Ew(i,1)}var YL={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},VL=dm(YL);const KL=VL;var Xx=/&(?:amp|lt|gt|quot|#39);/g,qL=RegExp(Xx.source);function ZL(i){return i=kn(i),i&&qL.test(i)?i.replace(Xx,KL):i}var JL=cn(function(i){var u=Lo(i);return xr(u)&&(u=void 0),Fc(di(i,1,xr,!0),Kt(u))});const QL=JL;var e4=cn(function(i){var u=Lo(i);return u=typeof u=="function"?u:void 0,Fc(di(i,1,xr,!0),void 0,u)});const t4=e4;function n4(i){return i&&i.length?Fc(i):[]}function r4(i,u){return i&&i.length?Fc(i,Kt(u)):[]}function o4(i,u){return u=typeof u=="function"?u:void 0,i&&i.length?Fc(i,void 0,u):[]}var i4=0;function a4(i){var u=++i4;return kn(i)+u}function u4(i,u){return i==null?!0:Sm(i,u)}var c4=Math.max;function Dm(i){if(!(i&&i.length))return[];var u=0;return i=Uc(i,function(a){if(xr(a))return u=c4(a.length,u),!0}),fw(u,function(a){return fr(i,lw(a))})}function Yx(i,u){if(!(i&&i.length))return[];var a=Dm(i);return u==null?a:fr(a,function(l){return ci(u,void 0,l)})}function Vx(i,u,a,l){return rm(i,u,a(py(i,u)),l)}function s4(i,u,a){return i==null?i:Vx(i,u,sa(a))}function l4(i,u,a,l){return l=typeof l=="function"?l:void 0,i==null?i:Vx(i,u,sa(a),l)}var f4=xl(function(i,u,a){return i+(a?" ":"")+u.toUpperCase()});const p4=f4;function d4(i){return i==null?[]:mm(i,Ga(i))}var h4=cn(function(i,u){return xr(i)?Mp(i,u):[]});const y4=h4;function v4(i,u){return Rx(sa(u),i)}var g4=Lu(function(i){var u=i.length,a=u?i[0]:0,l=this.__wrapped__,o=function(d){return um(d,i)};return u>1||this.__actions__.length||!(l instanceof ln)||!xp(a)?this.thru(o):(l=l.slice(a,+a+(u?1:0)),l.__actions__.push({func:Np,args:[o],thisArg:void 0}),new si(l,this.__chain__).thru(function(d){return u&&!d.length&&d.push(void 0),d}))});const b4=g4;function m4(){return Zw(this)}function _4(){var i=this.__wrapped__;if(i instanceof ln){var u=i;return this.__actions__.length&&(u=new ln(this)),u=u.reverse(),u.__actions__.push({func:Np,args:[Gb],thisArg:void 0}),new si(u,this.__chain__)}return this.thru(Gb)}function Nm(i,u,a){var l=i.length;if(l<2)return l?Fc(i[0]):[];for(var o=-1,d=Array(l);++o<l;)for(var h=i[o],m=-1;++m<l;)m!=o&&(d[o]=Mp(d[o]||h,i[m],u,a));return Fc(di(d,1),u,a)}var O4=cn(function(i){return Nm(Uc(i,xr))});const w4=O4;var x4=cn(function(i){var u=Lo(i);return xr(u)&&(u=void 0),Nm(Uc(i,xr),Kt(u))});const E4=x4;var S4=cn(function(i){var u=Lo(i);return u=typeof u=="function"?u:void 0,Nm(Uc(i,xr),void 0,u)});const j4=S4;var P4=cn(Dm);const A4=P4;function Kx(i,u,a){for(var l=-1,o=i.length,d=u.length,h={};++l<o;){var m=l<d?u[l]:void 0;a(h,i[l],m)}return h}function T4(i,u){return Kx(i||[],u||[],VO)}function M4(i,u){return Kx(i||[],u||[],rm)}var k4=cn(function(i){var u=i.length,a=u>1?i[u-1]:void 0;return a=typeof a=="function"?(i.pop(),a):void 0,Yx(i,a)});const D4=k4,dt={chunk:hk,compact:wk,concat:xk,difference:Qk,differenceBy:tD,differenceWith:rD,drop:aD,dropRight:uD,dropRightWhile:cD,dropWhile:sD,fill:MD,findIndex:dx,findLastIndex:tw,first:G1,flatten:VA,flattenDeep:KA,flattenDepth:WD,fromPairs:qA,head:G1,indexOf:AN,initial:TN,intersection:DN,intersectionBy:RN,intersectionWith:IN,join:IR,last:Lo,lastIndexOf:UR,nth:xC,pull:AI,pullAll:Cx,pullAllBy:TI,pullAllWith:MI,pullAt:RI,remove:t3,reverse:Gb,slice:x3,sortedIndex:I3,sortedIndexBy:L3,sortedIndexOf:B3,sortedLastIndex:z3,sortedLastIndexBy:F3,sortedLastIndexOf:$3,sortedUniq:W3,sortedUniqBy:G3,tail:iL,take:aL,takeRight:uL,takeRightWhile:cL,takeWhile:sL,union:ZA,unionBy:QL,unionWith:t4,uniq:n4,uniqBy:r4,uniqWith:o4,unzip:Dm,unzipWith:Yx,without:y4,xor:w4,xorBy:E4,xorWith:j4,zip:A4,zipObject:T4,zipObjectDeep:M4,zipWith:D4},Nn={countBy:Ck,each:z1,eachRight:F1,every:PD,filter:kD,find:RD,findLast:LD,flatMap:JA,flatMapDeep:FD,flatMapDepth:$D,forEach:z1,forEachRight:F1,groupBy:fN,includes:jN,invokeMap:KN,keyBy:FR,map:em,orderBy:CC,partition:wI,reduce:ZI,reduceRight:QI,reject:e3,sample:p3,sampleSize:y3,shuffle:m3,size:w3,some:P3,sortBy:T3},N4={now:QA},pr={after:M2,ary:Ew,before:jw,bind:Pw,bindKey:ZT,curry:ym,curryRight:vm,debounce:e2,defer:Vk,delay:qk,flip:UD,memoize:t2,negate:Dp,once:DC,overArgs:WC,partial:Rx,partialRight:_I,rearg:qI,rest:i3,spread:V3,throttle:n2,unary:XL,wrap:v4},Mt={castArray:r2,clone:o2,cloneDeep:i2,cloneDeepWith:bk,cloneWith:_k,conformsTo:Tk,eq:ml,gt:dN,gte:yN,isArguments:rw,isArray:Mn,isArrayBuffer:QN,isArrayLike:Iu,isArrayLikeObject:xr,isBoolean:tR,isBuffer:tm,isDate:iR,isElement:aR,isEmpty:fR,isEqual:a2,isEqualWith:pR,isError:cm,isFinite:hR,isFunction:_l,isInteger:mx,isLength:u2,isMap:c2,isMatch:yR,isMatchWith:vR,isNaN:bR,isNative:wR,isNil:s2,isNull:xR,isNumber:_x,isObject:Wa,isObjectLike:pi,isPlainObject:fy,isRegExp:wm,isSafeInteger:PR,isSet:l2,isString:wy,isSymbol:$a,isTypedArray:nm,isUndefined:f2,isWeakMap:TR,isWeakSet:kR,lt:qR,lte:JR,toArray:xx,toFinite:Ru,toInteger:Qt,toLength:lx,toNumber:za,toPlainObject:p2,toSafeInteger:CL,toString:kn},lo={add:A2,ceil:fk,divide:iD,floor:XD,max:iC,maxBy:aC,mean:cC,meanBy:sC,min:hC,minBy:yC,multiply:gC,round:l3,subtract:nL,sum:rL,sumBy:oL},Rm={clamp:yk,inRange:xN,random:FI},Ut={assign:NT,assignIn:R1,assignInWith:Zh,assignWith:LT,at:zT,create:Ik,defaults:Wk,defaultsDeep:Hk,entries:$1,entriesIn:W1,extend:R1,extendWith:Zh,findKey:CD,findLastKey:BD,forIn:nN,forInRight:rN,forOwn:oN,forOwnRight:iN,functions:aN,functionsIn:uN,get:KO,has:mN,hasIn:d2,invert:$N,invertBy:HN,invoke:YN,keys:xo,keysIn:Ga,mapKeys:QR,mapValues:eC,merge:h2,mergeWith:tx,omit:MC,omitBy:kC,pick:y2,pickBy:Sx,result:a3,set:v2,setWith:v3,toPairs:$1,toPairsIn:W1,transform:LL,unset:u4,update:s4,updateWith:l4,values:El,valuesIn:d4},la={at:b4,chain:Zw,commit:Ok,lodash:$,next:wC,plant:xI,reverse:_4,tap:lL,thru:Np,toIterator:DL,toJSON:Rb,value:Rb,valueOf:Rb,wrapperChain:m4},xn={camelCase:uk,capitalize:Cw,deburr:Iw,endsWith:dD,escape:ux,escapeRegExp:SD,kebabCase:BR,lowerCase:XR,lowerFirst:VR,pad:pI,padEnd:dI,padStart:hI,parseInt:gI,repeat:n3,replace:r3,snakeCase:S3,split:H3,startCase:q3,startsWith:Z3,template:AL,templateSettings:Ub,toLower:NL,toUpper:IL,trim:BL,trimEnd:zL,trimStart:$L,truncate:HL,unescape:ZL,upperCase:p4,upperFirst:fm,words:qw},En={attempt:Sw,bindAll:YT,cond:Sk,conforms:Ak,constant:nw,defaultTo:zk,flow:QD,flowRight:tN,identity:fi,iteratee:NR,matches:nC,matchesProperty:oC,method:fC,methodOf:dC,mixin:wx,noop:XO,nthArg:EC,over:LC,overEvery:UC,overSome:XC,property:g2,propertyOf:EI,range:HI,rangeRight:YI,stubArray:b2,stubFalse:uw,stubObject:J3,stubString:Q3,stubTrue:eL,times:kL,toPath:RL,uniqueId:a4};function R4(){var i=new ln(this.__wrapped__);return i.__actions__=ui(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=ui(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=ui(this.__views__),i}function C4(){if(this.__filtered__){var i=new ln(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}var I4=Math.max,L4=Math.min;function B4(i,u,a){for(var l=-1,o=a.length;++l<o;){var d=a[l],h=d.size;switch(d.type){case"drop":i+=h;break;case"dropRight":u-=h;break;case"take":u=L4(u,i+h);break;case"takeRight":i=I4(i,u-h);break}}return{start:i,end:u}}var z4=1,F4=2,$4=Math.min;function W4(){var i=this.__wrapped__.value(),u=this.__dir__,a=Mn(i),l=u<0,o=a?i.length:0,d=B4(0,o,this.__views__),h=d.start,m=d.end,g=m-h,E=l?m:h-1,P=this.__iteratees__,j=P.length,k=0,M=$4(g,this.__takeCount__);if(!a||!l&&o==g&&M==g)return Gx(i,this.__actions__);var R=[];e:for(;g--&&k<M;){E+=u;for(var N=-1,I=i[E];++N<j;){var W=P[N],U=W.iteratee,ne=W.type,ue=U(I);if(ne==F4)I=ue;else if(!ue){if(ne==z4)continue e;break e}}R[k++]=I}return R}/**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var G4="4.17.21",U4=2,H4=1,X4=3,qx=4294967295,Y4=Array.prototype,V4=Object.prototype,Zx=V4.hasOwnProperty,Q1=Kh?Kh.iterator:void 0,K4=Math.max,eO=Math.min,Cm=function(i){return function(u,a,l){if(l==null){var o=Wa(a),d=o&&xo(a),h=d&&d.length&&_y(a,d);(h?h.length:o)||(l=a,a=u,u=this)}return i(u,a,l)}}(wx);$.after=pr.after;$.ary=pr.ary;$.assign=Ut.assign;$.assignIn=Ut.assignIn;$.assignInWith=Ut.assignInWith;$.assignWith=Ut.assignWith;$.at=Ut.at;$.before=pr.before;$.bind=pr.bind;$.bindAll=En.bindAll;$.bindKey=pr.bindKey;$.castArray=Mt.castArray;$.chain=la.chain;$.chunk=dt.chunk;$.compact=dt.compact;$.concat=dt.concat;$.cond=En.cond;$.conforms=En.conforms;$.constant=En.constant;$.countBy=Nn.countBy;$.create=Ut.create;$.curry=pr.curry;$.curryRight=pr.curryRight;$.debounce=pr.debounce;$.defaults=Ut.defaults;$.defaultsDeep=Ut.defaultsDeep;$.defer=pr.defer;$.delay=pr.delay;$.difference=dt.difference;$.differenceBy=dt.differenceBy;$.differenceWith=dt.differenceWith;$.drop=dt.drop;$.dropRight=dt.dropRight;$.dropRightWhile=dt.dropRightWhile;$.dropWhile=dt.dropWhile;$.fill=dt.fill;$.filter=Nn.filter;$.flatMap=Nn.flatMap;$.flatMapDeep=Nn.flatMapDeep;$.flatMapDepth=Nn.flatMapDepth;$.flatten=dt.flatten;$.flattenDeep=dt.flattenDeep;$.flattenDepth=dt.flattenDepth;$.flip=pr.flip;$.flow=En.flow;$.flowRight=En.flowRight;$.fromPairs=dt.fromPairs;$.functions=Ut.functions;$.functionsIn=Ut.functionsIn;$.groupBy=Nn.groupBy;$.initial=dt.initial;$.intersection=dt.intersection;$.intersectionBy=dt.intersectionBy;$.intersectionWith=dt.intersectionWith;$.invert=Ut.invert;$.invertBy=Ut.invertBy;$.invokeMap=Nn.invokeMap;$.iteratee=En.iteratee;$.keyBy=Nn.keyBy;$.keys=xo;$.keysIn=Ut.keysIn;$.map=Nn.map;$.mapKeys=Ut.mapKeys;$.mapValues=Ut.mapValues;$.matches=En.matches;$.matchesProperty=En.matchesProperty;$.memoize=pr.memoize;$.merge=Ut.merge;$.mergeWith=Ut.mergeWith;$.method=En.method;$.methodOf=En.methodOf;$.mixin=Cm;$.negate=Dp;$.nthArg=En.nthArg;$.omit=Ut.omit;$.omitBy=Ut.omitBy;$.once=pr.once;$.orderBy=Nn.orderBy;$.over=En.over;$.overArgs=pr.overArgs;$.overEvery=En.overEvery;$.overSome=En.overSome;$.partial=pr.partial;$.partialRight=pr.partialRight;$.partition=Nn.partition;$.pick=Ut.pick;$.pickBy=Ut.pickBy;$.property=En.property;$.propertyOf=En.propertyOf;$.pull=dt.pull;$.pullAll=dt.pullAll;$.pullAllBy=dt.pullAllBy;$.pullAllWith=dt.pullAllWith;$.pullAt=dt.pullAt;$.range=En.range;$.rangeRight=En.rangeRight;$.rearg=pr.rearg;$.reject=Nn.reject;$.remove=dt.remove;$.rest=pr.rest;$.reverse=dt.reverse;$.sampleSize=Nn.sampleSize;$.set=Ut.set;$.setWith=Ut.setWith;$.shuffle=Nn.shuffle;$.slice=dt.slice;$.sortBy=Nn.sortBy;$.sortedUniq=dt.sortedUniq;$.sortedUniqBy=dt.sortedUniqBy;$.split=xn.split;$.spread=pr.spread;$.tail=dt.tail;$.take=dt.take;$.takeRight=dt.takeRight;$.takeRightWhile=dt.takeRightWhile;$.takeWhile=dt.takeWhile;$.tap=la.tap;$.throttle=pr.throttle;$.thru=Np;$.toArray=Mt.toArray;$.toPairs=Ut.toPairs;$.toPairsIn=Ut.toPairsIn;$.toPath=En.toPath;$.toPlainObject=Mt.toPlainObject;$.transform=Ut.transform;$.unary=pr.unary;$.union=dt.union;$.unionBy=dt.unionBy;$.unionWith=dt.unionWith;$.uniq=dt.uniq;$.uniqBy=dt.uniqBy;$.uniqWith=dt.uniqWith;$.unset=Ut.unset;$.unzip=dt.unzip;$.unzipWith=dt.unzipWith;$.update=Ut.update;$.updateWith=Ut.updateWith;$.values=Ut.values;$.valuesIn=Ut.valuesIn;$.without=dt.without;$.words=xn.words;$.wrap=pr.wrap;$.xor=dt.xor;$.xorBy=dt.xorBy;$.xorWith=dt.xorWith;$.zip=dt.zip;$.zipObject=dt.zipObject;$.zipObjectDeep=dt.zipObjectDeep;$.zipWith=dt.zipWith;$.entries=Ut.toPairs;$.entriesIn=Ut.toPairsIn;$.extend=Ut.assignIn;$.extendWith=Ut.assignInWith;Cm($,$);$.add=lo.add;$.attempt=En.attempt;$.camelCase=xn.camelCase;$.capitalize=xn.capitalize;$.ceil=lo.ceil;$.clamp=Rm.clamp;$.clone=Mt.clone;$.cloneDeep=Mt.cloneDeep;$.cloneDeepWith=Mt.cloneDeepWith;$.cloneWith=Mt.cloneWith;$.conformsTo=Mt.conformsTo;$.deburr=xn.deburr;$.defaultTo=En.defaultTo;$.divide=lo.divide;$.endsWith=xn.endsWith;$.eq=Mt.eq;$.escape=xn.escape;$.escapeRegExp=xn.escapeRegExp;$.every=Nn.every;$.find=Nn.find;$.findIndex=dt.findIndex;$.findKey=Ut.findKey;$.findLast=Nn.findLast;$.findLastIndex=dt.findLastIndex;$.findLastKey=Ut.findLastKey;$.floor=lo.floor;$.forEach=Nn.forEach;$.forEachRight=Nn.forEachRight;$.forIn=Ut.forIn;$.forInRight=Ut.forInRight;$.forOwn=Ut.forOwn;$.forOwnRight=Ut.forOwnRight;$.get=Ut.get;$.gt=Mt.gt;$.gte=Mt.gte;$.has=Ut.has;$.hasIn=Ut.hasIn;$.head=dt.head;$.identity=fi;$.includes=Nn.includes;$.indexOf=dt.indexOf;$.inRange=Rm.inRange;$.invoke=Ut.invoke;$.isArguments=Mt.isArguments;$.isArray=Mn;$.isArrayBuffer=Mt.isArrayBuffer;$.isArrayLike=Mt.isArrayLike;$.isArrayLikeObject=Mt.isArrayLikeObject;$.isBoolean=Mt.isBoolean;$.isBuffer=Mt.isBuffer;$.isDate=Mt.isDate;$.isElement=Mt.isElement;$.isEmpty=Mt.isEmpty;$.isEqual=Mt.isEqual;$.isEqualWith=Mt.isEqualWith;$.isError=Mt.isError;$.isFinite=Mt.isFinite;$.isFunction=Mt.isFunction;$.isInteger=Mt.isInteger;$.isLength=Mt.isLength;$.isMap=Mt.isMap;$.isMatch=Mt.isMatch;$.isMatchWith=Mt.isMatchWith;$.isNaN=Mt.isNaN;$.isNative=Mt.isNative;$.isNil=Mt.isNil;$.isNull=Mt.isNull;$.isNumber=Mt.isNumber;$.isObject=Wa;$.isObjectLike=Mt.isObjectLike;$.isPlainObject=Mt.isPlainObject;$.isRegExp=Mt.isRegExp;$.isSafeInteger=Mt.isSafeInteger;$.isSet=Mt.isSet;$.isString=Mt.isString;$.isSymbol=Mt.isSymbol;$.isTypedArray=Mt.isTypedArray;$.isUndefined=Mt.isUndefined;$.isWeakMap=Mt.isWeakMap;$.isWeakSet=Mt.isWeakSet;$.join=dt.join;$.kebabCase=xn.kebabCase;$.last=Lo;$.lastIndexOf=dt.lastIndexOf;$.lowerCase=xn.lowerCase;$.lowerFirst=xn.lowerFirst;$.lt=Mt.lt;$.lte=Mt.lte;$.max=lo.max;$.maxBy=lo.maxBy;$.mean=lo.mean;$.meanBy=lo.meanBy;$.min=lo.min;$.minBy=lo.minBy;$.stubArray=En.stubArray;$.stubFalse=En.stubFalse;$.stubObject=En.stubObject;$.stubString=En.stubString;$.stubTrue=En.stubTrue;$.multiply=lo.multiply;$.nth=dt.nth;$.noop=En.noop;$.now=N4.now;$.pad=xn.pad;$.padEnd=xn.padEnd;$.padStart=xn.padStart;$.parseInt=xn.parseInt;$.random=Rm.random;$.reduce=Nn.reduce;$.reduceRight=Nn.reduceRight;$.repeat=xn.repeat;$.replace=xn.replace;$.result=Ut.result;$.round=lo.round;$.sample=Nn.sample;$.size=Nn.size;$.snakeCase=xn.snakeCase;$.some=Nn.some;$.sortedIndex=dt.sortedIndex;$.sortedIndexBy=dt.sortedIndexBy;$.sortedIndexOf=dt.sortedIndexOf;$.sortedLastIndex=dt.sortedLastIndex;$.sortedLastIndexBy=dt.sortedLastIndexBy;$.sortedLastIndexOf=dt.sortedLastIndexOf;$.startCase=xn.startCase;$.startsWith=xn.startsWith;$.subtract=lo.subtract;$.sum=lo.sum;$.sumBy=lo.sumBy;$.template=xn.template;$.times=En.times;$.toFinite=Mt.toFinite;$.toInteger=Qt;$.toLength=Mt.toLength;$.toLower=xn.toLower;$.toNumber=Mt.toNumber;$.toSafeInteger=Mt.toSafeInteger;$.toString=Mt.toString;$.toUpper=xn.toUpper;$.trim=xn.trim;$.trimEnd=xn.trimEnd;$.trimStart=xn.trimStart;$.truncate=xn.truncate;$.unescape=xn.unescape;$.uniqueId=En.uniqueId;$.upperCase=xn.upperCase;$.upperFirst=xn.upperFirst;$.each=Nn.forEach;$.eachRight=Nn.forEachRight;$.first=dt.head;Cm($,function(){var i={};return Ua($,function(u,a){Zx.call($.prototype,a)||(i[a]=u)}),i}(),{chain:!1});$.VERSION=G4;($.templateSettings=xn.templateSettings).imports._=$;Ci(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){$[i].placeholder=$});Ci(["drop","take"],function(i,u){ln.prototype[i]=function(a){a=a===void 0?1:K4(Qt(a),0);var l=this.__filtered__&&!u?new ln(this):this.clone();return l.__filtered__?l.__takeCount__=eO(a,l.__takeCount__):l.__views__.push({size:eO(a,qx),type:i+(l.__dir__<0?"Right":"")}),l},ln.prototype[i+"Right"]=function(a){return this.reverse()[i](a).reverse()}});Ci(["filter","map","takeWhile"],function(i,u){var a=u+1,l=a==H4||a==X4;ln.prototype[i]=function(o){var d=this.clone();return d.__iteratees__.push({iteratee:Kt(o),type:a}),d.__filtered__=d.__filtered__||l,d}});Ci(["head","last"],function(i,u){var a="take"+(u?"Right":"");ln.prototype[i]=function(){return this[a](1).value()[0]}});Ci(["initial","tail"],function(i,u){var a="drop"+(u?"":"Right");ln.prototype[i]=function(){return this.__filtered__?new ln(this):this[a](1)}});ln.prototype.compact=function(){return this.filter(fi)};ln.prototype.find=function(i){return this.filter(i).head()};ln.prototype.findLast=function(i){return this.reverse().find(i)};ln.prototype.invokeMap=cn(function(i,u){return typeof i=="function"?new ln(this):this.map(function(a){return kp(a,i,u)})});ln.prototype.reject=function(i){return this.filter(Dp(Kt(i)))};ln.prototype.slice=function(i,u){i=Qt(i);var a=this;return a.__filtered__&&(i>0||u<0)?new ln(a):(i<0?a=a.takeRight(-i):i&&(a=a.drop(i)),u!==void 0&&(u=Qt(u),a=u<0?a.dropRight(-u):a.take(u-i)),a)};ln.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()};ln.prototype.toArray=function(){return this.take(qx)};Ua(ln.prototype,function(i,u){var a=/^(?:filter|find|map|reject)|While$/.test(u),l=/^(?:head|last)$/.test(u),o=$[l?"take"+(u=="last"?"Right":""):u],d=l||/^find/.test(u);o&&($.prototype[u]=function(){var h=this.__wrapped__,m=l?[1]:arguments,g=h instanceof ln,E=m[0],P=g||Mn(h),j=function(W){var U=o.apply($,Pp([W],m));return l&&k?U[0]:U};P&&a&&typeof E=="function"&&E.length!=1&&(g=P=!1);var k=this.__chain__,M=!!this.__actions__.length,R=d&&!k,N=g&&!M;if(!d&&P){h=N?h:new ln(this);var I=i.apply(h,m);return I.__actions__.push({func:Np,args:[j],thisArg:void 0}),new si(I,k)}return R&&N?i.apply(this,m):(I=this.thru(j),R?l?I.value()[0]:I.value():I)})});Ci(["pop","push","shift","sort","splice","unshift"],function(i){var u=Y4[i],a=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",l=/^(?:pop|shift)$/.test(i);$.prototype[i]=function(){var o=arguments;if(l&&!this.__chain__){var d=this.value();return u.apply(Mn(d)?d:[],o)}return this[a](function(h){return u.apply(Mn(h)?h:[],o)})}});Ua(ln.prototype,function(i,u){var a=$[u];if(a){var l=a.name+"";Zx.call(hl,l)||(hl[l]=[]),hl[l].push({name:u,func:a})}});hl[gy(void 0,U4).name]=[{name:"wrapper",func:void 0}];ln.prototype.clone=R4;ln.prototype.reverse=C4;ln.prototype.value=W4;$.prototype.at=la.at;$.prototype.chain=la.wrapperChain;$.prototype.commit=la.commit;$.prototype.next=la.next;$.prototype.plant=la.plant;$.prototype.reverse=la.reverse;$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=la.value;$.prototype.first=$.prototype.head;Q1&&($.prototype[Q1]=la.toIterator);const q4=[{incoming:[],outgoing:["Flow_33inf2k"],dockers:[],type:2,properties:{a:"efrwe",b:"wewe",name:"开始",x:280,y:200,text:{x:280,y:200,value:"开始"},logicFlowType:"bpmn:startEvent"},key:"Event_1d42u4p"},{incoming:["Flow_379e0o9"],outgoing:[],dockers:[],type:3,properties:{a:"efrwe",b:"wewe",name:"结束",x:920,y:200,text:{x:920,y:200,value:"结束"},logicFlowType:"bpmn:endEvent"},key:"Event_08p8i6q"},{incoming:["Flow_0pfouf0"],outgoing:["Flow_3918lhh"],dockers:[],type:6,properties:{a:"efrwe",b:"wewe",name:"网关",x:580,y:200,text:{x:580,y:200,value:"网关"},logicFlowType:"bpmn:exclusiveGateway"},key:"Gateway_1fngqgj"},{incoming:["Flow_33inf2k"],outgoing:["Flow_0pfouf0"],dockers:[],type:4,properties:{a:"efrwe",b:"wewe",name:"用户",x:420,y:200,text:{x:420,y:200,value:"用户"},logicFlowType:"bpmn:userTask"},key:"Activity_2mgtaia"},{incoming:["Flow_3918lhh"],outgoing:["Flow_379e0o9"],dockers:[],type:5,properties:{a:"efrwe",b:"wewe",name:"服务",x:760,y:200,text:{x:760,y:200,value:"服务"},logicFlowType:"bpmn:serviceTask"},key:"Activity_1sp8qc8"},{incoming:["Event_1d42u4p"],outgoing:["Activity_2mgtaia"],type:1,dockers:[],properties:{name:"边",text:{x:331,y:200,value:"边"},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:"边2",text:{x:507,y:200,value:"边2"},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:"边3",text:{x:664,y:200,value:"边3"},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:"边4",text:{x:871,y:200,value:"边4"},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"}],Z4={flowElementList:q4};var Hb={exports:{}};(function(i,u){(function(a,l){i.exports=l()})(window,function(){return function(a){var l={};function o(d){if(l[d])return l[d].exports;var h=l[d]={i:d,l:!1,exports:{}};return a[d].call(h.exports,h,h.exports,o),h.l=!0,h.exports}return o.m=a,o.c=l,o.d=function(d,h,m){o.o(d,h)||Object.defineProperty(d,h,{enumerable:!0,get:m})},o.r=function(d){typeof Symbol<"u"&&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 m=Object.create(null);if(o.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:d}),2&h&&typeof d!="string")for(var g in d)o.d(m,g,(function(E){return d[E]}).bind(null,g));return m},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=220)}([function(a,l,o){o.d(l,"a",function(){return re}),o.d(l,"b",function(){return ue}),o.d(l,"c",function(){return Ke}),o.d(l,"d",function(){return gt}),o.d(l,"e",function(){return W}),o.d(l,"f",function(){return ne}),o.d(l,"g",function(){return W}),o.d(l,"h",function(){return Ge}),o.d(l,"i",function(){return h}),o.d(l,"j",function(){return vt}),o.d(l,"k",function(){return q});var d,h,m,g,E,P,j,k={},M=[],R=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function N(le,se){for(var be in se)le[be]=se[be];return le}function I(le){var se=le.parentNode;se&&se.removeChild(le)}function W(le,se,be){var Re,Ue,Be,xt={};for(Be in se)Be=="key"?Re=se[Be]:Be=="ref"?Ue=se[Be]:xt[Be]=se[Be];if(arguments.length>2&&(xt.children=arguments.length>3?d.call(arguments,2):be),typeof le=="function"&&le.defaultProps!=null)for(Be in le.defaultProps)xt[Be]===void 0&&(xt[Be]=le.defaultProps[Be]);return U(le,xt,Re,Ue,null)}function U(le,se,be,Re,Ue){var Be={type:le,props:se,key:be,ref:Re,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Ue??++m};return Ue==null&&h.vnode!=null&&h.vnode(Be),Be}function ne(){return{current:null}}function ue(le){return le.children}function re(le,se){this.props=le,this.context=se}function Q(le,se){if(se==null)return le.__?Q(le.__,le.__.__k.indexOf(le)+1):null;for(var be;se<le.__k.length;se++)if((be=le.__k[se])!=null&&be.__e!=null)return be.__e;return typeof le.type=="function"?Q(le):null}function ee(le){var se,be;if((le=le.__)!=null&&le.__c!=null){for(le.__e=le.__c.base=null,se=0;se<le.__k.length;se++)if((be=le.__k[se])!=null&&be.__e!=null){le.__e=le.__c.base=be.__e;break}return ee(le)}}function H(le){(!le.__d&&(le.__d=!0)&&g.push(le)&&!B.__r++||P!==h.debounceRendering)&&((P=h.debounceRendering)||E)(B)}function B(){for(var le;B.__r=g.length;)le=g.sort(function(se,be){return se.__v.__b-be.__v.__b}),g=[],le.some(function(se){var be,Re,Ue,Be,xt,kt;se.__d&&(xt=(Be=(be=se).__v).__e,(kt=be.__P)&&(Re=[],(Ue=N({},Be)).__v=Be.__v+1,je(kt,Be,Ue,be.__n,kt.ownerSVGElement!==void 0,Be.__h!=null?[xt]:null,Re,xt??Q(Be),Be.__h),ge(Re,Be),Be.__e!=xt&&ee(Be)))})}function X(le,se,be,Re,Ue,Be,xt,kt,jt,yt){var ke,ct,pe,ot,Lt,fn,Bt,tn=Re&&Re.__k||M,mn=tn.length;for(be.__k=[],ke=0;ke<se.length;ke++)if((ot=be.__k[ke]=(ot=se[ke])==null||typeof ot=="boolean"?null:typeof ot=="string"||typeof ot=="number"||typeof ot=="bigint"?U(null,ot,null,null,ot):Array.isArray(ot)?U(ue,{children:ot},null,null,null):ot.__b>0?U(ot.type,ot.props,ot.key,null,ot.__v):ot)!=null){if(ot.__=be,ot.__b=be.__b+1,(pe=tn[ke])===null||pe&&ot.key==pe.key&&ot.type===pe.type)tn[ke]=void 0;else for(ct=0;ct<mn;ct++){if((pe=tn[ct])&&ot.key==pe.key&&ot.type===pe.type){tn[ct]=void 0;break}pe=null}je(le,ot,pe=pe||k,Ue,Be,xt,kt,jt,yt),Lt=ot.__e,(ct=ot.ref)&&pe.ref!=ct&&(Bt||(Bt=[]),pe.ref&&Bt.push(pe.ref,null,ot),Bt.push(ct,ot.__c||Lt,ot)),Lt!=null?(fn==null&&(fn=Lt),typeof ot.type=="function"&&ot.__k===pe.__k?ot.__d=jt=V(ot,jt,le):jt=ce(le,ot,pe,tn,Lt,jt),typeof be.type=="function"&&(be.__d=jt)):jt&&pe.__e==jt&&jt.parentNode!=le&&(jt=Q(pe))}for(be.__e=fn,ke=mn;ke--;)tn[ke]!=null&&(typeof be.type=="function"&&tn[ke].__e!=null&&tn[ke].__e==be.__d&&(be.__d=Q(Re,ke+1)),We(tn[ke],tn[ke]));if(Bt)for(ke=0;ke<Bt.length;ke++)Te(Bt[ke],Bt[++ke],Bt[++ke])}function V(le,se,be){for(var Re,Ue=le.__k,Be=0;Ue&&Be<Ue.length;Be++)(Re=Ue[Be])&&(Re.__=le,se=typeof Re.type=="function"?V(Re,se,be):ce(be,Re,Re,Ue,Re.__e,se));return se}function q(le,se){return se=se||[],le==null||typeof le=="boolean"||(Array.isArray(le)?le.some(function(be){q(be,se)}):se.push(le)),se}function ce(le,se,be,Re,Ue,Be){var xt,kt,jt;if(se.__d!==void 0)xt=se.__d,se.__d=void 0;else if(be==null||Ue!=Be||Ue.parentNode==null)e:if(Be==null||Be.parentNode!==le)le.appendChild(Ue),xt=null;else{for(kt=Be,jt=0;(kt=kt.nextSibling)&&jt<Re.length;jt+=2)if(kt==Ue)break e;le.insertBefore(Ue,Be),xt=Be}return xt!==void 0?xt:Ue.nextSibling}function we(le,se,be){se[0]==="-"?le.setProperty(se,be):le[se]=be==null?"":typeof be!="number"||R.test(se)?be:be+"px"}function ye(le,se,be,Re,Ue){var Be;e:if(se==="style")if(typeof be=="string")le.style.cssText=be;else{if(typeof Re=="string"&&(le.style.cssText=Re=""),Re)for(se in Re)be&&se in be||we(le.style,se,"");if(be)for(se in be)Re&&be[se]===Re[se]||we(le.style,se,be[se])}else if(se[0]==="o"&&se[1]==="n")Be=se!==(se=se.replace(/Capture$/,"")),se=se.toLowerCase()in le?se.toLowerCase().slice(2):se.slice(2),le.l||(le.l={}),le.l[se+Be]=be,be?Re||le.addEventListener(se,Be?Fe:Ae,Be):le.removeEventListener(se,Be?Fe:Ae,Be);else if(se!=="dangerouslySetInnerHTML"){if(Ue)se=se.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(se!=="href"&&se!=="list"&&se!=="form"&&se!=="tabIndex"&&se!=="download"&&se in le)try{le[se]=be??"";break e}catch{}typeof be=="function"||(be!=null&&(be!==!1||se[0]==="a"&&se[1]==="r")?le.setAttribute(se,be):le.removeAttribute(se))}}function Ae(le){this.l[le.type+!1](h.event?h.event(le):le)}function Fe(le){this.l[le.type+!0](h.event?h.event(le):le)}function je(le,se,be,Re,Ue,Be,xt,kt,jt){var yt,ke,ct,pe,ot,Lt,fn,Bt,tn,mn,Dn,Rt=se.type;if(se.constructor!==void 0)return null;be.__h!=null&&(jt=be.__h,kt=se.__e=be.__e,se.__h=null,Be=[kt]),(yt=h.__b)&&yt(se);try{e:if(typeof Rt=="function"){if(Bt=se.props,tn=(yt=Rt.contextType)&&Re[yt.__c],mn=yt?tn?tn.props.value:yt.__:Re,be.__c?fn=(ke=se.__c=be.__c).__=ke.__E:("prototype"in Rt&&Rt.prototype.render?se.__c=ke=new Rt(Bt,mn):(se.__c=ke=new re(Bt,mn),ke.constructor=Rt,ke.render=tt),tn&&tn.sub(ke),ke.props=Bt,ke.state||(ke.state={}),ke.context=mn,ke.__n=Re,ct=ke.__d=!0,ke.__h=[]),ke.__s==null&&(ke.__s=ke.state),Rt.getDerivedStateFromProps!=null&&(ke.__s==ke.state&&(ke.__s=N({},ke.__s)),N(ke.__s,Rt.getDerivedStateFromProps(Bt,ke.__s))),pe=ke.props,ot=ke.state,ct)Rt.getDerivedStateFromProps==null&&ke.componentWillMount!=null&&ke.componentWillMount(),ke.componentDidMount!=null&&ke.__h.push(ke.componentDidMount);else{if(Rt.getDerivedStateFromProps==null&&Bt!==pe&&ke.componentWillReceiveProps!=null&&ke.componentWillReceiveProps(Bt,mn),!ke.__e&&ke.shouldComponentUpdate!=null&&ke.shouldComponentUpdate(Bt,ke.__s,mn)===!1||se.__v===be.__v){ke.props=Bt,ke.state=ke.__s,se.__v!==be.__v&&(ke.__d=!1),ke.__v=se,se.__e=be.__e,se.__k=be.__k,se.__k.forEach(function(Xn){Xn&&(Xn.__=se)}),ke.__h.length&&xt.push(ke);break e}ke.componentWillUpdate!=null&&ke.componentWillUpdate(Bt,ke.__s,mn),ke.componentDidUpdate!=null&&ke.__h.push(function(){ke.componentDidUpdate(pe,ot,Lt)})}ke.context=mn,ke.props=Bt,ke.state=ke.__s,(yt=h.__r)&&yt(se),ke.__d=!1,ke.__v=se,ke.__P=le,yt=ke.render(ke.props,ke.state,ke.context),ke.state=ke.__s,ke.getChildContext!=null&&(Re=N(N({},Re),ke.getChildContext())),ct||ke.getSnapshotBeforeUpdate==null||(Lt=ke.getSnapshotBeforeUpdate(pe,ot)),Dn=yt!=null&&yt.type===ue&&yt.key==null?yt.props.children:yt,X(le,Array.isArray(Dn)?Dn:[Dn],se,be,Re,Ue,Be,xt,kt,jt),ke.base=se.__e,se.__h=null,ke.__h.length&&xt.push(ke),fn&&(ke.__E=ke.__=null),ke.__e=!1}else Be==null&&se.__v===be.__v?(se.__k=be.__k,se.__e=be.__e):se.__e=Pe(be.__e,se,be,Re,Ue,Be,xt,jt);(yt=h.diffed)&&yt(se)}catch(Xn){se.__v=null,(jt||Be!=null)&&(se.__e=kt,se.__h=!!jt,Be[Be.indexOf(kt)]=null),h.__e(Xn,se,be)}}function ge(le,se){h.__c&&h.__c(se,le),le.some(function(be){try{le=be.__h,be.__h=[],le.some(function(Re){Re.call(be)})}catch(Re){h.__e(Re,be.__v)}})}function Pe(le,se,be,Re,Ue,Be,xt,kt){var jt,yt,ke,ct=be.props,pe=se.props,ot=se.type,Lt=0;if(ot==="svg"&&(Ue=!0),Be!=null){for(;Lt<Be.length;Lt++)if((jt=Be[Lt])&&"setAttribute"in jt==!!ot&&(ot?jt.localName===ot:jt.nodeType===3)){le=jt,Be[Lt]=null;break}}if(le==null){if(ot===null)return document.createTextNode(pe);le=Ue?document.createElementNS("http://www.w3.org/2000/svg",ot):document.createElement(ot,pe.is&&pe),Be=null,kt=!1}if(ot===null)ct===pe||kt&&le.data===pe||(le.data=pe);else{if(Be=Be&&d.call(le.childNodes),yt=(ct=be.props||k).dangerouslySetInnerHTML,ke=pe.dangerouslySetInnerHTML,!kt){if(Be!=null)for(ct={},Lt=0;Lt<le.attributes.length;Lt++)ct[le.attributes[Lt].name]=le.attributes[Lt].value;(ke||yt)&&(ke&&(yt&&ke.__html==yt.__html||ke.__html===le.innerHTML)||(le.innerHTML=ke&&ke.__html||""))}if(function(fn,Bt,tn,mn,Dn){var Rt;for(Rt in tn)Rt==="children"||Rt==="key"||Rt in Bt||ye(fn,Rt,null,tn[Rt],mn);for(Rt in Bt)Dn&&typeof Bt[Rt]!="function"||Rt==="children"||Rt==="key"||Rt==="value"||Rt==="checked"||tn[Rt]===Bt[Rt]||ye(fn,Rt,Bt[Rt],tn[Rt],mn)}(le,pe,ct,Ue,kt),ke)se.__k=[];else if(Lt=se.props.children,X(le,Array.isArray(Lt)?Lt:[Lt],se,be,Re,Ue&&ot!=="foreignObject",Be,xt,Be?Be[0]:be.__k&&Q(be,0),kt),Be!=null)for(Lt=Be.length;Lt--;)Be[Lt]!=null&&I(Be[Lt]);kt||("value"in pe&&(Lt=pe.value)!==void 0&&(Lt!==ct.value||Lt!==le.value||ot==="progress"&&!Lt)&&ye(le,"value",Lt,ct.value,!1),"checked"in pe&&(Lt=pe.checked)!==void 0&&Lt!==le.checked&&ye(le,"checked",Lt,ct.checked,!1))}return le}function Te(le,se,be){try{typeof le=="function"?le(se):le.current=se}catch(Re){h.__e(Re,be)}}function We(le,se,be){var Re,Ue;if(h.unmount&&h.unmount(le),(Re=le.ref)&&(Re.current&&Re.current!==le.__e||Te(Re,null,se)),(Re=le.__c)!=null){if(Re.componentWillUnmount)try{Re.componentWillUnmount()}catch(Be){h.__e(Be,se)}Re.base=Re.__P=null}if(Re=le.__k)for(Ue=0;Ue<Re.length;Ue++)Re[Ue]&&We(Re[Ue],se,typeof le.type!="function");be||le.__e==null||I(le.__e),le.__e=le.__d=void 0}function tt(le,se,be){return this.constructor(le,be)}function vt(le,se,be){var Re,Ue,Be;h.__&&h.__(le,se),Ue=(Re=typeof be=="function")?null:be&&be.__k||se.__k,Be=[],je(se,le=(!Re&&be||se).__k=W(ue,null,[le]),Ue||k,k,se.ownerSVGElement!==void 0,!Re&&be?[be]:Ue?null:se.firstChild?d.call(se.childNodes):null,Be,!Re&&be?be:Ue?Ue.__e:se.firstChild,Re),ge(Be,le)}function Ge(le,se){vt(le,se,Ge)}function Ke(le,se,be){var Re,Ue,Be,xt=N({},le.props);for(Be in se)Be=="key"?Re=se[Be]:Be=="ref"?Ue=se[Be]:xt[Be]=se[Be];return arguments.length>2&&(xt.children=arguments.length>3?d.call(arguments,2):be),U(le.type,xt,Re||le.key,Ue||le.ref,null)}function gt(le,se){var be={__c:se="__cC"+j++,__:le,Consumer:function(Re,Ue){return Re.children(Ue)},Provider:function(Re){var Ue,Be;return this.getChildContext||(Ue=[],(Be={})[se]=this,this.getChildContext=function(){return Be},this.shouldComponentUpdate=function(xt){this.props.value!==xt.value&&Ue.some(H)},this.sub=function(xt){Ue.push(xt);var kt=xt.componentWillUnmount;xt.componentWillUnmount=function(){Ue.splice(Ue.indexOf(xt),1),kt&&kt.call(xt)}}),Re.children}};return be.Provider.__=be.Consumer.contextType=be}d=M.slice,h={__e:function(le,se){for(var be,Re,Ue;se=se.__;)if((be=se.__c)&&!be.__)try{if((Re=be.constructor)&&Re.getDerivedStateFromError!=null&&(be.setState(Re.getDerivedStateFromError(le)),Ue=be.__d),be.componentDidCatch!=null&&(be.componentDidCatch(le),Ue=be.__d),Ue)return be.__E=be}catch(Be){le=Be}throw le}},m=0,re.prototype.setState=function(le,se){var be;be=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=N({},this.state),typeof le=="function"&&(le=le(N({},be),this.props)),le&&N(be,le),le!=null&&this.__v&&(se&&this.__h.push(se),H(this))},re.prototype.forceUpdate=function(le){this.__v&&(this.__e=!0,le&&this.__h.push(le),H(this))},re.prototype.render=ue,g=[],E=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,B.__r=0,j=0},function(a,l,o){(function(d,h){o.d(l,"a",function(){return H}),o.d(l,"b",function(){return ic}),o.d(l,"c",function(){return yo}),o.d(l,"d",function(){return St}),o.d(l,"e",function(){return Ve}),o.d(l,"f",function(){return Ye}),o.d(l,"g",function(){return mt}),o.d(l,"h",function(){return ko}),o.d(l,"i",function(){return Dn}),o.d(l,"j",function(){return it}),o.d(l,"k",function(){return Fo}),o.d(l,"l",function(){return Ku}),o.d(l,"m",function(){return fn}),o.d(l,"n",function(){return Li}),o.d(l,"o",function(){return V}),o.d(l,"p",function(){return Qc}),o.d(l,"q",function(){return $o}),o.d(l,"r",function(){return Va}),o.d(l,"s",function(){return eo}),o.d(l,"t",function(){return Gn}),o.d(l,"u",function(){return Ya}),o.d(l,"v",function(){return Jc}),o.d(l,"w",function(){return ec}),o.d(l,"x",function(){return Bi}),o.d(l,"y",function(){return Qr}),o.d(l,"z",function(){return er}),o.d(l,"A",function(){return Cr}),o.d(l,"B",function(){return jo}),o.d(l,"C",function(){return yt}),o.d(l,"D",function(){return es}),o.d(l,"E",function(){return pn}),o.d(l,"F",function(){return hn}),o.d(l,"G",function(){return Yu}),o.d(l,"H",function(){return Xu}),o.d(l,"I",function(){return tc}),o.d(l,"J",function(){return ir}),o.d(l,"K",function(){return he}),o.d(l,"L",function(){return wn}),o.d(l,"M",function(){return qa});var m=[];Object.freeze(m);var g={};function E(){return++st.mobxGuid}function P(O){throw j(!1,O),"X"}function j(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 I(O,w,T){Object.defineProperty(O,w,{enumerable:!1,writable:!0,configurable:!0,value:T})}function W(O,w){var T="isMobX"+O;return w.prototype[T]=!0,function(z){return R(z)&&z[T]===!0}}function U(O){return O instanceof Map}function ne(O){return O instanceof Set}function ue(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 re(O){return O&&O.toString?O.toString():new String(O).toString()}function Q(O){return O===null?null:typeof O=="object"?""+O:O}var ee=typeof Reflect<"u"&&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=ct.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 Xa(this)},O.prototype.reportChanged=function(){Mr(),function(w){w.lowestObserverState!==ct.STALE&&(w.lowestObserverState=ct.STALE,w.observers.forEach(function(T){T.dependenciesState===ct.UP_TO_DATE&&(T.isTracing!==pe.NONE&&ho(T,w),T.onBecomeStale()),T.dependenciesState=ct.STALE}))}(this),zr()},O.prototype.toString=function(){return this.name},O}(),X=W("Atom",B);function V(O,w,T){w===void 0&&(w=M),T===void 0&&(T=M);var z,K=new B(O);return w!==M&&qc("onBecomeObserved",K,w,z),T!==M&&pn(K,T),K}var q={identity:function(O,w){return O===w},structural:function(O,w){return Ce(O,w)},default:function(O,w){return Object.is(O,w)},shallow:function(O,w){return Ce(O,w,1)}},ce=function(O,w){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,z){T.__proto__=z}||function(T,z){for(var K in z)z.hasOwnProperty(K)&&(T[K]=z[K])},ce(O,w)};/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var we=function(){return we=Object.assign||function(O){for(var w,T=1,z=arguments.length;T<z;T++)for(var K in w=arguments[T])Object.prototype.hasOwnProperty.call(w,K)&&(O[K]=w[K]);return O},we.apply(this,arguments)};function ye(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,K,de=T.call(O),Se=[];try{for(;(w===void 0||w-- >0)&&!(z=de.next()).done;)Se.push(z.value)}catch($e){K={error:$e}}finally{try{z&&!z.done&&(T=de.return)&&T.call(de)}finally{if(K)throw K.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"),ge=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 tt(this),this[O]},set:function(z){tt(this),this[O]=z}})}function tt(O){var w,T;if(O[je]!==!0){var z=O[ge];if(z){I(O,je,!0);var K=Fe(Object.getOwnPropertySymbols(z),Object.keys(z));try{for(var de=ye(K),Se=de.next();!Se.done;Se=de.next()){var $e=z[Se.value];$e.propertyCreator(O,$e.prop,$e.descriptor,$e.decoratorTarget,$e.decoratorArguments)}}catch(at){w={error:at}}finally{try{Se&&!Se.done&&(T=de.return)&&T.call(de)}finally{if(w)throw w.error}}}}}function vt(O,w){return function(){var T,z=function(K,de,Se,$e){if($e===!0)return w(K,de,Se,K,T),null;if(!Object.prototype.hasOwnProperty.call(K,ge)){var at=K[ge];I(K,ge,we({},at))}return K[ge][de]={prop:de,propertyCreator:w,descriptor:Se,decoratorTarget:K,decoratorArguments:T},We(de,O)};return Ge(arguments)?(T=m,z.apply(null,arguments)):(T=Array.prototype.slice.call(arguments),z)}}function Ge(O){return(O.length===2||O.length===3)&&(typeof O[1]=="string"||typeof O[1]=="symbol")||O.length===4&&O[3]===!0}function Ke(O,w,T){return Bi(O)?O:Array.isArray(O)?yt.array(O,{name:T}):N(O)?yt.object(O,void 0,{name:T}):U(O)?yt.map(O,{name:T}):ne(O)?yt.set(O,{name:T}):O}function gt(O){return O}function le(O){j(O);var w=vt(!0,function(z,K,de,Se,$e){var at=de?de.initializer?de.initializer.call(z):de.value:void 0;Fr(z).addObservableProp(K,at,O)}),T=(d!==void 0&&d.env,w);return T.enhancer=O,T}var se={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function be(O){return O==null?se:typeof O=="string"?{name:O,deep:!0,proxy:!0}:O}Object.freeze(se);var Re=le(Ke),Ue=le(function(O,w,T){return O==null||Cr(O)||Qr(O)||er(O)||Sr(O)?O:Array.isArray(O)?yt.array(O,{name:T,deep:!1}):N(O)?yt.object(O,void 0,{name:T,deep:!1}):U(O)?yt.map(O,{name:T,deep:!1}):ne(O)?yt.set(O,{name:T,deep:!1}):P(!1)}),Be=le(gt),xt=le(function(O,w,T){return Ce(O,w)?w:O});function kt(O){return O.defaultDecorator?O.defaultDecorator.enhancer:O.deep===!1?gt:Ke}var jt={box:function(O,w){arguments.length>2&&ke("box");var T=be(w);return new zn(O,kt(T),T.name,!0,T.equals)},array:function(O,w){arguments.length>2&&ke("array");var T=be(w);return ha(O,kt(T),T.name)},map:function(O,w){arguments.length>2&&ke("map");var T=be(w);return new ic(O,kt(T),T.name)},set:function(O,w){arguments.length>2&&ke("set");var T=be(w);return new To(O,kt(T),T.name)},object:function(O,w,T){typeof arguments[1]=="string"&&ke("object");var z=be(T);if(z.proxy===!1)return $o({},O,w,z);var K=qu(z),de=$o({},void 0,void 0,z),Se=zi(de);return Zc(Se,O,w,K),Se},ref:Be,shallow:Ue,deep:Re,struct:xt},yt=function(O,w,T){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return Re.apply(null,arguments);if(Bi(O))return O;var z=N(O)?yt.object(O,w,T):Array.isArray(O)?yt.array(O,w):U(O)?yt.map(O,w):ne(O)?yt.set(O,w):O;if(z!==O)return z;P(!1)};function ke(O){P("Expected one or two arguments to observable."+O+". Did you accidentally try to use observable."+O+" as decorator?")}Object.keys(jt).forEach(function(O){return yt[O]=jt[O]});var ct,pe,ot=vt(!1,function(O,w,T,z,K){var de=T.get,Se=T.set,$e=K[0]||{};Fr(O).addComputedProp(O,w,we({get:de,set:Se,context:O},$e))}),Lt=ot({equals:q.structural}),fn=function(O,w,T){if(typeof w=="string"||O!==null&&typeof O=="object"&&arguments.length===1)return ot.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 So(z)};fn.struct=Lt,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"}(ct||(ct={})),function(O){O[O.NONE=0]="NONE",O[O.LOG=1]="LOG",O[O.BREAK=2]="BREAK"}(pe||(pe={}));var Bt=function(O){this.cause=O};function tn(O){return O instanceof Bt}function mn(O){switch(O.dependenciesState){case ct.UP_TO_DATE:return!1;case ct.NOT_TRACKING:case ct.STALE:return!0;case ct.POSSIBLY_STALE:for(var w=Ye(!0),T=ae(),z=O.observing,K=z.length,de=0;de<K;de++){var Se=z[de];if(zo(Se)){if(st.disableErrorBoundaries)Se.get();else try{Se.get()}catch{return _e(T),Ve(w),!0}if(O.dependenciesState===ct.STALE)return _e(T),Ve(w),!0}}return ft(O),_e(T),Ve(w),!1}}function Dn(){return st.trackingDerivation!==null}function Rt(O){var w=O.observers.size>0;st.computationDepth>0&&w&&P(!1),st.allowStateChanges||!w&&st.enforceActions!=="strict"||P(!1)}function Xn(O,w,T){var z=Ye(!0);ft(O),O.newObserving=new Array(O.observing.length+100),O.unboundDepsCount=0,O.runId=++st.runId;var K,de=st.trackingDerivation;if(st.trackingDerivation=O,st.disableErrorBoundaries===!0)K=w.call(T);else try{K=w.call(T)}catch(Se){K=new Bt(Se)}return st.trackingDerivation=de,function(Se){for(var $e=Se.observing,at=Se.observing=Se.newObserving,Vt=ct.UP_TO_DATE,et=0,_n=Se.unboundDepsCount,Ft=0;Ft<_n;Ft++)(sn=at[Ft]).diffValue===0&&(sn.diffValue=1,et!==Ft&&(at[et]=sn),et++),sn.dependenciesState>Vt&&(Vt=sn.dependenciesState);for(at.length=et,Se.newObserving=null,_n=$e.length;_n--;)(sn=$e[_n]).diffValue===0&&Wu(sn,Se),sn.diffValue=0;for(;et--;){var sn;(sn=at[et]).diffValue===1&&(sn.diffValue=0,Tl(sn,Se))}Vt!==ct.UP_TO_DATE&&(Se.dependenciesState=Vt,Se.onBecomeStale())}(O),Ve(z),K}function J(O){var w=O.observing;O.observing=[];for(var T=w.length;T--;)Wu(w[T],O);O.dependenciesState=ct.NOT_TRACKING}function he(O){var w=ae();try{return O()}finally{_e(w)}}function ae(){var O=st.trackingDerivation;return st.trackingDerivation=null,O}function _e(O){st.trackingDerivation=O}function Ye(O){var w=st.allowStateReads;return st.allowStateReads=O,w}function Ve(O){st.allowStateReads=O}function ft(O){if(O.dependenciesState!==ct.UP_TO_DATE){O.dependenciesState=ct.UP_TO_DATE;for(var w=O.observing,T=w.length;T--;)w[T].lowestObserverState=ct.UP_TO_DATE}}var Ht=0,or=1,vr=Object.getOwnPropertyDescriptor(function(){},"name");vr&&vr.configurable;function Yn(O,w,T){var z=function(){return Qn(O,w,T||this,arguments)};return z.isMobxAction=!0,z}function Qn(O,w,T,z){var K=it();try{return w.apply(T,z)}catch(de){throw K.error=de,de}finally{mt(K)}}function it(O,w,T){var z=0,K=ae();Mr();var de={prevDerivation:K,prevAllowStateChanges:Ct(!0),prevAllowStateReads:Ye(!0),notifySpy:!1,startTime:z,actionId:or++,parentActionId:Ht};return Ht=de.actionId,de}function mt(O){Ht!==O.actionId&&P("invalid action stack. did you forget to finish an action?"),Ht=O.parentActionId,O.error!==void 0&&(st.suppressReactionErrors=!0),gn(O.prevAllowStateChanges),Ve(O.prevAllowStateReads),zr(),_e(O.prevDerivation),O.notifySpy,st.suppressReactionErrors=!1}function St(O,w){var T,z=Ct(O);try{T=w()}finally{gn(z)}return T}function Ct(O){var w=st.allowStateChanges;return st.allowStateChanges=O,w}function gn(O){st.allowStateChanges=O}var zn=function(O){function w(T,z,K,de,Se){K===void 0&&(K="ObservableValue@"+E()),Se===void 0&&(Se=q.default);var $e=O.call(this,K)||this;return $e.enhancer=z,$e.name=K,$e.equals=Se,$e.hasUnreportedChange=!1,$e.value=z(T,void 0,K),$e}return function(T,z){function K(){this.constructor=T}ce(T,z),T.prototype=z===null?Object.create(z):(K.prototype=z.prototype,new K)}(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))!==st.UNCHANGED&&this.setNewValue(T)},w.prototype.prepareNewValue=function(T){if(Rt(this),Nr(this)){var z=nn(this,{object:this,type:"update",newValue:T});if(!z)return st.UNCHANGED;T=z.newValue}return T=this.enhancer(T,this.value,this.name),this.equals(this.value,T)?st.UNCHANGED:T},w.prototype.setNewValue=function(T){var z=this.value;this.value=T,this.reportChanged(),Rr(this)&&dr(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}),Ao(this,T)},w.prototype.toJSON=function(){return this.get()},w.prototype.toString=function(){return this.name+"["+this.value+"]"},w.prototype.valueOf=function(){return Q(this.get())},w.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},w}(B),Bo=W("ObservableValue",zn),So=function(){function O(w){this.dependenciesState=ct.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=ct.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+E(),this.value=new Bt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=pe.NONE,j(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===ct.UP_TO_DATE&&(w.lowestObserverState=ct.POSSIBLY_STALE,w.observers.forEach(function(T){T.dependenciesState===ct.UP_TO_DATE&&(T.dependenciesState=ct.POSSIBLY_STALE,T.isTracing!==pe.NONE&&ho(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&&P("Cycle detected in computation "+this.name+": "+this.derivation),st.inBatch!==0||this.observers.size!==0||this.keepAlive?(Xa(this),mn(this)&&this.trackAndCompute()&&function(T){T.lowestObserverState!==ct.STALE&&(T.lowestObserverState=ct.STALE,T.observers.forEach(function(z){z.dependenciesState===ct.POSSIBLY_STALE?z.dependenciesState=ct.STALE:z.dependenciesState===ct.UP_TO_DATE&&(T.lowestObserverState=ct.UP_TO_DATE)}))}(this)):mn(this)&&(this.warnAboutUntrackedRead(),Mr(),this.value=this.computeValue(!1),zr());var w=this.value;if(tn(w))throw w.cause;return w},O.prototype.peek=function(){var w=this.computeValue(!1);if(tn(w))throw w.cause;return w},O.prototype.set=function(w){if(this.setter){j(!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 j(!1,!1)},O.prototype.trackAndCompute=function(){var w=this.value,T=this.dependenciesState===ct.NOT_TRACKING,z=this.computeValue(!0),K=T||tn(w)||tn(z)||!this.equals(w,z);return K&&(this.value=z),K},O.prototype.computeValue=function(w){var T;if(this.isComputing=!0,st.computationDepth++,w)T=Xn(this,this.derivation,this.scope);else if(st.disableErrorBoundaries===!0)T=this.derivation.call(this.scope);else try{T=this.derivation.call(this.scope)}catch(z){T=new Bt(z)}return st.computationDepth--,this.isComputing=!1,T},O.prototype.suspend=function(){this.keepAlive||(J(this),this.value=void 0)},O.prototype.observe=function(w,T){var z=this,K=!0,de=void 0;return Ku(function(){var Se=z.get();if(!K||T){var $e=ae();w({type:"update",object:z,newValue:Se,oldValue:de}),_e($e)}K=!1,de=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 Q(this.get())},O.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},O}(),zo=W("ComputedValue",So),Ii=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},Al={};function $u(){return typeof window<"u"?window:h!==void 0?h:typeof self<"u"?self:Al}var Zr=!0,fa=!1,st=function(){var O=$u();return O.__mobxInstanceCount>0&&!O.__mobxGlobals&&(Zr=!1),O.__mobxGlobals&&O.__mobxGlobals.version!==new Ii().version&&(Zr=!1),Zr?O.__mobxGlobals?(O.__mobxInstanceCount+=1,O.__mobxGlobals.UNCHANGED||(O.__mobxGlobals.UNCHANGED={}),O.__mobxGlobals):(O.__mobxInstanceCount=1,O.__mobxGlobals=new Ii):(setTimeout(function(){fa||P("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ii)}();function Tl(O,w){O.observers.add(w),O.lowestObserverState>w.dependenciesState&&(O.lowestObserverState=w.dependenciesState)}function Wu(O,w){O.observers.delete(w),O.observers.size===0&&Gu(O)}function Gu(O){O.isPendingUnobservation===!1&&(O.isPendingUnobservation=!0,st.pendingUnobservations.push(O))}function Mr(){st.inBatch++}function zr(){if(--st.inBatch==0){Hu();for(var O=st.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 So&&T.suspend())}st.pendingUnobservations=[]}}function Xa(O){var w=st.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&&st.inBatch>0&&Gu(O),!1)}function ho(O,w){if(O.isTracing===pe.BREAK){var T=[];Jr(Gn(O),T,1),new Function(`debugger;
/*
Tracing '`+O.name+`'
You are entering this break point because derivation '`+O.name+"' is being traced and '"+w.name+`' is now forcing it to update.
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
The stackframe you are looking for is at least ~6-8 stack-frames up.
`+(O instanceof So?O.derivation.toString().replace(/[*]\//g,"/"):"")+`
The dependencies for this derivation are:
`+T.join(`
`)+`
*/
`)()}}function Jr(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 Jr(z,w,T+1)}))}var yo=function(){function O(w,T,z,K){w===void 0&&(w="Reaction@"+E()),K===void 0&&(K=!1),this.name=w,this.onInvalidate=T,this.errorHandler=z,this.requiresObservable=K,this.observing=[],this.newObserving=[],this.dependenciesState=ct.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=pe.NONE}return O.prototype.onBecomeStale=function(){this.schedule()},O.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,st.pendingReactions.push(this),Hu())},O.prototype.isScheduled=function(){return this._isScheduled},O.prototype.runReaction=function(){if(!this.isDisposed){if(Mr(),this._isScheduled=!1,mn(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(w){this.reportExceptionInDerivation(w)}}zr()}},O.prototype.track=function(w){if(!this.isDisposed){Mr(),this._isRunning=!0;var T=Xn(this,w,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&J(this),tn(T)&&this.reportExceptionInDerivation(T.cause),zr()}},O.prototype.reportExceptionInDerivation=function(w){var T=this;if(this.errorHandler)this.errorHandler(w,this);else{if(st.disableErrorBoundaries)throw w;st.suppressReactionErrors,st.globalReactionErrorHandlers.forEach(function(z){return z(w,T)})}},O.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Mr(),J(this),zr()))},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 K=!1;typeof T[T.length-1]=="boolean"&&(K=T.pop());var de=an(T);if(!de)return P(!1);de.isTracing,pe.NONE,de.isTracing=K?pe.BREAK:pe.LOG}(this,w)},O}(),Uu=function(O){return O()};function Hu(){st.inBatch>0||st.isRunningReactions||Uu(Xc)}function Xc(){st.isRunningReactions=!0;for(var O=st.pendingReactions,w=0;O.length>0;){++w==100&&O.splice(0);for(var T=O.splice(0),z=0,K=T.length;z<K;z++)T[z].runReaction()}st.isRunningReactions=!1}var pa=W("Reaction",yo);function Yc(O){var w=Uu;Uu=function(T){return O(function(){return w(T)})}}function Xu(O){return function(){}}function Ml(){P(!1)}function hi(O){return function(w,T,z){if(z){if(z.value)return{value:Yn(O,z.value),enumerable:!1,configurable:!0,writable:!0};var K=z.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Yn(O,K.call(this))}}}return Vc(O).apply(this,arguments)}}function Vc(O){return function(w,T,z){Object.defineProperty(w,T,{configurable:!0,enumerable:!1,get:function(){},set:function(K){I(this,T,Fo(O,K))}})}}var Fo=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"?hi(O):z!==!0?hi(w).apply(null,arguments):void I(O,w,Yn(O.name||w,T.value,this))};function Yu(O,w){return Qn(typeof O=="string"?O:O.name||"<unnamed action>",typeof O=="function"?O:w,this,void 0)}function Ya(O){return typeof O=="function"&&O.isMobxAction===!0}function Vu(O,w,T){I(O,w,Yn(w,T.bind(O)))}function Ku(O,w){w===void 0&&(w=g);var T,z=w&&w.name||O.name||"Autorun@"+E();if(!w.scheduler&&!w.delay)T=new yo(z,function(){this.track(Se)},w.onError,w.requiresObservable);else{var K=Kc(w),de=!1;T=new yo(z,function(){de||(de=!0,K(function(){de=!1,T.isDisposed||T.track(Se)}))},w.onError,w.requiresObservable)}function Se(){O(T)}return T.schedule(),T.getDisposer()}Fo.bound=function(O,w,T,z){return z===!0?(Vu(O,w,T.value),null):T?{configurable:!0,enumerable:!1,get:function(){return Vu(this,w,T.value||T.initializer.call(this)),this[w]},set:Ml}:{enumerable:!1,configurable:!0,set:function(K){Vu(this,w,K)},get:function(){}}};var kl=function(O){return O()};function Kc(O){return O.scheduler?O.scheduler:O.delay?function(w){return setTimeout(w,O.delay)}:kl}function hn(O,w,T){T===void 0&&(T=g);var z,K,de,Se=T.name||"Reaction@"+E(),$e=Fo(Se,T.onError?(z=T.onError,K=w,function(){try{return K.apply(this,arguments)}catch(Rn){z.call(this,Rn)}}):w),at=!T.scheduler&&!T.delay,Vt=Kc(T),et=!0,_n=!1,Ft=T.compareStructural?q.structural:T.equals||q.default,sn=new yo(Se,function(){et||at?to():_n||(_n=!0,Vt(to))},T.onError,T.requiresObservable);function to(){if(_n=!1,!sn.isDisposed){var Rn=!1;sn.track(function(){var Ir=O(sn);Rn=et||!Ft(de,Ir),de=Ir}),et&&T.fireImmediately&&$e(de,sn),et||Rn!==!0||$e(de,sn),et&&(et=!1)}}return sn.schedule(),sn.getDisposer()}function pn(O,w,T){return qc("onBecomeUnobserved",O,w,T)}function qc(O,w,T,z){var K=typeof z=="function"?eo(w,T):eo(w),de=typeof z=="function"?z:T,Se=O+"Listeners";return K[Se]?K[Se].add(de):K[Se]=new Set([de]),typeof K[O]!="function"?P(!1):function(){var $e=K[Se];$e&&($e.delete(de),$e.size===0&&delete K[Se])}}function Li(O){var w=O.enforceActions,T=O.computedRequiresReaction,z=O.computedConfigurable,K=O.disableErrorBoundaries,de=O.reactionScheduler,Se=O.reactionRequiresObservable,$e=O.observableRequiresReaction;if(O.isolateGlobalState===!0&&((st.pendingReactions.length||st.inBatch||st.isRunningReactions)&&P("isolateGlobalState should be called before MobX is running any reactions"),fa=!0,Zr&&(--$u().__mobxInstanceCount==0&&($u().__mobxGlobals=void 0),st=new Ii)),w!==void 0){var at=void 0;switch(w){case!0:case"observed":at=!0;break;case!1:case"never":at=!1;break;case"strict":case"always":at="strict";break;default:P("Invalid value for 'enforceActions': '"+w+"', expected 'never', 'always' or 'observed'")}st.enforceActions=at,st.allowStateChanges=at!==!0&&at!=="strict"}T!==void 0&&(st.computedRequiresReaction=!!T),Se!==void 0&&(st.reactionRequiresObservable=!!Se),$e!==void 0&&(st.observableRequiresReaction=!!$e,st.allowStateReads=!st.observableRequiresReaction),z!==void 0&&(st.computedConfigurable=!!z),K!==void 0&&(st.disableErrorBoundaries=!!K),de&&Yc(de)}function $o(O,w,T,z){var K=qu(z=be(z));return tt(O),Fr(O,z.name,K.enhancer),w&&Zc(O,w,T,K),O}function qu(O){return O.defaultDecorator||(O.deep===!1?Be:Re)}function Zc(O,w,T,z){var K,de;Mr();try{var Se=ee(w);try{for(var $e=ye(Se),at=$e.next();!at.done;at=$e.next()){var Vt=at.value,et=Object.getOwnPropertyDescriptor(w,Vt),_n=(T&&Vt in T?T[Vt]:et.get?ot:z)(O,Vt,et,!0);_n&&Object.defineProperty(O,Vt,_n)}}catch(Ft){K={error:Ft}}finally{try{at&&!at.done&&(de=$e.return)&&de.call($e)}finally{if(K)throw K.error}}}finally{zr()}}function Gn(O,w){return Zu(eo(O,w))}function Zu(O){var w,T,z={name:O.name};return O.observing&&O.observing.length>0&&(z.dependencies=(w=O.observing,T=[],w.forEach(function(K){T.indexOf(K)===-1&&T.push(K)}),T).map(Zu)),z}var da=0;function Ju(){this.message="FLOW_CANCELLED"}function Va(O){arguments.length!==1&&P("Flow expects 1 argument and cannot be used as decorator");var w=O.name||"<unnamed flow>";return function(){var T,z=this,K=arguments,de=++da,Se=Fo(w+" - runid: "+de+" - init",O).apply(z,K),$e=void 0,at=new Promise(function(Vt,et){var _n=0;function Ft(Rn){var Ir;$e=void 0;try{Ir=Fo(w+" - runid: "+de+" - yield "+_n++,Se.next).call(Se,Rn)}catch(Ho){return et(Ho)}to(Ir)}function sn(Rn){var Ir;$e=void 0;try{Ir=Fo(w+" - runid: "+de+" - yield "+_n++,Se.throw).call(Se,Rn)}catch(Ho){return et(Ho)}to(Ir)}function to(Rn){if(!Rn||typeof Rn.then!="function")return Rn.done?Vt(Rn.value):($e=Promise.resolve(Rn.value)).then(Ft,sn);Rn.then(to,et)}T=et,Ft(void 0)});return at.cancel=Fo(w+" - runid: "+de+" - cancel",function(){try{$e&&gr($e);var Vt=Se.return(void 0),et=Promise.resolve(Vt.value);et.then(M,M),gr(et),T(new Ju)}catch(_n){T(_n)}}),at}}function gr(O){typeof O.cancel=="function"&&O.cancel()}function Qu(O,w){if(O==null)return!1;if(w!==void 0){if(Cr(O)===!1||!O[H].values.has(w))return!1;var T=eo(O,w);return zo(T)}return zo(O)}function Jc(O){return arguments.length>1?P(!1):Qu(O)}function ec(O,w){return typeof w!="string"?P(!1):Qu(O,w)}function Ka(O,w){return O!=null&&(w!==void 0?!!Cr(O)&&O[H].values.has(w):Cr(O)||!!O[H]||X(O)||pa(O)||zo(O))}function Bi(O){return arguments.length!==1&&P(!1),Ka(O)}function jo(O){return Cr(O)?O[H].getKeys():er(O)||Sr(O)?Array.from(O.keys()):Qr(O)?O.map(function(w,T){return T}):P(!1)}function wn(O){return Cr(O)?jo(O).map(function(w){return O[w]}):er(O)?jo(O).map(function(w){return O.get(w)}):Sr(O)?Array.from(O.values()):Qr(O)?O.slice():P(!1)}function Qc(O){return Cr(O)?jo(O).map(function(w){return[w,O[w]]}):er(O)?jo(O).map(function(w){return[w,O.get(w)]}):Sr(O)?Array.from(O.entries()):Qr(O)?O.map(function(w,T){return[T,w]}):P(!1)}function kr(O,w,T){if(arguments.length!==2||Sr(O))if(Cr(O)){var z=O[H],K=z.values.get(w);K?z.write(w,T):z.addObservableProp(w,T,z.defaultEnhancer)}else if(er(O))O.set(w,T);else if(Sr(O))O.add(w);else{if(!Qr(O))return P(!1);typeof w!="number"&&(w=parseInt(w,10)),j(w>=0,"Not a valid index: '"+w+"'"),Mr(),w>=O.length&&(O.length=w+1),O[w]=T,zr()}else{Mr();var de=w;try{for(var Se in de)kr(O,Se,de[Se])}finally{zr()}}}function es(O,w,T,z){return typeof T=="function"?function(K,de,Se,$e){return ko(K,de).observe(Se,$e)}(O,w,T,z):function(K,de,Se){return ko(K).observe(de,Se)}(O,w,T)}Ju.prototype=Object.create(Error.prototype);var ts={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Er(O,w,T,z){return z.detectCycles&&O.set(w,T),T}function Dr(O,w,T){if(!w.recurseEverything&&!Bi(O)||typeof O!="object")return O;if(O===null)return null;if(O instanceof Date)return O;if(Bo(O))return Dr(O.get(),w,T);if(Bi(O)&&jo(O),w.detectCycles===!0&&O!==null&&T.has(O))return T.get(O);if(Qr(O)||Array.isArray(O)){var z=Er(T,O,[],w),K=O.map(function(Ft){return Dr(Ft,w,T)});z.length=K.length;for(var de=0,Se=K.length;de<Se;de++)z[de]=K[de];return z}if(Sr(O)||Object.getPrototypeOf(O)===Set.prototype){if(w.exportMapsAsObjects===!1){var $e=Er(T,O,new Set,w);return O.forEach(function(Ft){$e.add(Dr(Ft,w,T))}),$e}var at=Er(T,O,[],w);return O.forEach(function(Ft){at.push(Dr(Ft,w,T))}),at}if(er(O)||Object.getPrototypeOf(O)===Map.prototype){if(w.exportMapsAsObjects===!1){var Vt=Er(T,O,new Map,w);return O.forEach(function(Ft,sn){Vt.set(sn,Dr(Ft,w,T))}),Vt}var et=Er(T,O,{},w);return O.forEach(function(Ft,sn){et[sn]=Dr(Ft,w,T)}),et}var _n=Er(T,O,{},w);return ue(O).forEach(function(Ft){_n[Ft]=Dr(O[Ft],w,T)}),_n}function tc(O,w){var T;return typeof w=="boolean"&&(w={detectCycles:w}),w||(w=ts),w.detectCycles=w.detectCycles===void 0?w.recurseEverything===!0:w.detectCycles===!0,w.detectCycles&&(T=new Map),Dr(O,w,T)}function an(O){switch(O.length){case 0:return st.trackingDerivation;case 1:return eo(O[0]);case 2:return eo(O[0],O[1])}}function ir(O,w){w===void 0&&(w=void 0),Mr();try{return O.apply(w)}finally{zr()}}function qa(O,w,T){return arguments.length===1||w&&typeof w=="object"?nc(O,w):ns(O,w,T||{})}function ns(O,w,T){var z;typeof T.timeout=="number"&&(z=setTimeout(function(){if(!de[H].isDisposed){de();var Se=new Error("WHEN_TIMEOUT");if(!T.onError)throw Se;T.onError(Se)}},T.timeout)),T.name=T.name||"When@"+E();var K=Yn(T.name+"-effect",w),de=Ku(function(Se){O()&&(Se.dispose(),z&&clearTimeout(z),K())},T);return de}function nc(O,w){var T,z=new Promise(function(K,de){var Se=ns(O,K,we(we({},w),{onError:de}));T=function(){Se(),de("WHEN_CANCELLED")}});return z.cancel=T,z}function Za(O){return O[H]}function Po(O){return typeof O=="string"||typeof O=="number"||typeof O=="symbol"}var Wo={has:function(O,w){if(w===H||w==="constructor"||w===je)return!0;var T=Za(O);return Po(w)?T.has(w):w in O},get:function(O,w){if(w===H||w==="constructor"||w===je)return O[w];var T=Za(O),z=T.values.get(w);if(z instanceof B){var K=z.get();return K===void 0&&T.has(w),K}return Po(w)&&T.has(w),O[w]},set:function(O,w,T){return!!Po(w)&&(kr(O,w,T),!0)},deleteProperty:function(O,w){return!!Po(w)&&(Za(O).remove(w),!0)},ownKeys:function(O){return Za(O).keysAtom.reportObserved(),Reflect.ownKeys(O)},preventExtensions:function(O){return P("Dynamic observable objects cannot be frozen"),!1}};function zi(O){var w=new Proxy(O,Wo);return O[H].proxy=w,w}function Nr(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 nn(O,w){var T=ae();try{for(var z=Fe(O.interceptors||[]),K=0,de=z.length;K<de&&(j(!(w=z[K](w))||w.type,"Intercept handlers should return nothing or a change object"),w);K++);return w}finally{_e(T)}}function Rr(O){return O.changeListeners!==void 0&&O.changeListeners.length>0}function Ao(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 dr(O,w){var T=ae(),z=O.changeListeners;if(z){for(var K=0,de=(z=z.slice()).length;K<de;K++)z[K](w);_e(T)}}var Ja={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 P("Observable arrays cannot be frozen"),!1}};function ha(O,w,T,z){T===void 0&&(T="ObservableArray@"+E()),z===void 0&&(z=!1);var K,de,Se,$e=new rc(T,w,z);K=$e.values,de=H,Se=$e,Object.defineProperty(K,de,{enumerable:!1,writable:!1,configurable:!0,value:Se});var at=new Proxy($e.values,Ja);if($e.proxy=at,O&&O.length){var Vt=Ct(!0);$e.spliceWithArray(0,0,O),gn(Vt)}return at}var rc=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(K,de){return T(K,de,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}),Ao(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),K=0;K<w-T;K++)z[K]=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 K=this;Rt(this.atom);var de=this.values.length;if(w===void 0?w=0:w>de?w=de:w<0&&(w=Math.max(0,de+w)),T=arguments.length===1?de-w:T==null?0:Math.max(0,Math.min(T,de-w)),z===void 0&&(z=m),Nr(this)){var Se=nn(this,{object:this.proxy,type:"splice",index:w,removedCount:T,added:z});if(!Se)return m;T=Se.removedCount,z=Se.added}z=z.length===0?z:z.map(function(at){return K.enhancer(at,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 K;if(z.length<1e4)return(K=this.values).splice.apply(K,Fe([w,T],z));var de=this.values.slice(w,w+T);return this.values=this.values.slice(0,w).concat(z,this.values.slice(w+T)),de},O.prototype.notifyArrayChildUpdate=function(w,T,z){var K=!this.owned&&!1,de=Rr(this),Se=de||K?{object:this.proxy,type:"update",index:w,newValue:T,oldValue:z}:null;this.atom.reportChanged(),de&&dr(this,Se)},O.prototype.notifyArraySplice=function(w,T,z){var K=!this.owned&&!1,de=Rr(this),Se=de||K?{object:this.proxy,type:"splice",index:w,removed:z,added:T,removedCount:z.length,addedCount:T.length}:null;this.atom.reportChanged(),de&&dr(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 K=this[H];switch(arguments.length){case 0:return[];case 1:return K.spliceWithArray(O);case 2:return K.spliceWithArray(O,w)}return K.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){Rt(T.atom);var K=z[O];if(Nr(T)){var de=nn(T,{type:"update",object:T.proxy,index:O,newValue:w});if(!de)return;w=de.newValue}(w=T.enhancer(w,K))!==K&&(z[O]=w,T.notifyArrayChildUpdate(O,w,K))}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,K=this[H];return K.atom.reportObserved(),K.dehanceValues(K.values)[O](function(de,Se){return w.call(T,de,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(K,de,Se){return de=T.dehanceValue(de),z(K,de,Se,w)},T.values[O].apply(T.values,arguments)}});var Qa,Uo=W("ObservableArrayAdministration",rc);function Qr(O){return R(O)&&Uo(O[H])}var oc,Dl={},ic=function(){function O(w,T,z){if(T===void 0&&(T=Ke),z===void 0&&(z="ObservableMap@"+E()),this.enhancer=T,this.name=z,this[Qa]=Dl,this._keysAtom=V(this.name+".keys()"),this[Symbol.toStringTag]="Map",typeof Map!="function")throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(w)}return O.prototype._has=function(w){return this._data.has(w)},O.prototype.has=function(w){var T=this;if(!st.trackingDerivation)return this._has(w);var z=this._hasMap.get(w);if(!z){var K=z=new zn(this._has(w),gt,this.name+"."+re(w)+"?",!1);this._hasMap.set(w,K),pn(K,function(){return T._hasMap.delete(w)})}return z.get()},O.prototype.set=function(w,T){var z=this._has(w);if(Nr(this)){var K=nn(this,{type:z?"update":"add",object:this,newValue:T,name:w});if(!K)return this;T=K.newValue}return z?this._updateValue(w,T):this._addValue(w,T),this},O.prototype.delete=function(w){var T=this;if(Rt(this._keysAtom),Nr(this)&&!(K=nn(this,{type:"delete",object:this,name:w})))return!1;if(this._has(w)){var z=Rr(this),K=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&&dr(this,K),!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))!==st.UNCHANGED){var K=Rr(this),de=K?{type:"update",object:this,oldValue:z.value,name:w,newValue:T}:null;z.setNewValue(T),K&&dr(this,de)}},O.prototype._addValue=function(w,T){var z=this;Rt(this._keysAtom),ir(function(){var Se=new zn(T,z.enhancer,z.name+"."+re(w),!1);z._data.set(w,Se),T=Se.value,z._updateHasMapEntry(w,!0),z._keysAtom.reportChanged()});var K=Rr(this),de=K?{type:"add",object:this,name:w,newValue:T}:null;K&&dr(this,de)},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 Jt({next:function(){var z=T.next(),K=z.done,de=z.value;return{done:K,value:K?void 0:w.get(de)}}})},O.prototype.entries=function(){var w=this,T=this.keys();return Jt({next:function(){var z=T.next(),K=z.done,de=z.value;return{done:K,value:K?void 0:[de,w.get(de)]}}})},O.prototype[Qa=H,Symbol.iterator]=function(){return this.entries()},O.prototype.forEach=function(w,T){var z,K;try{for(var de=ye(this),Se=de.next();!Se.done;Se=de.next()){var $e=Ae(Se.value,2),at=$e[0],Vt=$e[1];w.call(T,Vt,at,this)}}catch(et){z={error:et}}finally{try{Se&&!Se.done&&(K=de.return)&&K.call(de)}finally{if(z)throw z.error}}},O.prototype.merge=function(w){var T=this;return er(w)&&(w=w.toJS()),ir(function(){var z=Ct(!0);try{N(w)?ue(w).forEach(function(K){return T.set(K,w[K])}):Array.isArray(w)?w.forEach(function(K){var de=Ae(K,2),Se=de[0],$e=de[1];return T.set(Se,$e)}):U(w)?(w.constructor!==Map&&P("Cannot initialize from classes that inherit from Map: "+w.constructor.name),w.forEach(function(K,de){return T.set(de,K)})):w!=null&&P("Cannot initialize map from "+w)}finally{gn(z)}}),this},O.prototype.clear=function(){var w=this;ir(function(){he(function(){var T,z;try{for(var K=ye(w.keys()),de=K.next();!de.done;de=K.next()){var Se=de.value;w.delete(Se)}}catch($e){T={error:$e}}finally{try{de&&!de.done&&(z=K.return)&&z.call(K)}finally{if(T)throw T.error}}})})},O.prototype.replace=function(w){var T=this;return ir(function(){var z,K,de,Se,$e=function(jr){if(U(jr)||er(jr))return jr;if(Array.isArray(jr))return new Map(jr);if(N(jr)){var va=new Map;for(var $i in jr)va.set($i,jr[$i]);return va}return P("Cannot convert to map from '"+jr+"'")}(w),at=new Map,Vt=!1;try{for(var et=ye(T._data.keys()),_n=et.next();!_n.done;_n=et.next()){var Ft=_n.value;if(!$e.has(Ft))if(T.delete(Ft))Vt=!0;else{var sn=T._data.get(Ft);at.set(Ft,sn)}}}catch(jr){z={error:jr}}finally{try{_n&&!_n.done&&(K=et.return)&&K.call(et)}finally{if(z)throw z.error}}try{for(var to=ye($e.entries()),Rn=to.next();!Rn.done;Rn=to.next()){var Ir=Ae(Rn.value,2),Ho=(Ft=Ir[0],sn=Ir[1],T._data.has(Ft));if(T.set(Ft,sn),T._data.has(Ft)){var Xo=T._data.get(Ft);at.set(Ft,Xo),Ho||(Vt=!0)}}}catch(jr){de={error:jr}}finally{try{Rn&&!Rn.done&&(Se=to.return)&&Se.call(to)}finally{if(de)throw de.error}}if(!Vt)if(T._data.size!==at.size)T._keysAtom.reportChanged();else for(var ya=T._data.keys(),uc=at.keys(),vi=ya.next(),tu=uc.next();!vi.done;){if(vi.value!==tu.value){T._keysAtom.reportChanged();break}vi=ya.next(),tu=uc.next()}T._data=at}),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 K=ye(this),de=K.next();!de.done;de=K.next()){var Se=Ae(de.value,2),$e=Se[0],at=Se[1];z[typeof $e=="symbol"?$e:re($e)]=at}}catch(Vt){w={error:Vt}}finally{try{de&&!de.done&&(T=K.return)&&T.call(K)}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 re(T)+": "+w.get(T)}).join(", ")+" }]"},O.prototype.observe=function(w,T){return Ao(this,w)},O.prototype.intercept=function(w){return Go(this,w)},O}(),er=W("ObservableMap",ic),Fi={},To=function(){function O(w,T,z){if(T===void 0&&(T=Ke),z===void 0&&(z="ObservableSet@"+E()),this.name=z,this[oc]=Fi,this._data=new Set,this._atom=V(this.name),this[Symbol.toStringTag]="Set",typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(K,de){return T(K,de,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(){he(function(){var T,z;try{for(var K=ye(w._data.values()),de=K.next();!de.done;de=K.next()){var Se=de.value;w.delete(Se)}}catch($e){T={error:$e}}finally{try{de&&!de.done&&(z=K.return)&&z.call(K)}finally{if(T)throw T.error}}})})},O.prototype.forEach=function(w,T){var z,K;try{for(var de=ye(this),Se=de.next();!Se.done;Se=de.next()){var $e=Se.value;w.call(T,$e,$e,this)}}catch(at){z={error:at}}finally{try{Se&&!Se.done&&(K=de.return)&&K.call(de)}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(Rt(this._atom),Nr(this)&&!(K=nn(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=Rr(this),K=z?{type:"add",object:this,newValue:w}:null;z&&dr(this,K)}return this},O.prototype.delete=function(w){var T=this;if(Nr(this)&&!(K=nn(this,{type:"delete",object:this,oldValue:w})))return!1;if(this.has(w)){var z=Rr(this),K=z?{type:"delete",object:this,oldValue:w}:null;return ir(function(){T._atom.reportChanged(),T._data.delete(w)}),z&&dr(this,K),!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 Jt({next:function(){var K=w;return w+=1,K<z.length?{value:[T[K],z[K]],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 Jt({next:function(){return T<z.length?{value:w.dehanceValue(z[T++]),done:!1}:{done:!0}}})},O.prototype.replace=function(w){var T=this;return Sr(w)&&(w=w.toJS()),ir(function(){var z=Ct(!0);try{Array.isArray(w)||ne(w)?(T.clear(),w.forEach(function(K){return T.add(K)})):w!=null&&P("Cannot initialize set from "+w)}finally{gn(z)}}),this},O.prototype.observe=function(w,T){return Ao(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[oc=H,Symbol.iterator]=function(){return this.values()},O}(),Sr=W("ObservableSet",To),ac=function(){function O(w,T,z,K){T===void 0&&(T=new Map),this.target=w,this.values=T,this.name=z,this.defaultEnhancer=K,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,K=this.values.get(w);if(K instanceof So)K.set(T);else{if(Nr(this)){if(!(Se=nn(this,{type:"update",object:this.proxy||z,name:w,newValue:T})))return;T=Se.newValue}if((T=K.prepareNewValue(T))!==st.UNCHANGED){var de=Rr(this),Se=de?{type:"update",object:this.proxy||z,oldValue:K.value,name:w,newValue:T}:null;K.setNewValue(T),de&&dr(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 K=!!this.values.get(w);return z=new zn(K,gt,this.name+"."+re(w)+"?",!1),T.set(w,z),z.get()},O.prototype.addObservableProp=function(w,T,z){z===void 0&&(z=this.defaultEnhancer);var K=this.target;if(Nr(this)){var de=nn(this,{object:this.proxy||K,name:w,type:"add",newValue:T});if(!de)return;T=de.newValue}var Se=new zn(T,z,this.name+"."+re(w),!1);this.values.set(w,Se),T=Se.value,Object.defineProperty(K,w,function($e){return yi[$e]||(yi[$e]={configurable:!0,enumerable:!0,get:function(){return this[H].read($e)},set:function(at){this[H].write($e,at)}})}(w)),this.notifyPropertyAddition(w,T)},O.prototype.addComputedProp=function(w,T,z){var K,de,Se,$e=this.target;z.name=z.name||this.name+"."+re(T),this.values.set(T,new So(z)),(w===$e||(K=w,de=T,!(Se=Object.getOwnPropertyDescriptor(K,de))||Se.configurable!==!1&&Se.writable!==!1))&&Object.defineProperty(w,T,function(at){return eu[at]||(eu[at]={configurable:st.computedConfigurable,enumerable:!1,get:function(){return Mo(this).read(at)},set:function(Vt){Mo(this).write(at,Vt)}})}(T))},O.prototype.remove=function(w){if(this.values.has(w)){var T=this.target;if(Nr(this)&&!(at=nn(this,{object:this.proxy||T,name:w,type:"remove"})))return;try{Mr();var z=Rr(this),K=!1,de=this.values.get(w),Se=de&&de.get();if(de&&de.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 at=z?{type:"remove",object:this.proxy||T,oldValue:Se,name:w}:null;z&&dr(this,at)}finally{zr()}}},O.prototype.illegalAccess=function(w,T){},O.prototype.observe=function(w,T){return Ao(this,w)},O.prototype.intercept=function(w){return Go(this,w)},O.prototype.notifyPropertyAddition=function(w,T){var z=Rr(this),K=z?{type:"add",object:this.proxy||this.target,name:w,newValue:T}:null;if(z&&dr(this,K),this.pendingKeys){var de=this.pendingKeys.get(w);de&&de.set(!0)}this.keysAtom.reportChanged()},O.prototype.getKeys=function(){var w,T;this.keysAtom.reportObserved();var z=[];try{for(var K=ye(this.values),de=K.next();!de.done;de=K.next()){var Se=Ae(de.value,2),$e=Se[0];Se[1]instanceof zn&&z.push($e)}}catch(at){w={error:at}}finally{try{de&&!de.done&&(T=K.return)&&T.call(K)}finally{if(w)throw w.error}}return z},O}();function Fr(O,w,T){if(w===void 0&&(w=""),T===void 0&&(T=Ke),Object.prototype.hasOwnProperty.call(O,H))return O[H];N(O)||(w=(O.constructor.name||"ObservableObject")+"@"+E()),w||(w="ObservableObject@"+E());var z=new ac(O,new Map,re(w),T);return I(O,H,z),z}var yi=Object.create(null),eu=Object.create(null);function Mo(O){var w=O[H];return w||(tt(O),O[H])}var $r=W("ObservableObjectAdministration",ac);function Cr(O){return!!R(O)&&(tt(O),$r(O[H]))}function eo(O,w){if(typeof O=="object"&&O!==null){if(Qr(O))return w!==void 0&&P(!1),O[H].atom;if(Sr(O))return O[H];if(er(O)){var T=O;return w===void 0?T._keysAtom:((z=T._data.get(w)||T._hasMap.get(w))||P(!1),z)}var z;if(tt(O),w&&!O[H]&&O[w],Cr(O))return w?((z=O[H].values.get(w))||P(!1),z):P(!1);if(X(O)||zo(O)||pa(O))return O}else if(typeof O=="function"&&pa(O[H]))return O[H];return P(!1)}function ko(O,w){return O||P("Expecting some object"),w!==void 0?ko(eo(O,w)):X(O)||zo(O)||pa(O)||er(O)||Sr(O)?O:(tt(O),O[H]?O[H]:void P(!1))}var xe=Object.prototype.toString;function Ce(O,w,T){return T===void 0&&(T=-1),Le(O,w,T)}function Le(O,w,T,z,K){if(O===w)return O!==0||1/O==1/w;if(O==null||w==null)return!1;if(O!=O)return w!=w;var de=typeof O;if(de!=="function"&&de!=="object"&&typeof w!="object")return!1;var Se=xe.call(O);if(Se!==xe.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<"u"&&Symbol.valueOf.call(O)===Symbol.valueOf.call(w);case"[object Map]":case"[object Set]":T>=0&&T++}O=Ze(O),w=Ze(w);var $e=Se==="[object Array]";if(!$e){if(typeof O!="object"||typeof w!="object")return!1;var at=O.constructor,Vt=w.constructor;if(at!==Vt&&!(typeof at=="function"&&at instanceof at&&typeof Vt=="function"&&Vt instanceof Vt)&&"constructor"in O&&"constructor"in w)return!1}if(T===0)return!1;T<0&&(T=-1),K=K||[];for(var et=(z=z||[]).length;et--;)if(z[et]===O)return K[et]===w;if(z.push(O),K.push(w),$e){if((et=O.length)!==w.length)return!1;for(;et--;)if(!Le(O[et],w[et],T-1,z,K))return!1}else{var _n=Object.keys(O),Ft=void 0;if(et=_n.length,Object.keys(w).length!==et)return!1;for(;et--;)if(!zt(w,Ft=_n[et])||!Le(O[Ft],w[Ft],T-1,z,K))return!1}return z.pop(),K.pop(),!0}function Ze(O){return Qr(O)?O.slice():U(O)||er(O)||ne(O)||Sr(O)?Array.from(O.entries()):O}function zt(O,w){return Object.prototype.hasOwnProperty.call(O,w)}function Jt(O){return O[Symbol.iterator]=Sn,O}function Sn(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Xu,extras:{getDebugName:function(O,w){return(w!==void 0?eo(O,w):Cr(O)||er(O)||Sr(O)?ko(O):eo(O)).name}},$mobx:H})}).call(this,o(160),o(66))},function(a,l,o){var d=o(113),h=o(42),m=o(179);d||h(Object.prototype,"toString",m,{unsafe:!0})},function(a,l,o){var d=o(41),h=o(100),m=o(78),g=o(58),E=o(116),P="Array Iterator",j=g.set,k=g.getterFor(P);a.exports=E(Array,"Array",function(M,R){j(this,{type:P,target:d(M),index:0,kind:R})},function(){var M=k(this),R=M.target,N=M.kind,I=M.index++;return!R||I>=R.length?(M.target=void 0,{value:void 0,done:!0}):N=="keys"?{value:I,done:!1}:N=="values"?{value:R[I],done:!1}:{value:[I,R[I]],done:!1}},"values"),m.Arguments=m.Array,h("keys"),h("values"),h("entries")},function(a,l,o){var d=o(17),h=o(7),m=o(46),g=o(74),E=o(34),P=o(15),j=o(69),k=o(36),M=o(108),R=o(18),N=o(35),I=o(96),W=o(30),U=o(33),ne=o(54),ue=o(87),re=o(32),Q=o(40),ee=o(41),H=o(86),B=o(39),X=o(67),V=o(60),q=o(75),ce=o(72),we=o(139),ye=o(112),Ae=o(50),Fe=o(38),je=o(84),ge=o(98),Pe=o(42),Te=o(89),We=o(93),tt=o(70),vt=o(90),Ge=o(28),Ke=o(140),gt=o(141),le=o(76),se=o(58),be=o(77).forEach,Re=We("hidden"),Ue="Symbol",Be=Ge("toPrimitive"),xt=se.set,kt=se.getterFor(Ue),jt=Object.prototype,yt=h.Symbol,ke=yt&&yt.prototype,ct=h.TypeError,pe=h.QObject,ot=m("JSON","stringify"),Lt=Ae.f,fn=Fe.f,Bt=we.f,tn=je.f,mn=P([].push),Dn=Te("symbols"),Rt=Te("op-symbols"),Xn=Te("string-to-symbol-registry"),J=Te("symbol-to-string-registry"),he=Te("wks"),ae=!pe||!pe.prototype||!pe.prototype.findChild,_e=k&&R(function(){return V(fn({},"a",{get:function(){return fn(this,"a",{value:7}).a}})).a!=7})?function(it,mt,St){var Ct=Lt(jt,mt);Ct&&delete jt[mt],fn(it,mt,St),Ct&&it!==jt&&fn(jt,mt,Ct)}:fn,Ye=function(it,mt){var St=Dn[it]=V(ke);return xt(St,{type:Ue,tag:it,description:mt}),k||(St.description=mt),St},Ve=function(it,mt,St){it===jt&&Ve(Rt,mt,St),re(it);var Ct=H(mt);return re(St),N(Dn,Ct)?(St.enumerable?(N(it,Re)&&it[Re][Ct]&&(it[Re][Ct]=!1),St=V(St,{enumerable:X(0,!1)})):(N(it,Re)||fn(it,Re,X(1,{})),it[Re][Ct]=!0),_e(it,Ct,St)):fn(it,Ct,St)},ft=function(it,mt){re(it);var St=ee(mt),Ct=q(St).concat(Yn(St));return be(Ct,function(gn){k&&!E(Ht,St,gn)||Ve(it,gn,St[gn])}),it},Ht=function(it){var mt=H(it),St=E(tn,this,mt);return!(this===jt&&N(Dn,mt)&&!N(Rt,mt))&&(!(St||!N(this,mt)||!N(Dn,mt)||N(this,Re)&&this[Re][mt])||St)},or=function(it,mt){var St=ee(it),Ct=H(mt);if(St!==jt||!N(Dn,Ct)||N(Rt,Ct)){var gn=Lt(St,Ct);return!gn||!N(Dn,Ct)||N(St,Re)&&St[Re][Ct]||(gn.enumerable=!0),gn}},vr=function(it){var mt=Bt(ee(it)),St=[];return be(mt,function(Ct){N(Dn,Ct)||N(tt,Ct)||mn(St,Ct)}),St},Yn=function(it){var mt=it===jt,St=Bt(mt?Rt:ee(it)),Ct=[];return be(St,function(gn){!N(Dn,gn)||mt&&!N(jt,gn)||mn(Ct,Dn[gn])}),Ct};if(M||(yt=function(){if(ne(ke,this))throw ct("Symbol is not a constructor");var it=arguments.length&&arguments[0]!==void 0?B(arguments[0]):void 0,mt=vt(it),St=function(Ct){this===jt&&E(St,Rt,Ct),N(this,Re)&&N(this[Re],mt)&&(this[Re][mt]=!1),_e(this,mt,X(1,Ct))};return k&&ae&&_e(jt,mt,{configurable:!0,set:St}),Ye(mt,it)},Pe(ke=yt.prototype,"toString",function(){return kt(this).tag}),Pe(yt,"withoutSetter",function(it){return Ye(vt(it),it)}),je.f=Ht,Fe.f=Ve,Ae.f=or,ce.f=we.f=vr,ye.f=Yn,Ke.f=function(it){return Ye(Ge(it),it)},k&&(fn(ke,"description",{configurable:!0,get:function(){return kt(this).description}}),j||Pe(jt,"propertyIsEnumerable",Ht,{unsafe:!0}))),d({global:!0,wrap:!0,forced:!M,sham:!M},{Symbol:yt}),be(q(he),function(it){gt(it)}),d({target:Ue,stat:!0,forced:!M},{for:function(it){var mt=B(it);if(N(Xn,mt))return Xn[mt];var St=yt(mt);return Xn[mt]=St,J[St]=mt,St},keyFor:function(it){if(!ue(it))throw ct(it+" is not a symbol");if(N(J,it))return J[it]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),d({target:"Object",stat:!0,forced:!M,sham:!k},{create:function(it,mt){return mt===void 0?V(it):ft(V(it),mt)},defineProperty:Ve,defineProperties:ft,getOwnPropertyDescriptor:or}),d({target:"Object",stat:!0,forced:!M},{getOwnPropertyNames:vr,getOwnPropertySymbols:Yn}),d({target:"Object",stat:!0,forced:R(function(){ye.f(1)})},{getOwnPropertySymbols:function(it){return ye.f(Q(it))}}),ot&&d({target:"JSON",stat:!0,forced:!M||R(function(){var it=yt();return ot([it])!="[null]"||ot({a:it})!="{}"||ot(Object(it))!="{}"})},{stringify:function(it,mt,St){var Ct=ge(arguments),gn=mt;if((U(mt)||it!==void 0)&&!ue(it))return I(mt)||(mt=function(zn,Bo){if(W(gn)&&(Bo=E(gn,this,zn,Bo)),!ue(Bo))return Bo}),Ct[1]=mt,g(ot,null,Ct)}}),!ke[Be]){var Qn=ke.valueOf;Pe(ke,Be,function(it){return E(Qn,this)})}le(yt,Ue),tt[Re]=!0},function(a,l,o){var d=o(7),h=o(152),m=o(153),g=o(3),E=o(57),P=o(28),j=P("iterator"),k=P("toStringTag"),M=g.values,R=function(I,W){if(I){if(I[j]!==M)try{E(I,j,M)}catch{I[j]=M}if(I[k]||E(I,k,W),h[W]){for(var U in g)if(I[U]!==g[U])try{E(I,U,g[U])}catch{I[U]=g[U]}}}};for(var N in h)R(d[N]&&d[N].prototype,N);R(m,"DOMTokenList")},function(a,l,o){var d=o(151).charAt,h=o(39),m=o(58),g=o(116),E="String Iterator",P=m.set,j=m.getterFor(E);g(String,"String",function(k){P(this,{type:E,string:h(k),index:0})},function(){var k,M=j(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(a,l,o){(function(d){var h=function(m){return m&&m.Math==Math&&m};a.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(66))},function(a,l,o){var d=o(17),h=o(36),m=o(7),g=o(15),E=o(35),P=o(30),j=o(54),k=o(39),M=o(38).f,R=o(134),N=m.Symbol,I=N&&N.prototype;if(h&&P(N)&&(!("description"in I)||N().description!==void 0)){var W={},U=function(){var B=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),X=j(I,this)?new N(B):B===void 0?N():N(B);return B===""&&(W[X]=!0),X};R(U,N),U.prototype=I,I.constructor=U;var ne=String(N("test"))=="Symbol(test)",ue=g(I.toString),re=g(I.valueOf),Q=/^Symbol\((.*)\)[^)]+$/,ee=g("".replace),H=g("".slice);M(I,"description",{configurable:!0,get:function(){var B=re(this),X=ue(B);if(E(W,B))return"";var V=ne?H(X,7,-1):ee(X,Q,"$1");return V===""?void 0:V}}),d({global:!0,forced:!0},{Symbol:U})}},function(a,l,o){o(141)("iterator")},function(a,l,o){o.d(l,"a",function(){return g.a}),o.d(l,"c",function(){return g.e}),o.d(l,"h",function(){return Q}),o.d(l,"i",function(){return ne}),o.d(l,"j",function(){return W}),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 Dn});var d,h,m,g=o(0),E=0,P=[],j=g.i.__b,k=g.i.__r,M=g.i.diffed,R=g.i.__c,N=g.i.unmount;function I(J,he){g.i.__h&&g.i.__h(h,J,E||he),E=0;var ae=h.__H||(h.__H={__:[],__h:[]});return J>=ae.__.length&&ae.__.push({}),ae.__[J]}function W(J){return E=1,U(ce,J)}function U(J,he,ae){var _e=I(d++,2);return _e.t=J,_e.__c||(_e.__=[ae?ae(he):ce(void 0,he),function(Ye){var Ve=_e.t(_e.__[0],Ye);_e.__[0]!==Ve&&(_e.__=[Ve,_e.__[1]],_e.__c.setState({}))}],_e.__c=h),_e.__}function ne(J,he){var ae=I(d++,3);!g.i.__s&&q(ae.__H,he)&&(ae.__=J,ae.__H=he,h.__H.__h.push(ae))}function ue(J,he){var ae=I(d++,4);!g.i.__s&&q(ae.__H,he)&&(ae.__=J,ae.__H=he,h.__h.push(ae))}function re(J,he){var ae=I(d++,7);return q(ae.__H,he)&&(ae.__=J(),ae.__H=he,ae.__h=J),ae.__}function Q(J,he){return E=8,re(function(){return J},he)}function ee(){var J;for(P.sort(function(he,ae){return he.__v.__b-ae.__v.__b});J=P.pop();)if(J.__P)try{J.__H.__h.forEach(X),J.__H.__h.forEach(V),J.__H.__h=[]}catch(he){J.__H.__h=[],g.i.__e(he,J.__v)}}g.i.__b=function(J){h=null,j&&j(J)},g.i.__r=function(J){k&&k(J),d=0;var he=(h=J.__c).__H;he&&(he.__h.forEach(X),he.__h.forEach(V),he.__h=[])},g.i.diffed=function(J){M&&M(J);var he=J.__c;he&&he.__H&&he.__H.__h.length&&(P.push(he)!==1&&m===g.i.requestAnimationFrame||((m=g.i.requestAnimationFrame)||B)(ee)),h=null},g.i.__c=function(J,he){he.some(function(ae){try{ae.__h.forEach(X),ae.__h=ae.__h.filter(function(_e){return!_e.__||V(_e)})}catch(_e){he.some(function(Ye){Ye.__h&&(Ye.__h=[])}),he=[],g.i.__e(_e,ae.__v)}}),R&&R(J,he)},g.i.unmount=function(J){N&&N(J);var he,ae=J.__c;ae&&ae.__H&&(ae.__H.__.forEach(function(_e){try{X(_e)}catch(Ye){he=Ye}}),he&&g.i.__e(he,ae.__v))};var H=typeof requestAnimationFrame=="function";function B(J){var he,ae=function(){clearTimeout(_e),H&&cancelAnimationFrame(he),setTimeout(J)},_e=setTimeout(ae,100);H&&(he=requestAnimationFrame(ae))}function X(J){var he=h,ae=J.__c;typeof ae=="function"&&(J.__c=void 0,ae()),h=he}function V(J){var he=h;J.__c=J.__(),h=he}function q(J,he){return!J||J.length!==he.length||he.some(function(ae,_e){return ae!==J[_e]})}function ce(J,he){return typeof he=="function"?he(J):he}function we(J,he){for(var ae in he)J[ae]=he[ae];return J}function ye(J,he){for(var ae in J)if(ae!=="__source"&&!(ae in he))return!0;for(var _e in he)if(_e!=="__source"&&J[_e]!==he[_e])return!0;return!1}function Ae(J){this.props=J}function Fe(J,he){function ae(Ye){var Ve=this.props.ref,ft=Ve==Ye.ref;return!ft&&Ve&&(Ve.call?Ve(null):Ve.current=null),he?!he(this.props,Ye)||!ft:ye(this.props,Ye)}function _e(Ye){return this.shouldComponentUpdate=ae,Object(g.e)(J,Ye)}return _e.displayName="Memo("+(J.displayName||J.name)+")",_e.prototype.isReactComponent=!0,_e.__f=!0,_e}(Ae.prototype=new g.a).isPureReactComponent=!0,Ae.prototype.shouldComponentUpdate=function(J,he){return ye(this.props,J)||ye(this.state,he)};var je=g.i.__b;g.i.__b=function(J){J.type&&J.type.__f&&J.ref&&(J.props.ref=J.ref,J.ref=null),je&&je(J)};var ge=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Pe(J){function he(ae,_e){var Ye=we({},ae);return delete Ye.ref,J(Ye,!(_e=ae.ref||_e)||typeof _e=="object"&&!("current"in _e)?null:_e)}return he.$$typeof=ge,he.render=he,he.prototype.isReactComponent=he.__f=!0,he.displayName="ForwardRef("+(J.displayName||J.name)+")",he}var Te=function(J,he){return J==null?null:Object(g.k)(Object(g.k)(J).map(he))},We={map:Te,forEach:Te,count:function(J){return J?Object(g.k)(J).length:0},only:function(J){var he=Object(g.k)(J);if(he.length!==1)throw"Children.only";return he[0]},toArray:g.k},tt=g.i.__e;g.i.__e=function(J,he,ae){if(J.then){for(var _e,Ye=he;Ye=Ye.__;)if((_e=Ye.__c)&&_e.__c)return he.__e==null&&(he.__e=ae.__e,he.__k=ae.__k),_e.__c(J,he)}tt(J,he,ae)};var vt=g.i.unmount;function Ge(J,he,ae){return J&&(J.__c&&J.__c.__H&&(J.__c.__H.__.forEach(function(_e){typeof _e.__c=="function"&&_e.__c()}),J.__c.__H=null),(J=we({},J)).__c!=null&&(J.__c.__P===ae&&(J.__c.__P=he),J.__c=null),J.__k=J.__k&&J.__k.map(function(_e){return Ge(_e,he,ae)})),J}function Ke(J,he,ae){return J&&(J.__v=null,J.__k=J.__k&&J.__k.map(function(_e){return Ke(_e,he,ae)}),J.__c&&J.__c.__P===he&&(J.__e&&ae.insertBefore(J.__e,J.__d),J.__c.__e=!0,J.__c.__P=ae)),J}function gt(){this.__u=0,this.t=null,this.__b=null}function le(J){var he=J.__.__c;return he&&he.__e&&he.__e(J)}function se(){this.u=null,this.o=null}g.i.unmount=function(J){var he=J.__c;he&&he.__R&&he.__R(),he&&J.__h===!0&&(J.type=null),vt&&vt(J)},(gt.prototype=new g.a).__c=function(J,he){var ae=he.__c,_e=this;_e.t==null&&(_e.t=[]),_e.t.push(ae);var Ye=le(_e.__v),Ve=!1,ft=function(){Ve||(Ve=!0,ae.__R=null,Ye?Ye(Ht):Ht())};ae.__R=ft;var Ht=function(){if(!--_e.__u){if(_e.state.__e){var vr=_e.state.__e;_e.__v.__k[0]=Ke(vr,vr.__c.__P,vr.__c.__O)}var Yn;for(_e.setState({__e:_e.__b=null});Yn=_e.t.pop();)Yn.forceUpdate()}},or=he.__h===!0;_e.__u++||or||_e.setState({__e:_e.__b=_e.__v.__k[0]}),J.then(ft,ft)},gt.prototype.componentWillUnmount=function(){this.t=[]},gt.prototype.render=function(J,he){if(this.__b){if(this.__v.__k){var ae=document.createElement("div"),_e=this.__v.__k[0].__c;this.__v.__k[0]=Ge(this.__b,ae,_e.__O=_e.__P)}this.__b=null}var Ye=he.__e&&Object(g.e)(g.b,null,J.fallback);return Ye&&(Ye.__h=null),[Object(g.e)(g.b,null,he.__e?null:J.children),Ye]};var be=function(J,he,ae){if(++ae[1]===ae[0]&&J.o.delete(he),J.props.revealOrder&&(J.props.revealOrder[0]!=="t"||!J.o.size))for(ae=J.u;ae;){for(;ae.length>3;)ae.pop()();if(ae[1]<ae[0])break;J.u=ae=ae[2]}};function Re(J){return this.getChildContext=function(){return J.context},J.children}function Ue(J){var he=this,ae=J.i;he.componentWillUnmount=function(){Object(g.j)(null,he.l),he.l=null,he.i=null},he.i&&he.i!==ae&&he.componentWillUnmount(),J.__v?(he.l||(he.i=ae,he.l={nodeType:1,parentNode:ae,childNodes:[],appendChild:function(_e){this.childNodes.push(_e),he.i.appendChild(_e)},insertBefore:function(_e,Ye){this.childNodes.push(_e),he.i.appendChild(_e)},removeChild:function(_e){this.childNodes.splice(this.childNodes.indexOf(_e)>>>1,1),he.i.removeChild(_e)}}),Object(g.j)(Object(g.e)(Re,{context:he.context},J.__v),he.l)):he.l&&he.componentWillUnmount()}(se.prototype=new g.a).__e=function(J){var he=this,ae=le(he.__v),_e=he.o.get(J);return _e[0]++,function(Ye){var Ve=function(){he.props.revealOrder?(_e.push(Ye),be(he,J,_e)):Ye()};ae?ae(Ve):Ve()}},se.prototype.render=function(J){this.u=null,this.o=new Map;var he=Object(g.k)(J.children);J.revealOrder&&J.revealOrder[0]==="b"&&he.reverse();for(var ae=he.length;ae--;)this.o.set(he[ae],this.u=[1,0,this.u]);return J.children},se.prototype.componentDidUpdate=se.prototype.componentDidMount=function(){var J=this;this.o.forEach(function(he,ae){be(J,ae,he)})};var Be=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,xt=/^(?: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]/,kt=typeof document<"u",jt=function(J){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(J)};g.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(J){Object.defineProperty(g.a.prototype,J,{configurable:!0,get:function(){return this["UNSAFE_"+J]},set:function(he){Object.defineProperty(this,J,{configurable:!0,writable:!0,value:he})}})});var yt=g.i.event;function ke(){}function ct(){return this.cancelBubble}function pe(){return this.defaultPrevented}g.i.event=function(J){return yt&&(J=yt(J)),J.persist=ke,J.isPropagationStopped=ct,J.isDefaultPrevented=pe,J.nativeEvent=J};var ot,Lt={configurable:!0,get:function(){return this.class}},fn=g.i.vnode;g.i.vnode=function(J){var he=J.type,ae=J.props,_e=ae;if(typeof he=="string"){var Ye=he.indexOf("-")===-1;for(var Ve in _e={},ae){var ft=ae[Ve];kt&&Ve==="children"&&he==="noscript"||Ve==="value"&&"defaultValue"in ae&&ft==null||(Ve==="defaultValue"&&"value"in ae&&ae.value==null?Ve="value":Ve==="download"&&ft===!0?ft="":/ondoubleclick/i.test(Ve)?Ve="ondblclick":/^onchange(textarea|input)/i.test(Ve+he)&&!jt(ae.type)?Ve="oninput":/^onfocus$/i.test(Ve)?Ve="onfocusin":/^onblur$/i.test(Ve)?Ve="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Ve)?Ve=Ve.toLowerCase():Ye&&xt.test(Ve)?Ve=Ve.replace(/[A-Z0-9]/,"-$&").toLowerCase():ft===null&&(ft=void 0),_e[Ve]=ft)}he=="select"&&_e.multiple&&Array.isArray(_e.value)&&(_e.value=Object(g.k)(ae.children).forEach(function(Ht){Ht.props.selected=_e.value.indexOf(Ht.props.value)!=-1})),he=="select"&&_e.defaultValue!=null&&(_e.value=Object(g.k)(ae.children).forEach(function(Ht){Ht.props.selected=_e.multiple?_e.defaultValue.indexOf(Ht.props.value)!=-1:_e.defaultValue==Ht.props.value})),J.props=_e,ae.class!=ae.className&&(Lt.enumerable="className"in ae,ae.className!=null&&(_e.class=ae.className),Object.defineProperty(_e,"className",Lt))}J.$$typeof=Be,fn&&fn(J)};var Bt=g.i.__r;g.i.__r=function(J){Bt&&Bt(J),ot=J.__c};var tn={ReactCurrentDispatcher:{current:{readContext:function(J){return ot.__n[J.__c].props.value}}}};function mn(J){return!!J&&J.$$typeof===Be}var Dn=function(J,he){return J(he)},Rt=g.b,Xn={useState:W,useReducer:U,useEffect:ne,useLayoutEffect:ue,useRef:function(J){return E=5,re(function(){return{current:J}},[])},useImperativeHandle:function(J,he,ae){E=6,ue(function(){typeof J=="function"?J(he()):J&&(J.current=he())},ae==null?ae:ae.concat(J))},useMemo:re,useCallback:Q,useContext:function(J){var he=h.context[J.__c],ae=I(d++,9);return ae.c=J,he?(ae.__==null&&(ae.__=!0,he.sub(h)),he.props.value):J.__},useDebugValue:function(J,he){g.i.useDebugValue&&g.i.useDebugValue(he?he(J):J)},version:"17.0.2",Children:We,render:function(J,he,ae){return he.__k==null&&(he.textContent=""),Object(g.j)(J,he),typeof ae=="function"&&ae(),J?J.__c:null},hydrate:function(J,he,ae){return Object(g.h)(J,he),typeof ae=="function"&&ae(),J?J.__c:null},unmountComponentAtNode:function(J){return!!J.__k&&(Object(g.j)(null,J),!0)},createPortal:function(J,he){return Object(g.e)(Ue,{__v:J,i:he})},createElement:g.e,createContext:g.d,createFactory:function(J){return g.e.bind(null,J)},cloneElement:function(J){return mn(J)?g.c.apply(null,arguments):J},createRef:g.f,Fragment:g.b,isValidElement:mn,findDOMNode:function(J){return J&&(J.base||J.nodeType===1&&J)||null},Component:g.a,PureComponent:Ae,memo:Fe,forwardRef:Pe,flushSync:function(J,he){return J(he)},unstable_batchedUpdates:Dn,StrictMode:Rt,Suspense:gt,SuspenseList:se,lazy:function(J){var he,ae,_e;function Ye(Ve){if(he||(he=J()).then(function(ft){ae=ft.default||ft},function(ft){_e=ft}),_e)throw _e;if(!ae)throw he;return Object(g.e)(ae,Ve)}return Ye.displayName="Lazy",Ye.__f=!0,Ye},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:tn};l.d=Xn},function(a,l,o){var d=o(7),h=o(152),m=o(153),g=o(187),E=o(57),P=function(k){if(k&&k.forEach!==g)try{E(k,"forEach",g)}catch{k.forEach=g}};for(var j in h)h[j]&&P(d[j]&&d[j].prototype);P(m)},function(a,l,o){o(17)({target:"Object",stat:!0},{setPrototypeOf:o(102)})},function(a,l,o){var d=o(17),h=o(18),m=o(40),g=o(101),E=o(143);d({target:"Object",stat:!0,forced:h(function(){g(1)}),sham:!E},{getPrototypeOf:function(P){return g(m(P))}})},function(a,l,o){var d=o(17),h=o(46),m=o(74),g=o(202),E=o(162),P=o(32),j=o(33),k=o(60),M=o(18),R=h("Reflect","construct"),N=Object.prototype,I=[].push,W=M(function(){function ue(){}return!(R(function(){},[],ue)instanceof ue)}),U=!M(function(){R(function(){})}),ne=W||U;d({target:"Reflect",stat:!0,forced:ne,sham:ne},{construct:function(ue,re){E(ue),P(re);var Q=arguments.length<3?ue:E(arguments[2]);if(U&&!W)return R(ue,re,Q);if(ue==Q){switch(re.length){case 0:return new ue;case 1:return new ue(re[0]);case 2:return new ue(re[0],re[1]);case 3:return new ue(re[0],re[1],re[2]);case 4:return new ue(re[0],re[1],re[2],re[3])}var ee=[null];return m(I,ee,re),new(m(g,ue,ee))}var H=Q.prototype,B=k(j(H)?H:N),X=m(ue,B,re);return j(X)?X:B}})},function(a,l){var o=Function.prototype,d=o.bind,h=o.call,m=d&&d.bind(h);a.exports=d?function(g){return g&&m(h,g)}:function(g){return g&&function(){return h.apply(g,arguments)}}},function(a,l,o){var d=o(17),h=o(7),m=o(96),g=o(99),E=o(33),P=o(73),j=o(45),k=o(41),M=o(62),R=o(28),N=o(79),I=o(98),W=N("slice"),U=R("species"),ne=h.Array,ue=Math.max;d({target:"Array",proto:!0,forced:!W},{slice:function(re,Q){var ee,H,B,X=k(this),V=j(X),q=P(re,V),ce=P(Q===void 0?V:Q,V);if(m(X)&&(ee=X.constructor,(g(ee)&&(ee===ne||m(ee.prototype))||E(ee)&&(ee=ee[U])===null)&&(ee=void 0),ee===ne||ee===void 0))return I(X,q,ce);for(H=new(ee===void 0?ne:ee)(ue(ce-q,0)),B=0;q<ce;q++,B++)q in X&&M(H,B,X[q]);return H.length=B,H}})},function(a,l,o){var d=o(7),h=o(50).f,m=o(57),g=o(42),E=o(110),P=o(134),j=o(95);a.exports=function(k,M){var R,N,I,W,U,ne=k.target,ue=k.global,re=k.stat;if(R=ue?d:re?d[ne]||E(ne,{}):(d[ne]||{}).prototype)for(N in M){if(W=M[N],I=k.noTargetGet?(U=h(R,N))&&U.value:R[N],!j(ue?N:ne+(re?".":"#")+N,k.forced)&&I!==void 0){if(typeof W==typeof I)continue;P(W,I)}(k.sham||I&&I.sham)&&m(W,"sham",!0),g(R,N,W,k)}}},function(a,l){a.exports=function(o){try{return!!o()}catch{return!0}}},function(a,l,o){var d=o(17),h=o(103);d({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},function(a,l,o){var d=o(17),h=o(40),m=o(75);d({target:"Object",stat:!0,forced:o(18)(function(){m(1)})},{keys:function(g){return m(h(g))}})},function(a,l,o){var d=o(36),h=o(71).EXISTS,m=o(15),g=o(38).f,E=Function.prototype,P=m(E.toString),j=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,k=m(j.exec);d&&!h&&g(E,"name",{configurable:!0,get:function(){try{return k(j,P(this))[1]}catch{return""}}})},function(a,l,o){var d=o(17),h=o(18),m=o(41),g=o(50).f,E=o(36),P=h(function(){g(1)});d({target:"Object",stat:!0,forced:!E||P,sham:!E},{getOwnPropertyDescriptor:function(j,k){return g(m(j),k)}})},function(a,l,o){var d=o(17),h=o(188);d({target:"Array",stat:!0,forced:!o(120)(function(m){Array.from(m)})},{from:h})},function(a,l,o){var d=o(17),h=o(77).filter;d({target:"Array",proto:!0,forced:!o(79)("filter")},{filter:function(m){return h(this,m,arguments.length>1?arguments[1]:void 0)}})},function(a,l,o){var d=o(17),h=o(36),m=o(135),g=o(41),E=o(50),P=o(62);d({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(j){for(var k,M,R=g(j),N=E.f,I=m(R),W={},U=0;I.length>U;)(M=N(R,k=I[U++]))!==void 0&&P(W,k,M);return W}})},function(a,l,o){var d=o(17),h=o(7),m=o(18),g=o(96),E=o(33),P=o(40),j=o(45),k=o(62),M=o(115),R=o(79),N=o(28),I=o(68),W=N("isConcatSpreadable"),U=9007199254740991,ne="Maximum allowed index exceeded",ue=h.TypeError,re=I>=51||!m(function(){var H=[];return H[W]=!1,H.concat()[0]!==H}),Q=R("concat"),ee=function(H){if(!E(H))return!1;var B=H[W];return B!==void 0?!!B:g(H)};d({target:"Array",proto:!0,forced:!re||!Q},{concat:function(H){var B,X,V,q,ce,we=P(this),ye=M(we,0),Ae=0;for(B=-1,V=arguments.length;B<V;B++)if(ee(ce=B===-1?we:arguments[B])){if(Ae+(q=j(ce))>U)throw ue(ne);for(X=0;X<q;X++,Ae++)X in ce&&k(ye,Ae,ce[X])}else{if(Ae>=U)throw ue(ne);k(ye,Ae++,ce)}return ye.length=Ae,ye}})},,function(a,l,o){var d=o(7),h=o(89),m=o(35),g=o(90),E=o(108),P=o(132),j=h("wks"),k=d.Symbol,M=k&&k.for,R=P?k:k&&k.withoutSetter||g;a.exports=function(N){if(!m(j,N)||!E&&typeof j[N]!="string"){var I="Symbol."+N;E&&m(k,N)?j[N]=k[N]:j[N]=P&&M?M(I):R(I)}return j[N]}},function(a,l,o){var d=o(17),h=o(201);d({target:"Object",stat:!0,forced:Object.assign!==h},{assign:h})},function(a,l){a.exports=function(o){return typeof o=="function"}},function(a,l,o){var d=o(106),h=typeof self=="object"&&self&&self.Object===Object&&self,m=d.a||h||Function("return this")();l.a=m},function(a,l,o){var d=o(7),h=o(33),m=d.String,g=d.TypeError;a.exports=function(E){if(h(E))return E;throw g(m(E)+" is not an object")}},function(a,l,o){var d=o(30);a.exports=function(h){return typeof h=="object"?h!==null:d(h)}},function(a,l){var o=Function.prototype.call;a.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(a,l,o){var d=o(15),h=o(40),m=d({}.hasOwnProperty);a.exports=Object.hasOwn||function(g,E){return m(h(g),E)}},function(a,l,o){var d=o(18);a.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(a,l,o){var d=o(17),h=o(77).map;d({target:"Array",proto:!0,forced:!o(79)("map")},{map:function(m){return h(this,m,arguments.length>1?arguments[1]:void 0)}})},function(a,l,o){var d=o(7),h=o(36),m=o(133),g=o(32),E=o(86),P=d.TypeError,j=Object.defineProperty;l.f=h?j:function(k,M,R){if(g(k),M=E(M),g(R),m)try{return j(k,M,R)}catch{}if("get"in R||"set"in R)throw P("Accessors not supported");return"value"in R&&(k[M]=R.value),k}},function(a,l,o){var d=o(7),h=o(97),m=d.String;a.exports=function(g){if(h(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return m(g)}},function(a,l,o){var d=o(7),h=o(44),m=d.Object;a.exports=function(g){return m(h(g))}},function(a,l,o){var d=o(85),h=o(44);a.exports=function(m){return d(h(m))}},function(a,l,o){var d=o(7),h=o(30),m=o(35),g=o(57),E=o(110),P=o(92),j=o(58),k=o(71).CONFIGURABLE,M=j.get,R=j.enforce,N=String(String).split("String");(a.exports=function(I,W,U,ne){var ue,re=!!ne&&!!ne.unsafe,Q=!!ne&&!!ne.enumerable,ee=!!ne&&!!ne.noTargetGet,H=ne&&ne.name!==void 0?ne.name:W;h(U)&&(String(H).slice(0,7)==="Symbol("&&(H="["+String(H).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!m(U,"name")||k&&U.name!==H)&&g(U,"name",H),(ue=R(U)).source||(ue.source=N.join(typeof H=="string"?H:""))),I!==d?(re?!ee&&I[W]&&(Q=!0):delete I[W],Q?I[W]=U:g(I,W,U)):Q?I[W]=U:E(W,U)})(Function.prototype,"toString",function(){return h(this)&&M(this).source||P(this)})},function(a,l,o){(function(d){o.d(l,"d",function(){return g}),o.d(l,"c",function(){return E}),o.d(l,"b",function(){return P}),o.d(l,"a",function(){return k});var h=o(10),m=function(M,R){var N=typeof Symbol=="function"&&M[Symbol.iterator];if(!N)return M;var I,W,U=N.call(M),ne=[];try{for(;(R===void 0||R-- >0)&&!(I=U.next()).done;)ne.push(I.value)}catch(ue){W={error:ue}}finally{try{I&&!I.done&&(N=U.return)&&N.call(U)}finally{if(W)throw W.error}}return ne};function g(){var M=m(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 P(M){return typeof Symbol=="function"?Symbol.for(M):"__$mobx-react "+M+"__"}var j={};function k(){return typeof window<"u"?window:d!==void 0?d:typeof self<"u"?self:j}}).call(this,o(66))},function(a,l,o){var d=o(7).TypeError;a.exports=function(h){if(h==null)throw d("Can't call method on "+h);return h}},function(a,l,o){var d=o(94);a.exports=function(h){return d(h.length)}},function(a,l,o){var d=o(7),h=o(30),m=function(g){return h(g)?g:void 0};a.exports=function(g,E){return arguments.length<2?m(d[g]):d[g]&&d[g][E]}},function(a,l,o){var d=o(17),h=o(34),m=o(33),g=o(32),E=o(203),P=o(50),j=o(101);d({target:"Reflect",stat:!0},{get:function k(M,R){var N,I,W=arguments.length<3?M:arguments[2];return g(M)===W?M[R]:(N=P.f(M,R))?E(N)?N.value:N.get===void 0?void 0:h(N.get,W):m(I=j(M))?k(I,R,W):void 0}})},function(a,l,o){(function(d){var h=o(31),m=o(171),g=u&&!u.nodeType&&u,E=g&&typeof d=="object"&&d&&!d.nodeType&&d,P=E&&E.exports===g?h.a.Buffer:void 0,j=(P?P.isBuffer:void 0)||m.a;l.a=j}).call(this,o(122)(a))},function(a,l,o){(function(d){var h=o(106),m=u&&!u.nodeType&&u,g=m&&typeof d=="object"&&d&&!d.nodeType&&d,E=g&&g.exports===m&&h.a.process,P=function(){try{var j=g&&g.require&&g.require("util").types;return j||E&&E.binding&&E.binding("util")}catch{}}();l.a=P}).call(this,o(122)(a))},function(a,l,o){var d=o(36),h=o(34),m=o(84),g=o(67),E=o(41),P=o(86),j=o(35),k=o(133),M=Object.getOwnPropertyDescriptor;l.f=d?M:function(R,N){if(R=E(R),N=P(N),k)try{return M(R,N)}catch{}if(j(R,N))return g(!h(m.f,R,N),R[N])}},function(a,l,o){var d=o(15),h=d({}.toString),m=d("".slice);a.exports=function(g){return m(h(g),8,-1)}},function(a,l,o){o(182)("Map",function(d){return function(){return d(this,arguments.length?arguments[0]:void 0)}},o(186))},function(a,l,o){var d=o(17),h=o(218).entries;d({target:"Object",stat:!0},{entries:function(m){return h(m)}})},function(a,l,o){var d=o(15);a.exports=d({}.isPrototypeOf)},function(a,l,o){var d=o(46);a.exports=d("navigator","userAgent")||""},function(a,l,o){var d=o(7),h=o(30),m=o(88),g=d.TypeError;a.exports=function(E){if(h(E))return E;throw g(m(E)+" is not a function")}},function(a,l,o){var d=o(36),h=o(38),m=o(67);a.exports=d?function(g,E,P){return h.f(g,E,m(1,P))}:function(g,E,P){return g[E]=P,g}},function(a,l,o){var d,h,m,g=o(175),E=o(7),P=o(15),j=o(33),k=o(57),M=o(35),R=o(109),N=o(93),I=o(70),W="Object already initialized",U=E.TypeError,ne=E.WeakMap;if(g||R.state){var ue=R.state||(R.state=new ne),re=P(ue.get),Q=P(ue.has),ee=P(ue.set);d=function(B,X){if(Q(ue,B))throw new U(W);return X.facade=B,ee(ue,B,X),X},h=function(B){return re(ue,B)||{}},m=function(B){return Q(ue,B)}}else{var H=N("state");I[H]=!0,d=function(B,X){if(M(B,H))throw new U(W);return X.facade=B,k(B,H,X),X},h=function(B){return M(B,H)?B[H]:{}},m=function(B){return M(B,H)}}a.exports={set:d,get:h,has:m,enforce:function(B){return m(B)?h(B):d(B,{})},getterFor:function(B){return function(X){var V;if(!j(X)||(V=h(X)).type!==B)throw U("Incompatible receiver, "+B+" required");return V}}}},function(a,l){var o=Math.ceil,d=Math.floor;a.exports=function(h){var m=+h;return m!=m||m===0?0:(m>0?d:o)(m)}},function(a,l,o){var d,h=o(32),m=o(176),g=o(111),E=o(70),P=o(138),j=o(91),k=o(93),M=k("IE_PROTO"),R=function(){},N=function(U){return"<script>"+U+"<\/script>"},I=function(U){U.write(N("")),U.close();var ne=U.parentWindow.Object;return U=null,ne},W=function(){try{d=new ActiveXObject("htmlfile")}catch{}var U,ne;W=typeof document<"u"?document.domain&&d?I(d):((ne=j("iframe")).style.display="none",P.appendChild(ne),ne.src="javascript:",(U=ne.contentWindow.document).open(),U.write(N("document.F=Object")),U.close(),U.F):I(d);for(var ue=g.length;ue--;)delete W.prototype[g[ue]];return W()};E[M]=!0,a.exports=Object.create||function(U,ne){var ue;return U!==null?(R.prototype=h(U),ue=new R,R.prototype=null,ue[M]=U):ue=W(),ne===void 0?ue:m(ue,ne)}},function(a,l,o){var d=o(56);a.exports=function(h,m){var g=h[m];return g==null?void 0:d(g)}},function(a,l,o){var d=o(86),h=o(38),m=o(67);a.exports=function(g,E,P){var j=d(E);j in g?h.f(g,j,m(0,P)):g[j]=P}},function(a,l,o){var d=o(15),h=o(56),m=d(d.bind);a.exports=function(g,E){return h(g),E===void 0?g:m?m(g,E):function(){return g.apply(E,arguments)}}},function(a,l,o){var d=o(17),h=o(15),m=o(85),g=o(41),E=o(121),P=h([].join),j=m!=Object,k=E("join",",");d({target:"Array",proto:!0,forced:j||!k},{join:function(M){return P(g(this),M===void 0?",":M)}})},function(a,l,o){var d=o(17),h=o(215),m=o(100);d({target:"Array",proto:!0},{fill:h}),m("fill")},function(a,l){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}a.exports=o},function(a,l){a.exports=function(o,d){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:d}}},function(a,l,o){var d,h,m=o(7),g=o(55),E=m.process,P=m.Deno,j=E&&E.versions||P&&P.version,k=j&&j.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]),a.exports=h},function(a,l){a.exports=!1},function(a,l){a.exports={}},function(a,l,o){var d=o(36),h=o(35),m=Function.prototype,g=d&&Object.getOwnPropertyDescriptor,E=h(m,"name"),P=E&&(function(){}).name==="something",j=E&&(!d||d&&g(m,"name").configurable);a.exports={EXISTS:E,PROPER:P,CONFIGURABLE:j}},function(a,l,o){var d=o(136),h=o(111).concat("length","prototype");l.f=Object.getOwnPropertyNames||function(m){return d(m,h)}},function(a,l,o){var d=o(59),h=Math.max,m=Math.min;a.exports=function(g,E){var P=d(g);return P<0?h(P+E,0):m(P,E)}},function(a,l){var o=Function.prototype,d=o.apply,h=o.bind,m=o.call;a.exports=typeof Reflect=="object"&&Reflect.apply||(h?m.bind(d):function(){return m.apply(d,arguments)})},function(a,l,o){var d=o(136),h=o(111);a.exports=Object.keys||function(m){return d(m,h)}},function(a,l,o){var d=o(38).f,h=o(35),m=o(28)("toStringTag");a.exports=function(g,E,P){g&&!h(g=P?g:g.prototype,m)&&d(g,m,{configurable:!0,value:E})}},function(a,l,o){var d=o(63),h=o(15),m=o(85),g=o(40),E=o(45),P=o(115),j=h([].push),k=function(M){var R=M==1,N=M==2,I=M==3,W=M==4,U=M==6,ne=M==7,ue=M==5||U;return function(re,Q,ee,H){for(var B,X,V=g(re),q=m(V),ce=d(Q,ee),we=E(q),ye=0,Ae=H||P,Fe=R?Ae(re,we):N||ne?Ae(re,0):void 0;we>ye;ye++)if((ue||ye in q)&&(X=ce(B=q[ye],ye,V),M))if(R)Fe[ye]=X;else if(X)switch(M){case 3:return!0;case 5:return B;case 6:return ye;case 2:j(Fe,B)}else switch(M){case 4:return!1;case 7:j(Fe,B)}return U?-1:I||W?W:Fe}};a.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(a,l){a.exports={}},function(a,l,o){var d=o(18),h=o(28),m=o(68),g=h("species");a.exports=function(E){return m>=51||!d(function(){var P=[];return(P.constructor={})[g]=function(){return{foo:1}},P[E](Boolean).foo!==1})}},function(a,l,o){var d=o(15),h=o(71).PROPER,m=o(42),g=o(32),E=o(54),P=o(39),j=o(18),k=o(154),M="toString",R=RegExp.prototype,N=R.toString,I=d(k),W=j(function(){return N.call({source:"a",flags:"b"})!="/a/b"}),U=h&&N.name!=M;(W||U)&&m(RegExp.prototype,M,function(){var ne=g(this),ue=P(ne.source),re=ne.flags;return"/"+ue+"/"+P(re===void 0&&E(R,ne)&&!("flags"in R)?I(ne):re)},{unsafe:!0})},function(a,l,o){var d=o(74),h=o(34),m=o(15),g=o(123),E=o(159),P=o(32),j=o(44),k=o(161),M=o(124),R=o(94),N=o(39),I=o(61),W=o(114),U=o(125),ne=o(103),ue=o(155),re=o(18),Q=ue.UNSUPPORTED_Y,ee=4294967295,H=Math.min,B=[].push,X=m(/./.exec),V=m(B),q=m("".slice),ce=!re(function(){var we=/(?:)/,ye=we.exec;we.exec=function(){return ye.apply(this,arguments)};var Ae="ab".split(we);return Ae.length!==2||Ae[0]!=="a"||Ae[1]!=="b"});g("split",function(we,ye,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,ge){var Pe=N(j(this)),Te=ge===void 0?ee:ge>>>0;if(Te===0)return[];if(je===void 0)return[Pe];if(!E(je))return h(ye,Pe,je,Te);for(var We,tt,vt,Ge=[],Ke=(je.ignoreCase?"i":"")+(je.multiline?"m":"")+(je.unicode?"u":"")+(je.sticky?"y":""),gt=0,le=new RegExp(je.source,Ke+"g");(We=h(ne,le,Pe))&&!((tt=le.lastIndex)>gt&&(V(Ge,q(Pe,gt,We.index)),We.length>1&&We.index<Pe.length&&d(B,Ge,W(We,1)),vt=We[0].length,gt=tt,Ge.length>=Te));)le.lastIndex===We.index&&le.lastIndex++;return gt===Pe.length?!vt&&X(le,"")||V(Ge,""):V(Ge,q(Pe,gt)),Ge.length>Te?W(Ge,0,Te):Ge}:"0".split(void 0,0).length?function(je,ge){return je===void 0&&ge===0?[]:h(ye,this,je,ge)}:ye,[function(je,ge){var Pe=j(this),Te=je==null?void 0:I(je,we);return Te?h(Te,je,Pe,ge):h(Fe,N(Pe),je,ge)},function(je,ge){var Pe=P(this),Te=N(je),We=Ae(Fe,Pe,Te,ge,Fe!==ye);if(We.done)return We.value;var tt=k(Pe,RegExp),vt=Pe.unicode,Ge=(Pe.ignoreCase?"i":"")+(Pe.multiline?"m":"")+(Pe.unicode?"u":"")+(Q?"g":"y"),Ke=new tt(Q?"^(?:"+Pe.source+")":Pe,Ge),gt=ge===void 0?ee:ge>>>0;if(gt===0)return[];if(Te.length===0)return U(Ke,Te)===null?[Te]:[];for(var le=0,se=0,be=[];se<Te.length;){Ke.lastIndex=Q?0:se;var Re,Ue=U(Ke,Q?q(Te,se):Te);if(Ue===null||(Re=H(R(Ke.lastIndex+(Q?se:0)),Te.length))===le)se=M(Te,se,vt);else{if(V(be,q(Te,le,se)),be.length===gt)return be;for(var Be=1;Be<=Ue.length-1;Be++)if(V(be,Ue[Be]),be.length===gt)return be;se=le=Re}}return V(be,q(Te,le)),be}]},!ce,Q)},function(a,l,o){var d=o(36),h=o(7),m=o(15),g=o(95),E=o(42),P=o(35),j=o(148),k=o(54),M=o(87),R=o(131),N=o(18),I=o(72).f,W=o(50).f,U=o(38).f,ne=o(166),ue=o(164).trim,re="Number",Q=h.Number,ee=Q.prototype,H=h.TypeError,B=m("".slice),X=m("".charCodeAt),V=function(Fe){var je=R(Fe,"number");return typeof je=="bigint"?je:q(je)},q=function(Fe){var je,ge,Pe,Te,We,tt,vt,Ge,Ke=R(Fe,"number");if(M(Ke))throw H("Cannot convert a Symbol value to a number");if(typeof Ke=="string"&&Ke.length>2){if(Ke=ue(Ke),(je=X(Ke,0))===43||je===45){if((ge=X(Ke,2))===88||ge===120)return NaN}else if(je===48){switch(X(Ke,1)){case 66:case 98:Pe=2,Te=49;break;case 79:case 111:Pe=8,Te=55;break;default:return+Ke}for(tt=(We=B(Ke,2)).length,vt=0;vt<tt;vt++)if((Ge=X(We,vt))<48||Ge>Te)return NaN;return parseInt(We,Pe)}}return+Ke};if(g(re,!Q(" 0o1")||!Q("0b1")||Q("+0x1"))){for(var ce,we=function(Fe){var je=arguments.length<1?0:Q(V(Fe)),ge=this;return k(ee,ge)&&N(function(){ne(ge)})?j(Object(je),ge,we):je},ye=d?I(Q):"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;ye.length>Ae;Ae++)P(Q,ce=ye[Ae])&&!P(we,ce)&&U(we,ce,W(Q,ce));we.prototype=ee,ee.constructor=we,E(h,re,we)}},function(a,l,o){o(17)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(a,l,o){var d={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,m=h&&!d.call({1:2},1);l.f=m?function(g){var E=h(this,g);return!!E&&E.enumerable}:d},function(a,l,o){var d=o(7),h=o(15),m=o(18),g=o(51),E=d.Object,P=h("".split);a.exports=m(function(){return!E("z").propertyIsEnumerable(0)})?function(j){return g(j)=="String"?P(j,""):E(j)}:E},function(a,l,o){var d=o(131),h=o(87);a.exports=function(m){var g=d(m,"string");return h(g)?g:g+""}},function(a,l,o){var d=o(7),h=o(46),m=o(30),g=o(54),E=o(132),P=d.Object;a.exports=E?function(j){return typeof j=="symbol"}:function(j){var k=h("Symbol");return m(k)&&g(k.prototype,P(j))}},function(a,l,o){var d=o(7).String;a.exports=function(h){try{return d(h)}catch{return"Object"}}},function(a,l,o){var d=o(69),h=o(109);(a.exports=function(m,g){return h[m]||(h[m]=g!==void 0?g:{})})("versions",[]).push({version:"3.19.3",mode:d?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(a,l,o){var d=o(15),h=0,m=Math.random(),g=d(1 .toString);a.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+g(++h+m,36)}},function(a,l,o){var d=o(7),h=o(33),m=d.document,g=h(m)&&h(m.createElement);a.exports=function(E){return g?m.createElement(E):{}}},function(a,l,o){var d=o(15),h=o(30),m=o(109),g=d(Function.toString);h(m.inspectSource)||(m.inspectSource=function(E){return g(E)}),a.exports=m.inspectSource},function(a,l,o){var d=o(89),h=o(90),m=d("keys");a.exports=function(g){return m[g]||(m[g]=h(g))}},function(a,l,o){var d=o(59),h=Math.min;a.exports=function(m){return m>0?h(d(m),9007199254740991):0}},function(a,l,o){var d=o(18),h=o(30),m=/#|\.prototype\./,g=function(M,R){var N=P[E(M)];return N==k||N!=j&&(h(R)?d(R):!!R)},E=g.normalize=function(M){return String(M).replace(m,".").toLowerCase()},P=g.data={},j=g.NATIVE="N",k=g.POLYFILL="P";a.exports=g},function(a,l,o){var d=o(51);a.exports=Array.isArray||function(h){return d(h)=="Array"}},function(a,l,o){var d=o(7),h=o(113),m=o(30),g=o(51),E=o(28)("toStringTag"),P=d.Object,j=g(function(){return arguments}())=="Arguments";a.exports=h?g:function(k){var M,R,N;return k===void 0?"Undefined":k===null?"Null":typeof(R=function(I,W){try{return I[W]}catch{}}(M=P(k),E))=="string"?R:j?g(M):(N=g(M))=="Object"&&m(M.callee)?"Arguments":N}},function(a,l,o){var d=o(15);a.exports=d([].slice)},function(a,l,o){var d=o(15),h=o(18),m=o(30),g=o(97),E=o(46),P=o(92),j=function(){},k=[],M=E("Reflect","construct"),R=/^\s*(?:class|function)\b/,N=d(R.exec),I=!R.exec(j),W=function(U){if(!m(U))return!1;try{return M(j,k,U),!0}catch{return!1}};a.exports=!M||h(function(){var U;return W(W.call)||!W(Object)||!W(function(){U=!0})||U})?function(U){if(!m(U))return!1;switch(g(U)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return I||!!N(R,P(U))}:W},function(a,l,o){var d=o(28),h=o(60),m=o(38),g=d("unscopables"),E=Array.prototype;E[g]==null&&m.f(E,g,{configurable:!0,value:h(null)}),a.exports=function(P){E[g][P]=!0}},function(a,l,o){var d=o(7),h=o(35),m=o(30),g=o(40),E=o(93),P=o(143),j=E("IE_PROTO"),k=d.Object,M=k.prototype;a.exports=P?k.getPrototypeOf:function(R){var N=g(R);if(h(N,j))return N[j];var I=N.constructor;return m(I)&&N instanceof I?I.prototype:N instanceof k?M:null}},function(a,l,o){var d=o(15),h=o(32),m=o(181);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g,E=!1,P={};try{(g=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(P,[]),E=P instanceof Array}catch{}return function(j,k){return h(j),m(k),E?g(j,k):j.__proto__=k,j}}():void 0)},function(a,l,o){var d,h,m=o(34),g=o(15),E=o(39),P=o(154),j=o(155),k=o(89),M=o(60),R=o(58).get,N=o(190),I=o(191),W=k("native-string-replace",String.prototype.replace),U=RegExp.prototype.exec,ne=U,ue=g("".charAt),re=g("".indexOf),Q=g("".replace),ee=g("".slice),H=(h=/b*/g,m(U,d=/a/,"a"),m(U,h,"a"),d.lastIndex!==0||h.lastIndex!==0),B=j.BROKEN_CARET,X=/()??/.exec("")[1]!==void 0;(H||X||B||N||I)&&(ne=function(V){var q,ce,we,ye,Ae,Fe,je,ge=this,Pe=R(ge),Te=E(V),We=Pe.raw;if(We)return We.lastIndex=ge.lastIndex,q=m(ne,We,Te),ge.lastIndex=We.lastIndex,q;var tt=Pe.groups,vt=B&&ge.sticky,Ge=m(P,ge),Ke=ge.source,gt=0,le=Te;if(vt&&(Ge=Q(Ge,"y",""),re(Ge,"g")===-1&&(Ge+="g"),le=ee(Te,ge.lastIndex),ge.lastIndex>0&&(!ge.multiline||ge.multiline&&ue(Te,ge.lastIndex-1)!==`
`)&&(Ke="(?: "+Ke+")",le=" "+le,gt++),ce=new RegExp("^(?:"+Ke+")",Ge)),X&&(ce=new RegExp("^"+Ke+"$(?!\\s)",Ge)),H&&(we=ge.lastIndex),ye=m(U,vt?ce:ge,le),vt?ye?(ye.input=ee(ye.input,gt),ye[0]=ee(ye[0],gt),ye.index=ge.lastIndex,ge.lastIndex+=ye[0].length):ge.lastIndex=0:H&&ye&&(ge.lastIndex=ge.global?ye.index+ye[0].length:we),X&&ye&&ye.length>1&&m(W,ye[0],ce,function(){for(Ae=1;Ae<arguments.length-2;Ae++)arguments[Ae]===void 0&&(ye[Ae]=void 0)}),ye&&tt)for(ye.groups=Fe=M(null),Ae=0;Ae<tt.length;Ae++)Fe[(je=tt[Ae])[0]]=ye[je[1]];return ye}),a.exports=ne},function(a,l,o){var d=o(17),h=o(7),m=o(73),g=o(59),E=o(45),P=o(40),j=o(115),k=o(62),M=o(79)("splice"),R=h.TypeError,N=Math.max,I=Math.min,W=9007199254740991,U="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!M},{splice:function(ne,ue){var re,Q,ee,H,B,X,V=P(this),q=E(V),ce=m(ne,q),we=arguments.length;if(we===0?re=Q=0:we===1?(re=0,Q=q-ce):(re=we-2,Q=I(N(g(ue),0),q-ce)),q+re-Q>W)throw R(U);for(ee=j(V,Q),H=0;H<Q;H++)(B=ce+H)in V&&k(ee,H,V[B]);if(ee.length=Q,re<Q){for(H=ce;H<q-Q;H++)X=H+re,(B=H+Q)in V?V[X]=V[B]:delete V[X];for(H=q;H>q-Q+re;H--)delete V[H-1]}else if(re>Q)for(H=q-Q;H>ce;H--)X=H+re-1,(B=H+Q-1)in V?V[X]=V[B]:delete V[X];for(H=0;H<re;H++)V[H+ce]=arguments[H+2];return V.length=q-Q+re,ee}})},function(a,l,o){var d=o(17),h=o(204);d({target:"String",proto:!0,forced:o(205)("anchor")},{anchor:function(m){return h(this,"a","name",m)}})},function(a,l,o){(function(d){var h=typeof d=="object"&&d&&d.Object===Object&&d;l.a=h}).call(this,o(66))},function(a,l,o){(function(d){var h=o(31),m=u&&!u.nodeType&&u,g=m&&typeof d=="object"&&d&&!d.nodeType&&d,E=g&&g.exports===m?h.a.Buffer:void 0,P=E?E.allocUnsafe:void 0;l.a=function(j,k){if(k)return j.slice();var M=j.length,R=P?P(M):new j.constructor(M);return j.copy(R),R}}).call(this,o(122)(a))},function(a,l,o){var d=o(68),h=o(18);a.exports=!!Object.getOwnPropertySymbols&&!h(function(){var m=Symbol();return!String(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&d&&d<41})},function(a,l,o){var d=o(7),h=o(110),m="__core-js_shared__",g=d[m]||h(m,{});a.exports=g},function(a,l,o){var d=o(7),h=Object.defineProperty;a.exports=function(m,g){try{h(d,m,{value:g,configurable:!0,writable:!0})}catch{d[m]=g}return g}},function(a,l){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(a,l){l.f=Object.getOwnPropertySymbols},function(a,l,o){var d={};d[o(28)("toStringTag")]="z",a.exports=String(d)==="[object z]"},function(a,l,o){var d=o(7),h=o(73),m=o(45),g=o(62),E=d.Array,P=Math.max;a.exports=function(j,k,M){for(var R=m(j),N=h(k,R),I=h(M===void 0?R:M,R),W=E(P(I-N,0)),U=0;N<I;N++,U++)g(W,U,j[N]);return W.length=U,W}},function(a,l,o){var d=o(178);a.exports=function(h,m){return new(d(h))(m===0?0:m)}},function(a,l,o){var d=o(17),h=o(34),m=o(69),g=o(71),E=o(30),P=o(180),j=o(101),k=o(102),M=o(76),R=o(57),N=o(42),I=o(28),W=o(78),U=o(142),ne=g.PROPER,ue=g.CONFIGURABLE,re=U.IteratorPrototype,Q=U.BUGGY_SAFARI_ITERATORS,ee=I("iterator"),H="keys",B="values",X="entries",V=function(){return this};a.exports=function(q,ce,we,ye,Ae,Fe,je){P(we,ce,ye);var ge,Pe,Te,We=function(se){if(se===Ae&&gt)return gt;if(!Q&&se in Ge)return Ge[se];switch(se){case H:case B:case X:return function(){return new we(this,se)}}return function(){return new we(this)}},tt=ce+" Iterator",vt=!1,Ge=q.prototype,Ke=Ge[ee]||Ge["@@iterator"]||Ae&&Ge[Ae],gt=!Q&&Ke||We(Ae),le=ce=="Array"&&Ge.entries||Ke;if(le&&(ge=j(le.call(new q)))!==Object.prototype&&ge.next&&(m||j(ge)===re||(k?k(ge,re):E(ge[ee])||N(ge,ee,V)),M(ge,tt,!0,!0),m&&(W[tt]=V)),ne&&Ae==B&&Ke&&Ke.name!==B&&(!m&&ue?R(Ge,"name",B):(vt=!0,gt=function(){return h(Ke,this)})),Ae)if(Pe={values:We(B),keys:Fe?gt:We(H),entries:We(X)},je)for(Te in Pe)(Q||vt||!(Te in Ge))&&N(Ge,Te,Pe[Te]);else d({target:ce,proto:!0,forced:Q||vt},Pe);return m&&!je||Ge[ee]===gt||N(Ge,ee,gt,{name:Ae}),W[ce]=gt,Pe}},function(a,l,o){var d=o(7),h=o(63),m=o(34),g=o(32),E=o(88),P=o(145),j=o(45),k=o(54),M=o(146),R=o(118),N=o(147),I=d.TypeError,W=function(ne,ue){this.stopped=ne,this.result=ue},U=W.prototype;a.exports=function(ne,ue,re){var Q,ee,H,B,X,V,q,ce=re&&re.that,we=!(!re||!re.AS_ENTRIES),ye=!(!re||!re.IS_ITERATOR),Ae=!(!re||!re.INTERRUPTED),Fe=h(ue,ce),je=function(Pe){return Q&&N(Q,"normal",Pe),new W(!0,Pe)},ge=function(Pe){return we?(g(Pe),Ae?Fe(Pe[0],Pe[1],je):Fe(Pe[0],Pe[1])):Ae?Fe(Pe,je):Fe(Pe)};if(ye)Q=ne;else{if(!(ee=R(ne)))throw I(E(ne)+" is not iterable");if(P(ee)){for(H=0,B=j(ne);B>H;H++)if((X=ge(ne[H]))&&k(U,X))return X;return new W(!1)}Q=M(ne,ee)}for(V=Q.next;!(q=m(V,Q)).done;){try{X=ge(q.value)}catch(Pe){N(Q,"throw",Pe)}if(typeof X=="object"&&X&&k(U,X))return X}return new W(!1)}},function(a,l,o){var d=o(97),h=o(61),m=o(78),g=o(28)("iterator");a.exports=function(E){if(E!=null)return h(E,g)||h(E,"@@iterator")||m[d(E)]}},function(a,l,o){var d=o(7),h=o(54),m=d.TypeError;a.exports=function(g,E){if(h(E,g))return g;throw m("Incorrect invocation")}},function(a,l,o){var d=o(28)("iterator"),h=!1;try{var m=0,g={next:function(){return{done:!!m++}},return:function(){h=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}a.exports=function(E,P){if(!P&&!h)return!1;var j=!1;try{var k={};k[d]=function(){return{next:function(){return{done:j=!0}}}},E(k)}catch{}return j}},function(a,l,o){var d=o(18);a.exports=function(h,m){var g=[][h];return!!g&&d(function(){g.call(null,m||function(){throw 1},1)})}},function(a,l){a.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(a,l,o){o(19);var d=o(15),h=o(42),m=o(103),g=o(18),E=o(28),P=o(57),j=E("species"),k=RegExp.prototype;a.exports=function(M,R,N,I){var W=E(M),U=!g(function(){var Q={};return Q[W]=function(){return 7},""[M](Q)!=7}),ne=U&&!g(function(){var Q=!1,ee=/a/;return M==="split"&&((ee={}).constructor={},ee.constructor[j]=function(){return ee},ee.flags="",ee[W]=/./[W]),ee.exec=function(){return Q=!0,null},ee[W](""),!Q});if(!U||!ne||N){var ue=d(/./[W]),re=R(W,""[M],function(Q,ee,H,B,X){var V=d(Q),q=ee.exec;return q===m||q===k.exec?U&&!X?{done:!0,value:ue(ee,H,B)}:{done:!0,value:V(H,ee,B)}:{done:!1}});h(String.prototype,M,re[0]),h(k,W,re[1])}I&&P(k[W],"sham",!0)}},function(a,l,o){var d=o(151).charAt;a.exports=function(h,m,g){return m+(g?d(h,m).length:1)}},function(a,l,o){var d=o(7),h=o(34),m=o(32),g=o(30),E=o(51),P=o(103),j=d.TypeError;a.exports=function(k,M){var R=k.exec;if(g(R)){var N=h(R,k,M);return N!==null&&m(N),N}if(E(k)==="RegExp")return h(P,k,M);throw j("RegExp#exec called on incompatible receiver")}},function(a,l,o){var d=o(74),h=o(34),m=o(15),g=o(123),E=o(18),P=o(32),j=o(30),k=o(59),M=o(94),R=o(39),N=o(44),I=o(124),W=o(61),U=o(200),ne=o(125),ue=o(28)("replace"),re=Math.max,Q=Math.min,ee=m([].concat),H=m([].push),B=m("".indexOf),X=m("".slice),V="a".replace(/./,"$0")==="$0",q=!!/./[ue]&&/./[ue]("a","$0")==="";g("replace",function(ce,we,ye){var Ae=q?"$":"$0";return[function(Fe,je){var ge=N(this),Pe=Fe==null?void 0:W(Fe,ue);return Pe?h(Pe,Fe,ge,je):h(we,R(ge),Fe,je)},function(Fe,je){var ge=P(this),Pe=R(Fe);if(typeof je=="string"&&B(je,Ae)===-1&&B(je,"$<")===-1){var Te=ye(we,ge,Pe,je);if(Te.done)return Te.value}var We=j(je);We||(je=R(je));var tt=ge.global;if(tt){var vt=ge.unicode;ge.lastIndex=0}for(var Ge=[];;){var Ke=ne(ge,Pe);if(Ke===null||(H(Ge,Ke),!tt))break;R(Ke[0])===""&&(ge.lastIndex=I(Pe,M(ge.lastIndex),vt))}for(var gt,le="",se=0,be=0;be<Ge.length;be++){for(var Re=R((Ke=Ge[be])[0]),Ue=re(Q(k(Ke.index),Pe.length),0),Be=[],xt=1;xt<Ke.length;xt++)H(Be,(gt=Ke[xt])===void 0?gt:String(gt));var kt=Ke.groups;if(We){var jt=ee([Re],Be,Ue,Pe);kt!==void 0&&H(jt,kt);var yt=R(d(je,void 0,jt))}else yt=U(Re,Pe,Ue,Be,kt,je);Ue>=se&&(le+=X(Pe,se,Ue)+yt,se=Ue+Re.length)}return le+X(Pe,se)}]},!!E(function(){var ce=/./;return ce.exec=function(){var we=[];return we.groups={a:"7"},we},"".replace(ce,"$<a>")!=="7"})||!V||q)},function(a,l,o){var d=o(17),h=Math.hypot,m=Math.abs,g=Math.sqrt;d({target:"Math",stat:!0,forced:!!h&&h(1/0,NaN)!==1/0},{hypot:function(E,P){for(var j,k,M=0,R=0,N=arguments.length,I=0;R<N;)I<(j=m(arguments[R++]))?(M=M*(k=I/j)*k+1,I=j):M+=j>0?(k=j/I)*k:j;return I===1/0?1/0:I*g(M)}})},function(a,l,o){var d=o(51),h=o(7);a.exports=d(h.process)=="process"},function(a,l,o){o(17)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(a,l,o){(function(d,h){var m;/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var g,E="Expected a function",P="__lodash_hash_undefined__",j="__lodash_placeholder__",k=16,M=32,R=64,N=128,I=256,W=1/0,U=9007199254740991,ne=NaN,ue=4294967295,re=[["ary",N],["bind",1],["bindKey",2],["curry",8],["curryRight",k],["flip",512],["partial",M],["partialRight",R],["rearg",I]],Q="[object Arguments]",ee="[object Array]",H="[object Boolean]",B="[object Date]",X="[object Error]",V="[object Function]",q="[object GeneratorFunction]",ce="[object Map]",we="[object Number]",ye="[object Object]",Ae="[object Promise]",Fe="[object RegExp]",je="[object Set]",ge="[object String]",Pe="[object Symbol]",Te="[object WeakMap]",We="[object ArrayBuffer]",tt="[object DataView]",vt="[object Float32Array]",Ge="[object Float64Array]",Ke="[object Int8Array]",gt="[object Int16Array]",le="[object Int32Array]",se="[object Uint8Array]",be="[object Uint8ClampedArray]",Re="[object Uint16Array]",Ue="[object Uint32Array]",Be=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,kt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jt=/&(?:amp|lt|gt|quot|#39);/g,yt=/[&<>"']/g,ke=RegExp(jt.source),ct=RegExp(yt.source),pe=/<%-([\s\S]+?)%>/g,ot=/<%([\s\S]+?)%>/g,Lt=/<%=([\s\S]+?)%>/g,fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mn=/[\\^$.*+?()[\]{}|]/g,Dn=RegExp(mn.source),Rt=/^\s+/,Xn=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,he=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,_e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Ve=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ht=/\w*$/,or=/^[-+]0x[0-9a-f]+$/i,vr=/^0b[01]+$/i,Yn=/^\[object .+?Constructor\]$/,Qn=/^0o[0-7]+$/i,it=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,Ct=/['\n\r\u2028\u2029\\]/g,gn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",zn="\\u2700-\\u27bf",Bo="a-z\\xdf-\\xf6\\xf8-\\xff",So="A-Z\\xc0-\\xd6\\xd8-\\xde",zo="\\ufe0e\\ufe0f",Ii="\\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",Al="[']",$u="[\\ud800-\\udfff]",Zr="["+Ii+"]",fa="["+gn+"]",st="\\d+",Tl="[\\u2700-\\u27bf]",Wu="["+Bo+"]",Gu="[^\\ud800-\\udfff"+Ii+st+zn+Bo+So+"]",Mr="\\ud83c[\\udffb-\\udfff]",zr="[^\\ud800-\\udfff]",Xa="(?:\\ud83c[\\udde6-\\uddff]){2}",ho="[\\ud800-\\udbff][\\udc00-\\udfff]",Jr="["+So+"]",yo="(?:"+Wu+"|"+Gu+")",Uu="(?:"+Jr+"|"+Gu+")",Hu="(?:['](?:d|ll|m|re|s|t|ve))?",Xc="(?:['](?:D|LL|M|RE|S|T|VE))?",pa="(?:"+fa+"|"+Mr+")?",Yc="[\\ufe0e\\ufe0f]?",Xu=Yc+pa+("(?:\\u200d(?:"+[zr,Xa,ho].join("|")+")"+Yc+pa+")*"),Ml="(?:"+[Tl,Xa,ho].join("|")+")"+Xu,hi="(?:"+[zr+fa+"?",fa,Xa,ho,$u].join("|")+")",Vc=RegExp(Al,"g"),Fo=RegExp(fa,"g"),Yu=RegExp(Mr+"(?="+Mr+")|"+hi+Xu,"g"),Ya=RegExp([Jr+"?"+Wu+"+"+Hu+"(?="+[Zr,Jr,"$"].join("|")+")",Uu+"+"+Xc+"(?="+[Zr,Jr+yo,"$"].join("|")+")",Jr+"?"+yo+"+"+Hu,Jr+"+"+Xc,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",st,Ml].join("|"),"g"),Vu=RegExp("[\\u200d\\ud800-\\udfff"+gn+zo+"]"),Ku=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kl=["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"],Kc=-1,hn={};hn[vt]=hn[Ge]=hn[Ke]=hn[gt]=hn[le]=hn[se]=hn[be]=hn[Re]=hn[Ue]=!0,hn[Q]=hn[ee]=hn[We]=hn[H]=hn[tt]=hn[B]=hn[X]=hn[V]=hn[ce]=hn[we]=hn[ye]=hn[Fe]=hn[je]=hn[ge]=hn[Te]=!1;var pn={};pn[Q]=pn[ee]=pn[We]=pn[tt]=pn[H]=pn[B]=pn[vt]=pn[Ge]=pn[Ke]=pn[gt]=pn[le]=pn[ce]=pn[we]=pn[ye]=pn[Fe]=pn[je]=pn[ge]=pn[Pe]=pn[se]=pn[be]=pn[Re]=pn[Ue]=!0,pn[X]=pn[V]=pn[Te]=!1;var qc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Li=parseFloat,$o=parseInt,qu=typeof d=="object"&&d&&d.Object===Object&&d,Zc=typeof self=="object"&&self&&self.Object===Object&&self,Gn=qu||Zc||Function("return this")(),Zu=l&&!l.nodeType&&l,da=Zu&&typeof h=="object"&&h&&!h.nodeType&&h,Ju=da&&da.exports===Zu,Va=Ju&&qu.process,gr=function(){try{var xe=da&&da.require&&da.require("util").types;return xe||Va&&Va.binding&&Va.binding("util")}catch{}}(),Qu=gr&&gr.isArrayBuffer,Jc=gr&&gr.isDate,ec=gr&&gr.isMap,Ka=gr&&gr.isRegExp,Bi=gr&&gr.isSet,jo=gr&&gr.isTypedArray;function wn(xe,Ce,Le){switch(Le.length){case 0:return xe.call(Ce);case 1:return xe.call(Ce,Le[0]);case 2:return xe.call(Ce,Le[0],Le[1]);case 3:return xe.call(Ce,Le[0],Le[1],Le[2])}return xe.apply(Ce,Le)}function Qc(xe,Ce,Le,Ze){for(var zt=-1,Jt=xe==null?0:xe.length;++zt<Jt;){var Sn=xe[zt];Ce(Ze,Sn,Le(Sn),xe)}return Ze}function kr(xe,Ce){for(var Le=-1,Ze=xe==null?0:xe.length;++Le<Ze&&Ce(xe[Le],Le,xe)!==!1;);return xe}function es(xe,Ce){for(var Le=xe==null?0:xe.length;Le--&&Ce(xe[Le],Le,xe)!==!1;);return xe}function ts(xe,Ce){for(var Le=-1,Ze=xe==null?0:xe.length;++Le<Ze;)if(!Ce(xe[Le],Le,xe))return!1;return!0}function Er(xe,Ce){for(var Le=-1,Ze=xe==null?0:xe.length,zt=0,Jt=[];++Le<Ze;){var Sn=xe[Le];Ce(Sn,Le,xe)&&(Jt[zt++]=Sn)}return Jt}function Dr(xe,Ce){return!!(xe!=null&&xe.length)&&zi(xe,Ce,0)>-1}function tc(xe,Ce,Le){for(var Ze=-1,zt=xe==null?0:xe.length;++Ze<zt;)if(Le(Ce,xe[Ze]))return!0;return!1}function an(xe,Ce){for(var Le=-1,Ze=xe==null?0:xe.length,zt=Array(Ze);++Le<Ze;)zt[Le]=Ce(xe[Le],Le,xe);return zt}function ir(xe,Ce){for(var Le=-1,Ze=Ce.length,zt=xe.length;++Le<Ze;)xe[zt+Le]=Ce[Le];return xe}function qa(xe,Ce,Le,Ze){var zt=-1,Jt=xe==null?0:xe.length;for(Ze&&Jt&&(Le=xe[++zt]);++zt<Jt;)Le=Ce(Le,xe[zt],zt,xe);return Le}function ns(xe,Ce,Le,Ze){var zt=xe==null?0:xe.length;for(Ze&&zt&&(Le=xe[--zt]);zt--;)Le=Ce(Le,xe[zt],zt,xe);return Le}function nc(xe,Ce){for(var Le=-1,Ze=xe==null?0:xe.length;++Le<Ze;)if(Ce(xe[Le],Le,xe))return!0;return!1}var Za=Rr("length");function Po(xe,Ce,Le){var Ze;return Le(xe,function(zt,Jt,Sn){if(Ce(zt,Jt,Sn))return Ze=Jt,!1}),Ze}function Wo(xe,Ce,Le,Ze){for(var zt=xe.length,Jt=Le+(Ze?1:-1);Ze?Jt--:++Jt<zt;)if(Ce(xe[Jt],Jt,xe))return Jt;return-1}function zi(xe,Ce,Le){return Ce==Ce?function(Ze,zt,Jt){for(var Sn=Jt-1,O=Ze.length;++Sn<O;)if(Ze[Sn]===zt)return Sn;return-1}(xe,Ce,Le):Wo(xe,Go,Le)}function Nr(xe,Ce,Le,Ze){for(var zt=Le-1,Jt=xe.length;++zt<Jt;)if(Ze(xe[zt],Ce))return zt;return-1}function Go(xe){return xe!=xe}function nn(xe,Ce){var Le=xe==null?0:xe.length;return Le?Ja(xe,Ce)/Le:ne}function Rr(xe){return function(Ce){return Ce==null?g:Ce[xe]}}function Ao(xe){return function(Ce){return xe==null?g:xe[Ce]}}function dr(xe,Ce,Le,Ze,zt){return zt(xe,function(Jt,Sn,O){Le=Ze?(Ze=!1,Jt):Ce(Le,Jt,Sn,O)}),Le}function Ja(xe,Ce){for(var Le,Ze=-1,zt=xe.length;++Ze<zt;){var Jt=Ce(xe[Ze]);Jt!==g&&(Le=Le===g?Jt:Le+Jt)}return Le}function ha(xe,Ce){for(var Le=-1,Ze=Array(xe);++Le<xe;)Ze[Le]=Ce(Le);return Ze}function rc(xe){return xe&&xe.slice(0,Cr(xe)+1).replace(Rt,"")}function Fn(xe){return function(Ce){return xe(Ce)}}function Qa(xe,Ce){return an(Ce,function(Le){return xe[Le]})}function Uo(xe,Ce){return xe.has(Ce)}function Qr(xe,Ce){for(var Le=-1,Ze=xe.length;++Le<Ze&&zi(Ce,xe[Le],0)>-1;);return Le}function oc(xe,Ce){for(var Le=xe.length;Le--&&zi(Ce,xe[Le],0)>-1;);return Le}function Dl(xe,Ce){for(var Le=xe.length,Ze=0;Le--;)xe[Le]===Ce&&++Ze;return Ze}var ic=Ao({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=Ao({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Fi(xe){return"\\"+qc[xe]}function To(xe){return Vu.test(xe)}function Sr(xe){var Ce=-1,Le=Array(xe.size);return xe.forEach(function(Ze,zt){Le[++Ce]=[zt,Ze]}),Le}function ac(xe,Ce){return function(Le){return xe(Ce(Le))}}function Fr(xe,Ce){for(var Le=-1,Ze=xe.length,zt=0,Jt=[];++Le<Ze;){var Sn=xe[Le];Sn!==Ce&&Sn!==j||(xe[Le]=j,Jt[zt++]=Le)}return Jt}function yi(xe){var Ce=-1,Le=Array(xe.size);return xe.forEach(function(Ze){Le[++Ce]=Ze}),Le}function eu(xe){var Ce=-1,Le=Array(xe.size);return xe.forEach(function(Ze){Le[++Ce]=[Ze,Ze]}),Le}function Mo(xe){return To(xe)?function(Ce){for(var Le=Yu.lastIndex=0;Yu.test(Ce);)++Le;return Le}(xe):Za(xe)}function $r(xe){return To(xe)?function(Ce){return Ce.match(Yu)||[]}(xe):function(Ce){return Ce.split("")}(xe)}function Cr(xe){for(var Ce=xe.length;Ce--&&Xn.test(xe.charAt(Ce)););return Ce}var eo=Ao({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ko=function xe(Ce){var Le,Ze=(Ce=Ce==null?Gn:ko.defaults(Gn.Object(),Ce,ko.pick(Gn,kl))).Array,zt=Ce.Date,Jt=Ce.Error,Sn=Ce.Function,O=Ce.Math,w=Ce.Object,T=Ce.RegExp,z=Ce.String,K=Ce.TypeError,de=Ze.prototype,Se=Sn.prototype,$e=w.prototype,at=Ce["__core-js_shared__"],Vt=Se.toString,et=$e.hasOwnProperty,_n=0,Ft=(Le=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||""))?"Symbol(src)_1."+Le:"",sn=$e.toString,to=Vt.call(w),Rn=Gn._,Ir=T("^"+Vt.call(et).replace(mn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ho=Ju?Ce.Buffer:g,Xo=Ce.Symbol,ya=Ce.Uint8Array,uc=Ho?Ho.allocUnsafe:g,vi=ac(w.getPrototypeOf,w),tu=w.create,jr=$e.propertyIsEnumerable,va=de.splice,$i=Xo?Xo.isConcatSpreadable:g,gi=Xo?Xo.iterator:g,bi=Xo?Xo.toStringTag:g,cc=function(){try{var f=Vi(w,"defineProperty");return f({},"",{}),f}catch{}}(),Ay=Ce.clearTimeout!==Gn.clearTimeout&&Ce.clearTimeout,Ty=zt&&zt.now!==Gn.Date.now&&zt.now,Rp=Ce.setTimeout!==Gn.setTimeout&&Ce.setTimeout,rs=O.ceil,nu=O.floor,Nl=w.getOwnPropertySymbols,My=Ho?Ho.isBuffer:g,Cp=Ce.isFinite,ky=de.join,Ip=ac(w.keys,w),hr=O.max,Pr=O.min,os=zt.now,is=Ce.parseInt,as=O.random,Dy=de.reverse,ru=Vi(Ce,"DataView"),Yo=Vi(Ce,"Map"),Rl=Vi(Ce,"Promise"),ga=Vi(Ce,"Set"),ou=Vi(Ce,"WeakMap"),sc=Vi(w,"create"),us=ou&&new ou,iu={},Ny=Ur(ru),Lp=Ur(Yo),Ry=Ur(Rl),Cy=Ur(ga),Bp=Ur(ou),cs=Xo?Xo.prototype:g,yr=cs?cs.valueOf:g,zp=cs?cs.toString:g;function F(f){if(Wn(f)&&!Wt(f)&&!(f instanceof on)){if(f instanceof vo)return f;if(et.call(f,"__wrapped__"))return bd(f)}return new vo(f)}var au=function(){function f(){}return function(y){if(!$n(y))return{};if(tu)return tu(y);f.prototype=y;var _=new f;return f.prototype=g,_}}();function lc(){}function vo(f,y){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!y,this.__index__=0,this.__values__=g}function on(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ue,this.__views__=[]}function ba(f){var y=-1,_=f==null?0:f.length;for(this.clear();++y<_;){var A=f[y];this.set(A[0],A[1])}}function On(f){var y=-1,_=f==null?0:f.length;for(this.clear();++y<_;){var A=f[y];this.set(A[0],A[1])}}function Vo(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 Vo;++y<_;)this.add(f[y])}function go(f){var y=this.__data__=new On(f);this.size=y.size}function Cl(f,y){var _=Wt(f),A=!_&&Ea(f),C=!_&&!A&&Ei(f),G=!_&&!A&&!C&&Ki(f),ie=_||A||C||G,fe=ie?ha(f.length,z):[],Oe=fe.length;for(var Ie in f)!y&&!et.call(f,Ie)||ie&&(Ie=="length"||C&&(Ie=="offset"||Ie=="parent")||G&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Qo(Ie,Oe))||fe.push(Ie);return fe}function Il(f){var y=f.length;return y?f[Ul(0,y-1)]:g}function Fp(f,y){return _a(Gr(f),Gi(y,0,f.length))}function $p(f){return _a(Gr(f))}function ss(f,y,_){(_!==g&&!Bn(f[y],_)||_===g&&!(y in f))&&Ko(f,y,_)}function uu(f,y,_){var A=f[y];et.call(f,y)&&Bn(A,_)&&(_!==g||y in f)||Ko(f,y,_)}function fc(f,y){for(var _=f.length;_--;)if(Bn(f[_][0],y))return _;return-1}function Wp(f,y,_,A){return Cn(f,function(C,G,ie){y(A,C,_(C),ie)}),A}function Ll(f,y){return f&&qo(y,cr(y),f)}function Ko(f,y,_){y=="__proto__"&&cc?cc(f,y,{configurable:!0,enumerable:!0,value:_,writable:!0}):f[y]=_}function ls(f,y){for(var _=-1,A=y.length,C=Ze(A),G=f==null;++_<A;)C[_]=G?g:Ec(f,y[_]);return C}function Gi(f,y,_){return f==f&&(_!==g&&(f=f<=_?f:_),y!==g&&(f=f>=y?f:y)),f}function no(f,y,_,A,C,G){var ie,fe=1&y,Oe=2&y,Ie=4&y;if(_&&(ie=C?_(f,A,C,G):_(f)),ie!==g)return ie;if(!$n(f))return f;var De=Wt(f);if(De){if(ie=function(ze){var He=ze.length,Dt=new ze.constructor(He);return He&&typeof ze[0]=="string"&&et.call(ze,"index")&&(Dt.index=ze.index,Dt.input=ze.input),Dt}(f),!fe)return Gr(f,ie)}else{var te=Or(f),lt=te==V||te==q;if(Ei(f))return Zl(f,fe);if(te==ye||te==Q||lt&&!C){if(ie=Oe||lt?{}:of(f),!fe)return Oe?function(ze,He){return qo(ze,Ne(ze),He)}(f,function(ze,He){return ze&&qo(He,mr(He),ze)}(ie,f)):function(ze,He){return qo(ze,nf(ze),He)}(f,Ll(ie,f))}else{if(!pn[te])return C?f:{};ie=function(ze,He,Dt){var ut=ze.constructor;switch(He){case We:return Jl(ze);case H:case B:return new ut(+ze);case tt:return function(It,en){var _t=en?Jl(It.buffer):It.buffer;return new It.constructor(_t,It.byteOffset,It.byteLength)}(ze,Dt);case vt:case Ge:case Ke:case gt:case le:case se:case be:case Re:case Ue:return An(ze,Dt);case ce:return new ut;case we:case ge:return new ut(ze);case Fe:return function(It){var en=new It.constructor(It.source,Ht.exec(It));return en.lastIndex=It.lastIndex,en}(ze);case je:return new ut;case Pe:return Nt=ze,yr?w(yr.call(Nt)):{}}var Nt}(f,te,fe)}}G||(G=new go);var ht=G.get(f);if(ht)return ht;G.set(f,ie),_u(f)?f.forEach(function(ze){ie.add(no(ze,y,_,ze,f,G))}):Md(f)&&f.forEach(function(ze,He){ie.set(He,no(ze,y,_,He,f,G))});var At=De?g:(Ie?Oe?tf:vc:Oe?mr:cr)(f);return kr(At||f,function(ze,He){At&&(ze=f[He=ze]),uu(ie,He,no(ze,y,_,He,f,G))}),ie}function Bl(f,y,_){var A=_.length;if(f==null)return!A;for(f=w(f);A--;){var C=_[A],G=y[C],ie=f[C];if(ie===g&&!(C in f)||!G(ie))return!1}return!0}function zl(f,y,_){if(typeof f!="function")throw new K(E);return gu(function(){f.apply(g,_)},y)}function mi(f,y,_,A){var C=-1,G=Dr,ie=!0,fe=f.length,Oe=[],Ie=y.length;if(!fe)return Oe;_&&(y=an(y,Fn(_))),A?(G=tc,ie=!1):y.length>=200&&(G=Uo,ie=!1,y=new Wi(y));e:for(;++C<fe;){var De=f[C],te=_==null?De:_(De);if(De=A||De!==0?De:0,ie&&te==te){for(var lt=Ie;lt--;)if(y[lt]===te)continue e;Oe.push(De)}else G(y,te,A)||Oe.push(De)}return Oe}F.templateSettings={escape:pe,evaluate:ot,interpolate:Lt,variable:"",imports:{_:F}},F.prototype=lc.prototype,F.prototype.constructor=F,vo.prototype=au(lc.prototype),vo.prototype.constructor=vo,on.prototype=au(lc.prototype),on.prototype.constructor=on,ba.prototype.clear=function(){this.__data__=sc?sc(null):{},this.size=0},ba.prototype.delete=function(f){var y=this.has(f)&&delete this.__data__[f];return this.size-=y?1:0,y},ba.prototype.get=function(f){var y=this.__data__;if(sc){var _=y[f];return _===P?g:_}return et.call(y,f)?y[f]:g},ba.prototype.has=function(f){var y=this.__data__;return sc?y[f]!==g:et.call(y,f)},ba.prototype.set=function(f,y){var _=this.__data__;return this.size+=this.has(f)?0:1,_[f]=sc&&y===g?P:y,this},On.prototype.clear=function(){this.__data__=[],this.size=0},On.prototype.delete=function(f){var y=this.__data__,_=fc(y,f);return!(_<0)&&(_==y.length-1?y.pop():va.call(y,_,1),--this.size,!0)},On.prototype.get=function(f){var y=this.__data__,_=fc(y,f);return _<0?g:y[_][1]},On.prototype.has=function(f){return fc(this.__data__,f)>-1},On.prototype.set=function(f,y){var _=this.__data__,A=fc(_,f);return A<0?(++this.size,_.push([f,y])):_[A][1]=y,this},Vo.prototype.clear=function(){this.size=0,this.__data__={hash:new ba,map:new(Yo||On),string:new ba}},Vo.prototype.delete=function(f){var y=yu(this,f).delete(f);return this.size-=y?1:0,y},Vo.prototype.get=function(f){return yu(this,f).get(f)},Vo.prototype.has=function(f){return yu(this,f).has(f)},Vo.prototype.set=function(f,y){var _=yu(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,P),this},Wi.prototype.has=function(f){return this.__data__.has(f)},go.prototype.clear=function(){this.__data__=new On,this.size=0},go.prototype.delete=function(f){var y=this.__data__,_=y.delete(f);return this.size=y.size,_},go.prototype.get=function(f){return this.__data__.get(f)},go.prototype.has=function(f){return this.__data__.has(f)},go.prototype.set=function(f,y){var _=this.__data__;if(_ instanceof On){var A=_.__data__;if(!Yo||A.length<199)return A.push([f,y]),this.size=++_.size,this;_=this.__data__=new Vo(A)}return _.set(f,y),this.size=_.size,this};var Cn=id(pt),Gp=id(jn,!0);function Up(f,y){var _=!0;return Cn(f,function(A,C,G){return _=!!y(A,C,G)}),_}function Vn(f,y,_){for(var A=-1,C=f.length;++A<C;){var G=f[A],ie=y(G);if(ie!=null&&(fe===g?ie==ie&&!wr(ie):_(ie,fe)))var fe=ie,Oe=G}return Oe}function yn(f,y){var _=[];return Cn(f,function(A,C,G){y(A,C,G)&&_.push(A)}),_}function br(f,y,_,A,C){var G=-1,ie=f.length;for(_||(_=hd),C||(C=[]);++G<ie;){var fe=f[G];y>0&&_(fe)?y>1?br(fe,y-1,_,A,C):ir(C,fe):A||(C[C.length]=fe)}return C}var qt=ad(),tr=ad(!0);function pt(f,y){return f&&qt(f,y,cr)}function jn(f,y){return f&&tr(f,y,cr)}function fs(f,y){return Er(y,function(_){return Si(f[_])})}function _i(f,y){for(var _=0,A=(y=Hi(y,f)).length;f!=null&&_<A;)f=f[ar(y[_++])];return _&&_==A?f:g}function Fl(f,y,_){var A=y(f);return Wt(f)?A:ir(A,_(f))}function Pn(f){return f==null?f===g?"[object Undefined]":"[object Null]":bi&&bi in w(f)?function(y){var _=et.call(y,bi),A=y[bi];try{y[bi]=g;var C=!0}catch{}var G=sn.call(y);return C&&(_?y[bi]=A:delete y[bi]),G}(f):function(y){return sn.call(y)}(f)}function Un(f,y){return f>y}function Hp(f,y){return f!=null&&et.call(f,y)}function Xp(f,y){return f!=null&&y in w(f)}function ps(f,y,_){for(var A=_?tc:Dr,C=f[0].length,G=f.length,ie=G,fe=Ze(G),Oe=1/0,Ie=[];ie--;){var De=f[ie];ie&&y&&(De=an(De,Fn(y))),Oe=Pr(De.length,Oe),fe[ie]=!_&&(y||C>=120&&De.length>=120)?new Wi(ie&&De):g}De=f[0];var te=-1,lt=fe[0];e:for(;++te<C&&Ie.length<Oe;){var ht=De[te],At=y?y(ht):ht;if(ht=_||ht!==0?ht:0,!(lt?Uo(lt,At):A(Ie,At,_))){for(ie=G;--ie;){var ze=fe[ie];if(!(ze?Uo(ze,At):A(f[ie],At,_)))continue e}lt&&lt.push(At),Ie.push(ht)}}return Ie}function cu(f,y,_){var A=(f=sf(f,y=Hi(y,f)))==null?f:f[ar(Tn(y))];return A==null?g:wn(A,f,_)}function $l(f){return Wn(f)&&Pn(f)==Q}function su(f,y,_,A,C){return f===y||(f==null||y==null||!Wn(f)&&!Wn(y)?f!=f&&y!=y:function(G,ie,fe,Oe,Ie,De){var te=Wt(G),lt=Wt(ie),ht=te?ee:Or(G),At=lt?ee:Or(ie),ze=(ht=ht==Q?ye:ht)==ye,He=(At=At==Q?ye:At)==ye,Dt=ht==At;if(Dt&&Ei(G)){if(!Ei(ie))return!1;te=!0,ze=!1}if(Dt&&!ze)return De||(De=new go),te||Ki(G)?dd(G,ie,fe,Oe,Ie,De):function(_t,Tt,Hn,Yr,Ro,Zn,ni){switch(Hn){case tt:if(_t.byteLength!=Tt.byteLength||_t.byteOffset!=Tt.byteOffset)return!1;_t=_t.buffer,Tt=Tt.buffer;case We:return!(_t.byteLength!=Tt.byteLength||!Zn(new ya(_t),new ya(Tt)));case H:case B:case we:return Bn(+_t,+Tt);case X:return _t.name==Tt.name&&_t.message==Tt.message;case Fe:case ge:return _t==Tt+"";case ce:var Ji=Sr;case je:var Su=1&Yr;if(Ji||(Ji=yi),_t.size!=Tt.size&&!Su)return!1;var ja=ni.get(_t);if(ja)return ja==Tt;Yr|=2,ni.set(_t,Tt);var ri=dd(Ji(_t),Ji(Tt),Yr,Ro,Zn,ni);return ni.delete(_t),ri;case Pe:if(yr)return yr.call(_t)==yr.call(Tt)}return!1}(G,ie,ht,fe,Oe,Ie,De);if(!(1&fe)){var ut=ze&&et.call(G,"__wrapped__"),Nt=He&&et.call(ie,"__wrapped__");if(ut||Nt){var It=ut?G.value():G,en=Nt?ie.value():ie;return De||(De=new go),Ie(It,en,fe,Oe,De)}}return Dt?(De||(De=new go),function(_t,Tt,Hn,Yr,Ro,Zn){var ni=1&Hn,Ji=vc(_t),Su=Ji.length,ja=vc(Tt).length;if(Su!=ja&&!ni)return!1;for(var ri=Su;ri--;){var _o=Ji[ri];if(!(ni?_o in Tt:et.call(Tt,_o)))return!1}var Zf=Zn.get(_t),Us=Zn.get(Tt);if(Zf&&Us)return Zf==Tt&&Us==_t;var Pa=!0;Zn.set(_t,Tt),Zn.set(Tt,_t);for(var Vr=ni;++ri<Su;){var Hs=_t[_o=Ji[ri]],oo=Tt[_o];if(Yr)var bt=ni?Yr(oo,Hs,_o,Tt,_t,Zn):Yr(Hs,oo,_o,_t,Tt,Zn);if(!(bt===g?Hs===oo||Ro(Hs,oo,Hn,Yr,Zn):bt)){Pa=!1;break}Vr||(Vr=_o=="constructor")}if(Pa&&!Vr){var kc=_t.constructor,Dc=Tt.constructor;kc==Dc||!("constructor"in _t)||!("constructor"in Tt)||typeof kc=="function"&&kc instanceof kc&&typeof Dc=="function"&&Dc instanceof Dc||(Pa=!1)}return Zn.delete(_t),Zn.delete(Tt),Pa}(G,ie,fe,Oe,Ie,De)):!1}(f,y,_,A,su,C))}function ds(f,y,_,A){var C=_.length,G=C,ie=!A;if(f==null)return!G;for(f=w(f);C--;){var fe=_[C];if(ie&&fe[2]?fe[1]!==f[fe[0]]:!(fe[0]in f))return!1}for(;++C<G;){var Oe=(fe=_[C])[0],Ie=f[Oe],De=fe[1];if(ie&&fe[2]){if(Ie===g&&!(Oe in f))return!1}else{var te=new go;if(A)var lt=A(Ie,De,Oe,f,y,te);if(!(lt===g?su(De,Ie,3,A,te):lt))return!1}}return!0}function lu(f){return!(!$n(f)||(y=f,Ft&&Ft in y))&&(Si(f)?Ir:Yn).test(Ur(f));var y}function Wl(f){return typeof f=="function"?f:f==null?Tr:typeof f=="object"?Wt(f)?Vp(f[0],f[1]):Yp(f):Eu(f)}function Oi(f){if(!vu(f))return Ip(f);var y=[];for(var _ in w(f))et.call(f,_)&&_!="constructor"&&y.push(_);return y}function Iy(f){if(!$n(f))return function(C){var G=[];if(C!=null)for(var ie in w(C))G.push(ie);return G}(f);var y=vu(f),_=[];for(var A in f)(A!="constructor"||!y&&et.call(f,A))&&_.push(A);return _}function wi(f,y){return f<y}function bo(f,y){var _=-1,A=Lr(f)?Ze(f.length):[];return Cn(f,function(C,G,ie){A[++_]=y(C,G,ie)}),A}function Yp(f){var y=js(f);return y.length==1&&y[0][2]?uf(y[0][0],y[0][1]):function(_){return _===f||ds(_,f,y)}}function Vp(f,y){return Ps(f)&&af(y)?uf(ar(f),y):function(_){var A=Ec(_,f);return A===g&&A===y?Sc(_,f):su(y,A,3)}}function hs(f,y,_,A,C){f!==y&&qt(y,function(G,ie){if(C||(C=new go),$n(G))(function(Oe,Ie,De,te,lt,ht,At){var ze=Ts(Oe,De),He=Ts(Ie,De),Dt=At.get(He);if(Dt)return void ss(Oe,De,Dt);var ut=ht?ht(ze,He,De+"",Oe,Ie,At):g,Nt=ut===g;if(Nt){var It=Wt(He),en=!It&&Ei(He),_t=!It&&!en&&Ki(He);ut=He,It||en||_t?Wt(ze)?ut=ze:Kn(ze)?ut=Gr(ze):en?(Nt=!1,ut=Zl(He,!0)):_t?(Nt=!1,ut=An(He,!0)):ut=[]:ji(He)||Ea(He)?(ut=ze,Ea(ze)?ut=Nf(ze):$n(ze)&&!Si(ze)||(ut=of(He))):Nt=!1}Nt&&(At.set(He,ut),lt(ut,He,te,ht,At),At.delete(He)),ss(Oe,De,ut)})(f,y,ie,_,hs,A,C);else{var fe=A?A(Ts(f,ie),G,ie+"",f,y,C):g;fe===g&&(fe=G),ss(f,ie,fe)}},mr)}function Kp(f,y){var _=f.length;if(_)return Qo(y+=y<0?_:0,_)?f[y]:g}function qp(f,y,_){y=y.length?an(y,function(G){return Wt(G)?function(ie){return _i(ie,G.length===1?G[0]:G)}:G}):[Tr];var A=-1;y=an(y,Fn(Et()));var C=bo(f,function(G,ie,fe){var Oe=an(y,function(Ie){return Ie(G)});return{criteria:Oe,index:++A,value:G}});return function(G,ie){var fe=G.length;for(G.sort(ie);fe--;)G[fe]=G[fe].value;return G}(C,function(G,ie){return function(fe,Oe,Ie){for(var De=-1,te=fe.criteria,lt=Oe.criteria,ht=te.length,At=Ie.length;++De<ht;){var ze=od(te[De],lt[De]);if(ze)return De>=At?ze:ze*(Ie[De]=="desc"?-1:1)}return fe.index-Oe.index}(G,ie,_)})}function Zp(f,y,_){for(var A=-1,C=y.length,G={};++A<C;){var ie=y[A],fe=_i(f,ie);_(fe,ie)&&pu(G,Hi(ie,f),fe)}return G}function Gl(f,y,_,A){var C=A?Nr:zi,G=-1,ie=y.length,fe=f;for(f===y&&(y=Gr(y)),_&&(fe=an(f,Fn(_)));++G<ie;)for(var Oe=0,Ie=y[G],De=_?_(Ie):Ie;(Oe=C(fe,De,Oe,A))>-1;)fe!==f&&va.call(fe,Oe,1),va.call(f,Oe,1);return f}function fu(f,y){for(var _=f?y.length:0,A=_-1;_--;){var C=y[_];if(_==A||C!==G){var G=C;Qo(C)?va.call(f,C,1):gs(f,C)}}return f}function Ul(f,y){return f+nu(as()*(y-f+1))}function ys(f,y){var _="";if(!f||y<1||y>U)return _;do y%2&&(_+=f),(y=nu(y/2))&&(f+=f);while(y);return _}function Zt(f,y){return Ms(cf(f,y,Tr),f+"")}function Ly(f){return Il(Zi(f))}function Hl(f,y){var _=Zi(f);return _a(_,Gi(y,0,_.length))}function pu(f,y,_,A){if(!$n(f))return f;for(var C=-1,G=(y=Hi(y,f)).length,ie=G-1,fe=f;fe!=null&&++C<G;){var Oe=ar(y[C]),Ie=_;if(Oe==="__proto__"||Oe==="constructor"||Oe==="prototype")return f;if(C!=ie){var De=fe[Oe];(Ie=A?A(De,Oe,fe):g)===g&&(Ie=$n(De)?De:Qo(y[C+1])?[]:{})}uu(fe,Oe,Ie),fe=fe[Oe]}return f}var Jp=us?function(f,y){return us.set(f,y),f}:Tr,By=cc?function(f,y){return cc(f,"toString",{configurable:!0,enumerable:!1,value:Pc(y),writable:!0})}:Tr;function zy(f){return _a(Zi(f))}function mo(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 G=Ze(C);++A<C;)G[A]=f[A+y];return G}function Xl(f,y){var _;return Cn(f,function(A,C,G){return!(_=y(A,C,G))}),!!_}function vs(f,y,_){var A=0,C=f==null?A:f.length;if(typeof y=="number"&&y==y&&C<=2147483647){for(;A<C;){var G=A+C>>>1,ie=f[G];ie!==null&&!wr(ie)&&(_?ie<=y:ie<y)?A=G+1:C=G}return C}return Yl(f,y,Tr,_)}function Yl(f,y,_,A){var C=0,G=f==null?0:f.length;if(G===0)return 0;for(var ie=(y=_(y))!=y,fe=y===null,Oe=wr(y),Ie=y===g;C<G;){var De=nu((C+G)/2),te=_(f[De]),lt=te!==g,ht=te===null,At=te==te,ze=wr(te);if(ie)var He=A||At;else He=Ie?At&&(A||lt):fe?At&&lt&&(A||!ht):Oe?At&&lt&&!ht&&(A||!ze):!ht&&!ze&&(A?te<=y:te<y);He?C=De+1:G=De}return Pr(G,4294967294)}function Qp(f,y){for(var _=-1,A=f.length,C=0,G=[];++_<A;){var ie=f[_],fe=y?y(ie):ie;if(!_||!Bn(fe,Oe)){var Oe=fe;G[C++]=ie===0?0:ie}}return G}function Vl(f){return typeof f=="number"?f:wr(f)?ne:+f}function Wr(f){if(typeof f=="string")return f;if(Wt(f))return an(f,Wr)+"";if(wr(f))return zp?zp.call(f):"";var y=f+"";return y=="0"&&1/f==-1/0?"-0":y}function Ui(f,y,_){var A=-1,C=Dr,G=f.length,ie=!0,fe=[],Oe=fe;if(_)ie=!1,C=tc;else if(G>=200){var Ie=y?null:ef(f);if(Ie)return yi(Ie);ie=!1,C=Uo,Oe=new Wi}else Oe=y?[]:fe;e:for(;++A<G;){var De=f[A],te=y?y(De):De;if(De=_||De!==0?De:0,ie&&te==te){for(var lt=Oe.length;lt--;)if(Oe[lt]===te)continue e;y&&Oe.push(te),fe.push(De)}else C(Oe,te,_)||(Oe!==fe&&Oe.push(te),fe.push(De))}return fe}function gs(f,y){return(f=sf(f,y=Hi(y,f)))==null||delete f[ar(Tn(y))]}function ed(f,y,_,A){return pu(f,y,_(_i(f,y)),A)}function pc(f,y,_,A){for(var C=f.length,G=A?C:-1;(A?G--:++G<C)&&y(f[G],G,f););return _?mo(f,A?0:G,A?G+1:C):mo(f,A?G+1:0,A?C:G)}function td(f,y){var _=f;return _ instanceof on&&(_=_.value()),qa(y,function(A,C){return C.func.apply(C.thisArg,ir([A],C.args))},_)}function bs(f,y,_){var A=f.length;if(A<2)return A?Ui(f[0]):[];for(var C=-1,G=Ze(A);++C<A;)for(var ie=f[C],fe=-1;++fe<A;)fe!=C&&(G[C]=mi(G[C]||ie,f[fe],y,_));return Ui(br(G,1),y,_)}function nd(f,y,_){for(var A=-1,C=f.length,G=y.length,ie={};++A<C;){var fe=A<G?y[A]:g;_(ie,f[A],fe)}return ie}function ms(f){return Kn(f)?f:[]}function Kl(f){return typeof f=="function"?f:Tr}function Hi(f,y){return Wt(f)?f:Ps(f,y)?[f]:gd(vn(f))}var rd=Zt;function Xi(f,y,_){var A=f.length;return _=_===g?A:_,!y&&_>=A?f:mo(f,y,_)}var ql=Ay||function(f){return Gn.clearTimeout(f)};function Zl(f,y){if(y)return f.slice();var _=f.length,A=uc?uc(_):new f.constructor(_);return f.copy(A),A}function Jl(f){var y=new f.constructor(f.byteLength);return new ya(y).set(new ya(f)),y}function An(f,y){var _=y?Jl(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.length)}function od(f,y){if(f!==y){var _=f!==g,A=f===null,C=f==f,G=wr(f),ie=y!==g,fe=y===null,Oe=y==y,Ie=wr(y);if(!fe&&!Ie&&!G&&f>y||G&&ie&&Oe&&!fe&&!Ie||A&&ie&&Oe||!_&&Oe||!C)return 1;if(!A&&!G&&!Ie&&f<y||Ie&&_&&C&&!A&&!G||fe&&_&&C||!ie&&C||!Oe)return-1}return 0}function In(f,y,_,A){for(var C=-1,G=f.length,ie=_.length,fe=-1,Oe=y.length,Ie=hr(G-ie,0),De=Ze(Oe+Ie),te=!A;++fe<Oe;)De[fe]=y[fe];for(;++C<ie;)(te||C<G)&&(De[_[C]]=f[C]);for(;Ie--;)De[fe++]=f[C++];return De}function _s(f,y,_,A){for(var C=-1,G=f.length,ie=-1,fe=_.length,Oe=-1,Ie=y.length,De=hr(G-fe,0),te=Ze(De+Ie),lt=!A;++C<De;)te[C]=f[C];for(var ht=C;++Oe<Ie;)te[ht+Oe]=y[Oe];for(;++ie<fe;)(lt||C<G)&&(te[ht+_[ie]]=f[C++]);return te}function Gr(f,y){var _=-1,A=f.length;for(y||(y=Ze(A));++_<A;)y[_]=f[_];return y}function qo(f,y,_,A){var C=!_;_||(_={});for(var G=-1,ie=y.length;++G<ie;){var fe=y[G],Oe=A?A(_[fe],f[fe],fe,_,f):g;Oe===g&&(Oe=f[fe]),C?Ko(_,fe,Oe):uu(_,fe,Oe)}return _}function Os(f,y){return function(_,A){var C=Wt(_)?Qc:Wp,G=y?y():{};return C(_,f,Et(A,2),G)}}function ma(f){return Zt(function(y,_){var A=-1,C=_.length,G=C>1?_[C-1]:g,ie=C>2?_[2]:g;for(G=f.length>3&&typeof G=="function"?(C--,G):g,ie&&Ar(_[0],_[1],ie)&&(G=C<3?g:G,C=1),y=w(y);++A<C;){var fe=_[A];fe&&f(y,fe,A,G)}return y})}function id(f,y){return function(_,A){if(_==null)return _;if(!Lr(_))return f(_,A);for(var C=_.length,G=y?C:-1,ie=w(_);(y?G--:++G<C)&&A(ie[G],G,ie)!==!1;);return _}}function ad(f){return function(y,_,A){for(var C=-1,G=w(y),ie=A(y),fe=ie.length;fe--;){var Oe=ie[f?fe:++C];if(_(G[Oe],Oe,G)===!1)break}return y}}function ud(f){return function(y){var _=To(y=vn(y))?$r(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 qa(No(zs(y).replace(Vc,"")),f,"")}}function dc(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 _=au(f.prototype),A=f.apply(_,y);return $n(A)?A:_}}function cd(f){return function(y,_,A){var C=w(y);if(!Lr(y)){var G=Et(_,3);y=cr(y),_=function(fe){return G(C[fe],fe,C)}}var ie=f(y,_,A);return ie>-1?C[G?y[ie]:ie]:g}}function sd(f){return Ln(function(y){var _=y.length,A=_,C=vo.prototype.thru;for(f&&y.reverse();A--;){var G=y[A];if(typeof G!="function")throw new K(E);if(C&&!ie&&Do(G)=="wrapper")var ie=new vo([],!0)}for(A=ie?A:_;++A<_;){var fe=Do(G=y[A]),Oe=fe=="wrapper"?gc(G):g;ie=Oe&&As(Oe[0])&&Oe[1]==424&&!Oe[4].length&&Oe[9]==1?ie[Do(Oe[0])].apply(ie,Oe[3]):G.length==1&&As(G)?ie[fe]():ie.thru(G)}return function(){var Ie=arguments,De=Ie[0];if(ie&&Ie.length==1&&Wt(De))return ie.plant(De).value();for(var te=0,lt=_?y[te].apply(this,Ie):De;++te<_;)lt=y[te].call(this,lt);return lt}})}function hc(f,y,_,A,C,G,ie,fe,Oe,Ie){var De=y&N,te=1&y,lt=2&y,ht=24&y,At=512&y,ze=lt?g:dc(f);return function He(){for(var Dt=arguments.length,ut=Ze(Dt),Nt=Dt;Nt--;)ut[Nt]=arguments[Nt];if(ht)var It=hu(He),en=Dl(ut,It);if(A&&(ut=In(ut,A,C,ht)),G&&(ut=_s(ut,G,ie,ht)),Dt-=en,ht&&Dt<Ie){var _t=Fr(ut,It);return xs(f,y,hc,He.placeholder,_,ut,_t,fe,Oe,Ie-Dt)}var Tt=te?_:this,Hn=lt?Tt[f]:f;return Dt=ut.length,fe?ut=vd(ut,fe):At&&Dt>1&&ut.reverse(),De&&Oe<Dt&&(ut.length=Oe),this&&this!==Gn&&this instanceof He&&(Hn=ze||dc(Hn)),Hn.apply(Tt,ut)}}function ld(f,y){return function(_,A){return function(C,G,ie,fe){return pt(C,function(Oe,Ie,De){G(fe,ie(Oe),Ie,De)}),fe}(_,f,y(A),{})}}function yc(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"?(_=Wr(_),A=Wr(A)):(_=Vl(_),A=Vl(A)),C=f(_,A)}return C}}function Ql(f){return Ln(function(y){return y=an(y,Fn(Et())),Zt(function(_){var A=this;return f(y,function(C){return wn(C,A,_)})})})}function ws(f,y){var _=(y=y===g?" ":Wr(y)).length;if(_<2)return _?ys(y,f):y;var A=ys(y,rs(f/Mo(y)));return To(y)?Xi($r(A),0,f).join(""):A.slice(0,f)}function Zo(f){return function(y,_,A){return A&&typeof A!="number"&&Ar(y,_,A)&&(_=A=g),y=ei(y),_===g?(_=y,y=0):_=ei(_),function(C,G,ie,fe){for(var Oe=-1,Ie=hr(rs((G-C)/(ie||1)),0),De=Ze(Ie);Ie--;)De[fe?Ie:++Oe]=C,C+=ie;return De}(y,_,A=A===g?y<_?1:-1:ei(A),f)}}function du(f){return function(y,_){return typeof y=="string"&&typeof _=="string"||(y=Br(y),_=Br(_)),f(y,_)}}function xs(f,y,_,A,C,G,ie,fe,Oe,Ie){var De=8&y;y|=De?M:R,4&(y&=~(De?R:M))||(y&=-4);var te=[f,y,C,De?G:g,De?ie:g,De?g:G,De?g:ie,fe,Oe,Ie],lt=_.apply(g,te);return As(f)&&lf(lt,te),lt.placeholder=A,ff(lt,f,y)}function Es(f){var y=O[f];return function(_,A){if(_=Br(_),(A=A==null?0:Pr(Xt(A),292))&&Cp(_)){var C=(vn(_)+"e").split("e");return+((C=(vn(y(C[0]+"e"+(+C[1]+A)))+"e").split("e"))[0]+"e"+(+C[1]-A))}return y(_)}}var ef=ga&&1/yi(new ga([,-0]))[1]==W?function(f){return new ga(f)}:Tc;function Ss(f){return function(y){var _=Or(y);return _==ce?Sr(y):_==je?eu(y):function(A,C){return an(C,function(G){return[G,A[G]]})}(y,f(y))}}function Jo(f,y,_,A,C,G,ie,fe){var Oe=2&y;if(!Oe&&typeof f!="function")throw new K(E);var Ie=A?A.length:0;if(Ie||(y&=-97,A=C=g),ie=ie===g?ie:hr(Xt(ie),0),fe=fe===g?fe:Xt(fe),Ie-=C?C.length:0,y&R){var De=A,te=C;A=C=g}var lt=Oe?g:gc(f),ht=[f,y,_,A,C,De,te,G,ie,fe];if(lt&&function(ze,He){var Dt=ze[1],ut=He[1],Nt=Dt|ut,It=Nt<131,en=ut==N&&Dt==8||ut==N&&Dt==I&&ze[7].length<=He[8]||ut==384&&He[7].length<=He[8]&&Dt==8;if(!It&&!en)return ze;1&ut&&(ze[2]=He[2],Nt|=1&Dt?0:4);var _t=He[3];if(_t){var Tt=ze[3];ze[3]=Tt?In(Tt,_t,He[4]):_t,ze[4]=Tt?Fr(ze[3],j):He[4]}(_t=He[5])&&(Tt=ze[5],ze[5]=Tt?_s(Tt,_t,He[6]):_t,ze[6]=Tt?Fr(ze[5],j):He[6]),(_t=He[7])&&(ze[7]=_t),ut&N&&(ze[8]=ze[8]==null?He[8]:Pr(ze[8],He[8])),ze[9]==null&&(ze[9]=He[9]),ze[0]=He[0],ze[1]=Nt}(ht,lt),f=ht[0],y=ht[1],_=ht[2],A=ht[3],C=ht[4],!(fe=ht[9]=ht[9]===g?Oe?0:f.length:hr(ht[9]-Ie,0))&&24&y&&(y&=-25),y&&y!=1)At=y==8||y==k?function(ze,He,Dt){var ut=dc(ze);return function Nt(){for(var It=arguments.length,en=Ze(It),_t=It,Tt=hu(Nt);_t--;)en[_t]=arguments[_t];var Hn=It<3&&en[0]!==Tt&&en[It-1]!==Tt?[]:Fr(en,Tt);return(It-=Hn.length)<Dt?xs(ze,He,hc,Nt.placeholder,g,en,Hn,g,g,Dt-It):wn(this&&this!==Gn&&this instanceof Nt?ut:ze,this,en)}}(f,y,fe):y!=M&&y!=33||C.length?hc.apply(g,ht):function(ze,He,Dt,ut){var Nt=1&He,It=dc(ze);return function en(){for(var _t=-1,Tt=arguments.length,Hn=-1,Yr=ut.length,Ro=Ze(Yr+Tt),Zn=this&&this!==Gn&&this instanceof en?It:ze;++Hn<Yr;)Ro[Hn]=ut[Hn];for(;Tt--;)Ro[Hn++]=arguments[++_t];return wn(Zn,Nt?Dt:this,Ro)}}(f,y,_,A);else var At=function(ze,He,Dt){var ut=1&He,Nt=dc(ze);return function It(){return(this&&this!==Gn&&this instanceof It?Nt:ze).apply(ut?Dt:this,arguments)}}(f,y,_);return ff((lt?Jp:lf)(At,ht),f,y)}function fd(f,y,_,A){return f===g||Bn(f,$e[_])&&!et.call(A,_)?y:f}function pd(f,y,_,A,C,G){return $n(f)&&$n(y)&&(G.set(y,f),hs(f,y,g,pd,G),G.delete(y)),f}function Fy(f){return ji(f)?g:f}function dd(f,y,_,A,C,G){var ie=1&_,fe=f.length,Oe=y.length;if(fe!=Oe&&!(ie&&Oe>fe))return!1;var Ie=G.get(f),De=G.get(y);if(Ie&&De)return Ie==y&&De==f;var te=-1,lt=!0,ht=2&_?new Wi:g;for(G.set(f,y),G.set(y,f);++te<fe;){var At=f[te],ze=y[te];if(A)var He=ie?A(ze,At,te,y,f,G):A(At,ze,te,f,y,G);if(He!==g){if(He)continue;lt=!1;break}if(ht){if(!nc(y,function(Dt,ut){if(!Uo(ht,ut)&&(At===Dt||C(At,Dt,_,A,G)))return ht.push(ut)})){lt=!1;break}}else if(At!==ze&&!C(At,ze,_,A,G)){lt=!1;break}}return G.delete(f),G.delete(y),lt}function Ln(f){return Ms(cf(f,g,yf),f+"")}function vc(f){return Fl(f,cr,nf)}function tf(f){return Fl(f,mr,Ne)}var gc=us?function(f){return us.get(f)}:Tc;function Do(f){for(var y=f.name+"",_=iu[y],A=et.call(iu,y)?_.length:0;A--;){var C=_[A],G=C.func;if(G==null||G==f)return C.name}return y}function hu(f){return(et.call(F,"placeholder")?F:f).placeholder}function Et(){var f=F.iteratee||Ac;return f=f===Ac?Wl:f,arguments.length?f(arguments[0],arguments[1]):f}function yu(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 js(f){for(var y=cr(f),_=y.length;_--;){var A=y[_],C=f[A];y[_]=[A,C,af(C)]}return y}function Vi(f,y){var _=function(A,C){return A==null?g:A[C]}(f,y);return lu(_)?_:g}var nf=Nl?function(f){return f==null?[]:(f=w(f),Er(Nl(f),function(y){return jr.call(f,y)}))}:Fs,Ne=Nl?function(f){for(var y=[];f;)ir(y,nf(f)),f=vi(f);return y}:Fs,Or=Pn;function rf(f,y,_){for(var A=-1,C=(y=Hi(y,f)).length,G=!1;++A<C;){var ie=ar(y[A]);if(!(G=f!=null&&_(f,ie)))break;f=f[ie]}return G||++A!=C?G:!!(C=f==null?0:f.length)&&Sa(C)&&Qo(ie,C)&&(Wt(f)||Ea(f))}function of(f){return typeof f.constructor!="function"||vu(f)?{}:au(vi(f))}function hd(f){return Wt(f)||Ea(f)||!!($i&&f&&f[$i])}function Qo(f,y){var _=typeof f;return!!(y=y??U)&&(_=="number"||_!="symbol"&&it.test(f))&&f>-1&&f%1==0&&f<y}function Ar(f,y,_){if(!$n(_))return!1;var A=typeof y;return!!(A=="number"?Lr(_)&&Qo(y,_.length):A=="string"&&y in _)&&Bn(_[y],f)}function Ps(f,y){if(Wt(f))return!1;var _=typeof f;return!(_!="number"&&_!="symbol"&&_!="boolean"&&f!=null&&!wr(f))||Bt.test(f)||!fn.test(f)||y!=null&&f in w(y)}function As(f){var y=Do(f),_=F[y];if(typeof _!="function"||!(y in on.prototype))return!1;if(f===_)return!0;var A=gc(_);return!!A&&f===A[0]}(ru&&Or(new ru(new ArrayBuffer(1)))!=tt||Yo&&Or(new Yo)!=ce||Rl&&Or(Rl.resolve())!=Ae||ga&&Or(new ga)!=je||ou&&Or(new ou)!=Te)&&(Or=function(f){var y=Pn(f),_=y==ye?f.constructor:g,A=_?Ur(_):"";if(A)switch(A){case Ny:return tt;case Lp:return ce;case Ry:return Ae;case Cy:return je;case Bp:return Te}return y});var yd=at?Si:sr;function vu(f){var y=f&&f.constructor;return f===(typeof y=="function"&&y.prototype||$e)}function af(f){return f==f&&!$n(f)}function uf(f,y){return function(_){return _!=null&&_[f]===y&&(y!==g||f in w(_))}}function cf(f,y,_){return y=hr(y===g?f.length-1:y,0),function(){for(var A=arguments,C=-1,G=hr(A.length-y,0),ie=Ze(G);++C<G;)ie[C]=A[y+C];C=-1;for(var fe=Ze(y+1);++C<y;)fe[C]=A[C];return fe[y]=_(ie),wn(f,this,fe)}}function sf(f,y){return y.length<2?f:_i(f,mo(y,0,-1))}function vd(f,y){for(var _=f.length,A=Pr(y.length,_),C=Gr(f);A--;){var G=y[A];f[A]=Qo(G,_)?C[G]:g}return f}function Ts(f,y){if((y!=="constructor"||typeof f[y]!="function")&&y!="__proto__")return f[y]}var lf=ks(Jp),gu=Rp||function(f,y){return Gn.setTimeout(f,y)},Ms=ks(By);function ff(f,y,_){var A=y+"";return Ms(f,function(C,G){var ie=G.length;if(!ie)return C;var fe=ie-1;return G[fe]=(ie>1?"& ":"")+G[fe],G=G.join(ie>2?", ":" "),C.replace(J,`{
/* [wrapped with `+G+`] */
`)}(A,function(C,G){return kr(re,function(ie){var fe="_."+ie[0];G&ie[1]&&!Dr(C,fe)&&C.push(fe)}),C.sort()}(function(C){var G=C.match(he);return G?G[1].split(ae):[]}(A),_)))}function ks(f){var y=0,_=0;return function(){var A=os(),C=16-(A-_);if(_=A,C>0){if(++y>=800)return arguments[0]}else y=0;return f.apply(g,arguments)}}function _a(f,y){var _=-1,A=f.length,C=A-1;for(y=y===g?A:y;++_<y;){var G=Ul(_,C),ie=f[G];f[G]=f[_],f[_]=ie}return f.length=y,f}var gd=function(f){var y=mu(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(tn,function(_,A,C,G){y.push(C?G.replace(Ve,"$1"):A||_)}),y});function ar(f){if(typeof f=="string"||wr(f))return f;var y=f+"";return y=="0"&&1/f==-1/0?"-0":y}function Ur(f){if(f!=null){try{return Vt.call(f)}catch{}try{return f+""}catch{}}return""}function bd(f){if(f instanceof on)return f.clone();var y=new vo(f.__wrapped__,f.__chain__);return y.__actions__=Gr(f.__actions__),y.__index__=f.__index__,y.__values__=f.__values__,y}var ro=Zt(function(f,y){return Kn(f)?mi(f,br(y,1,Kn,!0)):[]}),md=Zt(function(f,y){var _=Tn(y);return Kn(_)&&(_=g),Kn(f)?mi(f,br(y,1,Kn,!0),Et(_,2)):[]}),pf=Zt(function(f,y){var _=Tn(y);return Kn(_)&&(_=g),Kn(f)?mi(f,br(y,1,Kn,!0),g,_):[]});function df(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var C=_==null?0:Xt(_);return C<0&&(C=hr(A+C,0)),Wo(f,Et(y,3),C)}function hf(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var C=A-1;return _!==g&&(C=Xt(_),C=_<0?hr(A+C,0):Pr(C,A-1)),Wo(f,Et(y,3),C,!0)}function yf(f){return f!=null&&f.length?br(f,1):[]}function vf(f){return f&&f.length?f[0]:g}var _d=Zt(function(f){var y=an(f,ms);return y.length&&y[0]===f[0]?ps(y):[]}),gf=Zt(function(f){var y=Tn(f),_=an(f,ms);return y===Tn(_)?y=g:_.pop(),_.length&&_[0]===f[0]?ps(_,Et(y,2)):[]}),bc=Zt(function(f){var y=Tn(f),_=an(f,ms);return(y=typeof y=="function"?y:g)&&_.pop(),_.length&&_[0]===f[0]?ps(_,g,y):[]});function Tn(f){var y=f==null?0:f.length;return y?f[y-1]:g}var $y=Zt(Od);function Od(f,y){return f&&f.length&&y&&y.length?Gl(f,y):f}var bf=Ln(function(f,y){var _=f==null?0:f.length,A=ls(f,y);return fu(f,an(y,function(C){return Qo(C,_)?+C:C}).sort(od)),A});function Ds(f){return f==null?f:Dy.call(f)}var Hr=Zt(function(f){return Ui(br(f,1,Kn,!0))}),ur=Zt(function(f){var y=Tn(f);return Kn(y)&&(y=g),Ui(br(f,1,Kn,!0),Et(y,2))}),Wy=Zt(function(f){var y=Tn(f);return y=typeof y=="function"?y:g,Ui(br(f,1,Kn,!0),g,y)});function Xr(f){if(!f||!f.length)return[];var y=0;return f=Er(f,function(_){if(Kn(_))return y=hr(_.length,y),!0}),ha(y,function(_){return an(f,Rr(_))})}function Pt(f,y){if(!f||!f.length)return[];var _=Xr(f);return y==null?_:an(_,function(A){return wn(y,g,A)})}var mf=Zt(function(f,y){return Kn(f)?mi(f,y):[]}),_f=Zt(function(f){return bs(Er(f,Kn))}),Of=Zt(function(f){var y=Tn(f);return Kn(y)&&(y=g),bs(Er(f,Kn),Et(y,2))}),wd=Zt(function(f){var y=Tn(f);return y=typeof y=="function"?y:g,bs(Er(f,Kn),g,y)}),xd=Zt(Xr),Gy=Zt(function(f){var y=f.length,_=y>1?f[y-1]:g;return _=typeof _=="function"?(f.pop(),_):g,Pt(f,_)});function Ed(f){var y=F(f);return y.__chain__=!0,y}function bu(f,y){return y(f)}var Uy=Ln(function(f){var y=f.length,_=y?f[0]:0,A=this.__wrapped__,C=function(G){return ls(G,f)};return!(y>1||this.__actions__.length)&&A instanceof on&&Qo(_)?((A=A.slice(_,+_+(y?1:0))).__actions__.push({func:bu,args:[C],thisArg:g}),new vo(A,this.__chain__).thru(function(G){return y&&!G.length&&G.push(g),G})):this.thru(C)}),wf=Os(function(f,y,_){et.call(f,_)?++f[_]:Ko(f,_,1)}),Hy=cd(df),Xy=cd(hf);function xf(f,y){return(Wt(f)?kr:Cn)(f,Et(y,3))}function Oa(f,y){return(Wt(f)?es:Gp)(f,Et(y,3))}var Sd=Os(function(f,y,_){et.call(f,_)?f[_].push(y):Ko(f,_,[y])}),$t=Zt(function(f,y,_){var A=-1,C=typeof y=="function",G=Lr(f)?Ze(f.length):[];return Cn(f,function(ie){G[++A]=C?wn(y,ie,_):cu(ie,y,_)}),G}),jd=Os(function(f,y,_){Ko(f,_,y)});function wa(f,y){return(Wt(f)?an:bo)(f,Et(y,3))}var Ef=Os(function(f,y,_){f[_?0:1].push(y)},function(){return[[],[]]}),Yy=Zt(function(f,y){if(f==null)return[];var _=y.length;return _>1&&Ar(f,y[0],y[1])?y=[]:_>2&&Ar(y[0],y[1],y[2])&&(y=[y[0]]),qp(f,br(y,1),[])}),mc=Ty||function(){return Gn.Date.now()};function Sf(f,y,_){return y=_?g:y,y=f&&y==null?f.length:y,Jo(f,N,g,g,g,g,y)}function jf(f,y){var _;if(typeof y!="function")throw new K(E);return f=Xt(f),function(){return--f>0&&(_=y.apply(this,arguments)),f<=1&&(y=g),_}}var Pf=Zt(function(f,y,_){var A=1;if(_.length){var C=Fr(_,hu(Pf));A|=M}return Jo(f,A,y,_,C)}),Pd=Zt(function(f,y,_){var A=3;if(_.length){var C=Fr(_,hu(Pd));A|=M}return Jo(y,A,f,_,C)});function Ad(f,y,_){var A,C,G,ie,fe,Oe,Ie=0,De=!1,te=!1,lt=!0;if(typeof f!="function")throw new K(E);function ht(Nt){var It=A,en=C;return A=C=g,Ie=Nt,ie=f.apply(en,It)}function At(Nt){return Ie=Nt,fe=gu(He,y),De?ht(Nt):ie}function ze(Nt){var It=Nt-Oe;return Oe===g||It>=y||It<0||te&&Nt-Ie>=G}function He(){var Nt=mc();if(ze(Nt))return Dt(Nt);fe=gu(He,function(It){var en=y-(It-Oe);return te?Pr(en,G-(It-Ie)):en}(Nt))}function Dt(Nt){return fe=g,lt&&A?ht(Nt):(A=C=g,ie)}function ut(){var Nt=mc(),It=ze(Nt);if(A=arguments,C=this,Oe=Nt,It){if(fe===g)return At(Oe);if(te)return ql(fe),fe=gu(He,y),ht(Oe)}return fe===g&&(fe=gu(He,y)),ie}return y=Br(y)||0,$n(_)&&(De=!!_.leading,G=(te="maxWait"in _)?hr(Br(_.maxWait)||0,y):G,lt="trailing"in _?!!_.trailing:lt),ut.cancel=function(){fe!==g&&ql(fe),Ie=0,A=Oe=C=fe=g},ut.flush=function(){return fe===g?ie:Dt(mc())},ut}var _c=Zt(function(f,y){return zl(f,1,y)}),Vy=Zt(function(f,y,_){return zl(f,Br(y)||0,_)});function mu(f,y){if(typeof f!="function"||y!=null&&typeof y!="function")throw new K(E);var _=function(){var A=arguments,C=y?y.apply(this,A):A[0],G=_.cache;if(G.has(C))return G.get(C);var ie=f.apply(this,A);return _.cache=G.set(C,ie)||G,ie};return _.cache=new(mu.Cache||Vo),_}function Ns(f){if(typeof f!="function")throw new K(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)}}mu.Cache=Vo;var Ky=rd(function(f,y){var _=(y=y.length==1&&Wt(y[0])?an(y[0],Fn(Et())):an(br(y,1),Fn(Et()))).length;return Zt(function(A){for(var C=-1,G=Pr(A.length,_);++C<G;)A[C]=y[C].call(this,A[C]);return wn(f,this,A)})}),xa=Zt(function(f,y){var _=Fr(y,hu(xa));return Jo(f,M,g,y,_)}),xi=Zt(function(f,y){var _=Fr(y,hu(xi));return Jo(f,R,g,y,_)}),Af=Ln(function(f,y){return Jo(f,I,g,g,g,y)});function Bn(f,y){return f===y||f!=f&&y!=y}var Rs=du(Un),Oc=du(function(f,y){return f>=y}),Ea=$l(function(){return arguments}())?$l:function(f){return Wn(f)&&et.call(f,"callee")&&!jr.call(f,"callee")},Wt=Ze.isArray,Td=Qu?Fn(Qu):function(f){return Wn(f)&&Pn(f)==We};function Lr(f){return f!=null&&Sa(f.length)&&!Si(f)}function Kn(f){return Wn(f)&&Lr(f)}var Ei=My||sr,Cs=Jc?Fn(Jc):function(f){return Wn(f)&&Pn(f)==B};function Tf(f){if(!Wn(f))return!1;var y=Pn(f);return y==X||y=="[object DOMException]"||typeof f.message=="string"&&typeof f.name=="string"&&!ji(f)}function Si(f){if(!$n(f))return!1;var y=Pn(f);return y==V||y==q||y=="[object AsyncFunction]"||y=="[object Proxy]"}function Is(f){return typeof f=="number"&&f==Xt(f)}function Sa(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=U}function $n(f){var y=typeof f;return f!=null&&(y=="object"||y=="function")}function Wn(f){return f!=null&&typeof f=="object"}var Md=ec?Fn(ec):function(f){return Wn(f)&&Or(f)==ce};function Mf(f){return typeof f=="number"||Wn(f)&&Pn(f)==we}function ji(f){if(!Wn(f)||Pn(f)!=ye)return!1;var y=vi(f);if(y===null)return!0;var _=et.call(y,"constructor")&&y.constructor;return typeof _=="function"&&_ instanceof _&&Vt.call(_)==to}var kf=Ka?Fn(Ka):function(f){return Wn(f)&&Pn(f)==Fe},_u=Bi?Fn(Bi):function(f){return Wn(f)&&Or(f)==je};function wc(f){return typeof f=="string"||!Wt(f)&&Wn(f)&&Pn(f)==ge}function wr(f){return typeof f=="symbol"||Wn(f)&&Pn(f)==Pe}var Ki=jo?Fn(jo):function(f){return Wn(f)&&Sa(f.length)&&!!hn[Pn(f)]},Ou=du(wi),xc=du(function(f,y){return f<=y});function wu(f){if(!f)return[];if(Lr(f))return wc(f)?$r(f):Gr(f);if(gi&&f[gi])return function(_){for(var A,C=[];!(A=_.next()).done;)C.push(A.value);return C}(f[gi]());var y=Or(f);return(y==ce?Sr:y==je?yi:Zi)(f)}function ei(f){return f?(f=Br(f))===W||f===-1/0?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0}function Xt(f){var y=ei(f),_=y%1;return y==y?_?y-_:y:0}function Df(f){return f?Gi(Xt(f),0,ue):0}function Br(f){if(typeof f=="number")return f;if(wr(f))return ne;if($n(f)){var y=typeof f.valueOf=="function"?f.valueOf():f;f=$n(y)?y+"":y}if(typeof f!="string")return f===0?f:+f;f=rc(f);var _=vr.test(f);return _||Qn.test(f)?$o(f.slice(2),_?2:8):or.test(f)?ne:+f}function Nf(f){return qo(f,mr(f))}function vn(f){return f==null?"":Wr(f)}var kd=ma(function(f,y){if(vu(y)||Lr(y))qo(y,cr(y),f);else for(var _ in y)et.call(y,_)&&uu(f,_,y[_])}),Rf=ma(function(f,y){qo(y,mr(y),f)}),Pi=ma(function(f,y,_,A){qo(y,mr(y),f,A)}),Cf=ma(function(f,y,_,A){qo(y,cr(y),f,A)}),Dd=Ln(ls),Nd=Zt(function(f,y){f=w(f);var _=-1,A=y.length,C=A>2?y[2]:g;for(C&&Ar(y[0],y[1],C)&&(A=1);++_<A;)for(var G=y[_],ie=mr(G),fe=-1,Oe=ie.length;++fe<Oe;){var Ie=ie[fe],De=f[Ie];(De===g||Bn(De,$e[Ie])&&!et.call(f,Ie))&&(f[Ie]=G[Ie])}return f}),If=Zt(function(f){return f.push(g,pd),wn(zf,g,f)});function Ec(f,y,_){var A=f==null?g:_i(f,y);return A===g?_:A}function Sc(f,y){return f!=null&&rf(f,y,Xp)}var Rd=ld(function(f,y,_){y!=null&&typeof y.toString!="function"&&(y=sn.call(y)),f[y]=_},Pc(Tr)),Lf=ld(function(f,y,_){y!=null&&typeof y.toString!="function"&&(y=sn.call(y)),et.call(f,y)?f[y].push(_):f[y]=[_]},Et),Bf=Zt(cu);function cr(f){return Lr(f)?Cl(f):Oi(f)}function mr(f){return Lr(f)?Cl(f,!0):Iy(f)}var qi=ma(function(f,y,_){hs(f,y,_)}),zf=ma(function(f,y,_,A){hs(f,y,_,A)}),Cd=Ln(function(f,y){var _={};if(f==null)return _;var A=!1;y=an(y,function(G){return G=Hi(G,f),A||(A=G.length>1),G}),qo(f,tf(f),_),A&&(_=no(_,7,Fy));for(var C=y.length;C--;)gs(_,y[C]);return _}),Ff=Ln(function(f,y){return f==null?{}:function(_,A){return Zp(_,A,function(C,G){return Sc(_,G)})}(f,y)});function Ls(f,y){if(f==null)return{};var _=an(tf(f),function(A){return[A]});return y=Et(y),Zp(f,_,function(A,C){return y(A,C[0])})}var Id=Ss(cr),$f=Ss(mr);function Zi(f){return f==null?[]:Qa(f,cr(f))}var Bs=Yi(function(f,y,_){return y=y.toLowerCase(),f+(_?jc(y):y)});function jc(f){return qn(vn(f).toLowerCase())}function zs(f){return(f=vn(f))&&f.replace(mt,ic).replace(Fo,"")}var Wf=Yi(function(f,y,_){return f+(_?"-":"")+y.toLowerCase()}),Ld=Yi(function(f,y,_){return f+(_?" ":"")+y.toLowerCase()}),Gf=ud("toLowerCase"),Bd=Yi(function(f,y,_){return f+(_?"_":"")+y.toLowerCase()}),xu=Yi(function(f,y,_){return f+(_?" ":"")+qn(y)}),qy=Yi(function(f,y,_){return f+(_?" ":"")+y.toUpperCase()}),qn=ud("toUpperCase");function No(f,y,_){return f=vn(f),(y=_?g:y)===g?function(A){return Ku.test(A)}(f)?function(A){return A.match(Ya)||[]}(f):function(A){return A.match(_e)||[]}(f):f.match(y)||[]}var zd=Zt(function(f,y){try{return wn(f,g,y)}catch(_){return Tf(_)?_:new Jt(_)}}),ti=Ln(function(f,y){return kr(y,function(_){_=ar(_),Ko(f,_,Pf(f[_],f))}),f});function Pc(f){return function(){return f}}var Uf=sd(),Fd=sd(!0);function Tr(f){return f}function Ac(f){return Wl(typeof f=="function"?f:no(f,1))}var Hf=Zt(function(f,y){return function(_){return cu(_,f,y)}}),Zy=Zt(function(f,y){return function(_){return cu(f,_,y)}});function Ai(f,y,_){var A=cr(y),C=fs(y,A);_!=null||$n(y)&&(C.length||!A.length)||(_=y,y=f,f=this,C=fs(y,cr(y)));var G=!($n(_)&&"chain"in _&&!_.chain),ie=Si(f);return kr(C,function(fe){var Oe=y[fe];f[fe]=Oe,ie&&(f.prototype[fe]=function(){var Ie=this.__chain__;if(G||Ie){var De=f(this.__wrapped__),te=De.__actions__=Gr(this.__actions__);return te.push({func:Oe,args:arguments,thisArg:f}),De.__chain__=Ie,De}return Oe.apply(f,ir([this.value()],arguments))})}),f}function Tc(){}var Xf=Ql(an),$d=Ql(ts),Mc=Ql(nc);function Eu(f){return Ps(f)?Rr(ar(f)):function(y){return function(_){return _i(_,y)}}(f)}var Yf=Zo(),Wd=Zo(!0);function Fs(){return[]}function sr(){return!1}var $s=yc(function(f,y){return f+y},0),Vf=Es("ceil"),Kf=yc(function(f,y){return f/y},1),Gd=Es("floor"),Ws,qf=yc(function(f,y){return f*y},1),Gs=Es("round"),Ud=yc(function(f,y){return f-y},0);return F.after=function(f,y){if(typeof y!="function")throw new K(E);return f=Xt(f),function(){if(--f<1)return y.apply(this,arguments)}},F.ary=Sf,F.assign=kd,F.assignIn=Rf,F.assignInWith=Pi,F.assignWith=Cf,F.at=Dd,F.before=jf,F.bind=Pf,F.bindAll=ti,F.bindKey=Pd,F.castArray=function(){if(!arguments.length)return[];var f=arguments[0];return Wt(f)?f:[f]},F.chain=Ed,F.chunk=function(f,y,_){y=(_?Ar(f,y,_):y===g)?1:hr(Xt(y),0);var A=f==null?0:f.length;if(!A||y<1)return[];for(var C=0,G=0,ie=Ze(rs(A/y));C<A;)ie[G++]=mo(f,C,C+=y);return ie},F.compact=function(f){for(var y=-1,_=f==null?0:f.length,A=0,C=[];++y<_;){var G=f[y];G&&(C[A++]=G)}return C},F.concat=function(){var f=arguments.length;if(!f)return[];for(var y=Ze(f-1),_=arguments[0],A=f;A--;)y[A-1]=arguments[A];return ir(Wt(_)?Gr(_):[_],br(y,1))},F.cond=function(f){var y=f==null?0:f.length,_=Et();return f=y?an(f,function(A){if(typeof A[1]!="function")throw new K(E);return[_(A[0]),A[1]]}):[],Zt(function(A){for(var C=-1;++C<y;){var G=f[C];if(wn(G[0],this,A))return wn(G[1],this,A)}})},F.conforms=function(f){return function(y){var _=cr(y);return function(A){return Bl(A,y,_)}}(no(f,1))},F.constant=Pc,F.countBy=wf,F.create=function(f,y){var _=au(f);return y==null?_:Ll(_,y)},F.curry=function f(y,_,A){var C=Jo(y,8,g,g,g,g,g,_=A?g:_);return C.placeholder=f.placeholder,C},F.curryRight=function f(y,_,A){var C=Jo(y,k,g,g,g,g,g,_=A?g:_);return C.placeholder=f.placeholder,C},F.debounce=Ad,F.defaults=Nd,F.defaultsDeep=If,F.defer=_c,F.delay=Vy,F.difference=ro,F.differenceBy=md,F.differenceWith=pf,F.drop=function(f,y,_){var A=f==null?0:f.length;return A?mo(f,(y=_||y===g?1:Xt(y))<0?0:y,A):[]},F.dropRight=function(f,y,_){var A=f==null?0:f.length;return A?mo(f,0,(y=A-(y=_||y===g?1:Xt(y)))<0?0:y):[]},F.dropRightWhile=function(f,y){return f&&f.length?pc(f,Et(y,3),!0,!0):[]},F.dropWhile=function(f,y){return f&&f.length?pc(f,Et(y,3),!0):[]},F.fill=function(f,y,_,A){var C=f==null?0:f.length;return C?(_&&typeof _!="number"&&Ar(f,y,_)&&(_=0,A=C),function(G,ie,fe,Oe){var Ie=G.length;for((fe=Xt(fe))<0&&(fe=-fe>Ie?0:Ie+fe),(Oe=Oe===g||Oe>Ie?Ie:Xt(Oe))<0&&(Oe+=Ie),Oe=fe>Oe?0:Df(Oe);fe<Oe;)G[fe++]=ie;return G}(f,y,_,A)):[]},F.filter=function(f,y){return(Wt(f)?Er:yn)(f,Et(y,3))},F.flatMap=function(f,y){return br(wa(f,y),1)},F.flatMapDeep=function(f,y){return br(wa(f,y),W)},F.flatMapDepth=function(f,y,_){return _=_===g?1:Xt(_),br(wa(f,y),_)},F.flatten=yf,F.flattenDeep=function(f){return f!=null&&f.length?br(f,W):[]},F.flattenDepth=function(f,y){return f!=null&&f.length?br(f,y=y===g?1:Xt(y)):[]},F.flip=function(f){return Jo(f,512)},F.flow=Uf,F.flowRight=Fd,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?[]:fs(f,cr(f))},F.functionsIn=function(f){return f==null?[]:fs(f,mr(f))},F.groupBy=Sd,F.initial=function(f){return f!=null&&f.length?mo(f,0,-1):[]},F.intersection=_d,F.intersectionBy=gf,F.intersectionWith=bc,F.invert=Rd,F.invertBy=Lf,F.invokeMap=$t,F.iteratee=Ac,F.keyBy=jd,F.keys=cr,F.keysIn=mr,F.map=wa,F.mapKeys=function(f,y){var _={};return y=Et(y,3),pt(f,function(A,C,G){Ko(_,y(A,C,G),A)}),_},F.mapValues=function(f,y){var _={};return y=Et(y,3),pt(f,function(A,C,G){Ko(_,C,y(A,C,G))}),_},F.matches=function(f){return Yp(no(f,1))},F.matchesProperty=function(f,y){return Vp(f,no(y,1))},F.memoize=mu,F.merge=qi,F.mergeWith=zf,F.method=Hf,F.methodOf=Zy,F.mixin=Ai,F.negate=Ns,F.nthArg=function(f){return f=Xt(f),Zt(function(y){return Kp(y,f)})},F.omit=Cd,F.omitBy=function(f,y){return Ls(f,Ns(Et(y)))},F.once=function(f){return jf(2,f)},F.orderBy=function(f,y,_,A){return f==null?[]:(Wt(y)||(y=y==null?[]:[y]),Wt(_=A?g:_)||(_=_==null?[]:[_]),qp(f,y,_))},F.over=Xf,F.overArgs=Ky,F.overEvery=$d,F.overSome=Mc,F.partial=xa,F.partialRight=xi,F.partition=Ef,F.pick=Ff,F.pickBy=Ls,F.property=Eu,F.propertyOf=function(f){return function(y){return f==null?g:_i(f,y)}},F.pull=$y,F.pullAll=Od,F.pullAllBy=function(f,y,_){return f&&f.length&&y&&y.length?Gl(f,y,Et(_,2)):f},F.pullAllWith=function(f,y,_){return f&&f.length&&y&&y.length?Gl(f,y,g,_):f},F.pullAt=bf,F.range=Yf,F.rangeRight=Wd,F.rearg=Af,F.reject=function(f,y){return(Wt(f)?Er:yn)(f,Ns(Et(y,3)))},F.remove=function(f,y){var _=[];if(!f||!f.length)return _;var A=-1,C=[],G=f.length;for(y=Et(y,3);++A<G;){var ie=f[A];y(ie,A,f)&&(_.push(ie),C.push(A))}return fu(f,C),_},F.rest=function(f,y){if(typeof f!="function")throw new K(E);return Zt(f,y=y===g?y:Xt(y))},F.reverse=Ds,F.sampleSize=function(f,y,_){return y=(_?Ar(f,y,_):y===g)?1:Xt(y),(Wt(f)?Fp:Hl)(f,y)},F.set=function(f,y,_){return f==null?f:pu(f,y,_)},F.setWith=function(f,y,_,A){return A=typeof A=="function"?A:g,f==null?f:pu(f,y,_,A)},F.shuffle=function(f){return(Wt(f)?$p:zy)(f)},F.slice=function(f,y,_){var A=f==null?0:f.length;return A?(_&&typeof _!="number"&&Ar(f,y,_)?(y=0,_=A):(y=y==null?0:Xt(y),_=_===g?A:Xt(_)),mo(f,y,_)):[]},F.sortBy=Yy,F.sortedUniq=function(f){return f&&f.length?Qp(f):[]},F.sortedUniqBy=function(f,y){return f&&f.length?Qp(f,Et(y,2)):[]},F.split=function(f,y,_){return _&&typeof _!="number"&&Ar(f,y,_)&&(y=_=g),(_=_===g?ue:_>>>0)?(f=vn(f))&&(typeof y=="string"||y!=null&&!kf(y))&&!(y=Wr(y))&&To(f)?Xi($r(f),0,_):f.split(y,_):[]},F.spread=function(f,y){if(typeof f!="function")throw new K(E);return y=y==null?0:hr(Xt(y),0),Zt(function(_){var A=_[y],C=Xi(_,0,y);return A&&ir(C,A),wn(f,this,C)})},F.tail=function(f){var y=f==null?0:f.length;return y?mo(f,1,y):[]},F.take=function(f,y,_){return f&&f.length?mo(f,0,(y=_||y===g?1:Xt(y))<0?0:y):[]},F.takeRight=function(f,y,_){var A=f==null?0:f.length;return A?mo(f,(y=A-(y=_||y===g?1:Xt(y)))<0?0:y,A):[]},F.takeRightWhile=function(f,y){return f&&f.length?pc(f,Et(y,3),!1,!0):[]},F.takeWhile=function(f,y){return f&&f.length?pc(f,Et(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 K(E);return $n(_)&&(A="leading"in _?!!_.leading:A,C="trailing"in _?!!_.trailing:C),Ad(f,y,{leading:A,maxWait:y,trailing:C})},F.thru=bu,F.toArray=wu,F.toPairs=Id,F.toPairsIn=$f,F.toPath=function(f){return Wt(f)?an(f,ar):wr(f)?[f]:Gr(gd(vn(f)))},F.toPlainObject=Nf,F.transform=function(f,y,_){var A=Wt(f),C=A||Ei(f)||Ki(f);if(y=Et(y,4),_==null){var G=f&&f.constructor;_=C?A?new G:[]:$n(f)&&Si(G)?au(vi(f)):{}}return(C?kr:pt)(f,function(ie,fe,Oe){return y(_,ie,fe,Oe)}),_},F.unary=function(f){return Sf(f,1)},F.union=Hr,F.unionBy=ur,F.unionWith=Wy,F.uniq=function(f){return f&&f.length?Ui(f):[]},F.uniqBy=function(f,y){return f&&f.length?Ui(f,Et(y,2)):[]},F.uniqWith=function(f,y){return y=typeof y=="function"?y:g,f&&f.length?Ui(f,g,y):[]},F.unset=function(f,y){return f==null||gs(f,y)},F.unzip=Xr,F.unzipWith=Pt,F.update=function(f,y,_){return f==null?f:ed(f,y,Kl(_))},F.updateWith=function(f,y,_,A){return A=typeof A=="function"?A:g,f==null?f:ed(f,y,Kl(_),A)},F.values=Zi,F.valuesIn=function(f){return f==null?[]:Qa(f,mr(f))},F.without=mf,F.words=No,F.wrap=function(f,y){return xa(Kl(y),f)},F.xor=_f,F.xorBy=Of,F.xorWith=wd,F.zip=xd,F.zipObject=function(f,y){return nd(f||[],y||[],uu)},F.zipObjectDeep=function(f,y){return nd(f||[],y||[],pu)},F.zipWith=Gy,F.entries=Id,F.entriesIn=$f,F.extend=Rf,F.extendWith=Pi,Ai(F,F),F.add=$s,F.attempt=zd,F.camelCase=Bs,F.capitalize=jc,F.ceil=Vf,F.clamp=function(f,y,_){return _===g&&(_=y,y=g),_!==g&&(_=(_=Br(_))==_?_:0),y!==g&&(y=(y=Br(y))==y?y:0),Gi(Br(f),y,_)},F.clone=function(f){return no(f,4)},F.cloneDeep=function(f){return no(f,5)},F.cloneDeepWith=function(f,y){return no(f,5,y=typeof y=="function"?y:g)},F.cloneWith=function(f,y){return no(f,4,y=typeof y=="function"?y:g)},F.conformsTo=function(f,y){return y==null||Bl(f,y,cr(y))},F.deburr=zs,F.defaultTo=function(f,y){return f==null||f!=f?y:f},F.divide=Kf,F.endsWith=function(f,y,_){f=vn(f),y=Wr(y);var A=f.length,C=_=_===g?A:Gi(Xt(_),0,A);return(_-=y.length)>=0&&f.slice(_,C)==y},F.eq=Bn,F.escape=function(f){return(f=vn(f))&&ct.test(f)?f.replace(yt,er):f},F.escapeRegExp=function(f){return(f=vn(f))&&Dn.test(f)?f.replace(mn,"\\$&"):f},F.every=function(f,y,_){var A=Wt(f)?ts:Up;return _&&Ar(f,y,_)&&(y=g),A(f,Et(y,3))},F.find=Hy,F.findIndex=df,F.findKey=function(f,y){return Po(f,Et(y,3),pt)},F.findLast=Xy,F.findLastIndex=hf,F.findLastKey=function(f,y){return Po(f,Et(y,3),jn)},F.floor=Gd,F.forEach=xf,F.forEachRight=Oa,F.forIn=function(f,y){return f==null?f:qt(f,Et(y,3),mr)},F.forInRight=function(f,y){return f==null?f:tr(f,Et(y,3),mr)},F.forOwn=function(f,y){return f&&pt(f,Et(y,3))},F.forOwnRight=function(f,y){return f&&jn(f,Et(y,3))},F.get=Ec,F.gt=Rs,F.gte=Oc,F.has=function(f,y){return f!=null&&rf(f,y,Hp)},F.hasIn=Sc,F.head=vf,F.identity=Tr,F.includes=function(f,y,_,A){f=Lr(f)?f:Zi(f),_=_&&!A?Xt(_):0;var C=f.length;return _<0&&(_=hr(C+_,0)),wc(f)?_<=C&&f.indexOf(y,_)>-1:!!C&&zi(f,y,_)>-1},F.indexOf=function(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var C=_==null?0:Xt(_);return C<0&&(C=hr(A+C,0)),zi(f,y,C)},F.inRange=function(f,y,_){return y=ei(y),_===g?(_=y,y=0):_=ei(_),function(A,C,G){return A>=Pr(C,G)&&A<hr(C,G)}(f=Br(f),y,_)},F.invoke=Bf,F.isArguments=Ea,F.isArray=Wt,F.isArrayBuffer=Td,F.isArrayLike=Lr,F.isArrayLikeObject=Kn,F.isBoolean=function(f){return f===!0||f===!1||Wn(f)&&Pn(f)==H},F.isBuffer=Ei,F.isDate=Cs,F.isElement=function(f){return Wn(f)&&f.nodeType===1&&!ji(f)},F.isEmpty=function(f){if(f==null)return!0;if(Lr(f)&&(Wt(f)||typeof f=="string"||typeof f.splice=="function"||Ei(f)||Ki(f)||Ea(f)))return!f.length;var y=Or(f);if(y==ce||y==je)return!f.size;if(vu(f))return!Oi(f).length;for(var _ in f)if(et.call(f,_))return!1;return!0},F.isEqual=function(f,y){return su(f,y)},F.isEqualWith=function(f,y,_){var A=(_=typeof _=="function"?_:g)?_(f,y):g;return A===g?su(f,y,g,_):!!A},F.isError=Tf,F.isFinite=function(f){return typeof f=="number"&&Cp(f)},F.isFunction=Si,F.isInteger=Is,F.isLength=Sa,F.isMap=Md,F.isMatch=function(f,y){return f===y||ds(f,y,js(y))},F.isMatchWith=function(f,y,_){return _=typeof _=="function"?_:g,ds(f,y,js(y),_)},F.isNaN=function(f){return Mf(f)&&f!=+f},F.isNative=function(f){if(yd(f))throw new Jt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return lu(f)},F.isNil=function(f){return f==null},F.isNull=function(f){return f===null},F.isNumber=Mf,F.isObject=$n,F.isObjectLike=Wn,F.isPlainObject=ji,F.isRegExp=kf,F.isSafeInteger=function(f){return Is(f)&&f>=-9007199254740991&&f<=U},F.isSet=_u,F.isString=wc,F.isSymbol=wr,F.isTypedArray=Ki,F.isUndefined=function(f){return f===g},F.isWeakMap=function(f){return Wn(f)&&Or(f)==Te},F.isWeakSet=function(f){return Wn(f)&&Pn(f)=="[object WeakSet]"},F.join=function(f,y){return f==null?"":ky.call(f,y)},F.kebabCase=Wf,F.last=Tn,F.lastIndexOf=function(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var C=A;return _!==g&&(C=(C=Xt(_))<0?hr(A+C,0):Pr(C,A-1)),y==y?function(G,ie,fe){for(var Oe=fe+1;Oe--;)if(G[Oe]===ie)return Oe;return Oe}(f,y,C):Wo(f,Go,C,!0)},F.lowerCase=Ld,F.lowerFirst=Gf,F.lt=Ou,F.lte=xc,F.max=function(f){return f&&f.length?Vn(f,Tr,Un):g},F.maxBy=function(f,y){return f&&f.length?Vn(f,Et(y,2),Un):g},F.mean=function(f){return nn(f,Tr)},F.meanBy=function(f,y){return nn(f,Et(y,2))},F.min=function(f){return f&&f.length?Vn(f,Tr,wi):g},F.minBy=function(f,y){return f&&f.length?Vn(f,Et(y,2),wi):g},F.stubArray=Fs,F.stubFalse=sr,F.stubObject=function(){return{}},F.stubString=function(){return""},F.stubTrue=function(){return!0},F.multiply=qf,F.nth=function(f,y){return f&&f.length?Kp(f,Xt(y)):g},F.noConflict=function(){return Gn._===this&&(Gn._=Rn),this},F.noop=Tc,F.now=mc,F.pad=function(f,y,_){f=vn(f);var A=(y=Xt(y))?Mo(f):0;if(!y||A>=y)return f;var C=(y-A)/2;return ws(nu(C),_)+f+ws(rs(C),_)},F.padEnd=function(f,y,_){f=vn(f);var A=(y=Xt(y))?Mo(f):0;return y&&A<y?f+ws(y-A,_):f},F.padStart=function(f,y,_){f=vn(f);var A=(y=Xt(y))?Mo(f):0;return y&&A<y?ws(y-A,_)+f:f},F.parseInt=function(f,y,_){return _||y==null?y=0:y&&(y=+y),is(vn(f).replace(Rt,""),y||0)},F.random=function(f,y,_){if(_&&typeof _!="boolean"&&Ar(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=ei(f),y===g?(y=f,f=0):y=ei(y)),f>y){var A=f;f=y,y=A}if(_||f%1||y%1){var C=as();return Pr(f+C*(y-f+Li("1e-"+((C+"").length-1))),y)}return Ul(f,y)},F.reduce=function(f,y,_){var A=Wt(f)?qa:dr,C=arguments.length<3;return A(f,Et(y,4),_,C,Cn)},F.reduceRight=function(f,y,_){var A=Wt(f)?ns:dr,C=arguments.length<3;return A(f,Et(y,4),_,C,Gp)},F.repeat=function(f,y,_){return y=(_?Ar(f,y,_):y===g)?1:Xt(y),ys(vn(f),y)},F.replace=function(){var f=arguments,y=vn(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 G=f==null?g:f[ar(y[A])];G===g&&(A=C,G=_),f=Si(G)?G.call(f):G}return f},F.round=Gs,F.runInContext=xe,F.sample=function(f){return(Wt(f)?Il:Ly)(f)},F.size=function(f){if(f==null)return 0;if(Lr(f))return wc(f)?Mo(f):f.length;var y=Or(f);return y==ce||y==je?f.size:Oi(f).length},F.snakeCase=Bd,F.some=function(f,y,_){var A=Wt(f)?nc:Xl;return _&&Ar(f,y,_)&&(y=g),A(f,Et(y,3))},F.sortedIndex=function(f,y){return vs(f,y)},F.sortedIndexBy=function(f,y,_){return Yl(f,y,Et(_,2))},F.sortedIndexOf=function(f,y){var _=f==null?0:f.length;if(_){var A=vs(f,y);if(A<_&&Bn(f[A],y))return A}return-1},F.sortedLastIndex=function(f,y){return vs(f,y,!0)},F.sortedLastIndexBy=function(f,y,_){return Yl(f,y,Et(_,2),!0)},F.sortedLastIndexOf=function(f,y){if(f!=null&&f.length){var _=vs(f,y,!0)-1;if(Bn(f[_],y))return _}return-1},F.startCase=xu,F.startsWith=function(f,y,_){return f=vn(f),_=_==null?0:Gi(Xt(_),0,f.length),y=Wr(y),f.slice(_,_+y.length)==y},F.subtract=Ud,F.sum=function(f){return f&&f.length?Ja(f,Tr):0},F.sumBy=function(f,y){return f&&f.length?Ja(f,Et(y,2)):0},F.template=function(f,y,_){var A=F.templateSettings;_&&Ar(f,y,_)&&(y=g),f=vn(f),y=Pi({},y,A,fd);var C,G,ie=Pi({},y.imports,A.imports,fd),fe=cr(ie),Oe=Qa(ie,fe),Ie=0,De=y.interpolate||St,te="__p += '",lt=T((y.escape||St).source+"|"+De.source+"|"+(De===Lt?ft:St).source+"|"+(y.evaluate||St).source+"|$","g"),ht="//# sourceURL="+(et.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kc+"]")+`
`;f.replace(lt,function(He,Dt,ut,Nt,It,en){return ut||(ut=Nt),te+=f.slice(Ie,en).replace(Ct,Fi),Dt&&(C=!0,te+=`' +
__e(`+Dt+`) +
'`),It&&(G=!0,te+=`';
`+It+`;
__p += '`),ut&&(te+=`' +
((__t = (`+ut+`)) == null ? '' : __t) +
'`),Ie=en+He.length,He}),te+=`';
`;var At=et.call(y,"variable")&&y.variable;if(At){if(Ye.test(At))throw new Jt("Invalid `variable` option passed into `_.template`")}else te=`with (obj) {
`+te+`
}
`;te=(G?te.replace(Be,""):te).replace(xt,"$1").replace(kt,"$1;"),te="function("+(At||"obj")+`) {
`+(At?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+te+`return __p
}`;var ze=zd(function(){return Sn(fe,ht+"return "+te).apply(g,Oe)});if(ze.source=te,Tf(ze))throw ze;return ze},F.times=function(f,y){if((f=Xt(f))<1||f>U)return[];var _=ue,A=Pr(f,ue);y=Et(y),f-=ue;for(var C=ha(A,y);++_<f;)y(_);return C},F.toFinite=ei,F.toInteger=Xt,F.toLength=Df,F.toLower=function(f){return vn(f).toLowerCase()},F.toNumber=Br,F.toSafeInteger=function(f){return f?Gi(Xt(f),-9007199254740991,U):f===0?f:0},F.toString=vn,F.toUpper=function(f){return vn(f).toUpperCase()},F.trim=function(f,y,_){if((f=vn(f))&&(_||y===g))return rc(f);if(!f||!(y=Wr(y)))return f;var A=$r(f),C=$r(y);return Xi(A,Qr(A,C),oc(A,C)+1).join("")},F.trimEnd=function(f,y,_){if((f=vn(f))&&(_||y===g))return f.slice(0,Cr(f)+1);if(!f||!(y=Wr(y)))return f;var A=$r(f);return Xi(A,0,oc(A,$r(y))+1).join("")},F.trimStart=function(f,y,_){if((f=vn(f))&&(_||y===g))return f.replace(Rt,"");if(!f||!(y=Wr(y)))return f;var A=$r(f);return Xi(A,Qr(A,$r(y))).join("")},F.truncate=function(f,y){var _=30,A="...";if($n(y)){var C="separator"in y?y.separator:C;_="length"in y?Xt(y.length):_,A="omission"in y?Wr(y.omission):A}var G=(f=vn(f)).length;if(To(f)){var ie=$r(f);G=ie.length}if(_>=G)return f;var fe=_-Mo(A);if(fe<1)return A;var Oe=ie?Xi(ie,0,fe).join(""):f.slice(0,fe);if(C===g)return Oe+A;if(ie&&(fe+=Oe.length-fe),kf(C)){if(f.slice(fe).search(C)){var Ie,De=Oe;for(C.global||(C=T(C.source,vn(Ht.exec(C))+"g")),C.lastIndex=0;Ie=C.exec(De);)var te=Ie.index;Oe=Oe.slice(0,te===g?fe:te)}}else if(f.indexOf(Wr(C),fe)!=fe){var lt=Oe.lastIndexOf(C);lt>-1&&(Oe=Oe.slice(0,lt))}return Oe+A},F.unescape=function(f){return(f=vn(f))&&ke.test(f)?f.replace(jt,eo):f},F.uniqueId=function(f){var y=++_n;return vn(f)+y},F.upperCase=qy,F.upperFirst=qn,F.each=xf,F.eachRight=Oa,F.first=vf,Ai(F,(Ws={},pt(F,function(f,y){et.call(F.prototype,y)||(Ws[y]=f)}),Ws),{chain:!1}),F.VERSION="4.17.21",kr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){F[f].placeholder=F}),kr(["drop","take"],function(f,y){on.prototype[f]=function(_){_=_===g?1:hr(Xt(_),0);var A=this.__filtered__&&!y?new on(this):this.clone();return A.__filtered__?A.__takeCount__=Pr(_,A.__takeCount__):A.__views__.push({size:Pr(_,ue),type:f+(A.__dir__<0?"Right":"")}),A},on.prototype[f+"Right"]=function(_){return this.reverse()[f](_).reverse()}}),kr(["filter","map","takeWhile"],function(f,y){var _=y+1,A=_==1||_==3;on.prototype[f]=function(C){var G=this.clone();return G.__iteratees__.push({iteratee:Et(C,3),type:_}),G.__filtered__=G.__filtered__||A,G}}),kr(["head","last"],function(f,y){var _="take"+(y?"Right":"");on.prototype[f]=function(){return this[_](1).value()[0]}}),kr(["initial","tail"],function(f,y){var _="drop"+(y?"":"Right");on.prototype[f]=function(){return this.__filtered__?new on(this):this[_](1)}}),on.prototype.compact=function(){return this.filter(Tr)},on.prototype.find=function(f){return this.filter(f).head()},on.prototype.findLast=function(f){return this.reverse().find(f)},on.prototype.invokeMap=Zt(function(f,y){return typeof f=="function"?new on(this):this.map(function(_){return cu(_,f,y)})}),on.prototype.reject=function(f){return this.filter(Ns(Et(f)))},on.prototype.slice=function(f,y){f=Xt(f);var _=this;return _.__filtered__&&(f>0||y<0)?new on(_):(f<0?_=_.takeRight(-f):f&&(_=_.drop(f)),y!==g&&(_=(y=Xt(y))<0?_.dropRight(-y):_.take(y-f)),_)},on.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},on.prototype.toArray=function(){return this.take(ue)},pt(on.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],G=A||/^find/.test(y);C&&(F.prototype[y]=function(){var ie=this.__wrapped__,fe=A?[1]:arguments,Oe=ie instanceof on,Ie=fe[0],De=Oe||Wt(ie),te=function(Dt){var ut=C.apply(F,ir([Dt],fe));return A&&lt?ut[0]:ut};De&&_&&typeof Ie=="function"&&Ie.length!=1&&(Oe=De=!1);var lt=this.__chain__,ht=!!this.__actions__.length,At=G&&!lt,ze=Oe&&!ht;if(!G&&De){ie=ze?ie:new on(this);var He=f.apply(ie,fe);return He.__actions__.push({func:bu,args:[te],thisArg:g}),new vo(He,lt)}return At&&ze?f.apply(this,fe):(He=this.thru(te),At?A?He.value()[0]:He.value():He)})}),kr(["pop","push","shift","sort","splice","unshift"],function(f){var y=de[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 G=this.value();return y.apply(Wt(G)?G:[],C)}return this[_](function(ie){return y.apply(Wt(ie)?ie:[],C)})}}),pt(on.prototype,function(f,y){var _=F[y];if(_){var A=_.name+"";et.call(iu,A)||(iu[A]=[]),iu[A].push({name:y,func:_})}}),iu[hc(g,2).name]=[{name:"wrapper",func:g}],on.prototype.clone=function(){var f=new on(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},on.prototype.reverse=function(){if(this.__filtered__){var f=new on(this);f.__dir__=-1,f.__filtered__=!0}else(f=this.clone()).__dir__*=-1;return f},on.prototype.value=function(){var f=this.__wrapped__.value(),y=this.__dir__,_=Wt(f),A=y<0,C=_?f.length:0,G=function(en,_t,Tt){for(var Hn=-1,Yr=Tt.length;++Hn<Yr;){var Ro=Tt[Hn],Zn=Ro.size;switch(Ro.type){case"drop":en+=Zn;break;case"dropRight":_t-=Zn;break;case"take":_t=Pr(_t,en+Zn);break;case"takeRight":en=hr(en,_t-Zn)}}return{start:en,end:_t}}(0,C,this.__views__),ie=G.start,fe=G.end,Oe=fe-ie,Ie=A?fe:ie-1,De=this.__iteratees__,te=De.length,lt=0,ht=Pr(Oe,this.__takeCount__);if(!_||!A&&C==Oe&&ht==Oe)return td(f,this.__actions__);var At=[];e:for(;Oe--&&lt<ht;){for(var ze=-1,He=f[Ie+=y];++ze<te;){var Dt=De[ze],ut=Dt.iteratee,Nt=Dt.type,It=ut(He);if(Nt==2)He=It;else if(!It){if(Nt==1)continue e;break e}}At[lt++]=He}return At},F.prototype.at=Uy,F.prototype.chain=function(){return Ed(this)},F.prototype.commit=function(){return new vo(this.value(),this.__chain__)},F.prototype.next=function(){this.__values__===g&&(this.__values__=wu(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 lc;){var A=bd(_);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 on){var y=f;return this.__actions__.length&&(y=new on(this)),(y=y.reverse()).__actions__.push({func:bu,args:[Ds],thisArg:g}),new vo(y,this.__chain__)}return this.thru(Ds)},F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=function(){return td(this.__wrapped__,this.__actions__)},F.prototype.first=F.prototype.head,gi&&(F.prototype[gi]=function(){return this}),F}();Gn._=ko,(m=(function(){return ko}).call(l,o,l,h))===g||(h.exports=m)}).call(this)}).call(this,o(66),o(219)(a))},function(a,l,o){var d=o(7),h=o(34),m=o(33),g=o(87),E=o(61),P=o(174),j=o(28),k=d.TypeError,M=j("toPrimitive");a.exports=function(R,N){if(!m(R)||g(R))return R;var I,W=E(R,M);if(W){if(N===void 0&&(N="default"),I=h(W,R,N),!m(I)||g(I))return I;throw k("Can't convert object to primitive value")}return N===void 0&&(N="number"),P(R,N)}},function(a,l,o){var d=o(108);a.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(a,l,o){var d=o(36),h=o(18),m=o(91);a.exports=!d&&!h(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})},function(a,l,o){var d=o(35),h=o(135),m=o(50),g=o(38);a.exports=function(E,P){for(var j=h(P),k=g.f,M=m.f,R=0;R<j.length;R++){var N=j[R];d(E,N)||k(E,N,M(P,N))}}},function(a,l,o){var d=o(46),h=o(15),m=o(72),g=o(112),E=o(32),P=h([].concat);a.exports=d("Reflect","ownKeys")||function(j){var k=m.f(E(j)),M=g.f;return M?P(k,M(j)):k}},function(a,l,o){var d=o(15),h=o(35),m=o(41),g=o(137).indexOf,E=o(70),P=d([].push);a.exports=function(j,k){var M,R=m(j),N=0,I=[];for(M in R)!h(E,M)&&h(R,M)&&P(I,M);for(;k.length>N;)h(R,M=k[N++])&&(~g(I,M)||P(I,M));return I}},function(a,l,o){var d=o(41),h=o(73),m=o(45),g=function(E){return function(P,j,k){var M,R=d(P),N=m(R),I=h(k,N);if(E&&j!=j){for(;N>I;)if((M=R[I++])!=M)return!0}else for(;N>I;I++)if((E||I in R)&&R[I]===j)return E||I||0;return!E&&-1}};a.exports={includes:g(!0),indexOf:g(!1)}},function(a,l,o){var d=o(46);a.exports=d("document","documentElement")},function(a,l,o){var d=o(51),h=o(41),m=o(72).f,g=o(114),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];a.exports.f=function(P){return E&&d(P)=="Window"?function(j){try{return m(j)}catch{return g(E)}}(P):m(h(P))}},function(a,l,o){var d=o(28);l.f=d},function(a,l,o){var d=o(177),h=o(35),m=o(140),g=o(38).f;a.exports=function(E){var P=d.Symbol||(d.Symbol={});h(P,E)||g(P,E,{value:m.f(E)})}},function(a,l,o){var d,h,m,g=o(18),E=o(30),P=o(60),j=o(101),k=o(42),M=o(28),R=o(69),N=M("iterator"),I=!1;[].keys&&("next"in(m=[].keys())?(h=j(j(m)))!==Object.prototype&&(d=h):I=!0),d==null||g(function(){var W={};return d[N].call(W)!==W})?d={}:R&&(d=P(d)),E(d[N])||k(d,N,function(){return this}),a.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:I}},function(a,l,o){var d=o(18);a.exports=!d(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},function(a,l,o){var d=o(17),h=o(15),m=o(70),g=o(33),E=o(35),P=o(38).f,j=o(72),k=o(139),M=o(183),R=o(90),N=o(185),I=!1,W=R("meta"),U=0,ne=function(re){P(re,W,{value:{objectID:"O"+U++,weakData:{}}})},ue=a.exports={enable:function(){ue.enable=function(){},I=!0;var re=j.f,Q=h([].splice),ee={};ee[W]=1,re(ee).length&&(j.f=function(H){for(var B=re(H),X=0,V=B.length;X<V;X++)if(B[X]===W){Q(B,X,1);break}return B},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:k.f}))},fastKey:function(re,Q){if(!g(re))return typeof re=="symbol"?re:(typeof re=="string"?"S":"P")+re;if(!E(re,W)){if(!M(re))return"F";if(!Q)return"E";ne(re)}return re[W].objectID},getWeakData:function(re,Q){if(!E(re,W)){if(!M(re))return!0;if(!Q)return!1;ne(re)}return re[W].weakData},onFreeze:function(re){return N&&I&&M(re)&&!E(re,W)&&ne(re),re}};m[W]=!0},function(a,l,o){var d=o(28),h=o(78),m=d("iterator"),g=Array.prototype;a.exports=function(E){return E!==void 0&&(h.Array===E||g[m]===E)}},function(a,l,o){var d=o(7),h=o(34),m=o(56),g=o(32),E=o(88),P=o(118),j=d.TypeError;a.exports=function(k,M){var R=arguments.length<2?P(k):M;if(m(R))return g(h(R,k));throw j(E(k)+" is not iterable")}},function(a,l,o){var d=o(34),h=o(32),m=o(61);a.exports=function(g,E,P){var j,k;h(g);try{if(!(j=m(g,"return"))){if(E==="throw")throw P;return P}j=d(j,g)}catch(M){k=!0,j=M}if(E==="throw")throw P;if(k)throw j;return h(j),P}},function(a,l,o){var d=o(30),h=o(33),m=o(102);a.exports=function(g,E,P){var j,k;return m&&d(j=E.constructor)&&j!==P&&h(k=j.prototype)&&k!==P.prototype&&m(g,k),g}},function(a,l,o){var d=o(42);a.exports=function(h,m,g){for(var E in m)d(h,E,m[E],g);return h}},function(a,l,o){var d=o(46),h=o(38),m=o(28),g=o(36),E=m("species");a.exports=function(P){var j=d(P),k=h.f;g&&j&&!j[E]&&k(j,E,{configurable:!0,get:function(){return this}})}},function(a,l,o){var d=o(15),h=o(59),m=o(39),g=o(44),E=d("".charAt),P=d("".charCodeAt),j=d("".slice),k=function(M){return function(R,N){var I,W,U=m(g(R)),ne=h(N),ue=U.length;return ne<0||ne>=ue?M?"":void 0:(I=P(U,ne))<55296||I>56319||ne+1===ue||(W=P(U,ne+1))<56320||W>57343?M?E(U,ne):I:M?j(U,ne,ne+2):W-56320+(I-55296<<10)+65536}};a.exports={codeAt:k(!1),charAt:k(!0)}},function(a,l){a.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(a,l,o){var d=o(91)("span").classList,h=d&&d.constructor&&d.constructor.prototype;a.exports=h===Object.prototype?void 0:h},function(a,l,o){var d=o(32);a.exports=function(){var h=d(this),m="";return h.global&&(m+="g"),h.ignoreCase&&(m+="i"),h.multiline&&(m+="m"),h.dotAll&&(m+="s"),h.unicode&&(m+="u"),h.sticky&&(m+="y"),m}},function(a,l,o){var d=o(18),h=o(7).RegExp,m=d(function(){var P=h("a","y");return P.lastIndex=2,P.exec("abcd")!=null}),g=m||d(function(){return!h("a","y").sticky}),E=m||d(function(){var P=h("^r","gy");return P.lastIndex=2,P.exec("str")!=null});a.exports={BROKEN_CARET:E,MISSED_STICKY:g,UNSUPPORTED_Y:m}},function(a,l,o){var d=o(17),h=o(77).find,m=o(100),g="find",E=!0;g in[]&&Array(1).find(function(){E=!1}),d({target:"Array",proto:!0,forced:E},{find:function(P){return h(this,P,arguments.length>1?arguments[1]:void 0)}}),m(g)},function(a,l,o){var d=o(17),h=o(137).includes,m=o(100);d({target:"Array",proto:!0},{includes:function(g){return h(this,g,arguments.length>1?arguments[1]:void 0)}}),m("includes")},function(a,l,o){var d=o(17),h=o(15),m=o(197),g=o(44),E=o(39),P=o(198),j=h("".indexOf);d({target:"String",proto:!0,forced:!P("includes")},{includes:function(k){return!!~j(E(g(this)),E(m(k)),arguments.length>1?arguments[1]:void 0)}})},function(a,l,o){var d=o(33),h=o(51),m=o(28)("match");a.exports=function(g){var E;return d(g)&&((E=g[m])!==void 0?!!E:h(g)=="RegExp")}},function(a,l){var o,d,h=a.exports={};function m(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function E(U){if(o===setTimeout)return setTimeout(U,0);if((o===m||!o)&&setTimeout)return o=setTimeout,setTimeout(U,0);try{return o(U,0)}catch{try{return o.call(null,U,0)}catch{return o.call(this,U,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:m}catch{o=m}try{d=typeof clearTimeout=="function"?clearTimeout:g}catch{d=g}})();var P,j=[],k=!1,M=-1;function R(){k&&P&&(k=!1,P.length?j=P.concat(j):M=-1,j.length&&N())}function N(){if(!k){var U=E(R);k=!0;for(var ne=j.length;ne;){for(P=j,j=[];++M<ne;)P&&P[M].run();M=-1,ne=j.length}P=null,k=!1,function(ue){if(d===clearTimeout)return clearTimeout(ue);if((d===g||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(ue);try{d(ue)}catch{try{return d.call(null,ue)}catch{return d.call(this,ue)}}}(U)}}function I(U,ne){this.fun=U,this.array=ne}function W(){}h.nextTick=function(U){var ne=new Array(arguments.length-1);if(arguments.length>1)for(var ue=1;ue<arguments.length;ue++)ne[ue-1]=arguments[ue];j.push(new I(U,ne)),j.length!==1||k||E(N)},I.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=W,h.addListener=W,h.once=W,h.off=W,h.removeListener=W,h.removeAllListeners=W,h.emit=W,h.prependListener=W,h.prependOnceListener=W,h.listeners=function(U){return[]},h.binding=function(U){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(U){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(a,l,o){var d=o(32),h=o(162),m=o(28)("species");a.exports=function(g,E){var P,j=d(g).constructor;return j===void 0||(P=d(j)[m])==null?E:h(P)}},function(a,l,o){var d=o(7),h=o(99),m=o(88),g=d.TypeError;a.exports=function(E){if(h(E))return E;throw g(m(E)+" is not a constructor")}},function(a,l,o){var d=o(17),h=o(164).trim;d({target:"String",proto:!0,forced:o(199)("trim")},{trim:function(){return h(this)}})},function(a,l,o){var d=o(15),h=o(44),m=o(39),g=o(165),E=d("".replace),P="["+g+"]",j=RegExp("^"+P+P+"*"),k=RegExp(P+P+"*$"),M=function(R){return function(N){var I=m(h(N));return 1&R&&(I=E(I,j,"")),2&R&&(I=E(I,k,"")),I}};a.exports={start:M(1),end:M(2),trim:M(3)}},function(a,l){a.exports=`
\v\f\r    \u2028\u2029\uFEFF`},function(a,l,o){var d=o(15);a.exports=d(1 .valueOf)},function(a,l,o){var d=o(34),h=o(123),m=o(32),g=o(94),E=o(39),P=o(44),j=o(61),k=o(124),M=o(125);h("match",function(R,N,I){return[function(W){var U=P(this),ne=W==null?void 0:j(W,R);return ne?d(ne,W,U):new RegExp(W)[R](E(U))},function(W){var U=m(this),ne=E(W),ue=I(N,U,ne);if(ue.done)return ue.value;if(!U.global)return M(U,ne);var re=U.unicode;U.lastIndex=0;for(var Q,ee=[],H=0;(Q=M(U,ne))!==null;){var B=E(Q[0]);ee[H]=B,B===""&&(U.lastIndex=k(ne,g(U.lastIndex),re)),H++}return H===0?null:ee}]})},function(a,l,o){var d,h,m,g,E=o(7),P=o(74),j=o(63),k=o(30),M=o(35),R=o(18),N=o(138),I=o(98),W=o(91),U=o(169),ne=o(128),ue=E.setImmediate,re=E.clearImmediate,Q=E.process,ee=E.Dispatch,H=E.Function,B=E.MessageChannel,X=E.String,V=0,q={},ce="onreadystatechange";try{d=E.location}catch{}var we=function(je){if(M(q,je)){var ge=q[je];delete q[je],ge()}},ye=function(je){return function(){we(je)}},Ae=function(je){we(je.data)},Fe=function(je){E.postMessage(X(je),d.protocol+"//"+d.host)};ue&&re||(ue=function(je){var ge=I(arguments,1);return q[++V]=function(){P(k(je)?je:H(je),void 0,ge)},h(V),V},re=function(je){delete q[je]},ne?h=function(je){Q.nextTick(ye(je))}:ee&&ee.now?h=function(je){ee.now(ye(je))}:B&&!U?(g=(m=new B).port2,m.port1.onmessage=Ae,h=j(g.postMessage,g)):E.addEventListener&&k(E.postMessage)&&!E.importScripts&&d&&d.protocol!=="file:"&&!R(Fe)?(h=Fe,E.addEventListener("message",Ae,!1)):h=ce in W("script")?function(je){N.appendChild(W("script")).onreadystatechange=function(){N.removeChild(this),we(je)}}:function(je){setTimeout(ye(je),0)}),a.exports={set:ue,clear:re}},function(a,l,o){var d=o(55);a.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},function(a,l,o){var d=o(56),h=function(m){var g,E;this.promise=new m(function(P,j){if(g!==void 0||E!==void 0)throw TypeError("Bad Promise constructor");g=P,E=j}),this.resolve=d(g),this.reject=d(E)};a.exports.f=function(m){return new h(m)}},function(a,l,o){l.a=function(){return!1}},function(a,l,o){(function(d){o.d(l,"a",function(){return Q});var h=o(1);function m(B){throw new Error("[mobx-utils] "+B)}function g(B,X){X===void 0&&(X="Illegal state"),B||m(X)}var E=function(B){return B&&B!==Object.prototype&&Object.getOwnPropertyNames(B).concat(E(Object.getPrototypeOf(B))||[])},P=function(B){return function(X){var V=E(X);return V.filter(function(q,ce){return V.indexOf(q)===ce})}(B).filter(function(X){return X!=="constructor"&&!~X.indexOf("__")})},j="pending",k="fulfilled",M="rejected";function R(B){switch(this.state){case j: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,X){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 V=B;B.then(Object(h.k)("observableFromPromise-resolve",function(ce){V.value=ce,V.state=k}),Object(h.k)("observableFromPromise-reject",function(ce){V.value=ce,V.state=M})),V.isPromiseBasedObservable=!0,V.case=R;var q=X&&X.state===k?X.value:void 0;return Object(h.q)(V,{value:q,state:j},{},{deep:!1}),V}(function(B){B.reject=Object(h.k)("fromPromise.reject",function(X){var V=B(Promise.reject(X));return V.state=M,V.value=X,V}),B.resolve=Object(h.k)("fromPromise.resolve",function(X){X===void 0&&(X=void 0);var V=B(Promise.resolve(X));return V.state=k,V.value=X,V})})(N||(N={}));var I=function(B,X,V,q){var ce,we=arguments.length,ye=we<3?X:q===null?q=Object.getOwnPropertyDescriptor(X,V):q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(B,X,V,q);else for(var Ae=B.length-1;Ae>=0;Ae--)(ce=B[Ae])&&(ye=(we<3?ce(ye):we>3?ce(X,V,ye):ce(X,V))||ye);return we>3&&ye&&Object.defineProperty(X,V,ye),ye};(function(){function B(X,V){var q=this;Object(h.G)(function(){q.current=V,q.subscription=X.subscribe(q)})}B.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},B.prototype.next=function(X){this.current=X},B.prototype.complete=function(){this.dispose()},B.prototype.error=function(X){this.current=X,this.dispose()},I([h.C.ref],B.prototype,"current",void 0),I([h.k.bound],B.prototype,"next",null),I([h.k.bound],B.prototype,"complete",null),I([h.k.bound],B.prototype,"error",null)})();var W=function(){return W=Object.assign||function(B){for(var X,V=1,q=arguments.length;V<q;V++)for(var ce in X=arguments[V])Object.prototype.hasOwnProperty.call(X,ce)&&(B[ce]=X[ce]);return B},W.apply(this,arguments)},U=function(B,X,V,q){var ce,we=arguments.length,ye=we<3?X:q===null?q=Object.getOwnPropertyDescriptor(X,V):q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(B,X,V,q);else for(var Ae=B.length-1;Ae>=0;Ae--)(ce=B[Ae])&&(ye=(we<3?ce(ye):we>3?ce(X,V,ye):ce(X,V))||ye);return we>3&&ye&&Object.defineProperty(X,V,ye),ye},ne=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function B(X){var V=this;this.model=X,this.localValues=h.C.map({}),this.localComputedValues=h.C.map({}),this.isPropertyDirty=function(q){return V.localValues.has(q)},g(Object(h.A)(X),"createViewModel expects an observable object"),P(X).forEach(function(q){if(q!==h.a&&q!=="__mobxDidRunLazyInitializers"){if(g(ne.indexOf(q)===-1,"The propertyname "+q+" is reserved and cannot be used with viewModels"),Object(h.w)(X,q)){var ce=Object(h.h)(X,q).derivation;V.localComputedValues.set(q,Object(h.m)(ce.bind(V)))}var we=Object.getOwnPropertyDescriptor(X,q),ye=we?{enumerable:we.enumerable}:{};Object.defineProperty(V,q,W(W({},ye),{configurable:!0,get:function(){return Object(h.w)(X,q)?V.localComputedValues.get(q).get():V.isPropertyDirty(q)?V.localValues.get(q):V.model[q]},set:Object(h.k)(function(Ae){Ae!==V.model[q]?V.localValues.set(q,Ae):V.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 X=this;Object(h.B)(this.localValues).forEach(function(V){var q=X.localValues.get(V),ce=X.model[V];Object(h.y)(ce)?ce.replace(q):Object(h.z)(ce)?(ce.clear(),ce.merge(q)):Object(h.v)(q)||(X.model[V]=q)}),this.localValues.clear()},B.prototype.reset=function(){this.localValues.clear()},B.prototype.resetProperty=function(X){this.localValues.delete(X)},U([h.m],B.prototype,"isDirty",null),U([h.m],B.prototype,"changedValues",null),U([h.k.bound],B.prototype,"submit",null),U([h.k.bound],B.prototype,"reset",null),U([h.k.bound],B.prototype,"resetProperty",null)})();function ue(B){if(!B)return"ROOT";for(var X=[];B.parent;)X.push(B.path),B=B.parent;return X.reverse().join("/")}function re(B){return Object(h.A)(B)||Object(h.y)(B)||Object(h.z)(B)}function Q(B,X){var V=new WeakMap;function q(ye){var Ae=V.get(ye.object);(function(Fe,je){switch(Fe.type){case"add":ce(Fe.newValue,je,Fe.name);break;case"update":we(Fe.oldValue),ce(Fe.newValue,je,Fe.name||""+Fe.index);break;case"remove":case"delete":we(Fe.oldValue);break;case"splice":Fe.removed.map(we),Fe.added.forEach(function(Te,We){return ce(Te,je,""+(Fe.index+We))});for(var ge=Fe.index+Fe.addedCount;ge<Fe.object.length;ge++)if(re(Fe.object[ge])){var Pe=V.get(Fe.object[ge]);Pe&&(Pe.path=""+ge)}}})(ye,Ae),X(ye,ue(Ae),B)}function ce(ye,Ae,Fe){if(re(ye)){var je=V.get(ye);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 '"+ue(Ae)+"/"+Fe+"', but it already exists at '"+ue(je.parent)+"/"+je.path+"'")}else{var ge={parent:Ae,path:Fe,dispose:Object(h.D)(ye,q)};V.set(ye,ge),Object(h.p)(ye).forEach(function(Pe){var Te=Pe[0];return ce(Pe[1],ge,Te)})}}}function we(ye){if(re(ye)){var Ae=V.get(ye);if(!Ae)return;V.delete(ye),Ae.dispose(),Object(h.L)(ye).forEach(we)}}return ce(B,void 0,""),function(){we(B)}}var ee,H=(ee=function(B,X){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,q){V.__proto__=q}||function(V,q){for(var ce in q)q.hasOwnProperty(ce)&&(V[ce]=q[ce])},ee(B,X)},function(B,X){function V(){this.constructor=B}ee(B,X),B.prototype=X===null?Object.create(X):(V.prototype=X.prototype,new V)});(function(B){function X(V,q,ce){var we=ce===void 0?{}:ce,ye=we.name,Ae=ye===void 0?"ogm"+(1e3*Math.random()|0):ye,Fe=we.keyToName,je=Fe===void 0?function(Te){return""+Te}:Fe,ge=B.call(this)||this;ge._keyToName=je,ge._groupBy=q,ge._ogmInfoKey=Symbol("ogmInfo"+Ae),ge._base=V;for(var Pe=0;Pe<V.length;Pe++)ge._addItem(V[Pe]);return ge._disposeBaseObserver=Object(h.D)(ge._base,function(Te){if(Te.type==="splice")Object(h.J)(function(){for(var We=0,tt=Te.removed;We<tt.length;We++){var vt=tt[We];ge._removeItem(vt)}for(var Ge=0,Ke=Te.added;Ge<Ke.length;Ge++){var gt=Ke[Ge];ge._addItem(gt)}});else{if(Te.type!=="update")throw new Error("illegal state");Object(h.J)(function(){ge._removeItem(Te.oldValue),ge._addItem(Te.newValue)})}}),ge}H(X,B),X.prototype.clear=function(){throw new Error("not supported")},X.prototype.delete=function(V){throw new Error("not supported")},X.prototype.set=function(V,q){throw new Error("not supported")},X.prototype.dispose=function(){this._disposeBaseObserver();for(var V=0;V<this._base.length;V++){var q=this._base[V];q[this._ogmInfoKey].reaction(),delete q[this._ogmInfoKey]}},X.prototype._getGroupArr=function(V){var q=B.prototype.get.call(this,V);return q===void 0&&(q=Object(h.C)([],{name:"GroupArray["+this._keyToName(V)+"]",deep:!1}),B.prototype.set.call(this,V,q)),q},X.prototype._removeFromGroupArr=function(V,q){var ce=B.prototype.get.call(this,V);ce.length===1?B.prototype.delete.call(this,V):(q===ce.length-1||(ce[q]=ce[ce.length-1],ce[q][this._ogmInfoKey].groupArrIndex=q),ce.length--)},X.prototype._addItem=function(V){var q=this,ce=this._groupBy(V),we=this._getGroupArr(ce),ye={groupByValue:ce,groupArrIndex:we.length,reaction:Object(h.F)(function(){return q._groupBy(V)},function(Ae,Fe){var je=V[q._ogmInfoKey];q._removeFromGroupArr(je.groupByValue,je.groupArrIndex);var ge=q._getGroupArr(Ae),Pe=ge.length;ge.push(V),je.groupByValue=Ae,je.groupArrIndex=Pe})};Object.defineProperty(V,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:ye}),we.push(V)},X.prototype._removeItem=function(V){var q=V[this._ogmInfoKey];this._removeFromGroupArr(q.groupByValue,q.groupArrIndex),q.reaction(),delete V[this._ogmInfoKey]}})(h.b),function(){function B(X,V){this.base=X,this.args=V,this.closestIdx=0,this.isDisposed=!1;for(var q=this.closest=this.root=X,ce=0;ce<this.args.length-1&&(q=q.get(V[ce]));ce++)this.closest=q;this.closestIdx=ce}return B.prototype.exists=function(){this.assertNotDisposed();var X=this.args.length;return this.closestIdx>=X-1&&this.closest.has(this.args[X-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(X){this.assertNotDisposed();for(var V=this.args.length,q=this.closest,ce=this.closestIdx;ce<V-1;ce++){var we=new Map;q.set(this.args[ce],we),q=we}this.closestIdx=V-1,this.closest=q,q.set(this.args[V-1],X)},B.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var X=this.args.length;this.closest.delete(this.args[X-1]);for(var V=this.root,q=[V],ce=0;ce<X-1;ce++)V=V.get(this.args[ce]),q.push(V);for(ce=q.length-1;ce>0;ce--)q[ce].size===0&&q[ce-1].delete(this.args[ce-1]);this.isDisposed=!0},B.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},B}(),Promise.resolve(),typeof queueMicrotask<"u"||d!==void 0&&d.nextTick}).call(this,o(160))},function(a,l,o){var d;(function(h,m,g){if(h){for(var E,P={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"},j={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)P[111+R]="f"+R;for(R=0;R<=9;++R)P[R+96]=R.toString();re.prototype.bind=function(Q,ee,H){var B=this;return Q=Q instanceof Array?Q:[Q],B._bindMultiple.call(B,Q,ee,H),B},re.prototype.unbind=function(Q,ee){return this.bind.call(this,Q,function(){},ee)},re.prototype.trigger=function(Q,ee){var H=this;return H._directMap[Q+":"+ee]&&H._directMap[Q+":"+ee]({},Q),H},re.prototype.reset=function(){var Q=this;return Q._callbacks={},Q._directMap={},Q},re.prototype.stopCallback=function(Q,ee){if((" "+ee.className+" ").indexOf(" mousetrap ")>-1||ue(ee,this.target))return!1;if("composedPath"in Q&&typeof Q.composedPath=="function"){var H=Q.composedPath()[0];H!==Q.target&&(ee=H)}return ee.tagName=="INPUT"||ee.tagName=="SELECT"||ee.tagName=="TEXTAREA"||ee.isContentEditable},re.prototype.handleKey=function(){var Q=this;return Q._handleKey.apply(Q,arguments)},re.addKeycodes=function(Q){for(var ee in Q)Q.hasOwnProperty(ee)&&(P[ee]=Q[ee]);E=null},re.init=function(){var Q=re(m);for(var ee in Q)ee.charAt(0)!=="_"&&(re[ee]=function(H){return function(){return Q[H].apply(Q,arguments)}}(ee))},re.init(),h.Mousetrap=re,a.exports&&(a.exports=re),(d=(function(){return re}).call(l,o,l,a))===void 0||(a.exports=d)}function N(Q,ee,H){Q.addEventListener?Q.addEventListener(ee,H,!1):Q.attachEvent("on"+ee,H)}function I(Q){if(Q.type=="keypress"){var ee=String.fromCharCode(Q.which);return Q.shiftKey||(ee=ee.toLowerCase()),ee}return P[Q.which]?P[Q.which]:j[Q.which]?j[Q.which]:String.fromCharCode(Q.which).toLowerCase()}function W(Q){return Q=="shift"||Q=="ctrl"||Q=="alt"||Q=="meta"}function U(Q,ee,H){return H||(H=function(){if(!E)for(var B in E={},P)B>95&&B<112||P.hasOwnProperty(B)&&(E[P[B]]=B);return E}()[Q]?"keydown":"keypress"),H=="keypress"&&ee.length&&(H="keydown"),H}function ne(Q,ee){var H,B,X,V=[];for(H=function(q){return q==="+"?["+"]:(q=q.replace(/\+{2}/g,"+plus")).split("+")}(Q),X=0;X<H.length;++X)B=H[X],M[B]&&(B=M[B]),ee&&ee!="keypress"&&k[B]&&(B=k[B],V.push("shift")),W(B)&&V.push(B);return{key:B,modifiers:V,action:ee=U(B,V,ee)}}function ue(Q,ee){return Q!==null&&Q!==m&&(Q===ee||ue(Q.parentNode,ee))}function re(Q){var ee=this;if(Q=Q||m,!(ee instanceof re))return new re(Q);ee.target=Q,ee._callbacks={},ee._directMap={};var H,B={},X=!1,V=!1,q=!1;function ce(ge){ge=ge||{};var Pe,Te=!1;for(Pe in B)ge[Pe]?Te=!0:B[Pe]=0;Te||(q=!1)}function we(ge,Pe,Te,We,tt,vt){var Ge,Ke,gt,le,se=[],be=Te.type;if(!ee._callbacks[ge])return[];for(be=="keyup"&&W(ge)&&(Pe=[ge]),Ge=0;Ge<ee._callbacks[ge].length;++Ge)if(Ke=ee._callbacks[ge][Ge],(We||!Ke.seq||B[Ke.seq]==Ke.level)&&be==Ke.action&&(be=="keypress"&&!Te.metaKey&&!Te.ctrlKey||(gt=Pe,le=Ke.modifiers,gt.sort().join(",")===le.sort().join(",")))){var Re=!We&&Ke.combo==tt,Ue=We&&Ke.seq==We&&Ke.level==vt;(Re||Ue)&&ee._callbacks[ge].splice(Ge,1),se.push(Ke)}return se}function ye(ge,Pe,Te,We){ee.stopCallback(Pe,Pe.target||Pe.srcElement,Te,We)||ge(Pe,Te)===!1&&(function(tt){tt.preventDefault?tt.preventDefault():tt.returnValue=!1}(Pe),function(tt){tt.stopPropagation?tt.stopPropagation():tt.cancelBubble=!0}(Pe))}function Ae(ge){typeof ge.which!="number"&&(ge.which=ge.keyCode);var Pe=I(ge);Pe&&(ge.type!="keyup"||X!==Pe?ee.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}(ge),ge):X=!1)}function Fe(ge,Pe,Te,We){function tt(gt){return function(){q=gt,++B[ge],clearTimeout(H),H=setTimeout(ce,1e3)}}function vt(gt){ye(Te,gt,ge),We!=="keyup"&&(X=I(gt)),setTimeout(ce,10)}B[ge]=0;for(var Ge=0;Ge<Pe.length;++Ge){var Ke=Ge+1===Pe.length?vt:tt(We||ne(Pe[Ge+1]).action);je(Pe[Ge],Ke,We,ge,Ge)}}function je(ge,Pe,Te,We,tt){ee._directMap[ge+":"+Te]=Pe;var vt,Ge=(ge=ge.replace(/\s+/g," ")).split(" ");Ge.length>1?Fe(ge,Ge,Pe,Te):(vt=ne(ge,Te),ee._callbacks[vt.key]=ee._callbacks[vt.key]||[],we(vt.key,vt.modifiers,{type:vt.action},We,ge,tt),ee._callbacks[vt.key][We?"unshift":"push"]({callback:Pe,modifiers:vt.modifiers,action:vt.action,seq:We,level:tt,combo:ge}))}ee._handleKey=function(ge,Pe,Te){var We,tt=we(ge,Pe,Te),vt={},Ge=0,Ke=!1;for(We=0;We<tt.length;++We)tt[We].seq&&(Ge=Math.max(Ge,tt[We].level));for(We=0;We<tt.length;++We)if(tt[We].seq){if(tt[We].level!=Ge)continue;Ke=!0,vt[tt[We].seq]=1,ye(tt[We].callback,Te,tt[We].combo,tt[We].seq)}else Ke||ye(tt[We].callback,Te,tt[We].combo);var gt=Te.type=="keypress"&&V;Te.type!=q||W(ge)||gt||ce(vt),V=Ke&&Te.type=="keydown"},ee._bindMultiple=function(ge,Pe,Te){for(var We=0;We<ge.length;++We)je(ge[We],Pe,Te)},N(Q,"keypress",Ae),N(Q,"keydown",Ae),N(Q,"keyup",Ae)}})(typeof window<"u"?window:null,typeof window<"u"?document:null)},function(a,l,o){var d=o(7),h=o(34),m=o(30),g=o(33),E=d.TypeError;a.exports=function(P,j){var k,M;if(j==="string"&&m(k=P.toString)&&!g(M=h(k,P))||m(k=P.valueOf)&&!g(M=h(k,P))||j!=="string"&&m(k=P.toString)&&!g(M=h(k,P)))return M;throw E("Can't convert object to primitive value")}},function(a,l,o){var d=o(7),h=o(30),m=o(92),g=d.WeakMap;a.exports=h(g)&&/native code/.test(m(g))},function(a,l,o){var d=o(36),h=o(38),m=o(32),g=o(41),E=o(75);a.exports=d?Object.defineProperties:function(P,j){m(P);for(var k,M=g(j),R=E(j),N=R.length,I=0;N>I;)h.f(P,k=R[I++],M[k]);return P}},function(a,l,o){var d=o(7);a.exports=d},function(a,l,o){var d=o(7),h=o(96),m=o(99),g=o(33),E=o(28)("species"),P=d.Array;a.exports=function(j){var k;return h(j)&&(k=j.constructor,(m(k)&&(k===P||h(k.prototype))||g(k)&&(k=k[E])===null)&&(k=void 0)),k===void 0?P:k}},function(a,l,o){var d=o(113),h=o(97);a.exports=d?{}.toString:function(){return"[object "+h(this)+"]"}},function(a,l,o){var d=o(142).IteratorPrototype,h=o(60),m=o(67),g=o(76),E=o(78),P=function(){return this};a.exports=function(j,k,M,R){var N=k+" Iterator";return j.prototype=h(d,{next:m(+!R,M)}),g(j,N,!1,!0),E[N]=P,j}},function(a,l,o){var d=o(7),h=o(30),m=d.String,g=d.TypeError;a.exports=function(E){if(typeof E=="object"||h(E))return E;throw g("Can't set "+m(E)+" as a prototype")}},function(a,l,o){var d=o(17),h=o(7),m=o(15),g=o(95),E=o(42),P=o(144),j=o(117),k=o(119),M=o(30),R=o(33),N=o(18),I=o(120),W=o(76),U=o(148);a.exports=function(ne,ue,re){var Q=ne.indexOf("Map")!==-1,ee=ne.indexOf("Weak")!==-1,H=Q?"set":"add",B=h[ne],X=B&&B.prototype,V=B,q={},ce=function(ge){var Pe=m(X[ge]);E(X,ge,ge=="add"?function(Te){return Pe(this,Te===0?0:Te),this}:ge=="delete"?function(Te){return!(ee&&!R(Te))&&Pe(this,Te===0?0:Te)}:ge=="get"?function(Te){return ee&&!R(Te)?void 0:Pe(this,Te===0?0:Te)}:ge=="has"?function(Te){return!(ee&&!R(Te))&&Pe(this,Te===0?0:Te)}:function(Te,We){return Pe(this,Te===0?0:Te,We),this})};if(g(ne,!M(B)||!(ee||X.forEach&&!N(function(){new B().entries().next()}))))V=re.getConstructor(ue,ne,Q,H),P.enable();else if(g(ne,!0)){var we=new V,ye=we[H](ee?{}:-0,1)!=we,Ae=N(function(){we.has(1)}),Fe=I(function(ge){new B(ge)}),je=!ee&&N(function(){for(var ge=new B,Pe=5;Pe--;)ge[H](Pe,Pe);return!ge.has(-0)});Fe||((V=ue(function(ge,Pe){k(ge,X);var Te=U(new B,ge,V);return Pe!=null&&j(Pe,Te[H],{that:Te,AS_ENTRIES:Q}),Te})).prototype=X,X.constructor=V),(Ae||je)&&(ce("delete"),ce("has"),Q&&ce("get")),(je||ye)&&ce(H),ee&&X.clear&&delete X.clear}return q[ne]=V,d({global:!0,forced:V!=B},q),W(V,ne),ee||re.setStrong(V,ne,Q),V}},function(a,l,o){var d=o(18),h=o(33),m=o(51),g=o(184),E=Object.isExtensible,P=d(function(){});a.exports=P||g?function(j){return!!h(j)&&(!g||m(j)!="ArrayBuffer")&&(!E||E(j))}:E},function(a,l,o){var d=o(18);a.exports=d(function(){if(typeof ArrayBuffer=="function"){var h=new ArrayBuffer(8);Object.isExtensible(h)&&Object.defineProperty(h,"a",{value:8})}})},function(a,l,o){var d=o(18);a.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(a,l,o){var d=o(38).f,h=o(60),m=o(149),g=o(63),E=o(119),P=o(117),j=o(116),k=o(150),M=o(36),R=o(144).fastKey,N=o(58),I=N.set,W=N.getterFor;a.exports={getConstructor:function(U,ne,ue,re){var Q=U(function(V,q){E(V,ee),I(V,{type:ne,index:h(null),first:void 0,last:void 0,size:0}),M||(V.size=0),q!=null&&P(q,V[re],{that:V,AS_ENTRIES:ue})}),ee=Q.prototype,H=W(ne),B=function(V,q,ce){var we,ye,Ae=H(V),Fe=X(V,q);return Fe?Fe.value=ce:(Ae.last=Fe={index:ye=R(q,!0),key:q,value:ce,previous:we=Ae.last,next:void 0,removed:!1},Ae.first||(Ae.first=Fe),we&&(we.next=Fe),M?Ae.size++:V.size++,ye!=="F"&&(Ae.index[ye]=Fe)),V},X=function(V,q){var ce,we=H(V),ye=R(q);if(ye!=="F")return we.index[ye];for(ce=we.first;ce;ce=ce.next)if(ce.key==q)return ce};return m(ee,{clear:function(){for(var V=H(this),q=V.index,ce=V.first;ce;)ce.removed=!0,ce.previous&&(ce.previous=ce.previous.next=void 0),delete q[ce.index],ce=ce.next;V.first=V.last=void 0,M?V.size=0:this.size=0},delete:function(V){var q=this,ce=H(q),we=X(q,V);if(we){var ye=we.next,Ae=we.previous;delete ce.index[we.index],we.removed=!0,Ae&&(Ae.next=ye),ye&&(ye.previous=Ae),ce.first==we&&(ce.first=ye),ce.last==we&&(ce.last=Ae),M?ce.size--:q.size--}return!!we},forEach:function(V){for(var q,ce=H(this),we=g(V,arguments.length>1?arguments[1]:void 0);q=q?q.next:ce.first;)for(we(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(V){return!!X(this,V)}}),m(ee,ue?{get:function(V){var q=X(this,V);return q&&q.value},set:function(V,q){return B(this,V===0?0:V,q)}}:{add:function(V){return B(this,V=V===0?0:V,V)}}),M&&d(ee,"size",{get:function(){return H(this).size}}),Q},setStrong:function(U,ne,ue){var re=ne+" Iterator",Q=W(ne),ee=W(re);j(U,ne,function(H,B){I(this,{type:re,target:H,state:Q(H),kind:B,last:void 0})},function(){for(var H=ee(this),B=H.kind,X=H.last;X&&X.removed;)X=X.previous;return H.target&&(H.last=X=X?X.next:H.state.first)?B=="keys"?{value:X.key,done:!1}:B=="values"?{value:X.value,done:!1}:{value:[X.key,X.value],done:!1}:(H.target=void 0,{value:void 0,done:!0})},ue?"entries":"values",!ue,!0),k(ne)}}},function(a,l,o){var d=o(77).forEach,h=o(121)("forEach");a.exports=h?[].forEach:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}},function(a,l,o){var d=o(7),h=o(63),m=o(34),g=o(40),E=o(189),P=o(145),j=o(99),k=o(45),M=o(62),R=o(146),N=o(118),I=d.Array;a.exports=function(W){var U=g(W),ne=j(this),ue=arguments.length,re=ue>1?arguments[1]:void 0,Q=re!==void 0;Q&&(re=h(re,ue>2?arguments[2]:void 0));var ee,H,B,X,V,q,ce=N(U),we=0;if(!ce||this==I&&P(ce))for(ee=k(U),H=ne?new this(ee):I(ee);ee>we;we++)q=Q?re(U[we],we):U[we],M(H,we,q);else for(V=(X=R(U,ce)).next,H=ne?new this:[];!(B=m(V,X)).done;we++)q=Q?E(X,re,[B.value,we],!0):B.value,M(H,we,q);return H.length=we,H}},function(a,l,o){var d=o(32),h=o(147);a.exports=function(m,g,E,P){try{return P?g(d(E)[0],E[1]):g(E)}catch(j){h(m,"throw",j)}}},function(a,l,o){var d=o(18),h=o(7).RegExp;a.exports=d(function(){var m=h(".","s");return!(m.dotAll&&m.exec(`
`)&&m.flags==="s")})},function(a,l,o){var d=o(18),h=o(7).RegExp;a.exports=d(function(){var m=h("(?<a>b)","g");return m.exec("b").groups.a!=="b"||"b".replace(m,"$<a>c")!=="bc"})},function(a,l,o){var d=o(17),h=o(15),m=o(56),g=o(40),E=o(45),P=o(39),j=o(18),k=o(193),M=o(121),R=o(194),N=o(195),I=o(68),W=o(196),U=[],ne=h(U.sort),ue=h(U.push),re=j(function(){U.sort(void 0)}),Q=j(function(){U.sort(null)}),ee=M("sort"),H=!j(function(){if(I)return I<70;if(!(R&&R>3)){if(N)return!0;if(W)return W<603;var B,X,V,q,ce="";for(B=65;B<76;B++){switch(X=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:V=3;break;case 68:case 71:V=4;break;default:V=2}for(q=0;q<47;q++)U.push({k:X+q,v:V})}for(U.sort(function(we,ye){return ye.v-we.v}),q=0;q<U.length;q++)X=U[q].k.charAt(0),ce.charAt(ce.length-1)!==X&&(ce+=X);return ce!=="DGBEFHACIJK"}});d({target:"Array",proto:!0,forced:re||!Q||!ee||!H},{sort:function(B){B!==void 0&&m(B);var X=g(this);if(H)return B===void 0?ne(X):ne(X,B);var V,q,ce=[],we=E(X);for(q=0;q<we;q++)q in X&&ue(ce,X[q]);for(k(ce,function(ye){return function(Ae,Fe){return Fe===void 0?-1:Ae===void 0?1:ye!==void 0?+ye(Ae,Fe)||0:P(Ae)>P(Fe)?1:-1}}(B)),V=ce.length,q=0;q<V;)X[q]=ce[q++];for(;q<we;)delete X[q++];return X}})},function(a,l,o){var d=o(114),h=Math.floor,m=function(P,j){var k=P.length,M=h(k/2);return k<8?g(P,j):E(P,m(d(P,0,M),j),m(d(P,M),j),j)},g=function(P,j){for(var k,M,R=P.length,N=1;N<R;){for(M=N,k=P[N];M&&j(P[M-1],k)>0;)P[M]=P[--M];M!==N++&&(P[M]=k)}return P},E=function(P,j,k,M){for(var R=j.length,N=k.length,I=0,W=0;I<R||W<N;)P[I+W]=I<R&&W<N?M(j[I],k[W])<=0?j[I++]:k[W++]:I<R?j[I++]:k[W++];return P};a.exports=m},function(a,l,o){var d=o(55).match(/firefox\/(\d+)/i);a.exports=!!d&&+d[1]},function(a,l,o){var d=o(55);a.exports=/MSIE|Trident/.test(d)},function(a,l,o){var d=o(55).match(/AppleWebKit\/(\d+)\./);a.exports=!!d&&+d[1]},function(a,l,o){var d=o(7),h=o(159),m=d.TypeError;a.exports=function(g){if(h(g))throw m("The method doesn't accept regular expressions");return g}},function(a,l,o){var d=o(28)("match");a.exports=function(h){var m=/./;try{"/./"[h](m)}catch{try{return m[d]=!1,"/./"[h](m)}catch{}}return!1}},function(a,l,o){var d=o(71).PROPER,h=o(18),m=o(165);a.exports=function(g){return h(function(){return!!m[g]()||"…"[g]()!=="…"||d&&m[g].name!==g})}},function(a,l,o){var d=o(15),h=o(40),m=Math.floor,g=d("".charAt),E=d("".replace),P=d("".slice),j=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,k=/\$([$&'`]|\d{1,2})/g;a.exports=function(M,R,N,I,W,U){var ne=N+M.length,ue=I.length,re=k;return W!==void 0&&(W=h(W),re=j),E(U,re,function(Q,ee){var H;switch(g(ee,0)){case"$":return"$";case"&":return M;case"`":return P(R,0,N);case"'":return P(R,ne);case"<":H=W[P(ee,1,-1)];break;default:var B=+ee;if(B===0)return Q;if(B>ue){var X=m(B/10);return X===0?Q:X<=ue?I[X-1]===void 0?g(ee,1):I[X-1]+g(ee,1):Q}H=I[B-1]}return H===void 0?"":H})}},function(a,l,o){var d=o(36),h=o(15),m=o(34),g=o(18),E=o(75),P=o(112),j=o(84),k=o(40),M=o(85),R=Object.assign,N=Object.defineProperty,I=h([].concat);a.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 W={},U={},ne=Symbol(),ue="abcdefghijklmnopqrst";return W[ne]=7,ue.split("").forEach(function(re){U[re]=re}),R({},W)[ne]!=7||E(R({},U)).join("")!=ue})?function(W,U){for(var ne=k(W),ue=arguments.length,re=1,Q=P.f,ee=j.f;ue>re;)for(var H,B=M(arguments[re++]),X=Q?I(E(B),Q(B)):E(B),V=X.length,q=0;V>q;)H=X[q++],d&&!m(ee,B,H)||(ne[H]=B[H]);return ne}:R},function(a,l,o){var d=o(7),h=o(15),m=o(56),g=o(33),E=o(35),P=o(98),j=d.Function,k=h([].concat),M=h([].join),R={},N=function(I,W,U){if(!E(R,W)){for(var ne=[],ue=0;ue<W;ue++)ne[ue]="a["+ue+"]";R[W]=j("C,a","return new C("+M(ne,",")+")")}return R[W](I,U)};a.exports=j.bind||function(I){var W=m(this),U=W.prototype,ne=P(arguments,1),ue=function(){var re=k(ne,P(arguments));return this instanceof ue?N(W,re.length,re):W.apply(I,re)};return g(U)&&(ue.prototype=U),ue}},function(a,l,o){var d=o(35);a.exports=function(h){return h!==void 0&&(d(h,"value")||d(h,"writable"))}},function(a,l,o){var d=o(15),h=o(44),m=o(39),g=/"/g,E=d("".replace);a.exports=function(P,j,k,M){var R=m(h(P)),N="<"+j;return k!==""&&(N+=" "+k+'="'+E(m(M),g,"&quot;")+'"'),N+">"+R+"</"+j+">"}},function(a,l,o){var d=o(18);a.exports=function(h){return d(function(){var m=""[h]('"');return m!==m.toLowerCase()||m.split('"').length>3})}},function(a,l,o){var d,h,m,g,E=o(17),P=o(69),j=o(7),k=o(46),M=o(34),R=o(207),N=o(42),I=o(149),W=o(102),U=o(76),ne=o(150),ue=o(56),re=o(30),Q=o(33),ee=o(119),H=o(92),B=o(117),X=o(120),V=o(161),q=o(168).set,ce=o(208),we=o(211),ye=o(212),Ae=o(170),Fe=o(213),je=o(58),ge=o(95),Pe=o(28),Te=o(214),We=o(128),tt=o(68),vt=Pe("species"),Ge="Promise",Ke=je.getterFor(Ge),gt=je.set,le=je.getterFor(Ge),se=R&&R.prototype,be=R,Re=se,Ue=j.TypeError,Be=j.document,xt=j.process,kt=Ae.f,jt=kt,yt=!!(Be&&Be.createEvent&&j.dispatchEvent),ke=re(j.PromiseRejectionEvent),ct="unhandledrejection",pe=!1,ot=ge(Ge,function(){var ae=H(be),_e=ae!==String(be);if(!_e&&tt===66||P&&!Re.finally)return!0;if(tt>=51&&/native code/.test(ae))return!1;var Ye=new be(function(ft){ft(1)}),Ve=function(ft){ft(function(){},function(){})};return(Ye.constructor={})[vt]=Ve,!(pe=Ye.then(function(){})instanceof Ve)||!_e&&Te&&!ke}),Lt=ot||!X(function(ae){be.all(ae).catch(function(){})}),fn=function(ae){var _e;return!(!Q(ae)||!re(_e=ae.then))&&_e},Bt=function(ae,_e){if(!ae.notified){ae.notified=!0;var Ye=ae.reactions;ce(function(){for(var Ve=ae.value,ft=ae.state==1,Ht=0;Ye.length>Ht;){var or,vr,Yn,Qn=Ye[Ht++],it=ft?Qn.ok:Qn.fail,mt=Qn.resolve,St=Qn.reject,Ct=Qn.domain;try{it?(ft||(ae.rejection===2&&Rt(ae),ae.rejection=1),it===!0?or=Ve:(Ct&&Ct.enter(),or=it(Ve),Ct&&(Ct.exit(),Yn=!0)),or===Qn.promise?St(Ue("Promise-chain cycle")):(vr=fn(or))?M(vr,or,mt,St):mt(or)):St(Ve)}catch(gn){Ct&&!Yn&&Ct.exit(),St(gn)}}ae.reactions=[],ae.notified=!1,_e&&!ae.rejection&&mn(ae)})}},tn=function(ae,_e,Ye){var Ve,ft;yt?((Ve=Be.createEvent("Event")).promise=_e,Ve.reason=Ye,Ve.initEvent(ae,!1,!0),j.dispatchEvent(Ve)):Ve={promise:_e,reason:Ye},!ke&&(ft=j["on"+ae])?ft(Ve):ae===ct&&ye("Unhandled promise rejection",Ye)},mn=function(ae){M(q,j,function(){var _e,Ye=ae.facade,Ve=ae.value;if(Dn(ae)&&(_e=Fe(function(){We?xt.emit("unhandledRejection",Ve,Ye):tn(ct,Ye,Ve)}),ae.rejection=We||Dn(ae)?2:1,_e.error))throw _e.value})},Dn=function(ae){return ae.rejection!==1&&!ae.parent},Rt=function(ae){M(q,j,function(){var _e=ae.facade;We?xt.emit("rejectionHandled",_e):tn("rejectionhandled",_e,ae.value)})},Xn=function(ae,_e,Ye){return function(Ve){ae(_e,Ve,Ye)}},J=function(ae,_e,Ye){ae.done||(ae.done=!0,Ye&&(ae=Ye),ae.value=_e,ae.state=2,Bt(ae,!0))},he=function(ae,_e,Ye){if(!ae.done){ae.done=!0,Ye&&(ae=Ye);try{if(ae.facade===_e)throw Ue("Promise can't be resolved itself");var Ve=fn(_e);Ve?ce(function(){var ft={done:!1};try{M(Ve,_e,Xn(he,ft,ae),Xn(J,ft,ae))}catch(Ht){J(ft,Ht,ae)}}):(ae.value=_e,ae.state=1,Bt(ae,!1))}catch(ft){J({done:!1},ft,ae)}}};if(ot&&(Re=(be=function(ae){ee(this,Re),ue(ae),M(d,this);var _e=Ke(this);try{ae(Xn(he,_e),Xn(J,_e))}catch(Ye){J(_e,Ye)}}).prototype,(d=function(ae){gt(this,{type:Ge,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=I(Re,{then:function(ae,_e){var Ye=le(this),Ve=Ye.reactions,ft=kt(V(this,be));return ft.ok=!re(ae)||ae,ft.fail=re(_e)&&_e,ft.domain=We?xt.domain:void 0,Ye.parent=!0,Ve[Ve.length]=ft,Ye.state!=0&&Bt(Ye,!1),ft.promise},catch:function(ae){return this.then(void 0,ae)}}),h=function(){var ae=new d,_e=Ke(ae);this.promise=ae,this.resolve=Xn(he,_e),this.reject=Xn(J,_e)},Ae.f=kt=function(ae){return ae===be||ae===m?new h(ae):jt(ae)},!P&&re(R)&&se!==Object.prototype)){g=se.then,pe||(N(se,"then",function(ae,_e){var Ye=this;return new be(function(Ve,ft){M(g,Ye,Ve,ft)}).then(ae,_e)},{unsafe:!0}),N(se,"catch",Re.catch,{unsafe:!0}));try{delete se.constructor}catch{}W&&W(se,Re)}E({global:!0,wrap:!0,forced:ot},{Promise:be}),U(be,Ge,!1,!0),ne(Ge),m=k(Ge),E({target:Ge,stat:!0,forced:ot},{reject:function(ae){var _e=kt(this);return M(_e.reject,void 0,ae),_e.promise}}),E({target:Ge,stat:!0,forced:P||ot},{resolve:function(ae){return we(P&&this===m?be:this,ae)}}),E({target:Ge,stat:!0,forced:Lt},{all:function(ae){var _e=this,Ye=kt(_e),Ve=Ye.resolve,ft=Ye.reject,Ht=Fe(function(){var or=ue(_e.resolve),vr=[],Yn=0,Qn=1;B(ae,function(it){var mt=Yn++,St=!1;Qn++,M(or,_e,it).then(function(Ct){St||(St=!0,vr[mt]=Ct,--Qn||Ve(vr))},ft)}),--Qn||Ve(vr)});return Ht.error&&ft(Ht.value),Ye.promise},race:function(ae){var _e=this,Ye=kt(_e),Ve=Ye.reject,ft=Fe(function(){var Ht=ue(_e.resolve);B(ae,function(or){M(Ht,_e,or).then(Ye.resolve,Ve)})});return ft.error&&Ve(ft.value),Ye.promise}})},function(a,l,o){var d=o(7);a.exports=d.Promise},function(a,l,o){var d,h,m,g,E,P,j,k,M=o(7),R=o(63),N=o(50).f,I=o(168).set,W=o(169),U=o(209),ne=o(210),ue=o(128),re=M.MutationObserver||M.WebKitMutationObserver,Q=M.document,ee=M.process,H=M.Promise,B=N(M,"queueMicrotask"),X=B&&B.value;X||(d=function(){var V,q;for(ue&&(V=ee.domain)&&V.exit();h;){q=h.fn,h=h.next;try{q()}catch(ce){throw h?g():m=void 0,ce}}m=void 0,V&&V.enter()},W||ue||ne||!re||!Q?!U&&H&&H.resolve?((j=H.resolve(void 0)).constructor=H,k=R(j.then,j),g=function(){k(d)}):ue?g=function(){ee.nextTick(d)}:(I=R(I,M),g=function(){I(d)}):(E=!0,P=Q.createTextNode(""),new re(d).observe(P,{characterData:!0}),g=function(){P.data=E=!E})),a.exports=X||function(V){var q={fn:V,next:void 0};m&&(m.next=q),h||(h=q,g()),m=q}},function(a,l,o){var d=o(55),h=o(7);a.exports=/ipad|iphone|ipod/i.test(d)&&h.Pebble!==void 0},function(a,l,o){var d=o(55);a.exports=/web0s(?!.*chrome)/i.test(d)},function(a,l,o){var d=o(32),h=o(33),m=o(170);a.exports=function(g,E){if(d(g),h(E)&&E.constructor===g)return E;var P=m.f(g);return(0,P.resolve)(E),P.promise}},function(a,l,o){var d=o(7);a.exports=function(h,m){var g=d.console;g&&g.error&&(arguments.length==1?g.error(h):g.error(h,m))}},function(a,l){a.exports=function(o){try{return{error:!1,value:o()}}catch(d){return{error:!0,value:d}}}},function(a,l){a.exports=typeof window=="object"},function(a,l,o){var d=o(40),h=o(73),m=o(45);a.exports=function(g){for(var E=d(this),P=m(E),j=arguments.length,k=h(j>1?arguments[1]:void 0,P),M=j>2?arguments[2]:void 0,R=M===void 0?P:h(M,P);R>k;)E[k++]=g;return E}},function(a,l,o){var d=o(17),h=o(7),m=o(15),g=o(59),E=o(166),P=o(217),j=o(18),k=h.RangeError,M=h.String,R=Math.floor,N=m(P),I=m("".slice),W=m(1 .toFixed),U=function(Q,ee,H){return ee===0?H:ee%2==1?U(Q,ee-1,H*Q):U(Q*Q,ee/2,H)},ne=function(Q,ee,H){for(var B=-1,X=H;++B<6;)X+=ee*Q[B],Q[B]=X%1e7,X=R(X/1e7)},ue=function(Q,ee){for(var H=6,B=0;--H>=0;)B+=Q[H],Q[H]=R(B/ee),B=B%ee*1e7},re=function(Q){for(var ee=6,H="";--ee>=0;)if(H!==""||ee===0||Q[ee]!==0){var B=M(Q[ee]);H=H===""?B:H+N("0",7-B.length)+B}return H};d({target:"Number",proto:!0,forced:j(function(){return W(8e-5,3)!=="0.000"||W(.9,0)!=="1"||W(1.255,2)!=="1.25"||W(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!j(function(){W({})})},{toFixed:function(Q){var ee,H,B,X,V=E(this),q=g(Q),ce=[0,0,0,0,0,0],we="",ye="0";if(q<0||q>20)throw k("Incorrect fraction digits");if(V!=V)return"NaN";if(V<=-1e21||V>=1e21)return M(V);if(V<0&&(we="-",V=-V),V>1e-21)if(H=(ee=function(Ae){for(var Fe=0,je=Ae;je>=4096;)Fe+=12,je/=4096;for(;je>=2;)Fe+=1,je/=2;return Fe}(V*U(2,69,1))-69)<0?V*U(2,-ee,1):V/U(2,ee,1),H*=4503599627370496,(ee=52-ee)>0){for(ne(ce,0,H),B=q;B>=7;)ne(ce,1e7,0),B-=7;for(ne(ce,U(10,B,1),0),B=ee-1;B>=23;)ue(ce,1<<23),B-=23;ue(ce,1<<B),ne(ce,1,1),ue(ce,2),ye=re(ce)}else ne(ce,0,H),ne(ce,1<<-ee,0),ye=re(ce)+N("0",q);return ye=q>0?we+((X=ye.length)<=q?"0."+N("0",q-X)+ye:I(ye,0,X-q)+"."+I(ye,X-q)):we+ye}})},function(a,l,o){var d=o(7),h=o(59),m=o(39),g=o(44),E=d.RangeError;a.exports=function(P){var j=m(g(this)),k="",M=h(P);if(M<0||M==1/0)throw E("Wrong number of repetitions");for(;M>0;(M>>>=1)&&(j+=j))1&M&&(k+=j);return k}},function(a,l,o){var d=o(36),h=o(15),m=o(75),g=o(41),E=h(o(84).f),P=h([].push),j=function(k){return function(M){for(var R,N=g(M),I=m(N),W=I.length,U=0,ne=[];W>U;)R=I[U++],d&&!E(N,R)||P(ne,k?[R,N[R]]:N[R]);return ne}};a.exports={entries:j(!0),values:j(!1)}},function(a,l){a.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(a,l,o){o.r(l),o.d(l,"observer",function(){return Di}),o.d(l,"LogicFlow",function(){return Pb}),o.d(l,"h",function(){return pe.g}),o.d(l,"LogicFlowUtil",function(){return d}),o.d(l,"BaseNode",function(){return Da}),o.d(l,"RectNode",function(){return mg}),o.d(l,"CircleNode",function(){return xg}),o.d(l,"PolygonNode",function(){return Ag}),o.d(l,"DiamondNode",function(){return Dg}),o.d(l,"EllipseNode",function(){return Lg}),o.d(l,"TextNode",function(){return Fg}),o.d(l,"HtmlNode",function(){return Ug}),o.d(l,"BaseEdge",function(){return ap}),o.d(l,"LineEdge",function(){return ob}),o.d(l,"PolylineEdge",function(){return sb}),o.d(l,"BezierEdge",function(){return db}),o.d(l,"Arrow",function(){return KP}),o.d(l,"BaseEdgeModel",function(){return mf}),o.d(l,"BezierEdgeModel",function(){return Sv}),o.d(l,"LineEdgeModel",function(){return wa}),o.d(l,"PolylineEdgeModel",function(){return Rs}),o.d(l,"BaseNodeModel",function(){return ka}),o.d(l,"CircleNodeModel",function(){return kv}),o.d(l,"DiamondNodeModel",function(){return Iv}),o.d(l,"EllipseNodeModel",function(){return Fv}),o.d(l,"PolygonNodeModel",function(){return Xv}),o.d(l,"RectNodeModel",function(){return qv}),o.d(l,"TextNodeModel",function(){return eg}),o.d(l,"HtmlNodeModel",function(){return rg}),o.d(l,"EditConfigModel",function(){return Fl}),o.d(l,"GraphModel",function(){return Wm}),o.d(l,"SnaplineModel",function(){return j_}),o.d(l,"Keyboard",function(){return d1}),o.d(l,"get",function(){return p0}),o.d(l,"defaults",function(){return h0}),o.d(l,"ElementState",function(){return yn}),o.d(l,"ModelType",function(){return qt}),o.d(l,"ElementType",function(){return tr}),o.d(l,"EventType",function(){return pt}),o.d(l,"formateAnchorConnectValidateData",function(){return bc});var d={};o.r(d),o.d(d,"createUuid",function(){return Do}),o.d(d,"refreshGraphId",function(){return hu}),o.d(d,"createDrag",function(){return zd}),o.d(d,"StepDrag",function(){return ti}),o.d(d,"setupEdgeModel",function(){return Md}),o.d(d,"isBboxOverLapping",function(){return Mf}),o.d(d,"filterRepeatPoints",function(){return ji}),o.d(d,"getSimplePolyline",function(){return kf}),o.d(d,"getExpandedBBox",function(){return _u}),o.d(d,"pointDirection",function(){return wc}),o.d(d,"getExpandedBBoxPoint",function(){return wr}),o.d(d,"mergeBBox",function(){return Ki}),o.d(d,"getBBoxOfPoints",function(){return Ou}),o.d(d,"getPointsFromBBox",function(){return xc}),o.d(d,"isPointOutsideBBox",function(){return wu}),o.d(d,"getBBoxXCrossPoints",function(){return ei}),o.d(d,"getBBoxYCrossPoints",function(){return Xt}),o.d(d,"getBBoxCrossPointsByPoint",function(){return Df}),o.d(d,"estimateDistance",function(){return Br}),o.d(d,"costByPoints",function(){return Nf}),o.d(d,"heuristicCostEstimate",function(){return vn}),o.d(d,"rebuildPath",function(){return kd}),o.d(d,"removeClosePointFromOpenList",function(){return Rf}),o.d(d,"isSegmentsIntersected",function(){return Pi}),o.d(d,"isSegmentCrossingBBox",function(){return Cf}),o.d(d,"getNextNeighborPoints",function(){return Dd}),o.d(d,"pathFinder",function(){return Nd}),o.d(d,"getBoxByOriginNode",function(){return If}),o.d(d,"pointFilter",function(){return Ec}),o.d(d,"getPolylinePoints",function(){return Sc}),o.d(d,"getLongestEdge",function(){return Rd}),o.d(d,"isSegmentsInNode",function(){return Lf}),o.d(d,"isSegmentsCrossNode",function(){return Bf}),o.d(d,"getCrossPointInRect",function(){return cr}),o.d(d,"segmentDirection",function(){return mr}),o.d(d,"points2PointsList",function(){return qi}),o.d(d,"getSimplePoints",function(){return zf}),o.d(d,"getBytesLength",function(){return Ff}),o.d(d,"getTextWidth",function(){return Id}),o.d(d,"getAppendAttributes",function(){return $f}),o.d(d,"getBezierControlPoints",function(){return Zi}),o.d(d,"getBezierPoints",function(){return Bs}),o.d(d,"getEndTangent",function(){return zs}),o.d(d,"getClosestPointOfPolyline",function(){return Wf}),o.d(d,"pickEdgeConfig",function(){return Ld}),o.d(d,"twoPointDistance",function(){return Gf}),o.d(d,"createEdgeGenerator",function(){return Bd}),o.d(d,"snapToGrid",function(){return Zo}),o.d(d,"getGridOffset",function(){return du}),o.d(d,"sampleCubic",function(){return Wt}),o.d(d,"getThetaOfVector",function(){return Lr}),o.d(d,"degrees",function(){return Kn}),o.d(d,"Vector",function(){return sr}),o.d(d,"Point",function(){return $s}),o.d(d,"Matrix",function(){return Hn}),o.d(d,"RotateMatrix",function(){return Yr}),o.d(d,"ScaleMatrix",function(){return Ro}),o.d(d,"TranslateMatrix",function(){return Zn});var h=o(1),m=o(10);if(!m.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 P(t){t()}var j=!1;function k(){return j}function M(t){return Object(h.t)(t)}var R,N=1e4,I=new Set;function W(){R===void 0&&(R=setTimeout(U,1e4))}function U(){R=void 0;var t=Date.now();I.forEach(function(e){var n=e.current;n&&t>=n.cleanAt&&(n.reaction.dispose(),e.current=null,I.delete(e))}),I.size>0&&W()}var ne=!1,ue=[],re={};function Q(t){return"observer"+t}function ee(t,e,n){e===void 0&&(e="observed"),n===void 0&&(n=re),k();var r,s=function(x){return function(){ne?ue.push(x):x()}}((n.useForceUpdate||g.d)()),c=m.d.useRef(null);if(!c.current){var p=new h.c(Q(e),function(){v.mounted?s():(p.dispose(),c.current=null)}),v=function(x){return{cleanAt:Date.now()+N,reaction:x}}(p);c.current=v,r=c,I.add(r),W()}var b=c.current.reaction;return m.d.useDebugValue(b,M),m.d.useEffect(function(){var x;return x=c,I.delete(x),c.current?c.current.mounted=!0:(c.current={reaction:new h.c(Q(e),function(){s()}),cleanAt:1/0},s()),function(){c.current.reaction.dispose(),c.current=null}},[]),function(x){ne=!0,ue=[];try{var S=x();ne=!1;var D=ue.length>0?ue:void 0;return m.d.useLayoutEffect(function(){D&&D.forEach(function(L){return L()})},[D]),S}finally{ne=!1}}(function(){var x,S;if(b.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,r=arguments.length;n<r;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,r,s,c=H({forwardRef:!1},e),p=t.displayName||t.name,v=function(b,x){return ee(function(){return t(b,x)},p)};return v.displayName=p,n=c.forwardRef?Object(m.f)(Object(m.e)(v)):Object(m.f)(v),r=t,s=n,Object.keys(r).forEach(function(b){X[b]||Object.defineProperty(s,b,Object.getOwnPropertyDescriptor(r,b))}),n.displayName=p,n}var X={$$typeof:!0,render:!0,compare:!0,type:!0};function V(t){var e=t.children,n=t.render,r=e||n;return typeof r!="function"?null:ee(r)}function q(t,e,n,r,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`.")}V.propTypes={children:q,render:q},V.displayName="Observer";var ce;(ce=m.g)||(ce=P),Object(h.n)({reactionScheduler:ce}),Object(g.a)()[E]=!0;var we=0,ye={};function Ae(t){return ye[t]||(ye[t]=function(e){if(typeof Symbol=="function")return Symbol(e);var n="__$mobx-react "+e+" ("+we+")";return we++,n}(t)),ye[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),r=Object.keys(e);if(n.length!==r.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 ge(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,r=arguments.length,s=new Array(r>2?r-2:0),c=2;c<r;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 tt(t,e){return function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];We.call.apply(We,[this,t,e].concat(r))}}function vt(t,e,n){var r=function(v,b){var x=v[Pe]=v[Pe]||{},S=x[b]=x[b]||{};return S.locks=S.locks||0,S.methods=S.methods||[],S}(t,e);r.methods.indexOf(n)<0&&r.methods.push(n);var s=Object.getOwnPropertyDescriptor(t,e);if(!s||!s[Te]){var c=t[e],p=Ge(t,e,s?s.enumerable:void 0,r,c);Object.defineProperty(t,e,p)}}function Ge(t,e,n,r,s){var c,p=tt(s,r);return(c={})[Te]=!0,c.get=function(){return p},c.set=function(v){if(this===t)p=tt(v,r);else{var b=Ge(this,e,n,r,v);Object.defineProperty(this,e,b)}},c.configurable=!0,c.enumerable=n,c}var Ke=h.a||"$mobx",gt=Ae("isMobXReactObserver"),le=Ae("isUnmounted"),se=Ae("skipRender"),be=Ae("isForcingUpdate");function Re(t){var e=t.prototype;if(t[gt]?Ue(e):t[gt]=!0,e.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(t.__proto__!==m.b)if(e.shouldComponentUpdate){if(e.shouldComponentUpdate!==xt)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else e.shouldComponentUpdate=xt;kt(e,"props"),kt(e,"state");var n=e.render;return e.render=function(){return Be.call(this,n)},vt(e,"componentWillUnmount",function(){var r;(r=this.render[Ke])===null||r===void 0||r.dispose(),this[le]=!0,!this.render[Ke]&&Ue(this)}),t}function Ue(t){return t.displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>"}function Be(t){var e=this;ge(this,se,!1),ge(this,be,!1);var n=Ue(this),r=t.bind(this),s=!1,c=new h.c(n+".render()",function(){if(!s&&(s=!0,e[le]!==!0)){var v=!0;try{ge(e,be,!0),e[se]||m.a.prototype.forceUpdate.call(e),v=!1}finally{ge(e,be,!1),v&&c.dispose()}}});function p(){s=!1;var v=void 0,b=void 0;if(c.track(function(){try{b=Object(h.d)(!1,r)}catch(x){v=x}}),v)throw v;return b}return c.reactComponent=this,p[Ke]=c,this.render=p,p.call(this)}function xt(t,e){return this.state!==e||!Fe(this.props,t)}function kt(t,e){var n=Ae("reactProp_"+e+"_valueHolder"),r=Ae("reactProp_"+e+"_atomHolder");function s(){return this[r]||ge(this,r,Object(h.o)("reactive "+e)),this[r]}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[be]||Fe(this[n],c)?ge(this,n,c):(ge(this,n,c),ge(this,se,!0),s.call(this).reportChanged(),ge(this,se,!1))}})}var jt=typeof Symbol=="function"&&Symbol.for,yt=jt?Symbol.for("react.forward_ref"):typeof m.e=="function"&&Object(m.e)(function(t){return null}).$$typeof,ke=jt?Symbol.for("react.memo"):typeof m.f=="function"&&Object(m.f)(function(t){return null}).$$typeof;function ct(t){if(t.isMobxInjector,ke&&t.$$typeof===ke)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(yt&&t.$$typeof===yt){var e=t.render;if(typeof e!="function")throw new Error("render property of ForwardRef was not a function");return Object(m.e)(function(){var n=arguments;return Object(m.c)(V,null,function(){return e.apply(void 0,n)})})}return typeof t!="function"||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(m.a,t)?Re(t):B(t)}if(!m.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 pe=o(0);o(4),o(8),o(2),o(3),o(52),o(6),o(5),o(11),o(37),o(26),o(21),o(20),o(24),o(22),o(25),o(9),o(16),o(23),o(19),o(192),o(156),o(104),o(157),o(158);var ot=function(t,e){for(var n=-1,r=t==null?0:t.length,s=Array(r);++n<r;)s[n]=e(t[n],n,t);return s},Lt=function(){this.__data__=[],this.size=0},fn=function(t,e){return t===e||t!=t&&e!=e},Bt=function(t,e){for(var n=t.length;n--;)if(fn(t[n][0],e))return n;return-1},tn=Array.prototype.splice,mn=function(t){var e=this.__data__,n=Bt(e,t);return!(n<0)&&(n==e.length-1?e.pop():tn.call(e,n,1),--this.size,!0)},Dn=function(t){var e=this.__data__,n=Bt(e,t);return n<0?void 0:e[n][1]},Rt=function(t){return Bt(this.__data__,t)>-1},Xn=function(t,e){var n=this.__data__,r=Bt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function J(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}J.prototype.clear=Lt,J.prototype.delete=mn,J.prototype.get=Dn,J.prototype.has=Rt,J.prototype.set=Xn;var he=J,ae=function(){this.__data__=new he,this.size=0},_e=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ye=function(t){return this.__data__.get(t)},Ve=function(t){return this.__data__.has(t)},ft=o(31),Ht=ft.a.Symbol,or=Object.prototype,vr=or.hasOwnProperty,Yn=or.toString,Qn=Ht?Ht.toStringTag:void 0,it=function(t){var e=vr.call(t,Qn),n=t[Qn];try{t[Qn]=void 0;var r=!0}catch{}var s=Yn.call(t);return r&&(e?t[Qn]=n:delete t[Qn]),s},mt=Object.prototype.toString,St=function(t){return mt.call(t)},Ct=Ht?Ht.toStringTag:void 0,gn=function(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Ct&&Ct in Object(t)?it(t):St(t)},zn=function(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")},Bo,So=function(t){if(!zn(t))return!1;var e=gn(t);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"},zo=ft.a["__core-js_shared__"],Ii=(Bo=/[^.]+$/.exec(zo&&zo.keys&&zo.keys.IE_PROTO||""))?"Symbol(src)_1."+Bo:"",Al=function(t){return!!Ii&&Ii in t},$u=Function.prototype.toString,Zr=function(t){if(t!=null){try{return $u.call(t)}catch{}try{return t+""}catch{}}return""},fa=/^\[object .+?Constructor\]$/,st=Function.prototype,Tl=Object.prototype,Wu=st.toString,Gu=Tl.hasOwnProperty,Mr=RegExp("^"+Wu.call(Gu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zr=function(t){return!(!zn(t)||Al(t))&&(So(t)?Mr:fa).test(Zr(t))},Xa=function(t,e){return t==null?void 0:t[e]},ho=function(t,e){var n=Xa(t,e);return zr(n)?n:void 0},Jr=ho(ft.a,"Map"),yo=ho(Object,"create"),Uu=function(){this.__data__=yo?yo(null):{},this.size=0},Hu=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Xc=Object.prototype.hasOwnProperty,pa=function(t){var e=this.__data__;if(yo){var n=e[t];return n==="__lodash_hash_undefined__"?void 0:n}return Xc.call(e,t)?e[t]:void 0},Yc=Object.prototype.hasOwnProperty,Xu=function(t){var e=this.__data__;return yo?e[t]!==void 0:Yc.call(e,t)},Ml=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yo&&e===void 0?"__lodash_hash_undefined__":e,this};function hi(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}hi.prototype.clear=Uu,hi.prototype.delete=Hu,hi.prototype.get=pa,hi.prototype.has=Xu,hi.prototype.set=Ml;var Vc=hi,Fo=function(){this.size=0,this.__data__={hash:new Vc,map:new(Jr||he),string:new Vc}},Yu=function(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null},Ya=function(t,e){var n=t.__data__;return Yu(e)?n[typeof e=="string"?"string":"hash"]:n.map},Vu=function(t){var e=Ya(this,t).delete(t);return this.size-=e?1:0,e},Ku=function(t){return Ya(this,t).get(t)},kl=function(t){return Ya(this,t).has(t)},Kc=function(t,e){var n=Ya(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function hn(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}hn.prototype.clear=Fo,hn.prototype.delete=Vu,hn.prototype.get=Ku,hn.prototype.has=kl,hn.prototype.set=Kc;var pn=hn,qc=function(t,e){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!Jr||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new pn(r)}return n.set(t,e),this.size=n.size,this};function Li(t){var e=this.__data__=new he(t);this.size=e.size}Li.prototype.clear=ae,Li.prototype.delete=_e,Li.prototype.get=Ye,Li.prototype.has=Ve,Li.prototype.set=qc;var $o=Li,qu=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Zc=function(t){return this.__data__.has(t)};function Gn(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new pn;++e<n;)this.add(t[e])}Gn.prototype.add=Gn.prototype.push=qu,Gn.prototype.has=Zc;var Zu=Gn,da=function(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},Ju=function(t,e){return t.has(e)},Va=function(t,e,n,r,s,c){var p=1&n,v=t.length,b=e.length;if(v!=b&&!(p&&b>v))return!1;var x=c.get(t),S=c.get(e);if(x&&S)return x==e&&S==t;var D=-1,L=!0,Y=2&n?new Zu:void 0;for(c.set(t,e),c.set(e,t);++D<v;){var Z=t[D],oe=e[D];if(r)var ve=p?r(oe,Z,D,e,t,c):r(Z,oe,D,t,e,c);if(ve!==void 0){if(ve)continue;L=!1;break}if(Y){if(!da(e,function(me,Ee){if(!Ju(Y,Ee)&&(Z===me||s(Z,me,n,r,c)))return Y.push(Ee)})){L=!1;break}}else if(Z!==oe&&!s(Z,oe,n,r,c)){L=!1;break}}return c.delete(t),c.delete(e),L},gr=ft.a.Uint8Array,Qu=function(t){var e=-1,n=Array(t.size);return t.forEach(function(r,s){n[++e]=[s,r]}),n},Jc=function(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n},ec=Ht?Ht.prototype:void 0,Ka=ec?ec.valueOf:void 0,Bi=function(t,e,n,r,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 gr(t),new gr(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fn(+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=Qu;case"[object Set]":var b=1&r;if(v||(v=Jc),t.size!=e.size&&!b)return!1;var x=p.get(t);if(x)return x==e;r|=2,p.set(t,e);var S=Va(v(t),v(e),r,s,c,p);return p.delete(t),S;case"[object Symbol]":if(Ka)return Ka.call(t)==Ka.call(e)}return!1},jo=function(t,e){for(var n=-1,r=e.length,s=t.length;++n<r;)t[s+n]=e[n];return t},wn=Array.isArray,Qc=function(t,e,n){var r=e(t);return wn(t)?r:jo(r,n(t))},kr=function(t,e){for(var n=-1,r=t==null?0:t.length,s=0,c=[];++n<r;){var p=t[n];e(p,n,t)&&(c[s++]=p)}return c},es=function(){return[]},ts=Object.prototype.propertyIsEnumerable,Er=Object.getOwnPropertySymbols,Dr=Er?function(t){return t==null?[]:(t=Object(t),kr(Er(t),function(e){return ts.call(t,e)}))}:es,tc=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},an=function(t){return t!=null&&typeof t=="object"},ir=function(t){return an(t)&&gn(t)=="[object Arguments]"},qa=Object.prototype,ns=qa.hasOwnProperty,nc=qa.propertyIsEnumerable,Za=ir(function(){return arguments}())?ir:function(t){return an(t)&&ns.call(t,"callee")&&!nc.call(t,"callee")},Po=Za,Wo=o(48),zi=/^(?:0|[1-9]\d*)$/,Nr=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&(n=="number"||n!="symbol"&&zi.test(t))&&t>-1&&t%1==0&&t<e},Go=function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991},nn={};nn["[object Float32Array]"]=nn["[object Float64Array]"]=nn["[object Int8Array]"]=nn["[object Int16Array]"]=nn["[object Int32Array]"]=nn["[object Uint8Array]"]=nn["[object Uint8ClampedArray]"]=nn["[object Uint16Array]"]=nn["[object Uint32Array]"]=!0,nn["[object Arguments]"]=nn["[object Array]"]=nn["[object ArrayBuffer]"]=nn["[object Boolean]"]=nn["[object DataView]"]=nn["[object Date]"]=nn["[object Error]"]=nn["[object Function]"]=nn["[object Map]"]=nn["[object Number]"]=nn["[object Object]"]=nn["[object RegExp]"]=nn["[object Set]"]=nn["[object String]"]=nn["[object WeakMap]"]=!1;var Rr=function(t){return an(t)&&Go(t.length)&&!!nn[gn(t)]},Ao=function(t){return function(e){return t(e)}},dr=o(49),Ja=dr.a&&dr.a.isTypedArray,ha=Ja?Ao(Ja):Rr,rc=Object.prototype.hasOwnProperty,Fn=function(t,e){var n=wn(t),r=!n&&Po(t),s=!n&&!r&&Object(Wo.a)(t),c=!n&&!r&&!s&&ha(t),p=n||r||s||c,v=p?tc(t.length,String):[],b=v.length;for(var x in t)!e&&!rc.call(t,x)||p&&(x=="length"||s&&(x=="offset"||x=="parent")||c&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||Nr(x,b))||v.push(x);return v},Qa=Object.prototype,Uo=function(t){var e=t&&t.constructor;return t===(typeof e=="function"&&e.prototype||Qa)},Qr=function(t,e){return function(n){return t(e(n))}},oc=Qr(Object.keys,Object),Dl=Object.prototype.hasOwnProperty,ic=function(t){if(!Uo(t))return oc(t);var e=[];for(var n in Object(t))Dl.call(t,n)&&n!="constructor"&&e.push(n);return e},er=function(t){return t!=null&&Go(t.length)&&!So(t)},Fi=function(t){return er(t)?Fn(t):ic(t)},To=function(t){return Qc(t,Fi,Dr)},Sr=Object.prototype.hasOwnProperty,ac=function(t,e,n,r,s,c){var p=1&n,v=To(t),b=v.length;if(b!=To(e).length&&!p)return!1;for(var x=b;x--;){var S=v[x];if(!(p?S in e:Sr.call(e,S)))return!1}var D=c.get(t),L=c.get(e);if(D&&L)return D==e&&L==t;var Y=!0;c.set(t,e),c.set(e,t);for(var Z=p;++x<b;){var oe=t[S=v[x]],ve=e[S];if(r)var me=p?r(ve,oe,S,e,t,c):r(oe,ve,S,t,e,c);if(!(me===void 0?oe===ve||s(oe,ve,n,r,c):me)){Y=!1;break}Z||(Z=S=="constructor")}if(Y&&!Z){var Ee=t.constructor,Me=e.constructor;Ee==Me||!("constructor"in t)||!("constructor"in e)||typeof Ee=="function"&&Ee instanceof Ee&&typeof Me=="function"&&Me instanceof Me||(Y=!1)}return c.delete(t),c.delete(e),Y},Fr=ho(ft.a,"DataView"),yi=ho(ft.a,"Promise"),eu=ho(ft.a,"Set"),Mo=ho(ft.a,"WeakMap"),$r="[object Map]",Cr="[object Promise]",eo="[object Set]",ko="[object WeakMap]",xe="[object DataView]",Ce=Zr(Fr),Le=Zr(Jr),Ze=Zr(yi),zt=Zr(eu),Jt=Zr(Mo),Sn=gn;(Fr&&Sn(new Fr(new ArrayBuffer(1)))!=xe||Jr&&Sn(new Jr)!=$r||yi&&Sn(yi.resolve())!=Cr||eu&&Sn(new eu)!=eo||Mo&&Sn(new Mo)!=ko)&&(Sn=function(t){var e=gn(t),n=e=="[object Object]"?t.constructor:void 0,r=n?Zr(n):"";if(r)switch(r){case Ce:return xe;case Le:return $r;case Ze:return Cr;case zt:return eo;case Jt:return ko}return e});var O=Sn,w="[object Arguments]",T="[object Array]",z="[object Object]",K=Object.prototype.hasOwnProperty,de=function(t,e,n,r,s,c){var p=wn(t),v=wn(e),b=p?T:O(t),x=v?T:O(e),S=(b=b==w?z:b)==z,D=(x=x==w?z:x)==z,L=b==x;if(L&&Object(Wo.a)(t)){if(!Object(Wo.a)(e))return!1;p=!0,S=!1}if(L&&!S)return c||(c=new $o),p||ha(t)?Va(t,e,n,r,s,c):Bi(t,e,b,n,r,s,c);if(!(1&n)){var Y=S&&K.call(t,"__wrapped__"),Z=D&&K.call(e,"__wrapped__");if(Y||Z){var oe=Y?t.value():t,ve=Z?e.value():e;return c||(c=new $o),s(oe,ve,n,r,c)}}return!!L&&(c||(c=new $o),ac(t,e,n,r,s,c))},Se=function t(e,n,r,s,c){return e===n||(e==null||n==null||!an(e)&&!an(n)?e!=e&&n!=n:de(e,n,r,s,t,c))},$e=function(t,e,n,r){var s=n.length,c=s,p=!r;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 b=(v=n[s])[0],x=t[b],S=v[1];if(p&&v[2]){if(x===void 0&&!(b in t))return!1}else{var D=new $o;if(r)var L=r(x,S,b,t,e,D);if(!(L===void 0?Se(S,x,3,r,D):L))return!1}}return!0},at=function(t){return t==t&&!zn(t)},Vt=function(t){for(var e=Fi(t),n=e.length;n--;){var r=e[n],s=t[r];e[n]=[r,s,at(s)]}return e},et=function(t,e){return function(n){return n!=null&&n[t]===e&&(e!==void 0||t in Object(n))}},_n=function(t){var e=Vt(t);return e.length==1&&e[0][2]?et(e[0][0],e[0][1]):function(n){return n===t||$e(n,t,e)}},Ft=function(t){return typeof t=="symbol"||an(t)&&gn(t)=="[object Symbol]"},sn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,to=/^\w*$/,Rn=function(t,e){if(wn(t))return!1;var n=typeof t;return!(n!="number"&&n!="symbol"&&n!="boolean"&&t!=null&&!Ft(t))||to.test(t)||!sn.test(t)||e!=null&&t in Object(e)};function Ir(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");var n=function(){var r=arguments,s=e?e.apply(this,r):r[0],c=n.cache;if(c.has(s))return c.get(s);var p=t.apply(this,r);return n.cache=c.set(s,p)||c,p};return n.cache=new(Ir.Cache||pn),n}Ir.Cache=pn;var Ho=Ir,Xo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ya=/\\(\\)?/g,uc=function(t){var e=Ho(t,function(r){return n.size===500&&n.clear(),r}),n=e.cache;return e}(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Xo,function(n,r,s,c){e.push(s?c.replace(ya,"$1"):r||n)}),e}),vi=Ht?Ht.prototype:void 0,tu=vi?vi.toString:void 0,jr=function t(e){if(typeof e=="string")return e;if(wn(e))return ot(e,t)+"";if(Ft(e))return tu?tu.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n},va=function(t){return t==null?"":jr(t)},$i=function(t,e){return wn(t)?t:Rn(t,e)?[t]:uc(va(t))},gi=function(t){if(typeof t=="string"||Ft(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e},bi=function(t,e){for(var n=0,r=(e=$i(e,t)).length;t!=null&&n<r;)t=t[gi(e[n++])];return n&&n==r?t:void 0},cc=function(t,e,n){var r=t==null?void 0:bi(t,e);return r===void 0?n:r},Ay=function(t,e){return t!=null&&e in Object(t)},Ty=function(t,e,n){for(var r=-1,s=(e=$i(e,t)).length,c=!1;++r<s;){var p=gi(e[r]);if(!(c=t!=null&&n(t,p)))break;t=t[p]}return c||++r!=s?c:!!(s=t==null?0:t.length)&&Go(s)&&Nr(p,s)&&(wn(t)||Po(t))},Rp=function(t,e){return t!=null&&Ty(t,e,Ay)},rs=function(t,e){return Rn(t)&&at(e)?et(gi(t),e):function(n){var r=cc(n,t);return r===void 0&&r===e?Rp(n,t):Se(e,r,3)}},nu=function(t){return t},Nl=function(t){return function(e){return e==null?void 0:e[t]}},My=function(t){return function(e){return bi(e,t)}},Cp=function(t){return Rn(t)?Nl(gi(t)):My(t)},ky=function(t){return typeof t=="function"?t:t==null?nu:typeof t=="object"?wn(t)?rs(t[0],t[1]):_n(t):Cp(t)},Ip=function(t){return function(e,n,r){for(var s=-1,c=Object(e),p=r(e),v=p.length;v--;){var b=p[t?v:++s];if(n(c[b],b,c)===!1)break}return e}}(),hr=function(t,e){return function(n,r){if(n==null)return n;if(!er(n))return t(n,r);for(var s=n.length,c=e?s:-1,p=Object(n);(e?c--:++c<s)&&r(p[c],c,p)!==!1;);return n}}(function(t,e){return t&&Ip(t,e,Fi)}),Pr=function(t,e){var n=-1,r=er(t)?Array(t.length):[];return hr(t,function(s,c,p){r[++n]=e(s,c,p)}),r},os=function(t,e){return(wn(t)?ot:Pr)(t,ky(e))};Object(h.n)({isolateGlobalState:!0});var is=function(){try{var t=ho(Object,"defineProperty");return t({},"",{}),t}catch{}}(),as=function(t,e,n){e=="__proto__"&&is?is(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Dy=Object.prototype.hasOwnProperty,ru=function(t,e,n){var r=t[e];Dy.call(t,e)&&fn(r,n)&&(n!==void 0||e in t)||as(t,e,n)},Yo=function(t,e,n,r){var s=!n;n||(n={});for(var c=-1,p=e.length;++c<p;){var v=e[c],b=r?r(n[v],t[v],v,n,t):void 0;b===void 0&&(b=t[v]),s?as(n,v,b):ru(n,v,b)}return n},Rl=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)},ga=Math.max,ou=function(t,e,n){return e=ga(e===void 0?t.length-1:e,0),function(){for(var r=arguments,s=-1,c=ga(r.length-e,0),p=Array(c);++s<c;)p[s]=r[e+s];s=-1;for(var v=Array(e+1);++s<e;)v[s]=r[s];return v[e]=n(p),Rl(t,this,v)}},sc=function(t){return function(){return t}},us=is?function(t,e){return is(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:nu,iu=Date.now,Ny=function(t){var e=0,n=0;return function(){var r=iu(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Lp=Ny(us),Ry=function(t,e){return Lp(ou(t,e,nu),t+"")},Cy=function(t,e,n){if(!zn(n))return!1;var r=typeof e;return!!(r=="number"?er(n)&&Nr(e,n.length):r=="string"&&e in n)&&fn(n[e],t)},Bp=function(t){return Ry(function(e,n){var r=-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&&Cy(n[0],n[1],p)&&(c=s<3?void 0:c,s=1),e=Object(e);++r<s;){var v=n[r];v&&t(e,v,r,c)}return e})},cs=Object.prototype.hasOwnProperty,yr=Bp(function(t,e){if(Uo(e)||er(e))Yo(e,Fi(e),t);else for(var n in e)cs.call(e,n)&&ru(t,n,e[n])}),zp=function(t,e,n,r){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 b=gi(e[s]),x=n;if(b==="__proto__"||b==="constructor"||b==="prototype")return t;if(s!=p){var S=v[b];(x=r?r(S,b,v):void 0)===void 0&&(x=zn(S)?S:Nr(e[s+1])?[]:{})}ru(v,b,x),v=v[b]}return t},F=function(t,e,n){for(var r=-1,s=e.length,c={};++r<s;){var p=e[r],v=bi(t,p);n(v,p)&&zp(c,$i(p,t),v)}return c},au=function(t,e){return F(t,e,function(n,r){return Rp(t,r)})},lc=Ht?Ht.isConcatSpreadable:void 0,vo=function(t){return wn(t)||Po(t)||!!(lc&&t&&t[lc])},on=function t(e,n,r,s,c){var p=-1,v=e.length;for(r||(r=vo),c||(c=[]);++p<v;){var b=e[p];n>0&&r(b)?n>1?t(b,n-1,r,s,c):jo(c,b):s||(c[c.length]=b)}return c},ba=function(t){return t!=null&&t.length?on(t,1):[]},On,Vo,Wi,go,Cl,Il,Fp,$p,ss,uu,fc,Wp,Ll,Ko,ls,Gi,no,Bl,zl,mi=function(t){return Lp(ou(t,void 0,ba),t+"")}(function(t,e){return t==null?{}:au(t,e)});function Cn(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Gp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function 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 Vn(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 yn,br,qt,tr,pt,jn,fs={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},_i=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","allowRotation","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],Fl=(Vo=Vn((On=function(){function t(r){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),Cn(this,"isSilentMode",Vo,this),Cn(this,"stopZoomGraph",Wi,this),Cn(this,"stopScrollGraph",go,this),Cn(this,"stopMoveGraph",Cl,this),Cn(this,"adjustEdge",Il,this),Cn(this,"adjustEdgeMiddle",Fp,this),Cn(this,"adjustEdgeStartAndEnd",$p,this),Cn(this,"adjustNodePosition",ss,this),Cn(this,"hideAnchors",uu,this),Cn(this,"allowRotation",fc,this),Cn(this,"hoverOutline",Wp,this),Cn(this,"nodeSelectedOutline",Ll,this),Cn(this,"edgeSelectedOutline",Ko,this),Cn(this,"nodeTextEdit",ls,this),Cn(this,"edgeTextEdit",Gi,this),Cn(this,"nodeTextDraggable",no,this),Cn(this,"edgeTextDraggable",Bl,this),Cn(this,"autoExpand",zl,this),Up(this,"multipleSelectKey",""),Up(this,"defaultConfig",{}),yr(this,this.getConfigDetail(r))}var e,n;return e=t,(n=[{key:"updateEditConfig",value:function(r){var s=this.getConfigDetail(r);yr(this,s)}},{key:"getConfigDetail",value:function(r){var s=r.isSilentMode,c=r.textEdit,p={};if(s===!1&&yr(p,this.defaultConfig),s===!0&&s!==this.isSilentMode){var v=mi(fs,_i);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},yr(p,v)}c===!1&&yr(p,{nodeTextEdit:!1,edgeTextEdit:!1});var b=mi(r,_i);return yr(p,b)}},{key:"getConfig",value:function(){return mi(this,_i)}}])&&Gp(e.prototype,n),t}()).prototype,"isSilentMode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wi=Vn(On.prototype,"stopZoomGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),go=Vn(On.prototype,"stopScrollGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Cl=Vn(On.prototype,"stopMoveGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Il=Vn(On.prototype,"adjustEdge",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Fp=Vn(On.prototype,"adjustEdgeMiddle",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),$p=Vn(On.prototype,"adjustEdgeStartAndEnd",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ss=Vn(On.prototype,"adjustNodePosition",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),uu=Vn(On.prototype,"hideAnchors",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fc=Vn(On.prototype,"allowRotation",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wp=Vn(On.prototype,"hoverOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ll=Vn(On.prototype,"nodeSelectedOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ko=Vn(On.prototype,"edgeSelectedOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ls=Vn(On.prototype,"nodeTextEdit",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Gi=Vn(On.prototype,"edgeTextEdit",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),no=Vn(On.prototype,"nodeTextDraggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bl=Vn(On.prototype,"edgeTextDraggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zl=Vn(On.prototype,"autoExpand",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vn(On.prototype,"updateEditConfig",[h.k],Object.getOwnPropertyDescriptor(On.prototype,"updateEditConfig"),On.prototype),On);o(64),o(80),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"}(yn||(yn={})),function(t){t.KEY="logic-flow",t.NODE_NAME="lf-node",t.EDGE_NAME="lf-edge"}(br||(br={})),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"}(qt||(qt={})),function(t){t.NODE="node",t.EDGE="edge",t.GRAPH="graph"}(tr||(tr={})),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_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"}(pt||(pt={})),function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"}(jn||(jn={}));var Pn,Un,Hp,Xp,ps,cu,$l,su,ds;function lu(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return Wl(n,r);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 Wl(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Wl(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Oi(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Iy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bo(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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"})(Pn||(Pn={}));var Yp={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]},Vp=(Un=function(){function t(r,s){(function(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")})(this,t),wi(this,"MINI_SCALE_SIZE",.2),wi(this,"MAX_SCALE_SIZE",16),Oi(this,"SCALE_X",Hp,this),Oi(this,"SKEW_Y",Xp,this),Oi(this,"SKEW_X",ps,this),Oi(this,"SCALE_Y",cu,this),Oi(this,"TRANSLATE_X",$l,this),Oi(this,"TRANSLATE_Y",su,this),Oi(this,"ZOOM_SIZE",ds,this),wi(this,"eventCenter",void 0),wi(this,"translateLimitMinX",void 0),wi(this,"translateLimitMinY",void 0),wi(this,"translateLimitMaxX",void 0),wi(this,"translateLimitMaxY",void 0),this.eventCenter=r;var c=s.stopMoveGraph,p=c!==void 0&&c;this.updateTranslateLimits(p)}var e,n;return e=t,n=[{key:"setZoomMiniSize",value:function(r){this.MINI_SCALE_SIZE=r}},{key:"setZoomMaxSize",value:function(r){this.MAX_SCALE_SIZE=r}},{key:"HtmlPointToCanvasPoint",value:function(r){var s=lu(r,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(r){var s=lu(r,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(r,s,c){var p=lu(r,2),v=p[0],b=p[1];return[v+s/this.SCALE_X,b+c/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(r,s){return[r/this.SCALE_X,s/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var r=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(r,")")}}},{key:"zoom",value:function(){var r=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 r===!0?(c+=this.ZOOM_SIZE,p+=this.ZOOM_SIZE):r===!1?(c-=this.ZOOM_SIZE,p-=this.ZOOM_SIZE):typeof r=="number"&&(c=r,p=r),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(r){this.eventCenter.emit(pt.GRAPH_TRANSFORM,{type:r,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(r,s){this.TRANSLATE_X+r<=this.translateLimitMaxX&&this.TRANSLATE_X+r>=this.translateLimitMinX&&(this.TRANSLATE_X+=r),this.TRANSLATE_Y+s<=this.translateLimitMaxY&&this.TRANSLATE_Y+s>=this.translateLimitMinY&&(this.TRANSLATE_Y+=s),this.emitGraphTransform("translate")}},{key:"focusOn",value:function(r,s,c,p){var v=lu(this.CanvasPointToHtmlPoint([r,s]),2),b=c/2-v[0],x=p/2-v[1];this.TRANSLATE_X+=b,this.TRANSLATE_Y+=x,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(r){var s=lu(Array.isArray(r)&&r.length===4?r:Yp[r.toString()],4);this.translateLimitMinX=s[0],this.translateLimitMinY=s[1],this.translateLimitMaxX=s[2],this.translateLimitMaxY=s[3]}}],n&&Iy(e.prototype,n),t}(),Hp=bo(Un.prototype,"SCALE_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Xp=bo(Un.prototype,"SKEW_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ps=bo(Un.prototype,"SKEW_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),cu=bo(Un.prototype,"SCALE_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),$l=bo(Un.prototype,"TRANSLATE_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),su=bo(Un.prototype,"TRANSLATE_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ds=bo(Un.prototype,"ZOOM_SIZE",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),bo(Un.prototype,"zoom",[h.k],Object.getOwnPropertyDescriptor(Un.prototype,"zoom"),Un.prototype),bo(Un.prototype,"resetZoom",[h.k],Object.getOwnPropertyDescriptor(Un.prototype,"resetZoom"),Un.prototype),bo(Un.prototype,"translate",[h.k],Object.getOwnPropertyDescriptor(Un.prototype,"translate"),Un.prototype),bo(Un.prototype,"focusOn",[h.k],Object.getOwnPropertyDescriptor(Un.prototype,"focusOn"),Un.prototype),Un),hs=function(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t},Kp=function(t,e){return t&&Yo(e,Fi(e),t)},qp=function(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e},Zp=Object.prototype.hasOwnProperty,Gl=function(t){if(!zn(t))return qp(t);var e=Uo(t),n=[];for(var r in t)(r!="constructor"||!e&&Zp.call(t,r))&&n.push(r);return n},fu=function(t){return er(t)?Fn(t,!0):Gl(t)},Ul=function(t,e){return t&&Yo(e,fu(e),t)},ys=o(107),Zt=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},Ly=function(t,e){return Yo(t,Dr(t),e)},Hl=Qr(Object.getPrototypeOf,Object),pu=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)jo(e,Dr(t)),t=Hl(t);return e}:es,Jp=function(t,e){return Yo(t,pu(t),e)},By=function(t){return Qc(t,fu,pu)},zy=Object.prototype.hasOwnProperty,mo=function(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&zy.call(t,"index")&&(n.index=t.index,n.input=t.input),n},Xl=function(t){var e=new t.constructor(t.byteLength);return new gr(e).set(new gr(t)),e},vs=function(t,e){var n=e?Xl(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},Yl=/\w*$/,Qp=function(t){var e=new t.constructor(t.source,Yl.exec(t));return e.lastIndex=t.lastIndex,e},Vl=Ht?Ht.prototype:void 0,Wr=Vl?Vl.valueOf:void 0,Ui=function(t){return Wr?Object(Wr.call(t)):{}},gs=function(t,e){var n=e?Xl(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},ed=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Xl(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return vs(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 gs(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Qp(t);case"[object Symbol]":return Ui(t)}},pc=Object.create,td=function(){function t(){}return function(e){if(!zn(e))return{};if(pc)return pc(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),bs=function(t){return typeof t.constructor!="function"||Uo(t)?{}:td(Hl(t))},nd=function(t){return an(t)&&O(t)=="[object Map]"},ms=dr.a&&dr.a.isMap,Kl=ms?Ao(ms):nd,Hi=function(t){return an(t)&&O(t)=="[object Set]"},rd=dr.a&&dr.a.isSet,Xi=rd?Ao(rd):Hi,ql="[object Arguments]",Zl="[object Function]",Jl="[object Object]",An={};An[ql]=An["[object Array]"]=An["[object ArrayBuffer]"]=An["[object DataView]"]=An["[object Boolean]"]=An["[object Date]"]=An["[object Float32Array]"]=An["[object Float64Array]"]=An["[object Int8Array]"]=An["[object Int16Array]"]=An["[object Int32Array]"]=An["[object Map]"]=An["[object Number]"]=An["[object Object]"]=An["[object RegExp]"]=An["[object Set]"]=An["[object String]"]=An["[object Symbol]"]=An["[object Uint8Array]"]=An["[object Uint8ClampedArray]"]=An["[object Uint16Array]"]=An["[object Uint32Array]"]=!0,An["[object Error]"]=An[Zl]=An["[object WeakMap]"]=!1;var od=function t(e,n,r,s,c,p){var v,b=1&n,x=2&n,S=4&n;if(r&&(v=c?r(e,s,c,p):r(e)),v!==void 0)return v;if(!zn(e))return e;var D=wn(e);if(D){if(v=mo(e),!b)return Zt(e,v)}else{var L=O(e),Y=L==Zl||L=="[object GeneratorFunction]";if(Object(Wo.a)(e))return Object(ys.a)(e,b);if(L==Jl||L==ql||Y&&!c){if(v=x||Y?{}:bs(e),!b)return x?Jp(e,Ul(v,e)):Ly(e,Kp(v,e))}else{if(!An[L])return c?e:{};v=ed(e,L,b)}}p||(p=new $o);var Z=p.get(e);if(Z)return Z;p.set(e,v),Xi(e)?e.forEach(function(ve){v.add(t(ve,n,r,ve,e,p))}):Kl(e)&&e.forEach(function(ve,me){v.set(me,t(ve,n,r,me,e,p))});var oe=D?void 0:(S?x?By:To:x?fu:Fi)(e);return hs(oe||e,function(ve,me){oe&&(ve=e[me=ve]),ru(v,me,t(ve,n,r,me,e,p))}),v},In=function(t){return od(t,5)},_s=function(t,e,n){(n!==void 0&&!fn(t[e],n)||n===void 0&&!(e in t))&&as(t,e,n)},Gr=function(t){return an(t)&&er(t)},qo=Function.prototype,Os=Object.prototype,ma=qo.toString,id=Os.hasOwnProperty,ad=ma.call(Object),ud=function(t){if(!an(t)||gn(t)!="[object Object]")return!1;var e=Hl(t);if(e===null)return!0;var n=id.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&ma.call(n)==ad},Yi=function(t,e){if((e!=="constructor"||typeof t[e]!="function")&&e!="__proto__")return t[e]},dc=function(t){return Yo(t,fu(t))},cd=function(t,e,n,r,s,c,p){var v=Yi(t,n),b=Yi(e,n),x=p.get(b);if(x)_s(t,n,x);else{var S=c?c(v,b,n+"",t,e,p):void 0,D=S===void 0;if(D){var L=wn(b),Y=!L&&Object(Wo.a)(b),Z=!L&&!Y&&ha(b);S=b,L||Y||Z?wn(v)?S=v:Gr(v)?S=Zt(v):Y?(D=!1,S=Object(ys.a)(b,!0)):Z?(D=!1,S=gs(b,!0)):S=[]:ud(b)||Po(b)?(S=v,Po(v)?S=dc(v):zn(v)&&!So(v)||(S=bs(b))):D=!1}D&&(p.set(b,S),s(S,b,r,c,p),p.delete(b)),_s(t,n,S)}},sd=function t(e,n,r,s,c){e!==n&&Ip(n,function(p,v){if(c||(c=new $o),zn(p))cd(e,n,v,r,t,s,c);else{var b=s?s(Yi(e,v),p,v+"",e,n,c):void 0;b===void 0&&(b=p),_s(e,v,b)}},fu)},hc=Bp(function(t,e,n){sd(t,e,n)}),ld={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}},yc=function(t){var e=In(ld);return t&&(e=hc(e,t)),e};o(81),o(163);function Ql(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ws=function(){function t(){var r,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(r=this)?Object.defineProperty(r,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):r[s]=c}var e,n;return e=t,(n=[{key:"on",value:function(r,s,c){var p=this;return r==null||r.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(r,s){var c=this;r==null||r.split(",").forEach(function(p){return p=p.trim(),c.on(p,s,!0)})}},{key:"emit",value:function(r,s){var c=this;r==null||r.split(",").forEach(function(p){var v=c._events[p]||[],b=c._events["*"]||[],x=function(S){for(var D=S.length,L=0;L<D;L++)if(S[L]){var Y=S[L],Z=Y.callback;Y.once&&(S.splice(L,1),S.length===0&&delete c._events[p],D--,L--),Z.apply(c,[s])}};x(v),x(b)})}},{key:"off",value:function(r,s){var c=this;return r||(this._events={}),r.split(",").forEach(function(p){if(s){for(var v=c._events[p]||[],b=v.length,x=0;x<b;x++)v[x].callback===s&&(v.splice(x,1),b--,x--);v.length===0&&delete c._events[p]}else delete c._events[p]}),this}},{key:"getEvents",value:function(){return this._events}}])&&Ql(e.prototype,n),t}();function Zo(t,e){return e*Math.round(t/e)||t}function du(t,e){return t%e}function xs(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return Es(n,r);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 Es(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Es(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ef,Ss=function(t,e,n){var r=xs(t,2),s=r[0],c=r[1],p=xs(e,2),v=p[0],b=p[1],x=xs(n,2),S=x[0],D=x[1];return s>v&&s<S&&c>b&&c<D},Jo=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},fd=(o(82),o(167),o(126),o(83),o(29),o(12),o(13),o(14),o(47),new Uint8Array(16));function pd(){if(!ef&&!(ef=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ef(fd)}for(var Fy=/^(?:[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,dd=function(t){return typeof t=="string"&&Fy.test(t)},Ln=[],vc=0;vc<256;++vc)Ln.push((vc+256).toString(16).substr(1));var tf=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Ln[t[e+0]]+Ln[t[e+1]]+Ln[t[e+2]]+Ln[t[e+3]]+"-"+Ln[t[e+4]]+Ln[t[e+5]]+"-"+Ln[t[e+6]]+Ln[t[e+7]]+"-"+Ln[t[e+8]]+Ln[t[e+9]]+"-"+Ln[t[e+10]]+Ln[t[e+11]]+Ln[t[e+12]]+Ln[t[e+13]]+Ln[t[e+14]]+Ln[t[e+15]]).toLowerCase();if(!dd(n))throw TypeError("Stringified UUID is invalid");return n},gc=function(t,e,n){var r=(t=t||{}).random||(t.rng||pd)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var s=0;s<16;++s)e[n+s]=r[s];return e}return tf(r)},Do=function(){return gc()},hu=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t.nodes.reduce(function(r,s){return r[s.id]=e+gc(),s.id=r[s.id],r},{});return t.edges.forEach(function(r){r.id=e+gc(),r.sourceNodeId=n[r.sourceNodeId],r.targetNodeId=n[r.targetNodeId]}),t},Et=(o(105),o(127),function(t,e,n){var r=t.x,s=t.y;return(r-e.x)*(r-n.x)<=0&&(s-e.y)*(s-n.y)<=0});function yu(t){return yu=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},yu(t)}function js(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Vi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?js(Object(n),!0).forEach(function(r){nf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ne,Or,rf,of,hd,Qo,Ar,Ps,As,yd,vu,af,uf,cf,sf,vd,Ts,lf,gu,Ms,ff,ks=function(t){return t.anchors},_a=function(t,e){for(var n,r=e.nodes,s=r.length-1;s>=0;s--){var c=r[s];if(bd(t,c)){var p=c.getTargetAnchor(t);if(p){var v={node:c,anchorIndex:p.index,anchor:p.anchor};n&&!gd(c,n.node,e)||(n=v)}}}return n},gd=function(t,e,n){return t.zIndex>e.zIndex||n.nodesMap[t.id].index>n.nodesMap[e.id].index},ar=function(t,e,n,r){return Math.hypot(t-n,e-r)},Ur=function(t,e){var n=!1,r=ro(e);return t.x>=r.minX-0&&t.x<=r.maxX+0&&t.y>=r.minY-0&&t.y<=r.maxY+0&&(n=!0),n},bd=function(t,e){var n=!1,r=ro(e);return t.x>=r.minX-5&&t.x<=r.maxX+5&&t.y>=r.minY-5&&t.y<=r.maxY+5&&(n=!0),n},ro=function(t){var e=t.x,n=t.y,r=t.width,s=t.height;return{minX:e-r/2,minY:n-s/2,maxX:e+r/2,maxY:n+s/2,x:e,y:n,width:r,height:s,centerX:e,centerY:n}},md=function(t,e,n){var r,s=function(p){var v=p,b=v.x,x=v.y,S=v.width,D=v.height,L=v.radius;return[{x:b-S/2+L,y:x-D/2+L,r:L},{x:b+S/2-L,y:x-D/2+L,r:L},{x:b-S/2+L,y:x+D/2-L,r:L},{x:b+S/2-L,y:x+D/2-L,r:L}]}(n),c=Number.MAX_SAFE_INTEGER;return s.forEach(function(p){var v=ar(t.x,t.y,p.x,p.y);v<c&&(c=v,r=p)}),pf(t,e,r)},pf=function(t,e,n){var r,s=n,c=s.x,p=s.y,v=s.r;if(e===jn.HORIZONTAL){var b=c-Math.sqrt(v*v-(t.y-p)*(t.y-p)),x=c+Math.sqrt(v*v-(t.y-p)*(t.y-p));r={x:Math.abs(b-t.x)<Math.abs(x-t.x)?b:x,y:t.y}}else if(e===jn.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)),L=Math.abs(S-t.y)<Math.abs(D-t.y)?S:D;r={x:t.x,y:L}}return r},df=function(t,e){var n=e,r=!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,b=n.x,x=n.y,S=n.width,D=n.height;return t.y===x+D/2||t.y===x-D/2?r=t.x>s&&t.x<c:t.x!==b+S/2&&t.x!==b-S/2||(r=t.y>p&&t.y<v),r},hf=function(t,e,n){var r,s=n,c=s.x,p=s.y,v=s.rx,b=s.ry;if(e===jn.HORIZONTAL){var x=c-Math.sqrt(v*v-(t.y-p)*(t.y-p)*v*v/(b*b)),S=c+Math.sqrt(v*v-(t.y-p)*(t.y-p)*v*v/(b*b));r={x:Math.abs(x-t.x)<Math.abs(S-t.x)?x:S,y:t.y}}else if(e===jn.VERTICAL){var D=p-Math.sqrt(b*b-(t.x-c)*(t.x-c)*b*b/(v*v)),L=p+Math.sqrt(b*b-(t.x-c)*(t.x-c)*b*b/(v*v)),Y=Math.abs(D-t.y)<Math.abs(L-t.y)?D:L;r={x:t.x,y:Y}}return r},yf=function(t,e,n){for(var r,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(b){var x=b.start,S=b.end,D=x,L=S;x.x>S.x&&(D=S,L=x);var Y={x:t.x,y:t.y};if(D.x===L.x&&e===jn.HORIZONTAL&&(Y={x:D.x,y:t.y}),D.y===L.y&&e===jn.VERTICAL&&(Y={x:t.x,y:D.y}),D.x!==L.x&&D.y!==L.y){var Z=(L.y-D.y)/(L.x-D.x),oe=(D.x*L.y-L.x*D.y)/(D.x-L.x);e===jn.HORIZONTAL?Y={x:(t.y-oe)/Z,y:t.y}:e===jn.VERTICAL&&(Y={x:t.x,y:Z*t.x+oe})}if(Et(Y,x,S)){var ve=ar(Y.x,Y.y,t.x,t.y);ve<c&&(c=ve,r=Y)}}),r},vf=function(t,e,n,r){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+r/2:e.y<t.y&&(c=t.y-r/2),{x:s,y:c}},_d=function(t){var e=t.rows,n=t.style,r=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),r>1?e.forEach(function(v){var b=document.createElement("div");b.textContent=v,c.appendChild(b)}):c.textContent=e,document.body.appendChild(c);var p=c.clientHeight;return document.body.removeChild(c),p},gf=function(t){var e=t.rows,n=t.rowsLength,r=t.fontSize,s=0;return e&&e.forEach(function(c){var p=Ff(c);s=p>s?p:s}),{width:Math.ceil(s/2)*r+r/4,height:n*(r+2)+r/4}},bc=function(t){return yu(t)!=="object"?{isAllPass:!!t,msg:t?"":"不允许连接"}:t},Tn=function(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}},$y=1e3,Od=999,bf=function(){return++$y};function Ds(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Hr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ds(Object(n),!0).forEach(function(r){Xr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ur(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Wy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pt(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 mf=(Ne=function(){function t(r,s){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),Xr(this,"id",""),ur(this,"type",Or,this),ur(this,"sourceNodeId",rf,this),ur(this,"targetNodeId",of,this),ur(this,"startPoint",hd,this),ur(this,"endPoint",Qo,this),ur(this,"text",Ar,this),ur(this,"properties",Ps,this),ur(this,"points",As,this),ur(this,"pointsList",yd,this),ur(this,"isSelected",vu,this),ur(this,"isHovered",af,this),ur(this,"isHitable",uf,this),ur(this,"draggable",cf,this),ur(this,"visible",sf,this),Xr(this,"virtual",!1),ur(this,"isAnimation",vd,this),ur(this,"isShowAdjustPoint",Ts,this),Xr(this,"graphModel",void 0),ur(this,"zIndex",lf,this),Xr(this,"BaseType",tr.EDGE),Xr(this,"modelType",qt.EDGE),ur(this,"state",gu,this),Xr(this,"additionStateData",void 0),Xr(this,"sourceAnchorId",""),Xr(this,"targetAnchorId",""),Xr(this,"menu",void 0),Xr(this,"customTextPosition",!1),ur(this,"style",Ms,this),ur(this,"arrowConfig",ff,this),this.graphModel=s,this.initEdgeData(r),this.setAttributes()}var e,n;return e=t,n=[{key:"initEdgeData",value:function(r){if(r.properties||(r.properties={}),!r.id){var s=this.graphModel.idGenerator,c=s&&s(r.type),p=this.createId();r.id=p||c||Do()}this.arrowConfig.markerEnd="url(#marker-end-".concat(r.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(r.id,")");var v=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=v,yr(this,Ld(r)),this.graphModel.overlapMode===Pn.INCREASE&&(this.zIndex=r.zIndex||bf()),this.setAnchors(),this.initPoints(),this.formatText(r)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return Hr(Hr({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return Hr({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var r=this.graphModel.theme.edgeText;return In(r)}},{key:"getEdgeAnimationStyle",value:function(){var r=this.graphModel.theme.edgeAnimation;return In(r)}},{key:"getArrowStyle",value:function(){var r=this.getEdgeStyle(),s=this.getEdgeAnimationStyle(),c=this.graphModel.theme.arrow,p=this.isAnimation?s.stroke:r.stroke;return Hr(Hr({},r),{},{fill:p,stroke:p},c)}},{key:"getOutlineStyle",value:function(){var r=this.graphModel.theme.outline;return In(r)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var r,s;return(r=this.graphModel)===null||r===void 0||(s=r.nodesMap[this.sourceNodeId])===null||s===void 0?void 0:s.model}},{key:"targetNode",get:function(){var r,s;return(r=this.graphModel)===null||r===void 0||(s=r.nodesMap[this.targetNodeId])===null||s===void 0?void 0:s.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(r,s){var c,p;return ks(r).forEach(function(v){var b=Gf(v,s);(p===void 0||b<p)&&(p=b,c=v)}),c}},{key:"getEndAnchor",value:function(r){var s,c,p=this;return ks(r).forEach(function(v){var b=Gf(v,p.startPoint);(c===void 0||b<c)&&(c=b,s=v)}),s}},{key:"getProperties",value:function(){return Object(h.I)(this.properties)}},{key:"getData",value:function(){var r=this.text,s=r.x,c=r.y,p=r.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===Pn.INCREASE&&(v.zIndex=this.zIndex),v}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(r,s){this.properties[r]=Tn(s),this.setAttributes()}},{key:"deleteProperty",value:function(r){delete this.properties[r],this.setAttributes()}},{key:"setProperties",value:function(r){this.properties=Hr(Hr({},Object(h.I)(this.properties)),Tn(r)),this.setAttributes()}},{key:"changeEdgeId",value:function(r){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(r,")")),c&&c==="url(#marker-end-".concat(this.id,")")&&(this.arrowConfig.markerEnd="url(#marker-end-".concat(r,")")),this.id=r}},{key:"setStyle",value:function(r,s){this.style=Hr(Hr({},this.style),{},Xr({},r,Tn(s)))}},{key:"setStyles",value:function(r){this.style=Hr(Hr({},this.style),Tn(r))}},{key:"updateStyles",value:function(r){this.style=Hr({},Tn(r))}},{key:"formatText",value:function(r){var s=this.textPosition,c=s.x,p=s.y;r.text&&typeof r.text!="string"?Object.prototype.toString.call(r.text)==="[object Object]"&&(this.text={x:r.text.x||c,y:r.text.y||p,value:r.text.value||"",draggable:this.text.draggable,editable:this.text.editable}):this.text={value:r.text||"",x:c,y:p,draggable:this.text.draggable,editable:this.text.editable}}},{key:"resetTextPosition",value:function(){var r=this.textPosition,s=r.x,c=r.y;this.text.x=s,this.text.y=c}},{key:"moveText",value:function(r,s){if(this.text){var c=this.text,p=c.x,v=c.y,b=c.value,x=c.draggable,S=c.editable;this.text={value:b,draggable:x,x:p+r,y:v+s,editable:S}}}},{key:"setText",value:function(r){r&&yr(this.text,r)}},{key:"updateText",value:function(r){this.text=Hr(Hr({},Object(h.I)(this.text)),{},{value:r})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var r=this.getBeginAnchor(this.sourceNode,this.targetNode);this.startPoint||(this.startPoint={x:r.x,y:r.y}),this.sourceAnchorId||(this.sourceAnchorId=r.id)}if(!this.targetAnchorId||!this.endPoint){var s=this.getEndAnchor(this.targetNode);this.endPoint||(this.endPoint={x:s.x,y:s.y}),this.targetAnchorId||(this.targetAnchorId=s.id)}}},{key:"setSelected",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=r}},{key:"setHovered",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=r}},{key:"setHitable",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=r}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(r,s){this.state=r,this.additionStateData=s}},{key:"updateStartPoint",value:function(r){this.startPoint=r}},{key:"moveStartPoint",value:function(r,s){this.startPoint.x+=r,this.startPoint.y+=s}},{key:"updateEndPoint",value:function(r){this.endPoint=r}},{key:"moveEndPoint",value:function(r,s){this.endPoint.x+=r,this.endPoint.y+=s}},{key:"setZIndex",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=r}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(r){yr(this,r)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(r){var s=r.startPoint,c=r.endPoint;this.updateStartPoint({x:s.x,y:s.y}),this.updateEndPoint({x:c.x,y:c.y})}}],n&&Wy(e.prototype,n),t}(),Or=Pt(Ne.prototype,"type",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),rf=Pt(Ne.prototype,"sourceNodeId",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),of=Pt(Ne.prototype,"targetNodeId",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),hd=Pt(Ne.prototype,"startPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Qo=Pt(Ne.prototype,"endPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ar=Pt(Ne.prototype,"text",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),Ps=Pt(Ne.prototype,"properties",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),As=Pt(Ne.prototype,"points",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),yd=Pt(Ne.prototype,"pointsList",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),vu=Pt(Ne.prototype,"isSelected",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),af=Pt(Ne.prototype,"isHovered",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),uf=Pt(Ne.prototype,"isHitable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),cf=Pt(Ne.prototype,"draggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),sf=Pt(Ne.prototype,"visible",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),vd=Pt(Ne.prototype,"isAnimation",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ts=Pt(Ne.prototype,"isShowAdjustPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lf=Pt(Ne.prototype,"zIndex",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),gu=Pt(Ne.prototype,"state",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Ms=Pt(Ne.prototype,"style",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ff=Pt(Ne.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,")")}}}),Pt(Ne.prototype,"sourceNode",[h.m],Object.getOwnPropertyDescriptor(Ne.prototype,"sourceNode"),Ne.prototype),Pt(Ne.prototype,"targetNode",[h.m],Object.getOwnPropertyDescriptor(Ne.prototype,"targetNode"),Ne.prototype),Pt(Ne.prototype,"textPosition",[h.m],Object.getOwnPropertyDescriptor(Ne.prototype,"textPosition"),Ne.prototype),Pt(Ne.prototype,"setProperty",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setProperty"),Ne.prototype),Pt(Ne.prototype,"deleteProperty",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"deleteProperty"),Ne.prototype),Pt(Ne.prototype,"setProperties",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setProperties"),Ne.prototype),Pt(Ne.prototype,"changeEdgeId",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"changeEdgeId"),Ne.prototype),Pt(Ne.prototype,"setStyle",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setStyle"),Ne.prototype),Pt(Ne.prototype,"setStyles",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setStyles"),Ne.prototype),Pt(Ne.prototype,"updateStyles",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"updateStyles"),Ne.prototype),Pt(Ne.prototype,"formatText",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"formatText"),Ne.prototype),Pt(Ne.prototype,"resetTextPosition",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"resetTextPosition"),Ne.prototype),Pt(Ne.prototype,"moveText",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"moveText"),Ne.prototype),Pt(Ne.prototype,"setText",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setText"),Ne.prototype),Pt(Ne.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"updateText"),Ne.prototype),Pt(Ne.prototype,"setAnchors",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setAnchors"),Ne.prototype),Pt(Ne.prototype,"setSelected",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setSelected"),Ne.prototype),Pt(Ne.prototype,"setHovered",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setHovered"),Ne.prototype),Pt(Ne.prototype,"setHitable",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setHitable"),Ne.prototype),Pt(Ne.prototype,"openEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"openEdgeAnimation"),Ne.prototype),Pt(Ne.prototype,"closeEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"closeEdgeAnimation"),Ne.prototype),Pt(Ne.prototype,"setElementState",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setElementState"),Ne.prototype),Pt(Ne.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"updateStartPoint"),Ne.prototype),Pt(Ne.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"moveStartPoint"),Ne.prototype),Pt(Ne.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"updateEndPoint"),Ne.prototype),Pt(Ne.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"moveEndPoint"),Ne.prototype),Pt(Ne.prototype,"setZIndex",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"setZIndex"),Ne.prototype),Pt(Ne.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"initPoints"),Ne.prototype),Pt(Ne.prototype,"updateAttributes",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"updateAttributes"),Ne.prototype),Pt(Ne.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"getAdjustStart"),Ne.prototype),Pt(Ne.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"getAdjustEnd"),Ne.prototype),Pt(Ne.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor(Ne.prototype,"updateAfterAdjustStartAndEnd"),Ne.prototype),Ne),_f=mf;function Of(t){return Of=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},Of(t)}function wd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function xd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wd(Object(n),!0).forEach(function(r){Sd(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wd(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Gy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ed(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bu(){return bu=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=Uy(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},bu.apply(this,arguments)}function Uy(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Oa(t))!==null;);return t}function wf(t,e){return wf=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},wf(t,e)}function Hy(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Oa(t);if(e){var s=Oa(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Xy(this,n)}}function Xy(t,e){if(e&&(Of(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xf(t)}function xf(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oa(t){return Oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oa(t)}function Sd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $t,jd,wa=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&&wf(c,p)})(s,t);var e,n,r=Hy(s);function s(){var c;Gy(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return Sd(xf(c=r.call.apply(r,[this].concat(v))),"modelType",qt.LINE_EDGE),c}return e=s,(n=[{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.line;return xd(xd({},bu(Oa(s.prototype),"getEdgeStyle",this).call(this)),In(c))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&Ed(e.prototype,n),s}(_f);function Ef(t){return Ef=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},Ef(t)}function Yy(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return mc(n,r);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 mc(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function mc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Sf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function jf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sf(Object(n),!0).forEach(function(r){Af(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Pf(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Pd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ad(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _c(){return _c=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=Vy(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},_c.apply(this,arguments)}function Vy(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=xi(t))!==null;);return t}function mu(t,e){return mu=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},mu(t,e)}function Ns(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=xi(t);if(e){var s=xi(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Ky(this,n)}}function Ky(t,e){if(e&&(Ef(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xa(t)}function xa(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 Af(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bn(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 Rs=($t=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&&mu(c,p)})(s,t);var e,n,r=Ns(s);function s(){var c;Pd(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return Af(xa(c=r.call.apply(r,[this].concat(v))),"modelType",qt.POLYLINE_EDGE),Af(xa(c),"draggingPointList",void 0),Pf(xa(c),"dbClickPosition",jd,xa(c)),c}return e=s,(n=[{key:"initEdgeData",value:function(c){this.offset=30,_c(xi(s.prototype),"initEdgeData",this).call(this,c)}},{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.polyline;return jf(jf({},_c(xi(s.prototype),"getEdgeStyle",this).call(this)),In(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 b=qi(this.points),x=Yy(Rd(b),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 b,x;return v.forEach(function(S){var D;c===jn.HORIZONTAL?D=Math.abs(p.y-S.y):c===jn.VERTICAL&&(D=Math.abs(p.x-S.x)),(!x||x>D)&&(x=D,b=S)}),b}},{key:"getCrossPoint",value:function(c,p,v){var b;return c===jn.HORIZONTAL?b={x:v.x,y:p.y}:c===jn.VERTICAL&&(b={x:p.x,y:v.y}),b}},{key:"removeCrossPoints",value:function(c,p,v){var b=v.map(function(me){return me});if(c===1){var x=b[c],S=b[p],D=b[c-1];if(Lf(D,x,this.sourceNode)){if(Bf(x,S,this.sourceNode)){var L=cr(x,S,this.sourceNode);L&&(b[c]=L,b.splice(c-1,1),c--,p--)}}else this.sourceNode.anchors.forEach(function(me){(me.x===D.x&&me.x===x.x||me.y===D.y&&me.y===x.y)&&ar(me.x,me.y,x.x,x.y)<ar(D.x,D.y,x.x,x.y)&&(b[c-1]=me)})}if(p===v.length-2){var Y=b[c],Z=b[p],oe=b[p+1];if(Lf(Z,oe,this.targetNode)){if(Bf(Y,Z,this.targetNode)){var ve=cr(Y,Z,this.targetNode);ve&&(b[p]=ve,b.splice(p+1,1))}}else this.targetNode.anchors.forEach(function(me){(me.x===oe.x&&me.x===Z.x||me.y===oe.y&&me.y===Z.y)&&ar(me.x,me.y,Z.x,Z.y)<ar(oe.x,oe.y,Z.x,Z.y)&&(b[p+1]=me)})}return b}},{key:"getDraggingPoints",value:function(c,p,v,b,x){var S=x.map(function(Y){return Y}),D=this.getAfterAnchor(c,v,b),L=this.getCrossPoint(c,v,D);return p==="start"?(S.unshift(L),S.unshift(D)):(S.push(L),S.push(D)),S}},{key:"updateCrossPoints",value:function(c){var p=c.map(function(Me){return Me}),v=c[0],b=c[1],x=c[p.length-2],S=c[p.length-1],D=this.sourceNode,L=this.targetNode,Y=D.modelType,Z=L.modelType,oe=mr(v,b),ve=p[0];switch(Y){case qt.RECT_NODE:D.radius!==0&&(df(v,D)||(ve=md(v,oe,D)));break;case qt.CIRCLE_NODE:ve=pf(v,oe,D);break;case qt.ELLIPSE_NODE:ve=hf(v,oe,D);break;case qt.DIAMOND_NODE:case qt.POLYGON_NODE:ve=yf(v,oe,D)}p[0]=ve;var me=mr(x,S),Ee=p[p.length-1];switch(Z){case qt.RECT_NODE:L.radius!==0&&(df(S,L)||(Ee=md(S,me,L)));break;case qt.CIRCLE_NODE:Ee=pf(S,me,L);break;case qt.ELLIPSE_NODE:Ee=hf(S,me,L);break;case qt.DIAMOND_NODE:case qt.POLYGON_NODE:Ee=yf(S,me,L)}return p[p.length-1]=Ee,p}},{key:"getData",value:function(){var c=_c(xi(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=Sc({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=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=c,this.updatePoints()}},{key:"moveEndPoint",value:function(c,p){this.endPoint.x+=c,this.endPoint.y+=p,this.updatePoints()}},{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,b=c.end,x=c.startIndex,S=c.endIndex,D=c.direction,L=this.pointsList,Y=L;return D===jn.HORIZONTAL?(L[x]={x:v.x,y:v.y+p.y},L[S]={x:b.x,y:b.y+p.y},Y=this.pointsList.map(function(Z){return Z})):D===jn.VERTICAL&&(L[x]={x:v.x+p.x,y:v.y},L[S]={x:b.x+p.x,y:b.y},Y=this.pointsList.map(function(Z){return Z})),this.updatePointsAfterDrag(Y),this.draggingPointList=Y,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},L[x]),end:Object.assign({},L[S]),startIndex:x,endIndex:S,direction:D}}},{key:"dragAppend",value:function(c,p){this.isDragging=!0;var v=c.start,b=c.end,x=c.startIndex,S=c.endIndex,D=c.direction,L=this.pointsList;if(D===jn.HORIZONTAL){L[x]={x:v.x,y:v.y+p.y},L[S]={x:b.x,y:b.y+p.y};var Y=this.pointsList.map(function(Je){return Je});if(x!==0&&S!==this.pointsList.length-1&&(Y=this.removeCrossPoints(x,S,Y)),x===0){var Z={x:v.x,y:v.y+p.y};if(!Ur(Z,this.sourceNode)){var oe=this.sourceNode.anchors;Y=this.getDraggingPoints(D,"start",Z,oe,Y)}}if(S===this.pointsList.length-1){var ve={x:b.x,y:b.y+p.y};if(!Ur(ve,this.targetNode)){var me=this.targetNode.anchors;Y=this.getDraggingPoints(D,"end",ve,me,Y)}}this.updatePointsAfterDrag(Y),this.draggingPointList=Y}else if(D===jn.VERTICAL){L[x]={x:v.x+p.x,y:v.y},L[S]={x:b.x+p.x,y:b.y};var Ee=this.pointsList.map(function(Je){return Je});if(x!==0&&S!==this.pointsList.length-1&&(Ee=this.removeCrossPoints(x,S,Ee)),x===0){var Me={x:v.x+p.x,y:v.y};if(!Ur(Me,this.sourceNode)){var qe=this.sourceNode.anchors;Ee=this.getDraggingPoints(D,"start",Me,qe,Ee)}}if(S===this.pointsList.length-1){var Qe={x:b.x+p.x,y:b.y};if(!Ur(Qe,this.targetNode)){var Ot=this.targetNode.anchors;Ee=this.getDraggingPoints(D,"end",Qe,Ot,Ee)}}this.updatePointsAfterDrag(Ee),this.draggingPointList=Ee}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},L[x]),end:Object.assign({},L[S]),startIndex:x,endIndex:S,direction:D}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var c=Ec(qi(this.points));this.pointsList=c.map(function(b){return b}),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,b=c.sourceNode,x=c.targetNode,S=Sc({x:p.x,y:p.y},{x:v.x,y:v.y},b,x,this.offset||0);this.pointsList=S,this.initPoints()}}])&&Ad(e.prototype,n),s}(_f),jd=Bn($t.prototype,"dbClickPosition",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bn($t.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"initPoints"),$t.prototype),Bn($t.prototype,"updatePoints",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"updatePoints"),$t.prototype),Bn($t.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"updateStartPoint"),$t.prototype),Bn($t.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"moveStartPoint"),$t.prototype),Bn($t.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"updateEndPoint"),$t.prototype),Bn($t.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"moveEndPoint"),$t.prototype),Bn($t.prototype,"dragAppendStart",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"dragAppendStart"),$t.prototype),Bn($t.prototype,"dragAppendSimple",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"dragAppendSimple"),$t.prototype),Bn($t.prototype,"dragAppend",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"dragAppend"),$t.prototype),Bn($t.prototype,"dragAppendEnd",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"dragAppendEnd"),$t.prototype),Bn($t.prototype,"updatePointsAfterDrag",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"updatePointsAfterDrag"),$t.prototype),Bn($t.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"getAdjustStart"),$t.prototype),Bn($t.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"getAdjustEnd"),$t.prototype),Bn($t.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor($t.prototype,"updateAfterAdjustStartAndEnd"),$t.prototype),$t),Oc=function(t){var e=t.start,n=t.end,r=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)),b=Math.atan(r/s),x=Math.sqrt(s*s+r*r);return c==="start"?n.x>=e.x?(p.leftX=e.x+x*Math.sin(v+b),p.leftY=e.y-x*Math.cos(v+b),p.rightX=e.x-x*Math.sin(v-b),p.rightY=e.y+x*Math.cos(v-b)):(p.leftX=e.x-x*Math.sin(v+b),p.leftY=e.y+x*Math.cos(v+b),p.rightX=e.x+x*Math.sin(v-b),p.rightY=e.y-x*Math.cos(v-b)):c==="end"&&(n.x>=e.x?(p.leftX=n.x+x*Math.sin(v-b),p.leftY=n.y-x*Math.cos(v-b),p.rightX=n.x-x*Math.sin(v+b),p.rightY=n.y+x*Math.cos(v+b)):(p.leftX=n.x-x*Math.sin(v-b),p.leftY=n.y+x*Math.cos(v-b),p.rightX=n.x+x*Math.sin(v+b),p.rightY=n.y-x*Math.cos(v+b))),p},Ea={x:1,y:0,z:0};function Wt(t,e,n,r,s){for(var c=function(Z){if(Z<0||Z>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:t.x*Math.pow(1-Z,3)+3*e.x*Z*Math.pow(1-Z,2)+3*n.x*Math.pow(Z,2)*(1-Z)+r.x*Math.pow(Z,3),y:t.y*Math.pow(1-Z,3)+3*e.y*Z*Math.pow(1-Z,2)+3*n.y*Math.pow(Z,2)*(1-Z)+r.y*Math.pow(Z,3)}},p=0,v=2,b=r.x,x=r.y,S=r;p<s&&v<50;){var D=S=c(1-v/100),L=D.x,Y=D.y;p=ar(b,x,L,Y),v++}return S}function Td(t){var e=Math.hypot(t.x,t.y);return{x:t.x/e,y:t.y/e,z:0}}function Lr(t){return r=function(c,p){return c.x*p.y-c.y*p.x}(e=Ea,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(b,x,S){return b+x*v[S]})}(Td(e),Td(n))),r>=0?s:-s;var e,n,r,s}function Kn(t){return t*(180/Math.PI)}function Ei(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Cs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ei(Object(n),!0).forEach(function(r){Tf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Tf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Si(t){return function(e){if(Array.isArray(e))return Wn(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||$n(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Is(t){return Is=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},Is(t)}function Sa(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||$n(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $n(t,e){if(t){if(typeof t=="string")return Wn(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)?Wn(t,e):void 0}}function Wn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Md=function(t,e){var n;switch(t.type){case"line":default:n=new wa(t,e);break;case"polyline":n=new Rs(t,e)}return n},Mf=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},ji=function(t){var e=[],n={};return t.forEach(function(r){var s="".concat(r.x,"-").concat(r.y);r.id=s,n[s]=r}),Object.keys(n).forEach(function(r){e.push(n[r])}),e},kf=function(t,e){var n=[t,{x:t.x,y:e.y},e];return ji(n)},_u=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}},wc=function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return n/e.width>r/e.height?jn.HORIZONTAL:jn.VERTICAL},wr=function(t,e,n){return wc(n,e)===jn.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}},Ki=function(t,e){var n=Math.min(t.minX,e.minX),r=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:(r+c)/2,minX:n,minY:r,maxX:s,maxY:c,height:c-r,width:s-n}},Ou=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=[],r=[];t.forEach(function(S){n.push(S.x),r.push(S.y)});var s=Math.min.apply(Math,n),c=Math.max.apply(Math,n),p=Math.min.apply(Math,r),v=Math.max.apply(Math,r),b=c-s,x=v-p;return e&&(b+=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:b}},xc=function(t){var e=t.minX,n=t.minY,r=t.maxX,s=t.maxY;return[{x:e,y:n},{x:r,y:n},{x:r,y:s},{x:e,y:s}]},wu=function(t,e){var n=t.x,r=t.y;return n<e.minX||n>e.maxX||r<e.minY||r>e.maxY},ei=function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},Xt=function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},Df=function(t,e){return ei(t,e.x).concat(Xt(t,e.y))},Br=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Nf=function(t,e){var n=0;return e.forEach(function(r){r&&(t.x===r.x&&(n+=-2),t.y===r.y&&(n+=-2))}),n},vn=function(t,e,n,r,s){return Br(t,e)+Br(t,n)+Nf(t,[e,n,r,s])},kd=function t(e,n,r,s,c){c||(c=0),e.unshift(n[s]),r[s]&&r[s]!==s&&c<=100&&t(e,n,r,r[s],c+1)},Rf=function(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)},Pi=function(t,e,n,r){var s=e.x-t.x,c=e.y-t.y,p=r.x-n.x,v=r.y-n.y,b=(-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 b>=0&&b<=1&&x>=0&&x<=1},Cf=function(t,e,n){if(n.width===0&&n.height===0)return!1;var r=Sa(xc(n),4),s=r[0],c=r[1],p=r[2],v=r[3];return Pi(t,e,s,c)||Pi(t,e,s,v)||Pi(t,e,c,p)||Pi(t,e,p,v)},Dd=function(t,e,n,r){var s=[];return t.forEach(function(c){c!==e&&(c.x!==e.x&&c.y!==e.y||Cf(c,e,n)||Cf(c,e,r)||s.push(c))}),ji(s)},Nd=function(t,e,n,r,s,c,p){var v=[],b=[e],x={},S={},D={};S[e.id]=0,D[e.id]=vn(e,n,e);var L={};t.forEach(function(oe){L[oe.id]=oe});for(var Y=function(){var oe=void 0,ve=1/0;if(b.forEach(function(Ee){D[Ee.id]<ve&&(ve=D[Ee.id],oe=Ee)}),oe===n){var me=[];return kd(me,L,x,n.id),{v:me}}Rf(b,oe),v.push(oe),Dd(t,oe,r,s).forEach(function(Ee){if(v.indexOf(Ee)===-1){b.indexOf(Ee)===-1&&b.push(Ee);var Me=D[oe.id]+Br(oe,Ee);S[Ee.id]&&Me>=S[Ee.id]||(x[Ee.id]=oe.id,S[Ee.id]=Me,D[Ee.id]=S[Ee.id]+vn(Ee,n,e,c,p))}})};b.length;){var Z=Y();if(Is(Z)==="object")return Z.v}return[e,n]},If=function(t){return ro(t)},Ec=function(t){for(var e=1;e<t.length-1;){var n=t[e-1],r=t[e],s=t[e+1];n.x===r.x&&r.x===s.x||n.y===r.y&&r.y===s.y?t.splice(e,1):e++}return t},Sc=function(t,e,n,r,s){var c=If(n),p=If(r),v=_u(c,s),b=_u(p,s),x=wr(v,c,t),S=wr(b,p,e);if(Mf(v,b)){var D=zf(t,e,x,S);return[t,x].concat(Si(D),[S,e])}var L=Ou([x,S]),Y=Ki(v,L),Z=Ki(b,L),oe=[];oe=(oe=oe.concat(xc(Y))).concat(xc(Z));var ve={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[L,Y,Z].forEach(function(Ee){oe=oe.concat(Df(Ee,ve).filter(function(Me){return wu(Me,v)&&wu(Me,b)}))}),[{x:x.x,y:S.y},{x:S.x,y:x.y}].forEach(function(Ee){wu(Ee,v)&&wu(Ee,b)&&oe.push(Ee)}),oe.unshift(x),oe.push(S),oe=ji(oe);var me=Nd(oe,x,S,c,p,t,e);return me.unshift(t),me.push(e),me.length>2&&(me=Ec(me)),ji(me)},Rd=function(t){var e;if(t.length===1)e=[t[0],t[0]];else if(t.length>=2){for(var n=t[0],r=t[1],s=ar(n.x,n.y,r.x,r.y),c=1;c<t.length-1;c++){var p=t[c],v=t[c+1],b=ar(p.x,p.y,v.x,v.y);b>s&&(s=b,n=p,r=v)}e=[n,r]}return e},Lf=function(t,e,n){var r=Ur(t,n),s=Ur(e,n);return r&&s},Bf=function(t,e,n){var r=Ur(t,n),s=Ur(e,n);return!(r&&s)&&(r||s)},cr=function(t,e,n){for(var r,s,c=ro(n),p=xc(c),v=0;v<p.length;v++)Pi(t,e,p[v],p[(v+1)%p.length])&&(s=[p[v],p[(v+1)%p.length]]);return s&&(r=function(b,x,S,D){var L=(x.y-b.y)*(D.x-S.x)-(b.x-x.x)*(S.y-D.y);if(L===0)return!1;var Y=((x.x-b.x)*(D.x-S.x)*(S.y-b.y)+(x.y-b.y)*(D.x-S.x)*b.x-(D.y-S.y)*(x.x-b.x)*S.x)/L,Z=-((x.y-b.y)*(D.y-S.y)*(S.x-b.x)+(x.x-b.x)*(D.y-S.y)*b.y-(D.x-S.x)*(x.y-b.y)*S.y)/L;return(Y-b.x)*(Y-x.x)<=0&&(Z-b.y)*(Z-x.y)<=0&&(Y-S.x)*(Y-D.x)<=0&&(Z-S.y)*(Z-D.y)<=0&&{x:Y,y:Z}}(t,e,s[0],s[1])),r},mr=function(t,e){var n;return t.x===e.x?n=jn.VERTICAL:t.y===e.y&&(n=jn.HORIZONTAL),n},qi=function(t){var e=t.split(" "),n=[];return e&&e.forEach(function(r){var s=Sa(r.split(","),2),c=s[0],p=s[1];n.push({x:Number(c),y:Number(p)})}),n},zf=function(t,e,n,r){var s=[];if(mr(t,n)===mr(e,r))t.y===n.y?(s.push({x:n.x,y:(n.y+r.y)/2}),s.push({x:r.x,y:(n.y+r.y)/2})):(s.push({x:(n.x+r.x)/2,y:n.y}),s.push({x:(n.x+r.x)/2,y:r.y}));else{var c={x:n.x,y:r.y},p=Et(c,t,n),v=Et(c,e,r);if(p||v)c={x:r.x,y:n.y};else{var b=Cd(c,t,n),x=Cd(c,e,r);b&&x&&(c={x:r.x,y:n.y})}s.push(c)}return s},Cd=function(t,e,n){return t.x===e.x&&t.x===n.x||t.y===e.y&&t.y===n.y},Ff=function(t){if(!t)return 0;for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);t.match(/[A-Z]/)?e+=1.5:e+=r>=1&&r<=126||r>=65376&&r<=65439?1:2}return e},Ls=null,Id=function(t,e){Ls||(Ls=document.createElement("canvas"));var n=Ls.getContext("2d");return n.font=e,n.measureText(t).width},$f=function(t){var e,n=t.start,r=t.end;if(n.x===r.x&&n.y===r.y)e="";else{var s={start:n,end:r,offset:10,verticalLength:5},c=Oc(Cs(Cs({},s),{},{type:"start"})),p=Oc(Cs(Cs({},s),{},{type:"end"}));e="M".concat(c.leftX," ").concat(c.leftY,`
L`).concat(c.rightX," ").concat(c.rightY,`
L`).concat(p.rightX," ").concat(p.rightY,`
L`).concat(p.leftX," ").concat(p.leftY," z")}return{d:e,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},Zi=function(t){var e=t.start,n=t.end,r=t.sourceNode,s=t.targetNode,c=t.offset,p=ro(r),v=ro(s),b=_u(p,c),x=_u(v,c);return{sNext:wr(b,p,e),ePre:wr(x,v,n)}},Bs=function(t){var e=t.replace(/M/g,"").replace(/C/g,",").split(",");return[jc(e[0]),jc(e[1]),jc(e[2]),jc(e[3])]},jc=function(t){var e=Sa(t.replace(/(^\s*)/g,"").split(" "),2);return{x:+e[0],y:+e[1]}},zs=function(t,e){var n=Sa(t,4);return[Wt(n[0],n[1],n[2],n[3],e),t[3]]},Wf=function(t,e){for(var n,r=t.x,s=t.y,c=qi(e),p=Number.MAX_SAFE_INTEGER,v=[],b=0;b<c.length;b++)v.push({start:c[b],end:c[(b+1)%c.length]});if(v.forEach(function(L){var Y=L.start,Z=L.end;if(Y.x===Z.x){var oe={x:Y.x,y:s};if(Et(oe,Y,Z)){var ve=Math.abs(Y.x-r);ve<p&&(p=ve,n=oe)}}else if(Y.y===Z.y){var me={x:r,y:Y.y};if(Et(me,Y,Z)){var Ee=Math.abs(Y.y-s);Ee<p&&(p=Ee,n=me)}}}),!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},Ld=function(t){return mi(t,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Gf=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};function Bd(t,e){return typeof e!="function"?function(n,r,s){return Object.assign({type:t.edgeType},s)}:function(n,r,s){var c=e(n,r,s);return c?typeof c=="string"?Object.assign({},s,{type:c}):Object.assign({type:c},s):{type:t.edgeType}}}o(206);var xu=function(){};function qy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function 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 No=window.document;function zd(t){var e=t.onDragStart,n=e===void 0?xu:e,r=t.onDragging,s=r===void 0?xu:r,c=t.onDragEnd,p=c===void 0?xu:c,v=t.step,b=v===void 0?1:v,x=t.isStopPropagation,S=x===void 0||x,D=!1,L=!1,Y=0,Z=0,oe=0,ve=0;function me(Me){if(S&&Me.stopPropagation(),L&&(D=!0,oe+=Me.clientX-Y,ve+=Me.clientY-Z,Y=Me.clientX,Z=Me.clientY,Math.abs(oe)>b||Math.abs(ve)>b)){var qe=oe%b,Qe=ve%b,Ot=oe-qe,Je=ve-Qe;oe=qe,ve=Qe,s({deltaX:Ot,deltaY:Je,event:Me})}}function Ee(Me){if(S&&Me.stopPropagation(),L=!1,No.removeEventListener("mousemove",me,!1),No.removeEventListener("mouseup",Ee,!1),D)return D=!1,p({event:Me})}return function(Me){if(Me.button===0)return S&&Me.stopPropagation(),L=!0,Y=Me.clientX,Z=Me.clientY,No.addEventListener("mousemove",me,!1),No.addEventListener("mouseup",Ee,!1),n({event:Me})}}var ti=function(){function t(r){var s=this,c=r.onDragStart,p=c===void 0?xu:c,v=r.onDragging,b=v===void 0?xu:v,x=r.onDragEnd,S=x===void 0?xu:x,D=r.eventType,L=D===void 0?"":D,Y=r.eventCenter,Z=Y===void 0?null:Y,oe=r.step,ve=oe===void 0?1:oe,me=r.isStopPropagation,Ee=me===void 0||me,Me=r.model,qe=Me===void 0?null:Me,Qe=r.data,Ot=Qe===void 0?null:Qe;(function(Je,wt){if(!(Je instanceof wt))throw new TypeError("Cannot call a class as a function")})(this,t),qn(this,"onDragStart",void 0),qn(this,"onDragging",void 0),qn(this,"onDragEnd",void 0),qn(this,"step",void 0),qn(this,"isStopPropagation",void 0),qn(this,"isDragging",!1),qn(this,"isStartDragging",!1),qn(this,"startX",0),qn(this,"startY",0),qn(this,"sumDeltaX",0),qn(this,"sumDeltaY",0),qn(this,"eventType",void 0),qn(this,"eventCenter",void 0),qn(this,"model",void 0),qn(this,"data",void 0),qn(this,"startTime",void 0),qn(this,"handleMouseDown",function(Je){var wt,nt;if(Je.button===0){s.isStopPropagation&&Je.stopPropagation(),s.isStartDragging=!0,s.startX=Je.clientX,s.startY=Je.clientY,No.addEventListener("mousemove",s.handleMouseMove,!1),No.addEventListener("mouseup",s.handleMouseUp,!1);var rn=(wt=s.model)===null||wt===void 0?void 0:wt.getData();(nt=s.eventCenter)===null||nt===void 0||nt.emit(pt["".concat(s.eventType,"_MOUSEDOWN")],{e:Je,data:s.data||rn}),s.startTime=new Date().getTime()}}),qn(this,"handleMouseMove",function(Je){if(s.isStopPropagation&&Je.stopPropagation(),s.isStartDragging&&(s.sumDeltaX+=Je.clientX-s.startX,s.sumDeltaY+=Je.clientY-s.startY,s.startX=Je.clientX,s.startY=Je.clientY,s.step<=1||Math.abs(s.sumDeltaX)>s.step||Math.abs(s.sumDeltaY)>s.step)){var wt,nt=s.sumDeltaX%s.step,rn=s.sumDeltaY%s.step,un=s.sumDeltaX-nt,Gt=s.sumDeltaY-rn;s.sumDeltaX=nt,s.sumDeltaY=rn;var dn,nr=(wt=s.model)===null||wt===void 0?void 0:wt.getData();s.isDragging||((dn=s.eventCenter)===null||dn===void 0||dn.emit(pt["".concat(s.eventType,"_DRAGSTART")],{e:Je,data:s.data||nr}),s.onDragStart({event:Je})),s.isDragging=!0,Promise.resolve().then(function(){var rr,uo;s.onDragging({deltaX:un,deltaY:Gt,event:Je}),(rr=s.eventCenter)===null||rr===void 0||rr.emit(pt["".concat(s.eventType,"_MOUSEMOVE")],{e:Je,data:s.data||nr}),(uo=s.eventCenter)===null||uo===void 0||uo.emit(pt["".concat(s.eventType,"_DRAG")],{e:Je,data:s.data||nr})})}}),qn(this,"handleMouseUp",function(Je){s.isStartDragging=!1,s.isStopPropagation&&Je.stopPropagation(),Promise.resolve().then(function(){var wt,nt,rn;No.removeEventListener("mousemove",s.handleMouseMove,!1),No.removeEventListener("mouseup",s.handleMouseUp,!1);var un=(wt=s.model)===null||wt===void 0?void 0:wt.getData();(nt=s.eventCenter)===null||nt===void 0||nt.emit(pt["".concat(s.eventType,"_MOUSEUP")],{e:Je,data:s.data||un}),s.isDragging&&(s.isDragging=!1,s.onDragEnd({event:Je}),(rn=s.eventCenter)===null||rn===void 0||rn.emit(pt["".concat(s.eventType,"_DROP")],{e:Je,data:s.data||un}))})}),qn(this,"cancelDrag",function(){No.removeEventListener("mousemove",s.handleMouseMove,!1),No.removeEventListener("mouseup",s.handleMouseUp,!1),s.onDragEnd({event:null}),s.isDragging=!1}),this.onDragStart=p,this.onDragging=b,this.onDragEnd=S,this.step=ve,this.isStopPropagation=Ee,this.eventType=L,this.eventCenter=Z,this.model=qe,this.data=Ot}var e,n;return e=t,(n=[{key:"setStep",value:function(r){this.step=r}}])&&qy(e.prototype,n),t}();function Pc(t){return Pc=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},Pc(t)}function Uf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tr(t,e,n){return e&&Fd(t.prototype,e),n&&Fd(t,n),t}function Ac(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&&Mc(t,e)}function Hf(t){var e=$d();return function(){var n,r=Eu(t);if(e){var s=Eu(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Zy(this,n)}}function Zy(t,e){if(e&&(Pc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ai(t)}function Ai(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tc(t){var e=typeof Map=="function"?new Map:void 0;return Tc=function(n){if(n===null||(r=n,Function.toString.call(r).indexOf("[native code]")===-1))return n;var r;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 Xf(n,arguments,Eu(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Mc(s,n)},Tc(t)}function Xf(t,e,n){return Xf=$d()?Reflect.construct:function(r,s,c){var p=[null];p.push.apply(p,s);var v=new(Function.bind.apply(r,p));return c&&Mc(v,c.prototype),v},Xf.apply(null,arguments)}function $d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mc(t,e){return Mc=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Mc(t,e)}function Eu(t){return Eu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Eu(t)}function Yf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wd(t,e){return t instanceof sr&&e instanceof sr}var Fs=function(t){Ac(n,t);var e=Hf(n);function n(r,s,c){var p;return Uf(this,n),Yf(Ai(p=e.call(this,3)),"x",void 0),Yf(Ai(p),"y",void 0),Yf(Ai(p),"z",void 0),p[0]=r,p[1]=s,p[2]=c,p.x=r,p.y=s,p.z=c,Object.setPrototypeOf(Ai(p),n.prototype),p}return Tr(n,[{key:"add",value:function(r){if(Wd(this,r))return new sr(this.x+r.x,this.y+r.y);var s=this.z+r.z;return new $s((this.x+r.x)/s,(this.y+r.y)/s)}},{key:"subtract",value:function(r){if(Wd(this,r))return new sr(this.x-r.x,this.y-r.y);var s=this.z-r.z;return s===0?new sr(this.x-r.x,this.y-r.y):new $s((this.x-r.x)/s,(this.y-r.y)/s)}}]),n}(Tc(Array)),sr=function(t){Ac(n,t);var e=Hf(n);function n(r,s,c){var p;return Uf(this,n),p=e.call(this,r,s,c??0),Object.setPrototypeOf(Ai(p),n.prototype),p}return Tr(n,[{key:"toString",value:function(){return"Vector"}},{key:"dot",value:function(r){var s=this;return r.reduce(function(c,p,v){return c+p*s[v]})}},{key:"cross",value:function(r){return new n(this.y*r.z-this.z*r.y,this.z*r.x-this.x*r.z,this.x*r.y-this.y*r.x)}},{key:"getLength",value:function(){return Math.hypot(this.x,this.y)}},{key:"normalize",value:function(){var r=this.getLength();return new n(this.x/r,this.y/r)}},{key:"crossZ",value:function(r){return this.x*r.y-this.y*r.x}},{key:"angle",value:function(r){var s=this.crossZ(r),c=Math.acos(this.normalize().dot(r.normalize()));return s>=0?c:-c}}]),n}(Fs),$s=function(t){Ac(n,t);var e=Hf(n);function n(r,s){var c;return Uf(this,n),c=e.call(this,r,s,1),Object.setPrototypeOf(Ai(c),n.prototype),c}return Tr(n,[{key:"toString",value:function(){return"Point"}}]),n}(Fs);o(65),o(216);function Vf(t){return Vf=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},Vf(t)}function Kf(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||Ws(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Gd(t){return function(e){if(Array.isArray(e))return qf(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Ws(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ws(t,e){if(t){if(typeof t=="string")return qf(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)?qf(t,e):void 0}}function qf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Gs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ud(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&Ud(t.prototype,e),n&&Ud(t,n),t}function y(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&&Oe(t,e)}function _(t){var e=fe();return function(){var n,r=Ie(t);if(e){var s=Ie(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return A(this,n)}}function A(t,e){if(e&&(Vf(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 G(t){var e=typeof Map=="function"?new Map:void 0;return G=function(n){if(n===null||(r=n,Function.toString.call(r).indexOf("[native code]")===-1))return n;var r;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 ie(n,arguments,Ie(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Oe(s,n)},G(t)}function ie(t,e,n){return ie=fe()?Reflect.construct:function(r,s,c){var p=[null];p.push.apply(p,s);var v=new(Function.bind.apply(r,p));return c&&Oe(v,c.prototype),v},ie.apply(null,arguments)}function fe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Oe(t,e){return Oe=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Oe(t,e)}function Ie(t){return Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ie(t)}function De(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var te,lt,ht,At,ze,He,Dt,ut,Nt,It,en,_t,Tt,Hn=function(t){y(n,t);var e=_(n);function n(){var r;Gs(this,n);for(var s=arguments.length,c=new Array(s),p=0;p<s;p++)c[p]=arguments[p];return De(C(r=e.call(this,c.length)),"rows",void 0),De(C(r),"columns",void 0),r.fill(new Array(3)),c.forEach(function(v,b){r[b]=v}),r.columns=c[0].length,r.rows=c.length,Object.setPrototypeOf(C(r),n.prototype),r}return f(n,[{key:"getRow",value:function(r){return this[r]}},{key:"getColumn",value:function(r){return Gd(this.map(function(s){return s[r]}))}},{key:"transpose",value:function(){for(var r=[],s=0;s<this.columns;s++)r.push(this.getColumn(s));return ie(n,r)}},{key:"cross",value:function(r){var s=new Array(this.rows).fill("").map(function(){return[]});if(this.columns===r.rows)for(var c=0;c<this.rows;c++)for(var p=this.getRow(c),v=function(x){var S=r.getColumn(x);s[c][x]=p.reduce(function(D,L,Y){return D+L*S[Y]},0)},b=0;b<r.columns;b++)v(b);return ie(n,Gd(s))}},{key:"to2D",value:function(){return this.map(function(r){return[r[0],r[1]]})}},{key:"toPoints",value:function(){return this.map(function(r){return new $s(r[0],r[1])})}},{key:"toString",value:function(){var r=Kf(this[0],2),s=r[0],c=r[1],p=Kf(this[1],2),v=p[0],b=p[1],x=Kf(this[2],2),S=x[0],D=x[1];return"matrix(".concat(s," ").concat(c," ").concat(v," ").concat(b," ").concat(S," ").concat(D,")")}},{key:"translate",value:function(r,s){return this.cross(new Zn(r,s))}},{key:"rotate",value:function(r){return this.cross(new Yr(r))}},{key:"scale",value:function(r,s){return this.cross(new Ro(r,s))}}]),n}(G(Array)),Yr=function(t){y(n,t);var e=_(n);function n(r){var s;return Gs(this,n),s=e.call(this,new sr(+Math.cos(r).toFixed(2),+Math.sin(r).toFixed(2),0),new sr(-Math.sin(r).toFixed(2),+Math.cos(r).toFixed(2),0),new sr(0,0,1)),Object.setPrototypeOf(C(s),n.prototype),s}return f(n,[{key:"inverse",value:function(){return this.transpose()}}]),n}(Hn),Ro=function(t){y(n,t);var e=_(n);function n(r,s){var c;return Gs(this,n),De(C(c=e.call(this,new sr(r,0,0),new sr(0,s,0),new sr(0,0,1))),"sx",void 0),De(C(c),"sy",void 0),c.sx=r,c.sy=s,Object.setPrototypeOf(C(c),n.prototype),c}return f(n,[{key:"inverse",value:function(){return new n(1/this.sx,1/this.sy)}}]),n}(Hn),Zn=function(t){y(n,t);var e=_(n);function n(r,s){var c;return Gs(this,n),De(C(c=e.call(this,new sr(1,0,0),new sr(0,1,0),new sr(r,s,1))),"tx",void 0),De(C(c),"ty",void 0),c.tx=r,c.ty=s,Object.setPrototypeOf(C(c),n.prototype),c}return f(n,[{key:"inverse",value:function(){return new n(-this.tx,-this.ty)}}]),n}(Hn),ni={node:!1,edge:!1},Ji={node:!0,edge:!0};function Su(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ja(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Su(Object(n),!0).forEach(function(r){oo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Su(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ri(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||Zf(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _o(t){return function(e){if(Array.isArray(e))return Us(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Zf(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Zf(t,e){if(t){if(typeof t=="string")return Us(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)?Us(t,e):void 0}}function Us(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pa(t){return Pa=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},Pa(t)}function Vr(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function Hs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bt(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 kc,Dc=200,Wm=(te=function(){function t(r){(function(L,Y){if(!(L instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,t),oo(this,"rootEl",void 0),Vr(this,"width",lt,this),Vr(this,"height",ht,this),oo(this,"theme",void 0),oo(this,"eventCenter",void 0),oo(this,"modelMap",new Map),oo(this,"topElement",void 0),oo(this,"animation",void 0),oo(this,"idGenerator",void 0),oo(this,"edgeGenerator",void 0),oo(this,"nodeMoveRules",[]),Vr(this,"edgeType",At,this),Vr(this,"nodes",ze,this),Vr(this,"edges",He,this),Vr(this,"overlapMode",Dt,this),Vr(this,"background",ut,this),Vr(this,"transformModel",Nt,this),Vr(this,"editConfigModel",It,this),Vr(this,"gridSize",en,this),Vr(this,"partial",_t,this),Vr(this,"fakerNode",Tt,this);var s,c=r.container,p=r.background,v=p===void 0?{}:p,b=r.grid,x=r.idGenerator,S=r.edgeGenerator,D=r.animation;this.background=v,Pa(b)==="object"&&(this.gridSize=b.size),this.rootEl=c,this.editConfigModel=new Fl(r),this.eventCenter=new ws,this.transformModel=new Vp(this.eventCenter,r),this.theme=yc(r.style),this.edgeType=r.edgeType||"polyline",this.width=r.width,this.height=r.height,this.animation=(s=D)&&typeof s!="boolean"?hc(In(ni),s):In(s===!0?Ji:ni),this.partial=r.partial,this.overlapMode=r.overlapMode||0,this.idGenerator=x,this.edgeGenerator=Bd(this,S),this.width=r.width||this.rootEl.getBoundingClientRect().width,this.height=r.height||this.rootEl.getBoundingClientRect().height,this.flowId=Do()}var e,n;return e=t,n=[{key:"nodesMap",get:function(){return this.nodes.reduce(function(r,s,c){return r[s.id]={index:c,model:s},r},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(r,s,c){return r[s.id]={index:c,model:s},r},{})}},{key:"modelsMap",get:function(){return[].concat(_o(this.nodes),_o(this.edges)).reduce(function(r,s){return r[s.id]=s,r},{})}},{key:"sortElements",get:function(){var r=[];this.nodes.forEach(function(x){return r.push(x)}),this.edges.forEach(function(x){return r.push(x)}),r=r.sort(function(x,S){return x.zIndex-S.zIndex});for(var s=[],c=[-200,-200],p=[this.width+Dc,this.height+Dc],v=0;v<r.length;v++){var b=r[v];b.visible&&(!this.partial||b.isSelected||this.isElementInArea(b,c,p,!1,!1))&&s.push(b)}return s}},{key:"textEditElement",get:function(){var r=this.nodes.find(function(c){return c.state===yn.TEXT_EDIT}),s=this.edges.find(function(c){return c.state===yn.TEXT_EDIT});return r||s}},{key:"selectElements",get:function(){var r=new Map;return this.nodes.forEach(function(s){s.isSelected&&r.set(s.id,s)}),this.edges.forEach(function(s){s.isSelected&&r.set(s.id,s)}),r}},{key:"selectNodes",get:function(){var r=[];return this.nodes.forEach(function(s){s.isSelected&&r.push(s)}),r}},{key:"getAreaElement",value:function(r,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],b=[],x=[];this.nodes.forEach(function(L){return x.push(L)}),this.edges.forEach(function(L){return x.push(L)});for(var S=0;S<x.length;S++){var D=x[S];v&&!D.visible||!this.isElementInArea(D,r,s,c,p)||b.push(D)}return b}},{key:"getModel",value:function(r){return this.modelMap.get(r)}},{key:"getNodeModelById",value:function(r){var s;return this.fakerNode&&r===this.fakerNode.id?this.fakerNode:(s=this.nodesMap[r])===null||s===void 0?void 0:s.model}},{key:"getPointByClient",value:function(r){var s=r.x,c=r.y,p=this.rootEl.getBoundingClientRect(),v={x:s-p.left,y:c-p.top},b=ri(this.transformModel.HtmlPointToCanvasPoint([v.x,v.y]),2);return{domOverlayPosition:v,canvasOverlayPosition:{x:b[0],y:b[1]}}}},{key:"isElementInArea",value:function(r,s,c){var p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],v=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];if(r.BaseType===tr.NODE){for(var b=ro(r=r),x=b.minX,S=b.minY,D=b.maxX,L=b.maxY,Y=[{x,y:S},{x:D,y:S},{x:D,y:L},{x,y:L}],Z=v,oe=0;oe<Y.length;oe++){var ve=Y[oe],me=ve.x,Ee=ve.y,Me=this.transformModel.CanvasPointToHtmlPoint([me,Ee]),qe=ri(Me,2);if(me=qe[0],Ee=qe[1],Ss([me,Ee],s,c)!==v){Z=!v;break}}return Z}if(r.BaseType===tr.EDGE){var Qe=r=r,Ot=Qe.startPoint,Je=Qe.endPoint,wt=this.transformModel.CanvasPointToHtmlPoint([Ot.x,Ot.y]),nt=this.transformModel.CanvasPointToHtmlPoint([Je.x,Je.y]),rn=Ss(wt,s,c),un=Ss(nt,s,c);return p?rn&&un:rn||un}return!1}},{key:"graphDataToModel",value:function(r){var s=this;if(this.width&&this.height||this.resize(),!r)return this.nodes=[],void(this.edges=[]);r.nodes?this.nodes=os(r.nodes,function(c){var p=s.getModel(c.type);if(!p)throw new Error("找不到".concat(c.type,"对应的节点。"));var v=c.x,b=c.y;return v&&b&&(c.x=Zo(v,s.gridSize),c.y=Zo(b,s.gridSize),Pa(c.text)==="object"&&(c.text.x-=du(v,s.gridSize),c.text.y-=du(b,s.gridSize))),new p(c,s)}):this.nodes=[],r.edges?this.edges=os(r.edges,function(c){var p=s.getModel(c.type);if(!p)throw new Error("找不到".concat(c.type,"对应的边。"));return new p(c,s)}):this.edges=[]}},{key:"modelToGraphData",value:function(){var r=[];this.edges.forEach(function(c){var p=c.getData();p&&!c.virtual&&r.push(p)});var s=[];return this.nodes.forEach(function(c){var p=c.getData();p&&!c.virtual&&s.push(p)}),{nodes:s,edges:r}}},{key:"modelToHistoryData",value:function(){for(var r=!1,s=[],c=0;c<this.nodes.length;c++){var p=this.nodes[c];if(p.isDragging){r=!0;break}s.push(p.getHistoryData())}if(r)return!1;for(var v=!1,b=[],x=0;x<this.edges.length;x++){var S=this.edges[x];if(S.isDragging){v=!0;break}b.push(S.getHistoryData())}return!v&&{nodes:s,edges:b}}},{key:"getEdgeModelById",value:function(r){var s;return(s=this.edgesMap[r])===null||s===void 0?void 0:s.model}},{key:"getElement",value:function(r){return this.modelsMap[r]}},{key:"getNodeEdges",value:function(r){for(var s=[],c=0;c<this.edges.length;c++){var p=this.edges[c],v=this.edges[c].sourceNodeId===r,b=this.edges[c].targetNodeId===r;(v||b)&&s.push(p)}return s}},{key:"getSelectElements",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],s=this.selectElements,c={nodes:[],edges:[]};return s.forEach(function(p){if(p.BaseType===tr.NODE&&c.nodes.push(p.getData()),p.BaseType===tr.EDGE){var v=p.getData(),b=s.get(v.sourceNodeId)&&s.get(v.targetNodeId);(r||b)&&c.edges.push(v)}}),c}},{key:"updateAttributes",value:function(r,s){this.getElement(r).updateAttributes(s)}},{key:"changeNodeId",value:function(r,s){return s||(s=Do()),this.nodesMap[s]?"":this.nodesMap[r]?(this.edges.forEach(function(c){c.sourceNodeId===r&&(c.sourceNodeId=s),c.targetNodeId===r&&(c.targetNodeId=s)}),this.nodesMap[r].model.id=s,this.nodesMap[s]=this.nodesMap[r],s):""}},{key:"changeEdgeId",value:function(r,s){return s||(s=Do()),this.edgesMap[s]?"":this.edgesMap[r]?(this.edges.forEach(function(c){c.id===r&&c.changeEdgeId(s)}),s):""}},{key:"setFakerNode",value:function(r){this.fakerNode=r}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(r,s){return this.modelMap.set(r,s)}},{key:"toFront",value:function(r){var s,c,p,v=((s=this.nodesMap[r])===null||s===void 0?void 0:s.model)||((c=this.edgesMap[r])===null||c===void 0?void 0:c.model);v&&(this.overlapMode===Pn.DEFAULT&&((p=this.topElement)===null||p===void 0||p.setZIndex(),v.setZIndex(9999),this.topElement=v),this.overlapMode===Pn.INCREASE&&this.setElementZIndex(r,"top"))}},{key:"setElementZIndex",value:function(r,s){var c,p,v,b=((c=this.nodesMap[r])===null||c===void 0?void 0:c.model)||((p=this.edgesMap[r])===null||p===void 0?void 0:p.model);b&&(typeof s=="number"&&(v=s),s==="top"&&(v=bf()),s==="bottom"&&(v=--Od),b.setZIndex(v))}},{key:"deleteNode",value:function(r){var s=this.nodesMap[r].model.getData();this.deleteEdgeBySource(r),this.deleteEdgeByTarget(r),this.nodes.splice(this.nodesMap[r].index,1),this.eventCenter.emit(pt.NODE_DELETE,{data:s})}},{key:"addNode",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pt.NODE_ADD,c=arguments.length>2?arguments[2]:void 0,p=Tn(r);p.id&&this.nodesMap[r.id]&&delete p.id;var v=this.getModel(p.type);if(!v)throw new Error("找不到".concat(p.type,"对应的节点,请确认是否已注册此类型节点。"));p.x=Zo(p.x,this.gridSize),p.y=Zo(p.y,this.gridSize);var b=new v(p,this);this.nodes.push(b);var x=b.getData(),S={data:x};return c&&(S.e=c),this.eventCenter.emit(s,S),b}},{key:"cloneNode",value:function(r){var s=this.getNodeModelById(r),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(r,s,c){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],v=this.nodesMap[r];if(v){var b=v.model,x=b.getMoveDistance(s,c,p),S=ri(x,2);s=S[0],c=S[1],this.moveEdge(r,s,c)}}},{key:"moveNode2Coordinate",value:function(r,s,c){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],v=this.nodesMap[r];if(v){var b=v.model,x=b.x,S=b.y,D=s-x,L=c-S;this.moveNode(r,D,L,p)}}},{key:"editText",value:function(r){this.setElementStateById(r,yn.TEXT_EDIT)}},{key:"addEdge",value:function(r){var s=Tn(r),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("找不到".concat(c,"对应的边,请确认是否已注册此类型边。"));var v=new p(ja(ja({},s),{},{type:c}),this),b=v.getData();return this.edges.push(v),this.eventCenter.emit(pt.EDGE_ADD,{data:b}),v}},{key:"moveEdge",value:function(r,s,c){for(var p=0;p<this.edges.length;p++){var v=this.edges[p],b=v.textPosition,x=b.x,S=b.y,D=this.edges[p].sourceNodeId===r,L=this.edges[p].targetNodeId===r;D&&v.moveStartPoint(s,c),L&&v.moveEndPoint(s,c),(D||L)&&this.handleEdgeTextMove(v,x,S)}}},{key:"handleEdgeTextMove",value:function(r,s,c){var p;if(r.customTextPosition===!0)r.resetTextPosition();else if(r.modelType===qt.POLYLINE_EDGE&&(p=r.text)!==null&&p!==void 0&&p.value){var v=r.text,b=Wf(v,r.points);r.moveText(b.x-v.x,b.y-v.y)}else{var x=r.textPosition,S=x.x,D=x.y;r.moveText(S-s,D-c)}}},{key:"deleteEdgeBySourceAndTarget",value:function(r,s){for(var c=0;c<this.edges.length;c++)if(this.edges[c].sourceNodeId===r&&this.edges[c].targetNodeId===s){var p=this.edges[c].getData();this.edges.splice(c,1),c--,this.eventCenter.emit(pt.EDGE_DELETE,{data:p})}}},{key:"deleteEdgeById",value:function(r){if(this.edgesMap[r]){var s=this.edgesMap[r].index,c=this.edgesMap[r].model.getData();this.edges.splice(s,1),this.eventCenter.emit(pt.EDGE_DELETE,{data:c})}}},{key:"deleteEdgeBySource",value:function(r){for(var s=0;s<this.edges.length;s++)if(this.edges[s].sourceNodeId===r){var c=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(pt.EDGE_DELETE,{data:c})}}},{key:"deleteEdgeByTarget",value:function(r){for(var s=0;s<this.edges.length;s++)if(this.edges[s].targetNodeId===r){var c=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(pt.EDGE_DELETE,{data:c})}}},{key:"setElementStateById",value:function(r,s,c){this.nodes.forEach(function(p){p.id===r?p.setElementState(s,c):p.setElementState(yn.DEFAULT)}),this.edges.forEach(function(p){p.id===r?p.setElementState(s,c):p.setElementState(yn.DEFAULT)})}},{key:"updateText",value:function(r,s){this.nodes.forEach(function(c){c.id===r&&c.updateText(s)}),this.edges.forEach(function(c){c.id===r&&c.updateText(s)})}},{key:"selectNodeById",value:function(r){var s,c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];c||this.clearSelectElements();var p=(s=this.nodesMap[r])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectEdgeById",value:function(r){var s,c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];c||this.clearSelectElements();var p=(s=this.edgesMap[r])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectElementById",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];s||this.clearSelectElements();var c=this.getElement(r);c==null||c.setSelected(!0)}},{key:"clearSelectElements",value:function(){var r;this.selectElements.forEach(function(s){s==null||s.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===Pn.DEFAULT&&((r=this.topElement)===null||r===void 0||r.setZIndex())}},{key:"moveNodes",value:function(r,s,c){for(var p=this,v=arguments.length>3&&arguments[3]!==void 0&&arguments[3],b=r.reduce(function(qe,Qe){var Ot=p.nodesMap[Qe].model.getMoveDistance(s,c,v);return qe[Qe]=Ot,qe},{}),x=0;x<this.edges.length;x++){var S=this.edges[x],D=S.textPosition,L=D.x,Y=D.y,Z=b[S.sourceNodeId],oe=void 0,ve=void 0;if(Z){var me=ri(Z,2);oe=me[0],ve=me[1],S.moveStartPoint(oe,ve)}var Ee=b[S.targetNodeId];if(Ee){var Me=ri(Ee,2);oe=Me[0],ve=Me[1],S.moveEndPoint(oe,ve)}(Z||Ee)&&this.handleEdgeTextMove(S,L,Y)}}},{key:"addNodeMoveRules",value:function(r){this.nodeMoveRules.includes(r)||this.nodeMoveRules.push(r)}},{key:"setDefaultEdgeType",value:function(r){this.edgeType=r}},{key:"changeNodeType",value:function(r,s){var c=this.getNodeModelById(r);if(c){var p=c.getData();p.type=s;var v=this.getModel(s);if(!v)throw new Error("找不到".concat(s,"对应的节点,请确认是否已注册此类型节点。"));var b=new v(p,this);this.nodes.splice(this.nodesMap[r].index,1,b),this.getNodeEdges(r).forEach(function(x){if(x.sourceNodeId===r){var S=vf(b,x.startPoint,b.width,b.height);x.updateStartPoint(S)}if(x.targetNodeId===r){var D=vf(b,x.endPoint,b.width,b.height);x.updateEndPoint(D)}})}}},{key:"changeEdgeType",value:function(r,s){var c=this.getEdgeModelById(r);if(c&&c.type!==s){var p=c.getData();p.type=s;var v=this.getModel(s);if(!v)throw new Error("找不到".concat(s,"对应的节点,请确认是否已注册此类型节点。"));delete p.pointsList;var b=new v(p,this);this.edges.splice(this.edgesMap[r].index,1,b)}}},{key:"getNodeIncomingEdge",value:function(r){var s=[];return this.edges.forEach(function(c){c.targetNodeId===r&&s.push(c)}),s}},{key:"getNodeOutgoingEdge",value:function(r){var s=[];return this.edges.forEach(function(c){c.sourceNodeId===r&&s.push(c)}),s}},{key:"getNodeIncomingNode",value:function(r){var s=this,c=[];return this.edges.forEach(function(p){p.targetNodeId===r&&c.push(s.nodesMap[p.sourceNodeId].model)}),c}},{key:"getNodeOutgoingNode",value:function(r){var s=this,c=[];return this.edges.forEach(function(p){p.sourceNodeId===r&&c.push(s.nodesMap[p.targetNodeId].model)}),c}},{key:"setTheme",value:function(r){this.theme=yc(ja(ja({},this.theme),r))}},{key:"resize",value:function(r,s){this.width=r||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 r=this.nodes,s=[],c=[];r.forEach(function(D){var L=D.x,Y=D.y,Z=D.width,oe=D.height,ve=D.getNodeStyle().strokeWidth,me=ve===void 0?0:ve;s=s.concat([L+Z/2+me,L-Z/2-me]),c=c.concat([Y+oe/2+me,Y-oe/2-me])});var p=Math.min.apply(Math,_o(s)),v=Math.max.apply(Math,_o(s)),b=Math.min.apply(Math,_o(c)),x=v-p||0,S=Math.max.apply(Math,_o(c))-b||0;return{virtualRectWidth:x,virtualRectHeight:S,virtualRectCenterPositionX:p+x/2,virtualRectCenterPositionY:b+S/2}}},{key:"translateCenter",value:function(){var r=this.nodes,s=this.width,c=this.height,p=this.rootEl,v=this.transformModel;if(r.length){var b=s||p.clientWidth,x=c||p.clientHeight,S=this.getVirtualRectSize(),D=S.virtualRectCenterPositionX,L=S.virtualRectCenterPositionY;v.focusOn(D,L,b,x)}}},{key:"fitView",value:function(){var r=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,b=this.rootEl,x=this.transformModel;if(c.length){var S=p||b.clientWidth,D=v||b.clientHeight,L=this.getVirtualRectSize(),Y=L.virtualRectWidth,Z=L.virtualRectHeight,oe=L.virtualRectCenterPositionX,ve=L.virtualRectCenterPositionY,me=(Y+s)/S,Ee=(Z+r)/D,Me=0;Me=1/Math.max(me,Ee);var qe=[S/2,D/2];x.zoom(Me,qe),x.focusOn(oe,ve,S,D)}}},{key:"openEdgeAnimation",value:function(r){this.getEdgeModelById(r).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(r){this.getEdgeModelById(r).closeEdgeAnimation()}}],n&&Hs(e.prototype,n),t}(),lt=bt(te.prototype,"width",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ht=bt(te.prototype,"height",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),At=bt(te.prototype,"edgeType",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ze=bt(te.prototype,"nodes",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),He=bt(te.prototype,"edges",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Dt=bt(te.prototype,"overlapMode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Pn.DEFAULT}}),ut=bt(te.prototype,"background",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nt=bt(te.prototype,"transformModel",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),It=bt(te.prototype,"editConfigModel",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),en=bt(te.prototype,"gridSize",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),_t=bt(te.prototype,"partial",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Tt=bt(te.prototype,"fakerNode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bt(te.prototype,"nodesMap",[h.m],Object.getOwnPropertyDescriptor(te.prototype,"nodesMap"),te.prototype),bt(te.prototype,"edgesMap",[h.m],Object.getOwnPropertyDescriptor(te.prototype,"edgesMap"),te.prototype),bt(te.prototype,"modelsMap",[h.m],Object.getOwnPropertyDescriptor(te.prototype,"modelsMap"),te.prototype),bt(te.prototype,"sortElements",[h.m],Object.getOwnPropertyDescriptor(te.prototype,"sortElements"),te.prototype),bt(te.prototype,"textEditElement",[h.m],Object.getOwnPropertyDescriptor(te.prototype,"textEditElement"),te.prototype),bt(te.prototype,"selectElements",[h.m],Object.getOwnPropertyDescriptor(te.prototype,"selectElements"),te.prototype),bt(te.prototype,"selectNodes",[h.m],Object.getOwnPropertyDescriptor(te.prototype,"selectNodes"),te.prototype),bt(te.prototype,"setFakerNode",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"setFakerNode"),te.prototype),bt(te.prototype,"removeFakerNode",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"removeFakerNode"),te.prototype),bt(te.prototype,"setModel",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"setModel"),te.prototype),bt(te.prototype,"toFront",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"toFront"),te.prototype),bt(te.prototype,"setElementZIndex",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"setElementZIndex"),te.prototype),bt(te.prototype,"deleteNode",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"deleteNode"),te.prototype),bt(te.prototype,"addNode",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"addNode"),te.prototype),bt(te.prototype,"cloneNode",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"cloneNode"),te.prototype),bt(te.prototype,"moveNode",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"moveNode"),te.prototype),bt(te.prototype,"moveNode2Coordinate",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"moveNode2Coordinate"),te.prototype),bt(te.prototype,"editText",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"editText"),te.prototype),bt(te.prototype,"addEdge",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"addEdge"),te.prototype),bt(te.prototype,"moveEdge",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"moveEdge"),te.prototype),bt(te.prototype,"deleteEdgeBySourceAndTarget",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"deleteEdgeBySourceAndTarget"),te.prototype),bt(te.prototype,"deleteEdgeById",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"deleteEdgeById"),te.prototype),bt(te.prototype,"deleteEdgeBySource",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"deleteEdgeBySource"),te.prototype),bt(te.prototype,"deleteEdgeByTarget",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"deleteEdgeByTarget"),te.prototype),bt(te.prototype,"setElementStateById",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"setElementStateById"),te.prototype),bt(te.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"updateText"),te.prototype),bt(te.prototype,"selectNodeById",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"selectNodeById"),te.prototype),bt(te.prototype,"selectEdgeById",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"selectEdgeById"),te.prototype),bt(te.prototype,"selectElementById",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"selectElementById"),te.prototype),bt(te.prototype,"clearSelectElements",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"clearSelectElements"),te.prototype),bt(te.prototype,"moveNodes",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"moveNodes"),te.prototype),bt(te.prototype,"setDefaultEdgeType",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"setDefaultEdgeType"),te.prototype),bt(te.prototype,"changeNodeType",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"changeNodeType"),te.prototype),bt(te.prototype,"changeEdgeType",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"changeEdgeType"),te.prototype),bt(te.prototype,"getNodeIncomingEdge",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"getNodeIncomingEdge"),te.prototype),bt(te.prototype,"getNodeOutgoingEdge",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"getNodeOutgoingEdge"),te.prototype),bt(te.prototype,"getNodeIncomingNode",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"getNodeIncomingNode"),te.prototype),bt(te.prototype,"getNodeOutgoingNode",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"getNodeOutgoingNode"),te.prototype),bt(te.prototype,"setTheme",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"setTheme"),te.prototype),bt(te.prototype,"resize",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"resize"),te.prototype),bt(te.prototype,"clearData",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"clearData"),te.prototype),bt(te.prototype,"translateCenter",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"translateCenter"),te.prototype),bt(te.prototype,"fitView",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"fitView"),te.prototype),bt(te.prototype,"openEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"openEdgeAnimation"),te.prototype),bt(te.prototype,"closeEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(te.prototype,"closeEdgeAnimation"),te.prototype),te),SE=Wm;function Jy(t){return Jy=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},Jy(t)}function Qy(){return Qy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qy.apply(this,arguments)}function jE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ev(t,e){return ev=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},ev(t,e)}function PE(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Hd(t);if(e){var s=Hd(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return AE(this,n)}}function AE(t,e){if(e&&(Jy(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 Hd(t){return Hd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hd(t)}function Aa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gm,TE=Di(kc=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&&ev(c,p)})(s,t);var e,n,r=PE(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),Aa(Qi(p=r.call(this)),"stepDrag",void 0),Aa(Qi(p),"stepScrollX",0),Aa(Qi(p),"stepScrollY",0),Aa(Qi(p),"onDragging",function(S){var D=S.deltaX,L=S.deltaY;p.setState({isDragging:!0});var Y=p.props.graphModel,Z=Y.transformModel;Y.editConfigModel.stopMoveGraph!==!0&&Z.translate(D,L)}),Aa(Qi(p),"onDragEnd",function(){p.setState({isDragging:!1})}),Aa(Qi(p),"zoomHandler",function(S){var D=p.props,L=D.graphModel,Y=L.editConfigModel,Z=L.transformModel,oe=L.gridSize,ve=D.graphModel,me=S.deltaX,Ee=S.deltaY;if(Y.stopScrollGraph||S.ctrlKey===!0){if(!Y.stopZoomGraph){S.preventDefault();var Me=ve.getPointByClient({x:S.clientX,y:S.clientY}).canvasOverlayPosition,qe=Me.x,Qe=Me.y;Z.zoom(S.deltaY<0,[qe,Qe])}}else{if(S.preventDefault(),p.stepScrollX+=me,p.stepScrollY+=Ee,Math.abs(p.stepScrollX)>=oe){var Ot=p.stepScrollX%oe,Je=p.stepScrollX-Ot;Z.translate(-Je*Z.SCALE_X,0),p.stepScrollX=Ot}if(Math.abs(p.stepScrollY)>=oe){var wt=p.stepScrollY%oe,nt=p.stepScrollY-wt;Z.translate(0,-nt*Z.SCALE_Y),p.stepScrollY=wt}}}),Aa(Qi(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(pt.BLANK_CLICK,{e:S})}}),Aa(Qi(p),"handleContextMenu",function(S){if(S.target.getAttribute("name")==="canvas-overlay"){S.preventDefault();var D=p.props.graphModel,L=D.getPointByClient({x:S.clientX,y:S.clientY});D.eventCenter.emit(pt.BLANK_CONTEXTMENU,{e:S,position:L})}}),Aa(Qi(p),"mouseDownHandler",function(S){var D=p.props.graphModel,L=D.eventCenter,Y=D.editConfigModel,Z=D.transformModel.SCALE_X,oe=D.gridSize,ve=S.target,me=!Y.adjustEdge&&!Y.adjustNodePosition;(ve.getAttribute("name")==="canvas-overlay"||me)&&(Y.stopMoveGraph!==!0?(p.stepDrag.setStep(oe*Z),p.stepDrag.handleMouseDown(S)):L.emit(pt.BLANK_MOUSEDOWN,{e:S}),p.clickHandler(S))});var v=c.graphModel,b=v.gridSize,x=v.eventCenter;return p.stepDrag=new ti({onDragging:p.onDragging,onDragEnd:p.onDragEnd,step:b,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,b=p.dnd,x=this.state.isDragging;return Object(pe.g)("svg",Qy({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"},b.eventMap()),Object(pe.g)("g",{transform:c},v))}}])&&jE(e.prototype,n),s}(pe.a))||kc;function tv(t){return tv=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},tv(t)}function ME(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nv(t,e){return nv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},nv(t,e)}function DE(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Xd(t);if(e){var s=Xd(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return NE(this,n)}}function NE(t,e){if(e&&(tv(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 Xd(t){return Xd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xd(t)}var RE=Di(Gm=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&&nv(c,p)})(s,t);var e,n,r=DE(s);function s(){return ME(this,s),r.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,b=p.getTools().map(function(x){return Object(pe.g)(x,{graphModel:v,logicFlow:p.instance})});return p.components=b,b}},{key:"triggerToolRender",value:function(){var c=this.props,p=c.tool,v=c.graphModel,b=document.querySelector("#ToolOverlay_".concat(v.flowId)),x=p.getInstance();x.components.forEach(function(S){return S(x,b)}),x.components=[]}},{key:"render",value:function(){var c=this.props.graphModel;return Object(pe.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(c.flowId)},this.getTools())}}])&&kE(e.prototype,n),s}(pe.a))||Gm;function rv(t){return rv=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},rv(t)}function CE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ov(t,e){return ov=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},ov(t,e)}function LE(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Yd(t);if(e){var s=Yd(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return BE(this,n)}}function BE(t,e){if(e&&(rv(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 Yd(t){return Yd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yd(t)}var Um,zE=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,r=LE(s);function s(){return CE(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"render",value:function(){var c=this.props.background;return Object(pe.g)("div",{className:"lf-background"},Object(pe.g)("div",{style:c,className:"lf-background-area"}))}}])&&IE(e.prototype,n),s}(pe.a);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 FE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function av(t,e){return av=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},av(t,e)}function WE(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Vd(t);if(e){var s=Vd(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return GE(this,n)}}function GE(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 Hm(t)}function Hm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vd(t){return Vd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vd(t)}function UE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xm=Di(Um=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&&av(c,p)})(s,t);var e,n,r=WE(s);function s(){var c;FE(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return UE(Hm(c=r.call.apply(r,[this].concat(v))),"id",Do()),c}return e=s,(n=[{key:"renderDot",value:function(){var c=this.props,p=c.config,v=p.color,b=p.thickness,x=b===void 0?2:b,S=c.size,D=c.visible,L=Math.min(Math.max(2,x),S/2),Y=1;return D||(Y=0),Object(pe.g)("rect",{width:L,height:L,rx:L/2,ry:L/2,fill:v,opacity:Y})}},{key:"renderMesh",value:function(){var c=this.props,p=c.config,v=p.color,b=p.thickness,x=b===void 0?1:b,S=c.size,D=c.visible,L=Math.min(Math.max(1,x),S/2),Y="M ".concat(S," 0 H0 M0 0 V0 ").concat(S),Z=1;return D||(Z=0),Object(pe.g)("path",{d:Y,stroke:v,strokeWidth:L,opacity:Z})}},{key:"render",value:function(){var c=this.props,p=c.type,v=c.size,b=c.graphModel.transformModel,x=[b.SCALE_X,b.SKEW_Y,b.SKEW_X,b.SCALE_Y,b.TRANSLATE_X,b.TRANSLATE_Y].join(","),S="matrix(".concat(x,")");return Object(pe.g)("div",{className:"lf-grid"},Object(pe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(pe.g)("defs",null,Object(pe.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(pe.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&$E(e.prototype,n),s}(pe.a))||Um;Xm.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(53);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 HE(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return Ym(n,r);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 Ym(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ym(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Vm,Xs=function(t){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(t).forEach(function(n){var r=HE(n,2),s=r[0],c=r[1];(s==="style"||uv(c)!=="object")&&(e[s]=c)}),Object(pe.g)("line",e)};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 Km(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Kd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Km(Object(n),!0).forEach(function(r){XE(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function XE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function VE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sv(t,e){return sv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},sv(t,e)}function KE(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=qd(t);if(e){var s=qd(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return qE(this,n)}}function qE(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 qd(t){return qd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qd(t)}var qm,ZE=Di(Vm=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&&sv(c,p)})(s,t);var e,n,r=KE(s);function s(){return YE(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"render",value:function(){var c=this.props.snaplineModel,p=c.position,v=c.isShowHorizontal,b=c.isShowVertical,x=c.getStyle(),S=p.x,D=S===void 0?0:S,L=p.y,Y=L===void 0?0:L,Z=Kd(Kd({x1:-1e5,y1:Y,x2:1e5,y2:Y},x),{},{stroke:v?x.stroke:"none"}),oe=Kd(Kd({x1:D,y1:-1e5,x2:D,y2:1e5},x),{},{stroke:b?x.stroke:"none"});return Object(pe.g)("g",{className:"lf-snapline"},Object(pe.g)(Xs,Z),Object(pe.g)(Xs,oe))}}])&&VE(e.prototype,n),s}(pe.a))||Vm;function lv(t){return lv=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},lv(t)}function JE(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return Zm(n,r);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 Zm(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Zm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ju(t){var e=t.x,n=t.y,r=t.width,s=t.height,c=t.className,p=t.radius,v=e-r/2,b=n-s/2,x={};return Object.entries(t).forEach(function(S){var D=JE(S,2),L=D[0],Y=D[1];lv(Y)!=="object"&&(x[L]=Y)}),x.className=c?"lf-basic-shape ".concat(c):"lf-basic-shape",p&&(x.rx=p,x.ry=p),x.x=v,x.y=b,Object(pe.g)("rect",x)}function fv(t){return fv=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},fv(t)}function Ys(){return Ys=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ys.apply(this,arguments)}function Jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Qm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jm(Object(n),!0).forEach(function(r){QE(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QE(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pv(t,e){return pv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},pv(t,e)}function nS(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Zd(t);if(e){var s=Zd(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return rS(this,n)}}function rS(t,e){if(e&&(fv(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 Zd(t){return Zd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zd(t)}ju.defaultProps={className:"",radius:""};var e0,oS=Di(qm=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&&pv(c,p)})(s,t);var e,n,r=nS(s);function s(){return eS(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getNodesOutline",value:function(){var c=this.props.graphModel,p=c.nodes,v=c.editConfigModel,b=v.hoverOutline,x=v.nodeSelectedOutline,S=[];return p.forEach(function(D){if(D.isHovered||D.isSelected){var L=D.isHovered,Y=D.isSelected,Z=D.x,oe=D.y,ve=D.width,me=D.height;if(x&&Y||b&&L){var Ee=D.getOutlineStyle(),Me={};if(Object.keys(Ee).forEach(function(Qe){Qe!=="hover"&&(Me[Qe]=Ee[Qe])}),L){var qe=Ee.hover;Me=Qm(Qm({},Me),qe)}S.push(Object(pe.g)(ju,Ys({transform:D.gMatrix,className:"lf-outline-node",x:Z,y:oe,width:ve+10,height:me+10},Me)))}}}),S}},{key:"getEdgeOutline",value:function(){for(var c=this.props.graphModel,p=c.edges,v=c.editConfigModel,b=v.edgeSelectedOutline,x=v.hoverOutline,S=[],D=0;D<p.length;D++){var L=p[D];(b&&L.isSelected||x&&L.isHovered)&&(L.modelType===qt.LINE_EDGE?S.push(this.getLineOutline(L)):L.modelType===qt.POLYLINE_EDGE?S.push(this.getPolylineOutline(L)):L.modelType===qt.BEZIER_EDGE&&S.push(this.getBezierOutline(L)))}return S}},{key:"getLineOutline",value:function(c){var p=c.startPoint,v=c.endPoint,b=(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,L=c.getOutlineStyle();return Object(pe.g)(ju,Ys({className:"lf-outline-edge",x:b,y:x,width:S,height:D},L))}},{key:"getPolylineOutline",value:function(c){var p=c.points,v=qi(p),b=Ou(v,8),x=b.x,S=b.y,D=b.width,L=b.height,Y=c.getOutlineStyle();return Object(pe.g)(ju,Ys({className:"lf-outline",x,y:S,width:D,height:L},Y))}},{key:"getBezierOutline",value:function(c){var p=c.path,v=Bs(p),b=Ou(v,8),x=b.x,S=b.y,D=b.width,L=b.height,Y=c.getOutlineStyle();return Object(pe.g)(ju,Ys({className:"lf-outline",x,y:S,width:D,height:L},Y))}},{key:"render",value:function(){return Object(pe.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&tS(e.prototype,n),s}(pe.a))||qm;function dv(t){return dv=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},dv(t)}function iS(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return t0(n,r);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,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vs(t){var e=t.x,n=e===void 0?0:e,r=t.y,s=r===void 0?0:r,c=t.r,p=c===void 0?4:c,v=t.className,b={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=iS(x,2),D=S[0],L=S[1];dv(L)!=="object"&&(b[D]=L)}),b.className=v?"lf-basic-shape ".concat(v):"lf-basic-shape",Object(pe.g)("circle",b)}function hv(t){return hv=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},hv(t)}function aS(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return n0(n,r);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 n0(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function n0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Jf(){return Jf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jf.apply(this,arguments)}function r0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i0(t,e,n){return e&&o0(t.prototype,e),n&&o0(t,n),t}function a0(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&&yv(t,e)}function yv(t,e){return yv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},yv(t,e)}function u0(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Qd(t);if(e){var s=Qd(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return uS(this,n)}}function uS(t,e){if(e&&(hv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jd(t)}function Jd(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qd(t){return Qd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qd(t)}function vv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c0,s0=function(t){a0(n,t);var e=u0(n);function n(){var r;return r0(this,n),vv(Jd(r=e.call(this)),"dragHandler",void 0),vv(Jd(r),"onDragging",function(s){var c=s.event,p=r.props,v=p.graphModel,b=p.bezierModel,x=p.type,S=v.getPointByClient({x:c.clientX,y:c.clientY}).canvasOverlayPosition,D=S.x,L=S.y;b.updateAdjustAnchor({x:D,y:L},x),v.eventCenter.emit(pt.EDGE_ADJUST,{data:b.getData()})}),vv(Jd(r),"onDragEnd",function(){r.props.bezierModel.isDragging=!1}),r.dragHandler=new ti({onDragging:r.onDragging,onDragEnd:r.onDragEnd}),r}return i0(n,[{key:"render",value:function(){var r=this,s=this.props.position,c=s.x,p=s.y,v=this.props.bezierModel.getEdgeStyle().adjustAnchor;return Object(pe.g)(Vs,Jf({className:"lf-bezier-adjust-anchor",x:c,y:p},v,{onMouseDown:function(b){r.dragHandler.handleMouseDown(b)}}))}}]),n}(pe.a),cS=Di(e0=function(t){a0(n,t);var e=u0(n);function n(){return r0(this,n),e.apply(this,arguments)}return i0(n,[{key:"getBezierAdjust",value:function(r,s){var c=r.path,p=r.id,v=aS(Bs(c),4),b=v[0],x=v[1],S=v[2],D=v[3],L=r.getEdgeStyle().adjustLine,Y=[];return Y.push(Object(pe.g)(Xs,Jf({x1:b.x,y1:b.y,x2:x.x,y2:x.y},L))),Y.push(Object(pe.g)(s0,{position:x,bezierModel:r,graphModel:s,key:"".concat(p,"_ePre"),type:"sNext"})),Y.push(Object(pe.g)(Xs,Jf({x1:D.x,y1:D.y,x2:S.x,y2:S.y},L))),Y.push(Object(pe.g)(s0,{position:S,bezierModel:r,graphModel:s,key:"".concat(p,"_sNext"),type:"ePre"})),Y}},{key:"selectedBezierEdge",value:function(){for(var r=this.props.graphModel,s=r.edges,c=[],p=0;p<s.length;p++){var v=s[p];v.isSelected&&v.modelType===qt.BEZIER_EDGE&&v.draggable&&c.push(this.getBezierAdjust(v,r))}return c}},{key:"render",value:function(){return Object(pe.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),n}(pe.a))||e0;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 sS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bv(t,e){return bv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},bv(t,e)}function fS(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=eh(t);if(e){var s=eh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return pS(this,n)}}function pS(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 function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function eh(t){return eh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},eh(t)}var l0,dS=Di(c0=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,r=fS(s);function s(){return sS(this,s),r.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(pe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(pe.g)("g",{transform:c},p))}}])&&lS(e.prototype,n),s}(pe.a))||c0;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 _v(){return _v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_v.apply(this,arguments)}function hS(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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ov(t,e){return Ov=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Ov(t,e)}function vS(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=th(t);if(e){var s=th(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return gS(this,n)}}function gS(t,e){if(e&&(mv(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 th(t){return th=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},th(t)}var bS=Di(l0=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,r=vS(s);function s(){return hS(this,s),r.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",b=this.props.getView,x=b(c.type);return Object(pe.g)(x,{key:c.id,model:c,graphModel:p,overlay:v})}},{key:"render",value:function(){var c=this,p=this.props,v=p.graphModel,b=p.tool,x=p.options,S=p.dnd,D=p.snaplineModel,L={};x.width&&(L.width="".concat(v.width,"px")),x.height&&(L.height="".concat(v.height,"px"));var Y=x.grid,Z=v.fakerNode,oe=v.editConfigModel.adjustEdge;return Object(pe.g)("div",{className:"lf-graph","flow-id":v.flowId,style:L},Object(pe.g)(TE,{graphModel:v,dnd:S},Object(pe.g)("g",{className:"lf-base"},os(v.sortElements,function(ve){return c.getComponent(ve,v)})),Z?this.getComponent(Z,v):""),Object(pe.g)(dS,{graphModel:v},Object(pe.g)(oS,{graphModel:v}),oe?Object(pe.g)(cS,{graphModel:v}):"",x.snapline!==!1?Object(pe.g)(ZE,{snaplineModel:D}):""),Object(pe.g)(RE,{graphModel:v,tool:b}),x.background&&Object(pe.g)(zE,{background:x.background}),x.grid&&Object(pe.g)(Xm,_v({},Y,{graphModel:v})))}}],n&&yS(e.prototype,n),s}(pe.a))||l0,mS=bS;function f0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function nh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?f0(Object(n),!0).forEach(function(r){Ta(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ta(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OS=function(){function t(r){var s=this;(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,t),Ta(this,"nodeConfig",void 0),Ta(this,"lf",void 0),Ta(this,"fakerNode",void 0),Ta(this,"stopDrag",function(){s.nodeConfig=null,window.document.removeEventListener("mouseup",s.stopDrag)}),Ta(this,"dragEnter",function(p){s.nodeConfig&&!s.fakerNode&&(s.fakerNode=s.lf.createFakerNode(nh(nh({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY}))))}),Ta(this,"onDragOver",function(p){if(p.preventDefault(),s.fakerNode){var v=s.clientToLocalPoint({x:p.clientX,y:p.clientY}),b=v.x,x=v.y;s.fakerNode.moveTo(b,x);var S=s.fakerNode.getData();s.lf.setNodeSnapLine(S),s.lf.graphModel.eventCenter.emit(pt.NODE_DND_DRAG,{data:S})}return!1}),Ta(this,"onDragLeave",function(){s.fakerNode&&(s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)}),Ta(this,"onDrop",function(p){s.lf.graphModel&&p&&s.nodeConfig&&(s.lf.addNode(nh(nh({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY})),pt.NODE_DND_ADD,p),p.preventDefault(),p.stopPropagation(),s.nodeConfig=null,s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)});var c=r.lf;this.lf=c}var e,n;return e=t,(n=[{key:"clientToLocalPoint",value:function(r){var s=r.x,c=r.y,p=cc(this.lf.options,["grid","size"]),v=this.lf.graphModel.getPointByClient({x:s,y:c}).canvasOverlayPosition,b=v.x,x=v.y;return{x:Zo(b,p),y:Zo(x,p)}}},{key:"startDrag",value:function(r){this.lf.options.isSilentMode||(this.nodeConfig=r,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}}}])&&_S(e.prototype,n),t}();function p0(t){var e=t.container,n=t.grid,r=t.width,s=t.height;if(!e)throw new Error("请检查 container 参数是否有效");if(typeof r=="string"||typeof s=="string")throw new Error("width或height不支持传入字符串请传数字");return n&&(t.grid=yr({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},n)),yr({},h0,t)}var bn,d0,h0={background:!1,grid:!1,textEdit:!0,disabledTools:[]};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 xv(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return y0(n,r);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 y0(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function rh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?v0(Object(n),!0).forEach(function(r){g0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wS(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qf(){return Qf=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=SS(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Qf.apply(this,arguments)}function SS(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Pu(t))!==null;);return t}function Ev(t,e){return Ev=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Ev(t,e)}function jS(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Pu(t);if(e){var s=Pu(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return PS(this,n)}}function PS(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 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 Pu(t){return Pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pu(t)}function g0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ti(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 Sv=(bn=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&&Ev(c,p)})(s,t);var e,n,r=jS(s);function s(){var c;xS(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return g0(oh(c=r.call.apply(r,[this].concat(v))),"modelType",qt.BEZIER_EDGE),wS(oh(c),"path",d0,oh(c)),c}return e=s,(n=[{key:"initEdgeData",value:function(c){this.offset=100,Qf(Pu(s.prototype),"initEdgeData",this).call(this,c)}},{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.bezier;return rh(rh({},Qf(Pu(s.prototype),"getEdgeStyle",this).call(this)),In(c))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var c=0,p=0;return this.pointsList.forEach(function(v){var b=v.x,x=v.y;c+=b,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=Qf(Pu(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(v){return{x:v.x,y:v.y}});return rh(rh({},c),{},{pointsList:p})}},{key:"getControls",value:function(){var c=this.startPoint,p=this.endPoint;return Zi({start:c,end:p,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(c){var p=xv(c,4),v=p[0],b=p[1],x=p[2],S=p[3];return"M ".concat(v.x," ").concat(v.y,`
C `).concat(b.x," ").concat(b.y,`,
`).concat(x.x," ").concat(x.y,`,
`).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=In(c),p=In(p);var v={x:this.startPoint.x,y:this.startPoint.y},b={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,b],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(c){this.startPoint=c,this.updatePoints()}},{key:"updateEndPoint",value:function(c){this.endPoint=c,this.updatePoints()}},{key:"moveStartPoint",value:function(c,p){this.startPoint.x+=c,this.startPoint.y+=p;var v=xv(this.pointsList,3),b=v[1],x=v[2];b.x+=c,b.y+=p,this.updatePath(b,x)}},{key:"moveEndPoint",value:function(c,p){this.endPoint.x+=c,this.endPoint.y+=p;var v=xv(this.pointsList,3),b=v[1],x=v[2];x.x+=c,x.y+=p,this.updatePath(b,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,b=c.sourceNode,x=c.targetNode,S=Zi({start:p,end:v,sourceNode:b,targetNode:x,offset:this.offset}),D=S.sNext,L=S.ePre;this.pointsList=[p,D,L,v],this.initPoints()}}])&&ES(e.prototype,n),s}(_f),d0=Ti(bn.prototype,"path",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ti(bn.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"initPoints"),bn.prototype),Ti(bn.prototype,"updatePoints",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"updatePoints"),bn.prototype),Ti(bn.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"updateStartPoint"),bn.prototype),Ti(bn.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"updateEndPoint"),bn.prototype),Ti(bn.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"moveStartPoint"),bn.prototype),Ti(bn.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"moveEndPoint"),bn.prototype),Ti(bn.prototype,"updateAdjustAnchor",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"updateAdjustAnchor"),bn.prototype),Ti(bn.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"getAdjustStart"),bn.prototype),Ti(bn.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"getAdjustEnd"),bn.prototype),Ti(bn.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor(bn.prototype,"updateAfterAdjustStartAndEnd"),bn.prototype),bn),Xe,b0,m0,_0,O0,w0,x0,E0,S0,j0,P0,A0,T0,M0,k0,D0,N0,R0,C0,I0,L0,B0,z0,AS=function(t){return t==null};function TS(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||F0(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function jv(t){return jv=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},jv(t)}function F0(t,e){if(t){if(typeof t=="string")return $0(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)?$0(t,e):void 0}}function $0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function W0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function io(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W0(Object(n),!0).forEach(function(r){Oo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lr(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function MS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yt(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 Ma,G0,ka=(Xe=function(){function t(r,s){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),Oo(this,"id",""),lr(this,"type",b0,this),lr(this,"x",m0,this),lr(this,"y",_0,this),lr(this,"text",O0,this),lr(this,"properties",w0,this),lr(this,"_width",x0,this),lr(this,"_height",E0,this),lr(this,"anchorsOffset",S0,this),lr(this,"isSelected",j0,this),lr(this,"isHovered",P0,this),lr(this,"isShowAnchor",A0,this),lr(this,"isDragging",T0,this),lr(this,"isHitable",M0,this),lr(this,"draggable",k0,this),lr(this,"visible",D0,this),lr(this,"enableRotate",N0,this),Oo(this,"virtual",!1),Oo(this,"graphModel",void 0),lr(this,"zIndex",R0,this),lr(this,"state",C0,this),lr(this,"autoToFront",I0,this),lr(this,"style",L0,this),lr(this,"gMatrix",B0,this),lr(this,"rotate",z0,this),Oo(this,"BaseType",tr.NODE),Oo(this,"modelType",qt.NODE),Oo(this,"additionStateData",void 0),Oo(this,"targetRules",[]),Oo(this,"sourceRules",[]),Oo(this,"moveRules",[]),Oo(this,"hasSetTargetRules",!1),Oo(this,"hasSetSourceRules",!1),this.graphModel=s,this.initNodeData(r),this.setAttributes()}var e,n;return e=t,n=[{key:"width",get:function(){return this._width},set:function(r){this._width=r}},{key:"height",get:function(){return this._height},set:function(r){this._height=r}},{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(r){if(r.properties||(r.properties={}),!r.id){var s=this.graphModel.idGenerator,c=s&&s(r.type),p=this.createId();r.id=p||c||Do()}this.formatText(r),yr(this,function(v){return mi(v,["id","type","x","y","text","properties","virtual"])}(r)),this.graphModel.overlapMode===Pn.INCREASE&&(this.zIndex=r.zIndex||bf())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(r){r.text||(r.text={value:"",x:r.x,y:r.y,draggable:!1,editable:!0}),r.text&&typeof r.text=="string"?r.text={value:r.text,x:r.x,y:r.y,draggable:!1,editable:!0}:r.text&&r.text.editable===void 0&&(r.text.editable=!0)}},{key:"getData",value:function(){var r=this.text,s=r.x,c=r.y,p=r.value,v=this.properties;Object(h.x)(v)&&(v=Object(h.I)(v));var b={id:this.id,type:this.type,x:this.x,y:this.y,properties:v};return this.rotate&&(b.rotate=this.rotate),this.graphModel.overlapMode===Pn.INCREASE&&(b.zIndex=this.zIndex),p&&(b.text={x:s,y:c,value:p}),b}},{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 r=this.graphModel.theme.nodeText;return In(r)}},{key:"getRotateControlStyle",value:function(){var r=this.graphModel.theme.rotateControl;return In(r)}},{key:"getAnchorStyle",value:function(r){var s=this.graphModel.theme.anchor;return In(s)}},{key:"getAnchorLineStyle",value:function(r){var s=this.graphModel.theme.anchorLine;return In(s)}},{key:"getOutlineStyle",value:function(){var r=this.graphModel.theme.outline;return In(r)}},{key:"isAllowConnectedAsSource",value:function(r,s,c,p){var v=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var b,x=!0,S=0;S<v.length;S++){var D=v[S];if(!D.validate.call(this,this,r,s,c,p)){x=!1,b=D.message;break}}return{isAllPass:x,msg:b}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(r,s,c,p){var v=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var b,x=!0,S=0;S<v.length;S++){var D=v[S];if(!D.validate.call(this,r,this,s,c,p)){x=!1,b=D.message;break}}return{isAllPass:x,msg:b}}},{key:"isAllowMoveNode",value:function(r,s){var c,p=!0,v=!0,b=function(D,L){var Y=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!Y){if(Array.isArray(D)||(Y=F0(D))||L&&D&&typeof D.length=="number"){Y&&(D=Y);var Z=0,oe=function(){};return{s:oe,n:function(){return Z>=D.length?{done:!0}:{done:!1,value:D[Z++]}},e:function(Me){throw Me},f:oe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ve,me=!0,Ee=!1;return{s:function(){Y=Y.call(D)},n:function(){var Me=Y.next();return me=Me.done,Me},e:function(Me){Ee=!0,ve=Me},f:function(){try{me||Y.return==null||Y.return()}finally{if(Ee)throw ve}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(b.s();!(c=b.n()).done;){var x=(0,c.value)(this,r,s);if(!x)return!1;if(jv(x)==="object"){var S=x;if(S.x===!1&&S.y===!1)return!1;p=p&&S.x,v=v&&S.y}}}catch(D){b.e(D)}finally{b.f()}return{x:p,y:v}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var r=this.anchorsOffset,s=this.id,c=this.x,p=this.y;return r&&r.length>0?r.map(function(v,b){return v.length?(v=v,{id:"".concat(s,"_").concat(b),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(b)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(r){return function(s,c){for(var p,v=ks(c),b=Number.MAX_SAFE_INTEGER,x=0;x<v.length;x++){var S=ar(s.x,s.y,v[x].x,v[x].y);S<b&&(b=S,p={index:x,anchor:Vi(Vi({},v[x]),{},{x:v[x].x,y:v[x].y,id:v[x].id})})}return p}(r,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 r=this.getAnchorsByOffset(),s=this.x,c=this.y,p=this.rotate;return r.forEach(function(v){var b=v.x,x=v.y,S=TS(new Hn([b,x,1]).translate(-s,-c).rotate(p).translate(s,c)[0],2),D=S[0],L=S[1];v.x=D,v.y=L}),r}},{key:"getAnchorInfo",value:function(r){if(!AS(r))for(var s=0;s<this.anchors.length;s++){var c=this.anchors[s];if(c.id===r)return c}}},{key:"addNodeMoveRules",value:function(r){this.moveRules.includes(r)||this.moveRules.push(r)}},{key:"move",value:function(r,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,v=!1;if(c)p=!0,v=!0;else{var b=this.isAllowMoveNode(r,s);typeof b=="boolean"?(p=b,v=b):(p=b.x,v=b.y)}if(p){var x=this.x+r;this.x=x,this.text&&this.moveText(r,0)}if(v){var S=this.y+s;this.y=S,this.text&&this.moveText(0,s)}return p||v}},{key:"getMoveDistance",value:function(r,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,v=!1,b=0,x=0;if(c)p=!0,v=!0;else{var S=this.isAllowMoveNode(r,s);typeof S=="boolean"?(p=S,v=S):(p=S.x,v=S.y)}if(p&&r){var D=this.x+r;this.x=D,this.text&&this.moveText(r,0),b=r}if(v&&s){var L=this.y+s;this.y=L,this.text&&this.moveText(0,s),x=s}return[b,x]}},{key:"moveTo",value:function(r,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=r-this.x,v=s-this.y;return!(!c&&!this.isAllowMoveNode(p,v)||(this.text&&this.text&&this.moveText(p,v),this.x=r,this.y=s,0))}},{key:"moveText",value:function(r,s){var c=this.text,p=c.x,v=c.y,b=c.value,x=c.draggable,S=c.editable;this.text={value:b,editable:S,draggable:x,x:p+r,y:v+s}}},{key:"updateText",value:function(r){this.text=io(io({},Object(h.I)(this.text)),{},{value:r})}},{key:"setSelected",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=r}},{key:"setHovered",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=r,this.setIsShowAnchor(r)}},{key:"setIsShowAnchor",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isShowAnchor=r}},{key:"setEnableRotate",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.enableRotate=r}},{key:"setHitable",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=r}},{key:"setElementState",value:function(r,s){this.state=r,this.additionStateData=s}},{key:"setProperty",value:function(r,s){this.properties=io(io({},Object(h.I)(this.properties)),{},Oo({},r,Tn(s))),this.setAttributes()}},{key:"setProperties",value:function(r){this.properties=io(io({},Object(h.I)(this.properties)),Tn(r)),this.setAttributes()}},{key:"deleteProperty",value:function(r){delete this.properties[r],this.setAttributes()}},{key:"setStyle",value:function(r,s){this.style=io(io({},this.style),{},Oo({},r,Tn(s)))}},{key:"setStyles",value:function(r){this.style=io(io({},this.style),Tn(r))}},{key:"updateStyles",value:function(r){this.style=io({},Tn(r))}},{key:"setZIndex",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=r}},{key:"updateAttributes",value:function(r){yr(this,r)}}],n&&MS(e.prototype,n),t}(),b0=Yt(Xe.prototype,"type",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),m0=Yt(Xe.prototype,"x",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_0=Yt(Xe.prototype,"y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),O0=Yt(Xe.prototype,"text",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),w0=Yt(Xe.prototype,"properties",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),x0=Yt(Xe.prototype,"_width",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),E0=Yt(Xe.prototype,"_height",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),S0=Yt(Xe.prototype,"anchorsOffset",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),j0=Yt(Xe.prototype,"isSelected",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),P0=Yt(Xe.prototype,"isHovered",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A0=Yt(Xe.prototype,"isShowAnchor",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T0=Yt(Xe.prototype,"isDragging",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M0=Yt(Xe.prototype,"isHitable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),k0=Yt(Xe.prototype,"draggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),D0=Yt(Xe.prototype,"visible",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),N0=Yt(Xe.prototype,"enableRotate",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),R0=Yt(Xe.prototype,"zIndex",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),C0=Yt(Xe.prototype,"state",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),I0=Yt(Xe.prototype,"autoToFront",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),L0=Yt(Xe.prototype,"style",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),B0=Yt(Xe.prototype,"gMatrix",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z0=Yt(Xe.prototype,"rotate",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Yt(Xe.prototype,"incoming",[h.m],Object.getOwnPropertyDescriptor(Xe.prototype,"incoming"),Xe.prototype),Yt(Xe.prototype,"outgoing",[h.m],Object.getOwnPropertyDescriptor(Xe.prototype,"outgoing"),Xe.prototype),Yt(Xe.prototype,"addNodeMoveRules",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"addNodeMoveRules"),Xe.prototype),Yt(Xe.prototype,"move",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"move"),Xe.prototype),Yt(Xe.prototype,"getMoveDistance",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"getMoveDistance"),Xe.prototype),Yt(Xe.prototype,"moveTo",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"moveTo"),Xe.prototype),Yt(Xe.prototype,"moveText",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"moveText"),Xe.prototype),Yt(Xe.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateText"),Xe.prototype),Yt(Xe.prototype,"setSelected",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setSelected"),Xe.prototype),Yt(Xe.prototype,"setHovered",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setHovered"),Xe.prototype),Yt(Xe.prototype,"setIsShowAnchor",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setIsShowAnchor"),Xe.prototype),Yt(Xe.prototype,"setEnableRotate",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setEnableRotate"),Xe.prototype),Yt(Xe.prototype,"setHitable",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setHitable"),Xe.prototype),Yt(Xe.prototype,"setElementState",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setElementState"),Xe.prototype),Yt(Xe.prototype,"setProperty",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setProperty"),Xe.prototype),Yt(Xe.prototype,"setProperties",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setProperties"),Xe.prototype),Yt(Xe.prototype,"deleteProperty",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"deleteProperty"),Xe.prototype),Yt(Xe.prototype,"setStyle",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setStyle"),Xe.prototype),Yt(Xe.prototype,"setStyles",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setStyles"),Xe.prototype),Yt(Xe.prototype,"updateStyles",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateStyles"),Xe.prototype),Yt(Xe.prototype,"setZIndex",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setZIndex"),Xe.prototype),Yt(Xe.prototype,"updateAttributes",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateAttributes"),Xe.prototype),Xe);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 U0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function H0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U0(Object(n),!0).forEach(function(r){X0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kS(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function DS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Av(){return Av=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=RS(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Av.apply(this,arguments)}function RS(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ks(t))!==null;);return t}function Tv(t,e){return Tv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Tv(t,e)}function CS(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Ks(t);if(e){var s=Ks(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return IS(this,n)}}function IS(t,e){if(e&&(Pv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ih(t)}function ih(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ks(t){return Ks=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ks(t)}function X0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mv(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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,Y0,V0,kv=(Ma=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,r=CS(s);function s(){var c;DS(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return X0(ih(c=r.call.apply(r,[this].concat(v))),"modelType",qt.CIRCLE_NODE),kS(ih(c),"r",G0,ih(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=Av(Ks(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.circle;return H0(H0({},c),In(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")}]}}])&&NS(e.prototype,n),s}(ka),G0=Mv(Ma.prototype,"r",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Mv(Ma.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(Ma.prototype,"width"),Ma.prototype),Mv(Ma.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(Ma.prototype,"height"),Ma.prototype),Ma);o(129);function Dv(t){return Dv=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},Dv(t)}function Nv(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return K0(n,r);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 K0(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function K0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function q0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Z0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?q0(Object(n),!0).forEach(function(r){Q0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function J0(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Rv(){return Rv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=zS(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Rv.apply(this,arguments)}function zS(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Zs(t))!==null;);return t}function Cv(t,e){return Cv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Cv(t,e)}function FS(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Zs(t);if(e){var s=Zs(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return $S(this,n)}}function $S(t,e){if(e&&(Dv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qs(t)}function qs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zs(t){return Zs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zs(t)}function Q0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Js(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 ea,e_,t_,Iv=(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&&Cv(c,p)})(s,t);var e,n,r=FS(s);function s(){var c;LS(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return Q0(qs(c=r.call.apply(r,[this].concat(v))),"modelType",qt.DIAMOND_NODE),J0(qs(c),"rx",Y0,qs(c)),J0(qs(c),"ry",V0,qs(c)),c}return e=s,(n=[{key:"getNodeStyle",value:function(){var c=Rv(Zs(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.diamond;return Z0(Z0({},c),In(p))}},{key:"points",get:function(){var c=this.x,p=this.y,v=this.rx,b=this.ry;return[[c,p-b],[c+v,p],[c,p+b],[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 b=Nv(v,1)[0];b<c&&(c=b),b>p&&(p=b)}),p-c}},{key:"height",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var b=Nv(v,2)[1];b<c&&(c=b),b>p&&(p=b)}),p-c}},{key:"getDefaultAnchor",value:function(){var c=this;return this.points.map(function(p,v){var b=Nv(p,2);return{x:b[0],y:b[1],id:"".concat(c.id,"_").concat(v)}})}}])&&BS(e.prototype,n),s}(ka),Y0=Js(Kr.prototype,"rx",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),V0=Js(Kr.prototype,"ry",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Js(Kr.prototype,"points",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"points"),Kr.prototype),Js(Kr.prototype,"pointsPosition",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"pointsPosition"),Kr.prototype),Js(Kr.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"width"),Kr.prototype),Js(Kr.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"height"),Kr.prototype),Kr);function Lv(t){return Lv=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},Lv(t)}function n_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function r_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?n_(Object(n),!0).forEach(function(r){i_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):n_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function o_(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function WS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bv(){return Bv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=US(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Bv.apply(this,arguments)}function US(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=el(t))!==null;);return t}function zv(t,e){return zv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},zv(t,e)}function HS(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=el(t);if(e){var s=el(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return XS(this,n)}}function XS(t,e){if(e&&(Lv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qs(t)}function Qs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function el(t){return el=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},el(t)}function i_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ah(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 oi,a_,Fv=(ea=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&&zv(c,p)})(s,t);var e,n,r=HS(s);function s(){var c;WS(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return i_(Qs(c=r.call.apply(r,[this].concat(v))),"modelType",qt.ELLIPSE_NODE),o_(Qs(c),"rx",e_,Qs(c)),o_(Qs(c),"ry",t_,Qs(c)),c}return e=s,(n=[{key:"getNodeStyle",value:function(){var c=Bv(el(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.ellipse;return r_(r_({},c),In(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,b=this.ry;return[{x:c,y:p-b,id:"".concat(this.id,"_0")},{x:c+v,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+b,id:"".concat(this.id,"_2")},{x:c-v,y:p,id:"".concat(this.id,"_3")}]}}])&&GS(e.prototype,n),s}(ka),e_=ah(ea.prototype,"rx",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),t_=ah(ea.prototype,"ry",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),ah(ea.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(ea.prototype,"width"),ea.prototype),ah(ea.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(ea.prototype,"height"),ea.prototype),ea);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 Wv(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return u_(n,r);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 u_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function s_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?c_(Object(n),!0).forEach(function(r){l_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function YS(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function VS(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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gv(){return Gv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=qS(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Gv.apply(this,arguments)}function qS(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=tl(t))!==null;);return t}function Uv(t,e){return Uv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Uv(t,e)}function ZS(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=tl(t);if(e){var s=tl(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return JS(this,n)}}function JS(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 uh(t)}function uh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tl(t){return tl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tl(t)}function l_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ch(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 Hv,f_,Xv=(oi=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&&Uv(c,p)})(s,t);var e,n,r=ZS(s);function s(){var c;VS(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return l_(uh(c=r.call.apply(r,[this].concat(v))),"modelType",qt.POLYGON_NODE),YS(uh(c),"points",a_,uh(c)),c}return e=s,(n=[{key:"getNodeStyle",value:function(){var c=Gv(tl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.polygon;return s_(s_({},c),In(p))}},{key:"pointsPosition",get:function(){var c=this.x,p=this.y,v=this.width,b=this.height;return this.points.map(function(x){return{x:x[0]+c-v/2,y:x[1]+p-b/2}})}},{key:"width",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var b=Wv(v,1)[0];b<c&&(c=b),b>p&&(p=b)}),p-c}},{key:"height",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var b=Wv(v,2)[1];b<c&&(c=b),b>p&&(p=b)}),p-c}},{key:"getDefaultAnchor",value:function(){var c=this,p=this.x,v=this.y,b=this.width,x=this.height;return this.points.map(function(S,D){var L=Wv(S,2),Y=L[0],Z=L[1];return{x:p+Y-b/2,y:v+Z-x/2,id:"".concat(c.id,"_").concat(D)}})}}])&&KS(e.prototype,n),s}(ka),a_=ch(oi.prototype,"points",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),ch(oi.prototype,"pointsPosition",[h.m],Object.getOwnPropertyDescriptor(oi.prototype,"pointsPosition"),oi.prototype),ch(oi.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(oi.prototype,"width"),oi.prototype),ch(oi.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(oi.prototype,"height"),oi.prototype),oi);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 p_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function d_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?p_(Object(n),!0).forEach(function(r){h_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QS(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function ej(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vv(){return Vv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=nj(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Vv.apply(this,arguments)}function nj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=nl(t))!==null;);return t}function Kv(t,e){return Kv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Kv(t,e)}function rj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=nl(t);if(e){var s=nl(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return oj(this,n)}}function oj(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 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 nl(t){return nl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nl(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 Au,qv=(Hv=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&&Kv(c,p)})(s,t);var e,n,r=rj(s);function s(){var c;ej(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return h_(sh(c=r.call.apply(r,[this].concat(v))),"modelType",qt.RECT_NODE),QS(sh(c),"radius",f_,sh(c)),c}return e=s,(n=[{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.width,b=this.height;return[{x:c,y:p-b/2,id:"".concat(this.id,"_0")},{x:c+v/2,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+b/2,id:"".concat(this.id,"_2")},{x:c-v/2,y:p,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var c=Vv(nl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.rect;return d_(d_({},c),In(p))}}])&&tj(e.prototype,n),s}(ka),f_=function(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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}(Hv.prototype,"radius",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Hv);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 y_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function v_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?y_(Object(n),!0).forEach(function(r){b_(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ij(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jv(){return Jv=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(t,e,n){var r=uj(t,e);if(r){var s=Object.getOwnPropertyDescriptor(r,e);return s.get?s.get.call(arguments.length<3?t:n):s.value}},Jv.apply(this,arguments)}function uj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=rl(t))!==null;);return t}function Qv(t,e){return Qv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Qv(t,e)}function cj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=rl(t);if(e){var s=rl(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return sj(this,n)}}function sj(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 g_(t)}function g_(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rl(t){return rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rl(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 m_(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 eg=(Au=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&&Qv(c,p)})(s,t);var e,n,r=cj(s);function s(){var c;ij(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return b_(g_(c=r.call.apply(r,[this].concat(v))),"modelType",qt.TEXT_NODE),c}return e=s,(n=[{key:"getTextStyle",value:function(){var c=Jv(rl(s.prototype),"getTextStyle",this).call(this),p=this.graphModel.theme.text;return v_(v_({},c),In(p))}},{key:"width",get:function(){var c=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return gf({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 gf({rows:c,fontSize:p,rowsLength:c.length}).height}}])&&aj(e.prototype,n),s}(ka),m_(Au.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(Au.prototype,"width"),Au.prototype),m_(Au.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(Au.prototype,"height"),Au.prototype),Au);function tg(t){return tg=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},tg(t)}function lj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ng(t,e){return ng=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},ng(t,e)}function pj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=lh(t);if(e){var s=lh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return dj(this,n)}}function dj(t,e){if(e&&(tg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return __(t)}function __(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 hj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mi,O_,w_,x_,rg=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,r=pj(s);function s(){var c;lj(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return hj(__(c=r.call.apply(r,[this].concat(v))),"modelType",qt.HTML_NODE),c}return e=s,(n=[{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.width,b=this.height;return[{x:c,y:p-b/2,id:"".concat(this.id,"_0")},{x:c+v/2,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+b/2,id:"".concat(this.id,"_2")},{x:c-v/2,y:p,id:"".concat(this.id,"_3")}]}}])&&fj(e.prototype,n),s}(ka);function E_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function og(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function yj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ep(t,e,n,r,s){var c={};return Object.keys(r).forEach(function(p){c[p]=r[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 j_=(Mi=function(){function t(r){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),S_(this,"graphModel",void 0),og(this,"isShowHorizontal",O_,this),og(this,"isShowVertical",w_,this),og(this,"position",x_,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=r}var e,n;return e=t,n=[{key:"getStyle",value:function(){return function(r){for(var s=1;s<arguments.length;s++){var c=arguments[s]!=null?arguments[s]:{};s%2?E_(Object(c),!0).forEach(function(p){S_(r,p,c[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(c)):E_(Object(c)).forEach(function(p){Object.defineProperty(r,p,Object.getOwnPropertyDescriptor(c,p))})}return r}({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(r,s){for(var c=r.x,p=r.y,v=!1,b=!1,x=0;x<s.length;x++){var S=s[x];if(S.id!==r.id&&(c===S.x&&(v=!0),p===S.y&&(b=!0),v&&b))break}return{isShowVertical:v,isShowHorizontal:b,position:{x:c,y:p}}}},{key:"getHorizontalSnapline",value:function(r,s){var c,p,v=!1,b=r.id;if(b){var x=this.graphModel.fakerNode;if(x&&x.id===b)p=ro(x);else{var S=this.graphModel.getNodeModelById(b);p=ro(S)}}for(var D=0;D<s.length;D++){var L=s[D];if(L.id!==r.id){var Y=ro(L);if(Y.minY===p.minY||Y.maxY===p.minY){v=!0,c=p.minY;break}if(Y.minY===p.maxY||Y.maxY===p.maxY){v=!0,c=p.maxY;break}}}return yr({isShowHorizontal:v,position:{y:c}})}},{key:"getVerticalSnapline",value:function(r,s){var c,p,v=!1,b=r.id;if(b){var x=this.graphModel.fakerNode;if(x&&x.id===b)p=ro(x);else{var S=this.graphModel.getNodeModelById(b);p=ro(S)}}for(var D=0;D<s.length;D++){var L=s[D];if(L.id!==r.id){var Y=ro(L);if(Y.minX===p.minX||Y.maxX===p.minX){v=!0,c=p.minX;break}if(Y.minX===p.maxX||Y.maxX===p.maxX){v=!0,c=p.maxX;break}}}return yr({isShowVertical:v,position:{x:c}})}},{key:"getSnapLinePosition",value:function(r,s){var c=this.getCenterSnapLine(r,s),p=c.isShowHorizontal,v=c.isShowVertical;if(!p){var b=this.getHorizontalSnapline(r,s);b.isShowHorizontal&&(c.isShowHorizontal=b.isShowHorizontal,c.position.y=b.position.y)}if(!v){var x=this.getVerticalSnapline(r,s);x.isShowVertical&&(c.isShowVertical=x.isShowVertical,c.position.x=x.position.x)}return c}},{key:"setSnaplineInfo",value:function(r){var s=r.isShowHorizontal,c=r.isShowVertical,p=r.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(r){var s=this.graphModel.nodes,c=this.getSnapLinePosition(r,s);this.setSnaplineInfo(c)}}],n&&yj(e.prototype,n),t}(),O_=ep(Mi.prototype,"isShowHorizontal",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w_=ep(Mi.prototype,"isShowVertical",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x_=ep(Mi.prototype,"position",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ep(Mi.prototype,"clearSnapline",[h.k],Object.getOwnPropertyDescriptor(Mi.prototype,"clearSnapline"),Mi.prototype),ep(Mi.prototype,"setNodeSnapLine",[h.k],Object.getOwnPropertyDescriptor(Mi.prototype,"setNodeSnapLine"),Mi.prototype),Mi),tp=new Map,P_=function(t){var e=Do(),n=window.requestAnimationFrame(function r(){if(t(),tp.get(e)){var s=window.requestAnimationFrame(r);tp.set(e,s)}});return tp.set(e,n),e},fh=function(t){var e=tp.get(t);e&&(window.cancelAnimationFrame(e),tp.delete(t))};function ig(t){return ig=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},ig(t)}function np(){return np=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},np.apply(this,arguments)}function A_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function ph(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?A_(Object(n),!0).forEach(function(r){na(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vj(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return T_(n,r);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 T_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function T_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ag(t,e){return ag=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},ag(t,e)}function bj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=dh(t);if(e){var s=dh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return mj(this,n)}}function mj(t,e){if(e&&(ig(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ta(t)}function ta(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dh(t){return dh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dh(t)}function na(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _j=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&&ag(c,p)})(s,t);var e,n,r=bj(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),na(ta(c=r.call(this)),"preTargetNode",void 0),na(ta(c),"sourceRuleResults",void 0),na(ta(c),"targetRuleResults",void 0),na(ta(c),"dragHandler",void 0),na(ta(c),"t",void 0),na(ta(c),"onDragStart",function(p){var v=p.event,b=c.props,x=b.anchorData,S=b.nodeModel,D=b.graphModel,L=D.overlapMode;D.selectNodeById(S.id),L!==Pn.INCREASE&&S.autoToFront&&D.toFront(S.id),D.eventCenter.emit(pt.ANCHOR_DRAGSTART,{data:x,e:v,nodeModel:S}),c.setState({startX:x.x,startY:x.y,endX:x.x,endY:x.y})}),na(ta(c),"onDragging",function(p){var v=p.event,b=c.props,x=b.graphModel,S=b.nodeModel,D=b.anchorData,L=x.transformModel,Y=x.eventCenter,Z=x.width,oe=x.height,ve=x.editConfigModel,me=ve.autoExpand,Ee=ve.stopMoveGraph,Me=v.clientX,qe=v.clientY,Qe=x.getPointByClient({x:Me,y:qe}),Ot=Qe.domOverlayPosition,Je=Ot.x,wt=Ot.y,nt=Qe.canvasOverlayPosition,rn=nt.x,un=nt.y;c.t&&fh(c.t);var Gt=[];Je<10?Gt=[10,0]:Je+10>Z?Gt=[-10,0]:wt<10?Gt=[0,10]:wt+10>oe&&(Gt=[0,-10]),c.setState({endX:rn,endY:un,dragging:!0}),c.moveAnchorEnd(rn,un),Gt.length>0&&!Ee&&me&&(c.t=P_(function(){var dn=vj(Gt,2),nr=dn[0],rr=dn[1];L.translate(nr,rr);var uo=c.state,ia=uo.endX,ii=uo.endY;c.setState({endX:ia-nr,endY:ii-rr}),c.moveAnchorEnd(ia-nr,ii-rr)})),Y.emit(pt.ANCHOR_DRAG,{data:D,e:v,nodeModel:S})}),na(ta(c),"onDragEnd",function(p){var v=p.event;c.t&&fh(c.t),c.checkEnd(v),c.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),c.sourceRuleResults.clear(),c.targetRuleResults.clear();var b=c.props,x=b.graphModel,S=b.nodeModel,D=b.anchorData;x.eventCenter.emit(pt.ANCHOR_DRAGEND,{data:D,e:v,nodeModel:S})}),na(ta(c),"checkEnd",function(p){var v=c.props,b=v.graphModel,x=v.nodeModel,S=v.anchorData,D=S.x,L=S.y,Y=S.id,Z=(b.edgeType,c.state),oe=Z.endX,ve=Z.endY,me=Z.dragging,Ee=_a({x:oe,y:ve},b);if(c.preTargetNode&&c.preTargetNode.state!==yn.DEFAULT&&c.preTargetNode.setElementState(yn.DEFAULT),me&&Ee&&Ee.node){var Me=Ee.node,qe=Ee.anchor.id,Qe="".concat(x.id,"_").concat(Me.id,"_").concat(qe,"_").concat(Y),Ot=c.sourceRuleResults.get(Qe)||{},Je=Ot.isAllPass,wt=Ot.msg,nt=c.targetRuleResults.get(Qe)||{},rn=nt.isAllPass,un=nt.msg;if(Je&&rn){Me.setElementState(yn.DEFAULT);var Gt=b.edgeGenerator(x.getData(),b.getNodeModelById(Ee.node.id).getData()),dn=b.addEdge(ph(ph({},Gt),{},{sourceNodeId:x.id,sourceAnchorId:Y,startPoint:{x:D,y:L},targetNodeId:Ee.node.id,targetAnchorId:Ee.anchor.id,endPoint:{x:Ee.anchor.x,y:Ee.anchor.y}})),nr=c.props.anchorData;b.eventCenter.emit(pt.ANCHOR_DROP,{data:nr,e:p,nodeModel:x,edgeModel:dn})}else{var rr=Me.getData();b.eventCenter.emit(pt.CONNECTION_NOT_ALLOWED,{data:rr,msg:un||wt})}}}),c.sourceRuleResults=new Map,c.targetRuleResults=new Map,c.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},c.dragHandler=new ti({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,b=c.node.getAnchorShape(p);if(b)return b;var x=p.x,S=p.y,D=ph(ph({},v),v.hover);return Object(pe.g)("g",null,Object(pe.g)(Vs,np({className:"lf-node-anchor-hover"},D,{x,y:S})),Object(pe.g)(Vs,np({className:"lf-node-anchor"},v,{x,y:S})))}},{key:"moveAnchorEnd",value:function(c,p){var v=this.props,b=v.graphModel,x=v.nodeModel,S=v.anchorData,D=_a({x:c,y:p},b);if(D){var L=D.node,Y=D.anchor.id;if(this.preTargetNode&&this.preTargetNode!==D.node&&this.preTargetNode.setElementState(yn.DEFAULT),S.id===Y)return;this.preTargetNode=L;var Z="".concat(x.id,"_").concat(L.id,"_").concat(Y,"_").concat(S.id);if(!this.targetRuleResults.has(Z)){var oe=D.anchor,ve=x.isAllowConnectedAsSource(L,S,oe),me=L.isAllowConnectedAsTarget(x,S,oe);this.sourceRuleResults.set(Z,bc(ve)),this.targetRuleResults.set(Z,bc(me))}var Ee=this.sourceRuleResults.get(Z).isAllPass,Me=this.targetRuleResults.get(Z).isAllPass;Ee&&Me?L.setElementState(yn.ALLOW_CONNECT):L.setElementState(yn.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==yn.DEFAULT&&this.preTargetNode.setElementState(yn.DEFAULT)}},{key:"isShowLine",value:function(){var c=this.state,p=c.startX,v=c.startY,b=c.endX,x=c.endY;return ar(p,v,b,x)>10}},{key:"render",value:function(){var c=this,p=this.state,v=p.startX,b=p.startY,x=p.endX,S=p.endY,D=this.props,L=D.anchorData.edgeAddable,Y=D.edgeStyle;return Object(pe.g)("g",{className:"lf-anchor"},Object(pe.g)("g",{onMouseDown:function(Z){L!==!1&&c.dragHandler.handleMouseDown(Z)}},this.getAnchorShape()),this.isShowLine()&&Object(pe.g)(Xs,np({x1:v,y1:b,x2:x,y2:S},Y,{"pointer-events":"none"})))}}])&&gj(e.prototype,n),s}(pe.a);function M_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Oj(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M_(Object(n),!0).forEach(function(r){wj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ug(t){return ug=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},ug(t)}function xj(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return k_(n,r);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 k_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function k_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D_(t){var e=t.x,n=e===void 0?0:e,r=t.y,s=r===void 0?0:r,c=t.value,p=t.fontSize,v=t.fill,b=v===void 0?"currentColor":v,x=t.overflowMode,S=x===void 0?"default":x,D=t.textWidth,L=D===void 0?"":D,Y=t.model,Z={textAnchor:"middle","dominant-baseline":"middle",x:n,y:s,fill:b};if(Object.entries(t).forEach(function(qe){var Qe=xj(qe,2),Ot=Qe[0],Je=Qe[1];ug(Je)!=="object"&&(Z[Ot]=Je)}),c){var oe=String(c).split(/[\r\n]/g),ve=oe.length;if(S!=="default"){var me=Y.BaseType,Ee=Y.modelType;if(me===tr.NODE&&Ee!==qt.TEXT_NODE||me===tr.EDGE&&L)return function(qe){var Qe=qe.value,Ot=qe.fontSize,Je=qe.model,wt=qe.fontFamily,nt=wt===void 0?"":wt,rn=qe.lineHeight,un=qe.wrapPadding,Gt=un===void 0?"0, 0":un,dn=qe.overflowMode,nr=qe.x,rr=qe.y,uo=Je.width,ia=Je.textHeight,ii=qe.textWidth||uo,ul=String(Qe).split(/[\r\n]/g),Bh=ul.length,zh=_d({rows:ul,style:{fontSize:"".concat(Ot,"px"),width:"".concat(ii,"px"),fontFamily:nt,lineHeight:rn,padding:Gt},rowsLength:Bh,className:"lf-get-text-height"}),Ic=Je.height>zh?Je.height:zh;ia&&(Ic=ia);var ku=dn==="ellipsis";return ku&&(Ic=Ot+2),Object(pe.g)("g",null,Object(pe.g)("foreignObject",{width:ii,height:Ic,x:nr-ii/2,y:rr-Ic/2},Object(pe.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:Ic,width:ii,padding:Gt}},Object(pe.g)("div",{className:ku?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:ku?ul.join(""):"",style:Oj({},qe)},ul.map(function(Du){return Object(pe.g)("div",{className:"lf-node-text--auto-wrap-inner"},Du)})))))}(t)}if(ve>1){var Me=oe.map(function(qe,Qe){var Ot=(Qe-(ve-1)/2)*(p+2);return Object(pe.g)("tspan",{className:"lf-text-tspan",x:n,y:s+Ot},qe)});return Object(pe.g)("text",Z,Me)}return Object(pe.g)("text",Z,c)}}function cg(t){return cg=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},cg(t)}function sg(){return sg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sg.apply(this,arguments)}function Ej(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return N_(n,r);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 N_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function N_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Sj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lg(t,e){return lg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},lg(t,e)}function jj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=hh(t);if(e){var s=hh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Pj(this,n)}}function Pj(t,e){if(e&&(cg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tu(t)}function Tu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hh(t){return hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hh(t)}function Nc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var R_=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&&lg(c,p)})(s,t);var e,n,r=jj(s);function s(c){var p;(function(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")})(this,s),Nc(Tu(p=r.call(this)),"dragHandler",void 0),Nc(Tu(p),"sumDeltaX",0),Nc(Tu(p),"sumDeltaY",0),Nc(Tu(p),"stepDrag",void 0),Nc(Tu(p),"onDragging",function(b){var x=b.deltaX,S=b.deltaY,D=p.props,L=D.model,Y=Ej(D.graphModel.transformModel.fixDeltaXY(x,S),2),Z=Y[0],oe=Y[1];L.moveText(Z,oe)}),Nc(Tu(p),"dblClickHandler",function(){p.props.editable&&p.props.model.setElementState(yn.TEXT_EDIT)}),Nc(Tu(p),"mouseDownHandle",function(b){var x=p.props,S=x.draggable,D=x.model,L=x.graphModel.editConfigModel.nodeTextDraggable;(S||L)&&(p.stepDrag.model=D,p.stepDrag.handleMouseDown(b))}),c.model;var v=c.draggable;return p.stepDrag=new ti({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,b=p.text,x=v.editConfigModel,S=b.value,D=b.x,L=b.y,Y=b.editable,Z=b.draggable,oe={x:D,y:L,className:"",value:S};Y?oe.className="lf-element-text":Z||x.nodeTextDraggable?oe.className="lf-text-draggable":oe.className="lf-text-disabled";var ve=p.getTextStyle();return Object(pe.g)(D_,sg({},oe,ve,{model:p}))}},{key:"render",value:function(){if(this.props.model.text)return Object(pe.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&Sj(e.prototype,n),s}(pe.a),Aj=window.navigator.userAgent.match(/MSIE|Trident/)!==null,C_=o(130);function fg(t){return fg=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},fg(t)}function pg(){return pg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pg.apply(this,arguments)}function Tj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dg(t,e){return dg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},dg(t,e)}function Mj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=yh(t);if(e){var s=yh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return kj(this,n)}}function kj(t,e){if(e&&(fg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ol(t)}function ol(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 rp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dj=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&&dg(c,p)})(s,t);var e,n,r=Mj(s);function s(c){var p;return function(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}(this,s),rp(ol(p=r.call(this,c)),"style",{}),rp(ol(p),"defaultAngle",void 0),rp(ol(p),"normal",void 0),rp(ol(p),"stepperDrag",void 0),rp(ol(p),"onDragging",function(v){var b,x=v.event,S=p.props,D=S.graphModel,L=S.nodeModel,Y=S.eventCenter,Z=D.selectNodes,oe=L.x,ve=L.y,me=x.clientX,Ee=x.clientY,Me=D.getPointByClient({x:me,y:Ee}).canvasOverlayPosition,qe=Me.x,Qe=Me.y,Ot=new sr(qe-oe,Qe-ve),Je=((b=p.normal)===null||b===void 0?void 0:b.angle(Ot))-p.defaultAngle,wt=new Zn(-oe,-ve).rotate(Je).translate(oe,ve).toString();L.gMatrix=wt,L.rotate=Je;var nt=Object(C_.map)(Z,function(un){return un.id});nt.indexOf(L.id)===-1&&(nt=[L.id]);var rn=Object(C_.reduce)(nt,function(un,Gt){var dn=D.getNodeModelById(Gt);return un[Gt]=dn==null?void 0:dn.getMoveDistance(0,0,!1),un},{});nt.forEach(function(un){D.getNodeEdges(un).forEach(function(Gt){if(rn[Gt.sourceNodeId]){var dn=D.getNodeModelById(Gt.sourceNodeId).anchors.find(function(rr){return rr.id===Gt.sourceAnchorId});Gt.updateStartPoint(dn)}if(rn[Gt.targetNodeId]){var nr=D.getNodeModelById(Gt.targetNodeId).anchors.find(function(rr){return rr.id===Gt.targetAnchorId});Gt.updateEndPoint(nr)}})}),Y.emit(pt.NODE_ROTATE,{e:x,nodeModel:L})}),p.style=c.style,p.stepperDrag=new ti({onDragging:p.onDragging}),p}return e=s,(n=[{key:"render",value:function(){var c=this,p=this.props.nodeModel,v=p.x,b=p.y,x=v+p.width/2+20,S=b-p.height/2-20;return this.normal=new sr(1,0),this.defaultAngle=this.normal.angle(new sr(x-v,S-b)),p.defaultAngle=this.defaultAngle,Object(pe.g)("g",{className:"lf-rotate-control"},Object(pe.g)("g",{onMouseDown:function(D){c.stepperDrag.handleMouseDown(D)}},Object(pe.g)(Vs,pg({},this.style,{cx:x,cy:S}))))}}])&&Tj(e.prototype,n),s}(pe.a);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)}var Nj=["className"];function vh(){return vh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vh.apply(this,arguments)}function Rj(t,e){if(t==null)return{};var n,r,s=function(p,v){if(p==null)return{};var b,x,S={},D=Object.keys(p);for(x=0;x<D.length;x++)b=D[x],v.indexOf(b)>=0||(S[b]=p[b]);return S}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(r=0;r<c.length;r++)n=c[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function gh(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return I_(n,r);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 I_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function I_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function L_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yg(t,e){return yg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},yg(t,e)}function Cj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=bh(t);if(e){var s=bh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Ij(this,n)}}function Ij(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 qr(t)}function qr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bh(t){return bh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bh(t)}function ao(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Da=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&&yg(p,v)})(c,t);var e,n,r,s=Cj(c);function c(p){var v;(function(L,Y){if(!(L instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,c),ao(qr(v=s.call(this)),"t",void 0),ao(qr(v),"moveOffset",void 0),ao(qr(v),"stepDrag",void 0),ao(qr(v),"contextMenuTime",void 0),ao(qr(v),"startTime",void 0),ao(qr(v),"clickTimer",void 0),ao(qr(v),"onDragStart",function(L){var Y=L.event,Z=Y.clientX,oe=Y.clientY,ve=v.props,me=ve.model,Ee=ve.graphModel.getPointByClient({x:Z,y:oe}).canvasOverlayPosition,Me=Ee.x,qe=Ee.y;v.moveOffset={x:me.x-Me,y:me.y-qe}}),ao(qr(v),"onDragging",function(L){var Y=L.event,Z=v.props,oe=Z.model,ve=Z.graphModel,me=ve.editConfigModel,Ee=me.stopMoveGraph,Me=me.autoExpand,qe=ve.transformModel,Qe=ve.selectNodes,Ot=ve.width,Je=ve.height,wt=ve.gridSize;oe.isDragging=!0;var nt=Y.clientX,rn=Y.clientY,un=ve.getPointByClient({x:nt,y:rn}).canvasOverlayPosition,Gt=un.x,dn=un.y,nr=gh(qe.CanvasPointToHtmlPoint([Gt,dn]),2),rr=nr[0],uo=nr[1];if(Gt+=v.moveOffset.x,dn+=v.moveOffset.y,Gt=Zo(Gt,wt),dn=Zo(dn,wt),Ot&&Je){if(!Me||Ee||!(rr<0||uo<0||rr>Ot||uo>Je)){var ia=gh(qe.CanvasPointToHtmlPoint([Gt-oe.width/2,dn-oe.height/2]),2),ii=ia[0],ul=ia[1],Bh=gh(qe.CanvasPointToHtmlPoint([Gt+oe.width/2,dn+oe.height/2]),2),zh=Bh[0],Ic=Bh[1],ku=Math.max(wt,20),Du=[];ii<0?Du=[ku,0]:zh>ve.width?Du=[-ku,0]:ul<0?Du=[0,ku]:Ic>ve.height&&(Du=[0,-ku]),v.t&&fh(v.t);var SA=new Zn(-Gt,-dn).rotate(oe.rotate).translate(Gt,dn).toString();oe.gMatrix=SA;var Fh=Qe.map(function($h){return $h.id});Fh.indexOf(oe.id)===-1&&(Fh=[oe.id]),Du.length>0&&!Ee&&Me?v.t=P_(function(){var $h=gh(Du,2),b1=$h[0],m1=$h[1];qe.translate(b1,m1);var jA=-b1/qe.SCALE_X,PA=-m1/qe.SCALE_X;ve.moveNodes(Fh,jA,PA)}):ve.moveNodes(Fh,Gt-oe.x,dn-oe.y)}}else ve.moveNode2Coordinate(oe.id,Gt,dn)}),ao(qr(v),"onDragEnd",function(){v.t&&fh(v.t),v.props.model.isDragging=!1}),ao(qr(v),"handleClick",function(L){if(v.startTime&&!(new Date().getTime()-v.startTime>200)){var Y=v.props,Z=Y.model,oe=Y.graphModel,ve={data:Z.getData(),e:L,position:oe.getPointByClient({x:L.clientX,y:L.clientY}),isSelected:!1,isMultiple:!1},me=L.button===2,Ee=L.detail===2;if(!me){var Me=oe.editConfigModel,qe=Jo(L,Me);ve.isMultiple=qe,Z.isSelected&&!Ee&&qe?(ve.isSelected=!1,Z.setSelected(!1)):(oe.selectNodeById(Z.id,qe),ve.isSelected=!0,v.toFront()),Ee?(Me.nodeTextEdit&&Z.text.editable&&(Z.setSelected(!1),oe.setElementStateById(Z.id,yn.TEXT_EDIT)),oe.eventCenter.emit(pt.NODE_DBCLICK,ve)):(oe.eventCenter.emit(pt.ELEMENT_CLICK,ve),oe.eventCenter.emit(pt.NODE_CLICK,ve))}}}),ao(qr(v),"handleContextMenu",function(L){L.preventDefault();var Y=v.props,Z=Y.model,oe=Y.graphModel,ve=Z.getData(),me=oe.getPointByClient({x:L.clientX,y:L.clientY});oe.setElementStateById(Z.id,yn.SHOW_MENU,me.domOverlayPosition),Z.isSelected||oe.selectNodeById(Z.id),oe.eventCenter.emit(pt.NODE_CONTEXTMENU,{data:ve,e:L,position:me}),v.toFront()}),ao(qr(v),"handleMouseDown",function(L){var Y=v.props,Z=Y.model,oe=Y.graphModel;v.startTime=new Date().getTime(),oe.editConfigModel.adjustNodePosition&&Z.draggable&&v.stepDrag&&v.stepDrag.handleMouseDown(L)}),ao(qr(v),"setHoverON",function(L){var Y=v.props,Z=Y.model,oe=Y.graphModel;if(!Z.isHovered){var ve=Z.getData();Z.setHovered(!0),oe.eventCenter.emit(pt.NODE_MOUSEENTER,{data:ve,e:L})}}),ao(qr(v),"setHoverOFF",function(L){var Y=v.props,Z=Y.model,oe=Y.graphModel,ve=Z.getData();Z.isHovered&&(Z.setHovered(!1),oe.eventCenter.emit(pt.NODE_MOUSELEAVE,{data:ve,e:L}))}),ao(qr(v),"onMouseOut",function(L){Aj&&v.setHoverOFF(L)});var b=p.graphModel,x=b.gridSize,S=b.eventCenter,D=p.model;return v.stepDrag=new ti({onDragStart:v.onDragStart,onDragging:v.onDragging,onDragEnd:v.onDragEnd,step:x,eventType:"NODE",isStopPropagation:!1,eventCenter:S,model:D}),v}return e=c,r=[{key:"getModel",value:function(p){return p}}],(n=[{key:"getAnchorShape",value:function(p){return null}},{key:"getAnchors",value:function(){var p=this,v=this.props,b=v.model,x=v.graphModel,S=b.isSelected,D=b.isHitable,L=b.isDragging,Y=b.isShowAnchor;return D&&(S||Y)&&!L?os(b.anchors,function(Z,oe){var ve=b.getAnchorLineStyle(Z),me=b.getAnchorStyle(Z);return Object(pe.g)(_j,{anchorData:Z,node:p,style:me,edgeStyle:ve,anchorIndex:oe,nodeModel:b,graphModel:x,setHoverOFF:p.setHoverOFF})}):[]}},{key:"getRotateControl",value:function(){var p=this.props,v=p.model,b=p.graphModel,x=v.isSelected,S=v.isHitable,D=v.enableRotate,L=v.isHovered,Y=v.getRotateControlStyle().style;if(S&&(x||L)&&D)return Object(pe.g)(Dj,{graphModel:b,nodeModel:v,eventCenter:b.eventCenter,style:Y})}},{key:"getText",value:function(){var p=this.props,v=p.model,b=p.graphModel;if(v.state===yn.TEXT_EDIT)return"";if(v.text){var x=b.editConfigModel,S=!1;return(v.text.draggable||x.nodeTextDraggable)&&(S=!0),Object(pe.g)(R_,{editable:x.nodeTextEdit&&v.text.editable,model:v,graphModel:b,draggable:S})}}},{key:"getStateClassName",value:function(){var p=this.props.model,v=p.state,b=p.isDragging,x=p.isSelected,S="lf-node";switch(v){case yn.ALLOW_CONNECT:S+=" lf-node-allow";break;case yn.NOT_ALLOW_CONNECT:S+=" lf-node-not-allow";break;default:S+=" lf-node-default"}return b&&(S+=" lf-isDragging"),x&&(S+=" lf-node-selected"),S}},{key:"toFront",value:function(){var p=this.props,v=p.model,b=p.graphModel;b.overlapMode!==Pn.INCREASE&&v.autoToFront&&b.toFront(v.id)}},{key:"render",value:function(){var p,v=this.props,b=v.model,x=v.graphModel,S=x.editConfigModel,D=S.hideAnchors,L=S.adjustNodePosition,Y=S.allowRotation,Z=x.gridSize,oe=x.transformModel.SCALE_X,ve=b.isHitable,me=b.draggable,Ee=b.gMatrix,Me=b.getOuterGAttributes(),qe=Me.className,Qe=qe===void 0?"":qe,Ot=Rj(Me,Nj),Je=Object(pe.g)("g",{className:"lf-node-content"},Object(pe.g)("g",Ee&&{transform:Ee},this.getShape(),this.getText(),Y&&this.getRotateControl()),!D&&this.getAnchors());return ve?(L&&me&&this.stepDrag.setStep(Z*oe),p=Object(pe.g)("g",vh({className:"".concat(this.getStateClassName()," ").concat(Qe,"}"),onMouseDown:this.handleMouseDown,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},Ot),Je)):p=Object(pe.g)("g",vh({className:"".concat(this.getStateClassName()," ").concat(Qe)},Ot),Je),p}}])&&L_(e.prototype,n),r&&L_(e,r),c}(pe.a);function vg(t){return vg=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},vg(t)}function gg(){return gg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gg.apply(this,arguments)}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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bg(t,e){return bg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},bg(t,e)}function zj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=mh(t);if(e){var s=mh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Fj(this,n)}}function Fj(t,e){if(e&&(vg(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 mh(t){return mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mh(t)}var mg=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&&bg(c,p)})(s,t);var e,n,r=zj(s);function s(){return Lj(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(pe.g)(ju,gg({},p,{x:c.x,y:c.y,width:c.width,height:c.height,radius:c.radius}))}}])&&Bj(e.prototype,n),s}(Da);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 Og(){return Og=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Og.apply(this,arguments)}function $j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wg(t,e){return wg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},wg(t,e)}function Gj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=_h(t);if(e){var s=_h(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Uj(this,n)}}function Uj(t,e){if(e&&(_g(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 _h(t){return _h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_h(t)}var xg=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&&wg(c,p)})(s,t);var e,n,r=Gj(s);function s(){return $j(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.x,v=c.y,b=c.r,x=c.getNodeStyle();return Object(pe.g)(Vs,Og({},x,{x:p,y:v,r:b}))}}])&&Wj(e.prototype,n),s}(Da);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 Hj(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return B_(n,r);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 B_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function z_(t){var e=t.points,n=t.className,r={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(t).forEach(function(s){var c=Hj(s,2),p=c[0],v=c[1];Eg(v)!=="object"&&(r[p]=v)}),r.className=n?"lf-basic-shape ".concat(n):"lf-basic-shape",r.points=e.map(function(s){return s.join(",")}).join(" "),Object(pe.g)("polygon",r)}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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jg.apply(this,arguments)}function Xj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pg(t,e){return Pg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Pg(t,e)}function Vj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Oh(t);if(e){var s=Oh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Kj(this,n)}}function Kj(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 function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Oh(t){return Oh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oh(t)}var Ag=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,r=Vj(s);function s(){return Xj(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.x,v=c.y,b=c.width,x=c.height,S=c.points,D=c.getNodeStyle(),L={transform:"matrix(1 0 0 1 ".concat(p-b/2," ").concat(v-x/2,")")};return Object(pe.g)("g",L,Object(pe.g)(z_,jg({},D,{points:S,x:p,y:v})))}}])&&Yj(e.prototype,n),s}(Da);function Tg(t){return Tg=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},Tg(t)}function Mg(){return Mg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Mg.apply(this,arguments)}function qj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kg(t,e){return kg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},kg(t,e)}function Jj(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=wh(t);if(e){var s=wh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return Qj(this,n)}}function Qj(t,e){if(e&&(Tg(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 wh(t){return wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wh(t)}var Dg=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&&kg(c,p)})(s,t);var e,n,r=Jj(s);function s(){return qj(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(pe.g)("g",null,Object(pe.g)(z_,Mg({},p,{points:c.points,x:c.x,y:c.y})))}}])&&Zj(e.prototype,n),s}(Da);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 eP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return F_(n,r);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 F_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function F_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function tP(t){var e=t.x,n=e===void 0?0:e,r=t.y,s=r===void 0?0:r,c=t.rx,p=c===void 0?4:c,v=t.ry,b=v===void 0?4:v,x=t.className,S={cx:n,cy:s,rx:p,ry:b,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(t).forEach(function(D){var L=eP(D,2),Y=L[0],Z=L[1];Ng(Z)!=="object"&&(S[Y]=Z)}),S.className=x?"lf-basic-shape ".concat(x):"lf-basic-shape",Object(pe.g)("ellipse",S)}function Rg(t){return Rg=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},Rg(t)}function Cg(){return Cg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Cg.apply(this,arguments)}function nP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rP(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ig(t,e){return Ig=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Ig(t,e)}function oP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=xh(t);if(e){var s=xh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return iP(this,n)}}function iP(t,e){if(e&&(Rg(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 xh(t){return xh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xh(t)}var Lg=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&&Ig(c,p)})(s,t);var e,n,r=oP(s);function s(){return nP(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(pe.g)(tP,Cg({},p,{x:c.x,y:c.y,rx:c.rx,ry:c.ry}))}}])&&rP(e.prototype,n),s}(Da);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 $_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function W_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$_(Object(n),!0).forEach(function(r){aP(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function aP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uP(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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zg(t,e){return zg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},zg(t,e)}function sP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Eh(t);if(e){var s=Eh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return lP(this,n)}}function lP(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 function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Eh(t){return Eh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Eh(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,r=sP(s);function s(){return uP(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getBackground",value:function(){var c=this.props.model,p=c.getTextStyle(),v=c.width,b=c.height,x=c.x,S=c.y,D=W_(W_({},p.background),{},{x,y:S-1,width:v,height:b});return Object(pe.g)(ju,D)}},{key:"getShape",value:function(){return Object(pe.g)("g",null,this.getBackground())}}])&&cP(e.prototype,n),s}(Da);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 Wg(){return Wg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wg.apply(this,arguments)}function fP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pP(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gg(t,e){return Gg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Gg(t,e)}function dP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Sh(t);if(e){var s=Sh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return hP(this,n)}}function hP(t,e){if(e&&($g(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return op(t)}function op(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sh(t){return Sh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sh(t)}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 Ug=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,r=dP(s);function s(){var c;fP(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return jh(op(c=r.call.apply(r,[this].concat(v))),"ref",void 0),jh(op(c),"currentProperties",void 0),jh(op(c),"preProperties",void 0),jh(op(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,b=c.height,x=c.width,S=c.getNodeStyle();return this.currentProperties=JSON.stringify(c.properties),Object(pe.g)("foreignObject",Wg({},S,{x:p-x/2,y:v-b/2,width:x,height:b,ref:this.setRef}))}}])&&pP(e.prototype,n),s}(Da);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 Xg(){return Xg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xg.apply(this,arguments)}function G_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Rc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?G_(Object(n),!0).forEach(function(r){Kg(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yP(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yg(t,e){return Yg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Yg(t,e)}function vP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Ph(t);if(e){var s=Ph(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return gP(this,n)}}function gP(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 Vg(t)}function Vg(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ph(t){return Ph=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ph(t)}function Kg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ra,bP=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&&Yg(c,p)})(s,t);var e,n,r=vP(s);function s(c){var p;return function(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}(this,s),Kg(Vg(p=r.call(this,c)),"setHoverON",function(){p.setState({isHovered:!0})}),Kg(Vg(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,b=c.width,x=p.background||{};if(this.state.isHovered&&p.hover&&p.hover.background&&(x=Rc(Rc({},x),p.hover.background)),v&&v.value&&x.fill!=="transparent"){var S,D=p.fontSize,L=p.overflowMode,Y=p.lineHeight,Z=p.wrapPadding,oe=p.textWidth,ve=v.value,me=v.x,Ee=v.y,Me=String(ve).split(/[\r\n]/g),qe=Me.length;if(L==="autoWrap"&&oe){var Qe=_d({rows:Me,style:{fontSize:"".concat(D,"px"),width:"".concat(oe,"px"),lineHeight:Y,padding:Z},rowsLength:qe,className:"lf-get-text-height"});S=Rc(Rc({},x),{},{x:me-1,y:Ee-1,width:oe,height:Qe})}else{Me&&Me.forEach(function(rn){Ff(rn)});var Ot=gf({rows:Me,fontSize:D,rowsLength:qe}),Je=Ot.width,wt=Ot.height;if(L==="ellipsis"&&(Je=oe||b,wt=D+2),typeof x.wrapPadding=="string"){var nt=x.wrapPadding.split(",").filter(function(rn){return rn.trim()}).map(function(rn){return parseFloat(rn.trim())});nt.length>0&&nt.length<=4&&(nt.length===1?nt=[nt[0],nt[0],nt[0],nt[0]]:nt.length===2?nt=[nt[0],nt[1],nt[0],nt[1]]:nt.length===3&&(nt=[nt[0],nt[1],nt[2],nt[1]]),Je+=nt[1]+nt[3],wt+=nt[0]+nt[2],me+=(nt[1]-nt[3])/2,Ee+=(nt[2]-nt[0])/2)}S=Rc(Rc({},x),{},{x:me-1,y:Ee-1,width:Je,height:wt})}return Object(pe.g)(ju,S)}}},{key:"getShape",value:function(){var c=this.props.model,p=c.text,v=p.value,b=p.x,x=p.y;if(v){var S=Rc({x:b,y:x,className:"lf-element-text",value:v},c.getTextStyle());return Object(pe.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(pe.g)(D_,Xg({},S,{model:c})))}}}])&&yP(e.prototype,n),s}(R_);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 U_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Na(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U_(Object(n),!0).forEach(function(r){Io(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return H_(n,r);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 H_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function H_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zg(t,e){return Zg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Zg(t,e)}function OP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Ah(t);if(e){var s=Ah(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return wP(this,n)}}function wP(t,e){if(e&&(qg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Co(t)}function Co(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 Io(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"})(ra||(ra={}));var X_=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,r=OP(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),Io(Co(p=r.call(this)),"stepDragData",void 0),Io(Co(p),"stepDrag",void 0),Io(Co(p),"oldEdge",void 0),Io(Co(p),"preTargetNode",void 0),Io(Co(p),"targetRuleResults",void 0),Io(Co(p),"sourceRuleResults",void 0),Io(Co(p),"handleMouseDown",function(S){p.stepDrag&&p.stepDrag.handleMouseDown(S)}),Io(Co(p),"onDragStart",function(){var S=p.props,D=S.x,L=S.y,Y=S.edgeModel,Z=Y.startPoint,oe=Y.endPoint,ve=Y.pointsList;p.oldEdge={startPoint:Z,endPoint:oe,pointsList:ve},p.setState({endX:D,endY:L,dragging:!0})}),Io(Co(p),"onDragging",function(S){var D=S.deltaX,L=S.deltaY,Y=p.state,Z=Y.endX,oe=Y.endY,ve=p.props,me=ve.graphModel,Ee=ve.type,Me=me.transformModel,qe=me.editConfigModel,Qe=mP(Me.moveCanvasPointByHtml([Z,oe],D,L),2),Ot=Qe[0],Je=Qe[1];p.setState({endX:Ot,endY:Je,dragging:!0});var wt=p.props.edgeModel,nt=_a({x:Z,y:oe},me);if(nt&&nt.node&&p.isAllowAdjust(nt).pass){var rn,un=wt.startPoint,Gt=wt.endPoint,dn=wt.sourceNode,nr=wt.targetNode;Ee===ra.SOURCE?rn={startPoint:{x:nt.anchor.x,y:nt.anchor.y},endPoint:{x:Gt.x,y:Gt.y},sourceNode:nt.node,targetNode:nr}:Ee===ra.TARGET&&(rn={startPoint:{x:un.x,y:un.y},endPoint:{x:nt.anchor.x,y:nt.anchor.y},sourceNode:dn,targetNode:nt.node}),wt.updateAfterAdjustStartAndEnd(rn)}else Ee===ra.SOURCE?wt.updateStartPoint({x:Ot,y:Je}):Ee===ra.TARGET&&wt.updateEndPoint({x:Ot,y:Je});wt.text.value&&qe.adjustEdge&&wt.setText(Object.assign({},wt.text,wt.textPosition))}),Io(Co(p),"onDragEnd",function(S){var D=S.event;try{var L;p.setState({dragging:!1});var Y=p.props,Z=Y.graphModel,oe=Y.edgeModel,ve=Y.type,me=p.state,Ee=me.endX,Me=me.endY,qe=me.dragging,Qe=_a({x:Ee,y:Me},Z);if(!qe)return;var Ot,Je=!1;if(Qe&&Qe.node){var wt=p.isAllowAdjust(Qe),nt=wt.pass,rn=wt.msg,un=wt.newTargetNode;if(nt){var Gt,dn=oe.getData();Ot=Na(Na({},dn),{},{sourceAnchorId:"",targetAnchorId:"",text:(dn==null||(Gt=dn.text)===null||Gt===void 0?void 0:Gt.value)||""}),ve===ra.SOURCE?(Ot=Na(Na({},Z.edgeGenerator(Z.getNodeModelById(Qe.node.id).getData(),Z.getNodeModelById(oe.targetNodeId).getData(),Ot)),{},{sourceNodeId:Qe.node.id,sourceAnchorId:Qe.anchor.id,startPoint:{x:Qe.anchor.x,y:Qe.anchor.y},targetNodeId:oe.targetNodeId,endPoint:Na({},oe.endPoint)}),oe.sourceNodeId===Qe.node.id&&oe.sourceAnchorId===Qe.anchor.id&&(Je=!0)):ve===ra.TARGET&&(Ot=Na(Na({},Z.edgeGenerator(Z.getNodeModelById(oe.sourceNodeId).getData(),Z.getNodeModelById(Qe.node.id).getData(),Ot)),{},{sourceNodeId:oe.sourceNodeId,startPoint:Na({},oe.startPoint),targetNodeId:Qe.node.id,targetAnchorId:Qe.anchor.id,endPoint:{x:Qe.anchor.x,y:Qe.anchor.y}}),oe.targetNodeId===Qe.node.id&&oe.targetAnchorId===Qe.anchor.id&&(Je=!0))}else{Je=!0;var nr=un.getData();Z.eventCenter.emit(pt.CONNECTION_NOT_ALLOWED,{data:nr,msg:rn})}}else Je=!0;if(Je)p.recoveryEdge();else{var rr=oe.getData();Z.deleteEdgeById(oe.id);var uo=Z.addEdge(Na({},Ot));Z.eventCenter.emit(pt.EDGE_EXCHANGE_NODE,{data:{newEdge:uo.getData(),oldEdge:rr}})}(L=p.preTargetNode)===null||L===void 0||L.setElementState(yn.DEFAULT)}finally{p.props.graphModel.eventCenter.emit(pt.ADJUST_POINT_DRAGEND,{e:D,data:p.stepDragData})}}),Io(Co(p),"recoveryEdge",function(){var S=p.props.edgeModel,D=p.oldEdge,L=D.startPoint,Y=D.endPoint,Z=D.pointsList;S.updateStartPoint(L),S.updateEndPoint(Y),S.modelType!==qt.LINE_EDGE&&(S.pointsList=Z,S.initPoints())}),Io(Co(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,b=c.edgeModel,x=c.graphModel.eventCenter;return p.stepDragData={type:v,edgeData:b.getData()},p.stepDrag=new ti({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,b=v.id,x=v.sourceNode,S=v.targetNode,D=v.sourceAnchorId,L=v.targetAnchorId,Y=p.type,Z=null,oe=null,ve=null,me=null;if(Y===ra.SOURCE?(Z=c.node,oe=S,ve=c.anchor,me=S.getAnchorInfo(L)):(Z=x,oe=c.node,me=c.anchor,ve=x.getAnchorInfo(D)),this.preTargetNode&&this.preTargetNode!==c.node&&this.preTargetNode.setElementState(yn.DEFAULT),this.preTargetNode=c.node,me.id===ve.id)return{pass:!1,msg:"",newTargetNode:oe};var Ee="".concat(Z.id,"_").concat(oe.id,"_").concat(ve.id,"_").concat(me.id);if(!this.targetRuleResults.has(Ee)){var Me=Z.isAllowConnectedAsSource(oe,ve,me,b),qe=oe.isAllowConnectedAsTarget(Z,ve,me,b);this.sourceRuleResults.set(Ee,bc(Me)),this.targetRuleResults.set(Ee,bc(qe))}var Qe=this.sourceRuleResults.get(Ee),Ot=Qe.isAllPass,Je=Qe.msg,wt=this.targetRuleResults.get(Ee),nt=wt.isAllPass,rn=wt.msg,un=Ot&&nt?yn.ALLOW_CONNECT:yn.NOT_ALLOW_CONNECT;return Y===ra.SOURCE?Z.setElementState(un):oe.setElementState(un),{pass:Ot&&nt,msg:rn||Je,newTargetNode:oe}}},{key:"render",value:function(){var c=this.props,p=c.x,v=c.y,b=c.getAdjustPointShape,x=c.edgeModel,S=this.state.dragging;return Object(pe.g)("g",{pointerEvents:S?"none":"",onMouseDown:this.handleMouseDown},S?"":b(p,v,x))}}])&&_P(e.prototype,n),s}(pe.a);function Jg(t){return Jg=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},Jg(t)}function ip(){return ip=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ip.apply(this,arguments)}function xP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return Y_(n,r);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 Y_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Y_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qg(t,e){return Qg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Qg(t,e)}function jP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Th(t);if(e){var s=Th(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return PP(this,n)}}function PP(t,e){if(e&&(Jg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ki(t)}function ki(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 oa(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ap=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,r=jP(s);function s(){var c;EP(this,s);for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return oa(ki(c=r.call.apply(r,[this].concat(v))),"startTime",void 0),oa(ki(c),"contextMenuTime",void 0),oa(ki(c),"clickTimer",void 0),oa(ki(c),"textRef",Object(pe.f)()),oa(ki(c),"handleHover",function(x,S){var D=c.props,L=D.model,Y=D.graphModel.eventCenter;L.setHovered(x);var Z=x?pt.EDGE_MOUSEENTER:pt.EDGE_MOUSELEAVE,oe=L.getData();Y.emit(Z,{data:oe,e:S})}),oa(ki(c),"setHoverON",function(x){c.props.model.isHovered||(c.textRef&&c.textRef.current&&c.textRef.current.setHoverON(),c.handleHover(!0,x))}),oa(ki(c),"setHoverOFF",function(x){c.props.model.isHovered&&(c.textRef&&c.textRef.current&&c.textRef.current.setHoverOFF(),c.handleHover(!1,x))}),oa(ki(c),"handleContextMenu",function(x){x.preventDefault(),c.contextMenuTime=new Date().getTime(),c.clickTimer&&clearTimeout(c.clickTimer);var S=c.props,D=S.model,L=S.graphModel,Y=L.getPointByClient({x:x.clientX,y:x.clientY});L.setElementStateById(D.id,yn.SHOW_MENU,Y.domOverlayPosition),c.toFront(),D.isSelected||L.selectEdgeById(D.id);var Z=D==null?void 0:D.getData();L.eventCenter.emit(pt.EDGE_CONTEXTMENU,{data:Z,e:x,position:Y})}),oa(ki(c),"handleMouseDown",function(x){x.stopPropagation(),c.startTime=new Date().getTime()}),oa(ki(c),"handleMouseUp",function(x){if(c.startTime&&!(new Date().getTime()-c.startTime>200||x.button===2)){var S=x.detail===2,D=c.props,L=D.model,Y=D.graphModel,Z=L==null?void 0:L.getData(),oe=Y.getPointByClient({x:x.clientX,y:x.clientY});if(S){var ve=Y.editConfigModel,me=Y.textEditElement;if(me&&me.id===L.id&&Y.setElementStateById(L.id,yn.DEFAULT),ve.edgeTextEdit&&L.text.editable&&Y.setElementStateById(L.id,yn.TEXT_EDIT),L.modelType===qt.POLYLINE_EDGE){var Ee=L,Me=Y.getPointByClient({x:x.x,y:x.y}).canvasOverlayPosition,qe=Me.x,Qe=Me.y,Ot=Wf({x:qe,y:Qe},Ee.points);Ee.dbClickPosition=Ot}Y.eventCenter.emit(pt.EDGE_DBCLICK,{data:Z,e:x,position:oe})}else Y.eventCenter.emit(pt.ELEMENT_CLICK,{data:Z,e:x,position:oe}),Y.eventCenter.emit(pt.EDGE_CLICK,{data:Z,e:x,position:oe});var Je=Y.editConfigModel;Y.selectEdgeById(L.id,Jo(x,Je)),c.toFront()}}),c}return e=s,(n=[{key:"getShape",value:function(){return Object(pe.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===yn.TEXT_EDIT)return null;var b=!1,x=v.editConfigModel;return(p.text.draggable||x.edgeTextDraggable)&&(b=!0),Object(pe.g)(bP,{ref:this.textRef,editable:x.edgeTextEdit&&p.text.editable,model:p,graphModel:v,draggable:b})}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,b=c.isSelected;return{start:p,end:v,hover:this.state.hover,isSelected:b}}},{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(),b=v.refY,x=b===void 0?0:b,S=v.refX,D=S===void 0?2:S,L=xP(this.getLastTwoPoints(),2),Y=L[0],Z=L[1],oe="auto";return Y!==null&&Z!==null&&(oe=Kn(Lr({x:Z.x-Y.x,y:Z.y-Y.y,z:0}))),Object(pe.g)("g",null,Object(pe.g)("defs",null,Object(pe.g)("marker",{id:"marker-start-".concat(p),refX:-D,refY:x,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(pe.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(pe.g)("path",null)}},{key:"getEndArrow",value:function(){var c=this.props.model.getArrowStyle(),p=c.stroke,v=c.strokeWidth,b=c.offset,x=c.verticalLength;return Object(pe.g)("path",{stroke:p,fill:p,strokeWidth:v,transform:"rotate(180)",d:"M 0 0 L ".concat(b," -").concat(x," L ").concat(b," ").concat(x," Z")})}},{key:"getAdjustPointShape",value:function(c,p,v){var b=v.getAdjustPointStyle();return Object(pe.g)(Vs,ip({className:"lf-edge-adjust-point"},b,{x:c,y:p}))}},{key:"getAdjustPoints",value:function(){var c=this.props,p=c.model,v=c.graphModel,b=p.getAdjustStart(),x=p.getAdjustEnd();return Object(pe.g)("g",null,Object(pe.g)(X_,ip({type:"SOURCE"},b,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:v})),Object(pe.g)(X_,ip({type:"TARGET"},x,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:v})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(pe.g)("g",null)}},{key:"getAppend",value:function(){return Object(pe.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.overlapMode!==Pn.INCREASE&&p.toFront(v.id)}},{key:"render",value:function(){var c=this.props,p=c.model,v=p.isSelected,b=p.isHitable,x=p.isShowAdjustPoint;return c.graphModel.animation,Object(pe.g)("g",null,Object(pe.g)("g",{className:["lf-edge",!b&&"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():"")}}])&&SP(e.prototype,n),s}(pe.a);function eb(t){return eb=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},eb(t)}function AP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return V_(n,r);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 V_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function V_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var up=function(t){var e={d:""};return Object.entries(t).forEach(function(n){var r=AP(n,2),s=r[0],c=r[1],p=eb(c);s!=="style"&&p==="object"||(e[s]=c)}),Object(pe.g)("path",e)};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 nb(){return nb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nb.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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rb(t,e){return rb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},rb(t,e)}function kP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Mh(t);if(e){var s=Mh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return DP(this,n)}}function DP(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 Mh(t){return Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mh(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&&rb(c,p)})(s,t);var e,n,r=kP(s);function s(){return TP(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getEdge",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,b=c.isAnimation,x=c.arrowConfig,S=c.getEdgeStyle(),D=c.getEdgeAnimationStyle(),L=D.strokeDasharray,Y=D.stroke,Z=D.strokeDashoffset,oe=D.animationName,ve=D.animationDuration,me=D.animationIterationCount,Ee=D.animationTimingFunction,Me=D.animationDirection;return Object(pe.g)(Xs,nb({},S,{x1:p.x,y1:p.y,x2:v.x,y2:v.y},x,b?{strokeDasharray:L,stroke:Y,style:{strokeDashoffset:Z,animationName:oe,animationDuration:ve,animationIterationCount:me,animationTimingFunction:Ee,animationDirection:Me}}:{}))}},{key:"getAppendWidth",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,b=$f({start:p,end:v}),x=b.d,S=b.strokeWidth,D=b.fill,L=b.strokeDasharray,Y=b.stroke;return Object(pe.g)(up,{d:x,fill:D,strokeWidth:S,stroke:Y,strokeDasharray:L})}}])&&MP(e.prototype,n),s}(ap);function ib(t){return ib=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},ib(t)}function NP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return K_(n,r);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 K_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function K_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var RP=function(t){var e={points:"",fill:"none"};return Object.entries(t).forEach(function(n){var r=NP(n,2),s=r[0],c=r[1];(s==="style"||ib(c)!=="object")&&(e[s]=c)}),Object(pe.g)("polyline",e)};function ab(t){return ab=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},ab(t)}function q_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function kh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?q_(Object(n),!0).forEach(function(r){Ca(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ub(){return ub=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ub.apply(this,arguments)}function CP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return Z_(n,r);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 Z_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Z_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function IP(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cb(t,e){return cb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},cb(t,e)}function LP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Dh(t);if(e){var s=Dh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return BP(this,n)}}function BP(t,e){if(e&&(ab(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ra(t)}function Ra(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dh(t){return Dh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dh(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 sb=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&&cb(c,p)})(s,t);var e,n,r=LP(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(Ra(c=r.call(this)),"drag",void 0),Ca(Ra(c),"isDragging",void 0),Ca(Ra(c),"isShowAdjustPointTemp",void 0),Ca(Ra(c),"appendInfo",void 0),Ca(Ra(c),"onDragStart",function(){var p=c.props.model;p.dragAppendStart(),c.isShowAdjustPointTemp=p.isShowAdjustPoint,p.isShowAdjustPoint=!1}),Ca(Ra(c),"onDragging",function(p){var v=p.deltaX,b=p.deltaY,x=c.props,S=x.model,D=x.graphModel;c.isDragging=!0;var L=D.transformModel,Y=D.editConfigModel,Z=CP(L.fixDeltaXY(v,b),2),oe=Z[0],ve=Z[1],me=S,Ee=Y.adjustEdgeMiddle;c.appendInfo=Ee?me.dragAppendSimple(c.appendInfo,{x:oe,y:ve}):me.dragAppend(c.appendInfo,{x:oe,y:ve})}),Ca(Ra(c),"onDragEnd",function(){var p=c.props,v=p.model,b=p.graphModel.eventCenter,x=v;x.dragAppendEnd(),c.isDragging=!1,x.isShowAdjustPoint=c.isShowAdjustPointTemp,c.appendInfo=void 0,b.emit(pt.EDGE_ADJUST,{data:x.getData()})}),Ca(Ra(c),"beforeDragStart",function(p,v){v.dragAble&&c.drag.handleMouseDown(p),c.appendInfo=v}),c.drag=new ti({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,b=c.arrowConfig,x=c.getEdgeStyle(),S=c.getEdgeAnimationStyle(),D=S.strokeDasharray,L=S.stroke,Y=S.strokeDashoffset,Z=S.animationName,oe=S.animationDuration,ve=S.animationIterationCount,me=S.animationTimingFunction,Ee=S.animationDirection;return Object(pe.g)(RP,ub({points:p},x,b,v?{strokeDasharray:D,stroke:L,style:{strokeDashoffset:Y,animationName:Z,animationDuration:oe,animationIterationCount:ve,animationTimingFunction:me,animationDirection:Ee}}:{}))}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=c.points,v=c.isSelected,b={start:null,end:null,hover:this.state.hover,isSelected:v},x=qi(p);return x.length>=2&&(b.start=x[x.length-2],b.end=x[x.length-1]),b}},{key:"getLastTwoPoints",value:function(){var c=this.props.model.points,p=qi(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,b=c.end;if(v.x===b.x&&v.y===b.y)p="";else{var x={start:v,end:b,offset:10,verticalLength:5},S=Oc(kh(kh({},x),{},{type:"start"})),D=Oc(kh(kh({},x),{},{type:"end"}));p="M".concat(S.leftX," ").concat(S.leftY,`
L`).concat(S.rightX," ").concat(S.rightY,`
L`).concat(D.rightX," ").concat(D.rightY,`
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,b=p.strokeWidth,x=p.fill,S=p.strokeDasharray,D=p.stroke;return Object(pe.g)(up,{d:v,fill:x,strokeWidth:b,stroke:D,strokeDasharray:S})}},{key:"getAppendWidth",value:function(){for(var c=this,p=this.props,v=p.model,b=p.graphModel,x=v.pointsList,S=v.draggable,D=[],L=x.length,Y=function(oe){var ve="lf-polyline-append",me={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(pe.g)("g",{className:ve},c.getAppendShape(me)),Me=b.editConfigModel,qe=Me.adjustEdge,Qe=Me.adjustEdgeMiddle;if(qe&&S){var Ot=me.startIndex,Je=me.endIndex,wt=Qe&&(Ot===0||Je===L-1);me.dragAble=!wt,me.start.x===me.end.x?(me.dragAble&&(ve+="-ew-resize"),me.direction=jn.VERTICAL):me.start.y===me.end.y&&(me.dragAble&&(ve+="-ns-resize"),me.direction=jn.HORIZONTAL),Ee=Object(pe.g)("g",{className:c.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(nt){return c.beforeDragStart(nt,me)}},Object(pe.g)("g",{className:ve},c.getAppendShape(me)))}D.push(Ee)},Z=0;Z<L-1;Z++)Y(Z);return Object(pe.g)("g",null,D)}}])&&IP(e.prototype,n),s}(ap);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 zP(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return J_(n,r);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 J_(n,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function J_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fb(){return fb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fb.apply(this,arguments)}function FP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pb(t,e){return pb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},pb(t,e)}function WP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Nh(t);if(e){var s=Nh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return GP(this,n)}}function GP(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 function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(t)}function Nh(t){return Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nh(t)}var db=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&&pb(c,p)})(s,t);var e,n,r=WP(s);function s(){return FP(this,s),r.apply(this,arguments)}return e=s,(n=[{key:"getEdge",value:function(){var c=this.props.model,p=c.getEdgeStyle(),v=c.path,b=c.isAnimation,x=c.arrowConfig,S=c.getEdgeAnimationStyle(),D=S.strokeDasharray,L=S.stroke,Y=S.strokeDashoffset,Z=S.animationName,oe=S.animationDuration,ve=S.animationIterationCount,me=S.animationTimingFunction,Ee=S.animationDirection;return Object(pe.g)(up,fb({d:v},p,x,b?{strokeDasharray:D,stroke:L,style:{strokeDashoffset:Y,animationName:Z,animationDuration:oe,animationIterationCount:ve,animationTimingFunction:me,animationDirection:Ee}}:{}))}},{key:"getAppendWidth",value:function(){var c=this.props.model.path;return Object(pe.g)(up,{d:c,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=this.state.hover,v=c.isSelected,b=c.getArrowStyle().offset,x=c.pointsList.map(function(D){return{x:D.x,y:D.y}}),S=zP(zs(x,b),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(b){return{x:b.x,y:b.y}});return zs(v,p)}}])&&$P(e.prototype,n),s}(ap);function hb(t){return hb=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},hb(t)}function Q_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}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 HP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XP(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yb(t,e){return yb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},yb(t,e)}function YP(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Rh(t);if(e){var s=Rh(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return VP(this,n)}}function VP(t,e){if(e&&(hb(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 KP=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&&yb(c,p)})(s,t);var e,n,r=YP(s);function s(){return HP(this,s),r.apply(this,arguments)}return e=s,n=[{key:"getArrowAttributes",value:function(){var c=this.props,p=c.arrowInfo,v=c.style,b=p.start,x=p.end,S={start:b,end:x,offset:v.offset,verticalLength:v.verticalLength,type:"end"},D=Oc(S),L=D.leftX,Y=D.leftY,Z=D.rightX,oe=D.rightY;return function(ve){for(var me=1;me<arguments.length;me++){var Ee=arguments[me]!=null?arguments[me]:{};me%2?Q_(Object(Ee),!0).forEach(function(Me){UP(ve,Me,Ee[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ve,Object.getOwnPropertyDescriptors(Ee)):Q_(Object(Ee)).forEach(function(Me){Object.defineProperty(ve,Me,Object.getOwnPropertyDescriptor(Ee,Me))})}return ve}({d:"M".concat(L," ").concat(Y," L").concat(x.x," ").concat(x.y," L").concat(Z," ").concat(oe," z")},v)}},{key:"getShape",value:function(){var c=this.getArrowAttributes(),p=c.d,v=c.strokeWidth,b=c.stroke,x=c.fill;return Object(pe.g)(up,{d:p,fill:x,strokeWidth:v,stroke:b})}},{key:"render",value:function(){return Object(pe.g)("g",{className:"lf-arrow"},this.getShape())}}],n&&XP(e.prototype,n),s}(pe.a),e1=function(t,e){return Se(t,e)},qP=function(t){var e=t==null?0:t.length;return e?t[e-1]:void 0},vb=function(){return ft.a.Date.now()},ZP=/\s/,JP=function(t){for(var e=t.length;e--&&ZP.test(t.charAt(e)););return e},QP=/^\s+/,eA=function(t){return t&&t.slice(0,JP(t)+1).replace(QP,"")},tA=/^[-+]0x[0-9a-f]+$/i,nA=/^0b[01]+$/i,rA=/^0o[0-7]+$/i,oA=parseInt,t1=function(t){if(typeof t=="number")return t;if(Ft(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=eA(t);var n=nA.test(t);return n||rA.test(t)?oA(t.slice(2),n?2:8):tA.test(t)?NaN:+t},iA=Math.max,aA=Math.min,uA=function(t,e,n){var r,s,c,p,v,b,x=0,S=!1,D=!1,L=!0;if(typeof t!="function")throw new TypeError("Expected a function");function Y(Me){var qe=r,Qe=s;return r=s=void 0,x=Me,p=t.apply(Qe,qe)}function Z(Me){return x=Me,v=setTimeout(ve,e),S?Y(Me):p}function oe(Me){var qe=Me-b;return b===void 0||qe>=e||qe<0||D&&Me-x>=c}function ve(){var Me=vb();if(oe(Me))return me(Me);v=setTimeout(ve,function(qe){var Qe=e-(qe-b);return D?aA(Qe,c-(qe-x)):Qe}(Me))}function me(Me){return v=void 0,L&&r?Y(Me):(r=s=void 0,p)}function Ee(){var Me=vb(),qe=oe(Me);if(r=arguments,s=this,b=Me,qe){if(v===void 0)return Z(b);if(D)return clearTimeout(v),v=setTimeout(ve,e),Y(b)}return v===void 0&&(v=setTimeout(ve,e)),p}return e=t1(e)||0,zn(n)&&(S=!!n.leading,c=(D="maxWait"in n)?iA(t1(n.maxWait)||0,e):c,L="trailing"in n?!!n.trailing:L),Ee.cancel=function(){v!==void 0&&clearTimeout(v),x=0,r=b=s=v=void 0},Ee.flush=function(){return v===void 0?p:me(vb())},Ee},cA=o(172);function sA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n1,r1,o1,lA=function(){function t(r){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),Mu(this,"undos",[]),Mu(this,"redos",[]),Mu(this,"callbacks",[]),Mu(this,"stopWatch",null),Mu(this,"curData",null),Mu(this,"maxSize",50),Mu(this,"waitTime",100),Mu(this,"eventCenter",void 0),this.eventCenter=r}var e,n;return e=t,(n=[{key:"add",value:function(r){e1(qP(this.undos),r)||(this.undos.push(r),e1(this.curData,r)||(this.redos=[]),this.eventCenter.emit(pt.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 r=this.undos.pop();this.redos.push(r);var s=this.undos.pop();return this.curData=In(s),s}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var r=this.redos.pop();return this.curData=In(r),r}}},{key:"watch",value:function(r){var s=this;this.stopWatch&&this.stopWatch(),this.undos.push(r.modelToGraphData()),this.stopWatch=Object(cA.a)(r,uA(function(){var c=r.modelToHistoryData();c&&s.add(c)},this.waitTime))}}])&&sA(e.prototype,n),t}();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 fA(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(n,r){if(n){if(typeof n=="string")return i1(n,r);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,r)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function il(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?a1(Object(n),!0).forEach(function(r){Cc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a1(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function u1(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bb(t,e){return bb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},bb(t,e)}function pA(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Ch(t);if(e){var s=Ch(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return dA(this,n)}}function dA(t,e){if(e&&(gb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return al(t)}function al(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ch(t){return Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ch(t)}function Cc(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,s1,l1,mb=Di((o1=r1=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&&bb(p,v)})(c,t);var e,n,r,s=pA(c);function c(){var p;return function(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}(this,c),Cc(al(p=s.call(this)),"ref",Object(pe.f)()),Cc(al(p),"__prevText",{type:"",text:"",id:""}),Cc(al(p),"keyupHandler",function(v){var b=p.props.graphModel.textEditElement;v.key==="Enter"&&v.altKey&&b.setElementState(0)}),Cc(al(p),"inputHandler",function(v){var b=v.target.innerText,x=p.props.graphModel.textEditElement;p.__prevText={type:x.type,text:b.replace(/(\r\n)+$|(\n)+$/,""),id:x.id}}),Cc(al(p),"keydownHandler",function(v){v.stopPropagation()}),p.state={style:{left:0,top:0}},p}return e=c,r=[{key:"getDerivedStateFromProps",value:function(p){var v,b=p.graphModel,x=b.transformModel,S=b.theme,D=b.textEditElement;if(D){var L;if((L=D.text)===null||L===void 0||!L.value)if(D.BaseType===tr.EDGE){var Y=(D=D).text,Z=D.textPosition,oe=Z.x,ve=Z.y;Y.x=oe,Y.y=ve,D.setText(Y)}else D=D;var me={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(D.BaseType===tr.EDGE){var Ee=S.edgeText,Me=Ee.overflowMode,qe=Ee.lineHeight,Qe=Ee.wrapPadding,Ot=Ee.textWidth;Ot&&Me==="autoWrap"&&(v=il(il({},me),{},{width:Ot,minWidth:Ot,lineHeight:qe,padding:Qe}))}else if(D.BaseType===tr.NODE){var Je=S.nodeText,wt=Je.overflowMode,nt=Je.lineHeight,rn=Je.wrapPadding,un=Je.textWidth,Gt=D,dn=Gt.width,nr=Gt.modelType;(nr!==qt.TEXT_NODE&&wt==="autoWrap"||nr===qt.TEXT_NODE&&un)&&(v=il(il({},me),{},{width:un||dn,minWidth:un||dn,lineHeight:nt,padding:rn}))}var rr=D.text,uo=rr.x,ia=rr.y,ii=fA(x.CanvasPointToHtmlPoint([uo,ia]),2);return{style:il({left:ii[0],top:ii[1]},v)}}}}],(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,b=v.text,x=v.id;p.updateText(x,b),p.eventCenter.emit(pt.TEXT_UPDATE,il({},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 b=window.getSelection();b.removeAllRanges(),b.addRange(v)}}},{key:"render",value:function(){var p,v=this.props.graphModel.textEditElement,b=this.state.style;return v?Object(pe.g)("div",{contentEditable:!0,className:"lf-text-input",style:b,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}}])&&u1(e.prototype,n),r&&u1(e,r),c}(pe.a),Cc(r1,"toolName","textEdit"),n1=o1))||n1,hA=function(t){return t.modelType===qt.LINE_EDGE?function(e){var n=e.startPoint,r=e.endPoint,s=(n.x+r.x)/2,c=(n.y+r.y)/2,p=Math.abs(n.x-r.x)+10,v=Math.abs(n.y-r.y)+10;return{x:s-p/2,y:c-v/2,x1:s+p/2,y1:c+v/2}}(t):t.modelType===qt.POLYLINE_EDGE?function(e){var n=e.points,r=qi(n),s=Ou(r,8),c=s.x,p=s.y,v=s.width,b=s.height;return{x:c-v/2,y:p-b/2,x1:c+v/2,y1:p+b/2}}(t):t.modelType===qt.BEZIER_EDGE?function(e){var n=e.path,r=Bs(n),s=Ou(r,8),c=s.x,p=s.y,v=s.width,b=s.height;return{x:c-v/2,y:p-b/2,x1:c+v/2,y1:p+b/2}}(t):void 0};function _b(t){return _b=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},_b(t)}function f1(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,p,v=[],b=!0,x=!1;try{for(s=s.call(n);!(b=(c=s.next()).done)&&(v.push(c.value),!r||v.length!==r);b=!0);}catch(S){x=!0,p=S}finally{try{b||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||p1(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yA(t){return function(e){if(Array.isArray(e))return Ob(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||p1(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p1(t,e){if(t){if(typeof t=="string")return Ob(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)?Ob(t,e):void 0}}function Ob(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wb(t,e){return wb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},wb(t,e)}function gA(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=Ih(t);if(e){var s=Ih(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return bA(this,n)}}function bA(t,e){if(e&&(_b(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cp(t)}function cp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ih(t){return Ih=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ih(t)}function sp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xb=Di((l1=s1=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&&wb(c,p)})(s,t);var e,n,r=gA(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),sp(cp(p=r.call(this)),"stepDrag",void 0),sp(cp(p),"handleMouseDown",function(S){p.stepDrag.handleMouseDown(S)}),sp(cp(p),"onDragging",function(S){var D=S.deltaX,L=S.deltaY,Y=p.props.graphModel,Z=Y.getSelectElements(!0);Y.moveNodes(Z.nodes.map(function(oe){return oe.id}),D,L)}),sp(cp(p),"handleContextMenu",function(S){S.preventDefault();var D=p.props,L=D.graphModel,Y=D.graphModel,Z=Y.eventCenter,oe=Y.selectElements,ve=L.getPointByClient({x:S.clientX,y:S.clientY}),me={nodes:[],edges:[]};yA(oe.values()).forEach(function(Ee){Ee.BaseType===tr.NODE&&me.nodes.push(Ee.getData()),Ee.BaseType===tr.EDGE&&me.edges.push(Ee.getData())}),Z.emit(pt.SELECTION_CONTEXTMENU,{data:me,e:S,position:ve})});var v=c.graphModel,b=v.gridSize,x=v.eventCenter;return p.stepDrag=new ti({onDragging:p.onDragging,step:b,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 b=Number.MAX_SAFE_INTEGER,x=Number.MAX_SAFE_INTEGER,S=Number.MIN_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER;p.forEach(function(oe){var ve={x:0,y:0,x1:0,y1:0};oe.BaseType===tr.NODE&&(ve=function(me){var Ee=me.x,Me=me.y,qe=me.width,Qe=me.height;return{x:Ee-qe/2,y:Me-Qe/2,x1:Ee+qe/2,y1:Me+Qe/2}}(oe)),oe.BaseType===tr.EDGE&&(ve=hA(oe)),b=Math.min(b,ve.x),x=Math.min(x,ve.y),S=Math.max(S,ve.x1),D=Math.max(D,ve.y1)});var L=f1(v.CanvasPointToHtmlPoint([b,x]),2);b=L[0],x=L[1];var Y=f1(v.CanvasPointToHtmlPoint([S,D]),2);S=Y[0],D=Y[1];var Z={left:"".concat(b-10,"px"),top:"".concat(x-10,"px"),width:"".concat(S-b+20,"px"),height:"".concat(D-x+20,"px")};return Object(pe.g)("div",{className:"lf-multiple-select",style:Z,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu})}}}])&&vA(e.prototype,n),s}(pe.a),sp(s1,"toolName","multipleSelect"),c1=l1))||c1;function mA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _A=function(){function t(r){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),Lh(this,"tools",void 0),Lh(this,"components",void 0),Lh(this,"toolMap",new Map),Lh(this,"instance",void 0),this.instance=r,this.isDisabledTool(mb.toolName)||this.registerTool(mb.toolName,mb),this.isDisabledTool(xb.toolName)||this.registerTool(xb.toolName,xb);var s=r.graphModel;s.eventCenter.on("".concat(pt.GRAPH_TRANSFORM,",").concat(pt.NODE_CLICK,",").concat(pt.BLANK_CLICK," "),function(){var c=s.textEditElement,p=s.editConfigModel,v=p.edgeTextEdit,b=p.nodeTextEdit;(v||b)&&c&&s.textEditElement.setElementState(yn.DEFAULT)})}var e,n;return e=t,(n=[{key:"isDisabledTool",value:function(r){return this.instance.options.disabledTools.indexOf(r)!==-1}},{key:"registerTool",value:function(r,s){this.toolMap.set(r,s)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}])&&mA(e.prototype,n),t}(),OA=o(173),wA=o.n(OA);function xA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Eb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d1=function(){function t(r){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),Eb(this,"mousetrap",void 0),Eb(this,"options",void 0),Eb(this,"target",void 0),r.keyboard||(r.keyboard={enabled:!1}),this.options=r;var s=r.lf;this.target=s.container,this.mousetrap=new wA.a(this.target),r.keyboard.enabled&&this.enable(!0)}var e,n;return e=t,(n=[{key:"initShortcuts",value:function(){var r=this,s=this.options.keyboard.shortcuts;if(s)if(wn(s))s.forEach(function(b){var x=b.keys,S=b.callback,D=b.action;return r.on(x,S,D)});else{var c=s.keys,p=s.callback,v=s.action;this.on(c,p,v)}}},{key:"on",value:function(r,s,c){this.mousetrap.bind(this.getKeys(r),s,c)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(r,s){this.mousetrap.unbind(this.getKeys(r),s)}},{key:"enable",value:function(r){(this.disabled||r)&&(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(r){var s=this;return(Array.isArray(r)?r:[r]).map(function(c){return s.formatKey(c)})}},{key:"formatKey",value:function(r){return r.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")}}])&&xA(e.prototype,n),t}(),EA=d1,Ia=null;function h1(t,e){return t.x+=e,t.y+=e,t.text&&(t.text.x+=e,t.text.y+=e),t}function y1(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}function Sb(t){return Sb=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},Sb(t)}function v1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function lp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?v1(Object(n),!0).forEach(function(r){Jn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v1(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function g1(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jn(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=Symbol("plugin register by Logicflow.use"),Pb=function(){function t(s){var c,p,v=this;(function(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")})(this,t),Jn(this,"container",void 0),Jn(this,"width",void 0),Jn(this,"height",void 0),Jn(this,"graphModel",void 0),Jn(this,"history",void 0),Jn(this,"viewMap",new Map),Jn(this,"tool",void 0),Jn(this,"keyboard",void 0),Jn(this,"dnd",void 0),Jn(this,"options",void 0),Jn(this,"snaplineModel",void 0),Jn(this,"components",[]),Jn(this,"plugins",void 0),Jn(this,"extension",{}),Jn(this,"adapterIn",void 0),Jn(this,"adapterOut",void 0),Jn(this,"getView",function(b){return v.viewMap.get(b)}),s=p0(s),this.options=s,this.container=this.initContainer(s.container),this.plugins=s.plugins,this.graphModel=new SE(lp({},s)),this.tool=new _A(this),this.history=new lA(this.graphModel.eventCenter),this.dnd=new OS({lf:this}),this.keyboard=new EA({lf:this,keyboard:s.keyboard}),s.snapline!==!1&&(this.snaplineModel=new j_(this.graphModel),c=this.graphModel.eventCenter,p=this.snaplineModel,c.on("node:mousemove",function(b){var x=b.data;p.setNodeSnapLine(x)}),c.on("node:mouseup",function(){p.clearSnapline()})),this.options.isSilentMode||(function(b,x){var S=b.keyboard,D=S.options.keyboard;S.on(["cmd + c","ctrl + c"],function(){if(!D.enabled||x.textEditElement)return!0;var L=b.options.guards,Y=x.getSelectElements(!1);return L&&L.beforeClone&&!L.beforeClone(Y)||Y.nodes.length===0&&Y.edges.length===0?(Ia=null,!0):((Ia=Y).nodes.forEach(function(Z){return h1(Z,40)}),Ia.edges.forEach(function(Z){return y1(Z,40)}),!1)}),S.on(["cmd + v","ctrl + v"],function(){if(!D.enabled||x.textEditElement)return!0;if(Ia&&(Ia.nodes||Ia.edges)){b.clearSelectElements();var L=b.addElements(Ia);if(!L)return!0;L.nodes.forEach(function(Y){return b.selectElementById(Y.id,!0)}),L.edges.forEach(function(Y){return b.selectElementById(Y.id,!0)}),Ia.nodes.forEach(function(Y){return h1(Y,40)}),Ia.edges.forEach(function(Y){return y1(Y,40)})}return!1}),S.on(["cmd + z","ctrl + z"],function(){return!D.enabled||!!x.textEditElement||(b.undo(),!1)}),S.on(["cmd + y","ctrl + y"],function(){return!D.enabled||!!x.textEditElement||(b.redo(),!1)}),S.on(["backspace"],function(){if(!D.enabled||x.textEditElement)return!0;var L=x.getSelectElements(!0);return b.clearSelectElements(),L.edges.forEach(function(Y){return b.deleteEdge(Y.id)}),L.nodes.forEach(function(Y){return b.deleteNode(Y.id)}),!1})}(this,this.graphModel),this.keyboard.initShortcuts()),this.defaultRegister(),this.installPlugins(s.disabledPlugins)}var e,n,r;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:ap,BaseEdgeModel:mf,BaseNode:Da,BaseNodeModel:ka,RectNode:mg,RectNodeModel:qv,CircleNode:xg,CircleNodeModel:kv,PolygonNode:Ag,PolygonNodeModel:Xv,TextNode:Fg,TextNodeModel:eg,LineEdge:ob,LineEdgeModel:wa,DiamondNode:Dg,DiamondNodeModel:Iv,PolylineEdge:sb,PolylineEdgeModel:Rs,BezierEdge:db,BezierEdgeModel:Sv,EllipseNode:Lg,EllipseNodeModel:Fv,HtmlNode:Ug,HtmlNodeModel:rg,h:pe.g,type:s};this.viewMap.forEach(function(L){var Y=L.extendKey;Y&&(v[Y]=L)}),this.graphModel.modelMap.forEach(function(L){var Y=L.extendKey;Y&&(v[Y]=L)});var b=c(v),x=b.view,S=b.model,D=x;p&&!D.isObervered&&(D.isObervered=!0,D=ct(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=ct(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:mg,model:qv,type:"rect"}),this.registerElement({type:"circle",view:xg,model:kv}),this.registerElement({type:"polygon",view:Ag,model:Xv}),this.registerElement({type:"line",view:ob,model:wa}),this.registerElement({type:"polyline",view:sb,model:Rs}),this.registerElement({type:"bezier",view:db,model:Sv}),this.registerElement({type:"text",view:Fg,model:eg}),this.registerElement({type:"ellipse",view:Lg,model:Fv}),this.registerElement({type:"diamond",view:Dg,model:Iv}),this.registerElement({type:"html",view:Ug,model:rg})}},{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 b=this.getNodeModelById(v);b&&(p=b.getData());var x=this.getEdgeModelById(v);x&&(p=x.textPosition)}var S=p,D=S.x,L=S.y;c.focusOn(D,L,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,b=this.getModelById(s);return!!b&&(p=(v=(Jn(c={},tr.NODE,this.deleteNode),Jn(c,tr.EDGE,this.deleteEdge),c)[b.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]:pt.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,b=!v||!v.beforeDelete||v.beforeDelete(p);return b&&this.graphModel.deleteNode(s),b}},{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(),b=!c||!c.beforeDelete||c.beforeDelete(v);return b&&this.graphModel.deleteEdgeById(s),b}},{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 b=[];return c.forEach(function(D){D.sourceNodeId===p&&D.targetNodeId===v&&b.push(D)}),b}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(Tn(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,b={},x={nodes:[],edges:[]},S=0;S<p.length;S++){var D=p[S],L=D.id,Y=this.addNode(D);if(!Y)return;L&&(b[L]=Y.id),x.nodes.push(Y)}return v.forEach(function(Z){var oe=Z.sourceNodeId,ve=Z.targetNodeId;b[oe]&&(oe=b[oe]),b[ve]&&(ve=b[ve]);var me=c.graphModel.addEdge(lp(lp({},Z),{},{sourceNodeId:oe,targetNodeId:ve}));x.edges.push(me)}),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],b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(s,c,p,v,b).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){this.graphModel.editConfigModel.updateEditConfig(s)}},{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=Tn(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"redo",value:function(){if(this.history.redoAble()){var s=Tn(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(b){var x=null,S=null;b[jb]?(x=b.extension,S=b.props):x=b;var D=x.pluginName||x.name;p.indexOf(D)===-1&&c.installPlugin(x,S)})}},{key:"installPlugin",value:function(s,c){if(Sb(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 b=s,x=new b({lf:this,LogicFlow:t,options:this.options.pluginsOptions,props:c});x.render&&this.components.push(x.render.bind(x)),this.extension[b.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(lp(lp({},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(Tn(s)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(pe.j)(Object(pe.g)(mS,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(pt.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)}}],r=[{key:"use",value:function(s,c){var p,v,b=s.pluginName;b||(b=s.name);var x=(p=this.extensions.get(b))===null||p===void 0?void 0:p.extension;x&&x.destroy&&x.destroy(),this.extensions.set(b,(Jn(v={},jb,jb),Jn(v,"extension",s),Jn(v,"props",c),v))}}],n&&g1(e.prototype,n),r&&g1(e,r),t}();function Di(t){return ct(t)}Jn(Pb,"extensions",new Map),l.default=Pb}])})})(Hb,Hb.exports);var rt=Hb.exports;const Gh=m2(rt),J4=[{type:"bpmn:startEvent",text:"开始",class:"bpmn-start"},{type:"bpmn:endEvent",text:"结束",class:"bpmn-end"},{type:"bpmn:exclusiveGateway",text:"网关",class:"bpmn-exclusiveGateway"},{type:"bpmn:userTask",text:"用户",class:"bpmn-user"}];var Q4=function(){function i(){globalThis._ids=this,this._ids=new Set}return i.prototype.generateId=function(){var u="xxxxxxx".replace(/[x]/g,function(a){var l=Math.random()*16|0,o=a==="x"?l:l&3|8;return o.toString(16)});return u},i.prototype.next=function(){for(var u=this.generateId();this._ids.has(u);)u=this.generateId();return this._ids.add(u),u},i}(),e8=(globalThis==null?void 0:globalThis._ids)||new Q4;function jl(){return e8.next()}var Jx=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),t8=function(i){Jx(u,i);function u(a,l){var o=this;return a.id||(a.id="Event_"+jl()),a.text||(a.text=""),a.text&&typeof a.text=="string"&&(a.text={value:a.text,x:a.x,y:a.y+40}),o=i.call(this,a,l)||this,o}return u.prototype.setAttributes=function(){this.r=18},u.prototype.getConnectedTargetRules=function(){var a=i.prototype.getConnectedTargetRules.call(this),l={message:"起始节点不能作为边的终点",validate:function(){return!1}};return a.push(l),a},u.extendKey="StartEventModel",u}(rt.CircleNodeModel),n8=function(i){Jx(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.extendKey="StartEventNode",u}(rt.CircleNode),r8={type:"bpmn:startEvent",view:n8,model:t8},Qx=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Qh=globalThis&&globalThis.__assign||function(){return Qh=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},Qh.apply(this,arguments)},o8=function(i){Qx(u,i);function u(a,l){var o=this;return a.id||(a.id="Event_"+jl()),a.text||(a.text=""),a.text&&typeof a.text=="string"&&(a.text={value:a.text,x:a.x,y:a.y+40}),o=i.call(this,a,l)||this,o}return u.prototype.setAttributes=function(){this.r=18},u.prototype.getConnectedSourceRules=function(){var a=i.prototype.getConnectedSourceRules.call(this),l={message:"结束节点不能作为边的起点",validate:function(){return!1}};return a.push(l),a},u.extendKey="EndEventModel",u}(rt.CircleNodeModel),i8=function(i){Qx(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},u.prototype.getShape=function(){var a=this.props.model,l=a.getNodeStyle(),o=a.x,d=a.y,h=a.r,m=i.prototype.getShape.call(this);return rt.h("g",{},m,rt.h("circle",Qh(Qh({},l),{cx:o,cy:d,r:h-5})))},u.extendKey="EndEventView",u}(rt.CircleNode),a8={type:"bpmn:endEvent",view:i8,model:o8},eE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),vp=globalThis&&globalThis.__assign||function(){return vp=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},vp.apply(this,arguments)},u8=function(i){eE(u,i);function u(a,l){var o=this;return a.id||(a.id="Gateway_"+jl()),a.text||(a.text=""),a.text&&typeof a.text=="string"&&(a.text={value:a.text,x:a.x,y:a.y+40}),o=i.call(this,a,l)||this,o.points=[[25,0],[50,25],[25,50],[0,25]],o}return u.extendKey="ExclusiveGatewayModel",u}(rt.PolygonNodeModel),c8=function(i){eE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getShape=function(){var a=this.props.model,l=a.x,o=a.y,d=a.width,h=a.height,m=a.points,g=a.getNodeStyle();return rt.h("g",{transform:"matrix(1 0 0 1 "+(l-d/2)+" "+(o-h/2)+")"},rt.h("polygon",vp(vp({},g),{x:l,y:o,points:m})),rt.h("path",vp({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)))},u.extendKey="ExclusiveGatewayNode",u}(rt.PolygonNode),s8={type:"bpmn:exclusiveGateway",view:c8,model:u8},tE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),ey=globalThis&&globalThis.__assign||function(){return ey=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},ey.apply(this,arguments)},l8=function(i){tE(u,i);function u(a,l){var o=this;return a.id||(a.id="Activity_"+jl()),o=i.call(this,a,l)||this,o}return u.extendKey="UserTaskModel",u}(rt.RectNodeModel),f8=function(i){tE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getLabelShape=function(){var a=this.props.model,l=a.x,o=a.y,d=a.width,h=a.height,m=a.getNodeStyle();return rt.h("svg",{x:l-d/2+5,y:o-h/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},rt.h("path",{fill:m.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"}))},u.prototype.getShape=function(){var a=this.props.model,l=a.x,o=a.y,d=a.width,h=a.height,m=a.radius,g=a.getNodeStyle();return rt.h("g",{},[rt.h("rect",ey(ey({},g),{x:l-d/2,y:o-h/2,rx:m,ry:m,width:d,height:h})),this.getLabelShape()])},u.extendKey="UserTaskNode",u}(rt.RectNode),p8={type:"bpmn:userTask",view:f8,model:l8},nE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Xb=globalThis&&globalThis.__assign||function(){return Xb=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},Xb.apply(this,arguments)},d8=function(i){nE(u,i);function u(a,l){var o=this;return a.id||(a.id="Activity_"+jl()),o=i.call(this,a,l)||this,o}return u.extendKey="ServiceTaskModel",u}(rt.RectNodeModel),h8=function(i){nE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getLabelShape=function(){var a=this.props.model,l=a.x,o=a.y,d=a.width,h=a.height,m=a.getNodeStyle();return rt.h("svg",{x:l-d/2+5,y:o-h/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},rt.h("path",{fill:m.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"}))},u.prototype.getShape=function(){var a=this.props.model,l=a.x,o=a.y,d=a.width,h=a.height,m=a.radius,g=a.getNodeStyle();return rt.h("g",{},[rt.h("rect",Xb({x:l-d/2,y:o-h/2,rx:m,ry:m,width:d,height:h},g)),this.getLabelShape()])},u.extendKey="ServiceTaskNode",u}(rt.RectNode),y8={type:"bpmn:serviceTask",view:h8,model:d8},rE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),v8=function(i){rE(u,i);function u(a,l){var o=this;return a.id||(a.id="Flow_"+jl()),o=i.call(this,a,l)||this,o}return u.extendKey="SequenceFlowModel",u}(rt.PolylineEdgeModel),g8=function(i){rE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.extendKey="SequenceFlowEdge",u}(rt.PolylineEdge),b8={type:"bpmn:sequenceFlow",view:g8,model:v8},tO={width:40,height:40},nO={width:40,height:40},rO={width:40,height:40},oO={width:100,height:80},iO={width:100,height:80},m8={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}}},_8=function(){function i(u){var a=u.lf;a.setTheme(m8),a.register(r8),a.register(a8),a.register(s8),a.register(p8),a.register(y8),a.options.customBpmnEdge||(a.register(b8),a.setDefaultEdgeType("bpmn:sequenceFlow"))}return i.pluginName="bpmnElement",i}(),O8=function(){function i(){globalThis._ids=this,this._ids=new Set}return i.prototype.generateId=function(){var u="xxxxxxx".replace(/[x]/g,function(a){var l=Math.random()*16|0,o=a==="x"?l:l&3|8;return o.toString(16)});return u},i.prototype.next=function(){for(var u=this.generateId();this._ids.has(u);)u=this.generateId();return this._ids.add(u),u},i}(),w8=(globalThis==null?void 0:globalThis._ids)||new O8;function aO(){return w8.next()}function oE(i){return Object.prototype.toString.call(i)}function x8(i){return" ".repeat(i)}function ty(i){var u=i;return oE(i)==="[object Object]"?(u={},Object.keys(i).forEach(function(a){var l=a;a.charAt(0)==="-"&&(l=a.substring(1)),u[l]=ty(i[a])})):Array.isArray(i)&&(u=[],i.forEach(function(a,l){u[l]=ty(a)})),u}function E8(i){var u=i;try{typeof u!="string"&&(u=JSON.parse(i))}catch{u=JSON.stringify(ty(i)).replace(/"/g,"'")}return u}var cl=`
`;function Hh(i,u,a){var l=x8(a),o="";if(u==="#text")return cl+l+i;if(u==="#cdata-section")return cl+l+"<![CDATA["+i+"]]>";if(u==="#comment")return cl+l+"<!--"+i+"-->";if((""+u).charAt(0)==="-")return" "+u.substring(1)+'="'+E8(i)+'"';if(Array.isArray(i))i.forEach(function(g){o+=Hh(g,u,a+1)});else if(oE(i)==="[object Object]"){var d=Object.keys(i),h="",m="";o+=(a===0?"":cl+l)+"<"+u,d.forEach(function(g){g.charAt(0)==="-"?h+=Hh(i[g],g,a+1):m+=Hh(i[g],g,a+1)}),o+=h+(m!==""?">"+m+(cl+l)+"</"+u+">":" />")}else o+=cl+l+("<"+u+">"+i.toString()+"</"+u+">");return o}function S8(i){var u="";for(var a in i)u+=Hh(i[a],a,0);return u}var fo=function(){};fo.ObjTree=function(){return this};fo.ObjTree.VERSION="0.23";fo.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
`;fo.ObjTree.prototype.attr_prefix="-";fo.ObjTree.prototype.parseXML=function(i){var u;if(window.DOMParser){var a=new DOMParser,l=a.parseFromString(i,"application/xml");if(!l)return;u=l.documentElement}else window.ActiveXObject&&(a=new ActiveXObject("Microsoft.XMLDOM"),a.async=!1,a.loadXML(i),u=a.documentElement);if(u)return this.parseDOM(u)};fo.ObjTree.prototype.parseHTTP=function(i,u,a){var l={};for(var o in u)l[o]=u[o];if(l.method||(typeof l.postBody>"u"&&typeof l.postbody>"u"&&typeof l.parameters>"u"?l.method="get":l.method="post"),a){l.asynchronous=!0;var d=this,h=a,m=l.onComplete;l.onComplete=function(P){var j;P&&P.responseXML&&P.responseXML.documentElement&&(j=d.parseDOM(P.responseXML.documentElement)),h(j,P),m&&m(P)}}else l.asynchronous=!1;var g;if(typeof HTTP<"u"&&HTTP.Request){l.uri=i;var E=new HTTP.Request(l);E&&(g=E.transport)}else if(typeof Ajax<"u"&&Ajax.Request){var E=new Ajax.Request(i,l);E&&(g=E.transport)}if(a)return g;if(g&&g.responseXML&&g.responseXML.documentElement)return this.parseDOM(g.responseXML.documentElement)};fo.ObjTree.prototype.parseDOM=function(i){if(i){if(this.__force_array={},this.force_array)for(var u=0;u<this.force_array.length;u++)this.__force_array[this.force_array[u]]=1;var a=this.parseElement(i);if(this.__force_array[i.nodeName]&&(a=[a]),i.nodeType!=11){var l={};l[i.nodeName]=a,a=l}return a}};fo.ObjTree.prototype.parseElement=function(i){if(i.nodeType!=7){if(i.nodeType==3||i.nodeType==4||i.nodeType==8){var u=i.nodeValue.match(/[^\x00-\x20]/);return u==null?void 0:i.nodeValue}var a=null,l={};if(i.attributes&&i.attributes.length){a={};for(var o=0;o<i.attributes.length;o++){var d=i.attributes[o].nodeName;if(typeof d=="string"){var h=i.attributes[o].nodeValue;try{h=JSON.parse(i.attributes[o].nodeValue.replace(/'/g,'"'))}catch{h=i.attributes[o].nodeValue}h&&(d=this.attr_prefix+d,typeof l[d]>"u"&&(l[d]=0),l[d]++,this.addNode(a,d,l[d],h))}}}if(i.childNodes&&i.childNodes.length){var m=!0;a&&(m=!1);for(var o=0;o<i.childNodes.length&&m;o++){var g=i.childNodes[o].nodeType;g==3||g==4||g==8||(m=!1)}if(m){a||(a="");for(var o=0;o<i.childNodes.length;o++)a+=i.childNodes[o].nodeValue}else{a||(a={});for(var o=0;o<i.childNodes.length;o++){var d=i.childNodes[o].nodeName;if(typeof d=="string"){var h=this.parseElement(i.childNodes[o]);h&&(typeof l[d]>"u"&&(l[d]=0),l[d]++,this.addNode(a,d,l[d],h))}}}}else a===null&&(a={});return a}};fo.ObjTree.prototype.addNode=function(i,u,a,l){this.__force_array[u]?(a==1&&(i[u]=[]),i[u][i[u].length]=l):a==1?i[u]=l:a==2?i[u]=[i[u],l]:i[u][i[u].length]=l};fo.ObjTree.prototype.writeXML=function(i){var u=this.hash_to_xml(null,i);return this.xmlDecl+u};fo.ObjTree.prototype.hash_to_xml=function(i,u){var a=[],l=[];for(var o in u)if(u.hasOwnProperty(o)){var d=u[o];o.charAt(0)!=this.attr_prefix?typeof d>"u"||d==null?a[a.length]="<"+o+" />":typeof d=="object"&&d.constructor==Array?a[a.length]=this.array_to_xml(o,d):typeof d=="object"?a[a.length]=this.hash_to_xml(o,d):a[a.length]=this.scalar_to_xml(o,d):l[l.length]=" "+o.substring(1)+'="'+this.xml_escape(d)+'"'}var h=l.join(""),m=a.join("");return typeof i>"u"||i==null||(a.length>0?m.match(/\n/)?m="<"+i+h+`>
`+m+"</"+i+`>
`:m="<"+i+h+">"+m+"</"+i+`>
`:m="<"+i+h+` />
`),m};fo.ObjTree.prototype.array_to_xml=function(i,u){for(var a=[],l=0;l<u.length;l++){var o=u[l];typeof o>"u"||o==null?a[a.length]="<"+i+" />":typeof o=="object"&&o.constructor==Array?a[a.length]=this.array_to_xml(i,o):typeof o=="object"?a[a.length]=this.hash_to_xml(i,o):a[a.length]=this.scalar_to_xml(i,o)}return a.join("")};fo.ObjTree.prototype.scalar_to_xml=function(i,u){return i=="#text"?this.xml_escape(u):"<"+i+">"+this.xml_escape(u)+"</"+i+`>
`};fo.ObjTree.prototype.xml_escape=function(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var j8=function(i){return new fo.ObjTree().parseXML(i)},P8=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Yb=globalThis&&globalThis.__assign||function(){return Yb=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},Yb.apply(this,arguments)},jy=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d},ca;(function(i){i.START="bpmn:startEvent",i.END="bpmn:endEvent",i.GATEWAY="bpmn:exclusiveGateway",i.USER="bpmn:userTask",i.SYSTEM="bpmn:serviceTask",i.FLOW="bpmn:sequenceFlow"})(ca||(ca={}));var iE=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],uO=["properties","startPoint","endPoint","pointsList"];function cO(i){var u=i?uO.concat(i):uO;return function(a){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 m=jy(h,2),g=m[0],E=m[1];typeof E!="object"?g.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(g)?d[g]=E:d["-"+g]=E:u.includes(g)?d["-"+g]=l(E):d[g]=l(E)}),d)}return l(a)}}function ny(i){var u={};return Object.entries(i).forEach(function(a){var l=jy(a,2),o=l[0],d=l[1];o.indexOf("-")===0?u[o.substring(1)]=ty(d):typeof d=="string"?u[o]=d:Object.prototype.toString.call(d)==="[object Object]"?u[o]=ny(d):Array.isArray(d)?u[o]=d.map(function(h){return ny(h)}):u[o]=d}),u}function A8(i,u,a){var l=new Map;u.nodes.forEach(function(d){var h,m={"-id":d.id};if(!((h=d.text)===null||h===void 0)&&h.value&&(m["-name"]=d.text.value),d.properties){var g=cO(a)(d.properties);Object.assign(m,g)}l.set(d.id,m),i[d.type]?Array.isArray(i[d.type])?i[d.type].push(m):i[d.type]=[i[d.type],m]:i[d.type]=m});var o=u.edges.map(function(d){var h,m,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"]=(m=d.text)===null||m===void 0?void 0:m.value),d.properties){var P=cO(a)(d.properties);Object.assign(E,P)}return E});u.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}),i[ca.FLOW]=o}function T8(i,u){i["bpmndi:BPMNEdge"]=u.edges.map(function(a){var l,o=a.id,d=a.pointsList.map(function(m){var g=m.x,E=m.y;return{"-x":g,"-y":E}}),h={"-id":o+"_di","-bpmnElement":o,"di:waypoint":d};return!((l=a.text)===null||l===void 0)&&l.value&&(h["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":a.text.x-a.text.value.length*10/2,"-y":a.text.y-7,"-width":a.text.value.length*10,"-height":14}}),h}),i["bpmndi:BPMNShape"]=u.nodes.map(function(a){var l,o=a.id,d=100,h=80,m=a.x,g=a.y,E=Fu.shapeConfigMap.get(a.type);E&&(d=E.width,h=E.height),m-=d/2,g-=h/2;var P={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":m,"-y":g,"-width":d,"-height":h}};return!((l=a.text)===null||l===void 0)&&l.value&&(P["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":a.text.x-a.text.value.length*10/2,"-y":a.text.y-7,"-width":a.text.value.length*10,"-height":14}}),P})}function M8(i){var u=[],a=[],l=i["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===ca.FLOW){var m=l["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];a=D8(h,m)}else{var g=l["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];u=u.concat(k8(h,g,d))}}})}return{nodes:u,edges:a}}function k8(i,u,a){var l=[];if(Array.isArray(i))i.forEach(function(h){var m;Array.isArray(u)?m=u.find(function(E){return E["-bpmnElement"]===h["-id"]}):m=u;var g=sO(m,a,h);l.push(g)});else{var o=void 0;Array.isArray(u)?o=u.find(function(h){return h["-bpmnElement"]===i["-id"]}):o=u;var d=sO(o,a,i);l.push(d)}return l}function sO(i,u,a){var l=Number(i["dc:Bounds"]["-x"]),o=Number(i["dc:Bounds"]["-y"]),d=a["-name"],h=Fu.shapeConfigMap.get(u);h&&(l+=h.width/2,o+=h.height/2);var m;Object.entries(a).forEach(function(j){var k=jy(j,2),M=k[0],R=k[1];iE.indexOf(M)===-1&&(m||(m={}),m[M]=R)}),m&&(m=ny(m));var g;if(d&&(g={x:l,y:o,value:d},i["bpmndi:BPMNLabel"]&&i["bpmndi:BPMNLabel"]["dc:Bounds"])){var E=i["bpmndi:BPMNLabel"]["dc:Bounds"];g.x=Number(E["-x"])+Number(E["-width"])/2,g.y=Number(E["-y"])+Number(E["-height"])/2}var P={id:i["-bpmnElement"],type:u,x:l,y:o,properties:m};return g&&(P.text=g),P}function D8(i,u){var a=[];if(Array.isArray(i))i.forEach(function(o){var d;Array.isArray(u)?d=u.find(function(h){return h["-bpmnElement"]===o["-id"]}):d=u,a.push(lO(d,o))});else{var l=void 0;Array.isArray(u)?l=u.find(function(o){return o["-bpmnElement"]===i["-id"]}):l=u,a.push(lO(l,i))}return a}function lO(i,u){var a,l=u["-name"];if(l){var o=i["bpmndi:BPMNLabel"]["dc:Bounds"],d=0;l.split(`
`).forEach(function(g){d<g.length&&(d=g.length)}),a={value:l,x:Number(o["-x"])+d*10/2,y:Number(o["-y"])+7}}var h;Object.entries(u).forEach(function(g){var E=jy(g,2),P=E[0],j=E[1];iE.indexOf(P)===-1&&(h||(h={}),h[P]=j)}),h&&(h=ny(h));var m={id:u["-id"],type:ca.FLOW,pointsList:i["di:waypoint"].map(function(g){return{x:Number(g["-x"]),y:Number(g["-y"])}}),sourceNodeId:u["-sourceRef"],targetNodeId:u["-targetRef"],properties:h};return a&&(m.text=a),m}var Fu=function(){function i(u){var a=this,l=u.lf;this.adapterOut=function(o,d){var h=Yb({},a.processAttributes);A8(h,o,d);var m={"-id":"BPMNPlane_1","-bpmnElement":h["-id"]};T8(m,o);var g=a.definitionAttributes;g["bpmn:process"]=h,g["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":m};var E={"bpmn:definitions":g};return E},this.adapterIn=function(o){if(o)return M8(o)},l.adapterIn=function(o){return a.adapterIn(o)},l.adapterOut=function(o,d){return a.adapterOut(o,d)},this.processAttributes={"-isExecutable":"true","-id":"Process_"+aO()},this.definitionAttributes={"-id":"Definitions_"+aO(),"-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 i.prototype.setCustomShape=function(u,a){i.shapeConfigMap.set(u,a)},i.pluginName="bpmn-adapter",i.shapeConfigMap=new Map,i}();Fu.shapeConfigMap.set(ca.START,{width:tO.width,height:tO.height});Fu.shapeConfigMap.set(ca.END,{width:nO.width,height:nO.height});Fu.shapeConfigMap.set(ca.GATEWAY,{width:rO.width,height:rO.height});Fu.shapeConfigMap.set(ca.SYSTEM,{width:oO.width,height:oO.height});Fu.shapeConfigMap.set(ca.USER,{width:iO.width,height:iO.height});(function(i){P8(u,i);function u(a){var l=i.call(this,a)||this;l.adapterXmlIn=function(d){var h=j8(d);return l.adapterIn(h)},l.adapterXmlOut=function(d,h){var m=l.adapterOut(d,h);return S8(m)};var o=a.lf;return o.adapterIn=l.adapterXmlIn,o.adapterOut=l.adapterXmlOut,l}return u.pluginName="bpmnXmlAdapter",u})(Fu);var N8=function(){function i(){globalThis._ids=this,this._ids=new Set}return i.prototype.generateId=function(){var u="xxxxxxx".replace(/[x]/g,function(a){var l=Math.random()*16|0,o=a==="x"?l:l&3|8;return o.toString(16)});return u},i.prototype.next=function(){for(var u=this.generateId();this._ids.has(u);)u=this.generateId();return this._ids.add(u),u},i}(),R8=(globalThis==null?void 0:globalThis._ids)||new N8;function C8(){return R8.next()}globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var fO=globalThis&&globalThis.__assign||function(){return fO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},fO.apply(this,arguments)},I8=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var pO=globalThis&&globalThis.__assign||function(){return pO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},pO.apply(this,arguments)},L8=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var dO=globalThis&&globalThis.__assign||function(){return dO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},dO.apply(this,arguments)},B8=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var hO=globalThis&&globalThis.__assign||function(){return hO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},hO.apply(this,arguments)},z8=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var yO=globalThis&&globalThis.__assign||function(){return yO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},yO.apply(this,arguments)},F8=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;rt.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"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"}),rt.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;"});rt.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);"});rt.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 i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var vO=globalThis&&globalThis.__assign||function(){return vO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},vO.apply(this,arguments)};globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var gO=globalThis&&globalThis.__assign||function(){return gO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},gO.apply(this,arguments)},$8=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var Im,_r,aE,Lc,bO,uE,Vb,Xh={},cE=[],W8=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Lm=Array.isArray;function Nu(i,u){for(var a in u)i[a]=u[a];return i}function sE(i){var u=i.parentNode;u&&u.removeChild(i)}function gp(i,u,a){var l,o,d,h={};for(d in u)d=="key"?l=u[d]:d=="ref"?o=u[d]:h[d]=u[d];if(arguments.length>2&&(h.children=arguments.length>3?Im.call(arguments,2):a),typeof i=="function"&&i.defaultProps!=null)for(d in i.defaultProps)h[d]===void 0&&(h[d]=i.defaultProps[d]);return Yh(i,h,l,o,null)}function Yh(i,u,a,l,o){var d={type:i,props:u,key:a,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++aE};return o==null&&_r.vnode!=null&&_r.vnode(d),d}function Bm(i){return i.children}function yl(i,u){this.props=i,this.context=u}function Op(i,u){if(u==null)return i.__?Op(i.__,i.__.__k.indexOf(i)+1):null;for(var a;u<i.__k.length;u++)if((a=i.__k[u])!=null&&a.__e!=null)return a.__d||a.__e;return typeof i.type=="function"?Op(i):null}function lE(i){var u,a;if((i=i.__)!=null&&i.__c!=null){for(i.__e=i.__c.base=null,u=0;u<i.__k.length;u++)if((a=i.__k[u])!=null&&a.__e!=null){i.__e=i.__c.base=a.__e;break}return lE(i)}}function mO(i){(!i.__d&&(i.__d=!0)&&Lc.push(i)&&!ry.__r++||bO!==_r.debounceRendering)&&((bO=_r.debounceRendering)||uE)(ry)}function ry(){var i,u,a,l,o,d,h,m,g;for(Lc.sort(Vb);i=Lc.shift();)i.__d&&(u=Lc.length,l=void 0,o=void 0,d=void 0,m=(h=(a=i).__v).__e,(g=a.__P)&&(l=[],o=[],(d=Nu({},h)).__v=h.__v+1,hE(g,h,d,a.__n,g.ownerSVGElement!==void 0,h.__h!=null?[m]:null,l,m??Op(h),h.__h,o),H8(l,h,o),h.__e!=m&&lE(h)),Lc.length>u&&Lc.sort(Vb));ry.__r=0}function fE(i,u,a,l,o,d,h,m,g,E,P){var j,k,M,R,N,I,W,U,ne,ue=0,re=l&&l.__k||cE,Q=re.length,ee=Q,H=u.length;for(a.__k=[],j=0;j<H;j++)(R=a.__k[j]=(R=u[j])==null||typeof R=="boolean"||typeof R=="function"?null:typeof R=="string"||typeof R=="number"||typeof R=="bigint"?Yh(null,R,null,null,R):Lm(R)?Yh(Bm,{children:R},null,null,null):R.__b>0?Yh(R.type,R.props,R.key,R.ref?R.ref:null,R.__v):R)!=null?(R.__=a,R.__b=a.__b+1,(U=G8(R,re,W=j+ue,ee))===-1?M=Xh:(M=re[U]||Xh,re[U]=void 0,ee--),hE(i,R,M,o,d,h,m,g,E,P),N=R.__e,(k=R.ref)&&M.ref!=k&&(M.ref&&zm(M.ref,null,R),P.push(k,R.__c||N,R)),N!=null&&(I==null&&(I=N),(ne=M===Xh||M.__v===null)?U==-1&&ue--:U!==W&&(U===W+1?ue++:U>W?ee>H-W?ue+=U-W:ue--:ue=U<W&&U==W-1?U-W:0),W=j+ue,typeof R.type!="function"||U===W&&M.__k!==R.__k?typeof R.type=="function"||U===W&&!ne?R.__d!==void 0?(g=R.__d,R.__d=void 0):g=N.nextSibling:g=dE(i,N,g):g=pE(R,g,i),typeof a.type=="function"&&(a.__d=g))):(M=re[j])&&M.key==null&&M.__e&&(M.__e==g&&(M.__=l,g=Op(M)),Kb(M,M,!1),re[j]=null);for(a.__e=I,j=Q;j--;)re[j]!=null&&(typeof a.type=="function"&&re[j].__e!=null&&re[j].__e==a.__d&&(a.__d=re[j].__e.nextSibling),Kb(re[j],re[j]))}function pE(i,u,a){for(var l,o=i.__k,d=0;o&&d<o.length;d++)(l=o[d])&&(l.__=i,u=typeof l.type=="function"?pE(l,u,a):dE(a,l.__e,u));return u}function dE(i,u,a){return a==null||a.parentNode!==i?i.insertBefore(u,null):u==a&&u.parentNode!=null||i.insertBefore(u,a),u.nextSibling}function G8(i,u,a,l){var o=i.key,d=i.type,h=a-1,m=a+1,g=u[a];if(g===null||g&&o==g.key&&d===g.type)return a;if(l>(g!=null?1:0))for(;h>=0||m<u.length;){if(h>=0){if((g=u[h])&&o==g.key&&d===g.type)return h;h--}if(m<u.length){if((g=u[m])&&o==g.key&&d===g.type)return m;m++}}return-1}function U8(i,u,a,l,o){var d;for(d in a)d==="children"||d==="key"||d in u||oy(i,d,null,a[d],l);for(d in u)o&&typeof u[d]!="function"||d==="children"||d==="key"||d==="value"||d==="checked"||a[d]===u[d]||oy(i,d,u[d],a[d],l)}function _O(i,u,a){u[0]==="-"?i.setProperty(u,a??""):i[u]=a==null?"":typeof a!="number"||W8.test(u)?a:a+"px"}function oy(i,u,a,l,o){var d;e:if(u==="style")if(typeof a=="string")i.style.cssText=a;else{if(typeof l=="string"&&(i.style.cssText=l=""),l)for(u in l)a&&u in a||_O(i.style,u,"");if(a)for(u in a)l&&a[u]===l[u]||_O(i.style,u,a[u])}else if(u[0]==="o"&&u[1]==="n")d=u!==(u=u.replace(/(PointerCapture)$|Capture$/,"$1")),u=u.toLowerCase()in i?u.toLowerCase().slice(2):u.slice(2),i.l||(i.l={}),i.l[u+d]=a,a?l?a.u=l.u:(a.u=Date.now(),i.addEventListener(u,d?wO:OO,d)):i.removeEventListener(u,d?wO:OO,d);else if(u!=="dangerouslySetInnerHTML"){if(o)u=u.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(u!=="width"&&u!=="height"&&u!=="href"&&u!=="list"&&u!=="form"&&u!=="tabIndex"&&u!=="download"&&u!=="rowSpan"&&u!=="colSpan"&&u!=="role"&&u in i)try{i[u]=a??"";break e}catch{}typeof a=="function"||(a==null||a===!1&&u[4]!=="-"?i.removeAttribute(u):i.setAttribute(u,a))}}function OO(i){var u=this.l[i.type+!1];if(i.t){if(i.t<=u.u)return}else i.t=Date.now();return u(_r.event?_r.event(i):i)}function wO(i){return this.l[i.type+!0](_r.event?_r.event(i):i)}function hE(i,u,a,l,o,d,h,m,g,E){var P,j,k,M,R,N,I,W,U,ne,ue,re,Q,ee,H,B=u.type;if(u.constructor!==void 0)return null;a.__h!=null&&(g=a.__h,m=u.__e=a.__e,u.__h=null,d=[m]),(P=_r.__b)&&P(u);e:if(typeof B=="function")try{if(W=u.props,U=(P=B.contextType)&&l[P.__c],ne=P?U?U.props.value:P.__:l,a.__c?I=(j=u.__c=a.__c).__=j.__E:("prototype"in B&&B.prototype.render?u.__c=j=new B(W,ne):(u.__c=j=new yl(W,ne),j.constructor=B,j.render=Y8),U&&U.sub(j),j.props=W,j.state||(j.state={}),j.context=ne,j.__n=l,k=j.__d=!0,j.__h=[],j._sb=[]),j.__s==null&&(j.__s=j.state),B.getDerivedStateFromProps!=null&&(j.__s==j.state&&(j.__s=Nu({},j.__s)),Nu(j.__s,B.getDerivedStateFromProps(W,j.__s))),M=j.props,R=j.state,j.__v=u,k)B.getDerivedStateFromProps==null&&j.componentWillMount!=null&&j.componentWillMount(),j.componentDidMount!=null&&j.__h.push(j.componentDidMount);else{if(B.getDerivedStateFromProps==null&&W!==M&&j.componentWillReceiveProps!=null&&j.componentWillReceiveProps(W,ne),!j.__e&&(j.shouldComponentUpdate!=null&&j.shouldComponentUpdate(W,j.__s,ne)===!1||u.__v===a.__v)){for(u.__v!==a.__v&&(j.props=W,j.state=j.__s,j.__d=!1),u.__e=a.__e,u.__k=a.__k,u.__k.forEach(function(X){X&&(X.__=u)}),ue=0;ue<j._sb.length;ue++)j.__h.push(j._sb[ue]);j._sb=[],j.__h.length&&h.push(j);break e}j.componentWillUpdate!=null&&j.componentWillUpdate(W,j.__s,ne),j.componentDidUpdate!=null&&j.__h.push(function(){j.componentDidUpdate(M,R,N)})}if(j.context=ne,j.props=W,j.__P=i,j.__e=!1,re=_r.__r,Q=0,"prototype"in B&&B.prototype.render){for(j.state=j.__s,j.__d=!1,re&&re(u),P=j.render(j.props,j.state,j.context),ee=0;ee<j._sb.length;ee++)j.__h.push(j._sb[ee]);j._sb=[]}else do j.__d=!1,re&&re(u),P=j.render(j.props,j.state,j.context),j.state=j.__s;while(j.__d&&++Q<25);j.state=j.__s,j.getChildContext!=null&&(l=Nu(Nu({},l),j.getChildContext())),k||j.getSnapshotBeforeUpdate==null||(N=j.getSnapshotBeforeUpdate(M,R)),fE(i,Lm(H=P!=null&&P.type===Bm&&P.key==null?P.props.children:P)?H:[H],u,a,l,o,d,h,m,g,E),j.base=u.__e,u.__h=null,j.__h.length&&h.push(j),I&&(j.__E=j.__=null)}catch(X){u.__v=null,(g||d!=null)&&(u.__e=m,u.__h=!!g,d[d.indexOf(m)]=null),_r.__e(X,u,a)}else d==null&&u.__v===a.__v?(u.__k=a.__k,u.__e=a.__e):u.__e=X8(a.__e,u,a,l,o,d,h,g,E);(P=_r.diffed)&&P(u)}function H8(i,u,a){for(var l=0;l<a.length;l++)zm(a[l],a[++l],a[++l]);_r.__c&&_r.__c(u,i),i.some(function(o){try{i=o.__h,o.__h=[],i.some(function(d){d.call(o)})}catch(d){_r.__e(d,o.__v)}})}function X8(i,u,a,l,o,d,h,m,g){var E,P,j,k=a.props,M=u.props,R=u.type,N=0;if(R==="svg"&&(o=!0),d!=null){for(;N<d.length;N++)if((E=d[N])&&"setAttribute"in E==!!R&&(R?E.localName===R:E.nodeType===3)){i=E,d[N]=null;break}}if(i==null){if(R===null)return document.createTextNode(M);i=o?document.createElementNS("http://www.w3.org/2000/svg",R):document.createElement(R,M.is&&M),d=null,m=!1}if(R===null)k===M||m&&i.data===M||(i.data=M);else{if(d=d&&Im.call(i.childNodes),P=(k=a.props||Xh).dangerouslySetInnerHTML,j=M.dangerouslySetInnerHTML,!m){if(d!=null)for(k={},N=0;N<i.attributes.length;N++)k[i.attributes[N].name]=i.attributes[N].value;(j||P)&&(j&&(P&&j.__html==P.__html||j.__html===i.innerHTML)||(i.innerHTML=j&&j.__html||""))}if(U8(i,M,k,o,m),j)u.__k=[];else if(fE(i,Lm(N=u.props.children)?N:[N],u,a,l,o&&R!=="foreignObject",d,h,d?d[0]:a.__k&&Op(a,0),m,g),d!=null)for(N=d.length;N--;)d[N]!=null&&sE(d[N]);m||("value"in M&&(N=M.value)!==void 0&&(N!==i.value||R==="progress"&&!N||R==="option"&&N!==k.value)&&oy(i,"value",N,k.value,!1),"checked"in M&&(N=M.checked)!==void 0&&N!==i.checked&&oy(i,"checked",N,k.checked,!1))}return i}function zm(i,u,a){try{typeof i=="function"?i(u):i.current=u}catch(l){_r.__e(l,a)}}function Kb(i,u,a){var l,o;if(_r.unmount&&_r.unmount(i),(l=i.ref)&&(l.current&&l.current!==i.__e||zm(l,null,u)),(l=i.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(d){_r.__e(d,u)}l.base=l.__P=null,i.__c=void 0}if(l=i.__k)for(o=0;o<l.length;o++)l[o]&&Kb(l[o],u,a||typeof i.type!="function");a||i.__e==null||sE(i.__e),i.__=i.__e=i.__d=void 0}function Y8(i,u,a){return this.constructor(i,a)}Im=cE.slice,_r={__e:function(i,u,a,l){for(var o,d,h;u=u.__;)if((o=u.__c)&&!o.__)try{if((d=o.constructor)&&d.getDerivedStateFromError!=null&&(o.setState(d.getDerivedStateFromError(i)),h=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(i,l||{}),h=o.__d),h)return o.__E=o}catch(m){i=m}throw i}},aE=0,yl.prototype.setState=function(i,u){var a;a=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Nu({},this.state),typeof i=="function"&&(i=i(Nu({},a),this.props)),i&&Nu(a,i),i!=null&&this.__v&&(u&&this._sb.push(u),mO(this))},yl.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),mO(this))},yl.prototype.render=Bm,Lc=[],uE=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vb=function(i,u){return i.__v.__b-u.__v.__b},ry.__r=0;var bp=globalThis&&globalThis.__assign||function(){return bp=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},bp.apply(this,arguments)};function Fm(i){var u=i.x,a=i.y,l=i.width,o=i.height,d=i.radius,h=i.className,m=u-l/2,g=a-o/2,E=bp(bp({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},i),{x:m,y:g});return rt.h("rect",bp({},E))}Fm.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var pl;(function(i){i.NODE="node",i.CIRCLE_NODE="circle-node",i.POLYGON_NODE="polygon-node",i.RECT_NODE="rect-node",i.HTML_NODE="html-node",i.TEXT_NODE="text-node",i.ELLIPSE_NODE="ellipse-node",i.DIAMOND_NODE="diamond-node",i.EDGE="edge",i.LINE_EDGE="line-edge",i.POLYLINE_EDGE="polyline-edge",i.BEZIER_EDGE="bezier-edge",i.GRAPH="graph"})(pl||(pl={}));var V8=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Bc=globalThis&&globalThis.__assign||function(){return Bc=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},Bc.apply(this,arguments)},K8=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d},q8=rt.LogicFlowUtil.StepDrag,Z8=function(i){V8(u,i);function u(a){var l=i.call(this)||this;return l.updatePosition=function(o){var d=o.deltaX,h=o.deltaY,m=l.nodeModel,g=m.x,E=m.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,m=o.deltaY,g=o.width,E=o.height,P=o.PCTResizeInfo,j=o.pct,k=j===void 0?1:j,M={width:g,height:E,deltaX:h,deltaY:m};if(P){var R=4,N=0,I=0;switch(d){case 0:I=(h*-1-m)/R;break;case 1:I=(h-m)/R;break;case 2:I=(h+m)/R;break;case 3:I=(h*-1+m)/R;break}I!==0&&(N=Math.round(I/P.ResizeBasis.basisHeight*1e5)/1e3),P.ResizePCT.widthPCT=Math.max(Math.min(P.ResizePCT.widthPCT+N,P.ScaleLimit.maxScaleLimit),P.ScaleLimit.minScaleLimit),P.ResizePCT.hightPCT=Math.max(Math.min(P.ResizePCT.hightPCT+N,P.ScaleLimit.maxScaleLimit),P.ScaleLimit.minScaleLimit);var W=Math.round(P.ResizePCT.widthPCT*P.ResizeBasis.basisWidth/100),U=Math.round(P.ResizePCT.hightPCT*P.ResizeBasis.basisHeight/100);switch(d){case 0:h=g-W,m=E-U;break;case 1:h=W-g,m=E-U;break;case 2:h=W-g,m=U-E;break;case 3:h=g-W,m=U-E;break}return M.width=W,M.height=U,M.deltaX=h/k,M.deltaY=m/k,M}switch(d){case 0:M.width=g-h*k,M.height=E-m*k;break;case 1:M.width=g+h*k,M.height=E-m*k;break;case 2:M.width=g+h*k,M.height=E+m*k;break;case 3:M.width=g-h*k,M.height=E+m*k;break}return M},l.updateEdgePointByAnchors=function(){var o=l.nodeModel,d=o.id,h=o.anchors,m=l.getNodeEdges(d);m.sourceEdges.forEach(function(g){var E=h.find(function(P){return P.id===g.sourceAnchorId});g.updateStartPoint({x:E.x,y:E.y})}),m.targetEdges.forEach(function(g){var E=h.find(function(P){return P.id===g.targetAnchorId});g.updateEndPoint({x:E.x,y:E.y})})},l.updateRect=function(o){var d=o.deltaX,h=o.deltaY,m=l.nodeModel,g=m.id,E=m.x,P=m.y,j=m.width,k=m.height,M=m.radius,R=m.PCTResizeInfo,N=l.index,I=l.getResize({index:N,deltaX:d,deltaY:h,width:j,height:k,PCTResizeInfo:R,pct:1}),W=l.nodeModel,U=W.minWidth,ne=W.minHeight,ue=W.maxWidth,re=W.maxHeight;if(I.width<U||I.width>ue||I.height<ne||I.height>re){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:I.deltaX,deltaY:I.deltaY}),l.nodeModel.width=I.width,l.nodeModel.height=I.height,l.nodeModel.setProperties({nodeSize:{width:I.width,height:I.height}}),l.getNodeEdges(g);var Q={x:E,y:P,width:j,height:k,radius:M},ee={x:l.nodeModel.x,y:l.nodeModel.y,width:l.nodeModel.width,height:l.nodeModel.height,radius:M};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:Q,afterNode:ee})},l.updateEllipse=function(o){var d=o.deltaX,h=o.deltaY,m=l.nodeModel,g=m.id,E=m.rx,P=m.ry,j=m.x,k=m.y,M=m.PCTResizeInfo,R=l.index,N=E,I=P,W=l.getResize({index:R,deltaX:d,deltaY:h,width:N,height:I,PCTResizeInfo:M,pct:1/2}),U=l.nodeModel,ne=U.minWidth,ue=U.minHeight,re=U.maxWidth,Q=U.maxHeight;if(W.width<ne/2||W.width>re/2||W.height<ue/2||W.height>Q/2){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:W.deltaX,deltaY:W.deltaY}),l.nodeModel.rx=W.width,l.nodeModel.ry=W.height,l.nodeModel.setProperties({nodeSize:{rx:W.width,ry:W.height}}),l.getNodeEdges(g);var ee={x:j,y:k},H={rx:W.width,ry:W.height,x:l.nodeModel.x,y:l.nodeModel.y};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:Bc(Bc({},ee),{rx:E,ry:P}),afterNode:H})},l.updateDiamond=function(o){var d=o.deltaX,h=o.deltaY,m=l.nodeModel;m.id;var g=m.rx,E=m.ry,P=m.x,j=m.y,k=m.PCTResizeInfo,M=l.index,R=g,N=E,I=l.getResize({index:M,deltaX:d,deltaY:h,width:R,height:N,PCTResizeInfo:k,pct:1/2}),W=l.nodeModel,U=W.minWidth,ne=W.minHeight,ue=W.maxWidth,re=W.maxHeight;if(I.width<U/2||I.width>ue/2||I.height<ne/2||I.height>re/2){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:I.deltaX,deltaY:I.deltaY}),l.nodeModel.rx=I.width,l.nodeModel.ry=I.height,l.nodeModel.setProperties({nodeSize:{rx:I.width,ry:I.height}});var Q={x:P,y:j,rx:g,ry:E},ee={rx:I.width,ry:I.height,x:l.nodeModel.x,y:l.nodeModel.y};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:Q,afterNode:ee})},l.eventEmit=function(o){var d=o.beforeNode,h=o.afterNode,m=l.nodeModel,g=m.id,E=m.modelType,P=m.type,j=Bc({id:g,modelType:E,type:P},d),k=Bc({id:g,modelType:E,type:P},h);l.graphModel.eventCenter.emit("node:resize",{oldNodeSize:j,newNodeSize:k})},l.onDragging=function(o){var d,h=o.deltaX,m=o.deltaY,g=l.graphModel.transformModel,E=l.nodeModel.modelType;d=K8(g.fixDeltaXY(h,m),2),h=d[0],m=d[1],E===pl.RECT_NODE||E===pl.HTML_NODE?l.updateRect({deltaX:h,deltaY:m}):E===pl.ELLIPSE_NODE?l.updateEllipse({deltaX:h,deltaY:m}):E===pl.DIAMOND_NODE&&l.updateDiamond({deltaX:h,deltaY:m})},l.onDragEnd=function(){l.updateEdgePointByAnchors();var o=l.graphModel.gridSize,d=o===void 0?1:o,h=d*Math.round(l.nodeModel.x/d),m=d*Math.round(l.nodeModel.y/d);l.nodeModel.moveTo(h,m)},l.index=a.index,l.nodeModel=a.model,l.graphModel=a.graphModel,l.state={},l.dragHandler=new q8({onDragging:l.onDragging,onDragEnd:l.onDragEnd,step:1}),l}return u.prototype.getNodeEdges=function(a){for(var l=this.graphModel,o=l.edges,d=[],h=[],m=0;m<o.length;m++){var g=o[m];g.sourceNodeId===a?d.push(g):o[m].targetNodeId===a&&h.push(g)}return{sourceEdges:d,targetEdges:h}},u.prototype.render=function(){var a=this.props,l=a.x,o=a.y,d=a.index,h=a.model,m=h.getControlPointStyle();return gp("g",{className:"lf-resize-control-"+d},gp(Fm,Bc({className:"lf-node-control"},{x:l,y:o},m,{onMouseDown:this.dragHandler.handleMouseDown})))},u}(yl),J8=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),iy=globalThis&&globalThis.__assign||function(){return iy=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},iy.apply(this,arguments)},Py=function(i){J8(u,i);function u(){var a=i.call(this)||this;return a.state={},a}return u.prototype.getResizeControl=function(){var a=this.props,l=a.model,o=a.graphModel,d=l.x,h=l.y,m=l.width,g=l.height,E={minX:d-m/2,minY:h-g/2,maxX:d+m/2,maxY:h+g/2},P=E.minX,j=E.minY,k=E.maxX,M=E.maxY,R=[{x:P,y:j},{x:k,y:j},{x:k,y:M},{x:P,y:M}];return R.map(function(N,I){return gp(Z8,iy({index:I},N,{model:l,graphModel:o}))})},u.prototype.getGroupSolid=function(){var a=this.props.model,l=a.x,o=a.y,d=a.width,h=a.height,m=a.getResizeOutlineStyle();return gp(Fm,iy({fill:"none"},m,{x:l,y:o,width:d,height:h}))},u.prototype.render=function(){return gp("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},u}(yl),yE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Q8=function(i){yE(u,i);function u(a,l){var o=i.call(this,a,l)||this,d=o.properties.nodeSize;return d&&(o.width=d.width,o.height=d.height),o}return u.prototype.initNodeData=function(a){i.prototype.initNodeData.call(this,a),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},u.prototype.getOutlineStyle=function(){var a=i.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(a.stroke="none",a.hover&&(a.hover.stroke="none")),a},u.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},u.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},u.prototype.resize=function(a,l){console.log(a,l)},u.prototype.enableProportionResize=function(a){if(a===void 0&&(a=!0),a){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},u}(rt.RectNodeModel),e5=function(i){yE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props,l=a.model,o=a.graphModel;return rt.h(Py,{model:l,graphModel:o})},u.prototype.getResizeShape=function(){return i.prototype.getShape.call(this)},u.prototype.getShape=function(){var a=this.props,l=a.model.isSelected,o=a.graphModel.editConfigModel.isSilentMode;return rt.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},u}(rt.RectNode),vE={type:"rect",view:e5,model:Q8},gE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();(function(i){gE(u,i);function u(a,l){var o=i.call(this,a,l)||this,d=o.properties.nodeSize;return d&&(o.rx=d.rx,o.ry=d.ry),o}return u.prototype.initNodeData=function(a){i.prototype.initNodeData.call(this,a),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},u.prototype.getOutlineStyle=function(){var a=i.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(a.stroke="none",a.hover&&(a.hover.stroke="none")),a},u.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},u.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},u.prototype.enableProportionResize=function(a){if(a===void 0&&(a=!0),a){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},u})(rt.EllipseNodeModel);(function(i){gE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props,l=a.model,o=a.graphModel;return rt.h(Py,{model:l,graphModel:o})},u.prototype.getResizeShape=function(){return i.prototype.getShape.call(this)},u.prototype.getShape=function(){var a=this.props,l=a.model,o=a.graphModel.editConfigModel.isSilentMode;return rt.h("g",null,this.getResizeShape(),l.isSelected&&!o?this.getControlGroup():"")},u})(rt.EllipseNode);var qb=globalThis&&globalThis.__assign||function(){return qb=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},qb.apply(this,arguments)};function t5(i){var u=i.fillOpacity,a=u===void 0?1:u,l=i.strokeWidth,o=l===void 0?1:l,d=i.strokeOpacity,h=d===void 0?1:d,m=i.fill,g=m===void 0?"transparent":m,E=i.stroke,P=E===void 0?"#000":E,j=i.points,k=i.className,M=k===void 0?"lf-basic-shape":k,R={fill:g,fillOpacity:a,strokeWidth:o,stroke:P,strokeOpacity:h,points:"",className:M};return R.points=j.map(function(N){return N.join(",")}).join(" "),rt.h("polygon",qb({},R))}var bE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Zb=globalThis&&globalThis.__assign||function(){return Zb=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},Zb.apply(this,arguments)};(function(i){bE(u,i);function u(a,l){var o=i.call(this,a,l)||this,d=o.properties.nodeSize;return d&&(o.rx=d.rx,o.ry=d.ry),o}return u.prototype.initNodeData=function(a){i.prototype.initNodeData.call(this,a),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},u.prototype.getOutlineStyle=function(){var a=i.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(a.stroke="none",a.hover&&(a.hover.stroke="none")),a},u.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},u.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},u.prototype.enableProportionResize=function(a){if(a===void 0&&(a=!0),a){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},u})(rt.DiamondNodeModel);(function(i){bE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props,l=a.model,o=a.graphModel;return rt.h(Py,{model:l,graphModel:o})},u.prototype.getResizeShape=function(){var a=this.props.model,l=a.points,o=a.getNodeStyle();return rt.h("g",null,rt.h(t5,Zb({},o,{points:l})))},u.prototype.getShape=function(){var a=this.props,l=a.model.isSelected,o=a.graphModel.editConfigModel.isSilentMode;return rt.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},u})(rt.DiamondNode);var mE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();(function(i){mE(u,i);function u(a,l){var o=i.call(this,a,l)||this,d=o.properties.nodeSize;return d&&(o.width=d.width,o.height=d.height),o}return u.prototype.initNodeData=function(a){i.prototype.initNodeData.call(this,a),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},u.prototype.getOutlineStyle=function(){var a=i.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(a.stroke="none",a.hover&&(a.hover.stroke="none")),a},u.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},u.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},u.prototype.enableProportionResize=function(a){if(a===void 0&&(a=!0),a){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},u})(rt.HtmlNodeModel);(function(i){mE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props,l=a.model,o=a.graphModel;return rt.h(Py,{model:l,graphModel:o})},u.prototype.getResizeShape=function(){return i.prototype.getShape.call(this)},u.prototype.getShape=function(){var a=this.props,l=a.model.isSelected,o=a.graphModel.editConfigModel.isSilentMode;return rt.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},u})(rt.HtmlNode);var _E=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),ay=globalThis&&globalThis.__assign||function(){return ay=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},ay.apply(this,arguments)},n5=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d},r5=globalThis&&globalThis.__spread||function(){for(var i=[],u=0;u<arguments.length;u++)i=i.concat(n5(arguments[u]));return i},xO=500,EO=300,o5=-1e4;(function(i){_E(u,i);function u(){var a=i!==null&&i.apply(this,arguments)||this;return a.isGroup=!0,a.unfoldedWidth=xO,a.unfoldedHight=EO,a.childrenLastFoldStatus={},a}return u.prototype.initNodeData=function(a){var l=this;i.prototype.initNodeData.call(this,a);var o=[];Array.isArray(a.children)&&(o=a.children),this.children=new Set(o),this.width=xO,this.height=EO,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=o5,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)})},u.prototype.getResizeOutlineStyle=function(){var a=i.prototype.getResizeOutlineStyle.call(this);return a.stroke="none",a},u.prototype.foldGroup=function(a){var l=this;if(a!==this.isFolded){this.setProperty("isFolded",a),this.isFolded=a,a?(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),m=h.isFolded;if(h.isGroup&&!h.isFolded&&h.foldGroup(a),h.isGroup&&!a){var g=l.childrenLastFoldStatus[d];g!==void 0&&g!==h.isFolded&&h.foldGroup(g)}l.childrenLastFoldStatus[d]=m,h.visible=!a,o=o.concat(h.incoming.edges.concat(h.outgoing.edges))}),this.foldEdge(a,o)}},u.prototype.getAnchorStyle=function(a){var l=i.prototype.getAnchorStyle.call(this,a);return l.stroke="transparent",l.fill="transparent",l.hover.fill="transparent",l.hover.stroke="transparent",l},u.prototype.foldEdge=function(a,l){var o=this;l.forEach(function(d,h){var m=d.id,g=d.sourceNodeId,E=d.targetNodeId,P=d.startPoint,j=d.endPoint,k=d.type,M=d.text,R=d.getProperties(),N={id:m+"__"+h,sourceNodeId:g,targetNodeId:E,startPoint:P,endPoint:j,type:k,properties:R,text:M==null?void 0:M.value};d.virtual&&o.graphModel.deleteEdgeById(d.id);var I=o.graphModel.group.getNodeGroup(E);I||(I=o.graphModel.getNodeModelById(E));var W=o.graphModel.group.getNodeGroup(g);W||(W=o.graphModel.getNodeModelById(g)),a&&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),(I.id!==o.id||W.id!==o.id)&&o.createVirtualEdge(N),d.visible=!1),!a&&d.visible===!1&&(I&&I.isGroup&&I.isFolded?(N.targetNodeId=I.id,N.endPoint=void 0,o.createVirtualEdge(N)):W&&W.isGroup&&W.isFolded?(N.sourceNodeId=W.id,N.startPoint=void 0,o.createVirtualEdge(N)):d.visible=!0)})},u.prototype.createVirtualEdge=function(a){a.pointsList=void 0;var l=this.graphModel.addEdge(a);l.virtual=!0,l.text.editable=!1,l.isFoldedEdge=!0},u.prototype.isInRange=function(a){var l=a.x1,o=a.y1,d=a.x2,h=a.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},u.prototype.isAllowMoveTo=function(a){var l=a.x1,o=a.y1,d=a.x2,h=a.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}},u.prototype.setAllowAppendChild=function(a){this.setProperty("groupAddable",a)},u.prototype.addChild=function(a){this.children.add(a),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})},u.prototype.removeChild=function(a){this.children.delete(a),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})},u.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},u.prototype.getData=function(){var a=this,l=i.prototype.getData.call(this);l.children=[],this.children.forEach(function(d){var h=a.graphModel.getNodeModelById(d);h&&!h.virtual&&l.children.push(d)});var o=l.properties;return delete o.groupAddable,delete o.isFolded,l},u.prototype.getHistoryData=function(){var a=i.prototype.getData.call(this);a.children=r5(this.children),a.isGroup=!0;var l=a.properties;return delete l.groupAddable,l.isFolded&&(a.x=a.x+this.unfoldedWidth/2-this.foldedWidth/2,a.y=a.y+this.unfoldedHight/2-this.foldedHeight/2),a},u.prototype.isAllowAppendIn=function(a){return!0},u.prototype.toBack=function(){this.zIndex--},u})(vE.model);(function(i){_E(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.getControlGroup=function(){var a=this.props.model,l=a.resizable,o=a.properties;return l&&!o.isFolded?i.prototype.getControlGroup.call(this):null},u.prototype.getAddableShape=function(){var a=this.props.model,l=a.width,o=a.height,d=a.x,h=a.y,m=a.radius,g=a.properties;if(!g.groupAddable)return null;var E=this.props.model.getNodeStyle().strokeWidth,P=this.props.model.getAddableOutlineStyle(),j=l+E+8,k=o+E+8;return rt.h("rect",ay(ay({},P),{width:j,height:k,x:d-j/2,y:h-k/2,rx:m,ry:m}))},u.prototype.getFoldIcon=function(){var a=this.props.model,l=a.x-a.width/2+5,o=a.y-a.height/2+5;if(!a.foldable)return null;var d=rt.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:a.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 rt.h("g",{},[rt.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:a.x-a.width/2+5,y:a.y-a.height/2+5,onClick:function(){a.foldGroup(!a.properties.isFolded)}}),d])},u.prototype.getResizeShape=function(){return rt.h("g",{},[this.getAddableShape(),i.prototype.getResizeShape.call(this),this.getFoldIcon()])},u})(vE.view);globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();var SO=globalThis&&globalThis.__assign||function(){return SO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},SO.apply(this,arguments)};globalThis&&globalThis.__values;var jO=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),mp=globalThis&&globalThis.__assign||function(){return mp=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},mp.apply(this,arguments)};function i5(i){var u=function(l){jO(o,l);function o(d,h){var m=this;d.id||(d.id="Flow_"+C8());var g=mp(mp(mp({},i||{}),d.properties),{isDefaultFlow:!1});return d.properties=g,m=l.call(this,d,h)||this,m}return o.extendKey="SequenceFlowModel",o}(rt.PolylineEdgeModel),a=function(l){jO(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?rt.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):rt.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(rt.PolylineEdge);return{type:"bpmn:sequenceFlow",view:a,model:u}}i5();globalThis&&globalThis.__read;var PO={width:40,height:40},AO={width:40,height:40},TO={width:100,height:80},uy={width:100,height:80},MO={width:100,height:80},kO={width:100,height:80},DO={width:100,height:80},NO={width:100,height:80},RO={width:100,height:80},CO={width:100,height:80},po=function(){};po.ObjTree=function(){return this};po.ObjTree.VERSION="0.23";po.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
`;po.ObjTree.prototype.attr_prefix="-";po.ObjTree.prototype.parseXML=function(i){var u;if(window.DOMParser){var a=new DOMParser,l=a.parseFromString(i,"application/xml");if(!l)return;u=l.documentElement}else window.ActiveXObject&&(a=new ActiveXObject("Microsoft.XMLDOM"),a.async=!1,a.loadXML(i),u=a.documentElement);if(u){var o=this.parseDOM(u);return o}};po.ObjTree.prototype.parseHTTP=function(i,u,a){var l={};for(var o in u)l[o]=u[o];if(l.method||(typeof l.postBody>"u"&&typeof l.postbody>"u"&&typeof l.parameters>"u"?l.method="get":l.method="post"),a){l.asynchronous=!0;var d=this,h=a,m=l.onComplete;l.onComplete=function(P){var j;P&&P.responseXML&&P.responseXML.documentElement&&(j=d.parseDOM(P.responseXML.documentElement)),h(j,P),m&&m(P)}}else l.asynchronous=!1;var g;if(typeof HTTP<"u"&&HTTP.Request){l.uri=i;var E=new HTTP.Request(l);E&&(g=E.transport)}else if(typeof Ajax<"u"&&Ajax.Request){var E=new Ajax.Request(i,l);E&&(g=E.transport)}if(a)return g;if(g&&g.responseXML&&g.responseXML.documentElement)return this.parseDOM(g.responseXML.documentElement)};po.ObjTree.prototype.parseDOM=function(i){if(i){if(this.__force_array={},this.force_array)for(var u=0;u<this.force_array.length;u++)this.__force_array[this.force_array[u]]=1;var a=this.parseElement(i);if(this.__force_array[i.nodeName]&&(a=[a]),i.nodeType!==11){var l={};l[i.nodeName]=a,a=l}return a}};po.ObjTree.prototype.parseElement=function(i){if(i.nodeType!==7){if(i.nodeType===3||i.nodeType===4||i.nodeType===8){var u=i.nodeValue.match(/[^\x00-\x20]/);return u==null?void 0:i.nodeValue}var a=null,l={};if(i.attributes&&i.attributes.length){a={};for(var o=0;o<i.attributes.length;o++){var d=i.attributes[o].nodeName;if(typeof d=="string"){var h=i.attributes[o].nodeValue;try{h=JSON.parse(i.attributes[o].nodeValue.replace(/'/g,'"'))}catch{h=i.attributes[o].nodeValue}h!=null&&(d=this.attr_prefix+d,typeof l[d]>"u"&&(l[d]=0),l[d]++,this.addNode(a,d,l[d],h))}}}if(i.childNodes&&i.childNodes.length){var m=!0;a&&(m=!1);for(var o=0;o<i.childNodes.length&&m;o++){var g=i.childNodes[o].nodeType;g===3||g===4||g===8||(m=!1)}if(m){a||(a="");for(var o=0;o<i.childNodes.length;o++)a+=i.childNodes[o].nodeValue}else{a||(a={});for(var o=0;o<i.childNodes.length;o++){var d=i.childNodes[o].nodeName;if(typeof d=="string"){var h=this.parseElement(i.childNodes[o]);h&&(typeof l[d]>"u"&&(l[d]=0),l[d]++,this.addNode(a,d,l[d],h))}}}}else a===null&&(a={});return a}};po.ObjTree.prototype.addNode=function(i,u,a,l){this.__force_array[u]?(a===1&&(i[u]=[]),i[u][i[u].length]=l):a===1?i[u]=l:a===2?i[u]=[i[u],l]:i[u][i[u].length]=l};po.ObjTree.prototype.writeXML=function(i){var u=this.hash_to_xml(null,i);return this.xmlDecl+u};po.ObjTree.prototype.hash_to_xml=function(i,u){var a=[],l=[];for(var o in u)if(u!=null&&u.hasOwnProperty(o)){var d=u[o];o.charAt(0)!==this.attr_prefix?typeof d>"u"||d==null?a[a.length]="<"+o+" />":typeof d=="object"&&d.constructor===Array?a[a.length]=this.array_to_xml(o,d):typeof d=="object"?a[a.length]=this.hash_to_xml(o,d):a[a.length]=this.scalar_to_xml(o,d):l[l.length]=" "+o.substring(1)+'="'+this.xml_escape(d)+'"'}var h=l.join(""),m=a.join("");return typeof i>"u"||i==null||(a.length>0?m.match(/\n/)?m="<"+i+h+`>
`+m+"</"+i+`>
`:m="<"+i+h+">"+m+"</"+i+`>
`:m="<"+i+h+` />
`),m};po.ObjTree.prototype.array_to_xml=function(i,u){for(var a=[],l=0;l<u.length;l++){var o=u[l];typeof o>"u"||o==null?a[a.length]="<"+i+" />":typeof o=="object"&&o.constructor===Array?a[a.length]=this.array_to_xml(i,o):typeof o=="object"?a[a.length]=this.hash_to_xml(i,o):a[a.length]=this.scalar_to_xml(i,o)}return a.join("")};po.ObjTree.prototype.scalar_to_xml=function(i,u){return i==="#text"?this.xml_escape(u):"<"+i+">"+this.xml_escape(u)+"</"+i+`>
`};po.ObjTree.prototype.xml_escape=function(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var a5=function(i){return new po.ObjTree().parseXML(i)};function OE(i){return Object.prototype.toString.call(i)}function IO(i){return" ".repeat(i)}function cy(i){return OE(i)==="[object Object]"?Object.keys(i).reduce(function(u,a){var l=a;return a.charAt(0)==="-"&&(l=a.substring(1)),u[l]=cy(i[a]),u},{}):Array.isArray(i)?i.map(function(u){return cy(u)}):i}function u5(i){var u=i;try{typeof u!="string"&&(u=JSON.parse(i))}catch{u=JSON.stringify(cy(i)).replace(/"/g,"'")}return u}var LO=`
`;function Vh(i,u,a){var l=IO(a),o="",d=LO+l;if(u==="-json")return"";if(u==="#text")return d+i;if(u==="#cdata-section")return d+"<![CDATA["+i+"]]>";if(u==="#comment")return d+"<!--"+i+"-->";if((""+u).charAt(0)==="-")return" "+u.substring(1)+'="'+u5(i)+'"';if(Array.isArray(i))o+=i.map(function(E){return Vh(E,u,a+1)}).join("");else if(OE(i)==="[object Object]"){var h=Object.keys(i),m="",g=i["-json"]?LO+IO(a+1)+i["-json"]:"";o+=(a===0?"":d)+"<"+u,h.forEach(function(E){E.charAt(0)==="-"?m+=Vh(i[E],E,a+1):g+=Vh(i[E],E,a+1)}),o+=m+(g!==""?">"+g+d+"</"+u+">":" />")}else o+=d+"<"+u+">"+i.toString()+"</"+u+">";return o}function c5(i){var u="";for(var a in i)u+=Vh(i[a],a,0);return u}var s5=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),Jb=globalThis&&globalThis.__assign||function(){return Jb=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},Jb.apply(this,arguments)},BO=globalThis&&globalThis.__rest||function(i,u){var a={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&u.indexOf(l)<0&&(a[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(i);o<l.length;o++)u.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(i,l[o])&&(a[l[o]]=i[l[o]]);return a},$m=globalThis&&globalThis.__values||function(i){var u=typeof Symbol=="function"&&Symbol.iterator,a=u&&i[u],l=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&l>=i.length&&(i=void 0),{value:i&&i[l++],done:!i}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},Pl=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d},vl=globalThis&&globalThis.__spread||function(){for(var i=[],u=0;u<arguments.length;u++)i=i.concat(Pl(arguments[u]));return i},so;(function(i){i.START="bpmn:startEvent",i.END="bpmn:endEvent",i.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",i.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",i.BOUNDARY="bpmn:boundaryEvent",i.PARALLEL_GATEWAY="bpmn:parallelGateway",i.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",i.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",i.USER="bpmn:userTask",i.SYSTEM="bpmn:serviceTask",i.FLOW="bpmn:sequenceFlow",i.SUBPROCESS="bpmn:subProcess"})(so||(so={}));var wE=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],l5=["properties","startPoint","endPoint","pointsList"],sy={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},xE=function(i,u){var a=Object.keys(u||{});return a.forEach(function(l){if(i[l]){var o=u[l],d=o.in,h=o.out;d&&(i[l].in=d),h&&(i[l].out=h)}else i[l]=u[l]}),i},ai={"bpmn:startEvent":{out:function(i){var u,a,l=i.properties;return((a=(u=ai[l.definitionType])===null||u===void 0?void 0:u.out)===null||a===void 0?void 0:a.call(u,i))||{}}},"bpmn:intermediateCatchEvent":{out:function(i){var u,a,l=i.properties;return((a=(u=ai[l.definitionType])===null||u===void 0?void 0:u.out)===null||a===void 0?void 0:a.call(u,i))||{}}},"bpmn:intermediateThrowEvent":{out:function(i){var u,a,l=i.properties;return((a=(u=ai[l.definitionType])===null||u===void 0?void 0:u.out)===null||a===void 0?void 0:a.call(u,i))||{}}},"bpmn:boundaryEvent":{out:function(i){var u,a,l=i.properties;return((a=(u=ai[l.definitionType])===null||u===void 0?void 0:u.out)===null||a===void 0?void 0:a.call(u,i))||{}}},"bpmn:sequenceFlow":{out:function(i){var u=i.properties,a=u.expressionType,l=u.condition;return l?a==="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(i){var u=i.properties,a=u.timerType,l=u.timerValue,o=u.definitionId,d=function(){return"<bpmn:"+a+' xsi:type="bpmn:tFormalExpression">'+l+"</bpmn:"+a+">"};return{json:'<bpmn:timerEventDefinition id="'+o+'"'+(a&&l?">"+d()+"</bpmn:timerEventDefinition>":"/>")}},in:function(i,u){var a,l,o,d,h=i,m=u["-id"],g="",E="";try{for(var P=$m(Object.keys(u)),j=P.next();!j.done;j=P.next()){var k=j.value;k.includes("bpmn:")&&(o=Pl(k.split(":"),2),g=o[1],E=(d=u[k])===null||d===void 0?void 0:d["#text"])}}catch(M){a={error:M}}finally{try{j&&!j.done&&(l=P.return)&&l.call(P)}finally{if(a)throw a.error}}return{"-definitionId":m,"-definitionType":h,"-timerType":g,"-timerValue":E}}},"bpmn:conditionExpression":{in:function(i,u){var a,l="",o="";return u["#cdata-section"]?(o="cdata",l=((a=/^\$\{(.*)\}$/g.exec(u["#cdata-section"]))===null||a===void 0?void 0:a[1])||""):u["#text"]&&(o="normal",l=u["#text"]),{"-condition":l,"-expressionType":o}}}};function f5(i){var u=i??{},a=u.retainedAttrsFields,l=u.excludeFields,o=u.transformer,d=new Set(vl(l5,a||[])),h={in:new Set(vl(sy.in,(l==null?void 0:l.in)||[])),out:new Set(vl(sy.out,(l==null?void 0:l.out)||[]))};return ai=xE(ai,o),function(m){var g=m.nodes,E=m.edges;function P(j,k){var M,R,N;if((j==null?void 0:j.flag)!==1){var I;if((I=ai[j.type])&&I.out){var W=I.out(j),U=Object.keys(W);U.length>0&&U.forEach(function(X){j[X]=W[X]})}j!=null&&j.children&&(j.children=j.children.map(function(X){var V=g.find(function(q){return q.id===X})||E.find(function(q){return q.id===X});return V||{}}));var ne={};if(typeof j=="string")return j;if(Array.isArray(j))return j.map(function(X){return P(X,"")}).filter(function(X){return X!=null});try{for(var ue=$m(Object.entries(j)),re=ue.next();!re.done;re=ue.next()){var Q=Pl(re.value,2),ee=Q[0],H=Q[1];if(((N=H)===null||N===void 0?void 0:N.flag)===1)return;var B=[k,ee].filter(function(X){return X}).join(".");h.out.has(B)||(typeof H!="object"?ee.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(ee)?ne[ee]=H:ne["-"+ee]=H:d.has(B)?ne["-"+ee]=P(H,B):ne[ee]=P(H,B))}}catch(X){M={error:X}}finally{try{re&&!re.done&&(R=ue.return)&&R.call(ue)}finally{if(M)throw M.error}}return ne}}return P(m,"")}}function ly(i){var u,a,l={};try{for(var o=$m(Object.entries(i)),d=o.next();!d.done;d=o.next()){var h=Pl(d.value,2),m=h[0],g=h[1];m.indexOf("-")===0?l[m.substring(1)]=cy(g):typeof g=="string"?l[m]=g:Object.prototype.toString.call(g)==="[object Object]"?l[m]=ly(g):Array.isArray(g)?l[m]=g.map(function(E){return ly(E)}):l[m]=g}}catch(E){u={error:E}}finally{try{d&&!d.done&&(a=o.return)&&a.call(o)}finally{if(u)throw u.error}}return l}function p5(i,u,a){var l,o=new Map,d=f5(a)(u);d.nodes.forEach(function(m){var g=m["-id"],E=m["-type"],P=m.text,j=m.children,k=BO(m,["-id","-type","text","children"]),M={"-id":g};P!=null&&P["-value"]&&(M["-name"]=P["-value"]),k["-json"]&&(M["-json"]=k["-json"]),k["-properties"]&&Object.assign(M,k["-properties"]),j&&(M.children=j),i[E]||(i[E]=[]),i[E].push(M),o.set(g,M)});var h=d.edges.map(function(m){var g=m["-id"];m["-type"];var E=m["-sourceNodeId"],P=m["-targetNodeId"],j=m.text,k=BO(m,["-id","-type","-sourceNodeId","-targetNodeId","text"]),M=o.get(P);M["bpmn:incoming"]||(M["bpmn:incoming"]=[]),M["bpmn:incoming"].push(g);var R={"-id":g,"-sourceRef":E,"-targetRef":P};return j!=null&&j["-value"]&&(R["-name"]=j["-value"]),k["-json"]&&(R["-json"]=k["-json"]),k["-properties"]&&Object.assign(R,k["-properties"]),R});return u.edges.forEach(function(m){var g=m.sourceNodeId,E=m.id,P=o.get(g);P["bpmn:outgoing"]||(P["bpmn:outgoing"]=[]),P["bpmn:outgoing"].push(E)}),(l=i["bpmn:subProcess"])===null||l===void 0||l.forEach(function(m){var g={"bpmn:incoming":new Set,"bpmn:outgoing":new Set},E=[];m.children.forEach(function(N){var I,W=o.get(N["-id"]);["bpmn:incoming","bpmn:outgoing"].forEach(function(ne){W[ne]&&W[ne].forEach(function(ue){g[ne].add(ue)})});var U=(I=i[N["-type"]])===null||I===void 0?void 0:I.findIndex(function(ne){return ne["-id"]===N["-id"]});U>=0&&i[N["-type"]].splice(U,1),o.delete(N["-id"]),m[N["-type"]]||(m[N["-type"]]=[]),m[N["-type"]].push(W)});var P=g["bpmn:incoming"],j=g["bpmn:outgoing"];j.forEach(function(N){P.has(N)&&E.push(N)});for(var k=function(N){var I=h.findIndex(function(W){return W["-id"]===E[N]});I>=0?(m["bpmn:sequenceFlow"]||(m["bpmn:sequenceFlow"]=[]),m["bpmn:sequenceFlow"].push(h[I]),h.splice(I,1)):N++,M=N},M,R=0;R<E.length;)k(R),R=M;delete m.children}),i[so.FLOW]=h,i}function d5(i,u){i["bpmndi:BPMNEdge"]=u.edges.map(function(a){var l,o=a.id,d=a.pointsList.map(function(m){var g=m.x,E=m.y;return{"-x":g,"-y":E}}),h={"-id":o+"_di","-bpmnElement":o,"di:waypoint":d};return!((l=a.text)===null||l===void 0)&&l.value&&(h["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":a.text.x-a.text.value.length*10/2,"-y":a.text.y-7,"-width":a.text.value.length*10,"-height":14}}),h}),i["bpmndi:BPMNShape"]=u.nodes.map(function(a){var l,o=a.id,d=100,h=80,m=a.x,g=a.y,E=Eo.shapeConfigMap.get(a.type);E&&(d=E.width,h=E.height),m-=d/2,g-=h/2;var P={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":m,"-y":g,"-width":d,"-height":h}};return!((l=a.text)===null||l===void 0)&&l.value&&(P["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":a.text.x-a.text.value.length*10/2,"-y":a.text.y-7,"-width":a.text.value.length*10,"-height":14}}),P})}var h5=["bpmn:incoming","bpmn:outgoing"];function y5(i,u){var a=[],l=[],o=new Map,d=u??{},h=d.transformer,m=d.excludeFields,g={in:new Set(vl(sy.in,(m==null?void 0:m.in)||[])),out:new Set(vl(sy.out,(m==null?void 0:m.out)||[]))};ai=xE(ai,h);var E=i["bpmn:definitions"];if(E){var P=E["bpmn:process"];(function(k,M){M.forEach(function(R){try{Object.keys(k).forEach(function(N){try{R(N)}catch(I){console.error(I)}})}catch(N){console.error(N)}})})(P,[function(k){function M(N){N["-children"]||(N["-children"]=[]),Object.keys(N).forEach(function(I){var W;I.indexOf("bpmn:")===0&&!h5.includes(I)&&(P[I]||(P[I]=[]),!Array.isArray(P[I])&&(P[I]=[P[I]]),Array.isArray(N[I])?(W=P[I]).push.apply(W,vl(N[I])):P[I].push(N[I]),Array.isArray(N[I])?N[I].forEach(function(U){!I.includes("Flow")&&N["-children"].push(U["-id"])}):!I.includes("Flow")&&N["-children"].push(N[I]["-id"]),delete N[I])})}if(k==="bpmn:subProcess"){var R=P[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(I){var W,U;if(I.includes("bpmn:")){var ne={};ai[I]&&ai[I].in?(ne=(U=(W=ai[I]).in)===null||U===void 0?void 0:U.call(W,I,$.cloneDeep(N[I])),delete N[I]):R(N[I]);var ue=void 0;(ue=Reflect.ownKeys(ne)).length>0&&ue.forEach(function(re){Reflect.set(N,re,ne[re])})}})};function R(N){o.set(N["-id"],N),Array.isArray(N)?N.forEach(function(I){R(I)}):typeof N=="object"&&M(N)}R(P[k])},function(k){if(k.indexOf("bpmn:")===0){var M=P[k];if(k==="bpmn:sequenceFlow"){var R=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];l=g5(M,R)}else{var N=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(k==="bpmn:boundaryEvent"){var I=P[k],W=function(U){var ne=U["-attachedToRef"],ue=o.get(ne);ue["-boundaryEvents"]||(ue["-boundaryEvents"]=[]),ue["-boundaryEvents"].push(U["-id"])};Array.isArray(I)?I.forEach(function(U){W(U)}):W(I)}a=a.concat(v5(M,N,k))}}}])}var j=function(k,M,R){Object.keys(k).forEach(function(N){var I=R?R+"."+N:N;M.has(I)?delete k[N]:typeof k[N]=="object"&&j(k[N],M,I)})};return a.forEach(function(k){var M,R;if(!((M=u==null?void 0:u.mapping)===null||M===void 0)&&M.in){var N=(R=u==null?void 0:u.mapping)===null||R===void 0?void 0:R.in,I=k.type;N[I]&&(k.type=N[I])}j(k,g.in,"")}),l.forEach(function(k){var M,R;if(!((M=u==null?void 0:u.mapping)===null||M===void 0)&&M.in){var N=(R=u==null?void 0:u.mapping)===null||R===void 0?void 0:R.in,I=k.type;N[I]&&(k.type=N[I])}j(k,g.in,"")}),{nodes:a,edges:l}}function v5(i,u,a){var l=[];if(Array.isArray(i))i.forEach(function(h){var m;Array.isArray(u)?m=u.find(function(E){return E["-bpmnElement"]===h["-id"]}):m=u;var g=zO(m,a,h);l.push(g)});else{var o=void 0;Array.isArray(u)?o=u.find(function(h){return h["-bpmnElement"]===i["-id"]}):o=u;var d=zO(o,a,i);l.push(d)}return l}function zO(i,u,a){var l=Number(i["dc:Bounds"]["-x"]),o=Number(i["dc:Bounds"]["-y"]),d=a["-children"],h=a["-name"],m=Eo.shapeConfigMap.get(u);m&&(l+=m.width/2,o+=m.height/2);var g={};Object.entries(a).forEach(function(k){var M=Pl(k,2),R=M[0],N=M[1];wE.includes(R)||(g[R]=N)}),g=ly(g);var E;if(h&&(E={x:l,y:o,value:h},i["bpmndi:BPMNLabel"]&&i["bpmndi:BPMNLabel"]["dc:Bounds"])){var P=i["bpmndi:BPMNLabel"]["dc:Bounds"];E.x=Number(P["-x"])+Number(P["-width"])/2,E.y=Number(P["-y"])+Number(P["-height"])/2}var j={id:i["-bpmnElement"],type:u,x:l,y:o,properties:g};return d&&(j.children=d),E&&(j.text=E),j}function g5(i,u){var a=[];if(Array.isArray(i))i.forEach(function(o){var d;Array.isArray(u)?d=u.find(function(h){return h["-bpmnElement"]===o["-id"]}):d=u,a.push(FO(d,o))});else{var l=void 0;Array.isArray(u)?l=u.find(function(o){return o["-bpmnElement"]===i["-id"]}):l=u,a.push(FO(l,i))}return a}function FO(i,u){var a,l=u["-name"];if(l){var o=i["bpmndi:BPMNLabel"]["dc:Bounds"],d=0;l.split(`
`).forEach(function(E){d<E.length&&(d=E.length)}),a={value:l,x:Number(o["-x"])+d*10/2,y:Number(o["-y"])+7}}var h={};Object.entries(u).forEach(function(E){var P=Pl(E,2),j=P[0],k=P[1];wE.includes(j)||(h[j]=k)}),h=ly(h);var m=i["di:waypoint"].map(function(E){return{x:Number(E["-x"]),y:Number(E["-y"])}}),g={id:u["-id"],type:so.FLOW,pointsList:m,sourceNodeId:u["-sourceRef"],targetNodeId:u["-targetRef"],properties:h};return a&&(g.text=a),g}var Eo=function(){function i(u){var a=this,l=u.lf;this.adapterOut=function(o,d){var h,m,g=Jb({},a.processAttributes);p5(g,o,d);var E={"-id":"BPMNPlane_1","-bpmnElement":g["-id"]};d5(E,o);var P=a.definitionAttributes;P["bpmn:process"]=g,P["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":E};var j={"bpmn:definitions":P};if(!((h=d==null?void 0:d.mapping)===null||h===void 0)&&h.out){var k=(m=d==null?void 0:d.mapping)===null||m===void 0?void 0:m.out,M=function(R){Array.isArray(R)&&R.forEach(function(N){return M(N)}),typeof R=="object"&&Object.keys(R).forEach(function(N){var I;(I=k[N])?(R[I]=$.cloneDeep(R[N]),delete R[N],M(R[I])):M(R[N])})};M(j)}return j},this.adapterIn=function(o,d){if(o)return y5(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 i.prototype.setCustomShape=function(u,a){i.shapeConfigMap.set(u,a)},i.pluginName="bpmn-adapter",i.shapeConfigMap=new Map,i}();Eo.shapeConfigMap.set(so.START,{width:PO.width,height:PO.height});Eo.shapeConfigMap.set(so.END,{width:AO.width,height:AO.height});Eo.shapeConfigMap.set(so.INTERMEDIATE_CATCH,{width:uy.width,height:uy.height});Eo.shapeConfigMap.set(so.INTERMEDIATE_THROW,{width:uy.width,height:uy.height});Eo.shapeConfigMap.set(so.BOUNDARY,{width:TO.width,height:TO.height});Eo.shapeConfigMap.set(so.PARALLEL_GATEWAY,{width:MO.width,height:MO.height});Eo.shapeConfigMap.set(so.INCLUSIVE_GATEWAY,{width:kO.width,height:kO.height});Eo.shapeConfigMap.set(so.EXCLUSIVE_GATEWAY,{width:DO.width,height:DO.height});Eo.shapeConfigMap.set(so.SYSTEM,{width:NO.width,height:NO.height});Eo.shapeConfigMap.set(so.USER,{width:RO.width,height:RO.height});Eo.shapeConfigMap.set(so.SUBPROCESS,{width:CO.width,height:CO.height});(function(i){s5(u,i);function u(a){var l=i.call(this,a)||this;l.adapterXmlIn=function(h){var m=a5(h);return l.adapterIn(m,l.props)},l.adapterXmlOut=function(h){var m=l.adapterOut(h,l.props);return c5(m)};var o=a.lf,d=a.props;return o.adapterIn=l.adapterXmlIn,o.adapterOut=l.adapterXmlOut,l.props=d,l}return u.pluginName="BPMNAdapter",u})(Eo);var b5=function(){function i(u){var a=this,l=u.lf;this.lf=l,this.customCssRules="",this.useGlobalRules=!0,l.getSnapshot=function(o,d){a.getSnapshot(o,d)},l.getSnapshotBlob=function(o){return a.getSnapshotBlob(o)},l.getSnapshotBase64=function(o){return a.getSnapshotBase64(o)}}return i.prototype.getSvgRootElement=function(u){var a=u.container.querySelector(".lf-canvas-overlay");return a},i.prototype.triggerDownload=function(u){var a=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0}),l=document.createElement("a");l.setAttribute("download",this.fileName),l.setAttribute("href",u),l.setAttribute("target","_blank"),l.dispatchEvent(a)},i.prototype.removeAnchor=function(u){for(var a=u.childNodes,l=u.childNodes&&u.childNodes.length,o=0;o<l;o++){var d=a[o],h=d.classList&&Array.from(d.classList)||[];h.indexOf("lf-anchor")>-1&&(u.removeChild(u.childNodes[o]),l--,o--)}},i.prototype.removeRotateControl=function(u){for(var a=u.childNodes,l=u.childNodes&&u.childNodes.length,o=0;o<l;o++){var d=a[o],h=d.classList&&Array.from(d.classList)||[];h.indexOf("lf-rotate-control")>-1&&(u.removeChild(u.childNodes[o]),l--,o--)}},i.prototype.getSnapshot=function(u,a){var l=this;this.fileName=u||"logic-flow."+Date.now()+".png";var o=this.getSvgRootElement(this.lf);this.getCanvasData(o,a).then(function(d){var h=d.toDataURL("image/png").replace("image/png","image/octet-stream");l.triggerDownload(h)})},i.prototype.getSnapshotBase64=function(u){var a=this,l=this.getSvgRootElement(this.lf);return new Promise(function(o){a.getCanvasData(l,u).then(function(d){var h=d.toDataURL("image/png");o({data:h,width:d.width,height:d.height})})})},i.prototype.getSnapshotBlob=function(u){var a=this,l=this.getSvgRootElement(this.lf);return new Promise(function(o){a.getCanvasData(l,u).then(function(d){d.toBlob(function(h){o({data:h,width:d.width,height:d.height})},"image/png")})})},i.prototype.getClassRules=function(){var u="";if(this.useGlobalRules)for(var a=document.styleSheets,l=0;l<a.length;l++)for(var o=a[l],d=0;d<o.cssRules.length;d++)u+=o.cssRules[d].cssText;return this.customCssRules&&(u+=this.customCssRules),u},i.prototype.getCanvasData=function(u,a){var l=this,o=u.cloneNode(!0),d=o.lastChild,h=d.childNodes&&d.childNodes.length;if(h)for(var m=0;m<h;m++){var g=d.childNodes[m],E=g.classList&&Array.from(g.classList);if(E&&E.indexOf("lf-base")<0)d.removeChild(d.childNodes[m]),h--,m--;else{var P=d.childNodes[m];P&&P.childNodes.forEach(function(we){var ye=we;l.removeAnchor(ye.firstChild),l.removeRotateControl(ye.firstChild)})}}var j=window.devicePixelRatio||1;j<1&&(j=1);var k=document.createElement("canvas"),M=this.lf.graphModel.rootEl.querySelector(".lf-base"),R=M.getBoundingClientRect(),N=document.querySelector(".lf-canvas-overlay").getBoundingClientRect(),I=R.x-N.x,W=R.y-N.y,U=this.lf.graphModel,ne=U.transformModel,ue=ne.SCALE_X,re=ne.SCALE_Y,Q=ne.TRANSLATE_X,ee=ne.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-I+Q)*(1/ue)+10)+", "+((-W+ee)*(1/re)+10)+")";var H=Math.ceil(R.width/ue),B=Math.ceil(R.height/re);k.style.width=H+"px",k.style.height=B+"px",k.width=H*j+80,k.height=B*j+80;var X=k.getContext("2d");X.clearRect(0,0,k.width,k.height),X.scale(j,j),a?(X.fillStyle=a,X.fillRect(0,0,H*j+80,B*j+80)):X.clearRect(0,0,H,B);var V=new Image,q=document.createElement("style");q.innerHTML=this.getClassRules();var ce=document.createElement("foreignObject");return ce.appendChild(q),o.appendChild(ce),new Promise(function(we){V.onload=function(){var Fe=navigator.userAgent.indexOf("Firefox")>-1;try{Fe?createImageBitmap(V,{resizeWidth:k.width,resizeHeight:k.height}).then(function(je){X.drawImage(je,0,0),we(k)}):(X.drawImage(V,0,0),we(k))}catch{X.drawImage(V,0,0),we(k)}};var ye="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(o),Ae=ye.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");V.src=Ae})},i.pluginName="snapshot",i}(),$O=globalThis&&globalThis.__assign||function(){return $O=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},$O.apply(this,arguments)};globalThis&&globalThis.__read;var WO;(function(i){i.HORIZONTAL="horizontal",i.VERTICAL="vertical"})(WO||(WO={}));var m5=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var _5=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var O5=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d},w5=globalThis&&globalThis.__spread||function(){for(var i=[],u=0;u<arguments.length;u++)i=i.concat(O5(arguments[u]));return i},pp="lf:defaultNodeMenu",dp="lf:defaultEdgeMenu",hp="lf:defaultGraphMenu",GO="lf:defaultSelectionMenu",x5=function(){function i(u){var a=this,l=u.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){a.setMenuConfig(d)},this.lf.addMenuConfig=function(d){a.addMenuConfig(d)},this.lf.setMenuByType=function(d){a.setMenuByType(d)})}return i.prototype.init=function(){var u=this,a=[{text:"删除",callback:function(d){u.lf.deleteNode(d.id)}},{text:"编辑文本",callback:function(d){u.lf.graphModel.editText(d.id)}},{text:"复制",callback:function(d){u.lf.cloneNode(d.id)}}];this.menuTypeMap.set(pp,a);var l=[{text:"删除",callback:function(d){u.lf.deleteEdge(d.id)}},{text:"编辑文本",callback:function(d){u.lf.graphModel.editText(d.id)}}];this.menuTypeMap.set(dp,l),this.menuTypeMap.set(hp,[]);var o=[{text:"删除",callback:function(d){u.lf.clearSelectElements(),d.edges.forEach(function(h){return u.lf.deleteEdge(h.id)}),d.nodes.forEach(function(h){return u.lf.deleteNode(h.id)})}}];this.menuTypeMap.set(GO,o)},i.prototype.render=function(u,a){var l=this;this.__container=a,this.__currentData=null,this.__menuDOM.className="lf-menu",a.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("点击区域不在菜单项内,请检查代码!")},!0),this.lf.on("node:contextmenu",function(o){var d=o.data,h=o.position,m=o.e,g=h.domOverlayPosition,E=g.x,P=g.y,j=d.id,k=l.lf.graphModel.getNodeModelById(j),M=[],R=l.menuTypeMap.get(k.type);k&&k.menu&&Array.isArray(k.menu)?M=k.menu:R?M=R:M=l.menuTypeMap.get(pp),l.__currentData=d,l.showMenu(E,P,M,{width:k.width,height:k.height,clientX:m.clientX,clientY:m.clientY})}),this.lf.on("edge:contextmenu",function(o){var d=o.data,h=o.position,m=o.e,g=h.domOverlayPosition,E=g.x,P=g.y,j=d.id,k=l.lf.graphModel.getEdgeModelById(j),M=[],R=l.menuTypeMap.get(k.type);k&&k.menu&&Array.isArray(k.menu)?M=k.menu:R?M=R:M=l.menuTypeMap.get(dp),l.__currentData=d,l.showMenu(E,P,M,{width:k.width,height:k.height,clientX:m.clientX,clientY:m.clientY})}),this.lf.on("blank:contextmenu",function(o){var d=o.position,h=l.menuTypeMap.get(hp),m=d.domOverlayPosition,g=m.x,E=m.y;l.showMenu(g,E,h)}),this.lf.on("selection:contextmenu",function(o){var d=o.data,h=o.position,m=l.menuTypeMap.get(GO),g=h.domOverlayPosition,E=g.x,P=g.y;l.__currentData=d,l.showMenu(E,P,m)}),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"})},i.prototype.destroy=function(){var u;(u=this===null||this===void 0?void 0:this.__container)===null||u===void 0||u.removeChild(this.__menuDOM),this.__menuDOM=null},i.prototype.showMenu=function(u,a,l,o){if(!(!l||!l.length)){var d=this.__menuDOM;if(d.innerHTML="",d.append.apply(d,w5(this.__getMenuDom(l))),!!d.children.length){if(d.style.display="block",!o){d.style.top=a+"px",d.style.left=u+"px";return}var h=o.width,m=o.height,g=o.clientX,E=o.clientY,P=this.lf.graphModel,j=d.offsetWidth,k=!0,M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,R=M-g,N=P.rootEl.getBoundingClientRect(),I=N.left+N.width;I<M&&(R=I-g),R<j&&(k=!1),k?d.style.left=u+"px":d.style.left=u-h+"px";var W=d.offsetHeight,U=!0,ne=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ue=ne-E,re=N.top+N.height;re<ne&&(ue=re-E),ue<W&&(U=!1),U?d.style.top=a+"px":d.style.top=a-m+"px"}}},i.prototype.setMenuByType=function(u){!u.type||!u.menu||this.menuTypeMap.set(u.type,u.menu)},i.prototype.__getMenuDom=function(u){var a=[];return u&&u.length>0&&u.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,a.push(o)}),a},i.prototype.setMenuConfig=function(u){u&&(u.nodeMenu!==void 0&&this.menuTypeMap.set(pp,u.nodeMenu?u.nodeMenu:[]),u.edgeMenu!==void 0&&this.menuTypeMap.set(dp,u.edgeMenu?u.edgeMenu:[]),u.graphMenu!==void 0&&this.menuTypeMap.set(hp,u.graphMenu?u.graphMenu:[]))},i.prototype.addMenuConfig=function(u){if(u){if(Array.isArray(u.nodeMenu)){var a=this.menuTypeMap.get(pp);this.menuTypeMap.set(pp,a.concat(u.nodeMenu))}if(Array.isArray(u.edgeMenu)){var a=this.menuTypeMap.get(dp);this.menuTypeMap.set(dp,a.concat(u.edgeMenu))}if(Array.isArray(u.graphMenu)){var a=this.menuTypeMap.get(hp);this.menuTypeMap.set(hp,a.concat(u.graphMenu))}}},i.prototype.changeMenuItem=function(u,a){if(u==="add")this.addMenuConfig(a);else if(u==="reset")this.setMenuConfig(a);else throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'")},i.pluginName="menu",i}();globalThis&&globalThis.__read;globalThis&&globalThis.__values;function E5(i){if(i.length<=1)return!1;for(var u=0,a=i.length-1;u!==a&&u+1!==a&&a-1!==u;)u++,a--;return u===a?[--u,a]:[u,a]}var EE=globalThis&&globalThis.__extends||function(){var i=function(u,a){return i=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])},i(u,a)};return function(u,a){i(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}(),dl=globalThis&&globalThis.__assign||function(){return dl=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},dl.apply(this,arguments)},La=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};(function(i){EE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.pointFilter=function(a){for(var l=a,o=1;o<l.length-1;){var d=La(l[o-1],2),h=d[0],m=d[1],g=La(l[o],2),E=g[0],P=g[1],j=La(l[o+1],2),k=j[0],M=j[1];h===E&&E===k||m===P&&P===M?l.splice(o,1):o++}return l},u.prototype.getEdge=function(){var a=this.props.model,l=a.points,o=a.isAnimation,d=a.arrowConfig,h=a.radius,m=h===void 0?5:h,g=a.getEdgeStyle(),E=a.getEdgeAnimationStyle(),P=this.pointFilter(l.split(" ").map(function(Ge){return Ge.split(",").map(function(Ke){return Number(Ke)})})),j=E5(P);if(j){var k=La(j,2),M=k[0],R=k[1],N=P[M],I=P[R],W=N.some(function(Ge,Ke){return Ge===I[Ke]});if(!W){var U=(I[1]-N[1])/2,ne=[I[0],I[1]-U],ue=[N[0],N[1]+U];P.splice(M+1,0,ue,ne)}}for(var re=La(P[0],2),Q=re[0],ee=re[1],H="M"+Q+" "+ee,B=1;B<P.length-1;B++){var X=La(P[B-1],2),V=X[0],q=X[1],ce=La(P[B],2),we=ce[0],ye=ce[1],Ae=La(P[B+1],2),Fe=Ae[0],je=Ae[1];if(we===V&&ye!==q){var ge=ye>q?ye-m:ye+m;H=H+" L "+we+" "+ge}if(ye===q&&we!==V){var Pe=we>V?we-m:we+m;H=H+" L "+Pe+" "+ye}if(H=H+" Q "+we+" "+ye,we===Fe&&ye!==je){var ge=ye>je?ye-m:ye+m;H=H+" "+we+" "+ge}if(ye===je&&we!==Fe){var Pe=we>Fe?we-m:we+m;H=H+" "+Pe+" "+ye}}var Te=La(P[P.length-1],2),We=Te[0],tt=Te[1];H=H+" L "+We+" "+tt;var vt=dl(dl(dl({d:H,style:o?E:{}},g),d),{fill:"none"});return rt.h("path",dl({d:H},vt))},u})(rt.PolylineEdge);(function(i){EE(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u})(rt.PolylineEdgeModel);var S5=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var UO=globalThis&&globalThis.__assign||function(){return UO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},UO.apply(this,arguments)},HO=globalThis&&globalThis.__assign||function(){return HO=Object.assign||function(i){for(var u,a=1,l=arguments.length;a<l;a++){u=arguments[a];for(var o in u)Object.prototype.hasOwnProperty.call(u,o)&&(i[o]=u[o])}return i},HO.apply(this,arguments)},j5=globalThis&&globalThis.__read||function(i,u){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var l=a.call(i),o,d=[],h;try{for(;(u===void 0||u-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(m){h={error:m}}finally{try{o&&!o.done&&(a=l.return)&&a.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;const P5={class:"control-container"},A5=["title","onMouseenter"],T5=["disabled","onClick"],M5=hy({__name:"Control",props:{lf:{default:null},catTurboData:{type:Boolean}},emits:["catData"],setup(i,{emit:u}){const a=i,l=Ba(),o=Ba(),d=Ba(-1),h=Ba([{icon:"icon-zoom-out-hs",text:"缩小",size:"18",disabled:!1},{icon:"icon-enlarge-hs",text:"放大",size:"18",disabled:!1},{icon:"icon-full-screen-hs",text:"适应",size:"15",disabled:!1},{icon:"icon-previous-hs",text:"上一步",size:"15",disabled:!0},{icon:"icon-next-step-hs",text:"下一步",size:"17",disabled:!0},{icon:"icon-download-hs",text:"下载图片",size:"17",disabled:!1},{icon:"icon-watch-hs",text:"查看数据",size:"17",disabled:!1}]),m=(E,P)=>{["zoom","zoom","resetZoom","undo","redo","getSnapshot"].forEach((j,k)=>{const M=a.lf;P===1&&M.zoom(!0),P===6&&u("catData"),P===k&&M[j]()})},g=E=>{d.value=E};return pw(()=>{a.lf.on("history:change",({data:{undoAble:E,redoAble:P}})=>{co(h)[3].disabled=co(l).disabled=!E,co(h)[4].disabled=co(o).disabled=!P})}),(E,P)=>{const j=yp("el-tooltip");return aa(),zc("div",P5,[Fa("ul",null,[(aa(!0),zc(dw,null,hw(h.value,(k,M)=>(aa(),zc("li",{key:M,title:k.text,class:"dark:text-bg_color",onMouseenter:O1(R=>g(M),["prevent"]),onMouseleave:P[0]||(P[0]=O1(R=>d.value=-1,["prevent"]))},[sl(j,{content:k.text,visible:d.value===M,placement:"right"},{default:ll(()=>[Fa("button",{ref_for:!0,ref:"controlButton"+M,disabled:k.disabled,style:w1({cursor:k.disabled===!1?"pointer":"not-allowed",color:k.disabled===!1?"":"#00000040",background:"transparent"}),onClick:R=>m(k,M)},[Fa("span",{class:yw("iconfont "+k.icon),style:w1({fontSize:`${k.size}px`})},null,6)],12,T5)]),_:2},1032,["content","visible"])],40,A5))),128))])])}}});const k5=om(M5,[["__scopeId","data-v-44af808d"]]),D5={class:"node-panel"},N5=["onMousedown"],R5={key:0,class:"shape"},C5={class:"node-label"},I5=hy({__name:"NodePanel",props:{lf:{default:null},nodeList:{default:null}},setup(i){const u=i,a=Ba({a:"efrwe",b:"wewe"}),l=o=>{u.lf.dnd.startDrag({type:o.type,properties:co(a)})};return(o,d)=>(aa(),zc("div",D5,[(aa(!0),zc(dw,null,hw(u.nodeList,h=>(aa(),zc("div",{class:"node-item dark:text-bg_color",key:h.text,onMousedown:m=>l(h)},[Fa("div",{class:yw(["node-item-icon",h.class])},[h.type==="user"||h.type==="time"?(aa(),zc("div",R5)):vw("",!0)],2),Fa("span",C5,_2(h.text),1)],40,N5))),128))]))}});const L5=om(I5,[["__scopeId","data-v-5c49346d"]]),B5=hy({__name:"DataDialog",props:{graphData:Object},setup(i){const u=i;return(a,l)=>(aa(),Ib(co(E2),{path:"res",deep:3,showLength:!0,data:u.graphData},null,8,["data"]))}}),z5=im(k5),F5=im(L5),$5=im(B5),W5={SEQUENCE_FLOW:1,START_EVENT:2,END_EVENT:3,USER_TASK:4,SERVICE_TASK:5,EXCLUSIVE_GATEWAY:6};function G5(i){const{incoming:u,outgoing:a,properties:l,key:o}=i,{text:d,startPoint:h,endPoint:m,pointsList:g,logicFlowType:E}=l,P={id:o,type:E,sourceNodeId:u[0],targetNodeId:a[0],text:d,startPoint:h,endPoint:m,pointsList:g,properties:{}},j=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(i.properties).forEach(k=>{j.indexOf(k)===-1&&(P.properties[k]=i.properties[k])}),P}function U5(i){const{properties:u,key:a}=i,{x:l,y:o,text:d,logicFlowType:h}=u,m={id:a,type:h,x:l,y:o,text:d,properties:{}},g=["x","y","text","logicFlowType"];return Object.keys(i.properties).forEach(E=>{g.indexOf(E)===-1&&(m.properties[E]=i.properties[E])}),m}function H5(i){const u={nodes:[],edges:[]},a=i.flowElementList;return a&&a.length>0&&a.forEach(l=>{if(l.type===W5.SEQUENCE_FLOW){const o=G5(l);u.edges.push(o)}else{const o=U5(l);u.nodes.push(o)}}),u}const X5=i=>(O2("data-v-75717ba2"),i=i(),w2(),i),Y5={class:"card-header"},V5={class:"font-medium"},K5={class:"logic-flow-view"},q5=X5(()=>Fa("div",{id:"turbo"},null,-1)),Z5=hy({name:"FlowChart",__name:"index",setup(i){const u=Ba(null),a=Ba(null),l=Ba(!1),o=Ba({grid:!0,background:{color:"#f7f9ff"},keyboard:{enabled:!0}}),d=J4;function h(){Gh.use(b5),Gh.use(_8),Gh.use(x5);const E=new Gh({...co(o),container:document.querySelector("#turbo")});u.value=E,co(u).setDefaultEdgeType("bpmn:sequenceFlow"),m()}function m(){const E=H5(Z4);u.value.render(E)}function g(){a.value=co(u).getGraphData(),l.value=!0}return pw(()=>{h()}),(E,P)=>{const j=yp("el-link"),k=yp("el-scrollbar"),M=yp("el-dialog"),R=yp("el-card");return aa(),Ib(R,{shadow:"never"},{header:ll(()=>[Fa("div",Y5,[Fa("span",V5,[x1(" 流程图组件,采用开源的 "),sl(j,{href:"http://logic-flow.org/",target:"_blank",icon:co(x2)(co(S2)),style:{margin:"0 4px 5px","font-size":"16px"}},{default:ll(()=>[x1(" LogicFlow ")]),_:1},8,["icon"])])])]),default:ll(()=>[Fa("div",K5,[u.value?(aa(),Ib(co(z5),{key:0,class:"demo-control",lf:u.value,catTurboData:!1,onCatData:g},null,8,["lf"])):vw("",!0),sl(co(F5),{lf:u.value,nodeList:co(d)},null,8,["lf","nodeList"]),q5,sl(M,{class:"flow-dialog",title:"数据",modelValue:l.value,"onUpdate:modelValue":P[0]||(P[0]=N=>l.value=N),width:"50%"},{default:ll(()=>[sl(k,null,{default:ll(()=>[sl(co($5),{graphData:a.value},null,8,["graphData"])]),_:1})]),_:1},8,["modelValue"])])]),_:1})}}});const r7=om(Z5,[["__scopeId","data-v-75717ba2"]]);export{r7 as default};