Lines Matching refs:active

350 `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var V=this.next();return V||this.lex()},begin:function(V){this.conditionStack.push(V)},popState:function(){var V=this.conditionStack.length-1;return V>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(V){return V=this.conditionStack.length-1-Math.abs(V||0),V>=0?this.conditionStack[V]:"INITIAL"},pushState:function(V){this.begin(V)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(V,Ot,It,jt){switch(It){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return K}();gt.lexer=Q;function dt(){this.yy={}}return dt.prototype=gt,gt.Parser=dt,new dt}();cbt.parser=cbt;const wYe=cbt;var Mzt={exports:{}};(function(i,a){(function(f,g){i.exports=g()})(Z0,function(){var f="day";return function(g,w,v){var b=function(_){return _.add(4-_.isoWeekday(),f)},E=w.prototype;E.isoWeekYear=function(){return b(this).year()},E.isoWeek=function(_){if(!this.$utils().u(_))return this.add(7*(_-this.isoWeek()),f);var M,F,R,B,z=b(this),Y=(M=this.isoWeekYear(),F=this.$u,R=(F?v.utc:v)().year(M).startOf("year"),B=4-R.isoWeekday(),R.isoWeekday()>4&&(B+=7),R.add(B,f));return z.diff(Y,"week")+1},E.isoWeekday=function(_){return this.$utils().u(_)?this.day()||7:this.day(this.day()%7?_:_-7)};var S=E.startOf;E.startOf=function(_,M){var F=this.$utils(),R=!!F.u(M)||M;return F.p(_)==="isoweek"?R?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(_,M)}}})})(Mzt);var mYe=Mzt.exports;const vYe=e9(mYe);var Izt={exports:{}};(function(i,a){(function(f,g){i.exports=g()})(Z0,function(){var f={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},g=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,w=/\d\d/,v=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,E={},S=function(Y){return(Y=+Y)+(Y>68?1900:2e3)},_=function(Y){return function(nt){this[Y]=+nt}},M=[/[+-]\d\d:?(\d\d)?|Z/,function(Y){(this.zone||(this.zone={})).offset=function(nt){if(!nt||nt==="Z")return 0;var ot=nt.match(/([+-]|\d\d)/g),ft=60*ot[1]+(+ot[2]||0);return ft===0?0:ot[0]==="+"?-ft:ft}(Y)}],F=function(Y){var nt=E[Y];return nt&&(nt.indexOf?nt:nt.s.concat(nt.f))},R=function(Y,nt){var ot,ft=E.meridiem;if(ft){for(var wt=1;wt<=24;wt+=1)if(Y.indexOf(ft(wt,0,nt))>-1){ot=wt>12;break}}else ot=Y===(nt?"pm":"PM");return ot},B={A:[b,function(Y){this.afternoon=R(Y,!1)}],a:[b,function(Y){this.afternoon=R(Y,!0)}],S:[/\d/,function(Y){this.milliseconds=100*+Y}],SS:[w,function(Y){this.milliseconds=10*+Y}],SSS:[/\d{3}/,function(Y){this.milliseconds=+Y}],s:[v,_("seconds")],ss:[v,_("seconds")],m:[v,_("minutes")],mm:[v,_("minutes")],H:[v,_("hours")],h:[v,_("hours")],HH:[v,_("hours")],hh:[v,_("hours")],D:[v,_("day")],DD:[w,_("day")],Do:[b,function(Y){var nt=E.ordinal,ot=Y.match(/\d+/);if(this.day=ot[0],nt)for(var ft=1;ft<=31;ft+=1)nt(ft).replace(/\[|\]/g,"")===Y&&(this.day=ft)}],M:[v,_("month")],MM:[w,_("month")],MMM:[b,function(Y){var nt=F("months"),ot=(F("monthsShort")||nt.map(function(ft){return ft.slice(0,3)})).indexOf(Y)+1;if(ot<1)throw new Error;this.month=ot%12||ot}],MMMM:[b,function(Y){var nt=F("months").indexOf(Y)+1;if(nt<1)throw new Error;this.month=nt%12||nt}],Y:[/[+-]?\d+/,_("year")],YY:[w,function(Y){this.year=S(Y)}],YYYY:[/\d{4}/,_("year")],Z:M,ZZ:M};function z(Y){var nt,ot;nt=Y,ot=E&&E.formats;for(var ft=(Y=nt.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Q,dt,K){var yt=K&&K.toUpperCase();return dt||ot[K]||f[K]||ot[yt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(V,Ot,It){return Ot||It.slice(1)})})).match(g),wt=ft.length,mt=0;mt<wt;mt+=1){var ct=ft[mt],rt=B[ct],it=rt&&rt[0],gt=rt&&rt[1];ft[mt]=gt?{regex:it,parser:gt}:ct.replace(/^\[|\]$/g,"")}return function(Q){for(var dt={},K=0,yt=0;K<wt;K+=1){var V=ft[K];if(typeof V=="string")yt+=V.length;else{var Ot=V.regex,It=V.parser,jt=Q.slice(yt),xt=Ot.exec(jt)[0];It.call(dt,xt),Q=Q.replace(xt,"")}}return function(Ft){var Ct=Ft.afternoon;if(Ct!==void 0){var kt=Ft.hours;Ct?kt<12&&(Ft.hours+=12):kt===12&&(Ft.hours=0),delete Ft.afternoon}}(dt),dt}}return function(Y,nt,ot){ot.p.customParseFormat=!0,Y&&Y.parseTwoDigitYear&&(S=Y.parseTwoDigitYear);var ft=nt.prototype,wt=ft.parse;ft.parse=function(mt){var ct=mt.date,rt=mt.utc,it=mt.args;this.$u=rt;var gt=it[1];if(typeof gt=="string"){var Q=it[2]===!0,dt=it[3]===!0,K=Q||dt,yt=it[2];dt&&(yt=it[2]),E=this.$locale(),!Q&&yt&&(E=ot.Ls[yt]),this.$d=function(jt,xt,Ft){try{if(["x","X"].indexOf(xt)>-1)return new Date((xt==="X"?1e3:1)*jt);var Ct=z(xt)(jt),kt=Ct.year,Gt=Ct.month,Fe=Ct.day,Mt=Ct.hours,pn=Ct.minutes,Ae=Ct.seconds,ye=Ct.milliseconds,tn=Ct.zone,sn=new Date,be=Fe||(kt||Gt?1:sn.getDate()),Ne=kt||sn.getFullYear(),Xt=0;kt&&!Gt||(Xt=Gt>0?Gt-1:sn.getMonth());var _e=Mt||0,xe=pn||0,Mn=Ae||0,ce=ye||0;return tn?new Date(Date.UTC(Ne,Xt,be,_e,xe,Mn,ce+60*tn.offset*1e3)):Ft?new Date(Date.UTC(Ne,Xt,be,_e,xe,Mn,ce)):new Date(Ne,Xt,be,_e,xe,Mn,ce)}catch{return new Date("")}}(ct,gt,rt),this.init(),yt&&yt!==!0&&(this.$L=this.locale(yt).$L),K&&ct!=this.format(gt)&&(this.$d=new Date("")),E={}}else if(gt instanceof Array)for(var V=gt.length,Ot=1;Ot<=V;Ot+=1){it[1]=gt[Ot-1];var It=ot.apply(this,it);if(It.isValid()){this.$d=It.$d,this.$L=It.$L,this.init();break}Ot===V&&(this.$d=new Date(""))}else wt.call(this,mt)}}})})(Izt);var yYe=Izt.exports;const xYe=e9(yYe);var Ozt={exports:{}};(function(i,a){(function(f,g){i.exports=g()})(Z0,function(){return function(f,g){var w=g.prototype,v=w.format;w.format=function(b){var E=this,S=this.$locale();if(!this.isValid())return v.bind(this)(b);var _=this.$utils(),M=(b||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((E.$M+1)/3);case"Do":return S.ordinal(E.$D);case"gggg":return E.weekYear();case"GGGG":return E.isoWeekYear();case"wo":return S.ordinal(E.week(),"W");case"w":case"ww":return _.s(E.week(),F==="w"?1:2,"0");case"W":case"WW":return _.s(E.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return _.s(String(E.$H===0?24:E.$H),F==="k"?1:2,"0");case"X":return Math.floor(E.$d.getTime()/1e3);case"x":return E.$d.getTime();case"z":return"["+E.offsetName()+"]";case"zzz":return"["+E.offsetName("long")+"]";default:return F}});return v.bind(this)(M)}}})})(Ozt);var kYe=Ozt.exports;const EYe=e9(kYe);tg.extend(vYe),tg.extend(xYe),tg.extend(EYe);let h4="",ubt="",lbt,hbt="",oB=[],cB=[],fbt={},dbt=[],lX=[],SD="",gbt="";const Nzt=["active","done","crit","milestone"];let pbt=[],uB=!1,bbt=!1,wbt="sunday",mbt=0;const TYe=function(){dbt=[],lX=[],SD="",pbt=[],hX=0,ybt=void 0,fX=void 0,H1=[],h4="",ubt="",gbt="",lbt=void 0,hbt="",oB=[],cB=[],uB=!1,bbt=!1,mbt=0,fbt={},ag(),wbt="sunday"},CYe=function(i){ubt=i},SYe=function(){return ubt},_Ye=function(i){lbt=i},AYe=function(){return lbt},LYe=function(i){hbt=i},DYe=function(){return hbt},MYe=function(i){h4=i},IYe=function(){uB=!0},OYe=function(){return uB},NYe=function(){bbt=!0},PYe=function(){return bbt},FYe=function(i){gbt=i},BYe=function(){return gbt},RYe=function(){return h4},jYe=function(i){oB=i.toLowerCase().split(/[\s,]+/)},$Ye=function(){return oB},zYe=function(i){cB=i.toLowerCase().split(/[\s,]+/)},qYe=function(){return cB},HYe=function(){return fbt},VYe=function(i){SD=i,dbt.push(i)},UYe=function(){return dbt},GYe=function(){let i=$zt();const a=10;let f=0;for(;!i&&f<a;)i=$zt(),f++;return lX=H1,lX},Pzt=function(i,a,f,g){return g.includes(i.format(a.trim()))?!1:i.isoWeekday()>=6&&f.includes("weekends")||f.includes(i.format("dddd").toLowerCase())?!0:f.includes(i.format(a.trim()))},KYe=function(i){wbt=i},WYe=function(){return wbt},Fzt=function(i,a,f,g){if(!f.length||i.manualEndTime)return;let w;i.startTime instanceof Date?w=tg(i.startTime):w=tg(i.startTime,a,!0),w=w.add(1,"d");let v;i.endTime instanceof Date?v=tg(i.endTime):v=tg(i.endTime,a,!0);const[b,E]=YYe(w,v,a,f,g);i.endTime=b.toDate(),i.renderEndTime=E},YYe=function(i,a,f,g,w){let v=!1,b=null;for(;i<=a;)v||(b=a.toDate()),v=Pzt(i,f,g,w),v&&(a=a.add(1,"d")),i=i.add(1,"d");return[a,b]},vbt=function(i,a,f){f=f.trim();const w=/^after\s+([\d\w- ]+)/.exec(f.trim());if(w!==null){let b=null;if(w[1].split(" ").forEach(function(E){let S=AD(E);S!==void 0&&(b?S.endTime>b.endTime&&(b=S):b=S)}),b)return b.endTime;{const E=new Date;return E.setHours(0,0,0,0),E}}let v=tg(f,a.trim(),!0);if(v.isValid())return v.toDate();{Kt.debug("Invalid date:"+f),Kt.debug("With date format:"+a.trim());const b=new Date(f);if(b===void 0||isNaN(b.getTime())||b.getFullYear()<-1e4||b.getFullYear()>1e4)throw new Error("Invalid date:"+f);return b}},Bzt=function(i){const a=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(i.trim());return a!==null?[Number.parseFloat(a[1]),a[2]]:[NaN,"ms"]},Rzt=function(i,a,f,g=!1){f=f.trim();let w=tg(f,a.trim(),!0);if(w.isValid())return g&&(w=w.add(1,"d")),w.toDate();let v=tg(i);const[b,E]=Bzt(f);if(!Number.isNaN(b)){const S=v.add(b,E);S.isValid()&&(v=S)}return v.toDate()};let hX=0;const _D=function(i){return i===void 0?(hX=hX+1,"task"+hX):i},XYe=function(i,a){let f;a.substr(0,1)===":"?f=a.substr(1,a.length):f=a;const g=f.split(","),w={};Hzt(g,w,Nzt);for(let b=0;b<g.length;b++)g[b]=g[b].trim();let v="";switch(g.length){case 1:w.id=_D(),w.startTime=i.endTime,v=g[0];break;case 2:w.id=_D(),w.startTime=vbt(void 0,h4,g[0]),v=g[1];break;case 3:w.id=_D(g[0]),w.startTime=vbt(void 0,h4,g[1]),v=g[2];break}return v&&(w.endTime=Rzt(w.startTime,h4,v,uB),w.manualEndTime=tg(v,"YYYY-MM-DD",!0).isValid(),Fzt(w,h4,cB,oB)),w},QYe=function(i,a){let f;a.substr(0,1)===":"?f=a.substr(1,a.length):f=a;const g=f.split(","),w={};Hzt(g,w,Nzt);for(let v=0;v<g.length;v++)g[v]=g[v].trim();switch(g.length){case 1:w.id=_D(),w.startTime={type:"prevTaskEnd",id:i},w.endTime={data:g[0]};break;case 2:w.id=_D(),w.startTime={type:"getStartDate",startData:g[0]},w.endTime={data:g[1]};break;case 3:w.id=_D(g[0]),w.startTime={type:"getStartDate",startData:g[1]},w.endTime={data:g[2]};break}return w};let ybt,fX,H1=[];const jzt={},JYe=function(i,a){const f={section:SD,type:SD,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:a},task:i,classes:[]},g=QYe(fX,a);f.raw.startTime=g.startTime,f.raw.endTime=g.endTime,f.id=g.id,f.prevTaskId=fX,f.active=g.active,f.done=g.done,f.crit=g.crit,f.milestone=g.milestone,f.order=mbt,mbt++;const w=H1.push(f);fX=f.id,jzt[f.id]=w-1},AD=function(i){const a=jzt[i];return H1[a]},ZYe=function(i,a){const f={section:SD,type:SD,description:i,task:i,classes:[]},g=XYe(ybt,a);f.startTime=g.startTime,f.endTime=g.endTime,f.id=g.id,f.active=g.active,f.done=g.done,f.crit=g.crit,f.milestone=g.milestone,ybt=f,lX.push(f)},$zt=function(){const i=function(f){const g=H1[f];let w="";switch(H1[f].raw.startTime.type){case"prevTaskEnd":{const v=AD(g.prevTaskId);g.startTime=v.endTime;break}case"getStartDate":w=vbt(void 0,h4,H1[f].raw.startTime.startData),w&&(H1[f].startTime=w);break}return H1[f].startTime&&(H1[f].endTime=Rzt(H1[f].startTime,h4,H1[f].raw.endTime.data,uB),H1[f].endTime&&(H1[f].processed=!0,H1[f].manualEndTime=tg(H1[f].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Fzt(H1[f],h4,cB,oB))),H1[f].processed};let a=!0;for(const[f,g]of H1.entries())i(f),a=a&&g.processed;return a},tXe=function(i,a){let f=a;Re().securityLevel!=="loose"&&(f=h8(a)),i.split(",").forEach(function(g){AD(g)!==void 0&&(qzt(g,()=>{window.open(f,"_self")}),fbt[g]=f)}),zzt(i,"clickable")},zzt=function(i,a){i.split(",").forEach(function(f){let g=AD(f);g!==void 0&&g.classes.push(a)})},eXe=function(i,a,f){if(Re().securityLevel!=="loose"||a===void 0)return;let g=[];if(typeof f=="string"){g=f.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let v=0;v<g.length;v++){let b=g[v].trim();b.charAt(0)==='"'&&b.charAt(b.length-1)==='"'&&(b=b.substr(1,b.length-2)),g[v]=b}}g.length===0&&g.push(i),AD(i)!==void 0&&qzt(i,()=>{uo.runFunc(a,...g)})},qzt=function(i,a){pbt.push(function(){const f=document.querySelector(`[id="${i}"]`);f!==null&&f.addEventListener("click",function(){a()})},function(){const f=document.querySelector(`[id="${i}-text"]`);f!==null&&f.addEventListener("click",function(){a()})})},nXe={getConfig:()=>Re().gantt,clear:TYe,setDateFormat:MYe,getDateFormat:RYe,enableInclusiveEndDates:IYe,endDatesAreInclusive:OYe,enableTopAxis:NYe,topAxisEnabled:PYe,setAxisFormat:CYe,getAxisFormat:SYe,setTickInterval:_Ye,getTickInterval:AYe,setTodayMarker:LYe,getTodayMarker:DYe,setAccTitle:og,getAccTitle:Xg,setDiagramTitle:S2,getDiagramTitle:Zg,setDisplayMode:FYe,getDisplayMode:BYe,setAccDescription:Qg,getAccDescription:Jg,addSection:VYe,getSections:UYe,getTasks:GYe,addTask:JYe,findTaskById:AD,addTaskOrg:ZYe,setIncludes:jYe,getIncludes:$Ye,setExcludes:zYe,getExcludes:qYe,setClickEvent:function(i,a,f){i.split(",").forEach(function(g){eXe(g,a,f)}),zzt(i,"clickable")},setLink:tXe,getLinks:HYe,bindFunctions:function(i){pbt.forEach(function(a){a(i)})},parseDuration:Bzt,isInvalidDate:Pzt,setWeekday:KYe,getWeekday:WYe};function Hzt(i,a,f){let g=!0;for(;g;)g=!1,f.forEach(function(w){const v="^\\s*"+w+"\\s*$",b=new RegExp(v);i[0].match(b)&&(a[w]=!0,i.shift(1),g=!0)})}const rXe=function(){Kt.debug("Something is calling, setConf, remove the call")},Vzt={monday:hF,tuesday:NNt,wednesday:PNt,thursday:l9,friday:FNt,saturday:BNt,sunday:lF},iXe=(i,a)=>{let f=[...i].map(()=>-1/0),g=[...i].sort((v,b)=>v.startTime-b.startTime||v.order-b.order),w=0;for(const v of g)for(let b=0;b<f.length;b++)if(v.startTime>=f[b]){f[b]=v.endTime,v.order=b+a,b>w&&(w=b);break}return w};let zx;const sXe=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:wYe,db:nXe,renderer:{setConf:rXe,draw:function(i,a,f,g){const w=Re().gantt,v=Re().securityLevel;let b;v==="sandbox"&&(b=Tr("#i"+a));const E=Tr(v==="sandbox"?b.nodes()[0].contentDocument.body:"body"),S=v==="sandbox"?b.nodes()[0].contentDocument:document,_=S.getElementById(a);zx=_.parentElement.offsetWidth,zx===void 0&&(zx=1200),w.useWidth!==void 0&&(zx=w.useWidth);const M=g.db.getTasks();let F=[];for(const gt of M)F.push(gt.type);F=it(F);const R={};let B=2*w.topPadding;if(g.db.getDisplayMode()==="compact"||w.displayMode==="compact"){const gt={};for(const dt of M)gt[dt.section]===void 0?gt[dt.section]=[dt]:gt[dt.section].push(dt);let Q=0;for(const dt of Object.keys(gt)){const K=iXe(gt[dt],Q)+1;Q+=K,B+=K*(w.barHeight+w.barGap),R[dt]=K}}else{B+=M.length*(w.barHeight+w.barGap);for(const gt of F)R[gt]=M.filter(Q=>Q.type===gt).length}_.setAttribute("viewBox","0 0 "+zx+" "+B);const z=E.select(`[id="${a}"]`),Y=eDe().domain([B9e(M,function(gt){return gt.startTime}),F9e(M,function(gt){return gt.endTime})]).rangeRound([0,zx-w.leftPadding-w.rightPadding]);function nt(gt,Q){const dt=gt.startTime,K=Q.startTime;let yt=0;return dt>K?yt=1:dt<K&&(yt=-1),yt}M.sort(nt),ot(M,zx,B),sg(z,B,zx,w.useMaxWidth),z.append("text").text(g.db.getDiagramTitle()).attr("x",zx/2).attr("y",w.titleTopMargin).attr("class","titleText");function ot(gt,Q,dt){const K=w.barHeight,yt=K+w.barGap,V=w.topPadding,Ot=w.leftPadding,It=VL().domain([0,F.length]).range(["#00B9FA","#F95002"]).interpolate(s_e);wt(yt,V,Ot,Q,dt,gt,g.db.getExcludes(),g.db.getIncludes()),mt(Ot,V,Q,dt),ft(gt,yt,V,Ot,K,It,Q),ct(yt,V),rt(Ot,V,Q,dt)}function ft(gt,Q,dt,K,yt,V,Ot){const jt=[...new Set(gt.map(kt=>kt.order))].map(kt=>gt.find(Gt=>Gt.order===kt));z.append("g").selectAll("rect").data(jt).enter().append("rect").attr("x",0).attr("y",function(kt,Gt){return Gt=kt.order,Gt*Q+dt-2}).attr("width",function(){return Ot-w.rightPadding/2}).attr("height",Q).attr("class",function(kt){for(const[Gt,Fe]of F.entries())if(kt.type===Fe)return"section section"+Gt%w.numberSectionStyles;return"section section0"});const xt=z.append("g").selectAll("rect").data(gt).enter(),Ft=g.db.getLinks();if(xt.append("rect").attr("id",function(kt){return kt.id}).attr("rx",3).attr("ry",3).attr("x",function(kt){return kt.milestone?Y(kt.startTime)+K+.5*(Y(kt.endTime)-Y(kt.startTime))-.5*yt:Y(kt.startTime)+K}).attr("y",function(kt,Gt){return Gt=kt.order,Gt*Q+dt}).attr("width",function(kt){return kt.milestone?yt:Y(kt.renderEndTime||kt.endTime)-Y(kt.startTime)}).attr("height",yt).attr("transform-origin",function(kt,Gt){return Gt=kt.order,(Y(kt.startTime)+K+.5*(Y(kt.endTime)-Y(kt.startTime))).toString()+"px "+(Gt*Q+dt+.5*yt).toString()+"px"}).attr("class",function(kt){const Gt="task";let Fe="";kt.classes.length>0&&(Fe=kt.classes.join(" "));let Mt=0;for(const[Ae,ye]of F.entries())kt.type===ye&&(Mt=Ae%w.numberSectionStyles);let pn="";return kt.active?kt.crit?pn+=" activeCrit":pn=" active":kt.done?kt.crit?pn=" doneCrit":pn=" done":kt.crit&&(pn+=" crit"),pn.length===0&&(pn=" task"),kt.milestone&&(pn=" milestone "+pn),pn+=Mt,pn+=" "+Fe,Gt+pn}),xt.append("text").attr("id",function(kt){return kt.id+"-text"}).text(function(kt){return kt.task}).attr("font-size",w.fontSize).attr("x",function(kt){let Gt=Y(kt.startTime),Fe=Y(kt.renderEndTime||kt.endTime);kt.milestone&&(Gt+=.5*(Y(kt.endTime)-Y(kt.startTime))-.5*yt),kt.milestone&&(Fe=Gt+yt);const Mt=this.getBBox().width;return Mt>Fe-Gt?Fe+Mt+1.5*w.leftPadding>Ot?Gt+K-5:Fe+K+5:(Fe-Gt)/2+Gt+K}).attr("y",function(kt,Gt){return Gt=kt.order,Gt*Q+w.barHeight/2+(w.fontSize/2-2)+dt}).attr("text-height",yt).attr("class",function(kt){const Gt=Y(kt.startTime);let Fe=Y(kt.endTime);kt.milestone&&(Fe=Gt+yt);const Mt=this.getBBox().width;let pn="";kt.classes.length>0&&(pn=kt.classes.join(" "));let Ae=0;for(const[tn,sn]of F.entries())kt.type===sn&&(Ae=tn%w.numberSectionStyles);let ye="";return kt.active&&(kt.crit?ye="activeCritText"+Ae:ye="activeText"+Ae),kt.done?kt.crit?ye=ye+" doneCritText"+Ae:ye=ye+" doneText"+Ae:kt.crit&&(ye=ye+" critText"+Ae),kt.milestone&&(ye+=" milestoneText"),Mt>Fe-Gt?Fe+Mt+1.5*w.leftPadding>Ot?pn+" taskTextOutsideLeft taskTextOutside"+Ae+" "+ye:pn+" taskTextOutsideRight taskTextOutside"+Ae+" "+ye+" width-"+Mt:pn+" taskText taskText"+Ae+" "+ye+" width-"+Mt}),Re().securityLevel==="sandbox"){let kt;kt=Tr("#i"+a);const Gt=kt.nodes()[0].contentDocument;xt.filter(function(Fe){return Ft[Fe.id]!==void 0}).each(function(Fe){var Mt=Gt.querySelector("#"+Fe.id),pn=Gt.querySelector("#"+Fe.id+"-text");const Ae=Mt.parentNode;var ye=Gt.createElement("a");ye.setAttribute("xlink:href",Ft[Fe.id]),ye.setAttribute("target","_top"),Ae.appendChild(ye),ye.appendChild(Mt),ye.appendChild(pn)})}}function wt(gt,Q,dt,K,yt,V,Ot,It){if(Ot.length===0&&It.length===0)return;let jt,xt;for(const{startTime:Mt,endTime:pn}of V)(jt===void 0||Mt<jt)&&(jt=Mt),(xt===void 0||pn>xt)&&(xt=pn);if(!jt||!xt)return;if(tg(xt).diff(tg(jt),"year")>5){Kt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const Ft=g.db.getDateFormat(),Ct=[];let kt=null,Gt=tg(jt);for(;Gt.valueOf()<=xt;)g.db.isInvalidDate(Gt,Ft,Ot,It)?kt?kt.end=Gt:kt={start:Gt,end:Gt}:kt&&(Ct.push(kt),kt=null),Gt=Gt.add(1,"d");z.append("g").selectAll("rect").data(Ct).enter().append("rect").attr("id",function(Mt){return"exclude-"+Mt.start.format("YYYY-MM-DD")}).attr("x",function(Mt){return Y(Mt.start)+dt}).attr("y",w.gridLineStartPadding).attr("width",function(Mt){const pn=Mt.end.add(1,"day");return Y(pn)-Y(Mt.start)}).attr("height",yt-Q-w.gridLineStartPadding).attr("transform-origin",function(Mt,pn){return(Y(Mt.start)+dt+.5*(Y(Mt.end)-Y(Mt.start))).toString()+"px "+(pn*gt+.5*yt).toString()+"px"}).attr("class","exclude-range")}function mt(gt,Q,dt,K){let yt=G9e(Y).tickSize(-K+Q+w.gridLineStartPadding).tickFormat(DW(g.db.getAxisFormat()||w.axisFormat||"%Y-%m-%d"));const Ot=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(g.db.getTickInterval()||w.tickInterval);if(Ot!==null){const It=Ot[1],jt=Ot[2],xt=g.db.getWeekday()||w.weekday;switch(jt){case"millisecond":yt.ticks(UL.every(It));break;case"second":yt.ticks(f8.every(It));break;case"minute":yt.ticks(cF.every(It));break;case"hour":yt.ticks(uF.every(It));break;case"day":yt.ticks(c9.every(It));break;case"week":yt.ticks(Vzt[xt].every(It));break;case"month":yt.ticks(fF.every(It));break}}if(z.append("g").attr("class","grid").attr("transform","translate("+gt+", "+(K-50)+")").call(yt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),g.db.topAxisEnabled()||w.topAxis){let It=U9e(Y).tickSize(-K+Q+w.gridLineStartPadding).tickFormat(DW(g.db.getAxisFormat()||w.axisFormat||"%Y-%m-%d"));if(Ot!==null){const jt=Ot[1],xt=Ot[2],Ft=g.db.getWeekday()||w.weekday;switch(xt){case"millisecond":It.ticks(UL.every(jt));break;case"second":It.ticks(f8.every(jt));break;case"minute":It.ticks(cF.every(jt));break;case"hour":It.ticks(uF.every(jt));break;case"day":It.ticks(c9.every(jt));break;case"week":It.ticks(Vzt[Ft].every(jt));break;case"month":It.ticks(fF.every(jt));break}}z.append("g").attr("class","grid").attr("transform","translate("+gt+", "+Q+")").call(It).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function ct(gt,Q){let dt=0;const K=Object.keys(R).map(yt=>[yt,R[yt]]);z.append("g").selectAll("text").data(K).enter().append(function(yt){const V=yt[0].split(ei.lineBreakRegex),Ot=-(V.length-1)/2,It=S.createElementNS("http://www.w3.org/2000/svg","text");It.setAttribute("dy",Ot+"em");for(const[jt,xt]of V.entries()){const Ft=S.createElementNS("http://www.w3.org/2000/svg","tspan");Ft.setAttribute("alignment-baseline","central"),Ft.setAttribute("x","10"),jt>0&&Ft.setAttribute("dy","1em"),Ft.textContent=xt,It.appendChild(Ft)}return It}).attr("x",10).attr("y",function(yt,V){if(V>0)for(let Ot=0;Ot<V;Ot++)return dt+=K[V-1][1],yt[1]*gt/2+dt*gt+Q;else return yt[1]*gt/2+Q}).attr("font-size",w.sectionFontSize).attr("class",function(yt){for(const[V,Ot]of F.entries())if(yt[0]===Ot)return"sectionTitle sectionTitle"+V%w.numberSectionStyles;return"sectionTitle"})}function rt(gt,Q,dt,K){const yt=g.db.getTodayMarker();if(yt==="off")return;const V=z.append("g").attr("class","today"),Ot=new Date,It=V.append("line");It.attr("x1",Y(Ot)+gt).attr("x2",Y(Ot)+gt).attr("y1",w.titleTopMargin).attr("y2",K-w.titleTopMargin).attr("class","today"),yt!==""&&It.attr("style",yt.replace(/,/g,";"))}function it(gt){const Q={},dt=[];for(let K=0,yt=gt.length;K<yt;++K)Object.prototype.hasOwnProperty.call(Q,gt[K])||(Q[gt[K]]=!0,dt.push(gt[K]));return dt}}},styles:i=>`

1349 endInLayerEdge=`,tu(e,this.c),e.a},I(i0,"BreakingPointInserter/BPInfo",313),D(661,1,{661:1},wUt),l.a=!1,l.b=0,l.c=0,I(i0,"BreakingPointInserter/Cut",661),D(1545,1,zi,MJ),l.Kf=function(e,n){m6n(u(e,36),n)},I(i0,"BreakingPointProcessor",1545),D(1546,1,Kr,IJ),l.Mb=function(e){return Bae(u(e,10))},I(i0,"BreakingPointProcessor/0methodref$isEnd$Type",1546),D(1547,1,Kr,OJ),l.Mb=function(e){return Rae(u(e,10))},I(i0,"BreakingPointProcessor/1methodref$isStart$Type",1547),D(1548,1,zi,NJ),l.Kf=function(e,n){$6n(this,u(e,36),n)},I(i0,"BreakingPointRemover",1548),D(1549,1,ir,PJ),l.Cd=function(e){u(e,131).k=!0},I(i0,"BreakingPointRemover/lambda$0$Type",1549),D(811,1,{},q6t),l.b=0,l.e=0,l.f=0,l.j=0,I(i0,"GraphStats",811),D(812,1,{},bR),l.Ve=function(e,n){return b.Math.max(Rt(Ht(e)),Rt(Ht(n)))},I(i0,"GraphStats/0methodref$max$Type",812),D(813,1,{},wR),l.Ve=function(e,n){return b.Math.max(Rt(Ht(e)),Rt(Ht(n)))},I(i0,"GraphStats/2methodref$max$Type",813),D(1726,1,{},FJ),l.Ve=function(e,n){return zcn(Ht(e),Ht(n))},I(i0,"GraphStats/lambda$1$Type",1726),D(1727,1,{},cUt),l.Kb=function(e){return Hle(this.a,u(e,30))},I(i0,"GraphStats/lambda$2$Type",1727),D(1728,1,{},uUt),l.Kb=function(e){return Pde(this.a,u(e,30))},I(i0,"GraphStats/lambda$6$Type",1728),D(814,1,{},mR),l.og=function(e,n){var r;return r=u(X(e,(De(),wAt)),15),r||(mn(),mn(),co)},l.pg=function(){return!1},I(i0,"ICutIndexCalculator/ManualCutIndexCalculator",814),D(816,1,{},vR),l.og=function(e,n){var r,s,o,h,d,m,k,T,A,P,$,U,J,tt,ht,Tt,At,Bt,Wt;for(Wt=(n.n==null&&whe(n),n.n),k=(n.d==null&&whe(n),n.d),Bt=Vt(ma,No,28,Wt.length,15,1),Bt[0]=Wt[0],Tt=Wt[0],T=1;T<Wt.length;T++)Bt[T]=Bt[T-1]+Wt[T],Tt+=Wt[T];for(o=Bfe(n)-1,d=u(X(e,(De(),mAt)),17).a,s=Vs,r=new fe,$=b.Math.max(0,o-d);$<=b.Math.min(n.f-1,o+d);$++){if(tt=Tt/($+1),ht=0,A=1,h=new fe,At=Vs,P=0,m=0,J=k[0],$==0)At=Tt,m=(n.g==null&&(n.g=nce(n,new wR)),Rt(n.g));else{for(;A<n.f;)Bt[A-1]-ht>=tt&&(ge(h,he(A)),At=b.Math.max(At,Bt[A-1]-P),m+=J,ht+=Bt[A-1]-ht,P=Bt[A-1],J=k[A]),J=b.Math.max(J,k[A]),++A;m+=J}U=b.Math.min(1/At,1/n.b/m),U>s&&(s=U,r=h)}return r},l.pg=function(){return!1},I(i0,"MSDCutIndexHeuristic",816),D(1683,1,zi,BJ),l.Kf=function(e,n){A7n(u(e,36),n)},I(i0,"SingleEdgeGraphWrapper",1683),D(232,22,{3:1,34:1,22:1,232:1},oS);var j5,kT,ET,T3,SA,$5,TT=Lr(Hc,"CenterEdgeLabelPlacementStrategy",232,Pr,d0n,pon),U4e;D(431,22,{3:1,34:1,22:1,431:1},Kwt);var kSt,Aft,ESt=Lr(Hc,"ConstraintCalculationStrategy",431,Pr,Ohn,bon),G4e;D(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},xrt),l.dg=function(){return y1e(this)},l.qg=function(){return y1e(this)};var QN,_A,TSt,CSt=Lr(Hc,"CrossingMinimizationStrategy",322,Pr,_fn,won),K4e;D(351,22,{3:1,34:1,22:1,351:1},krt);var SSt,Lft,yG,_St=Lr(Hc,"CuttingStrategy",351,Pr,Afn,mon),W4e;D(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},VM),l.dg=function(){return lde(this)},l.qg=function(){return lde(this)};var ASt,Dft,CT,Mft,ST,LSt=Lr(Hc,"CycleBreakingStrategy",348,Pr,Mdn,von),Y4e;D(428,22,{3:1,34:1,22:1,428:1},Wwt);var xG,DSt,MSt=Lr(Hc,"DirectionCongruency",428,Pr,Ihn,yon),X4e;D(459,22,{3:1,34:1,22:1,459:1},Ert);var _T,Ift,z5,Q4e=Lr(Hc,"EdgeConstraint",459,Pr,Lfn,_on),J4e;D(283,22,{3:1,34:1,22:1,283:1},cS);var Oft,Nft,Pft,Fft,kG,Bft,ISt=Lr(Hc,"EdgeLabelSideSelection",283,Pr,l0n,Aon),Z4e;D(487,22,{3:1,34:1,22:1,487:1},Ywt);var EG,OSt,NSt=Lr(Hc,"EdgeStraighteningStrategy",487,Pr,Mhn,Lon),t5e;D(281,22,{3:1,34:1,22:1,281:1},uS);var Rft,PSt,FSt,TG,BSt,RSt,jSt=Lr(Hc,"FixedAlignment",281,Pr,h0n,Son),e5e;D(282,22,{3:1,34:1,22:1,282:1},lS);var $St,zSt,qSt,HSt,AA,VSt,USt=Lr(Hc,"GraphCompactionStrategy",282,Pr,f0n,xon),n5e;D(259,22,{3:1,34:1,22:1,259:1},ky);var AT,CG,LT,Uh,LA,SG,DT,q5,_G,DA,jft=Lr(Hc,"GraphProperties",259,Pr,Xgn,kon),r5e;D(298,22,{3:1,34:1,22:1,298:1},Trt);var JN,$ft,zft,qft=Lr(Hc,"GreedySwitchType",298,Pr,Dfn,Eon),i5e;D(311,22,{3:1,34:1,22:1,311:1},Crt);var qk,ZN,H5,s5e=Lr(Hc,"InLayerConstraint",311,Pr,Mfn,Ton),a5e;D(429,22,{3:1,34:1,22:1,429:1},Xwt);var Hft,GSt,KSt=Lr(Hc,"InteractiveReferencePoint",429,Pr,jhn,Con),o5e,WSt,Hk,vv,AG,YSt,XSt,LG,QSt,tP,DG,MA,Vk,$g,Vft,MG,Dc,JSt,i2,lu,Uft,Gft,eP,Aw,yv,Uk,ZSt,Gk,nP,C3,N1,gf,Kft,V5,Pi,Li,t_t,e_t,n_t,r_t,i_t,Wft,IG,ml,xv,Yft,Kk,IA,vd,U5,kv,G5,K5,MT,Lw,s_t,Xft,Qft,Wk;D(171,22,{3:1,34:1,22:1,171:1},UM);var OA,s2,NA,S3,rP,a_t=Lr(Hc,"LayerConstraint",171,Pr,Odn,Don),c5e;D(859,1,uf,Qet),l.hf=function(e){Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,nEt),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),b_t),(Fp(),ts)),MSt),en((D1(),_n))))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,rEt),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Pn(),!1)),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,BV),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),k_t),ts),KSt),en(_n)))),Bs(e,BV,Hut,nxe),Bs(e,BV,Z_,exe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,iEt),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,sEt),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),oa),ys),en(_n)))),Qe(e,new He(krn(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,aEt),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),oa),ys),en(Bw)),lt(ut(Pe,1),ue,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,oEt),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),D_t),ts),jAt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,cEt),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),he(7)),ac),Ra),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,uEt),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,lEt),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Hut),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),p_t),ts),LSt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,kN),dlt),"Node Layering Strategy"),"Strategy for node layering."),C_t),ts),_At),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,hEt),dlt),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),E_t),ts),a_t),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,fEt),dlt),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),ac),Ra),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,dEt),dlt),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),he(-1)),ac),Ra),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Vut),I2e),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),he(4)),ac),Ra),en(_n)))),Bs(e,Vut,kN,uxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Uut),I2e),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),he(2)),ac),Ra),en(_n)))),Bs(e,Uut,kN,hxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Gut),O2e),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),T_t),ts),FAt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Kut),O2e),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),he(0)),ac),Ra),en(_n)))),Bs(e,Kut,Gut,null),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Wut),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),he(xi)),ac),Ra),en(_n)))),Bs(e,Wut,kN,ixe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Z_),iT),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),g_t),ts),CSt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,gEt),iT),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Yut),iT),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Wa),zs),en(_n)))),Bs(e,Yut,XV,A5e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Xut),iT),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),oa),ys),en(_n)))),Bs(e,Xut,Z_,N5e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,pEt),iT),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),ix),Pe),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,bEt),iT),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),ix),Pe),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,wEt),iT),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),ac),Ra),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,mEt),iT),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),he(-1)),ac),Ra),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,vEt),N2e),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),he(40)),ac),Ra),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Qut),N2e),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),d_t),ts),qft),en(_n)))),Bs(e,Qut,Z_,S5e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,RV),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),f_t),ts),qft),en(_n)))),Bs(e,RV,Z_,E5e),Bs(e,RV,XV,T5e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,A5),P2e),"Node Placement Strategy"),"Strategy for node placement."),L_t),ts),MAt),en(_n)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,jV),P2e),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),oa),ys),en(_n)))),Bs(e,jV,A5,kxe),Bs(e,jV,A5,Exe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Jut),F2e),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),S_t),ts),NSt),en(_n)))),Bs(e,Jut,A5,mxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Zut),F2e),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),__t),ts),jSt),en(_n)))),Bs(e,Zut,A5,yxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,tlt),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Wa),zs),en(_n)))),Bs(e,tlt,A5,Cxe),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,elt),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),ts),v1t),en(Qs)))),Bs(e,elt,A5,Lxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,nlt),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),A_t),ts),v1t),en(_n)))),Bs(e,nlt,A5,Axe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,yEt),B2e),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),v_t),ts),qAt),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,xEt),B2e),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),y_t),ts),HAt),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,$V),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),x_t),ts),UAt),en(_n)))),Bs(e,$V,EN,U5e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,zV),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Wa),zs),en(_n)))),Bs(e,zV,EN,K5e),Bs(e,zV,$V,W5e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,rlt),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Wa),zs),en(_n)))),Bs(e,rlt,EN,z5e),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,kEt),bd),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,EEt),bd),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,TEt),bd),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,CEt),bd),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,SEt),FEt),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),he(0)),ac),Ra),en(f0)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,_Et),FEt),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),he(0)),ac),Ra),en(f0)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,AEt),FEt),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),he(0)),ac),Ra),en(f0)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,ilt),BEt),Zbe),"Tries to further compact components (disconnected sub-graphs)."),!1),oa),ys),en(_n)))),Bs(e,ilt,W_,!0),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,LEt),R2e),"Post Compaction Strategy"),j2e),c_t),ts),USt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,DEt),R2e),"Post Compaction Constraint Calculation"),j2e),o_t),ts),ESt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,qV),REt),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,slt),REt),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),he(16)),ac),Ra),en(_n)))),Bs(e,slt,qV,!0),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,alt),REt),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),he(5)),ac),Ra),en(_n)))),Bs(e,alt,qV,!0),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Bg),jEt),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),O_t),ts),YAt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,HV),jEt),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Wa),zs),en(_n)))),Bs(e,HV,Bg,qxe),Bs(e,HV,Bg,Hxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,VV),jEt),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Wa),zs),en(_n)))),Bs(e,VV,Bg,Uxe),Bs(e,VV,Bg,Gxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,tA),$2e),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),I_t),ts),_St),en(_n)))),Bs(e,tA,Bg,Jxe),Bs(e,tA,Bg,Zxe),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,olt),$2e),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),xd),Vh),en(_n)))),Bs(e,olt,tA,Wxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,clt),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),M_t),ac),Ra),en(_n)))),Bs(e,clt,tA,Xxe),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,UV),z2e),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),N_t),ts),WAt),en(_n)))),Bs(e,UV,Bg,h6e),Bs(e,UV,Bg,f6e),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,GV),z2e),"Valid Indices for Wrapping"),null),xd),Vh),en(_n)))),Bs(e,GV,Bg,c6e),Bs(e,GV,Bg,u6e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,KV),$Et),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),oa),ys),en(_n)))),Bs(e,KV,Bg,r6e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,WV),$Et),"Distance Penalty When Improving Cuts"),null),2),Wa),zs),en(_n)))),Bs(e,WV,Bg,e6e),Bs(e,WV,KV,!0),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,ult),$Et),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),oa),ys),en(_n)))),Bs(e,ult,Bg,s6e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,MEt),glt),"Edge Label Side Selection"),"Method to decide on edge label sides."),m_t),ts),ISt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,IEt),glt),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),w_t),ts),TT),Hi(_n,lt(ut(G0,1),te,170,0,[Wp]))))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,YV),eA),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),h_t),ts),RAt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,OEt),eA),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,NEt),eA),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),oa),ys),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,llt),eA),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),u_t),ts),LCt),en(_n)))),Bs(e,llt,W_,null),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,PEt),eA),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),l_t),ts),LAt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,hlt),eA),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Wa),zs),en(_n)))),Bs(e,hlt,YV,null),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,flt),eA),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Wa),zs),en(_n)))),Bs(e,flt,YV,null),ibe((new Jet,e))};var u5e,l5e,h5e,o_t,f5e,c_t,d5e,u_t,g5e,p5e,b5e,l_t,w5e,m5e,v5e,h_t,y5e,x5e,k5e,f_t,E5e,T5e,C5e,d_t,S5e,_5e,A5e,L5e,D5e,M5e,I5e,O5e,N5e,P5e,g_t,F5e,p_t,B5e,b_t,R5e,w_t,j5e,m_t,$5e,z5e,q5e,v_t,H5e,y_t,V5e,x_t,U5e,G5e,K5e,W5e,Y5e,X5e,Q5e,J5e,Z5e,txe,k_t,exe,nxe,rxe,ixe,sxe,axe,E_t,oxe,cxe,uxe,lxe,hxe,fxe,dxe,T_t,gxe,C_t,pxe,bxe,wxe,S_t,mxe,vxe,__t,yxe,xxe,kxe,Exe,Txe,Cxe,Sxe,_xe,A_t,Axe,Lxe,Dxe,L_t,Mxe,D_t,Ixe,Oxe,Nxe,Pxe,Fxe,Bxe,Rxe,jxe,$xe,zxe,qxe,Hxe,Vxe,Uxe,Gxe,Kxe,Wxe,Yxe,M_t,Xxe,Qxe,I_t,Jxe,Zxe,t6e,e6e,n6e,r6e,i6e,s6e,a6e,O_t,o6e,c6e,u6e,l6e,N_t,h6e,f6e;I(Hc,"LayeredMetaDataProvider",859),D(998,1,uf,Jet),l.hf=function(e){ibe(e)};var u0,Jft,OG,PA,NG,P_t,PG,_3,FG,F_t,B_t,BG,Zft,U0,t1t,Ev,R_t,iP,e1t,j_t,d6e,g6e,p6e,RG,n1t,FA,Dw,b6e,ph,$_t,z_t,jG,r1t,l0,$G,zg,q_t,H_t,V_t,i1t,s1t,U_t,Hp,a1t,G_t,A3,K_t,W_t,Y_t,zG,L3,Mw,X_t,Q_t,Vo,J_t,w6e,Iu,qG,Z_t,tAt,eAt,a2,Iw,HG,nAt,rAt,VG,Tv,iAt,o1t,BA,sAt,Cv,RA,UG,Ow,c1t,IT,GG,Nw,aAt,oAt,cAt,OT,uAt,m6e,v6e,y6e,x6e,Sv,D3,bs,Vp,k6e,M3,lAt,NT,hAt,I3,E6e,PT,fAt,Yk,T6e,C6e,sP,u1t,dAt,aP,Yf,W5,Y5,_v,Pw,KG,O3,l1t,FT,BT,Av,X5,h1t,oP,jA,$A,S6e,_6e,A6e,gAt,L6e,f1t,pAt,bAt,wAt,mAt,d1t,vAt,yAt,xAt,kAt,g1t,WG;I(Hc,"LayeredOptions",998),D(999,1,{},RJ),l.sf=function(){var e;return e=new EKt,e},l.tf=function(e){},I(Hc,"LayeredOptions/LayeredFactory",999),D(1391,1,{}),l.a=0;var D6e;I(_c,"ElkSpacings/AbstractSpacingsBuilder",1391),D(792,1391,{},V5t);var YG,M6e;I(Hc,"LayeredSpacings/LayeredSpacingsBuilder",792),D(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},F4),l.dg=function(){return v0e(this)},l.qg=function(){return v0e(this)};var RT,p1t,jT,EAt,TAt,CAt,XG,b1t,SAt,_At=Lr(Hc,"LayeringStrategy",265,Pr,Sgn,Mon),I6e;D(390,22,{3:1,34:1,22:1,390:1},Srt);var w1t,AAt,QG,LAt=Lr(Hc,"LongEdgeOrderingStrategy",390,Pr,Ifn,Ion),O6e;D(203,22,{3:1,34:1,22:1,203:1},$$);var Q5,J5,JG,m1t,v1t=Lr(Hc,"NodeFlexibility",203,Pr,z1n,Oon),N6e;D(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},GM),l.dg=function(){return ude(this)},l.qg=function(){return ude(this)};var zA,y1t,x1t,qA,DAt,MAt=Lr(Hc,"NodePlacementStrategy",323,Pr,Idn,Non),P6e;D(243,22,{3:1,34:1,22:1,243:1},Ey);var IAt,Lv,N3,cP,OAt,NAt,uP,PAt,ZG,tK,FAt=Lr(Hc,"NodePromotionStrategy",243,Pr,Qgn,Pon),F6e;D(284,22,{3:1,34:1,22:1,284:1},z$);var BAt,Up,k1t,E1t,RAt=Lr(Hc,"OrderingStrategy",284,Pr,q1n,Fon),B6e;D(430,22,{3:1,34:1,22:1,430:1},Qwt);var T1t,C1t,jAt=Lr(Hc,"PortSortingStrategy",430,Pr,Nhn,Bon),R6e;D(462,22,{3:1,34:1,22:1,462:1},_rt);var vl,ku,HA,j6e=Lr(Hc,"PortType",462,Pr,Ofn,Ron),$6e;D(387,22,{3:1,34:1,22:1,387:1},Art);var $At,S1t,zAt,qAt=Lr(Hc,"SelfLoopDistributionStrategy",387,Pr,Nfn,jon),z6e;D(349,22,{3:1,34:1,22:1,349:1},Lrt);var _1t,lP,A1t,HAt=Lr(Hc,"SelfLoopOrderingStrategy",349,Pr,Pfn,$on),q6e;D(312,1,{312:1},epe),I(Hc,"Spacings",312),D(350,22,{3:1,34:1,22:1,350:1},Drt);var L1t,VAt,VA,UAt=Lr(Hc,"SplineRoutingMode",350,Pr,Ffn,zon),H6e;D(352,22,{3:1,34:1,22:1,352:1},Mrt);var D1t,GAt,KAt,WAt=Lr(Hc,"ValidifyStrategy",352,Pr,Bfn,qon),V6e;D(388,22,{3:1,34:1,22:1,388:1},Irt);var P3,M1t,$T,YAt=Lr(Hc,"WrappingStrategy",388,Pr,Rfn,Hon),U6e;D(1398,1,_o,Ket),l.rg=function(e){return u(e,36),G6e},l.Kf=function(e,n){kTn(this,u(e,36),n)};var G6e;I(tU,"DepthFirstCycleBreaker",1398),D(793,1,_o,lyt),l.rg=function(e){return u(e,36),K6e},l.Kf=function(e,n){CSn(this,u(e,36),n)},l.sg=function(e){return u(Oe(e,MH(this.d,e.c.length)),10)};var K6e;I(tU,"GreedyCycleBreaker",793),D(1401,793,_o,vQt),l.sg=function(e){var n,r,s,o;for(o=null,n=xi,s=new G(e);s.a<s.c.c.length;)r=u(et(s),10),qi(r,(oe(),Pi))&&u(X(r,Pi),17).a<n&&(n=u(X(r,Pi),17).a,o=r);return o||u(Oe(e,MH(this.d,e.c.length)),10)},I(tU,"GreedyModelOrderCycleBreaker",1401),D(1399,1,_o,Mj),l.rg=function(e){return u(e,36),W6e},l.Kf=function(e,n){MTn(this,u(e,36),n)};var W6e;I(tU,"InteractiveCycleBreaker",1399),D(1400,1,_o,g6),l.rg=function(e){return u(e,36),Y6e},l.Kf=function(e,n){zTn(this,u(e,36),n)},l.a=0,l.b=0;var Y6e;I(tU,"ModelOrderCycleBreaker",1400),D(1413,1,_o,Dj),l.rg=function(e){return u(e,36),X6e},l.Kf=function(e,n){DCn(this,u(e,36),n)};var X6e;I(Rg,"BreadthFirstModelOrderLayerer",1413),D(1414,1,Xr,jJ),l.Ne=function(e,n){return e5n(u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Rg,"BreadthFirstModelOrderLayerer/lambda$0$Type",1414),D(1404,1,_o,GYt),l.rg=function(e){return u(e,36),Q6e},l.Kf=function(e,n){DSn(this,u(e,36),n)};var Q6e;I(Rg,"CoffmanGrahamLayerer",1404),D(1405,1,Xr,lUt),l.Ne=function(e,n){return z5n(this.a,u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Rg,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1405),D(1406,1,Xr,hUt),l.Ne=function(e,n){return zun(this.a,u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Rg,"CoffmanGrahamLayerer/lambda$1$Type",1406),D(1415,1,_o,vM),l.rg=function(e){return u(e,36),J6e},l.Kf=function(e,n){wSn(this,u(e,36),n)},l.c=0,l.e=0;var J6e;I(Rg,"DepthFirstModelOrderLayerer",1415),D(1416,1,Xr,$J),l.Ne=function(e,n){return n5n(u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Rg,"DepthFirstModelOrderLayerer/lambda$0$Type",1416),D(1407,1,_o,zJ),l.rg=function(e){return u(e,36),ri(ri(ri(new Fs,(Ua(),Wf),(Za(),gft)),H0,E3),Qc,k3)},l.Kf=function(e,n){HCn(u(e,36),n)},I(Rg,"InteractiveLayerer",1407),D(578,1,{578:1},_Kt),l.a=0,l.c=0,I(Rg,"InteractiveLayerer/LayerSpan",578),D(1403,1,_o,NC),l.rg=function(e){return u(e,36),Z6e},l.Kf=function(e,n){wkn(this,u(e,36),n)};var Z6e;I(Rg,"LongestPathLayerer",1403),D(1412,1,_o,OC),l.rg=function(e){return u(e,36),tke},l.Kf=function(e,n){zkn(this,u(e,36),n)};var tke;I(Rg,"LongestPathSourceLayerer",1412),D(1410,1,_o,yM),l.rg=function(e){return u(e,36),ri(ri(ri(new Fs,(Ua(),Wf),(Za(),B5)),H0,E3),Qc,k3)},l.Kf=function(e,n){JCn(this,u(e,36),n)},l.a=0,l.b=0,l.d=0;var XAt,QAt;I(Rg,"MinWidthLayerer",1410),D(1411,1,Xr,fUt),l.Ne=function(e,n){return vpn(this,u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Rg,"MinWidthLayerer/MinOutgoingEdgesComparator",1411),D(1402,1,_o,Wet),l.rg=function(e){return u(e,36),eke},l.Kf=function(e,n){f9n(this,u(e,36),n)};var eke;I(Rg,"NetworkSimplexLayerer",1402),D(1408,1,_o,yZt),l.rg=function(e){return u(e,36),ri(ri(ri(new Fs,(Ua(),Wf),(Za(),B5)),H0,E3),Qc,k3)},l.Kf=function(e,n){X9n(this,u(e,36),n)},l.d=0,l.f=0,l.g=0,l.i=0,l.s=0,l.t=0,l.u=0,I(Rg,"StretchWidthLayerer",1408),D(1409,1,Xr,qJ),l.Ne=function(e,n){return Xdn(u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Rg,"StretchWidthLayerer/1",1409),D(413,1,x7t),l.gg=function(e,n,r,s,o,h){},l.ug=function(e,n,r){return G0e(this,e,n,r)},l.fg=function(){this.g=Vt(Y3,H2e,28,this.d,15,1),this.f=Vt(Y3,H2e,28,this.d,15,1)},l.hg=function(e,n){this.e[e]=Vt(Fr,ii,28,n[e].length,15,1)},l.ig=function(e,n,r){var s;s=r[e][n],s.p=n,this.e[e][n]=n},l.jg=function(e,n,r,s){u(Oe(s[e][n].j,r),12).p=this.d++},l.b=0,l.c=0,l.d=0,I(al,"AbstractBarycenterPortDistributor",413),D(1698,1,Xr,dUt),l.Ne=function(e,n){return Gwn(this.a,u(e,12),u(n,12))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(al,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),D(832,1,xN,p3t),l.gg=function(e,n,r,s,o,h){},l.ig=function(e,n,r){},l.jg=function(e,n,r,s){},l.eg=function(){return!1},l.fg=function(){this.c=this.e.a,this.g=this.f.g},l.hg=function(e,n){n[e][0].c.p=e},l.kg=function(){return!1},l.vg=function(e,n,r,s){r?Whe(this,e):(Jhe(this,e,s),gpe(this,e,n)),e.c.length>1&&(Ie(Me(X(Pa((vn(0,e.c.length),u(e.c[0],10))),(De(),Ev))))?kde(e,this.d,u(this,669)):(mn(),Ds(e,this.d)),kce(this.e,e))},l.lg=function(e,n,r,s){var o,h,d,m,k,T,A;for(n!=jte(r,e.length)&&(h=e[n-(r?1:-1)],j3t(this.f,h,r?(To(),ku):(To(),vl))),o=e[n][0],A=!s||o.k==(Un(),Ms),T=id(e[n]),this.vg(T,A,!1,r),d=0,k=new G(T);k.a<k.c.c.length;)m=u(et(k),10),e[n][d++]=m;return!1},l.mg=function(e,n){var r,s,o,h,d;for(d=jte(n,e.length),h=id(e[d]),this.vg(h,!1,!0,n),r=0,o=new G(h);o.a<o.c.c.length;)s=u(et(o),10),e[d][r++]=s;return!1},I(al,"BarycenterHeuristic",832),D(667,1,{667:1},bUt),l.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},l.b=0,l.d=0,l.e=!1;var nke=I(al,"BarycenterHeuristic/BarycenterState",667);D(1865,1,Xr,gUt),l.Ne=function(e,n){return $yn(this.a,u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(al,"BarycenterHeuristic/lambda$0$Type",1865),D(831,1,xN,Wxt),l.fg=function(){},l.gg=function(e,n,r,s,o,h){},l.jg=function(e,n,r,s){},l.hg=function(e,n){this.a[e]=Vt(nke,{3:1,4:1,5:1,2117:1},667,n[e].length,0,1),this.b[e]=Vt(rke,{3:1,4:1,5:1,2118:1},239,n[e].length,0,1)},l.ig=function(e,n,r){Ole(this,r[e][n],!0)},l.c=!1,I(al,"ForsterConstraintResolver",831),D(239,1,{239:1},Sne,tpe),l.Ib=function(){var e,n;for(n=new yb,n.a+="[",e=0;e<this.d.length;e++)ni(n,Wle(this.d[e])),td(this.g,this.d[0]).a!=null&&ni(ni((n.a+="<",n),fin(td(this.g,this.d[0]).a)),">"),e<this.d.length-1&&(n.a+=ao);return(n.a+="]",n).a},l.a=0,l.c=0,l.f=0;var rke=I(al,"ForsterConstraintResolver/ConstraintGroup",239);D(1860,1,ir,pUt),l.Cd=function(e){Ole(this.a,u(e,10),!1)},I(al,"ForsterConstraintResolver/lambda$0$Type",1860),D(219,1,{219:1,230:1},rpe),l.gg=function(e,n,r,s,o,h){},l.hg=function(e,n){},l.fg=function(){this.r=Vt(Fr,ii,28,this.n,15,1)},l.ig=function(e,n,r){var s,o;o=r[e][n],s=o.e,s&&ge(this.b,s)},l.jg=function(e,n,r,s){++this.n},l.Ib=function(){return ppe(this.e,new Os)},l.g=!1,l.i=!1,l.n=0,l.s=!1,I(al,"GraphInfoHolder",219),D(1905,1,xN,HJ),l.gg=function(e,n,r,s,o,h){},l.hg=function(e,n){},l.jg=function(e,n,r,s){},l.ug=function(e,n,r){return r&&n>0?fst(this.a,e[n-1],e[n]):!r&&n<e.length-1?fst(this.a,e[n],e[n+1]):aat(this.a,e[n],r?(ve(),Gn):(ve(),Jn)),v6n(this,e,n,r)},l.fg=function(){this.d=Vt(Fr,ii,28,this.c,15,1),this.a=new dI(this.d)},l.ig=function(e,n,r){var s;s=r[e][n],this.c+=s.j.c.length},l.c=0,I(al,"GreedyPortDistributor",1905),D(1421,1,_o,Zet),l.rg=function(e){return Bbn(u(e,36))},l.Kf=function(e,n){I9n(u(e,36),n)};var ike;I(al,"InteractiveCrossingMinimizer",1421),D(1422,1,Xr,mUt),l.Ne=function(e,n){return xyn(this,u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(al,"InteractiveCrossingMinimizer/1",1422),D(514,1,{514:1,106:1,47:1},Xnt),l.rg=function(e){var n;return u(e,36),n=rz(ske),ri(n,(Ua(),Qc),(Za(),uG)),n},l.Kf=function(e,n){jEn(this,u(e,36),n)},l.e=0;var ske;I(al,"LayerSweepCrossingMinimizer",514),D(1418,1,ir,vUt),l.Cd=function(e){L7n(this.a,u(e,219))},I(al,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1418),D(1419,1,ir,yUt),l.Cd=function(e){Pbn(this.a,u(e,219))},I(al,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1419),D(1420,1,ir,xUt),l.Cd=function(e){Ige(this.a,u(e,219))},I(al,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1420),D(463,22,{3:1,34:1,22:1,463:1},Ort);var hP,UA,eK,ake=Lr(al,"LayerSweepCrossingMinimizer/CrossMinType",463,Pr,jfn,Von),oke;D(1417,1,Kr,VJ),l.Mb=function(e){return F4t(),u(e,30).a.c.length==0},I(al,"LayerSweepCrossingMinimizer/lambda$0$Type",1417),D(1862,1,xN,ire),l.fg=function(){},l.gg=function(e,n,r,s,o,h){},l.jg=function(e,n,r,s){},l.hg=function(e,n){n[e][0].c.p=e,this.b[e]=Vt(cke,{3:1,4:1,5:1,2043:1},668,n[e].length,0,1)},l.ig=function(e,n,r){var s;s=r[e][n],s.p=n,ls(this.b[e],n,new YD)},I(al,"LayerSweepTypeDecider",1862),D(668,1,{668:1},YD),l.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},l.a=0,l.b=0,l.c=0;var cke=I(al,"LayerSweepTypeDecider/NodeInfo",668);D(1863,1,t0,UJ),l.Lb=function(e){return TS(new sd(u(e,12).b))},l.Fb=function(e){return this===e},l.Mb=function(e){return TS(new sd(u(e,12).b))},I(al,"LayerSweepTypeDecider/lambda$0$Type",1863),D(1864,1,t0,$8),l.Lb=function(e){return TS(new sd(u(e,12).b))},l.Fb=function(e){return this===e},l.Mb=function(e){return TS(new sd(u(e,12).b))},I(al,"LayerSweepTypeDecider/lambda$1$Type",1864),D(1906,413,x7t,AWt),l.tg=function(e,n,r){var s,o,h,d,m,k,T,A,P;switch(T=this.g,r.g){case 1:{for(s=0,o=0,k=new G(e.j);k.a<k.c.c.length;)d=u(et(k),12),d.e.c.length!=0&&(++s,d.j==(ve(),Hn)&&++o);for(h=n+o,P=n+s,m=Ym(e,(To(),vl)).Kc();m.Ob();)d=u(m.Pb(),12),d.j==(ve(),Hn)?(T[d.p]=h,--h):(T[d.p]=P,--P);return s}case 2:{for(A=0,m=Ym(e,(To(),ku)).Kc();m.Ob();)d=u(m.Pb(),12),++A,T[d.p]=n+A;return A}default:throw at(new DM)}},I(al,"LayerTotalPortDistributor",1906),D(669,832,{669:1,230:1},Yoe),l.vg=function(e,n,r,s){r?Whe(this,e):(Jhe(this,e,s),gpe(this,e,n)),e.c.length>1&&(Ie(Me(X(Pa((vn(0,e.c.length),u(e.c[0],10))),(De(),Ev))))?kde(e,this.d,this):(mn(),Ds(e,this.d)),Ie(Me(X(Pa((vn(0,e.c.length),u(e.c[0],10))),Ev)))||kce(this.e,e))},I(al,"ModelOrderBarycenterHeuristic",669),D(1866,1,Xr,kUt),l.Ne=function(e,n){return x4n(this.a,u(e,10),u(n,10))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(al,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),D(1423,1,_o,tnt),l.rg=function(e){var n;return u(e,36),n=rz(uke),ri(n,(Ua(),Qc),(Za(),uG)),n},l.Kf=function(e,n){ihn((u(e,36),n))};var uke;I(al,"NoCrossingMinimizer",1423),D(809,413,x7t,ywt),l.tg=function(e,n,r){var s,o,h,d,m,k,T,A,P,$,U;switch(P=this.g,r.g){case 1:{for(o=0,h=0,A=new G(e.j);A.a<A.c.c.length;)k=u(et(A),12),k.e.c.length!=0&&(++o,k.j==(ve(),Hn)&&++h);for(s=1/(o+1),d=n+h*s,U=n+1-s,T=Ym(e,(To(),vl)).Kc();T.Ob();)k=u(T.Pb(),12),k.j==(ve(),Hn)?(P[k.p]=d,d-=s):(P[k.p]=U,U-=s);break}case 2:{for(m=0,A=new G(e.j);A.a<A.c.c.length;)k=u(et(A),12),k.g.c.length==0||++m;for(s=1/(m+1),$=n+s,T=Ym(e,(To(),ku)).Kc();T.Ob();)k=u(T.Pb(),12),P[k.p]=$,$+=s;break}default:throw at(new zn("Port type is undefined"))}return 1},I(al,"NodeRelativePortDistributor",809),D(822,1,{},bee,Dfe),I(al,"SweepCopy",822),D(1861,1,xN,gle),l.hg=function(e,n){},l.fg=function(){var e;e=Vt(Fr,ii,28,this.f,15,1),this.d=new DUt(e),this.a=new dI(e)},l.gg=function(e,n,r,s,o,h){var d;d=u(Oe(h[e][n].j,r),12),o.c==d&&o.c.i.c==o.d.i.c&&++this.e[e]},l.ig=function(e,n,r){var s;s=r[e][n],this.c[e]=this.c[e]|s.k==(Un(),uu)},l.jg=function(e,n,r,s){var o;o=u(Oe(s[e][n].j,r),12),o.p=this.f++,o.g.c.length+o.e.c.length>1&&(o.j==(ve(),Jn)?this.b[e]=!0:o.j==Gn&&e>0&&(this.b[e-1]=!0))},l.f=0,I(z0,"AllCrossingsCounter",1861),D(595,1,{},Yq),l.b=0,l.d=0,I(z0,"BinaryIndexedTree",595),D(532,1,{},dI);var JAt,nK;I(z0,"CrossingsCounter",532),D(1950,1,Xr,EUt),l.Ne=function(e,n){return Dun(this.a,u(e,12),u(n,12))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(z0,"CrossingsCounter/lambda$0$Type",1950),D(1951,1,Xr,TUt),l.Ne=function(e,n){return Mun(this.a,u(e,12),u(n,12))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(z0,"CrossingsCounter/lambda$1$Type",1951),D(1952,1,Xr,CUt),l.Ne=function(e,n){return Iun(this.a,u(e,12),u(n,12))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(z0,"CrossingsCounter/lambda$2$Type",1952),D(1953,1,Xr,SUt),l.Ne=function(e,n){return Oun(this.a,u(e,12),u(n,12))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(z0,"CrossingsCounter/lambda$3$Type",1953),D(1954,1,ir,_Ut),l.Cd=function(e){O0n(this.a,u(e,12))},I(z0,"CrossingsCounter/lambda$4$Type",1954),D(1955,1,Kr,AUt),l.Mb=function(e){return iin(this.a,u(e,12))},I(z0,"CrossingsCounter/lambda$5$Type",1955),D(1956,1,ir,LUt),l.Cd=function(e){lQt(this,e)},I(z0,"CrossingsCounter/lambda$6$Type",1956),D(1957,1,ir,xXt),l.Cd=function(e){var n;LE(),Ob(this.b,(n=this.a,u(e,12),n))},I(z0,"CrossingsCounter/lambda$7$Type",1957),D(839,1,t0,yR),l.Lb=function(e){return LE(),qi(u(e,12),(oe(),ml))},l.Fb=function(e){return this===e},l.Mb=function(e){return LE(),qi(u(e,12),(oe(),ml))},I(z0,"CrossingsCounter/lambda$8$Type",839),D(1949,1,{},DUt),I(z0,"HyperedgeCrossingsCounter",1949),D(477,1,{34:1,477:1},TZt),l.Fd=function(e){return Iwn(this,u(e,477))},l.b=0,l.c=0,l.e=0,l.f=0;var f_n=I(z0,"HyperedgeCrossingsCounter/Hyperedge",477);D(374,1,{34:1,374:1},Yz),l.Fd=function(e){return Gxn(this,u(e,374))},l.b=0,l.c=0;var lke=I(z0,"HyperedgeCrossingsCounter/HyperedgeCorner",374);D(531,22,{3:1,34:1,22:1,531:1},Jwt);var GA,KA,hke=Lr(z0,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,Pr,Phn,Uon),fke;D(1425,1,_o,ent),l.rg=function(e){return u(X(u(e,36),(oe(),lu)),21).Hc((Co(),Uh))?dke:null},l.Kf=function(e,n){ryn(this,u(e,36),n)};var dke;I(Ao,"InteractiveNodePlacer",1425),D(1426,1,_o,nnt),l.rg=function(e){return u(X(u(e,36),(oe(),lu)),21).Hc((Co(),Uh))?gke:null},l.Kf=function(e,n){zmn(this,u(e,36),n)};var gke,rK,iK;I(Ao,"LinearSegmentsNodePlacer",1426),D(261,1,{34:1,261:1},W2t),l.Fd=function(e){return brn(this,u(e,261))},l.Fb=function(e){var n;return Lt(e,261)?(n=u(e,261),this.b==n.b):!1},l.Hb=function(){return this.b},l.Ib=function(){return"ls"+Hb(this.e)},l.a=0,l.b=0,l.c=-1,l.d=-1,l.g=0;var pke=I(Ao,"LinearSegmentsNodePlacer/LinearSegment",261);D(1428,1,_o,Yte),l.rg=function(e){return u(X(u(e,36),(oe(),lu)),21).Hc((Co(),Uh))?bke:null},l.Kf=function(e,n){bSn(this,u(e,36),n)},l.b=0,l.g=0;var bke;I(Ao,"NetworkSimplexPlacer",1428),D(1447,1,Xr,GJ),l.Ne=function(e,n){return jc(u(e,17).a,u(n,17).a)},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Ao,"NetworkSimplexPlacer/0methodref$compare$Type",1447),D(1449,1,Xr,KJ),l.Ne=function(e,n){return jc(u(e,17).a,u(n,17).a)},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Ao,"NetworkSimplexPlacer/1methodref$compare$Type",1449),D(655,1,{655:1},kXt);var d_n=I(Ao,"NetworkSimplexPlacer/EdgeRep",655);D(412,1,{412:1},Vyt),l.b=!1;var g_n=I(Ao,"NetworkSimplexPlacer/NodeRep",412);D(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},IKt),I(Ao,"NetworkSimplexPlacer/Path",515),D(1429,1,{},WJ),l.Kb=function(e){return u(e,18).d.i.k},I(Ao,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),D(1430,1,Kr,YJ),l.Mb=function(e){return u(e,273)==(Un(),fa)},I(Ao,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),D(1431,1,{},XJ),l.Kb=function(e){return u(e,18).d.i},I(Ao,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),D(1432,1,Kr,MUt),l.Mb=function(e){return cZt(hle(u(e,10)))},I(Ao,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),D(1433,1,Kr,QJ),l.Mb=function(e){return gun(u(e,12))},I(Ao,"NetworkSimplexPlacer/lambda$0$Type",1433),D(1434,1,ir,EXt),l.Cd=function(e){Yin(this.a,this.b,u(e,12))},I(Ao,"NetworkSimplexPlacer/lambda$1$Type",1434),D(1443,1,ir,IUt),l.Cd=function(e){x5n(this.a,u(e,18))},I(Ao,"NetworkSimplexPlacer/lambda$10$Type",1443),D(1444,1,{},JJ),l.Kb=function(e){return rh(),new ln(null,new gn(u(e,30).a,16))},I(Ao,"NetworkSimplexPlacer/lambda$11$Type",1444),D(1445,1,ir,OUt),l.Cd=function(e){p8n(this.a,u(e,10))},I(Ao,"NetworkSimplexPlacer/lambda$12$Type",1445),D(1446,1,{},ZJ),l.Kb=function(e){return rh(),he(u(e,125).e)},I(Ao,"NetworkSimplexPlacer/lambda$13$Type",1446),D(1448,1,{},tZ),l.Kb=function(e){return rh(),he(u(e,125).e)},I(Ao,"NetworkSimplexPlacer/lambda$15$Type",1448),D(1450,1,Kr,eZ),l.Mb=function(e){return rh(),u(e,412).c.k==(Un(),xs)},I(Ao,"NetworkSimplexPlacer/lambda$17$Type",1450),D(1451,1,Kr,nZ),l.Mb=function(e){return rh(),u(e,412).c.j.c.length>1},I(Ao,"NetworkSimplexPlacer/lambda$18$Type",1451),D(1452,1,ir,rne),l.Cd=function(e){twn(this.c,this.b,this.d,this.a,u(e,412))},l.c=0,l.d=0,I(Ao,"NetworkSimplexPlacer/lambda$19$Type",1452),D(1435,1,{},rZ),l.Kb=function(e){return rh(),new ln(null,new gn(u(e,30).a,16))},I(Ao,"NetworkSimplexPlacer/lambda$2$Type",1435),D(1453,1,ir,NUt),l.Cd=function(e){Qin(this.a,u(e,12))},l.a=0,I(Ao,"NetworkSimplexPlacer/lambda$20$Type",1453),D(1454,1,{},iZ),l.Kb=function(e){return rh(),new ln(null,new gn(u(e,30).a,16))},I(Ao,"NetworkSimplexPlacer/lambda$21$Type",1454),D(1455,1,ir,PUt),l.Cd=function(e){usn(this.a,u(e,10))},I(Ao,"NetworkSimplexPlacer/lambda$22$Type",1455),D(1456,1,Kr,sZ),l.Mb=function(e){return cZt(e)},I(Ao,"NetworkSimplexPlacer/lambda$23$Type",1456),D(1457,1,{},aZ),l.Kb=function(e){return rh(),new ln(null,new gn(u(e,30).a,16))},I(Ao,"NetworkSimplexPlacer/lambda$24$Type",1457),D(1458,1,Kr,FUt),l.Mb=function(e){return min(this.a,u(e,10))},I(Ao,"NetworkSimplexPlacer/lambda$25$Type",1458),D(1459,1,ir,TXt),l.Cd=function(e){C4n(this.a,this.b,u(e,10))},I(Ao,"NetworkSimplexPlacer/lambda$26$Type",1459),D(1460,1,Kr,n6),l.Mb=function(e){return rh(),!go(u(e,18))},I(Ao,"NetworkSimplexPlacer/lambda$27$Type",1460),D(1461,1,Kr,xR),l.Mb=function(e){return rh(),!go(u(e,18))},I(Ao,"NetworkSimplexPlacer/lambda$28$Type",1461),D(1462,1,{},BUt),l.Ve=function(e,n){return Xin(this.a,u(e,30),u(n,30))},I(Ao,"NetworkSimplexPlacer/lambda$29$Type",1462),D(1436,1,{},oZ),l.Kb=function(e){return rh(),new ln(null,new Lm(new rr(sr(_s(u(e,10)).a.Kc(),new z))))},I(Ao,"NetworkSimplexPlacer/lambda$3$Type",1436),D(1437,1,Kr,cZ),l.Mb=function(e){return rh(),S1n(u(e,18))},I(Ao,"NetworkSimplexPlacer/lambda$4$Type",1437),D(1438,1,ir,RUt),l.Cd=function(e){T7n(this.a,u(e,18))},I(Ao,"NetworkSimplexPlacer/lambda$5$Type",1438),D(1439,1,{},uZ),l.Kb=function(e){return rh(),new ln(null,new gn(u(e,30).a,16))},I(Ao,"NetworkSimplexPlacer/lambda$6$Type",1439),D(1440,1,Kr,kR),l.Mb=function(e){return rh(),u(e,10).k==(Un(),xs)},I(Ao,"NetworkSimplexPlacer/lambda$7$Type",1440),D(1441,1,{},lZ),l.Kb=function(e){return rh(),new ln(null,new Lm(new rr(sr(Dg(u(e,10)).a.Kc(),new z))))},I(Ao,"NetworkSimplexPlacer/lambda$8$Type",1441),D(1442,1,Kr,cC),l.Mb=function(e){return rh(),dun(u(e,18))},I(Ao,"NetworkSimplexPlacer/lambda$9$Type",1442),D(1424,1,_o,rnt),l.rg=function(e){return u(X(u(e,36),(oe(),lu)),21).Hc((Co(),Uh))?wke:null},l.Kf=function(e,n){iTn(u(e,36),n)};var wke;I(Ao,"SimpleNodePlacer",1424),D(185,1,{185:1},m5),l.Ib=function(){var e;return e="",this.c==(Gd(),Dv)?e+=Ak:this.c==Gp&&(e+=_k),this.o==(nd(),Fw)?e+=xut:this.o==yd?e+="UP":e+="BALANCED",e},I(Qb,"BKAlignedLayout",185),D(523,22,{3:1,34:1,22:1,523:1},Zwt);var Gp,Dv,mke=Lr(Qb,"BKAlignedLayout/HDirection",523,Pr,Fhn,Gon),vke;D(522,22,{3:1,34:1,22:1,522:1},tmt);var Fw,yd,yke=Lr(Qb,"BKAlignedLayout/VDirection",522,Pr,Bhn,Kon),xke;D(1699,1,{},CXt),I(Qb,"BKAligner",1699),D(1702,1,{},Fhe),I(Qb,"BKCompactor",1702),D(663,1,{663:1},hZ),l.a=0,I(Qb,"BKCompactor/ClassEdge",663),D(466,1,{466:1},LKt),l.a=null,l.b=0,I(Qb,"BKCompactor/ClassNode",466),D(1427,1,_o,LXt),l.rg=function(e){return u(X(u(e,36),(oe(),lu)),21).Hc((Co(),Uh))?kke:null},l.Kf=function(e,n){NSn(this,u(e,36),n)},l.d=!1;var kke;I(Qb,"BKNodePlacer",1427),D(1700,1,{},fZ),l.d=0,I(Qb,"NeighborhoodInformation",1700),D(1701,1,Xr,jUt),l.Ne=function(e,n){return cgn(this,u(e,42),u(n,42))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(Qb,"NeighborhoodInformation/NeighborComparator",1701),D(823,1,{}),I(Qb,"ThresholdStrategy",823),D(1825,823,{},DKt),l.wg=function(e,n,r){return this.a.o==(nd(),yd)?Zi:Vs},l.xg=function(){},I(Qb,"ThresholdStrategy/NullThresholdStrategy",1825),D(587,1,{587:1},DXt),l.c=!1,l.d=!1,I(Qb,"ThresholdStrategy/Postprocessable",587),D(1826,823,{},MKt),l.wg=function(e,n,r){var s,o,h;return o=n==r,s=this.a.a[r.p]==n,o||s?(h=e,this.a.c==(Gd(),Dv)?(o&&(h=yct(this,n,!0)),!isNaN(h)&&!isFinite(h)&&s&&(h=yct(this,r,!1))):(o&&(h=yct(this,n,!0)),!isNaN(h)&&!isFinite(h)&&s&&(h=yct(this,r,!1))),h):e},l.xg=function(){for(var e,n,r,s,o;this.d.b!=0;)o=u(Zhn(this.d),587),s=uge(this,o),s.a&&(e=s.a,r=Ie(this.a.f[this.a.g[o.b.p].p]),!(!r&&!go(e)&&e.c.i.c==e.d.i.c)&&(n=gde(this,o),n||xin(this.e,o)));for(;this.e.a.c.length!=0;)gde(this,u(gue(this.e),587))},I(Qb,"ThresholdStrategy/SimpleThresholdStrategy",1826),D(645,1,{645:1,188:1,196:1},dZ),l.dg=function(){return Ece(this)},l.qg=function(){return Ece(this)};var I1t;I(vlt,"EdgeRouterFactory",645),D(1485,1,_o,int),l.rg=function(e){return Ukn(u(e,36))},l.Kf=function(e,n){hTn(u(e,36),n)};var Eke,Tke,Cke,Ske,_ke,ZAt,Ake,Lke;I(vlt,"OrthogonalEdgeRouter",1485),D(1478,1,_o,AXt),l.rg=function(e){return dyn(u(e,36))},l.Kf=function(e,n){NCn(this,u(e,36),n)};var Dke,Mke,Ike,Oke,fP,Nke;I(vlt,"PolylineEdgeRouter",1478),D(1479,1,t0,pZ),l.Lb=function(e){return z4t(u(e,10))},l.Fb=function(e){return this===e},l.Mb=function(e){return z4t(u(e,10))},I(vlt,"PolylineEdgeRouter/1",1479),D(1872,1,Kr,bZ),l.Mb=function(e){return u(e,132).c==(C1(),o2)},I(M1,"HyperEdgeCycleDetector/lambda$0$Type",1872),D(1873,1,{},wZ),l.Ze=function(e){return u(e,132).d},I(M1,"HyperEdgeCycleDetector/lambda$1$Type",1873),D(1874,1,Kr,mZ),l.Mb=function(e){return u(e,132).c==(C1(),o2)},I(M1,"HyperEdgeCycleDetector/lambda$2$Type",1874),D(1875,1,{},vZ),l.Ze=function(e){return u(e,132).d},I(M1,"HyperEdgeCycleDetector/lambda$3$Type",1875),D(1876,1,{},yZ),l.Ze=function(e){return u(e,132).d},I(M1,"HyperEdgeCycleDetector/lambda$4$Type",1876),D(1877,1,{},gZ),l.Ze=function(e){return u(e,132).d},I(M1,"HyperEdgeCycleDetector/lambda$5$Type",1877),D(118,1,{34:1,118:1},eO),l.Fd=function(e){return wrn(this,u(e,118))},l.Fb=function(e){var n;return Lt(e,118)?(n=u(e,118),this.g==n.g):!1},l.Hb=function(){return this.g},l.Ib=function(){var e,n,r,s;for(e=new eh("{"),s=new G(this.n);s.a<s.c.c.length;)r=u(et(s),12),n=EO(r.i),n==null&&(n="n"+PZt(r.i)),e.a+=""+n,s.a<s.c.c.length&&(e.a+=",");return e.a+="}",e.a},l.a=0,l.b=0,l.c=NaN,l.d=0,l.g=0,l.i=0,l.o=0,l.s=NaN,I(M1,"HyperEdgeSegment",118),D(132,1,{132:1},J2),l.Ib=function(){return this.a+"->"+this.b+" ("+Fsn(this.c)+")"},l.d=0,I(M1,"HyperEdgeSegmentDependency",132),D(528,22,{3:1,34:1,22:1,528:1},emt);var o2,F3,Pke=Lr(M1,"HyperEdgeSegmentDependency/DependencyType",528,Pr,Rhn,Won),Fke;D(1878,1,{},$Ut),I(M1,"HyperEdgeSegmentSplitter",1878),D(1879,1,{},IWt),l.a=0,l.b=0,I(M1,"HyperEdgeSegmentSplitter/AreaRating",1879),D(339,1,{339:1},yit),l.a=0,l.b=0,l.c=0,I(M1,"HyperEdgeSegmentSplitter/FreeArea",339),D(1880,1,Xr,r6),l.Ne=function(e,n){return Fan(u(e,118),u(n,118))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(M1,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),D(1881,1,ir,ine),l.Cd=function(e){ldn(this.a,this.d,this.c,this.b,u(e,118))},l.b=0,I(M1,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),D(1882,1,{},xZ),l.Kb=function(e){return new ln(null,new gn(u(e,118).e,16))},I(M1,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),D(1883,1,{},kZ),l.Kb=function(e){return new ln(null,new gn(u(e,118).j,16))},I(M1,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),D(1884,1,{},EZ),l.Ye=function(e){return Rt(Ht(e))},I(M1,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),D(664,1,{},Uit),l.a=0,l.b=0,l.c=0,I(M1,"OrthogonalRoutingGenerator",664),D(1703,1,{},TZ),l.Kb=function(e){return new ln(null,new gn(u(e,118).e,16))},I(M1,"OrthogonalRoutingGenerator/lambda$0$Type",1703),D(1704,1,{},CZ),l.Kb=function(e){return new ln(null,new gn(u(e,118).j,16))},I(M1,"OrthogonalRoutingGenerator/lambda$1$Type",1704),D(670,1,{}),I(ylt,"BaseRoutingDirectionStrategy",670),D(1870,670,{},PKt),l.yg=function(e,n,r){var s,o,h,d,m,k,T,A,P,$,U,J,tt;if(!(e.r&&!e.q))for(A=n+e.o*r,T=new G(e.n);T.a<T.c.c.length;)for(k=u(et(T),12),P=dc(lt(ut(la,1),ue,8,0,[k.i.n,k.n,k.a])).a,m=new G(k.g);m.a<m.c.c.length;)d=u(et(m),18),go(d)||(J=d.d,tt=dc(lt(ut(la,1),ue,8,0,[J.i.n,J.n,J.a])).a,b.Math.abs(P-tt)>n0&&(h=A,o=e,s=new ae(P,h),Zr(d.a,s),ev(this,d,o,s,!1),$=e.r,$&&(U=Rt(Ht(jh($.e,0))),s=new ae(U,h),Zr(d.a,s),ev(this,d,o,s,!1),h=n+$.o*r,o=$,s=new ae(U,h),Zr(d.a,s),ev(this,d,o,s,!1)),s=new ae(tt,h),Zr(d.a,s),ev(this,d,o,s,!1)))},l.zg=function(e){return e.i.n.a+e.n.a+e.a.a},l.Ag=function(){return ve(),Er},l.Bg=function(){return ve(),Hn},I(ylt,"NorthToSouthRoutingStrategy",1870),D(1871,670,{},FKt),l.yg=function(e,n,r){var s,o,h,d,m,k,T,A,P,$,U,J,tt;if(!(e.r&&!e.q))for(A=n-e.o*r,T=new G(e.n);T.a<T.c.c.length;)for(k=u(et(T),12),P=dc(lt(ut(la,1),ue,8,0,[k.i.n,k.n,k.a])).a,m=new G(k.g);m.a<m.c.c.length;)d=u(et(m),18),go(d)||(J=d.d,tt=dc(lt(ut(la,1),ue,8,0,[J.i.n,J.n,J.a])).a,b.Math.abs(P-tt)>n0&&(h=A,o=e,s=new ae(P,h),Zr(d.a,s),ev(this,d,o,s,!1),$=e.r,$&&(U=Rt(Ht(jh($.e,0))),s=new ae(U,h),Zr(d.a,s),ev(this,d,o,s,!1),h=n-$.o*r,o=$,s=new ae(U,h),Zr(d.a,s),ev(this,d,o,s,!1)),s=new ae(tt,h),Zr(d.a,s),ev(this,d,o,s,!1)))},l.zg=function(e){return e.i.n.a+e.n.a+e.a.a},l.Ag=function(){return ve(),Hn},l.Bg=function(){return ve(),Er},I(ylt,"SouthToNorthRoutingStrategy",1871),D(1869,670,{},BKt),l.yg=function(e,n,r){var s,o,h,d,m,k,T,A,P,$,U,J,tt;if(!(e.r&&!e.q))for(A=n+e.o*r,T=new G(e.n);T.a<T.c.c.length;)for(k=u(et(T),12),P=dc(lt(ut(la,1),ue,8,0,[k.i.n,k.n,k.a])).b,m=new G(k.g);m.a<m.c.c.length;)d=u(et(m),18),go(d)||(J=d.d,tt=dc(lt(ut(la,1),ue,8,0,[J.i.n,J.n,J.a])).b,b.Math.abs(P-tt)>n0&&(h=A,o=e,s=new ae(h,P),Zr(d.a,s),ev(this,d,o,s,!0),$=e.r,$&&(U=Rt(Ht(jh($.e,0))),s=new ae(h,U),Zr(d.a,s),ev(this,d,o,s,!0),h=n+$.o*r,o=$,s=new ae(h,U),Zr(d.a,s),ev(this,d,o,s,!0)),s=new ae(h,tt),Zr(d.a,s),ev(this,d,o,s,!0)))},l.zg=function(e){return e.i.n.b+e.n.b+e.a.b},l.Ag=function(){return ve(),Jn},l.Bg=function(){return ve(),Gn},I(ylt,"WestToEastRoutingStrategy",1869),D(828,1,{},Rkt),l.Ib=function(){return Hb(this.a)},l.b=0,l.c=!1,l.d=!1,l.f=0,I(f3,"NubSpline",828),D(418,1,{418:1},Kde,Fne),I(f3,"NubSpline/PolarCP",418),D(1480,1,_o,Ahe),l.rg=function(e){return n3n(u(e,36))},l.Kf=function(e,n){ZCn(this,u(e,36),n)};var Bke,Rke,jke,$ke,zke;I(f3,"SplineEdgeRouter",1480),D(274,1,{274:1},vq),l.Ib=function(){return this.a+" ->("+this.c+") "+this.b},l.c=0,I(f3,"SplineEdgeRouter/Dependency",274),D(464,22,{3:1,34:1,22:1,464:1},nmt);var c2,Z5,qke=Lr(f3,"SplineEdgeRouter/SideToProcess",464,Pr,Vhn,Yon),Hke;D(1481,1,Kr,SZ),l.Mb=function(e){return D_(),!u(e,131).o},I(f3,"SplineEdgeRouter/lambda$0$Type",1481),D(1482,1,{},_Z),l.Ze=function(e){return D_(),u(e,131).v+1},I(f3,"SplineEdgeRouter/lambda$1$Type",1482),D(1483,1,ir,MXt),l.Cd=function(e){wun(this.a,this.b,u(e,42))},I(f3,"SplineEdgeRouter/lambda$2$Type",1483),D(1484,1,ir,IXt),l.Cd=function(e){mun(this.a,this.b,u(e,42))},I(f3,"SplineEdgeRouter/lambda$3$Type",1484),D(131,1,{34:1,131:1},a1e,Vkt),l.Fd=function(e){return yrn(this,u(e,131))},l.b=0,l.e=!1,l.f=0,l.g=0,l.j=!1,l.k=!1,l.n=0,l.o=!1,l.p=!1,l.q=!1,l.s=0,l.u=0,l.v=0,l.F=0,I(f3,"SplineSegment",131),D(467,1,{467:1},AZ),l.a=0,l.b=!1,l.c=!1,l.d=!1,l.e=!1,l.f=0,I(f3,"SplineSegment/EdgeInformation",467),D(1198,1,{},uC),I(jg,z8t,1198),D(1199,1,Xr,LZ),l.Ne=function(e,n){return R5n(u(e,121),u(n,121))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(jg,r2e,1199),D(1197,1,{},WWt),I(jg,"MrTree",1197),D(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},q$),l.dg=function(){return A1e(this)},l.qg=function(){return A1e(this)};var sK,WA,YA,XA,tLt=Lr(jg,"TreeLayoutPhases",405,Pr,K1n,Xon),Vke;D(1112,205,mw,kZt),l.rf=function(e,n){var r,s,o,h,d,m,k,T;for(Ie(Me(ne(e,(Cc(),CLt))))||sq((r=new by((xy(),new my(e))),r)),d=n.eh(Elt),d.Ug("build tGraph",1),m=(k=new FI,Qo(k,e),Zt(k,(ji(),JA),e),T=new _r,MEn(e,k,T),XEn(e,k,T),k),d.Vg(),d=n.eh(Elt),d.Ug("Split graph",1),h=BEn(this.a,m),d.Vg(),o=new G(h);o.a<o.c.c.length;)s=u(et(o),121),zyn(this.b,s,n.eh(.5999999940395355/h.c.length));d=n.eh(Elt),d.Ug("Pack components",1),m=PSn(h),d.Vg(),d=n.eh(Elt),d.Ug("Apply layout results",1),T9n(m),d.Vg()},I(jg,"TreeLayoutProvider",1112),D(1894,1,F0,MZ),l.Jc=function(e){Fa(this,e)},l.Kc=function(){return mn(),yE(),mT},I(jg,"TreeUtil/1",1894),D(1895,1,F0,IZ),l.Jc=function(e){Fa(this,e)},l.Kc=function(){return mn(),yE(),mT},I(jg,"TreeUtil/2",1895),D(1885,1,Kr,OZ),l.Mb=function(e){return Ie(Me(X(u(e,39),(ji(),u2))))},I(jg,"TreeUtil/lambda$0$Type",1885),D(1891,1,Kr,zUt),l.Mb=function(e){return this.a.Hc(u(e,39))},I(jg,"TreeUtil/lambda$10$Type",1891),D(1892,1,{},qUt),l.Kb=function(e){return G1n(this.a,u(e,39))},I(jg,"TreeUtil/lambda$11$Type",1892),D(1893,1,Kr,OXt),l.Mb=function(e){return V0n(this.a,this.b,u(e,39))},I(jg,"TreeUtil/lambda$12$Type",1893),D(1886,1,Kr,HUt),l.Mb=function(e){return D2n(this.a,u(e,65))},I(jg,"TreeUtil/lambda$3$Type",1886),D(1887,1,Xr,DZ),l.Ne=function(e,n){return Ban(u(e,65),u(n,65))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(jg,"TreeUtil/lambda$4$Type",1887),D(1888,1,Kr,VUt),l.Mb=function(e){return M2n(this.a,u(e,65))},I(jg,"TreeUtil/lambda$7$Type",1888),D(1889,1,Xr,NZ),l.Ne=function(e,n){return Ran(u(e,65),u(n,65))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(jg,"TreeUtil/lambda$8$Type",1889),D(1890,1,{},PZ),l.Kb=function(e){return u(e,65).b},I(jg,"TreeUtil/lambda$9$Type",1890),D(508,137,{3:1,508:1,96:1,137:1}),l.g=0,I(nA,"TGraphElement",508),D(65,508,{3:1,65:1,508:1,96:1,137:1},Kyt),l.Ib=function(){return this.b&&this.c?Z2(this.b)+"->"+Z2(this.c):"e_"+$i(this)},I(nA,"TEdge",65),D(121,137,{3:1,121:1,96:1,137:1},FI),l.Ib=function(){var e,n,r,s,o;for(o=null,s=Dr(this.b,0);s.b!=s.d.c;)r=u(Ar(s),39),o+=(r.c==null||r.c.length==0?"n_"+r.g:"n_"+r.c)+`
1353 `),nh(this);try{for(r=0,h=0,o=0,d=0;r<s.length;)s[r]!=null&&Zy(s[r]).length>0&&(h%2==0?o=Jy(s[r]):d=Jy(s[r]),h>0&&h%2!=0&&Zr(this,new ae(o,d)),++h),++r}catch(m){throw m=es(m),Lt(m,130)?(n=m,at(new zn("The given string does not match the expected format for vectors."+n))):at(m)}},l.Ib=function(){var e,n,r;for(e=new eh("("),n=Dr(this,0);n.b!=n.d.c;)r=u(Ar(n),8),ni(e,r.a+","+r.b),n.b!=n.d.c&&(e.a+="; ");return(e.a+=")",e).a};var sMt=I(yN,"KVectorChain",75);D(255,22,{3:1,34:1,22:1,255:1},hS);var _dt,CK,SK,EP,TP,_K,aMt=Lr(Nl,"Alignment",255,Pr,m0n,Ccn),e7e;D(991,1,uf,gnt),l.hf=function(e){ege(e)};var oMt,Adt,n7e,cMt,uMt,r7e,lMt,i7e,s7e,hMt,fMt,a7e;I(Nl,"BoxLayouterOptions",991),D(992,1,{},V8),l.sf=function(){var e;return e=new jtt,e},l.tf=function(e){},I(Nl,"BoxLayouterOptions/BoxFactory",992),D(297,22,{3:1,34:1,22:1,297:1},fS);var cL,Ldt,uL,lL,hL,Ddt,Mdt=Lr(Nl,"ContentAlignment",297,Pr,v0n,Scn),o7e;D(699,1,uf,Oj),l.hf=function(e){Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,bwe),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Fp(),ix)),Pe),en((D1(),_n))))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,wwe),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),xd),y_n),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,t7t),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),dMt),ts),aMt),en(Qs)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,Dk),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,dTt),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),xd),sMt),en(f0)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,QV),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),pMt),Qk),Mdt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,TN),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Pn(),!1)),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,blt),""),N8t),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),bMt),ts),gL),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,EN),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),vMt),ts),Udt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,hTt),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,XV),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),kMt),ts),cIt),Hi(_n,lt(ut(G0,1),te,170,0,[Qs]))))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,ov),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),MMt),xd),MCt),Hi(_n,lt(ut(G0,1),te,170,0,[Qs]))))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Y_),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,ZV),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,X_),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Fut),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),FMt),ts),hIt),en(Qs)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,JV),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),xd),la),Hi(Qs,lt(ut(G0,1),te,170,0,[Bw,Wp]))))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,gN),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),ac),Ra),Hi(Qs,lt(ut(G0,1),te,170,0,[f0]))))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,IV),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),ac),Ra),en(_n)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,W_),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,h7t),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),EMt),xd),sMt),en(f0)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,g7t),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),oa),ys),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,p7t),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),oa),ys),en(Qs)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,KSn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),xd),C_n),Hi(_n,lt(ut(G0,1),te,170,0,[Wp]))))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,w7t),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),TMt),xd),DCt),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,JEt),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),oa),ys),Hi(Qs,lt(ut(G0,1),te,170,0,[f0,Bw,Wp]))))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,mwe),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Wa),zs),en(Qs)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,vwe),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,ywe),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,pN),""),hwe),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),oa),ys),en(_n)))),Bs(e,pN,cv,null),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,xwe),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,kwe),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),he(100)),ac),Ra),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Ewe),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Twe),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),he(4e3)),ac),Ra),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Cwe),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),he(400)),ac),Ra),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Swe),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,_we),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Awe),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Lwe),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,fTt),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),gMt),ts),xIt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,zEt),bd),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,qEt),bd),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Lut),bd),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,HEt),bd),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Put),bd),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,plt),bd),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,VEt),bd),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,KEt),bd),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,UEt),bd),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,GEt),bd),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,h3),bd),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,WEt),bd),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Wa),zs),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,YEt),bd),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Wa),zs),Hi(_n,lt(ut(G0,1),te,170,0,[Qs]))))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,XEt),bd),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),xd),W7e),Hi(Qs,lt(ut(G0,1),te,170,0,[f0,Bw,Wp]))))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,m7t),bd),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),KMt),xd),DCt),en(_n)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,mlt),Iwe),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),ac),Ra),Hi(_n,lt(ut(G0,1),te,170,0,[Qs]))))),Bs(e,mlt,wlt,b7e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,wlt),Iwe),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),IMt),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,r7t),Owe),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),SMt),xd),MCt),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,nT),Owe),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),_Mt),Qk),Lo),Hi(Qs,lt(ut(G0,1),te,170,0,[Wp]))))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,a7t),uU),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),NMt),ts),mL),en(Qs)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,o7t),uU),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),ts),mL),en(Qs)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,c7t),uU),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),ts),mL),en(Qs)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,u7t),uU),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),ts),mL),en(Qs)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,l7t),uU),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),ts),mL),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,_5),$lt),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),AMt),Qk),xL),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Mk),$lt),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),DMt),Qk),dIt),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Ik),$lt),"Node Size Minimum"),"The minimal size to which a node can be reduced."),LMt),xd),la),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,eT),$lt),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),oa),ys),en(_n)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,f7t),glt),"Edge Label Placement"),"Gives a hint on where to put edge labels."),wMt),ts),XMt),en(Wp)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,OV),glt),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),oa),ys),en(Wp)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,WSn),"font"),"Font Name"),"Font name used for a label."),ix),Pe),en(Wp)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,Dwe),"font"),"Font Size"),"Font size used for a label."),ac),Ra),en(Wp)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,b7t),zlt),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),xd),la),en(Bw)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,d7t),zlt),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),ac),Ra),en(Bw)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,ZEt),zlt),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),jMt),ts),bo),en(Bw)))),Qe(e,new He(Ye(We(Xe(Ve(Ke(Ue(Ge(new je,QEt),zlt),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Wa),zs),en(Bw)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,rT),bTt),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),BMt),Qk),OK),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,i7t),bTt),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),oa),ys),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,s7t),bTt),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),oa),ys),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,bN),_N),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Wa),zs),en(_n)))),Bs(e,bN,cv,T7e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,gTt),_N),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),ts),jK),en(Qs)))),Bs(e,gTt,cv,C7e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,wN),_N),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Wa),zs),Hi(_n,lt(ut(G0,1),te,170,0,[Qs]))))),Bs(e,wN,cv,null),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,mN),_N),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Wa),zs),Hi(_n,lt(ut(G0,1),te,170,0,[Qs]))))),Bs(e,mN,cv,null),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,cv),_N),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),ts),pIt),en(Qs)))),Bs(e,cv,eT,null),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,pTt),_N),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Wa),zs),en(_n)))),Bs(e,pTt,cv,E7e),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,e7t),Nwe),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),oa),ys),en(Qs)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,n7t),Nwe),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),oa),ys),en(f0)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Dut),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Wa),zs),en(f0)))),Qe(e,new He(Ye(We(Xe(fn(Ve(Ke(Ue(Ge(new je,Mwe),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),xMt),ts),nIt),en(f0)))),eS(e,new Z6(XC(pE(gE(new fy,Qn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),eS(e,new Z6(XC(pE(gE(new fy,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),eS(e,new Z6(XC(pE(gE(new fy,Du),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),eS(e,new Z6(XC(pE(gE(new fy,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),eS(e,new Z6(XC(pE(gE(new fy,X2e),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),eS(e,new Z6(XC(pE(gE(new fy,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),eS(e,new Z6(XC(pE(gE(new fy,zh),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),$0e((new pnt,e)),ege((new gnt,e)),g0e((new Nj,e))};var VT,c7e,dMt,sx,u7e,l7e,gMt,ax,ox,h7e,CP,pMt,SP,Rw,bMt,Idt,Odt,wMt,mMt,vMt,yMt,xMt,f7e,cx,kMt,d7e,_P,Ndt,AP,Pdt,Iv,EMt,UT,TMt,CMt,SMt,ux,_Mt,jw,AMt,R3,lx,LMt,l2,DMt,AK,LP,Yp,MMt,g7e,IMt,p7e,b7e,OMt,NMt,Fdt,Bdt,Rdt,jdt,PMt,Pl,fL,FMt,$dt,zdt,j3,BMt,RMt,hx,jMt,Jk,DP,qdt,fx,w7e,Hdt,m7e,v7e,$Mt,y7e,zMt,qMt,Zk,HMt,LK,VMt,UMt,$w,x7e,GMt,KMt,WMt,DK,MP,dL,t8,k7e,E7e,MK,T7e,YMt,C7e;I(Nl,"CoreOptions",699),D(88,22,{3:1,34:1,22:1,88:1},JM);var kd,Uo,tc,Ed,Gh,gL=Lr(Nl,N8t,88,Pr,Edn,_cn),S7e;D(278,22,{3:1,34:1,22:1,278:1},Hrt);var GT,$3,KT,XMt=Lr(Nl,"EdgeLabelPlacement",278,Pr,Xfn,Acn),_7e;D(223,22,{3:1,34:1,22:1,223:1},U$);var WT,IP,e8,Vdt,Udt=Lr(Nl,"EdgeRouting",223,Pr,J1n,Lcn),A7e;D(321,22,{3:1,34:1,22:1,321:1},dS);var QMt,JMt,ZMt,tIt,Gdt,eIt,nIt=Lr(Nl,"EdgeType",321,Pr,w0n,Dcn),L7e;D(989,1,uf,pnt),l.hf=function(e){$0e(e)};var rIt,iIt,sIt,aIt,D7e,oIt,pL;I(Nl,"FixedLayouterOptions",989),D(990,1,{},qR),l.sf=function(){var e;return e=new Utt,e},l.tf=function(e){},I(Nl,"FixedLayouterOptions/FixedFactory",990),D(346,22,{3:1,34:1,22:1,346:1},Vrt);var Xp,IK,bL,cIt=Lr(Nl,"HierarchyHandling",346,Pr,Jfn,Mcn),M7e;D(290,22,{3:1,34:1,22:1,290:1},G$);var K0,h2,OP,NP,I7e=Lr(Nl,"LabelSide",290,Pr,Q1n,Icn),O7e;D(95,22,{3:1,34:1,22:1,95:1},B4);var qg,Qf,pf,Jf,bh,Zf,bf,W0,t1,Lo=Lr(Nl,"NodeLabelPlacement",95,Pr,mgn,Ocn),N7e;D(256,22,{3:1,34:1,22:1,256:1},ZM);var uIt,wL,f2,lIt,PP,mL=Lr(Nl,"PortAlignment",256,Pr,Rdn,Ncn),P7e;D(101,22,{3:1,34:1,22:1,101:1},gS);var zw,hu,Y0,YT,Td,d2,hIt=Lr(Nl,"PortConstraints",101,Pr,b0n,Pcn),F7e;D(279,22,{3:1,34:1,22:1,279:1},pS);var vL,yL,Hg,FP,g2,n8,OK=Lr(Nl,"PortLabelPlacement",279,Pr,p0n,Fcn),B7e;D(64,22,{3:1,34:1,22:1,64:1},tI);var Jn,Hn,Kh,Wh,Uu,Ou,Cd,e1,yl,cl,fu,xl,Gu,Ku,n1,wh,mh,wf,Er,bc,Gn,bo=Lr(Nl,"PortSide",64,Pr,Tdn,Bcn),R7e;D(993,1,uf,Nj),l.hf=function(e){g0e(e)};var j7e,$7e,fIt,z7e,q7e;I(Nl,"RandomLayouterOptions",993),D(994,1,{},HR),l.sf=function(){var e;return e=new qtt,e},l.tf=function(e){},I(Nl,"RandomLayouterOptions/RandomFactory",994),D(386,22,{3:1,34:1,22:1,386:1},K$);var z3,BP,RP,qw,xL=Lr(Nl,"SizeConstraint",386,Pr,X1n,Rcn),H7e;D(264,22,{3:1,34:1,22:1,264:1},R4);var jP,NK,XT,Kdt,$P,kL,PK,FK,BK,dIt=Lr(Nl,"SizeOptions",264,Pr,Dgn,jcn),V7e;D(280,22,{3:1,34:1,22:1,280:1},Urt);var q3,gIt,RK,pIt=Lr(Nl,"TopdownNodeTypes",280,Pr,Qfn,$cn),U7e;D(347,22,wTt);var bIt,wIt,jK=Lr(Nl,"TopdownSizeApproximator",347,Pr,Whn,qcn);D(987,347,wTt,_te),l.Tg=function(e){return rhe(e)},Lr(Nl,"TopdownSizeApproximator/1",987,jK,null,null),D(988,347,wTt,fee),l.Tg=function(e){var n,r,s,o,h,d,m,k,T,A,P,$,U,J,tt,ht,Tt,At,Bt,Wt,se,Ce,rn,Ze,On;for(n=u(ne(e,(ai(),fx)),143),Ce=(kb(),U=new VC,U),$O(Ce,e),rn=new _r,h=new Zn((!e.a&&(e.a=new Jt(bi,e,10,11)),e.a));h.e!=h.i.gc();)s=u(ar(h),27),At=($=new VC,$),tV(At,Ce),$O(At,s),On=rhe(s),H4(At,b.Math.max(s.g,On.a),b.Math.max(s.f,On.b)),yu(rn.f,s,At);for(o=new Zn((!e.a&&(e.a=new Jt(bi,e,10,11)),e.a));o.e!=o.i.gc();)for(s=u(ar(o),27),A=new Zn((!s.e&&(s.e=new kn(Ts,s,7,4)),s.e));A.e!=A.i.gc();)T=u(ar(A),74),Wt=u(Ko(Eo(rn.f,s)),27),se=u(tr(rn,Dt((!T.c&&(T.c=new kn(vr,T,5,8)),T.c),0)),27),Bt=(P=new sM,P),Or((!Bt.b&&(Bt.b=new kn(vr,Bt,4,7)),Bt.b),Wt),Or((!Bt.c&&(Bt.c=new kn(vr,Bt,5,8)),Bt.c),se),ZH(Bt,Ji(Wt)),$O(Bt,T);tt=u(_I(n.f),205);try{tt.rf(Ce,new UR),Hee(n.f,tt)}catch(Dn){throw Dn=es(Dn),Lt(Dn,103)?(J=Dn,at(J)):at(Dn)}return ad(Ce,ox)||ad(Ce,ax)||r8t(Ce),k=Rt(Ht(ne(Ce,ox))),m=Rt(Ht(ne(Ce,ax))),d=k/m,r=Rt(Ht(ne(Ce,MP)))*b.Math.sqrt((!Ce.a&&(Ce.a=new Jt(bi,Ce,10,11)),Ce.a).i),Ze=u(ne(Ce,Yp),107),Tt=Ze.b+Ze.c+1,ht=Ze.d+Ze.a+1,new ae(b.Math.max(Tt,r),b.Math.max(ht,r/d))},Lr(Nl,"TopdownSizeApproximator/2",988,jK,null,null);var G7e;D(344,1,{871:1},S6),l.Ug=function(e,n){return bfe(this,e,n)},l.Vg=function(){jfe(this)},l.Wg=function(){return this.q},l.Xg=function(){return this.f?ast(this.f):null},l.Yg=function(){return ast(this.a)},l.Zg=function(){return this.p},l.$g=function(){return!1},l._g=function(){return this.n},l.ah=function(){return this.p!=null&&!this.b},l.bh=function(e){var n;this.n&&(n=e,ge(this.f,n))},l.dh=function(e,n){var r,s;this.n&&e&&g1n(this,(r=new Tee,s=lct(r,e),Y9n(r),s),(sH(),Ydt))},l.eh=function(e){var n;return this.b?null:(n=Z0n(this,this.g),Zr(this.a,n),n.i=this,this.d=e,n)},l.fh=function(e){e>0&&!this.b&&x4t(this,e)},l.b=!1,l.c=0,l.d=-1,l.e=null,l.f=null,l.g=-1,l.j=!1,l.k=!1,l.n=!1,l.o=0,l.q=0,l.r=0,I(_c,"BasicProgressMonitor",344),D(717,205,mw,jtt),l.rf=function(e,n){mge(e,n)},I(_c,"BoxLayoutProvider",717),D(983,1,Xr,fGt),l.Ne=function(e,n){return Y6n(this,u(e,27),u(n,27))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},l.a=!1,I(_c,"BoxLayoutProvider/1",983),D(163,1,{163:1},Fq,QJt),l.Ib=function(){return this.c?vkt(this.c):Hb(this.b)},I(_c,"BoxLayoutProvider/Group",163),D(320,22,{3:1,34:1,22:1,320:1},W$);var mIt,vIt,yIt,Wdt,xIt=Lr(_c,"BoxLayoutProvider/PackingMode",320,Pr,Z1n,Hcn),K7e;D(984,1,Xr,U8),l.Ne=function(e,n){return ghn(u(e,163),u(n,163))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(_c,"BoxLayoutProvider/lambda$0$Type",984),D(985,1,Xr,G8),l.Ne=function(e,n){return ahn(u(e,163),u(n,163))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(_c,"BoxLayoutProvider/lambda$1$Type",985),D(986,1,Xr,VR),l.Ne=function(e,n){return ohn(u(e,163),u(n,163))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(_c,"BoxLayoutProvider/lambda$2$Type",986),D(1384,1,{845:1},$tt),l.Mg=function(e,n){return C$(),!Lt(n,167)||JWt((ck(),u(e,167)),n)},I(_c,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),D(1385,1,ir,dGt),l.Cd=function(e){Tbn(this.a,u(e,149))},I(_c,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),D(1386,1,ir,Htt),l.Cd=function(e){u(e,96),C$()},I(_c,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),D(1390,1,ir,gGt),l.Cd=function(e){Ggn(this.a,u(e,96))},I(_c,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),D(1388,1,Kr,qXt),l.Mb=function(e){return sbn(this.a,this.b,u(e,149))},I(_c,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),D(1387,1,Kr,HXt),l.Mb=function(e){return $sn(this.a,this.b,u(e,845))},I(_c,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),D(1389,1,ir,VXt),l.Cd=function(e){Zun(this.a,this.b,u(e,149))},I(_c,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),D(947,1,{},Vtt),l.Kb=function(e){return jQt(e)},l.Fb=function(e){return this===e},I(_c,"ElkUtil/lambda$0$Type",947),D(948,1,ir,UXt),l.Cd=function(e){J5n(this.a,this.b,u(e,74))},l.a=0,l.b=0,I(_c,"ElkUtil/lambda$1$Type",948),D(949,1,ir,GXt),l.Cd=function(e){Hnn(this.a,this.b,u(e,166))},l.a=0,l.b=0,I(_c,"ElkUtil/lambda$2$Type",949),D(950,1,ir,KXt),l.Cd=function(e){Rin(this.a,this.b,u(e,135))},l.a=0,l.b=0,I(_c,"ElkUtil/lambda$3$Type",950),D(951,1,ir,pGt),l.Cd=function(e){yun(this.a,u(e,377))},I(_c,"ElkUtil/lambda$4$Type",951),D(325,1,{34:1,325:1},vnn),l.Fd=function(e){return dsn(this,u(e,242))},l.Fb=function(e){var n;return Lt(e,325)?(n=u(e,325),this.a==n.a):!1},l.Hb=function(){return Ys(this.a)},l.Ib=function(){return this.a+" (exclusive)"},l.a=0,I(_c,"ExclusiveBounds/ExclusiveLowerBound",325),D(1119,205,mw,Utt),l.rf=function(e,n){var r,s,o,h,d,m,k,T,A,P,$,U,J,tt,ht,Tt,At,Bt,Wt,se,Ce,rn,Ze;for(n.Ug("Fixed Layout",1),h=u(ne(e,(ai(),mMt)),223),P=0,$=0,At=new Zn((!e.a&&(e.a=new Jt(bi,e,10,11)),e.a));At.e!=At.i.gc();){for(ht=u(ar(At),27),Ze=u(ne(ht,(aH(),pL)),8),Ze&&(Ch(ht,Ze.a,Ze.b),u(ne(ht,iIt),181).Hc((Yl(),z3))&&(U=u(ne(ht,aIt),8),U.a>0&&U.b>0&&rv(ht,U.a,U.b,!0,!0))),P=b.Math.max(P,ht.i+ht.g),$=b.Math.max($,ht.j+ht.f),T=new Zn((!ht.n&&(ht.n=new Jt(Po,ht,1,7)),ht.n));T.e!=T.i.gc();)m=u(ar(T),135),Ze=u(ne(m,pL),8),Ze&&Ch(m,Ze.a,Ze.b),P=b.Math.max(P,ht.i+m.i+m.g),$=b.Math.max($,ht.j+m.j+m.f);for(se=new Zn((!ht.c&&(ht.c=new Jt(kl,ht,9,9)),ht.c));se.e!=se.i.gc();)for(Wt=u(ar(se),123),Ze=u(ne(Wt,pL),8),Ze&&Ch(Wt,Ze.a,Ze.b),Ce=ht.i+Wt.i,rn=ht.j+Wt.j,P=b.Math.max(P,Ce+Wt.g),$=b.Math.max($,rn+Wt.f),k=new Zn((!Wt.n&&(Wt.n=new Jt(Po,Wt,1,7)),Wt.n));k.e!=k.i.gc();)m=u(ar(k),135),Ze=u(ne(m,pL),8),Ze&&Ch(m,Ze.a,Ze.b),P=b.Math.max(P,Ce+m.i+m.g),$=b.Math.max($,rn+m.j+m.f);for(o=new rr(sr(Og(ht).a.Kc(),new z));Mr(o);)r=u(dr(o),74),A=Ipe(r),P=b.Math.max(P,A.a),$=b.Math.max($,A.b);for(s=new rr(sr(jO(ht).a.Kc(),new z));Mr(s);)r=u(dr(s),74),Ji(O0(r))!=e&&(A=Ipe(r),P=b.Math.max(P,A.a),$=b.Math.max($,A.b))}if(h==(Lg(),WT))for(Tt=new Zn((!e.a&&(e.a=new Jt(bi,e,10,11)),e.a));Tt.e!=Tt.i.gc();)for(ht=u(ar(Tt),27),s=new rr(sr(Og(ht).a.Kc(),new z));Mr(s);)r=u(dr(s),74),d=t7n(r),d.b==0?Mi(r,Iv,null):Mi(r,Iv,d);Ie(Me(ne(e,(aH(),sIt))))||(Bt=u(ne(e,D7e),107),tt=P+Bt.b+Bt.c,J=$+Bt.d+Bt.a,rv(e,tt,J,!0,!0)),n.Vg()},I(_c,"FixedLayoutProvider",1119),D(385,137,{3:1,423:1,385:1,96:1,137:1},iM,Lae),l.cg=function(e){var n,r,s,o,h,d,m,k,T;if(e)try{for(k=s3(e,";,;"),h=k,d=0,m=h.length;d<m;++d){if(o=h[d],r=s3(o,"\\:"),s=Ykt(e7(),r[0]),!s)throw at(new zn("Invalid option id: "+r[0]));if(T=Kkt(s,r[1]),T==null)throw at(new zn("Invalid option value: "+r[1]));T==null?(!this.q&&(this.q=new _r),rk(this.q,s)):(!this.q&&(this.q=new _r),hi(this.q,s,T))}}catch(A){throw A=es(A),Lt(A,103)?(n=A,at(new due(n))):at(A)}},l.Ib=function(){var e;return e=Gr(nc(Wo((this.q?this.q:(mn(),mn(),q0)).vc().Oc(),new Gtt),jy(new cte,new ga,new xe,new Mn,lt(ut(Ho,1),te,108,0,[])))),e};var W7e=I(_c,"IndividualSpacings",385);D(982,1,{},Gtt),l.Kb=function(e){return phn(u(e,44))},I(_c,"IndividualSpacings/lambda$0$Type",982),D(718,1,{},Hte),l.c=0,I(_c,"InstancePool",718),D(1835,1,{},Ktt),I(_c,"LoggedGraph",1835),D(415,22,{3:1,34:1,22:1,415:1},Y$);var kIt,Ydt,EIt,TIt,Y7e=Lr(_c,"LoggedGraph/Type",415,Pr,tdn,Vcn),X7e;D(1063,1,{871:1},UR),l.Ug=function(e,n){return!1},l.Vg=function(){},l.Wg=function(){return 0},l.Xg=function(){return null},l.Yg=function(){return null},l.Zg=function(){return null},l.$g=function(){return!1},l._g=function(){return!1},l.ah=function(){return!1},l.bh=function(e){},l.dh=function(e,n){},l.eh=function(e){return this},l.fh=function(e){},I(_c,"NullElkProgressMonitor",1063),D(42,1,{20:1,42:1},Ws),l.Jc=function(e){Fa(this,e)},l.Fb=function(e){var n,r,s;return Lt(e,42)?(r=u(e,42),n=this.a==null?r.a==null:Ti(this.a,r.a),s=this.b==null?r.b==null:Ti(this.b,r.b),n&&s):!1},l.Hb=function(){var e,n,r,s,o,h;return r=this.a==null?0:$i(this.a),e=r&js,n=r&-65536,h=this.b==null?0:$i(this.b),s=h&js,o=h&-65536,e^o>>16&js|n^s<<16},l.Kc=function(){return new bGt(this)},l.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+rc(this.b)+")":this.b==null?"pair("+rc(this.a)+",null)":"pair("+rc(this.a)+","+rc(this.b)+")"},I(_c,"Pair",42),D(995,1,wa,bGt),l.Nb=function(e){Na(this,e)},l.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},l.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw at(new cc)},l.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),at(new Xu)},l.b=!1,l.c=!1,I(_c,"Pair/1",995),D(454,1,{454:1},sne),l.Fb=function(e){return Nc(this.a,u(e,454).a)&&Nc(this.c,u(e,454).c)&&Nc(this.d,u(e,454).d)&&Nc(this.b,u(e,454).b)},l.Hb=function(){return lO(lt(ut(aa,1),Ln,1,5,[this.a,this.c,this.d,this.b]))},l.Ib=function(){return"("+this.a+ao+this.c+ao+this.d+ao+this.b+")"},I(_c,"Quadruple",454),D(1108,205,mw,qtt),l.rf=function(e,n){var r,s,o,h,d;if(n.Ug("Random Layout",1),(!e.a&&(e.a=new Jt(bi,e,10,11)),e.a).i==0){n.Vg();return}h=u(ne(e,(Y5t(),z7e)),17),h&&h.a!=0?o=new pq(h.a):o=new Kat,r=MM(Ht(ne(e,j7e))),d=MM(Ht(ne(e,q7e))),s=u(ne(e,$7e),107),mCn(e,o,r,d,s),n.Vg()},I(_c,"RandomLayoutProvider",1108),D(240,1,{240:1},xit),l.Fb=function(e){return Nc(this.a,u(e,240).a)&&Nc(this.b,u(e,240).b)&&Nc(this.c,u(e,240).c)},l.Hb=function(){return lO(lt(ut(aa,1),Ln,1,5,[this.a,this.b,this.c]))},l.Ib=function(){return"("+this.a+ao+this.b+ao+this.c+")"},I(_c,"Triple",240);var Q7e;D(562,1,{}),l.Lf=function(){return new ae(this.f.i,this.f.j)},l.of=function(e){return One(e,(ai(),Pl))?ne(this.f,J7e):ne(this.f,e)},l.Mf=function(){return new ae(this.f.g,this.f.f)},l.Nf=function(){return this.g},l.pf=function(e){return ad(this.f,e)},l.Of=function(e){Su(this.f,e.a),_u(this.f,e.b)},l.Pf=function(e){qm(this.f,e.a),zm(this.f,e.b)},l.Qf=function(e){this.g=e},l.g=0;var J7e;I(sA,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),D(563,1,{853:1},r$),l.Rf=function(){var e,n;if(!this.b)for(this.b=hq(Kz(this.a).i),n=new Zn(Kz(this.a));n.e!=n.i.gc();)e=u(ar(n),135),ge(this.b,new Qnt(e));return this.b},l.b=null,I(sA,"ElkGraphAdapters/ElkEdgeAdapter",563),D(308,562,{},my),l.Sf=function(){return Che(this)},l.a=null,I(sA,"ElkGraphAdapters/ElkGraphAdapter",308),D(640,562,{187:1},Qnt),I(sA,"ElkGraphAdapters/ElkLabelAdapter",640),D(639,562,{695:1},sit),l.Rf=function(){return svn(this)},l.Vf=function(){var e;return e=u(ne(this.f,(ai(),UT)),140),!e&&(e=new HC),e},l.Xf=function(){return avn(this)},l.Zf=function(e){var n;n=new Eit(e),Mi(this.f,(ai(),UT),n)},l.$f=function(e){Mi(this.f,(ai(),Yp),new jvt(e))},l.Tf=function(){return this.d},l.Uf=function(){var e,n;if(!this.a)for(this.a=new fe,n=new rr(sr(jO(u(this.f,27)).a.Kc(),new z));Mr(n);)e=u(dr(n),74),ge(this.a,new r$(e));return this.a},l.Wf=function(){var e,n;if(!this.c)for(this.c=new fe,n=new rr(sr(Og(u(this.f,27)).a.Kc(),new z));Mr(n);)e=u(dr(n),74),ge(this.c,new r$(e));return this.c},l.Yf=function(){return Jz(u(this.f,27)).i!=0||Ie(Me(u(this.f,27).of((ai(),_P))))},l._f=function(){R0n(this,(xy(),Q7e))},l.a=null,l.b=null,l.c=null,l.d=null,l.e=null,I(sA,"ElkGraphAdapters/ElkNodeAdapter",639),D(1284,562,{852:1},wGt),l.Rf=function(){return gvn(this)},l.Uf=function(){var e,n;if(!this.a)for(this.a=C0(u(this.f,123).hh().i),n=new Zn(u(this.f,123).hh());n.e!=n.i.gc();)e=u(ar(n),74),ge(this.a,new r$(e));return this.a},l.Wf=function(){var e,n;if(!this.c)for(this.c=C0(u(this.f,123).ih().i),n=new Zn(u(this.f,123).ih());n.e!=n.i.gc();)e=u(ar(n),74),ge(this.c,new r$(e));return this.c},l.ag=function(){return u(u(this.f,123).of((ai(),hx)),64)},l.bg=function(){var e,n,r,s,o,h,d,m;for(s=ed(u(this.f,123)),r=new Zn(u(this.f,123).ih());r.e!=r.i.gc();)for(e=u(ar(r),74),m=new Zn((!e.c&&(e.c=new kn(vr,e,5,8)),e.c));m.e!=m.i.gc();){if(d=u(ar(m),84),qy(Jo(d),s))return!0;if(Jo(d)==s&&Ie(Me(ne(e,(ai(),Ndt)))))return!0}for(n=new Zn(u(this.f,123).hh());n.e!=n.i.gc();)for(e=u(ar(n),74),h=new Zn((!e.b&&(e.b=new kn(vr,e,4,7)),e.b));h.e!=h.i.gc();)if(o=u(ar(h),84),qy(Jo(o),s))return!0;return!1},l.a=null,l.b=null,l.c=null,I(sA,"ElkGraphAdapters/ElkPortAdapter",1284),D(1285,1,Xr,ztt),l.Ne=function(e,n){return G8n(u(e,123),u(n,123))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(sA,"ElkGraphAdapters/PortComparator",1285);var p2=os(qh,"EObject"),QT=os(D5,Bwe),vh=os(D5,Rwe),zP=os(D5,jwe),qP=os(D5,"ElkShape"),vr=os(D5,$we),Ts=os(D5,mTt),Wi=os(D5,zwe),HP=os(qh,qwe),EL=os(qh,"EFactory"),Z7e,Xdt=os(qh,Hwe),F1=os(qh,"EPackage"),da,tTe,eTe,CIt,$K,nTe,SIt,_It,AIt,X0,rTe,iTe,Po=os(D5,vTt),bi=os(D5,yTt),kl=os(D5,xTt);D(93,1,Vwe),l.th=function(){return this.uh(),null},l.uh=function(){return null},l.vh=function(){return this.uh(),!1},l.wh=function(){return!1},l.xh=function(e){Ei(this,e)},I(Pk,"BasicNotifierImpl",93),D(99,93,Wwe),l.Yh=function(){return Hl(this)},l.yh=function(e,n){return e},l.zh=function(){throw at(new Vr)},l.Ah=function(e){var n;return n=yo(u(En(this.Dh(),this.Fh()),19)),this.Ph().Th(this,n.n,n.f,e)},l.Bh=function(e,n){throw at(new Vr)},l.Ch=function(e,n,r){return hh(this,e,n,r)},l.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},l.Eh=function(){return Kot(this)},l.Fh=function(){throw at(new Vr)},l.Gh=function(){var e,n;return n=this.$h().Ok(),!n&&this.zh().Tk(n=(rS(),e=Jyt(Qd(this.Dh())),e==null?i0t:new sI(this,e))),n},l.Hh=function(e,n){return e},l.Ih=function(e){var n;return n=e.pk(),n?e.Lj():ns(this.Dh(),e)},l.Jh=function(){var e;return e=this.zh(),e?e.Qk():null},l.Kh=function(){return this.zh()?this.zh().Nk():null},l.Lh=function(e,n,r){return AH(this,e,n,r)},l.Mh=function(e){return UE(this,e)},l.Nh=function(e,n){return Ist(this,e,n)},l.Oh=function(){var e;return e=this.zh(),!!e&&e.Rk()},l.Ph=function(){throw at(new Vr)},l.Qh=function(){return xH(this)},l.Rh=function(e,n,r,s){return gk(this,e,n,s)},l.Sh=function(e,n,r){var s;return s=u(En(this.Dh(),n),69),s.wk().zk(this,this.hi(),n-this.ji(),e,r)},l.Th=function(e,n,r,s){return nq(this,e,n,s)},l.Uh=function(e,n,r){var s;return s=u(En(this.Dh(),n),69),s.wk().Ak(this,this.hi(),n-this.ji(),e,r)},l.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},l.Wh=function(e){return iot(this,e)},l.Xh=function(e){return Kne(this,e)},l.Zh=function(e){return bpe(this,e)},l.$h=function(){throw at(new Vr)},l._h=function(){return this.zh()?this.zh().Pk():null},l.ai=function(){return xH(this)},l.bi=function(e,n){qot(this,e,n)},l.ci=function(e){this.$h().Sk(e)},l.di=function(e){this.$h().Vk(e)},l.ei=function(e){this.$h().Uk(e)},l.fi=function(e,n){var r,s,o,h;return h=this.Jh(),h&&e&&(n=so(h.El(),this,n),h.Il(this)),s=this.Ph(),s&&(oct(this,this.Ph(),this.Fh()).Bb&po?(o=s.Qh(),o&&(e?!h&&o.Il(this):o.Hl(this))):(n=(r=this.Fh(),r>=0?this.Ah(n):this.Ph().Th(this,-1-r,null,n)),n=this.Ch(null,-1,n))),this.di(e),n},l.gi=function(e){var n,r,s,o,h,d,m,k;if(r=this.Dh(),h=ns(r,e),n=this.ji(),h>=n)return u(e,69).wk().Dk(this,this.hi(),h-n);if(h<=-1)if(d=y5((il(),ja),r,e),d){if(vo(),u(d,69).xk()||(d=tk($o(ja,d))),o=(s=this.Ih(d),u(s>=0?this.Lh(s,!0,!0):tv(this,d,!0),160)),k=d.Ik(),k>1||k==-1)return u(u(o,220).Sl(e,!1),79)}else throw at(new zn(Jb+e.xe()+qlt));else if(e.Jk())return s=this.Ih(e),u(s>=0?this.Lh(s,!1,!0):tv(this,e,!1),79);return m=new hQt(this,e),m},l.hi=function(){return r4t(this)},l.ii=function(){return(Lb(),Fn).S},l.ji=function(){return fr(this.ii())},l.ki=function(e){jot(this,e)},l.Ib=function(){return qf(this)},I(Rn,"BasicEObjectImpl",99);var sTe;D(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),l.li=function(e){var n;return n=n4t(this),n[e]},l.mi=function(e,n){var r;r=n4t(this),ls(r,e,n)},l.ni=function(e){var n;n=n4t(this),ls(n,e,null)},l.th=function(){return u(jn(this,4),129)},l.uh=function(){throw at(new Vr)},l.vh=function(){return(this.Db&4)!=0},l.zh=function(){throw at(new Vr)},l.oi=function(e){fk(this,2,e)},l.Bh=function(e,n){this.Db=n<<16|this.Db&255,this.oi(e)},l.Dh=function(){return $u(this)},l.Fh=function(){return this.Db>>16},l.Gh=function(){var e,n;return rS(),n=Jyt(Qd((e=u(jn(this,16),29),e||this.ii()))),n==null?i0t:new sI(this,n)},l.wh=function(){return(this.Db&1)==0},l.Jh=function(){return u(jn(this,128),2034)},l.Kh=function(){return u(jn(this,16),29)},l.Oh=function(){return(this.Db&32)!=0},l.Ph=function(){return u(jn(this,2),54)},l.Vh=function(){return(this.Db&64)!=0},l.$h=function(){throw at(new Vr)},l._h=function(){return u(jn(this,64),288)},l.ci=function(e){fk(this,16,e)},l.di=function(e){fk(this,128,e)},l.ei=function(e){fk(this,64,e)},l.hi=function(){return Au(this)},l.Db=0,I(Rn,"MinimalEObjectImpl",119),D(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),l.oi=function(e){this.Cb=e},l.Ph=function(){return this.Cb},I(Rn,"MinimalEObjectImpl/Container",120),D(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),l.Lh=function(e,n,r){return mxt(this,e,n,r)},l.Uh=function(e,n,r){return o6t(this,e,n,r)},l.Wh=function(e){return f3t(this,e)},l.bi=function(e,n){r5t(this,e,n)},l.ii=function(){return zc(),iTe},l.ki=function(e){G4t(this,e)},l.nf=function(){return Ule(this)},l.gh=function(){return!this.o&&(this.o=new nl((zc(),X0),Qp,this,0)),this.o},l.of=function(e){return ne(this,e)},l.pf=function(e){return ad(this,e)},l.qf=function(e,n){return Mi(this,e,n)},I(kw,"EMapPropertyHolderImpl",2083),D(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},fC),l.Lh=function(e,n,r){switch(e){case 0:return this.a;case 1:return this.b}return AH(this,e,n,r)},l.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return iot(this,e)},l.bi=function(e,n){switch(e){case 0:Rq(this,Rt(Ht(n)));return;case 1:Bq(this,Rt(Ht(n)));return}qot(this,e,n)},l.ii=function(){return zc(),tTe},l.ki=function(e){switch(e){case 0:Rq(this,0);return;case 1:Bq(this,0);return}jot(this,e)},l.Ib=function(){var e;return this.Db&64?qf(this):(e=new ef(qf(this)),e.a+=" (x: ",O4(e,this.a),e.a+=", y: ",O4(e,this.b),e.a+=")",e.a)},l.a=0,l.b=0,I(kw,"ElkBendPointImpl",572),D(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),l.Lh=function(e,n,r){return S5t(this,e,n,r)},l.Sh=function(e,n,r){return Iot(this,e,n,r)},l.Uh=function(e,n,r){return pat(this,e,n,r)},l.Wh=function(e){return $4t(this,e)},l.bi=function(e,n){Bxt(this,e,n)},l.ii=function(){return zc(),nTe},l.ki=function(e){w5t(this,e)},l.jh=function(){return this.k},l.kh=function(){return Kz(this)},l.Ib=function(){return zat(this)},l.k=null,I(kw,"ElkGraphElementImpl",739),D(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),l.Lh=function(e,n,r){return N5t(this,e,n,r)},l.Wh=function(e){return $5t(this,e)},l.bi=function(e,n){Rxt(this,e,n)},l.ii=function(){return zc(),rTe},l.ki=function(e){K5t(this,e)},l.lh=function(){return this.f},l.mh=function(){return this.g},l.nh=function(){return this.i},l.oh=function(){return this.j},l.ph=function(e,n){H4(this,e,n)},l.qh=function(e,n){Ch(this,e,n)},l.rh=function(e){Su(this,e)},l.sh=function(e){_u(this,e)},l.Ib=function(){return Bot(this)},l.f=0,l.g=0,l.i=0,l.j=0,I(kw,"ElkShapeImpl",740),D(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),l.Lh=function(e,n,r){return hxt(this,e,n,r)},l.Sh=function(e,n,r){return Mxt(this,e,n,r)},l.Uh=function(e,n,r){return Ixt(this,e,n,r)},l.Wh=function(e){return n5t(this,e)},l.bi=function(e,n){V6t(this,e,n)},l.ii=function(){return zc(),eTe},l.ki=function(e){axt(this,e)},l.hh=function(){return!this.d&&(this.d=new kn(Ts,this,8,5)),this.d},l.ih=function(){return!this.e&&(this.e=new kn(Ts,this,7,4)),this.e},I(kw,"ElkConnectableShapeImpl",741),D(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},sM),l.Ah=function(e){return _xt(this,e)},l.Lh=function(e,n,r){switch(e){case 3:return AI(this);case 4:return!this.b&&(this.b=new kn(vr,this,4,7)),this.b;case 5:return!this.c&&(this.c=new kn(vr,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Jt(Wi,this,6,6)),this.a;case 7:return Pn(),!this.b&&(this.b=new kn(vr,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new kn(vr,this,5,8)),this.c.i<=1));case 8:return Pn(),!!S_(this);case 9:return Pn(),!!Zm(this);case 10:return Pn(),!this.b&&(this.b=new kn(vr,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new kn(vr,this,5,8)),this.c.i!=0)}return S5t(this,e,n,r)},l.Sh=function(e,n,r){var s;switch(n){case 3:return this.Cb&&(r=(s=this.Db>>16,s>=0?_xt(this,r):this.Cb.Th(this,-1-s,null,r))),cvt(this,u(e,27),r);case 4:return!this.b&&(this.b=new kn(vr,this,4,7)),vu(this.b,e,r);case 5:return!this.c&&(this.c=new kn(vr,this,5,8)),vu(this.c,e,r);case 6:return!this.a&&(this.a=new Jt(Wi,this,6,6)),vu(this.a,e,r)}return Iot(this,e,n,r)},l.Uh=function(e,n,r){switch(n){case 3:return cvt(this,null,r);case 4:return!this.b&&(this.b=new kn(vr,this,4,7)),so(this.b,e,r);case 5:return!this.c&&(this.c=new kn(vr,this,5,8)),so(this.c,e,r);case 6:return!this.a&&(this.a=new Jt(Wi,this,6,6)),so(this.a,e,r)}return pat(this,e,n,r)},l.Wh=function(e){switch(e){case 3:return!!AI(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new kn(vr,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new kn(vr,this,5,8)),this.c.i<=1));case 8:return S_(this);case 9:return Zm(this);case 10:return!this.b&&(this.b=new kn(vr,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new kn(vr,this,5,8)),this.c.i!=0)}return $4t(this,e)},l.bi=function(e,n){switch(e){case 3:ZH(this,u(n,27));return;case 4:!this.b&&(this.b=new kn(vr,this,4,7)),Ir(this.b),!this.b&&(this.b=new kn(vr,this,4,7)),gs(this.b,u(n,16));return;case 5:!this.c&&(this.c=new kn(vr,this,5,8)),Ir(this.c),!this.c&&(this.c=new kn(vr,this,5,8)),gs(this.c,u(n,16));return;case 6:!this.a&&(this.a=new Jt(Wi,this,6,6)),Ir(this.a),!this.a&&(this.a=new Jt(Wi,this,6,6)),gs(this.a,u(n,16));return}Bxt(this,e,n)},l.ii=function(){return zc(),CIt},l.ki=function(e){switch(e){case 3:ZH(this,null);return;case 4:!this.b&&(this.b=new kn(vr,this,4,7)),Ir(this.b);return;case 5:!this.c&&(this.c=new kn(vr,this,5,8)),Ir(this.c);return;case 6:!this.a&&(this.a=new Jt(Wi,this,6,6)),Ir(this.a);return}w5t(this,e)},l.Ib=function(){return Nge(this)},I(kw,"ElkEdgeImpl",326),D(451,2083,{110:1,342:1,166:1,451:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},K8),l.Ah=function(e){return Ext(this,e)},l.Lh=function(e,n,r){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Ps(vh,this,5)),this.a;case 6:return Hne(this);case 7:return n?uot(this):this.i;case 8:return n?cot(this):this.f;case 9:return!this.g&&(this.g=new kn(Wi,this,9,10)),this.g;case 10:return!this.e&&(this.e=new kn(Wi,this,10,9)),this.e;case 11:return this.d}return mxt(this,e,n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 6:return this.Cb&&(r=(o=this.Db>>16,o>=0?Ext(this,r):this.Cb.Th(this,-1-o,null,r))),ovt(this,u(e,74),r);case 9:return!this.g&&(this.g=new kn(Wi,this,9,10)),vu(this.g,e,r);case 10:return!this.e&&(this.e=new kn(Wi,this,10,9)),vu(this.e,e,r)}return h=u(En((s=u(jn(this,16),29),s||(zc(),$K)),n),69),h.wk().zk(this,Au(this),n-fr((zc(),$K)),e,r)},l.Uh=function(e,n,r){switch(n){case 5:return!this.a&&(this.a=new Ps(vh,this,5)),so(this.a,e,r);case 6:return ovt(this,null,r);case 9:return!this.g&&(this.g=new kn(Wi,this,9,10)),so(this.g,e,r);case 10:return!this.e&&(this.e=new kn(Wi,this,10,9)),so(this.e,e,r)}return o6t(this,e,n,r)},l.Wh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!Hne(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return f3t(this,e)},l.bi=function(e,n){switch(e){case 1:QE(this,Rt(Ht(n)));return;case 2:ZE(this,Rt(Ht(n)));return;case 3:XE(this,Rt(Ht(n)));return;case 4:JE(this,Rt(Ht(n)));return;case 5:!this.a&&(this.a=new Ps(vh,this,5)),Ir(this.a),!this.a&&(this.a=new Ps(vh,this,5)),gs(this.a,u(n,16));return;case 6:Ode(this,u(n,74));return;case 7:Uq(this,u(n,84));return;case 8:Vq(this,u(n,84));return;case 9:!this.g&&(this.g=new kn(Wi,this,9,10)),Ir(this.g),!this.g&&(this.g=new kn(Wi,this,9,10)),gs(this.g,u(n,16));return;case 10:!this.e&&(this.e=new kn(Wi,this,10,9)),Ir(this.e),!this.e&&(this.e=new kn(Wi,this,10,9)),gs(this.e,u(n,16));return;case 11:A4t(this,Gr(n));return}r5t(this,e,n)},l.ii=function(){return zc(),$K},l.ki=function(e){switch(e){case 1:QE(this,0);return;case 2:ZE(this,0);return;case 3:XE(this,0);return;case 4:JE(this,0);return;case 5:!this.a&&(this.a=new Ps(vh,this,5)),Ir(this.a);return;case 6:Ode(this,null);return;case 7:Uq(this,null);return;case 8:Vq(this,null);return;case 9:!this.g&&(this.g=new kn(Wi,this,9,10)),Ir(this.g);return;case 10:!this.e&&(this.e=new kn(Wi,this,10,9)),Ir(this.e);return;case 11:A4t(this,null);return}G4t(this,e)},l.Ib=function(){return K1e(this)},l.b=0,l.c=0,l.d=null,l.j=0,l.k=0,I(kw,"ElkEdgeSectionImpl",451),D(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),l.Lh=function(e,n,r){var s;return e==0?(!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab):Ih(this,e-fr(this.ii()),En((s=u(jn(this,16),29),s||this.ii()),e),n,r)},l.Sh=function(e,n,r){var s,o;return n==0?(!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r)):(o=u(En((s=u(jn(this,16),29),s||this.ii()),n),69),o.wk().zk(this,Au(this),n-fr(this.ii()),e,r))},l.Uh=function(e,n,r){var s,o;return n==0?(!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r)):(o=u(En((s=u(jn(this,16),29),s||this.ii()),n),69),o.wk().Ak(this,Au(this),n-fr(this.ii()),e,r))},l.Wh=function(e){var n;return e==0?!!this.Ab&&this.Ab.i!=0:Dh(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.Zh=function(e){return e8t(this,e)},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return}Fh(this,e-fr(this.ii()),En((r=u(jn(this,16),29),r||this.ii()),e),n)},l.di=function(e){fk(this,128,e)},l.ii=function(){return wn(),ETe},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return}Ph(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.pi=function(){this.Bb|=1},l.qi=function(e){return O_(this,e)},l.Bb=0,I(Rn,"EModelElementImpl",158),D(720,158,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Fj),l.ri=function(e,n){return upe(this,e,n)},l.si=function(e){var n,r,s,o,h;if(this.a!=sh(e)||e.Bb&256)throw at(new zn(Vlt+e.zb+fv));for(s=Yo(e);Wc(s.a).i!=0;){if(r=u(QO(s,0,(n=u(Dt(Wc(s.a),0),89),h=n.c,Lt(h,90)?u(h,29):(wn(),xf))),29),Jm(r))return o=sh(r).wi().si(r),u(o,54).ci(e),o;s=Yo(r)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new Cte(e):new Xvt(e)},l.ti=function(e,n){return iv(this,e,n)},l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.a}return Ih(this,e-fr((wn(),v2)),En((s=u(jn(this,16),29),s||v2),e),n,r)},l.Sh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 1:return this.a&&(r=u(this.a,54).Th(this,4,F1,r)),b5t(this,u(e,241),r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),v2)),n),69),o.wk().zk(this,Au(this),n-fr((wn(),v2)),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 1:return b5t(this,null,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),v2)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),v2)),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Dh(this,e-fr((wn(),v2)),En((n=u(jn(this,16),29),n||v2),e))},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:Lfe(this,u(n,241));return}Fh(this,e-fr((wn(),v2)),En((r=u(jn(this,16),29),r||v2),e),n)},l.ii=function(){return wn(),v2},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:Lfe(this,null);return}Ph(this,e-fr((wn(),v2)),En((n=u(jn(this,16),29),n||v2),e))};var TL,LIt,aTe;I(Rn,"EFactoryImpl",720),D(1037,720,{110:1,2113:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},W8),l.ri=function(e,n){switch(e.hk()){case 12:return u(n,149).Pg();case 13:return rc(n);default:throw at(new zn(lT+e.xe()+fv))}},l.si=function(e){var n,r,s,o,h,d,m,k;switch(e.G==-1&&(e.G=(n=sh(e),n?Np(n.vi(),e):-1)),e.G){case 4:return h=new Y8,h;case 6:return d=new VC,d;case 7:return m=new J2t,m;case 8:return s=new sM,s;case 9:return r=new fC,r;case 10:return o=new K8,o;case 11:return k=new GR,k;default:throw at(new zn(Vlt+e.zb+fv))}},l.ti=function(e,n){switch(e.hk()){case 13:case 12:return null;default:throw at(new zn(lT+e.xe()+fv))}},I(kw,"ElkGraphFactoryImpl",1037),D(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),l.Gh=function(){var e,n;return n=(e=u(jn(this,16),29),Jyt(Qd(e||this.ii()))),n==null?(rS(),rS(),i0t):new WJt(this,n)},l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.xe()}return Ih(this,e-fr(this.ii()),En((s=u(jn(this,16),29),s||this.ii()),e),n,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Dh(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:this.ui(Gr(n));return}Fh(this,e-fr(this.ii()),En((r=u(jn(this,16),29),r||this.ii()),e),n)},l.ii=function(){return wn(),TTe},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:this.ui(null);return}Ph(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.xe=function(){return this.zb},l.ui=function(e){mu(this,e)},l.Ib=function(){return u_(this)},l.zb=null,I(Rn,"ENamedElementImpl",448),D(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},xne),l.Ah=function(e){return $he(this,e)},l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Iy(this,B1,this)),this.rb;case 6:return!this.vb&&(this.vb=new z6(F1,this,6,7)),this.vb;case 7:return n?this.Db>>16==7?u(this.Cb,241):null:Xne(this)}return Ih(this,e-fr((wn(),eb)),En((s=u(jn(this,16),29),s||eb),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 4:return this.sb&&(r=u(this.sb,54).Th(this,1,EL,r)),v5t(this,u(e,479),r);case 5:return!this.rb&&(this.rb=new Iy(this,B1,this)),vu(this.rb,e,r);case 6:return!this.vb&&(this.vb=new z6(F1,this,6,7)),vu(this.vb,e,r);case 7:return this.Cb&&(r=(o=this.Db>>16,o>=0?$he(this,r):this.Cb.Th(this,-1-o,null,r))),hh(this,e,7,r)}return h=u(En((s=u(jn(this,16),29),s||(wn(),eb)),n),69),h.wk().zk(this,Au(this),n-fr((wn(),eb)),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 4:return v5t(this,null,r);case 5:return!this.rb&&(this.rb=new Iy(this,B1,this)),so(this.rb,e,r);case 6:return!this.vb&&(this.vb=new z6(F1,this,6,7)),so(this.vb,e,r);case 7:return hh(this,null,7,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),eb)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),eb)),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!Xne(this)}return Dh(this,e-fr((wn(),eb)),En((n=u(jn(this,16),29),n||eb),e))},l.Zh=function(e){var n;return n=okn(this,e),n||e8t(this,e)},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:mu(this,Gr(n));return;case 2:Qq(this,Gr(n));return;case 3:Xq(this,Gr(n));return;case 4:Fot(this,u(n,479));return;case 5:!this.rb&&(this.rb=new Iy(this,B1,this)),Ir(this.rb),!this.rb&&(this.rb=new Iy(this,B1,this)),gs(this.rb,u(n,16));return;case 6:!this.vb&&(this.vb=new z6(F1,this,6,7)),Ir(this.vb),!this.vb&&(this.vb=new z6(F1,this,6,7)),gs(this.vb,u(n,16));return}Fh(this,e-fr((wn(),eb)),En((r=u(jn(this,16),29),r||eb),e),n)},l.ei=function(e){var n,r;if(e&&this.rb)for(r=new Zn(this.rb);r.e!=r.i.gc();)n=ar(r),Lt(n,364)&&(u(n,364).w=null);fk(this,64,e)},l.ii=function(){return wn(),eb},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:mu(this,null);return;case 2:Qq(this,null);return;case 3:Xq(this,null);return;case 4:Fot(this,null);return;case 5:!this.rb&&(this.rb=new Iy(this,B1,this)),Ir(this.rb);return;case 6:!this.vb&&(this.vb=new z6(F1,this,6,7)),Ir(this.vb);return}Ph(this,e-fr((wn(),eb)),En((n=u(jn(this,16),29),n||eb),e))},l.pi=function(){kot(this)},l.vi=function(){return!this.rb&&(this.rb=new Iy(this,B1,this)),this.rb},l.wi=function(){return this.sb},l.xi=function(){return this.ub},l.yi=function(){return this.xb},l.zi=function(){return this.yb},l.Ai=function(e){this.ub=e},l.Ib=function(){var e;return this.Db&64?u_(this):(e=new ef(u_(this)),e.a+=" (nsURI: ",Mo(e,this.yb),e.a+=", nsPrefix: ",Mo(e,this.xb),e.a+=")",e.a)},l.xb=null,l.yb=null,I(Rn,"EPackageImpl",184),D(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},nde),l.q=!1,l.r=!1;var oTe=!1;I(kw,"ElkGraphPackageImpl",569),D(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Y8),l.Ah=function(e){return Txt(this,e)},l.Lh=function(e,n,r){switch(e){case 7:return Qne(this);case 8:return this.a}return N5t(this,e,n,r)},l.Sh=function(e,n,r){var s;switch(n){case 7:return this.Cb&&(r=(s=this.Db>>16,s>=0?Txt(this,r):this.Cb.Th(this,-1-s,null,r))),hyt(this,u(e,167),r)}return Iot(this,e,n,r)},l.Uh=function(e,n,r){return n==7?hyt(this,null,r):pat(this,e,n,r)},l.Wh=function(e){switch(e){case 7:return!!Qne(this);case 8:return!hn("",this.a)}return $5t(this,e)},l.bi=function(e,n){switch(e){case 7:rkt(this,u(n,167));return;case 8:E4t(this,Gr(n));return}Rxt(this,e,n)},l.ii=function(){return zc(),SIt},l.ki=function(e){switch(e){case 7:rkt(this,null);return;case 8:E4t(this,"");return}K5t(this,e)},l.Ib=function(){return Hfe(this)},l.a="",I(kw,"ElkLabelImpl",366),D(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},VC),l.Ah=function(e){return Axt(this,e)},l.Lh=function(e,n,r){switch(e){case 9:return!this.c&&(this.c=new Jt(kl,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Jt(bi,this,10,11)),this.a;case 11:return Ji(this);case 12:return!this.b&&(this.b=new Jt(Ts,this,12,3)),this.b;case 13:return Pn(),!this.a&&(this.a=new Jt(bi,this,10,11)),this.a.i>0}return hxt(this,e,n,r)},l.Sh=function(e,n,r){var s;switch(n){case 9:return!this.c&&(this.c=new Jt(kl,this,9,9)),vu(this.c,e,r);case 10:return!this.a&&(this.a=new Jt(bi,this,10,11)),vu(this.a,e,r);case 11:return this.Cb&&(r=(s=this.Db>>16,s>=0?Axt(this,r):this.Cb.Th(this,-1-s,null,r))),mvt(this,u(e,27),r);case 12:return!this.b&&(this.b=new Jt(Ts,this,12,3)),vu(this.b,e,r)}return Mxt(this,e,n,r)},l.Uh=function(e,n,r){switch(n){case 9:return!this.c&&(this.c=new Jt(kl,this,9,9)),so(this.c,e,r);case 10:return!this.a&&(this.a=new Jt(bi,this,10,11)),so(this.a,e,r);case 11:return mvt(this,null,r);case 12:return!this.b&&(this.b=new Jt(Ts,this,12,3)),so(this.b,e,r)}return Ixt(this,e,n,r)},l.Wh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Ji(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Jt(bi,this,10,11)),this.a.i>0}return n5t(this,e)},l.bi=function(e,n){switch(e){case 9:!this.c&&(this.c=new Jt(kl,this,9,9)),Ir(this.c),!this.c&&(this.c=new Jt(kl,this,9,9)),gs(this.c,u(n,16));return;case 10:!this.a&&(this.a=new Jt(bi,this,10,11)),Ir(this.a),!this.a&&(this.a=new Jt(bi,this,10,11)),gs(this.a,u(n,16));return;case 11:tV(this,u(n,27));return;case 12:!this.b&&(this.b=new Jt(Ts,this,12,3)),Ir(this.b),!this.b&&(this.b=new Jt(Ts,this,12,3)),gs(this.b,u(n,16));return}V6t(this,e,n)},l.ii=function(){return zc(),_It},l.ki=function(e){switch(e){case 9:!this.c&&(this.c=new Jt(kl,this,9,9)),Ir(this.c);return;case 10:!this.a&&(this.a=new Jt(bi,this,10,11)),Ir(this.a);return;case 11:tV(this,null);return;case 12:!this.b&&(this.b=new Jt(Ts,this,12,3)),Ir(this.b);return}axt(this,e)},l.Ib=function(){return vkt(this)},I(kw,"ElkNodeImpl",207),D(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},J2t),l.Ah=function(e){return Cxt(this,e)},l.Lh=function(e,n,r){return e==9?ed(this):hxt(this,e,n,r)},l.Sh=function(e,n,r){var s;switch(n){case 9:return this.Cb&&(r=(s=this.Db>>16,s>=0?Cxt(this,r):this.Cb.Th(this,-1-s,null,r))),uvt(this,u(e,27),r)}return Mxt(this,e,n,r)},l.Uh=function(e,n,r){return n==9?uvt(this,null,r):Ixt(this,e,n,r)},l.Wh=function(e){return e==9?!!ed(this):n5t(this,e)},l.bi=function(e,n){switch(e){case 9:Z6t(this,u(n,27));return}V6t(this,e,n)},l.ii=function(){return zc(),AIt},l.ki=function(e){switch(e){case 9:Z6t(this,null);return}axt(this,e)},l.Ib=function(){return I0e(this)},I(kw,"ElkPortImpl",193);var cTe=os(oo,"BasicEMap/Entry");D(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},GR),l.Fb=function(e){return this===e},l.ld=function(){return this.b},l.Hb=function(){return Em(this)},l.Di=function(e){T4t(this,u(e,149))},l.Lh=function(e,n,r){switch(e){case 0:return this.b;case 1:return this.c}return AH(this,e,n,r)},l.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return iot(this,e)},l.bi=function(e,n){switch(e){case 0:T4t(this,u(n,149));return;case 1:k4t(this,n);return}qot(this,e,n)},l.ii=function(){return zc(),X0},l.ki=function(e){switch(e){case 0:T4t(this,null);return;case 1:k4t(this,null);return}jot(this,e)},l.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?$i(e):0),this.a},l.md=function(){return this.c},l.Ci=function(e){this.a=e},l.nd=function(e){var n;return n=this.c,k4t(this,e),n},l.Ib=function(){var e;return this.Db&64?qf(this):(e=new yb,ni(ni(ni(e,this.b?this.b.Pg():Vu),But),ES(this.c)),e.a)},l.a=-1,l.c=null;var Qp=I(kw,"ElkPropertyToValueMapEntryImpl",1122);D(996,1,{},WR),I(Ba,"JsonAdapter",996),D(216,63,Pg,Rd),I(Ba,"JsonImportException",216),D(868,1,{},zhe),I(Ba,"JsonImporter",868),D(903,1,{},WXt),I(Ba,"JsonImporter/lambda$0$Type",903),D(904,1,{},YXt),I(Ba,"JsonImporter/lambda$1$Type",904),D(912,1,{},mGt),I(Ba,"JsonImporter/lambda$10$Type",912),D(914,1,{},XXt),I(Ba,"JsonImporter/lambda$11$Type",914),D(915,1,{},QXt),I(Ba,"JsonImporter/lambda$12$Type",915),D(921,1,{},une),I(Ba,"JsonImporter/lambda$13$Type",921),D(920,1,{},lne),I(Ba,"JsonImporter/lambda$14$Type",920),D(916,1,{},JXt),I(Ba,"JsonImporter/lambda$15$Type",916),D(917,1,{},ZXt),I(Ba,"JsonImporter/lambda$16$Type",917),D(918,1,{},tQt),I(Ba,"JsonImporter/lambda$17$Type",918),D(919,1,{},eQt),I(Ba,"JsonImporter/lambda$18$Type",919),D(924,1,{},vGt),I(Ba,"JsonImporter/lambda$19$Type",924),D(905,1,{},yGt),I(Ba,"JsonImporter/lambda$2$Type",905),D(922,1,{},xGt),I(Ba,"JsonImporter/lambda$20$Type",922),D(923,1,{},kGt),I(Ba,"JsonImporter/lambda$21$Type",923),D(927,1,{},EGt),I(Ba,"JsonImporter/lambda$22$Type",927),D(925,1,{},TGt),I(Ba,"JsonImporter/lambda$23$Type",925),D(926,1,{},CGt),I(Ba,"JsonImporter/lambda$24$Type",926),D(929,1,{},SGt),I(Ba,"JsonImporter/lambda$25$Type",929),D(928,1,{},_Gt),I(Ba,"JsonImporter/lambda$26$Type",928),D(930,1,ir,nQt),l.Cd=function(e){x0n(this.b,this.a,Gr(e))},I(Ba,"JsonImporter/lambda$27$Type",930),D(931,1,ir,rQt),l.Cd=function(e){k0n(this.b,this.a,Gr(e))},I(Ba,"JsonImporter/lambda$28$Type",931),D(932,1,{},iQt),I(Ba,"JsonImporter/lambda$29$Type",932),D(908,1,{},AGt),I(Ba,"JsonImporter/lambda$3$Type",908),D(933,1,{},sQt),I(Ba,"JsonImporter/lambda$30$Type",933),D(934,1,{},LGt),I(Ba,"JsonImporter/lambda$31$Type",934),D(935,1,{},DGt),I(Ba,"JsonImporter/lambda$32$Type",935),D(936,1,{},MGt),I(Ba,"JsonImporter/lambda$33$Type",936),D(937,1,{},IGt),I(Ba,"JsonImporter/lambda$34$Type",937),D(870,1,{},OGt),I(Ba,"JsonImporter/lambda$35$Type",870),D(941,1,{},ZZt),I(Ba,"JsonImporter/lambda$36$Type",941),D(938,1,ir,NGt),l.Cd=function(e){_dn(this.a,u(e,377))},I(Ba,"JsonImporter/lambda$37$Type",938),D(939,1,ir,aQt),l.Cd=function(e){cin(this.a,this.b,u(e,166))},I(Ba,"JsonImporter/lambda$38$Type",939),D(940,1,ir,oQt),l.Cd=function(e){uin(this.a,this.b,u(e,166))},I(Ba,"JsonImporter/lambda$39$Type",940),D(906,1,{},PGt),I(Ba,"JsonImporter/lambda$4$Type",906),D(942,1,ir,FGt),l.Cd=function(e){Adn(this.a,u(e,8))},I(Ba,"JsonImporter/lambda$40$Type",942),D(907,1,{},BGt),I(Ba,"JsonImporter/lambda$5$Type",907),D(911,1,{},RGt),I(Ba,"JsonImporter/lambda$6$Type",911),D(909,1,{},jGt),I(Ba,"JsonImporter/lambda$7$Type",909),D(910,1,{},$Gt),I(Ba,"JsonImporter/lambda$8$Type",910),D(913,1,{},zGt),I(Ba,"JsonImporter/lambda$9$Type",913),D(961,1,ir,qGt),l.Cd=function(e){Y6(this.a,new Oy(Gr(e)))},I(Ba,"JsonMetaDataConverter/lambda$0$Type",961),D(962,1,ir,HGt),l.Cd=function(e){vln(this.a,u(e,245))},I(Ba,"JsonMetaDataConverter/lambda$1$Type",962),D(963,1,ir,VGt),l.Cd=function(e){mfn(this.a,u(e,143))},I(Ba,"JsonMetaDataConverter/lambda$2$Type",963),D(964,1,ir,UGt),l.Cd=function(e){yln(this.a,u(e,170))},I(Ba,"JsonMetaDataConverter/lambda$3$Type",964),D(245,22,{3:1,34:1,22:1,245:1},P6);var zK,qK,Qdt,HK,VK,UK,Jdt,Zdt,GK=Lr(fN,"GraphFeature",245,Pr,rgn,Gcn),uTe;D(11,1,{34:1,149:1},Oi,rs,un,_a),l.Fd=function(e){return gsn(this,u(e,149))},l.Fb=function(e){return One(this,e)},l.Sg=function(){return Se(this)},l.Pg=function(){return this.b},l.Hb=function(){return _p(this.b)},l.Ib=function(){return this.b},I(fN,"Property",11),D(671,1,Xr,Fnt),l.Ne=function(e,n){return T2n(this,u(e,96),u(n,96))},l.Fb=function(e){return this===e},l.Oe=function(){return new Be(this)},I(fN,"PropertyHolderComparator",671),D(709,1,wa,O2t),l.Nb=function(e){Na(this,e)},l.Pb=function(){return C0n(this)},l.Qb=function(){zWt()},l.Ob=function(){return!!this.a},I(dU,"ElkGraphUtil/AncestorIterator",709);var DIt=os(oo,"EList");D(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),l.bd=function(e,n){h_(this,e,n)},l.Fc=function(e){return Or(this,e)},l.cd=function(e,n){return K4t(this,e,n)},l.Gc=function(e){return gs(this,e)},l.Ii=function(){return new $6(this)},l.Ji=function(){return new aI(this)},l.Ki=function(e){return QI(this,e)},l.Li=function(){return!0},l.Mi=function(e,n){},l.Ni=function(){},l.Oi=function(e,n){Fst(this,e,n)},l.Pi=function(e,n,r){},l.Qi=function(e,n){},l.Ri=function(e,n,r){},l.Fb=function(e){return b0e(this,e)},l.Hb=function(){return H4t(this)},l.Si=function(){return!1},l.Kc=function(){return new Zn(this)},l.ed=function(){return new j6(this)},l.fd=function(e){var n;if(n=this.gc(),e<0||e>n)throw at(new Dy(e,n));return new zit(this,e)},l.Ui=function(e,n){this.Ti(e,this.dd(n))},l.Mc=function(e){return Dq(this,e)},l.Wi=function(e,n){return n},l.hd=function(e,n){return c5(this,e,n)},l.Ib=function(){return B5t(this)},l.Yi=function(){return!0},l.Zi=function(e,n){return d7(this,n)},I(oo,"AbstractEList",70),D(66,70,o0,pb,$m,B4t),l.Ei=function(e,n){return Oot(this,e,n)},l.Fi=function(e){return fhe(this,e)},l.Gi=function(e,n){fO(this,e,n)},l.Hi=function(e){PI(this,e)},l.$i=function(e){return Q3t(this,e)},l.$b=function(){KS(this)},l.Hc=function(e){return L7(this,e)},l.Xb=function(e){return Dt(this,e)},l._i=function(e){var n,r,s;++this.j,r=this.g==null?0:this.g.length,e>r&&(s=this.g,n=r+(r/2|0)+4,n<e&&(n=e),this.g=this.aj(n),s!=null&&Xc(s,0,this.g,0,this.i))},l.dd=function(e){return Nhe(this,e)},l.dc=function(){return this.i==0},l.Ti=function(e,n){return Uot(this,e,n)},l.aj=function(e){return Vt(aa,Ln,1,e,5,1)},l.Vi=function(e){return this.g[e]},l.gd=function(e){return pk(this,e)},l.Xi=function(e,n){return Kst(this,e,n)},l.gc=function(){return this.i},l.Pc=function(){return v3t(this)},l.Qc=function(e){return G5t(this,e)},l.i=0;var MIt=I(oo,"BasicEList",66),IIt=os(oo,"TreeIterator");D(708,66,eht),l.Nb=function(e){Na(this,e)},l.Ob=function(){return this.g==null&&!this.c?n3t(this):this.g==null||this.i!=0&&u(this.g[this.i-1],51).Ob()},l.Pb=function(){return XH(this)},l.Qb=function(){if(!this.e)throw at(new Ro("There is no valid object to remove."));this.e.Qb()},l.c=!1,I(oo,"AbstractTreeIterator",708),D(700,708,eht,Tmt),l.bj=function(e){var n;return n=u(e,58).Gh().Kc(),Lt(n,287)&&u(n,287).wl(new Xtt),n},I(dU,"ElkGraphUtil/PropertiesSkippingTreeIterator",700),D(965,1,{},Xtt),I(dU,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",965);var VP,t0t,UP=I(dU,"ElkReflect",null);D(901,1,p3,dC),l.Rg=function(e){return oq(),yfn(u(e,181))},I(dU,"ElkReflect/lambda$0$Type",901);var b2;os(oo,"ResourceLocator"),D(1065,1,{}),I(oo,"DelegatingResourceLocator",1065),D(1066,1065,{}),I("org.eclipse.emf.common","EMFPlugin",1066);var e0t=os(Mme,"Adapter"),x_n=os(Mme,"Notification");D(1174,1,RTt),l.cj=function(){return this.d},l.dj=function(e){},l.ej=function(e){this.d=e},l.fj=function(e){this.d==e&&(this.d=null)},l.d=null,I(Pk,"AdapterImpl",1174),D(2093,70,Ime),l.Ei=function(e,n){return z5t(this,e,n)},l.Fi=function(e){var n,r,s;if(++this.j,e.dc())return!1;for(n=this.Ej(),s=e.Kc();s.Ob();)r=s.Pb(),this.rj(this.Zi(n,r)),++n;return!0},l.Gi=function(e,n){uZt(this,e,n)},l.Hi=function(e){Nee(this,e)},l.pj=function(){return this.sj()},l.$b=function(){uI(this,this.Ej(),this.Fj())},l.Hc=function(e){return this.uj(e)},l.Ic=function(e){return this.vj(e)},l.qj=function(e,n){this.Bj().Um()},l.rj=function(e){this.Bj().Um()},l.sj=function(){return this.Bj()},l.tj=function(){this.Bj().Um()},l.uj=function(e){return this.Bj().Um()},l.vj=function(e){return this.Bj().Um()},l.wj=function(e){return this.Bj().Um()},l.xj=function(e){return this.Bj().Um()},l.yj=function(){return this.Bj().Um()},l.zj=function(e){return this.Bj().Um()},l.Aj=function(){return this.Bj().Um()},l.Cj=function(e){return this.Bj().Um()},l.Dj=function(e,n){return this.Bj().Um()},l.Ej=function(){return this.Bj().Um()},l.Fj=function(){return this.Bj().Um()},l.Gj=function(e){return this.Bj().Um()},l.Hj=function(){return this.Bj().Um()},l.Fb=function(e){return this.wj(e)},l.Xb=function(e){return this.Wi(e,this.xj(e))},l.Hb=function(){return this.yj()},l.dd=function(e){return this.zj(e)},l.dc=function(){return this.Aj()},l.Ti=function(e,n){return i6t(this,e,n)},l.Vi=function(e){return this.xj(e)},l.gd=function(e){return _z(this,e)},l.Mc=function(e){var n;return n=this.dd(e),n>=0?(this.gd(n),!0):!1},l.Xi=function(e,n){return this.Dj(e,this.Zi(e,n))},l.gc=function(){return this.Ej()},l.Pc=function(){return this.Fj()},l.Qc=function(e){return this.Gj(e)},l.Ib=function(){return this.Hj()},I(oo,"DelegatingEList",2093),D(2094,2093,Ime),l.Ei=function(e,n){return Mkt(this,e,n)},l.Fi=function(e){return this.Ei(this.Ej(),e)},l.Gi=function(e,n){rde(this,e,n)},l.Hi=function(e){U1e(this,e)},l.Li=function(){return!this.Mj()},l.$b=function(){j_(this)},l.Ij=function(e,n,r,s,o){return new Ine(this,e,n,r,s,o)},l.Jj=function(e){Ei(this.jj(),e)},l.Kj=function(){return null},l.Lj=function(){return-1},l.jj=function(){return null},l.Mj=function(){return!1},l.Nj=function(e,n){return n},l.Oj=function(e,n){return n},l.Pj=function(){return!1},l.Qj=function(){return!this.Aj()},l.Ti=function(e,n){var r,s;return this.Pj()?(s=this.Qj(),r=i6t(this,e,n),this.Jj(this.Ij(7,he(n),r,e,s)),r):i6t(this,e,n)},l.gd=function(e){var n,r,s,o;return this.Pj()?(r=null,s=this.Qj(),n=this.Ij(4,o=_z(this,e),null,e,s),this.Mj()&&o?(r=this.Oj(o,r),r?(r.nj(n),r.oj()):this.Jj(n)):r?(r.nj(n),r.oj()):this.Jj(n),o):(o=_z(this,e),this.Mj()&&o&&(r=this.Oj(o,null),r&&r.oj()),o)},l.Xi=function(e,n){return lge(this,e,n)},I(Pk,"DelegatingNotifyingListImpl",2094),D(152,1,LN),l.nj=function(e){return Hxt(this,e)},l.oj=function(){Vst(this)},l.gj=function(){return this.d},l.Kj=function(){return null},l.Rj=function(){return null},l.hj=function(e){return-1},l.ij=function(){return Qde(this)},l.jj=function(){return null},l.kj=function(){return ckt(this)},l.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},l.Sj=function(){return!1},l.mj=function(e){var n,r,s,o,h,d,m,k,T,A,P;switch(this.d){case 1:case 2:switch(o=e.gj(),o){case 1:case 2:if(h=e.jj(),$t(h)===$t(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:{switch(o=e.gj(),o){case 4:{if(h=e.jj(),$t(h)===$t(this.jj())&&this.hj(null)==e.hj(null))return T=Wkt(this),k=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,d=e.lj(),this.d=6,P=new $m(2),k<=d?(Or(P,this.n),Or(P,e.kj()),this.g=lt(ut(Fr,1),ii,28,15,[this.o=k,d+1])):(Or(P,e.kj()),Or(P,this.n),this.g=lt(ut(Fr,1),ii,28,15,[this.o=d,k])),this.n=P,T||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(o=e.gj(),o){case 4:{if(h=e.jj(),$t(h)===$t(this.jj())&&this.hj(null)==e.hj(null)){for(T=Wkt(this),d=e.lj(),A=u(this.g,53),s=Vt(Fr,ii,28,A.length+1,15,1),n=0;n<A.length&&(m=A[n],m<=d);)s[n++]=m,++d;for(r=u(this.n,15),r.bd(n,e.kj()),s[n]=d;++n<s.length;)s[n]=A[n-1];return this.g=s,T||(this.o=-2-s[0]),!0}break}}break}}return!1},l.Ib=function(){var e,n,r,s;switch(s=new ef(V2(this.Rm)+"@"+(n=$i(this)>>>0,n.toString(16))),s.a+=" (eventType: ",this.d){case 1:{s.a+="SET";break}case 2:{s.a+="UNSET";break}case 3:{s.a+="ADD";break}case 5:{s.a+="ADD_MANY";break}case 4:{s.a+="REMOVE";break}case 6:{s.a+="REMOVE_MANY";break}case 7:{s.a+="MOVE";break}case 8:{s.a+="REMOVING_ADAPTER";break}case 9:{s.a+="RESOLVE";break}default:{art(s,this.d);break}}if(R0e(this)&&(s.a+=", touch: true"),s.a+=", position: ",art(s,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),s.a+=", notifier: ",wS(s,this.jj()),s.a+=", feature: ",wS(s,this.Kj()),s.a+=", oldValue: ",wS(s,ckt(this)),s.a+=", newValue: ",this.d==6&&Lt(this.g,53)){for(r=u(this.g,53),s.a+="[",e=0;e<r.length;)s.a+=r[e],++e<r.length&&(s.a+=ao);s.a+="]"}else wS(s,Qde(this));return s.a+=", isTouch: ",gp(s,R0e(this)),s.a+=", wasSet: ",gp(s,Wkt(this)),s.a+=")",s.a},l.d=0,l.e=0,l.f=0,l.j=0,l.k=0,l.o=0,l.p=0,I(Pk,"NotificationImpl",152),D(1188,152,LN,Ine),l.Kj=function(){return this.a.Kj()},l.hj=function(e){return this.a.Lj()},l.jj=function(){return this.a.jj()},I(Pk,"DelegatingNotifyingListImpl/1",1188),D(251,66,o0,YR,xb),l.Fc=function(e){return sle(this,u(e,378))},l.nj=function(e){return sle(this,e)},l.oj=function(){var e,n,r;for(e=0;e<this.i;++e)n=u(this.g[e],378),r=n.jj(),r!=null&&n.gj()!=-1&&u(r,94).xh(n)},l.aj=function(e){return Vt(x_n,Ln,378,e,0,1)},I(Pk,"NotificationChainImpl",251),D(1524,93,Vwe),l.uh=function(){return this.e},l.wh=function(){return(this.f&1)!=0},l.f=1,I(Pk,"NotifierImpl",1524),D(2091,66,o0),l.Ei=function(e,n){return fct(this,e,n)},l.Fi=function(e){return this.Ei(this.i,e)},l.Gi=function(e,n){P6t(this,e,n)},l.Hi=function(e){Got(this,e)},l.Li=function(){return!this.Mj()},l.$b=function(){Ir(this)},l.Ij=function(e,n,r,s,o){return new Mne(this,e,n,r,s,o)},l.Jj=function(e){Ei(this.jj(),e)},l.Kj=function(){return null},l.Lj=function(){return-1},l.jj=function(){return null},l.Mj=function(){return!1},l.Tj=function(){return!1},l.Nj=function(e,n){return n},l.Oj=function(e,n){return n},l.Pj=function(){return!1},l.Qj=function(){return this.i!=0},l.Ti=function(e,n){return f_(this,e,n)},l.gd=function(e){return r3(this,e)},l.Xi=function(e,n){return _ge(this,e,n)},l.Uj=function(e,n){return n},l.Vj=function(e,n){return n},l.Wj=function(e,n,r){return r},I(Pk,"NotifyingListImpl",2091),D(1187,152,LN,Mne),l.Kj=function(){return this.a.Kj()},l.hj=function(e){return this.a.Lj()},l.jj=function(){return this.a.jj()},I(Pk,"NotifyingListImpl/1",1187),D(966,66,o0,fZt),l.Hc=function(e){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new LS(this),this.a=this.j),x1(this.b,e)):L7(this,e)},l.Yi=function(){return!0},l.a=0,I(oo,"AbstractEList/1",966),D(301,77,out,Dy),I(oo,"AbstractEList/BasicIndexOutOfBoundsException",301),D(40,1,wa,Zn),l.Nb=function(e){Na(this,e)},l.Xj=function(){if(this.i.j!=this.f)throw at(new Th)},l.Yj=function(){return ar(this)},l.Ob=function(){return this.e!=this.i.gc()},l.Pb=function(){return this.Yj()},l.Qb=function(){E_(this)},l.e=0,l.f=0,l.g=-1,I(oo,"AbstractEList/EIterator",40),D(286,40,P0,j6,zit),l.Qb=function(){E_(this)},l.Rb=function(e){lle(this,e)},l.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(n){throw n=es(n),Lt(n,77)?(this.Xj(),at(new cc)):at(n)}},l.$j=function(e){phe(this,e)},l.Sb=function(){return this.e!=0},l.Tb=function(){return this.e},l.Ub=function(){return this.Zj()},l.Vb=function(){return this.e-1},l.Wb=function(e){this.$j(e)},I(oo,"AbstractEList/EListIterator",286),D(355,40,wa,$6),l.Yj=function(){return sot(this)},l.Qb=function(){throw at(new Vr)},I(oo,"AbstractEList/NonResolvingEIterator",355),D(398,286,P0,aI,Cvt),l.Rb=function(e){throw at(new Vr)},l.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(n){throw n=es(n),Lt(n,77)?(this.Xj(),at(new cc)):at(n)}},l.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(n){throw n=es(n),Lt(n,77)?(this.Xj(),at(new cc)):at(n)}},l.Qb=function(){throw at(new Vr)},l.Wb=function(e){throw at(new Vr)},I(oo,"AbstractEList/NonResolvingEListIterator",398),D(2080,70,Ome),l.Ei=function(e,n){var r,s,o,h,d,m,k,T,A,P,$;if(o=n.gc(),o!=0){for(T=u(jn(this.a,4),129),A=T==null?0:T.length,$=A+o,s=Aat(this,$),P=A-e,P>0&&Xc(T,e,s,e+o,P),k=n.Kc(),d=0;d<o;++d)m=k.Pb(),r=e+d,Jrt(s,r,d7(this,m));for(C7(this,s),h=0;h<o;++h)m=s[e],this.Mi(e,m),++e;return!0}else return++this.j,!1},l.Fi=function(e){var n,r,s,o,h,d,m,k,T;if(s=e.gc(),s!=0){for(k=(r=u(jn(this.a,4),129),r==null?0:r.length),T=k+s,n=Aat(this,T),m=e.Kc(),h=k;h<T;++h)d=m.Pb(),Jrt(n,h,d7(this,d));for(C7(this,n),o=k;o<T;++o)d=n[o],this.Mi(o,d);return!0}else return++this.j,!1},l.Gi=function(e,n){var r,s,o,h;s=u(jn(this.a,4),129),o=s==null?0:s.length,r=Aat(this,o+1),h=d7(this,n),e!=o&&Xc(s,e,r,e+1,o-e),ls(r,e,h),C7(this,r),this.Mi(e,n)},l.Hi=function(e){var n,r,s;s=(r=u(jn(this.a,4),129),r==null?0:r.length),n=Aat(this,s+1),Jrt(n,s,d7(this,e)),C7(this,n),this.Mi(s,e)},l.Ii=function(){return new nse(this)},l.Ji=function(){return new gee(this)},l.Ki=function(e){var n,r;if(r=(n=u(jn(this.a,4),129),n==null?0:n.length),e<0||e>r)throw at(new Dy(e,r));return new tne(this,e)},l.$b=function(){var e,n;++this.j,e=u(jn(this.a,4),129),n=e==null?0:e.length,C7(this,null),Fst(this,n,e)},l.Hc=function(e){var n,r,s,o,h;if(n=u(jn(this.a,4),129),n!=null){if(e!=null){for(s=n,o=0,h=s.length;o<h;++o)if(r=s[o],Ti(e,r))return!0}else for(s=n,o=0,h=s.length;o<h;++o)if(r=s[o],$t(r)===$t(e))return!0}return!1},l.Xb=function(e){var n,r;if(n=u(jn(this.a,4),129),r=n==null?0:n.length,e>=r)throw at(new Dy(e,r));return n[e]},l.dd=function(e){var n,r,s;if(n=u(jn(this.a,4),129),n!=null){if(e!=null){for(r=0,s=n.length;r<s;++r)if(Ti(e,n[r]))return r}else for(r=0,s=n.length;r<s;++r)if($t(n[r])===$t(e))return r}return-1},l.dc=function(){return u(jn(this.a,4),129)==null},l.Kc=function(){return new ese(this)},l.ed=function(){return new dee(this)},l.fd=function(e){var n,r;if(r=(n=u(jn(this.a,4),129),n==null?0:n.length),e<0||e>r)throw at(new Dy(e,r));return new Zee(this,e)},l.Ti=function(e,n){var r,s,o;if(r=yle(this),o=r==null?0:r.length,e>=o)throw at(new Bo(Zlt+e+Ew+o));if(n>=o)throw at(new Bo(tht+n+Ew+o));return s=r[n],e!=n&&(e<n?Xc(r,e,r,e+1,n-e):Xc(r,n+1,r,n,e-n),ls(r,e,s),C7(this,r)),s},l.Vi=function(e){return u(jn(this.a,4),129)[e]},l.gd=function(e){return ixn(this,e)},l.Xi=function(e,n){var r,s;return r=yle(this),s=r[e],Jrt(r,e,d7(this,n)),C7(this,r),s},l.gc=function(){var e;return e=u(jn(this.a,4),129),e==null?0:e.length},l.Pc=function(){var e,n,r;return e=u(jn(this.a,4),129),r=e==null?0:e.length,n=Vt(e0t,sht,424,r,0,1),r>0&&Xc(e,0,n,0,r),n},l.Qc=function(e){var n,r,s;return n=u(jn(this.a,4),129),s=n==null?0:n.length,s>0&&(e.length<s&&(r=XI(Wl(e).c,s),e=r),Xc(n,0,e,0,s)),e.length>s&&ls(e,s,null),e};var lTe;I(oo,"ArrayDelegatingEList",2080),D(1051,40,wa,ese),l.Xj=function(){if(this.b.j!=this.f||$t(u(jn(this.b.a,4),129))!==$t(this.a))throw at(new Th)},l.Qb=function(){E_(this),this.a=u(jn(this.b.a,4),129)},I(oo,"ArrayDelegatingEList/EIterator",1051),D(722,286,P0,dee,Zee),l.Xj=function(){if(this.b.j!=this.f||$t(u(jn(this.b.a,4),129))!==$t(this.a))throw at(new Th)},l.$j=function(e){phe(this,e),this.a=u(jn(this.b.a,4),129)},l.Qb=function(){E_(this),this.a=u(jn(this.b.a,4),129)},I(oo,"ArrayDelegatingEList/EListIterator",722),D(1052,355,wa,nse),l.Xj=function(){if(this.b.j!=this.f||$t(u(jn(this.b.a,4),129))!==$t(this.a))throw at(new Th)},I(oo,"ArrayDelegatingEList/NonResolvingEIterator",1052),D(723,398,P0,gee,tne),l.Xj=function(){if(this.b.j!=this.f||$t(u(jn(this.b.a,4),129))!==$t(this.a))throw at(new Th)},I(oo,"ArrayDelegatingEList/NonResolvingEListIterator",723),D(615,301,out,Grt),I(oo,"BasicEList/BasicIndexOutOfBoundsException",615),D(710,66,o0,dmt),l.bd=function(e,n){throw at(new Vr)},l.Fc=function(e){throw at(new Vr)},l.cd=function(e,n){throw at(new Vr)},l.Gc=function(e){throw at(new Vr)},l.$b=function(){throw at(new Vr)},l._i=function(e){throw at(new Vr)},l.Kc=function(){return this.Ii()},l.ed=function(){return this.Ji()},l.fd=function(e){return this.Ki(e)},l.Ti=function(e,n){throw at(new Vr)},l.Ui=function(e,n){throw at(new Vr)},l.gd=function(e){throw at(new Vr)},l.Mc=function(e){throw at(new Vr)},l.hd=function(e,n){throw at(new Vr)},I(oo,"BasicEList/UnmodifiableEList",710),D(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),l.bd=function(e,n){nsn(this,e,u(n,44))},l.Fc=function(e){return Ysn(this,u(e,44))},l.Jc=function(e){Fa(this,e)},l.Xb=function(e){return u(Dt(this.c,e),136)},l.Ti=function(e,n){return u(this.c.Ti(e,n),44)},l.Ui=function(e,n){rsn(this,e,u(n,44))},l.Lc=function(){return new ln(null,new gn(this,16))},l.gd=function(e){return u(this.c.gd(e),44)},l.hd=function(e,n){return mln(this,e,u(n,44))},l.jd=function(e){rw(this,e)},l.Nc=function(){return new gn(this,16)},l.Oc=function(){return new ln(null,new gn(this,16))},l.cd=function(e,n){return this.c.cd(e,n)},l.Gc=function(e){return this.c.Gc(e)},l.$b=function(){this.c.$b()},l.Hc=function(e){return this.c.Hc(e)},l.Ic=function(e){return rO(this.c,e)},l._j=function(){var e,n,r;if(this.d==null){for(this.d=Vt(MIt,jTt,66,2*this.f+1,0,1),r=this.e,this.f=0,n=this.c.Kc();n.e!=n.i.gc();)e=u(n.Yj(),136),IH(this,e);this.e=r}},l.Fb=function(e){return zZt(this,e)},l.Hb=function(){return H4t(this.c)},l.dd=function(e){return this.c.dd(e)},l.ak=function(){this.c=new GGt(this)},l.dc=function(){return this.f==0},l.Kc=function(){return this.c.Kc()},l.ed=function(){return this.c.ed()},l.fd=function(e){return this.c.fd(e)},l.bk=function(){return RI(this)},l.ck=function(e,n,r){return new tte(e,n,r)},l.dk=function(){return new XR},l.Mc=function(e){return _oe(this,e)},l.gc=function(){return this.f},l.kd=function(e,n){return new xp(this.c,e,n)},l.Pc=function(){return this.c.Pc()},l.Qc=function(e){return this.c.Qc(e)},l.Ib=function(){return B5t(this.c)},l.e=0,l.f=0,I(oo,"BasicEMap",721),D(1046,66,o0,GGt),l.Mi=function(e,n){Nnn(this,u(n,136))},l.Pi=function(e,n,r){var s;++(s=this,u(n,136),s).a.e},l.Qi=function(e,n){Pnn(this,u(n,136))},l.Ri=function(e,n,r){Nsn(this,u(n,136),u(r,136))},l.Oi=function(e,n){yce(this.a)},I(oo,"BasicEMap/1",1046),D(1047,66,o0,XR),l.aj=function(e){return Vt(k_n,Nme,621,e,0,1)},I(oo,"BasicEMap/2",1047),D(1048,dd,sl,KGt),l.$b=function(){this.a.c.$b()},l.Hc=function(e){return Yat(this.a,e)},l.Kc=function(){return this.a.f==0?(_E(),GP.a):new LWt(this.a)},l.Mc=function(e){var n;return n=this.a.f,yH(this.a,e),this.a.f!=n},l.gc=function(){return this.a.f},I(oo,"BasicEMap/3",1048),D(1049,31,o3,WGt),l.$b=function(){this.a.c.$b()},l.Hc=function(e){return w0e(this.a,e)},l.Kc=function(){return this.a.f==0?(_E(),GP.a):new DWt(this.a)},l.gc=function(){return this.a.f},I(oo,"BasicEMap/4",1049),D(1050,dd,sl,YGt),l.$b=function(){this.a.c.$b()},l.Hc=function(e){var n,r,s,o,h,d,m,k,T;if(this.a.f>0&&Lt(e,44)&&(this.a._j(),k=u(e,44),m=k.ld(),o=m==null?0:$i(m),h=lvt(this.a,o),n=this.a.d[h],n)){for(r=u(n.g,379),T=n.i,d=0;d<T;++d)if(s=r[d],s.Bi()==o&&s.Fb(k))return!0}return!1},l.Kc=function(){return this.a.f==0?(_E(),GP.a):new ist(this.a)},l.Mc=function(e){return cde(this,e)},l.gc=function(){return this.a.f},I(oo,"BasicEMap/5",1050),D(622,1,wa,ist),l.Nb=function(e){Na(this,e)},l.Ob=function(){return this.b!=-1},l.Pb=function(){var e;if(this.f.e!=this.c)throw at(new Th);if(this.b==-1)throw at(new cc);return this.d=this.a,this.e=this.b,Khe(this),e=u(this.f.d[this.d].g[this.e],136),this.ek(e)},l.Qb=function(){if(this.f.e!=this.c)throw at(new Th);if(this.e==-1)throw at(new Xu);this.f.c.Mc(Dt(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},l.ek=function(e){return e},l.a=0,l.b=-1,l.c=0,l.d=0,l.e=0,I(oo,"BasicEMap/BasicEMapIterator",622),D(1044,622,wa,LWt),l.ek=function(e){return e.ld()},I(oo,"BasicEMap/BasicEMapKeyIterator",1044),D(1045,622,wa,DWt),l.ek=function(e){return e.md()},I(oo,"BasicEMap/BasicEMapValueIterator",1045),D(1043,1,sv,XGt),l.wc=function(e){e_(this,e)},l.yc=function(e,n,r){return Vat(this,e,n,r)},l.$b=function(){this.a.c.$b()},l._b=function(e){return uQt(this,e)},l.uc=function(e){return w0e(this.a,e)},l.vc=function(){return r0n(this.a)},l.Fb=function(e){return zZt(this.a,e)},l.xc=function(e){return L1(this.a,e)},l.Hb=function(){return H4t(this.a.c)},l.dc=function(){return this.a.f==0},l.ec=function(){return e0n(this.a)},l.zc=function(e,n){return SO(this.a,e,n)},l.Bc=function(e){return yH(this.a,e)},l.gc=function(){return this.a.f},l.Ib=function(){return B5t(this.a.c)},l.Cc=function(){return n0n(this.a)},I(oo,"BasicEMap/DelegatingMap",1043),D(621,1,{44:1,136:1,621:1},tte),l.Fb=function(e){var n;return Lt(e,44)?(n=u(e,44),(this.b!=null?Ti(this.b,n.ld()):$t(this.b)===$t(n.ld()))&&(this.c!=null?Ti(this.c,n.md()):$t(this.c)===$t(n.md()))):!1},l.Bi=function(){return this.a},l.ld=function(){return this.b},l.md=function(){return this.c},l.Hb=function(){return this.a^(this.c==null?0:$i(this.c))},l.Ci=function(e){this.a=e},l.Di=function(e){throw at(new q2)},l.nd=function(e){var n;return n=this.c,this.c=e,n},l.Ib=function(){return this.b+"->"+this.c},l.a=0;var k_n=I(oo,"BasicEMap/EntryImpl",621);D(546,1,{},gC),I(oo,"BasicEMap/View",546);var GP;D(783,1,{}),l.Fb=function(e){return U6t((mn(),co),e)},l.Hb=function(){return e5t((mn(),co))},l.Ib=function(){return Hb((mn(),co))},I(oo,"ECollections/BasicEmptyUnmodifiableEList",783),D(1348,1,P0,Qtt),l.Nb=function(e){Na(this,e)},l.Rb=function(e){throw at(new Vr)},l.Ob=function(){return!1},l.Sb=function(){return!1},l.Pb=function(){throw at(new cc)},l.Tb=function(){return 0},l.Ub=function(){throw at(new cc)},l.Vb=function(){return-1},l.Qb=function(){throw at(new Vr)},l.Wb=function(e){throw at(new Vr)},I(oo,"ECollections/BasicEmptyUnmodifiableEList/1",1348),D(1346,783,{20:1,16:1,15:1,61:1},jKt),l.bd=function(e,n){tYt()},l.Fc=function(e){return eYt()},l.cd=function(e,n){return nYt()},l.Gc=function(e){return rYt()},l.$b=function(){iYt()},l.Hc=function(e){return!1},l.Ic=function(e){return!1},l.Jc=function(e){Fa(this,e)},l.Xb=function(e){return bmt((mn(),e)),null},l.dd=function(e){return-1},l.dc=function(){return!0},l.Kc=function(){return this.a},l.ed=function(){return this.a},l.fd=function(e){return this.a},l.Ti=function(e,n){return sYt()},l.Ui=function(e,n){aYt()},l.Lc=function(){return new ln(null,new gn(this,16))},l.gd=function(e){return oYt()},l.Mc=function(e){return cYt()},l.hd=function(e,n){return uYt()},l.gc=function(){return 0},l.jd=function(e){rw(this,e)},l.Nc=function(){return new gn(this,16)},l.Oc=function(){return new ln(null,new gn(this,16))},l.kd=function(e,n){return mn(),new xp(co,e,n)},l.Pc=function(){return dyt((mn(),co))},l.Qc=function(e){return mn(),v_(co,e)},I(oo,"ECollections/EmptyUnmodifiableEList",1346),D(1347,783,{20:1,16:1,15:1,61:1,597:1},$Kt),l.bd=function(e,n){tYt()},l.Fc=function(e){return eYt()},l.cd=function(e,n){return nYt()},l.Gc=function(e){return rYt()},l.$b=function(){iYt()},l.Hc=function(e){return!1},l.Ic=function(e){return!1},l.Jc=function(e){Fa(this,e)},l.Xb=function(e){return bmt((mn(),e)),null},l.dd=function(e){return-1},l.dc=function(){return!0},l.Kc=function(){return this.a},l.ed=function(){return this.a},l.fd=function(e){return this.a},l.Ti=function(e,n){return sYt()},l.Ui=function(e,n){aYt()},l.Lc=function(){return new ln(null,new gn(this,16))},l.gd=function(e){return oYt()},l.Mc=function(e){return cYt()},l.hd=function(e,n){return uYt()},l.gc=function(){return 0},l.jd=function(e){rw(this,e)},l.Nc=function(){return new gn(this,16)},l.Oc=function(){return new ln(null,new gn(this,16))},l.kd=function(e,n){return mn(),new xp(co,e,n)},l.Pc=function(){return dyt((mn(),co))},l.Qc=function(e){return mn(),v_(co,e)},l.bk=function(){return mn(),mn(),q0},I(oo,"ECollections/EmptyUnmodifiableEMap",1347);var OIt=os(oo,"Enumerator"),KK;D(288,1,{288:1},nct),l.Fb=function(e){var n;return this===e?!0:Lt(e,288)?(n=u(e,288),this.f==n.f&&Nun(this.i,n.i)&&Lit(this.a,this.f&256?n.f&256?n.a:null:n.f&256?null:n.a)&&Lit(this.d,n.d)&&Lit(this.g,n.g)&&Lit(this.e,n.e)&&imn(this,n)):!1},l.Hb=function(){return this.f},l.Ib=function(){return X0e(this)},l.f=0;var hTe=0,fTe=0,dTe=0,gTe=0,NIt=0,PIt=0,FIt=0,BIt=0,RIt=0,pTe,CL=0,SL=0,bTe=0,wTe=0,WK,jIt;I(oo,"URI",288),D(1121,45,E5,zKt),l.zc=function(e,n){return u(jo(this,Gr(e),u(n,288)),288)},I(oo,"URI/URICache",1121),D(505,66,o0,KR,Oz),l.Si=function(){return!0},I(oo,"UniqueEList",505),D(590,63,Pg,_q),I(oo,"WrappedException",590);var ci=os(qh,Bme),H3=os(qh,Rme),Wu=os(qh,jme),V3=os(qh,$me),B1=os(qh,zme),mf=os(qh,"EClass"),n0t=os(qh,"EDataType"),mTe;D(1233,45,E5,qKt),l.xc=function(e){return ba(e)?nu(this,e):Ko(Eo(this.f,e))},I(qh,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var YK=os(qh,"EEnum"),Vg=os(qh,qme),Do=os(qh,Hme),vf=os(qh,Vme),yf,Ov=os(qh,Ume),U3=os(qh,Gme);D(1042,1,{},Ytt),l.Ib=function(){return"NIL"},I(qh,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var vTe;D(1041,45,E5,HKt),l.xc=function(e){return ba(e)?nu(this,e):Ko(Eo(this.f,e))},I(qh,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var Nu=os(qh,Kme),r8=os(qh,"EValidator/PatternMatcher"),$It,zIt,Fn,Jp,G3,w2,yTe,xTe,kTe,m2,Zp,v2,Nv,Sd,ETe,TTe,xf,tb,CTe,eb,K3,dx,wo,STe,_Te,Pv,XK=os(Yi,"FeatureMap/Entry");D(545,1,{76:1},X$),l.Lk=function(){return this.a},l.md=function(){return this.b},I(Rn,"BasicEObjectImpl/1",545),D(1040,1,aht,hQt),l.Fk=function(e){return Ist(this.a,this.b,e)},l.Qj=function(){return Kne(this.a,this.b)},l.Wb=function(e){e3t(this.a,this.b,e)},l.Gk=function(){Mln(this.a,this.b)},I(Rn,"BasicEObjectImpl/4",1040),D(2081,1,{114:1}),l.Mk=function(e){this.e=e==0?ATe:Vt(aa,Ln,1,e,5,1)},l.li=function(e){return this.e[e]},l.mi=function(e,n){this.e[e]=n},l.ni=function(e){this.e[e]=null},l.Nk=function(){return this.c},l.Ok=function(){throw at(new Vr)},l.Pk=function(){throw at(new Vr)},l.Qk=function(){return this.d},l.Rk=function(){return this.e!=null},l.Sk=function(e){this.c=e},l.Tk=function(e){throw at(new Vr)},l.Uk=function(e){throw at(new Vr)},l.Vk=function(e){this.d=e};var ATe;I(Rn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),D(192,2081,{114:1},Zh),l.Ok=function(){return this.a},l.Pk=function(){return this.b},l.Tk=function(e){this.a=e},l.Uk=function(e){this.b=e},I(Rn,"BasicEObjectImpl/EPropertiesHolderImpl",192),D(516,99,Wwe,E4),l.uh=function(){return this.f},l.zh=function(){return this.k},l.Bh=function(e,n){this.g=e,this.i=n},l.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},l.Fh=function(){return this.i},l.wh=function(){return(this.j&1)!=0},l.Ph=function(){return this.g},l.Vh=function(){return(this.j&4)!=0},l.$h=function(){return!this.k&&(this.k=new Zh),this.k},l.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},l.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},l.ii=function(){return(Lb(),Fn).S},l.i=0,l.j=1,I(Rn,"EObjectImpl",516),D(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},Xvt),l.li=function(e){return this.e[e]},l.mi=function(e,n){this.e[e]=n},l.ni=function(e){this.e[e]=null},l.Dh=function(){return this.d},l.Ih=function(e){return ns(this.d,e)},l.Kh=function(){return this.d},l.Oh=function(){return this.e!=null},l.$h=function(){return!this.k&&(this.k=new QR),this.k},l.ci=function(e){this.d=e},l.hi=function(){var e;return this.e==null&&(e=fr(this.d),this.e=e==0?LTe:Vt(aa,Ln,1,e,5,1)),this},l.ji=function(){return 0};var LTe;I(Rn,"DynamicEObjectImpl",798),D(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},Cte),l.Fb=function(e){return this===e},l.Hb=function(){return Em(this)},l.ci=function(e){this.d=e,this.b=zO(e,"key"),this.c=zO(e,cA)},l.Bi=function(){var e;return this.a==-1&&(e=Ust(this,this.b),this.a=e==null?0:$i(e)),this.a},l.ld=function(){return Ust(this,this.b)},l.md=function(){return Ust(this,this.c)},l.Ci=function(e){this.a=e},l.Di=function(e){e3t(this,this.b,e)},l.nd=function(e){var n;return n=Ust(this,this.c),e3t(this,this.c,e),n},l.a=0,I(Rn,"DynamicEObjectImpl/BasicEMapEntry",1522),D(1523,1,{114:1},QR),l.Mk=function(e){throw at(new Vr)},l.li=function(e){throw at(new Vr)},l.mi=function(e,n){throw at(new Vr)},l.ni=function(e){throw at(new Vr)},l.Nk=function(){throw at(new Vr)},l.Ok=function(){return this.a},l.Pk=function(){return this.b},l.Qk=function(){return this.c},l.Rk=function(){throw at(new Vr)},l.Sk=function(e){throw at(new Vr)},l.Tk=function(e){this.a=e},l.Uk=function(e){this.b=e},l.Vk=function(e){this.c=e},I(Rn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),D(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},aM),l.Ah=function(e){return Sxt(this,e)},l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.d;case 2:return r?(!this.b&&(this.b=new Ul((wn(),wo),Mc,this)),this.b):(!this.b&&(this.b=new Ul((wn(),wo),Mc,this)),RI(this.b));case 3:return Jne(this);case 4:return!this.a&&(this.a=new Ps(p2,this,4)),this.a;case 5:return!this.c&&(this.c=new G4(p2,this,5)),this.c}return Ih(this,e-fr((wn(),Jp)),En((s=u(jn(this,16),29),s||Jp),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 3:return this.Cb&&(r=(o=this.Db>>16,o>=0?Sxt(this,r):this.Cb.Th(this,-1-o,null,r))),fyt(this,u(e,155),r)}return h=u(En((s=u(jn(this,16),29),s||(wn(),Jp)),n),69),h.wk().zk(this,Au(this),n-fr((wn(),Jp)),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 2:return!this.b&&(this.b=new Ul((wn(),wo),Mc,this)),pz(this.b,e,r);case 3:return fyt(this,null,r);case 4:return!this.a&&(this.a=new Ps(p2,this,4)),so(this.a,e,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),Jp)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),Jp)),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!Jne(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Dh(this,e-fr((wn(),Jp)),En((n=u(jn(this,16),29),n||Jp),e))},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:xun(this,Gr(n));return;case 2:!this.b&&(this.b=new Ul((wn(),wo),Mc,this)),Jq(this.b,n);return;case 3:Rde(this,u(n,155));return;case 4:!this.a&&(this.a=new Ps(p2,this,4)),Ir(this.a),!this.a&&(this.a=new Ps(p2,this,4)),gs(this.a,u(n,16));return;case 5:!this.c&&(this.c=new G4(p2,this,5)),Ir(this.c),!this.c&&(this.c=new G4(p2,this,5)),gs(this.c,u(n,16));return}Fh(this,e-fr((wn(),Jp)),En((r=u(jn(this,16),29),r||Jp),e),n)},l.ii=function(){return wn(),Jp},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:_4t(this,null);return;case 2:!this.b&&(this.b=new Ul((wn(),wo),Mc,this)),this.b.c.$b();return;case 3:Rde(this,null);return;case 4:!this.a&&(this.a=new Ps(p2,this,4)),Ir(this.a);return;case 5:!this.c&&(this.c=new G4(p2,this,5)),Ir(this.c);return}Ph(this,e-fr((wn(),Jp)),En((n=u(jn(this,16),29),n||Jp),e))},l.Ib=function(){return zue(this)},l.d=null,I(Rn,"EAnnotationImpl",519),D(141,721,$Tt,nl),l.Gi=function(e,n){jin(this,e,u(n,44))},l.Wk=function(e,n){return zan(this,u(e,44),n)},l.$i=function(e){return u(u(this.c,71).$i(e),136)},l.Ii=function(){return u(this.c,71).Ii()},l.Ji=function(){return u(this.c,71).Ji()},l.Ki=function(e){return u(this.c,71).Ki(e)},l.Xk=function(e,n){return pz(this,e,n)},l.Fk=function(e){return u(this.c,79).Fk(e)},l.ak=function(){},l.Qj=function(){return u(this.c,79).Qj()},l.ck=function(e,n,r){var s;return s=u(sh(this.b).wi().si(this.b),136),s.Ci(e),s.Di(n),s.nd(r),s},l.dk=function(){return new P2t(this)},l.Wb=function(e){Jq(this,e)},l.Gk=function(){u(this.c,79).Gk()},I(Yi,"EcoreEMap",141),D(165,141,$Tt,Ul),l._j=function(){var e,n,r,s,o,h;if(this.d==null){for(h=Vt(MIt,jTt,66,2*this.f+1,0,1),r=this.c.Kc();r.e!=r.i.gc();)n=u(r.Yj(),136),s=n.Bi(),o=(s&xi)%h.length,e=h[o],!e&&(e=h[o]=new P2t(this)),e.Fc(n);this.d=h}},I(Rn,"EAnnotationImpl/1",165),D(291,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,480:1,54:1,99:1,158:1,291:1,119:1,120:1}),l.Lh=function(e,n,r){var s,o;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Pn(),!!(this.Bb&256);case 3:return Pn(),!!(this.Bb&512);case 4:return he(this.s);case 5:return he(this.t);case 6:return Pn(),!!this.Jk();case 7:return Pn(),o=this.s,o>=1;case 8:return n?of(this):this.r;case 9:return this.q}return Ih(this,e-fr(this.ii()),En((s=u(jn(this,16),29),s||this.ii()),e),n,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 9:return Vit(this,r)}return o=u(En((s=u(jn(this,16),29),s||this.ii()),n),69),o.wk().Ak(this,Au(this),n-fr(this.ii()),e,r)},l.Wh=function(e){var n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0)}return Dh(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.bi=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:this.ui(Gr(n));return;case 2:Dp(this,Ie(Me(n)));return;case 3:Mp(this,Ie(Me(n)));return;case 4:Sp(this,u(n,17).a);return;case 5:this.Zk(u(n,17).a);return;case 8:uw(this,u(n,142));return;case 9:s=hd(this,u(n,89),null),s&&s.oj();return}Fh(this,e-fr(this.ii()),En((r=u(jn(this,16),29),r||this.ii()),e),n)},l.ii=function(){return wn(),_Te},l.ki=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:this.ui(null);return;case 2:Dp(this,!0);return;case 3:Mp(this,!0);return;case 4:Sp(this,0);return;case 5:this.Zk(1);return;case 8:uw(this,null);return;case 9:r=hd(this,null,null),r&&r.oj();return}Ph(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.pi=function(){of(this),this.Bb|=1},l.Hk=function(){return of(this)},l.Ik=function(){return this.t},l.Jk=function(){var e;return e=this.t,e>1||e==-1},l.Si=function(){return(this.Bb&512)!=0},l.Yk=function(e,n){return y5t(this,e,n)},l.Zk=function(e){Hy(this,e)},l.Ib=function(){return F6t(this)},l.s=0,l.t=1,I(Rn,"ETypedElementImpl",291),D(461,291,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,480:1,54:1,99:1,158:1,461:1,291:1,119:1,120:1,692:1}),l.Ah=function(e){return Dhe(this,e)},l.Lh=function(e,n,r){var s,o;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Pn(),!!(this.Bb&256);case 3:return Pn(),!!(this.Bb&512);case 4:return he(this.s);case 5:return he(this.t);case 6:return Pn(),!!this.Jk();case 7:return Pn(),o=this.s,o>=1;case 8:return n?of(this):this.r;case 9:return this.q;case 10:return Pn(),!!(this.Bb&Uf);case 11:return Pn(),!!(this.Bb&b3);case 12:return Pn(),!!(this.Bb&u3);case 13:return this.j;case 14:return P7(this);case 15:return Pn(),!!(this.Bb&ol);case 16:return Pn(),!!(this.Bb&Jd);case 17:return Py(this)}return Ih(this,e-fr(this.ii()),En((s=u(jn(this,16),29),s||this.ii()),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 17:return this.Cb&&(r=(o=this.Db>>16,o>=0?Dhe(this,r):this.Cb.Th(this,-1-o,null,r))),hh(this,e,17,r)}return h=u(En((s=u(jn(this,16),29),s||this.ii()),n),69),h.wk().zk(this,Au(this),n-fr(this.ii()),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 9:return Vit(this,r);case 17:return hh(this,null,17,r)}return o=u(En((s=u(jn(this,16),29),s||this.ii()),n),69),o.wk().Ak(this,Au(this),n-fr(this.ii()),e,r)},l.Wh=function(e){var n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&Uf)==0;case 11:return(this.Bb&b3)!=0;case 12:return(this.Bb&u3)!=0;case 13:return this.j!=null;case 14:return P7(this)!=null;case 15:return(this.Bb&ol)!=0;case 16:return(this.Bb&Jd)!=0;case 17:return!!Py(this)}return Dh(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.bi=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:wst(this,Gr(n));return;case 2:Dp(this,Ie(Me(n)));return;case 3:Mp(this,Ie(Me(n)));return;case 4:Sp(this,u(n,17).a);return;case 5:this.Zk(u(n,17).a);return;case 8:uw(this,u(n,142));return;case 9:s=hd(this,u(n,89),null),s&&s.oj();return;case 10:m7(this,Ie(Me(n)));return;case 11:x7(this,Ie(Me(n)));return;case 12:v7(this,Ie(Me(n)));return;case 13:fmt(this,Gr(n));return;case 15:y7(this,Ie(Me(n)));return;case 16:k7(this,Ie(Me(n)));return}Fh(this,e-fr(this.ii()),En((r=u(jn(this,16),29),r||this.ii()),e),n)},l.ii=function(){return wn(),STe},l.ki=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:Lt(this.Cb,90)&&t3(_l(u(this.Cb,90)),4),mu(this,null);return;case 2:Dp(this,!0);return;case 3:Mp(this,!0);return;case 4:Sp(this,0);return;case 5:this.Zk(1);return;case 8:uw(this,null);return;case 9:r=hd(this,null,null),r&&r.oj();return;case 10:m7(this,!0);return;case 11:x7(this,!1);return;case 12:v7(this,!1);return;case 13:this.i=null,Gq(this,null);return;case 15:y7(this,!1);return;case 16:k7(this,!1);return}Ph(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.pi=function(){RE($o((il(),ja),this)),of(this),this.Bb|=1},l.pk=function(){return this.f},l.ik=function(){return P7(this)},l.qk=function(){return Py(this)},l.uk=function(){return null},l.$k=function(){return this.k},l.Lj=function(){return this.n},l.vk=function(){return $H(this)},l.wk=function(){var e,n,r,s,o,h,d,m,k;return this.p||(r=Py(this),(r.i==null&&Qd(r),r.i).length,s=this.uk(),s&&fr(Py(s)),o=of(this),d=o.kk(),e=d?d.i&1?d==Fl?ys:d==Fr?Ra:d==Y3?wT:d==ma?zs:d==x2?gv:d==wx?pv:d==ul?Fk:vA:d:null,n=P7(this),m=o.ik(),P2n(this),this.Bb&Jd&&((h=Oxt((il(),ja),r))&&h!=this||(h=tk($o(ja,this))))?this.p=new dQt(this,h):this.Jk()?this.al()?s?this.Bb&ol?e?this.bl()?this.p=new X2(47,e,this,s):this.p=new X2(5,e,this,s):this.bl()?this.p=new ew(46,this,s):this.p=new ew(4,this,s):e?this.bl()?this.p=new X2(49,e,this,s):this.p=new X2(7,e,this,s):this.bl()?this.p=new ew(48,this,s):this.p=new ew(6,this,s):this.Bb&ol?e?e==Sw?this.p=new mp(50,cTe,this):this.bl()?this.p=new mp(43,e,this):this.p=new mp(1,e,this):this.bl()?this.p=new yp(42,this):this.p=new yp(0,this):e?e==Sw?this.p=new mp(41,cTe,this):this.bl()?this.p=new mp(45,e,this):this.p=new mp(3,e,this):this.bl()?this.p=new yp(44,this):this.p=new yp(2,this):Lt(o,156)?e==XK?this.p=new yp(40,this):this.Bb&512?this.Bb&ol?e?this.p=new mp(9,e,this):this.p=new yp(8,this):e?this.p=new mp(11,e,this):this.p=new yp(10,this):this.Bb&ol?e?this.p=new mp(13,e,this):this.p=new yp(12,this):e?this.p=new mp(15,e,this):this.p=new yp(14,this):s?(k=s.t,k>1||k==-1?this.bl()?this.Bb&ol?e?this.p=new X2(25,e,this,s):this.p=new ew(24,this,s):e?this.p=new X2(27,e,this,s):this.p=new ew(26,this,s):this.Bb&ol?e?this.p=new X2(29,e,this,s):this.p=new ew(28,this,s):e?this.p=new X2(31,e,this,s):this.p=new ew(30,this,s):this.bl()?this.Bb&ol?e?this.p=new X2(33,e,this,s):this.p=new ew(32,this,s):e?this.p=new X2(35,e,this,s):this.p=new ew(34,this,s):this.Bb&ol?e?this.p=new X2(37,e,this,s):this.p=new ew(36,this,s):e?this.p=new X2(39,e,this,s):this.p=new ew(38,this,s)):this.bl()?this.Bb&ol?e?this.p=new mp(17,e,this):this.p=new yp(16,this):e?this.p=new mp(19,e,this):this.p=new yp(18,this):this.Bb&ol?e?this.p=new mp(21,e,this):this.p=new yp(20,this):e?this.p=new mp(23,e,this):this.p=new yp(22,this):this._k()?this.bl()?this.p=new ete(u(o,29),this,s):this.p=new Zyt(u(o,29),this,s):Lt(o,156)?e==XK?this.p=new yp(40,this):this.Bb&ol?e?this.p=new tee(n,m,this,(Xat(),d==Fr?WIt:d==Fl?HIt:d==x2?YIt:d==Y3?KIt:d==ma?GIt:d==wx?XIt:d==ul?VIt:d==Yh?UIt:s0t)):this.p=new dne(u(o,156),n,m,this):e?this.p=new Zte(n,m,this,(Xat(),d==Fr?WIt:d==Fl?HIt:d==x2?YIt:d==Y3?KIt:d==ma?GIt:d==wx?XIt:d==ul?VIt:d==Yh?UIt:s0t)):this.p=new fne(u(o,156),n,m,this):this.al()?s?this.Bb&ol?this.bl()?this.p=new rte(u(o,29),this,s):this.p=new Rvt(u(o,29),this,s):this.bl()?this.p=new nte(u(o,29),this,s):this.p=new kit(u(o,29),this,s):this.Bb&ol?this.bl()?this.p=new ZJt(u(o,29),this):this.p=new Jmt(u(o,29),this):this.bl()?this.p=new JJt(u(o,29),this):this.p=new uit(u(o,29),this):this.bl()?s?this.Bb&ol?this.p=new ite(u(o,29),this,s):this.p=new Fvt(u(o,29),this,s):this.Bb&ol?this.p=new tZt(u(o,29),this):this.p=new Zmt(u(o,29),this):s?this.Bb&ol?this.p=new ste(u(o,29),this,s):this.p=new Bvt(u(o,29),this,s):this.Bb&ol?this.p=new eZt(u(o,29),this):this.p=new Iz(u(o,29),this)),this.p},l.rk=function(){return(this.Bb&Uf)!=0},l._k=function(){return!1},l.al=function(){return!1},l.sk=function(){return(this.Bb&Jd)!=0},l.xk=function(){return Gst(this)},l.bl=function(){return!1},l.tk=function(){return(this.Bb&ol)!=0},l.cl=function(e){this.k=e},l.ui=function(e){wst(this,e)},l.Ib=function(){return oV(this)},l.e=!1,l.n=0,I(Rn,"EStructuralFeatureImpl",461),D(331,461,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,480:1,54:1,99:1,331:1,158:1,461:1,291:1,119:1,120:1,692:1},Hnt),l.Lh=function(e,n,r){var s,o;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Pn(),!!(this.Bb&256);case 3:return Pn(),!!(this.Bb&512);case 4:return he(this.s);case 5:return he(this.t);case 6:return Pn(),!!D6t(this);case 7:return Pn(),o=this.s,o>=1;case 8:return n?of(this):this.r;case 9:return this.q;case 10:return Pn(),!!(this.Bb&Uf);case 11:return Pn(),!!(this.Bb&b3);case 12:return Pn(),!!(this.Bb&u3);case 13:return this.j;case 14:return P7(this);case 15:return Pn(),!!(this.Bb&ol);case 16:return Pn(),!!(this.Bb&Jd);case 17:return Py(this);case 18:return Pn(),!!(this.Bb&Fc);case 19:return n?bat(this):bse(this)}return Ih(this,e-fr((wn(),G3)),En((s=u(jn(this,16),29),s||G3),e),n,r)},l.Wh=function(e){var n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return D6t(this);case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&Uf)==0;case 11:return(this.Bb&b3)!=0;case 12:return(this.Bb&u3)!=0;case 13:return this.j!=null;case 14:return P7(this)!=null;case 15:return(this.Bb&ol)!=0;case 16:return(this.Bb&Jd)!=0;case 17:return!!Py(this);case 18:return(this.Bb&Fc)!=0;case 19:return!!bse(this)}return Dh(this,e-fr((wn(),G3)),En((n=u(jn(this,16),29),n||G3),e))},l.bi=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:wst(this,Gr(n));return;case 2:Dp(this,Ie(Me(n)));return;case 3:Mp(this,Ie(Me(n)));return;case 4:Sp(this,u(n,17).a);return;case 5:OWt(this,u(n,17).a);return;case 8:uw(this,u(n,142));return;case 9:s=hd(this,u(n,89),null),s&&s.oj();return;case 10:m7(this,Ie(Me(n)));return;case 11:x7(this,Ie(Me(n)));return;case 12:v7(this,Ie(Me(n)));return;case 13:fmt(this,Gr(n));return;case 15:y7(this,Ie(Me(n)));return;case 16:k7(this,Ie(Me(n)));return;case 18:qat(this,Ie(Me(n)));return}Fh(this,e-fr((wn(),G3)),En((r=u(jn(this,16),29),r||G3),e),n)},l.ii=function(){return wn(),G3},l.ki=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:Lt(this.Cb,90)&&t3(_l(u(this.Cb,90)),4),mu(this,null);return;case 2:Dp(this,!0);return;case 3:Mp(this,!0);return;case 4:Sp(this,0);return;case 5:this.b=0,Hy(this,1);return;case 8:uw(this,null);return;case 9:r=hd(this,null,null),r&&r.oj();return;case 10:m7(this,!0);return;case 11:x7(this,!1);return;case 12:v7(this,!1);return;case 13:this.i=null,Gq(this,null);return;case 15:y7(this,!1);return;case 16:k7(this,!1);return;case 18:qat(this,!1);return}Ph(this,e-fr((wn(),G3)),En((n=u(jn(this,16),29),n||G3),e))},l.pi=function(){bat(this),RE($o((il(),ja),this)),of(this),this.Bb|=1},l.Jk=function(){return D6t(this)},l.Yk=function(e,n){return this.b=0,this.a=null,y5t(this,e,n)},l.Zk=function(e){OWt(this,e)},l.Ib=function(){var e;return this.Db&64?oV(this):(e=new ef(oV(this)),e.a+=" (iD: ",gp(e,(this.Bb&Fc)!=0),e.a+=")",e.a)},l.b=0,I(Rn,"EAttributeImpl",331),D(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),l.dl=function(e){return e.Dh()==this},l.Ah=function(e){return xot(this,e)},l.Bh=function(e,n){this.w=null,this.Db=n<<16|this.Db&255,this.Cb=e},l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Jm(this);case 4:return this.ik();case 5:return this.F;case 6:return n?sh(this):zE(this);case 7:return!this.A&&(this.A=new Ju(Nu,this,7)),this.A}return Ih(this,e-fr(this.ii()),En((s=u(jn(this,16),29),s||this.ii()),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 6:return this.Cb&&(r=(o=this.Db>>16,o>=0?xot(this,r):this.Cb.Th(this,-1-o,null,r))),hh(this,e,6,r)}return h=u(En((s=u(jn(this,16),29),s||this.ii()),n),69),h.wk().zk(this,Au(this),n-fr(this.ii()),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 6:return hh(this,null,6,r);case 7:return!this.A&&(this.A=new Ju(Nu,this,7)),so(this.A,e,r)}return o=u(En((s=u(jn(this,16),29),s||this.ii()),n),69),o.wk().Ak(this,Au(this),n-fr(this.ii()),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Jm(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!zE(this);case 7:return!!this.A&&this.A.i!=0}return Dh(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:cq(this,Gr(n));return;case 2:Yrt(this,Gr(n));return;case 5:q7(this,Gr(n));return;case 7:!this.A&&(this.A=new Ju(Nu,this,7)),Ir(this.A),!this.A&&(this.A=new Ju(Nu,this,7)),gs(this.A,u(n,16));return}Fh(this,e-fr(this.ii()),En((r=u(jn(this,16),29),r||this.ii()),e),n)},l.ii=function(){return wn(),yTe},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:Lt(this.Cb,184)&&(u(this.Cb,184).tb=null),mu(this,null);return;case 2:p7(this,null),t7(this,this.D);return;case 5:q7(this,null);return;case 7:!this.A&&(this.A=new Ju(Nu,this,7)),Ir(this.A);return}Ph(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.hk=function(){var e;return this.G==-1&&(this.G=(e=sh(this),e?Np(e.vi(),this):-1)),this.G},l.ik=function(){return null},l.jk=function(){return sh(this)},l.el=function(){return this.v},l.kk=function(){return Jm(this)},l.lk=function(){return this.D!=null?this.D:this.B},l.mk=function(){return this.F},l.fk=function(e){return hct(this,e)},l.fl=function(e){this.v=e},l.gl=function(e){tce(this,e)},l.hl=function(e){this.C=e},l.ui=function(e){cq(this,e)},l.Ib=function(){return bH(this)},l.C=null,l.D=null,l.G=-1,I(Rn,"EClassifierImpl",364),D(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,481:1,119:1,120:1,691:1},Pj),l.dl=function(e){return Tan(this,e.Dh())},l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Jm(this);case 4:return null;case 5:return this.F;case 6:return n?sh(this):zE(this);case 7:return!this.A&&(this.A=new Ju(Nu,this,7)),this.A;case 8:return Pn(),!!(this.Bb&256);case 9:return Pn(),!!(this.Bb&512);case 10:return Yo(this);case 11:return!this.q&&(this.q=new Jt(vf,this,11,10)),this.q;case 12:return v5(this);case 13:return F_(this);case 14:return F_(this),this.r;case 15:return v5(this),this.k;case 16:return y6t(this);case 17:return pct(this);case 18:return Qd(this);case 19:return JH(this);case 20:return v5(this),this.o;case 21:return!this.s&&(this.s=new Jt(Wu,this,21,17)),this.s;case 22:return Wc(this);case 23:return ect(this)}return Ih(this,e-fr((wn(),w2)),En((s=u(jn(this,16),29),s||w2),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 6:return this.Cb&&(r=(o=this.Db>>16,o>=0?xot(this,r):this.Cb.Th(this,-1-o,null,r))),hh(this,e,6,r);case 11:return!this.q&&(this.q=new Jt(vf,this,11,10)),vu(this.q,e,r);case 21:return!this.s&&(this.s=new Jt(Wu,this,21,17)),vu(this.s,e,r)}return h=u(En((s=u(jn(this,16),29),s||(wn(),w2)),n),69),h.wk().zk(this,Au(this),n-fr((wn(),w2)),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 6:return hh(this,null,6,r);case 7:return!this.A&&(this.A=new Ju(Nu,this,7)),so(this.A,e,r);case 11:return!this.q&&(this.q=new Jt(vf,this,11,10)),so(this.q,e,r);case 21:return!this.s&&(this.s=new Jt(Wu,this,21,17)),so(this.s,e,r);case 22:return so(Wc(this),e,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),w2)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),w2)),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Jm(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!zE(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Wc(this.u.a).i!=0&&!(this.n&&lot(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return v5(this).i!=0;case 13:return F_(this).i!=0;case 14:return F_(this),this.r.i!=0;case 15:return v5(this),this.k.i!=0;case 16:return y6t(this).i!=0;case 17:return pct(this).i!=0;case 18:return Qd(this).i!=0;case 19:return JH(this).i!=0;case 20:return v5(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&lot(this.n);case 23:return ect(this).i!=0}return Dh(this,e-fr((wn(),w2)),En((n=u(jn(this,16),29),n||w2),e))},l.Zh=function(e){var n;return n=this.i==null||this.q&&this.q.i!=0?null:zO(this,e),n||e8t(this,e)},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:cq(this,Gr(n));return;case 2:Yrt(this,Gr(n));return;case 5:q7(this,Gr(n));return;case 7:!this.A&&(this.A=new Ju(Nu,this,7)),Ir(this.A),!this.A&&(this.A=new Ju(Nu,this,7)),gs(this.A,u(n,16));return;case 8:x5t(this,Ie(Me(n)));return;case 9:k5t(this,Ie(Me(n)));return;case 10:j_(Yo(this)),gs(Yo(this),u(n,16));return;case 11:!this.q&&(this.q=new Jt(vf,this,11,10)),Ir(this.q),!this.q&&(this.q=new Jt(vf,this,11,10)),gs(this.q,u(n,16));return;case 21:!this.s&&(this.s=new Jt(Wu,this,21,17)),Ir(this.s),!this.s&&(this.s=new Jt(Wu,this,21,17)),gs(this.s,u(n,16));return;case 22:Ir(Wc(this)),gs(Wc(this),u(n,16));return}Fh(this,e-fr((wn(),w2)),En((r=u(jn(this,16),29),r||w2),e),n)},l.ii=function(){return wn(),w2},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:Lt(this.Cb,184)&&(u(this.Cb,184).tb=null),mu(this,null);return;case 2:p7(this,null),t7(this,this.D);return;case 5:q7(this,null);return;case 7:!this.A&&(this.A=new Ju(Nu,this,7)),Ir(this.A);return;case 8:x5t(this,!1);return;case 9:k5t(this,!1);return;case 10:this.u&&j_(this.u);return;case 11:!this.q&&(this.q=new Jt(vf,this,11,10)),Ir(this.q);return;case 21:!this.s&&(this.s=new Jt(Wu,this,21,17)),Ir(this.s);return;case 22:this.n&&Ir(this.n);return}Ph(this,e-fr((wn(),w2)),En((n=u(jn(this,16),29),n||w2),e))},l.pi=function(){var e,n;if(v5(this),F_(this),y6t(this),pct(this),Qd(this),JH(this),ect(this),KS(Xcn(_l(this))),this.s)for(e=0,n=this.s.i;e<n;++e)oI(Dt(this.s,e));if(this.q)for(e=0,n=this.q.i;e<n;++e)oI(Dt(this.q,e));Lp((il(),ja),this).xe(),this.Bb|=1},l.Ib=function(){return $xt(this)},l.k=null,l.r=null;var _L,DTe,r0t;I(Rn,"EClassImpl",90),D(2092,2091,Xme),l.Ei=function(e,n){return fct(this,e,n)},l.Fi=function(e){return fct(this,this.i,e)},l.Gi=function(e,n){P6t(this,e,n)},l.Hi=function(e){Got(this,e)},l.Wk=function(e,n){return vu(this,e,n)},l.$i=function(e){return Q3t(this,e)},l.Xk=function(e,n){return so(this,e,n)},l.Xi=function(e,n){return _ge(this,e,n)},l.Ii=function(){return new $6(this)},l.Ji=function(){return new aI(this)},l.Ki=function(e){return QI(this,e)},I(Yi,"NotifyingInternalEListImpl",2092),D(632,2092,ic),l.Hc=function(e){return Wge(this,e)},l.Ij=function(e,n,r,s,o){return zS(this,e,n,r,s,o)},l.Jj=function(e){hE(this,e)},l.Fk=function(e){return this},l.Lk=function(){return En(this.e.Dh(),this.Lj())},l.Kj=function(){return this.Lk()},l.Lj=function(){return ns(this.e.Dh(),this.Lk())},l.il=function(){return u(this.Lk().Hk(),29).kk()},l.jl=function(){return yo(u(this.Lk(),19)).n},l.jj=function(){return this.e},l.kl=function(){return!0},l.ll=function(){return!1},l.ml=function(){return!1},l.nl=function(){return!1},l.dd=function(e){return Np(this,e)},l.Nj=function(e,n){var r;return r=u(e,54),this.ml()?this.kl()?r.Rh(this.e,this.jl(),this.il(),n):r.Rh(this.e,ns(r.Dh(),yo(u(this.Lk(),19))),null,n):r.Rh(this.e,-1-this.Lj(),null,n)},l.Oj=function(e,n){var r;return r=u(e,54),this.ml()?this.kl()?r.Th(this.e,this.jl(),this.il(),n):r.Th(this.e,ns(r.Dh(),yo(u(this.Lk(),19))),null,n):r.Th(this.e,-1-this.Lj(),null,n)},l.al=function(){return!1},l.ol=function(){return!0},l.fk=function(e){return wie(this.d,e)},l.Pj=function(){return Hl(this.e)},l.Qj=function(){return this.i!=0},l.aj=function(e){return XI(this.d,e)},l.Wi=function(e,n){return this.ol()&&this.nl()?yk(this,e,u(n,58)):n},l.pl=function(e){return e.Vh()?jb(this.e,u(e,54)):e},l.Wb=function(e){lJt(this,e)},l.Pc=function(){return fae(this)},l.Qc=function(e){var n;if(this.nl())for(n=this.i-1;n>=0;--n)Dt(this,n);return G5t(this,e)},l.Gk=function(){Ir(this)},l.Zi=function(e,n){return koe(this,e,n)},I(Yi,"EcoreEList",632),D(504,632,ic,mI),l.Li=function(){return!1},l.Lj=function(){return this.c},l.Mj=function(){return!1},l.ol=function(){return!0},l.Si=function(){return!0},l.Wi=function(e,n){return n},l.Yi=function(){return!1},l.c=0,I(Yi,"EObjectEList",504),D(83,504,ic,Ps),l.Mj=function(){return!0},l.ml=function(){return!1},l.al=function(){return!0},I(Yi,"EObjectContainmentEList",83),D(555,83,ic,az),l.Ni=function(){this.b=!0},l.Qj=function(){return this.b},l.Gk=function(){var e;Ir(this),Hl(this.e)?(e=this.b,this.b=!1,Ei(this.e,new jf(this.e,2,this.c,e,!1))):this.b=!1},l.b=!1,I(Yi,"EObjectContainmentEList/Unsettable",555),D(1161,555,ic,Qte),l.Ti=function(e,n){var r,s;return r=u(f_(this,e,n),89),Hl(this.e)&&hE(this,new jI(this.a,7,(wn(),xTe),he(n),(s=r.c,Lt(s,90)?u(s,29):xf),e)),r},l.Uj=function(e,n){return wwn(this,u(e,89),n)},l.Vj=function(e,n){return bwn(this,u(e,89),n)},l.Wj=function(e,n,r){return yyn(this,u(e,89),u(n,89),r)},l.Ij=function(e,n,r,s,o){switch(e){case 3:return zS(this,e,n,r,s,this.i>1);case 5:return zS(this,e,n,r,s,this.i-u(r,15).gc()>0);default:return new Tg(this.e,e,this.c,n,r,s,!0)}},l.Tj=function(){return!0},l.Qj=function(){return lot(this)},l.Gk=function(){Ir(this)},I(Rn,"EClassImpl/1",1161),D(1175,1174,RTt),l.dj=function(e){var n,r,s,o,h,d,m;if(r=e.gj(),r!=8){if(s=Jwn(e),s==0)switch(r){case 1:case 9:{m=e.kj(),m!=null&&(n=_l(u(m,481)),!n.c&&(n.c=new x0),Dq(n.c,e.jj())),d=e.ij(),d!=null&&(o=u(d,481),o.Bb&1||(n=_l(o),!n.c&&(n.c=new x0),Or(n.c,u(e.jj(),29))));break}case 3:{d=e.ij(),d!=null&&(o=u(d,481),o.Bb&1||(n=_l(o),!n.c&&(n.c=new x0),Or(n.c,u(e.jj(),29))));break}case 5:{if(d=e.ij(),d!=null)for(h=u(d,16).Kc();h.Ob();)o=u(h.Pb(),481),o.Bb&1||(n=_l(o),!n.c&&(n.c=new x0),Or(n.c,u(e.jj(),29)));break}case 4:{m=e.kj(),m!=null&&(o=u(m,481),o.Bb&1||(n=_l(o),!n.c&&(n.c=new x0),Dq(n.c,e.jj())));break}case 6:{if(m=e.kj(),m!=null)for(h=u(m,16).Kc();h.Ob();)o=u(h.Pb(),481),o.Bb&1||(n=_l(o),!n.c&&(n.c=new x0),Dq(n.c,e.jj()));break}}this.ql(s)}},l.ql=function(e){T0e(this,e)},l.b=63,I(Rn,"ESuperAdapter",1175),D(1176,1175,RTt,QGt),l.ql=function(e){t3(this,e)},I(Rn,"EClassImpl/10",1176),D(1165,710,ic),l.Ei=function(e,n){return Oot(this,e,n)},l.Fi=function(e){return fhe(this,e)},l.Gi=function(e,n){fO(this,e,n)},l.Hi=function(e){PI(this,e)},l.$i=function(e){return Q3t(this,e)},l.Xi=function(e,n){return Kst(this,e,n)},l.Wk=function(e,n){throw at(new Vr)},l.Ii=function(){return new $6(this)},l.Ji=function(){return new aI(this)},l.Ki=function(e){return QI(this,e)},l.Xk=function(e,n){throw at(new Vr)},l.Fk=function(e){return this},l.Qj=function(){return this.i!=0},l.Wb=function(e){throw at(new Vr)},l.Gk=function(){throw at(new Vr)},I(Yi,"EcoreEList/UnmodifiableEList",1165),D(328,1165,ic,$4),l.Yi=function(){return!1},I(Yi,"EcoreEList/UnmodifiableEList/FastCompare",328),D(1168,328,ic,Kce),l.dd=function(e){var n,r,s;if(Lt(e,179)&&(n=u(e,179),r=n.Lj(),r!=-1)){for(s=this.i;r<s;++r)if($t(this.g[r])===$t(e))return r}return-1},I(Rn,"EClassImpl/1EAllStructuralFeaturesList",1168),D(1162,505,o0,Oc),l.aj=function(e){return Vt(Do,Qme,89,e,0,1)},l.Yi=function(){return!1},I(Rn,"EClassImpl/1EGenericSuperTypeEList",1162),D(633,505,o0,oM),l.aj=function(e){return Vt(Wu,I5,179,e,0,1)},l.Yi=function(){return!1},I(Rn,"EClassImpl/1EStructuralFeatureUniqueEList",633),D(755,505,o0,cM),l.aj=function(e){return Vt(U3,I5,19,e,0,1)},l.Yi=function(){return!1},I(Rn,"EClassImpl/1ReferenceList",755),D(1163,505,o0,JGt),l.Mi=function(e,n){Qun(this,u(n,35))},l.aj=function(e){return Vt(V3,I5,35,e,0,1)},l.Yi=function(){return!1},I(Rn,"EClassImpl/2",1163),D(1164,505,o0,pC),l.aj=function(e){return Vt(V3,I5,35,e,0,1)},l.Yi=function(){return!1},I(Rn,"EClassImpl/3",1164),D(1166,328,ic,xte),l.Fc=function(e){return pdn(this,u(e,35))},l.Hi=function(e){Rrn(this,u(e,35))},I(Rn,"EClassImpl/4",1166),D(1167,328,ic,yte),l.Fc=function(e){return bdn(this,u(e,19))},l.Hi=function(e){jrn(this,u(e,19))},I(Rn,"EClassImpl/5",1167),D(1169,505,o0,Jtt),l.aj=function(e){return Vt(vf,zTt,62,e,0,1)},l.Yi=function(){return!1},I(Rn,"EClassImpl/6",1169),D(1170,505,o0,Ztt),l.aj=function(e){return Vt(U3,I5,19,e,0,1)},l.Yi=function(){return!1},I(Rn,"EClassImpl/7",1170),D(2095,2094,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,71:1}),l.Ei=function(e,n){return Mkt(this,e,n)},l.Fi=function(e){return Mkt(this,this.Ej(),e)},l.Gi=function(e,n){rde(this,e,n)},l.Hi=function(e){U1e(this,e)},l.Wk=function(e,n){return Vmn(this,e,n)},l.Xk=function(e,n){return wmn(this,e,n)},l.Xi=function(e,n){return lge(this,e,n)},l.$i=function(e){return this.xj(e)},l.Ii=function(){return new $6(this)},l.pj=function(){return this.sj()},l.Ji=function(){return new aI(this)},l.Ki=function(e){return QI(this,e)},I(Yi,"DelegatingNotifyingInternalEListImpl",2095),D(756,2095,qTt),l.Li=function(){var e;return e=En($u(this.b),this.Lj()).Hk(),Lt(e,156)&&!Lt(e,468)&&(e.kk().i&1)==0},l.Hc=function(e){var n,r,s,o,h,d,m,k;if(this.ol()){if(k=this.Ej(),k>4)if(this.fk(e)){if(this.al()){if(s=u(e,54),r=s.Eh(),m=r==this.b&&(this.ml()?s.yh(s.Fh(),u(En($u(this.b),this.Lj()).Hk(),29).kk())==yo(u(En($u(this.b),this.Lj()),19)).n:-1-s.Fh()==this.Lj()),this.nl()&&!m&&!r&&s.Jh()){for(o=0;o<k;++o)if(n=jit(this,this.xj(o)),$t(n)===$t(e))return!0}return m}else if(this.ml()&&!this.ll()){if(h=u(e,58).Mh(yo(u(En($u(this.b),this.Lj()),19))),$t(h)===$t(this.b))return!0;if(h==null||!u(h,58).Vh())return!1}}else return!1;if(d=this.uj(e),this.nl()&&!d){for(o=0;o<k;++o)if(s=jit(this,this.xj(o)),$t(s)===$t(e))return!0}return d}else return this.uj(e)},l.Ij=function(e,n,r,s,o){return new Tg(this.b,e,this.Lj(),n,r,s,o)},l.Jj=function(e){Ei(this.b,e)},l.Fk=function(e){return this},l.Kj=function(){return En($u(this.b),this.Lj())},l.Lj=function(){return ns($u(this.b),En($u(this.b),this.Lj()))},l.jj=function(){return this.b},l.kl=function(){return!!En($u(this.b),this.Lj()).Hk().kk()},l.Mj=function(){var e,n;return n=En($u(this.b),this.Lj()),Lt(n,102)?(e=u(n,19),(e.Bb&Fc)!=0||!!yo(u(n,19))):!1},l.ll=function(){var e,n,r,s;return n=En($u(this.b),this.Lj()),Lt(n,102)?(e=u(n,19),r=yo(e),!!r&&(s=r.t,s>1||s==-1)):!1},l.ml=function(){var e,n,r;return n=En($u(this.b),this.Lj()),Lt(n,102)?(e=u(n,19),r=yo(e),!!r):!1},l.nl=function(){var e,n;return n=En($u(this.b),this.Lj()),Lt(n,102)?(e=u(n,19),(e.Bb&po)!=0):!1},l.dd=function(e){var n,r,s,o;if(s=this.zj(e),s>=0)return s;if(this.ol()){for(r=0,o=this.Ej();r<o;++r)if(n=jit(this,this.xj(r)),$t(n)===$t(e))return r}return-1},l.Nj=function(e,n){var r;return r=u(e,54),this.ml()?this.kl()?r.Rh(this.b,yo(u(En($u(this.b),this.Lj()),19)).n,u(En($u(this.b),this.Lj()).Hk(),29).kk(),n):r.Rh(this.b,ns(r.Dh(),yo(u(En($u(this.b),this.Lj()),19))),null,n):r.Rh(this.b,-1-this.Lj(),null,n)},l.Oj=function(e,n){var r;return r=u(e,54),this.ml()?this.kl()?r.Th(this.b,yo(u(En($u(this.b),this.Lj()),19)).n,u(En($u(this.b),this.Lj()).Hk(),29).kk(),n):r.Th(this.b,ns(r.Dh(),yo(u(En($u(this.b),this.Lj()),19))),null,n):r.Th(this.b,-1-this.Lj(),null,n)},l.al=function(){var e,n;return n=En($u(this.b),this.Lj()),Lt(n,102)?(e=u(n,19),(e.Bb&Fc)!=0):!1},l.ol=function(){return Lt(En($u(this.b),this.Lj()).Hk(),90)},l.fk=function(e){return En($u(this.b),this.Lj()).Hk().fk(e)},l.Pj=function(){return Hl(this.b)},l.Qj=function(){return!this.Aj()},l.Si=function(){return En($u(this.b),this.Lj()).Si()},l.Wi=function(e,n){return QO(this,e,n)},l.Wb=function(e){j_(this),gs(this,u(e,15))},l.Pc=function(){var e;if(this.nl())for(e=this.Ej()-1;e>=0;--e)QO(this,e,this.xj(e));return this.Fj()},l.Qc=function(e){var n;if(this.nl())for(n=this.Ej()-1;n>=0;--n)QO(this,n,this.xj(n));return this.Gj(e)},l.Gk=function(){j_(this)},l.Zi=function(e,n){return Zse(this,e,n)},I(Yi,"DelegatingEcoreEList",756),D(1171,756,qTt,dZt),l.qj=function(e,n){Wsn(this,e,u(n,29))},l.rj=function(e){Fin(this,u(e,29))},l.xj=function(e){var n,r;return n=u(Dt(Wc(this.a),e),89),r=n.c,Lt(r,90)?u(r,29):(wn(),xf)},l.Cj=function(e){var n,r;return n=u(r3(Wc(this.a),e),89),r=n.c,Lt(r,90)?u(r,29):(wn(),xf)},l.Dj=function(e,n){return Umn(this,e,u(n,29))},l.Li=function(){return!1},l.Ij=function(e,n,r,s,o){return null},l.sj=function(){return new tKt(this)},l.tj=function(){Ir(Wc(this.a))},l.uj=function(e){return Hue(this,e)},l.vj=function(e){var n,r;for(r=e.Kc();r.Ob();)if(n=r.Pb(),!Hue(this,n))return!1;return!0},l.wj=function(e){var n,r,s;if(Lt(e,15)&&(s=u(e,15),s.gc()==Wc(this.a).i)){for(n=s.Kc(),r=new Zn(this);n.Ob();)if($t(n.Pb())!==$t(ar(r)))return!1;return!0}return!1},l.yj=function(){var e,n,r,s,o;for(r=1,n=new Zn(Wc(this.a));n.e!=n.i.gc();)e=u(ar(n),89),s=(o=e.c,Lt(o,90)?u(o,29):(wn(),xf)),r=31*r+(s?Em(s):0);return r},l.zj=function(e){var n,r,s,o;for(s=0,r=new Zn(Wc(this.a));r.e!=r.i.gc();){if(n=u(ar(r),89),$t(e)===$t((o=n.c,Lt(o,90)?u(o,29):(wn(),xf))))return s;++s}return-1},l.Aj=function(){return Wc(this.a).i==0},l.Bj=function(){return null},l.Ej=function(){return Wc(this.a).i},l.Fj=function(){var e,n,r,s,o,h;for(h=Wc(this.a).i,o=Vt(aa,Ln,1,h,5,1),r=0,n=new Zn(Wc(this.a));n.e!=n.i.gc();)e=u(ar(n),89),o[r++]=(s=e.c,Lt(s,90)?u(s,29):(wn(),xf));return o},l.Gj=function(e){var n,r,s,o,h,d,m;for(m=Wc(this.a).i,e.length<m&&(o=XI(Wl(e).c,m),e=o),e.length>m&&ls(e,m,null),s=0,r=new Zn(Wc(this.a));r.e!=r.i.gc();)n=u(ar(r),89),h=(d=n.c,Lt(d,90)?u(d,29):(wn(),xf)),ls(e,s++,h);return e},l.Hj=function(){var e,n,r,s,o;for(o=new dp,o.a+="[",e=Wc(this.a),n=0,s=Wc(this.a).i;n<s;)Mo(o,ES((r=u(Dt(e,n),89).c,Lt(r,90)?u(r,29):(wn(),xf)))),++n<s&&(o.a+=ao);return o.a+="]",o.a},l.Jj=function(e){},l.Lj=function(){return 10},l.kl=function(){return!0},l.Mj=function(){return!1},l.ll=function(){return!1},l.ml=function(){return!1},l.nl=function(){return!0},l.al=function(){return!1},l.ol=function(){return!0},l.fk=function(e){return Lt(e,90)},l.Qj=function(){return w1n(this.a)},l.Si=function(){return!0},l.Yi=function(){return!0},I(Rn,"EClassImpl/8",1171),D(1172,2062,W7,tKt),l.fd=function(e){return QI(this.a,e)},l.gc=function(){return Wc(this.a.a).i},I(Rn,"EClassImpl/8/1",1172),D(1173,505,o0,bC),l.aj=function(e){return Vt(B1,Ln,142,e,0,1)},l.Yi=function(){return!1},I(Rn,"EClassImpl/9",1173),D(1160,49,v8t,VKt),I(Rn,"EClassImpl/MyHashSet",1160),D(577,364,{110:1,94:1,93:1,142:1,156:1,847:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1},o$),l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Jm(this);case 4:return this.ik();case 5:return this.F;case 6:return n?sh(this):zE(this);case 7:return!this.A&&(this.A=new Ju(Nu,this,7)),this.A;case 8:return Pn(),!!(this.Bb&256)}return Ih(this,e-fr(this.ii()),En((s=u(jn(this,16),29),s||this.ii()),e),n,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Jm(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!zE(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Dh(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:cq(this,Gr(n));return;case 2:Yrt(this,Gr(n));return;case 5:q7(this,Gr(n));return;case 7:!this.A&&(this.A=new Ju(Nu,this,7)),Ir(this.A),!this.A&&(this.A=new Ju(Nu,this,7)),gs(this.A,u(n,16));return;case 8:lH(this,Ie(Me(n)));return}Fh(this,e-fr(this.ii()),En((r=u(jn(this,16),29),r||this.ii()),e),n)},l.ii=function(){return wn(),kTe},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:Lt(this.Cb,184)&&(u(this.Cb,184).tb=null),mu(this,null);return;case 2:p7(this,null),t7(this,this.D);return;case 5:q7(this,null);return;case 7:!this.A&&(this.A=new Ju(Nu,this,7)),Ir(this.A);return;case 8:lH(this,!0);return}Ph(this,e-fr(this.ii()),En((n=u(jn(this,16),29),n||this.ii()),e))},l.pi=function(){Lp((il(),ja),this).xe(),this.Bb|=1},l.ok=function(){var e,n,r;if(!this.c&&(e=bde(sh(this)),!e.dc()))for(r=e.Kc();r.Ob();)n=Gr(r.Pb()),O_(this,n)&&b2n(this);return this.b},l.ik=function(){var e;if(!this.e){e=null;try{e=Jm(this)}catch(n){if(n=es(n),!Lt(n,103))throw at(n)}this.d=null,e&&e.i&1&&(e==Fl?this.d=(Pn(),t2):e==Fr?this.d=he(0):e==Y3?this.d=new na(0):e==ma?this.d=0:e==x2?this.d=Mg(0):e==wx?this.d=w7(0):e==ul?this.d=GI(0):this.d=ZI(0)),this.e=!0}return this.d},l.nk=function(){return(this.Bb&256)!=0},l.rl=function(e){e&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},l.gl=function(e){tce(this,e),this.rl(e)},l.hl=function(e){this.C=e,this.e=!1},l.Ib=function(){var e;return this.Db&64?bH(this):(e=new ef(bH(this)),e.a+=" (serializable: ",gp(e,(this.Bb&256)!=0),e.a+=")",e.a)},l.c=!1,l.d=null,l.e=!1,I(Rn,"EDataTypeImpl",577),D(468,577,{110:1,94:1,93:1,142:1,156:1,847:1,685:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,468:1,158:1,119:1,120:1,691:1},UKt),l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Jm(this);case 4:return u5t(this);case 5:return this.F;case 6:return n?sh(this):zE(this);case 7:return!this.A&&(this.A=new Ju(Nu,this,7)),this.A;case 8:return Pn(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new Jt(Vg,this,9,5)),this.a}return Ih(this,e-fr((wn(),m2)),En((s=u(jn(this,16),29),s||m2),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 6:return this.Cb&&(r=(o=this.Db>>16,o>=0?xot(this,r):this.Cb.Th(this,-1-o,null,r))),hh(this,e,6,r);case 9:return!this.a&&(this.a=new Jt(Vg,this,9,5)),vu(this.a,e,r)}return h=u(En((s=u(jn(this,16),29),s||(wn(),m2)),n),69),h.wk().zk(this,Au(this),n-fr((wn(),m2)),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 6:return hh(this,null,6,r);case 7:return!this.A&&(this.A=new Ju(Nu,this,7)),so(this.A,e,r);case 9:return!this.a&&(this.a=new Jt(Vg,this,9,5)),so(this.a,e,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),m2)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),m2)),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Jm(this);case 4:return!!u5t(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!zE(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Dh(this,e-fr((wn(),m2)),En((n=u(jn(this,16),29),n||m2),e))},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:cq(this,Gr(n));return;case 2:Yrt(this,Gr(n));return;case 5:q7(this,Gr(n));return;case 7:!this.A&&(this.A=new Ju(Nu,this,7)),Ir(this.A),!this.A&&(this.A=new Ju(Nu,this,7)),gs(this.A,u(n,16));return;case 8:lH(this,Ie(Me(n)));return;case 9:!this.a&&(this.a=new Jt(Vg,this,9,5)),Ir(this.a),!this.a&&(this.a=new Jt(Vg,this,9,5)),gs(this.a,u(n,16));return}Fh(this,e-fr((wn(),m2)),En((r=u(jn(this,16),29),r||m2),e),n)},l.ii=function(){return wn(),m2},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:Lt(this.Cb,184)&&(u(this.Cb,184).tb=null),mu(this,null);return;case 2:p7(this,null),t7(this,this.D);return;case 5:q7(this,null);return;case 7:!this.A&&(this.A=new Ju(Nu,this,7)),Ir(this.A);return;case 8:lH(this,!0);return;case 9:!this.a&&(this.a=new Jt(Vg,this,9,5)),Ir(this.a);return}Ph(this,e-fr((wn(),m2)),En((n=u(jn(this,16),29),n||m2),e))},l.pi=function(){var e,n;if(this.a)for(e=0,n=this.a.i;e<n;++e)oI(Dt(this.a,e));Lp((il(),ja),this).xe(),this.Bb|=1},l.ik=function(){return u5t(this)},l.fk=function(e){return e!=null},l.rl=function(e){},I(Rn,"EEnumImpl",468),D(582,448,{110:1,94:1,93:1,2039:1,694:1,155:1,197:1,58:1,114:1,54:1,99:1,582:1,158:1,119:1,120:1},bKt),l.xe=function(){return this.zb},l.Ah=function(e){return jhe(this,e)},l.Lh=function(e,n,r){var s,o;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return he(this.d);case 3:return this.b?this.b:this.a;case 4:return o=this.c,o??this.zb;case 5:return this.Db>>16==5?u(this.Cb,685):null}return Ih(this,e-fr((wn(),Zp)),En((s=u(jn(this,16),29),s||Zp),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 5:return this.Cb&&(r=(o=this.Db>>16,o>=0?jhe(this,r):this.Cb.Th(this,-1-o,null,r))),hh(this,e,5,r)}return h=u(En((s=u(jn(this,16),29),s||(wn(),Zp)),n),69),h.wk().zk(this,Au(this),n-fr((wn(),Zp)),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 5:return hh(this,null,5,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),Zp)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),Zp)),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,685))}return Dh(this,e-fr((wn(),Zp)),En((n=u(jn(this,16),29),n||Zp),e))},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:mu(this,Gr(n));return;case 2:Zst(this,u(n,17).a);return;case 3:B1e(this,u(n,2039));return;case 4:eat(this,Gr(n));return}Fh(this,e-fr((wn(),Zp)),En((r=u(jn(this,16),29),r||Zp),e),n)},l.ii=function(){return wn(),Zp},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:mu(this,null);return;case 2:Zst(this,0);return;case 3:B1e(this,null);return;case 4:eat(this,null);return}Ph(this,e-fr((wn(),Zp)),En((n=u(jn(this,16),29),n||Zp),e))},l.Ib=function(){var e;return e=this.c,e??this.zb},l.b=null,l.c=null,l.d=0,I(Rn,"EEnumLiteralImpl",582);var E_n=os(Rn,"EFactoryImpl/InternalEDateTimeFormat");D(498,1,{2114:1},AM),I(Rn,"EFactoryImpl/1ClientInternalEDateTimeFormat",498),D(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},lm),l.Ch=function(e,n,r){var s;return r=hh(this,e,n,r),this.e&&Lt(e,179)&&(s=QH(this,this.e),s!=this.c&&(r=H7(this,s,r))),r},l.Lh=function(e,n,r){var s;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new Ps(Do,this,1)),this.d;case 2:return n?lV(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return n?dot(this):this.a}return Ih(this,e-fr((wn(),Nv)),En((s=u(jn(this,16),29),s||Nv),e),n,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return Due(this,null,r);case 1:return!this.d&&(this.d=new Ps(Do,this,1)),so(this.d,e,r);case 3:return Mue(this,null,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),Nv)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),Nv)),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Dh(this,e-fr((wn(),Nv)),En((n=u(jn(this,16),29),n||Nv),e))},l.bi=function(e,n){var r;switch(e){case 0:ife(this,u(n,89));return;case 1:!this.d&&(this.d=new Ps(Do,this,1)),Ir(this.d),!this.d&&(this.d=new Ps(Do,this,1)),gs(this.d,u(n,16));return;case 3:zxt(this,u(n,89));return;case 4:a6t(this,u(n,850));return;case 5:YE(this,u(n,142));return}Fh(this,e-fr((wn(),Nv)),En((r=u(jn(this,16),29),r||Nv),e),n)},l.ii=function(){return wn(),Nv},l.ki=function(e){var n;switch(e){case 0:ife(this,null);return;case 1:!this.d&&(this.d=new Ps(Do,this,1)),Ir(this.d);return;case 3:zxt(this,null);return;case 4:a6t(this,null);return;case 5:YE(this,null);return}Ph(this,e-fr((wn(),Nv)),En((n=u(jn(this,16),29),n||Nv),e))},l.Ib=function(){var e;return e=new eh(qf(this)),e.a+=" (expression: ",xct(this,e),e.a+=")",e.a};var qIt;I(Rn,"EGenericTypeImpl",248),D(2067,2062,mU),l.Gi=function(e,n){lZt(this,e,n)},l.Wk=function(e,n){return lZt(this,this.gc(),e),n},l.$i=function(e){return jh(this.pj(),e)},l.Ii=function(){return this.Ji()},l.pj=function(){return new iKt(this)},l.Ji=function(){return this.Ki(0)},l.Ki=function(e){return this.pj().fd(e)},l.Xk=function(e,n){return Ky(this,e,!0),n},l.Ti=function(e,n){var r,s;return s=Tot(this,n),r=this.fd(e),r.Rb(s),s},l.Ui=function(e,n){var r;Ky(this,n,!0),r=this.fd(e),r.Rb(n)},I(Yi,"AbstractSequentialInternalEList",2067),D(495,2067,mU,sI),l.$i=function(e){return jh(this.pj(),e)},l.Ii=function(){return this.b==null?(bp(),bp(),KP):this.sl()},l.pj=function(){return new LQt(this.a,this.b)},l.Ji=function(){return this.b==null?(bp(),bp(),KP):this.sl()},l.Ki=function(e){var n,r;if(this.b==null){if(e<0||e>1)throw at(new Bo(uA+e+", size=0"));return bp(),bp(),KP}for(r=this.sl(),n=0;n<e;++n)eH(r);return r},l.dc=function(){var e,n,r,s,o,h;if(this.b!=null){for(r=0;r<this.b.length;++r)if(e=this.b[r],!this.vl()||this.a.Xh(e)){if(h=this.a.Nh(e,!1),vo(),u(e,69).xk()){for(n=u(h,160),s=0,o=n.gc();s<o;++s)if(Ree(n.Tl(s))&&n.Ul(s)!=null)return!1}else if(e.Jk()){if(!u(h,16).dc())return!1}else if(h!=null)return!1}}return!0},l.Kc=function(){return D4t(this)},l.fd=function(e){var n,r;if(this.b==null){if(e!=0)throw at(new Bo(uA+e+", size=0"));return bp(),bp(),KP}for(r=this.ul()?this.tl():this.sl(),n=0;n<e;++n)eH(r);return r},l.Ti=function(e,n){throw at(new Vr)},l.Ui=function(e,n){throw at(new Vr)},l.sl=function(){return new fz(this.a,this.b)},l.tl=function(){return new Qmt(this.a,this.b)},l.ul=function(){return!0},l.gc=function(){var e,n,r,s,o,h,d;if(o=0,this.b!=null){for(r=0;r<this.b.length;++r)if(e=this.b[r],!this.vl()||this.a.Xh(e))if(d=this.a.Nh(e,!1),vo(),u(e,69).xk())for(n=u(d,160),s=0,h=n.gc();s<h;++s)Ree(n.Tl(s))&&n.Ul(s)!=null&&++o;else e.Jk()?o+=u(d,16).gc():d!=null&&++o}return o},l.vl=function(){return!0};var i0t;I(Yi,"EContentsEList",495),D(1177,495,mU,WJt),l.sl=function(){return new XJt(this.a,this.b)},l.tl=function(){return new YJt(this.a,this.b)},l.vl=function(){return!1},I(Rn,"ENamedElementImpl/1",1177),D(287,1,vU,fz),l.Nb=function(e){Na(this,e)},l.Rb=function(e){throw at(new Vr)},l.wl=function(e){if(this.g!=0||this.e)throw at(new Ro("Iterator already in use or already filtered"));this.e=e},l.Ob=function(){var e,n,r,s,o,h;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!Qfe(this,this.p):!z1e(this))){for(;this.d<this.c.length;)if(n=this.c[this.d++],(!this.e||n.pk()!=QT||n.Lj()!=0)&&(!this.vl()||this.b.Xh(n))){if(h=this.b.Nh(n,this.ul()),this.f=(vo(),u(n,69).xk()),this.f||n.Jk()){if(this.ul()?(s=u(h,15),this.k=s):(s=u(h,71),this.k=this.j=s),Lt(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Ji():this.k.ed(),this.p?Qfe(this,this.p):z1e(this))return o=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(o,76),e.Lk(),r=e.md(),this.i=r):(r=o,this.i=r),this.g=3,!0}else if(h!=null)return this.k=null,this.p=null,r=h,this.i=r,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return o=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(o,76),e.Lk(),r=e.md(),this.i=r):(r=o,this.i=r),this.g=3,!0}},l.Sb=function(){var e,n,r,s,o,h;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!Jfe(this,this.p):!l1e(this))){for(;this.d>0;)if(n=this.c[--this.d],(!this.e||n.pk()!=QT||n.Lj()!=0)&&(!this.vl()||this.b.Xh(n))){if(h=this.b.Nh(n,this.ul()),this.f=(vo(),u(n,69).xk()),this.f||n.Jk()){if(this.ul()?(s=u(h,15),this.k=s):(s=u(h,71),this.k=this.j=s),Lt(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?Jfe(this,this.p):l1e(this))return o=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(o,76),e.Lk(),r=e.md(),this.i=r):(r=o,this.i=r),this.g=-3,!0}else if(h!=null)return this.k=null,this.p=null,r=h,this.i=r,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return o=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(o,76),e.Lk(),r=e.md(),this.i=r):(r=o,this.i=r),this.g=-3,!0}},l.Pb=function(){return eH(this)},l.Tb=function(){return this.a},l.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw at(new cc)},l.Vb=function(){return this.a-1},l.Qb=function(){throw at(new Vr)},l.ul=function(){return!1},l.Wb=function(e){throw at(new Vr)},l.vl=function(){return!0},l.a=0,l.d=0,l.f=!1,l.g=0,l.n=0,l.o=0;var KP;I(Yi,"EContentsEList/FeatureIteratorImpl",287),D(711,287,vU,Qmt),l.ul=function(){return!0},I(Yi,"EContentsEList/ResolvingFeatureIteratorImpl",711),D(1178,711,vU,YJt),l.vl=function(){return!1},I(Rn,"ENamedElementImpl/1/1",1178),D(1179,287,vU,XJt),l.vl=function(){return!1},I(Rn,"ENamedElementImpl/1/2",1179),D(38,152,LN,Ry,Tst,ha,jst,Tg,jf,l4t,Lre,h4t,Dre,A3t,Mre,g4t,Ire,L3t,Ore,f4t,Nre,NS,jI,sst,d4t,Pre,D3t,Fre),l.Kj=function(){return K3t(this)},l.Rj=function(){var e;return e=K3t(this),e?e.ik():null},l.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},l.jj=function(){return this.c},l.Sj=function(){var e;return e=K3t(this),e?e.tk():!1},l.b=-1,I(Rn,"ENotificationImpl",38),D(411,291,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,480:1,54:1,99:1,158:1,411:1,291:1,119:1,120:1},Vnt),l.Ah=function(e){return qhe(this,e)},l.Lh=function(e,n,r){var s,o,h;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Pn(),!!(this.Bb&256);case 3:return Pn(),!!(this.Bb&512);case 4:return he(this.s);case 5:return he(this.t);case 6:return Pn(),h=this.t,h>1||h==-1;case 7:return Pn(),o=this.s,o>=1;case 8:return n?of(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Ju(Nu,this,11)),this.d;case 12:return!this.c&&(this.c=new Jt(Ov,this,12,10)),this.c;case 13:return!this.a&&(this.a=new lI(this,this)),this.a;case 14:return Al(this)}return Ih(this,e-fr((wn(),tb)),En((s=u(jn(this,16),29),s||tb),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 10:return this.Cb&&(r=(o=this.Db>>16,o>=0?qhe(this,r):this.Cb.Th(this,-1-o,null,r))),hh(this,e,10,r);case 12:return!this.c&&(this.c=new Jt(Ov,this,12,10)),vu(this.c,e,r)}return h=u(En((s=u(jn(this,16),29),s||(wn(),tb)),n),69),h.wk().zk(this,Au(this),n-fr((wn(),tb)),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 9:return Vit(this,r);case 10:return hh(this,null,10,r);case 11:return!this.d&&(this.d=new Ju(Nu,this,11)),so(this.d,e,r);case 12:return!this.c&&(this.c=new Jt(Ov,this,12,10)),so(this.c,e,r);case 14:return so(Al(this),e,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),tb)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),tb)),e,r)},l.Wh=function(e){var n,r,s;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return s=this.t,s>1||s==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Al(this.a.a).i!=0&&!(this.b&&hot(this.b));case 14:return!!this.b&&hot(this.b)}return Dh(this,e-fr((wn(),tb)),En((n=u(jn(this,16),29),n||tb),e))},l.bi=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:mu(this,Gr(n));return;case 2:Dp(this,Ie(Me(n)));return;case 3:Mp(this,Ie(Me(n)));return;case 4:Sp(this,u(n,17).a);return;case 5:Hy(this,u(n,17).a);return;case 8:uw(this,u(n,142));return;case 9:s=hd(this,u(n,89),null),s&&s.oj();return;case 11:!this.d&&(this.d=new Ju(Nu,this,11)),Ir(this.d),!this.d&&(this.d=new Ju(Nu,this,11)),gs(this.d,u(n,16));return;case 12:!this.c&&(this.c=new Jt(Ov,this,12,10)),Ir(this.c),!this.c&&(this.c=new Jt(Ov,this,12,10)),gs(this.c,u(n,16));return;case 13:!this.a&&(this.a=new lI(this,this)),j_(this.a),!this.a&&(this.a=new lI(this,this)),gs(this.a,u(n,16));return;case 14:Ir(Al(this)),gs(Al(this),u(n,16));return}Fh(this,e-fr((wn(),tb)),En((r=u(jn(this,16),29),r||tb),e),n)},l.ii=function(){return wn(),tb},l.ki=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:mu(this,null);return;case 2:Dp(this,!0);return;case 3:Mp(this,!0);return;case 4:Sp(this,0);return;case 5:Hy(this,1);return;case 8:uw(this,null);return;case 9:r=hd(this,null,null),r&&r.oj();return;case 11:!this.d&&(this.d=new Ju(Nu,this,11)),Ir(this.d);return;case 12:!this.c&&(this.c=new Jt(Ov,this,12,10)),Ir(this.c);return;case 13:this.a&&j_(this.a);return;case 14:this.b&&Ir(this.b);return}Ph(this,e-fr((wn(),tb)),En((n=u(jn(this,16),29),n||tb),e))},l.pi=function(){var e,n;if(this.c)for(e=0,n=this.c.i;e<n;++e)oI(Dt(this.c,e));of(this),this.Bb|=1},I(Rn,"EOperationImpl",411),D(513,756,qTt,lI),l.qj=function(e,n){Xsn(this,e,u(n,142))},l.rj=function(e){Bin(this,u(e,142))},l.xj=function(e){var n,r;return n=u(Dt(Al(this.a),e),89),r=n.c,r||(wn(),Sd)},l.Cj=function(e){var n,r;return n=u(r3(Al(this.a),e),89),r=n.c,r||(wn(),Sd)},l.Dj=function(e,n){return Rwn(this,e,u(n,142))},l.Li=function(){return!1},l.Ij=function(e,n,r,s,o){return null},l.sj=function(){return new eKt(this)},l.tj=function(){Ir(Al(this.a))},l.uj=function(e){return Kue(this,e)},l.vj=function(e){var n,r;for(r=e.Kc();r.Ob();)if(n=r.Pb(),!Kue(this,n))return!1;return!0},l.wj=function(e){var n,r,s;if(Lt(e,15)&&(s=u(e,15),s.gc()==Al(this.a).i)){for(n=s.Kc(),r=new Zn(this);n.Ob();)if($t(n.Pb())!==$t(ar(r)))return!1;return!0}return!1},l.yj=function(){var e,n,r,s,o;for(r=1,n=new Zn(Al(this.a));n.e!=n.i.gc();)e=u(ar(n),89),s=(o=e.c,o||(wn(),Sd)),r=31*r+(s?$i(s):0);return r},l.zj=function(e){var n,r,s,o;for(s=0,r=new Zn(Al(this.a));r.e!=r.i.gc();){if(n=u(ar(r),89),$t(e)===$t((o=n.c,o||(wn(),Sd))))return s;++s}return-1},l.Aj=function(){return Al(this.a).i==0},l.Bj=function(){return null},l.Ej=function(){return Al(this.a).i},l.Fj=function(){var e,n,r,s,o,h;for(h=Al(this.a).i,o=Vt(aa,Ln,1,h,5,1),r=0,n=new Zn(Al(this.a));n.e!=n.i.gc();)e=u(ar(n),89),o[r++]=(s=e.c,s||(wn(),Sd));return o},l.Gj=function(e){var n,r,s,o,h,d,m;for(m=Al(this.a).i,e.length<m&&(o=XI(Wl(e).c,m),e=o),e.length>m&&ls(e,m,null),s=0,r=new Zn(Al(this.a));r.e!=r.i.gc();)n=u(ar(r),89),h=(d=n.c,d||(wn(),Sd)),ls(e,s++,h);return e},l.Hj=function(){var e,n,r,s,o;for(o=new dp,o.a+="[",e=Al(this.a),n=0,s=Al(this.a).i;n<s;)Mo(o,ES((r=u(Dt(e,n),89).c,r||(wn(),Sd)))),++n<s&&(o.a+=ao);return o.a+="]",o.a},l.Jj=function(e){},l.Lj=function(){return 13},l.kl=function(){return!0},l.Mj=function(){return!1},l.ll=function(){return!1},l.ml=function(){return!1},l.nl=function(){return!0},l.al=function(){return!1},l.ol=function(){return!0},l.fk=function(e){return Lt(e,142)},l.Qj=function(){return m1n(this.a)},l.Si=function(){return!0},l.Yi=function(){return!0},I(Rn,"EOperationImpl/1",513),D(1376,2062,W7,eKt),l.fd=function(e){return QI(this.a,e)},l.gc=function(){return Al(this.a.a).i},I(Rn,"EOperationImpl/1/1",1376),D(1377,555,ic,Jte),l.Ti=function(e,n){var r,s;return r=u(f_(this,e,n),89),Hl(this.e)&&hE(this,new jI(this.a,7,(wn(),CTe),he(n),(s=r.c,s||Sd),e)),r},l.Uj=function(e,n){return t2n(this,u(e,89),n)},l.Vj=function(e,n){return Zbn(this,u(e,89),n)},l.Wj=function(e,n,r){return Qwn(this,u(e,89),u(n,89),r)},l.Ij=function(e,n,r,s,o){switch(e){case 3:return zS(this,e,n,r,s,this.i>1);case 5:return zS(this,e,n,r,s,this.i-u(r,15).gc()>0);default:return new Tg(this.e,e,this.c,n,r,s,!0)}},l.Tj=function(){return!0},l.Qj=function(){return hot(this)},l.Gk=function(){Ir(this)},I(Rn,"EOperationImpl/2",1377),D(507,1,{2037:1,507:1},fQt),I(Rn,"EPackageImpl/1",507),D(14,83,ic,Jt),l.il=function(){return this.d},l.jl=function(){return this.b},l.ml=function(){return!0},l.b=0,I(Yi,"EObjectContainmentWithInverseEList",14),D(365,14,ic,z6),l.nl=function(){return!0},l.Wi=function(e,n){return yk(this,e,u(n,58))},I(Yi,"EObjectContainmentWithInverseEList/Resolving",365),D(307,365,ic,Iy),l.Ni=function(){this.a.tb=null},I(Rn,"EPackageImpl/2",307),D(1278,1,{},tet),I(Rn,"EPackageImpl/3",1278),D(733,45,E5,Z2t),l._b=function(e){return ba(e)?ost(this,e):!!Eo(this.f,e)},I(Rn,"EPackageRegistryImpl",733),D(518,291,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,480:1,54:1,99:1,158:1,518:1,291:1,119:1,120:1},Unt),l.Ah=function(e){return Hhe(this,e)},l.Lh=function(e,n,r){var s,o,h;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Pn(),!!(this.Bb&256);case 3:return Pn(),!!(this.Bb&512);case 4:return he(this.s);case 5:return he(this.t);case 6:return Pn(),h=this.t,h>1||h==-1;case 7:return Pn(),o=this.s,o>=1;case 8:return n?of(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return Ih(this,e-fr((wn(),K3)),En((s=u(jn(this,16),29),s||K3),e),n,r)},l.Sh=function(e,n,r){var s,o,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),vu(this.Ab,e,r);case 10:return this.Cb&&(r=(o=this.Db>>16,o>=0?Hhe(this,r):this.Cb.Th(this,-1-o,null,r))),hh(this,e,10,r)}return h=u(En((s=u(jn(this,16),29),s||(wn(),K3)),n),69),h.wk().zk(this,Au(this),n-fr((wn(),K3)),e,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 9:return Vit(this,r);case 10:return hh(this,null,10,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),K3)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),K3)),e,r)},l.Wh=function(e){var n,r,s;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return s=this.t,s>1||s==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Dh(this,e-fr((wn(),K3)),En((n=u(jn(this,16),29),n||K3),e))},l.ii=function(){return wn(),K3},I(Rn,"EParameterImpl",518),D(102,461,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,480:1,54:1,99:1,158:1,102:1,461:1,291:1,119:1,120:1,692:1},nvt),l.Lh=function(e,n,r){var s,o,h,d;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Pn(),!!(this.Bb&256);case 3:return Pn(),!!(this.Bb&512);case 4:return he(this.s);case 5:return he(this.t);case 6:return Pn(),d=this.t,d>1||d==-1;case 7:return Pn(),o=this.s,o>=1;case 8:return n?of(this):this.r;case 9:return this.q;case 10:return Pn(),!!(this.Bb&Uf);case 11:return Pn(),!!(this.Bb&b3);case 12:return Pn(),!!(this.Bb&u3);case 13:return this.j;case 14:return P7(this);case 15:return Pn(),!!(this.Bb&ol);case 16:return Pn(),!!(this.Bb&Jd);case 17:return Py(this);case 18:return Pn(),!!(this.Bb&Fc);case 19:return Pn(),h=yo(this),!!(h&&h.Bb&Fc);case 20:return Pn(),!!(this.Bb&po);case 21:return n?yo(this):this.b;case 22:return n?Z4t(this):ase(this);case 23:return!this.a&&(this.a=new G4(V3,this,23)),this.a}return Ih(this,e-fr((wn(),dx)),En((s=u(jn(this,16),29),s||dx),e),n,r)},l.Wh=function(e){var n,r,s,o;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return o=this.t,o>1||o==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&Uf)==0;case 11:return(this.Bb&b3)!=0;case 12:return(this.Bb&u3)!=0;case 13:return this.j!=null;case 14:return P7(this)!=null;case 15:return(this.Bb&ol)!=0;case 16:return(this.Bb&Jd)!=0;case 17:return!!Py(this);case 18:return(this.Bb&Fc)!=0;case 19:return s=yo(this),!!s&&(s.Bb&Fc)!=0;case 20:return(this.Bb&po)==0;case 21:return!!this.b;case 22:return!!ase(this);case 23:return!!this.a&&this.a.i!=0}return Dh(this,e-fr((wn(),dx)),En((n=u(jn(this,16),29),n||dx),e))},l.bi=function(e,n){var r,s;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:wst(this,Gr(n));return;case 2:Dp(this,Ie(Me(n)));return;case 3:Mp(this,Ie(Me(n)));return;case 4:Sp(this,u(n,17).a);return;case 5:Hy(this,u(n,17).a);return;case 8:uw(this,u(n,142));return;case 9:s=hd(this,u(n,89),null),s&&s.oj();return;case 10:m7(this,Ie(Me(n)));return;case 11:x7(this,Ie(Me(n)));return;case 12:v7(this,Ie(Me(n)));return;case 13:fmt(this,Gr(n));return;case 15:y7(this,Ie(Me(n)));return;case 16:k7(this,Ie(Me(n)));return;case 18:wfn(this,Ie(Me(n)));return;case 20:M5t(this,Ie(Me(n)));return;case 21:L4t(this,u(n,19));return;case 23:!this.a&&(this.a=new G4(V3,this,23)),Ir(this.a),!this.a&&(this.a=new G4(V3,this,23)),gs(this.a,u(n,16));return}Fh(this,e-fr((wn(),dx)),En((r=u(jn(this,16),29),r||dx),e),n)},l.ii=function(){return wn(),dx},l.ki=function(e){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:Lt(this.Cb,90)&&t3(_l(u(this.Cb,90)),4),mu(this,null);return;case 2:Dp(this,!0);return;case 3:Mp(this,!0);return;case 4:Sp(this,0);return;case 5:Hy(this,1);return;case 8:uw(this,null);return;case 9:r=hd(this,null,null),r&&r.oj();return;case 10:m7(this,!0);return;case 11:x7(this,!1);return;case 12:v7(this,!1);return;case 13:this.i=null,Gq(this,null);return;case 15:y7(this,!1);return;case 16:k7(this,!1);return;case 18:D5t(this,!1),Lt(this.Cb,90)&&t3(_l(u(this.Cb,90)),2);return;case 20:M5t(this,!0);return;case 21:L4t(this,null);return;case 23:!this.a&&(this.a=new G4(V3,this,23)),Ir(this.a);return}Ph(this,e-fr((wn(),dx)),En((n=u(jn(this,16),29),n||dx),e))},l.pi=function(){Z4t(this),RE($o((il(),ja),this)),of(this),this.Bb|=1},l.uk=function(){return yo(this)},l._k=function(){var e;return e=yo(this),!!e&&(e.Bb&Fc)!=0},l.al=function(){return(this.Bb&Fc)!=0},l.bl=function(){return(this.Bb&po)!=0},l.Yk=function(e,n){return this.c=null,y5t(this,e,n)},l.Ib=function(){var e;return this.Db&64?oV(this):(e=new ef(oV(this)),e.a+=" (containment: ",gp(e,(this.Bb&Fc)!=0),e.a+=", resolveProxies: ",gp(e,(this.Bb&po)!=0),e.a+=")",e.a)},I(Rn,"EReferenceImpl",102),D(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},wC),l.Fb=function(e){return this===e},l.ld=function(){return this.b},l.md=function(){return this.c},l.Hb=function(){return Em(this)},l.Di=function(e){kun(this,Gr(e))},l.nd=function(e){return oun(this,Gr(e))},l.Lh=function(e,n,r){var s;switch(e){case 0:return this.b;case 1:return this.c}return Ih(this,e-fr((wn(),wo)),En((s=u(jn(this,16),29),s||wo),e),n,r)},l.Wh=function(e){var n;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return Dh(this,e-fr((wn(),wo)),En((n=u(jn(this,16),29),n||wo),e))},l.bi=function(e,n){var r;switch(e){case 0:Eun(this,Gr(n));return;case 1:S4t(this,Gr(n));return}Fh(this,e-fr((wn(),wo)),En((r=u(jn(this,16),29),r||wo),e),n)},l.ii=function(){return wn(),wo},l.ki=function(e){var n;switch(e){case 0:C4t(this,null);return;case 1:S4t(this,null);return}Ph(this,e-fr((wn(),wo)),En((n=u(jn(this,16),29),n||wo),e))},l.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:_p(e)),this.a},l.Ci=function(e){this.a=e},l.Ib=function(){var e;return this.Db&64?qf(this):(e=new ef(qf(this)),e.a+=" (key: ",Mo(e,this.b),e.a+=", value: ",Mo(e,this.c),e.a+=")",e.a)},l.a=-1,l.b=null,l.c=null;var Mc=I(Rn,"EStringToStringMapEntryImpl",561),MTe=os(Yi,"FeatureMap/Entry/Internal");D(576,1,yU),l.xl=function(e){return this.yl(u(e,54))},l.yl=function(e){return this.xl(e)},l.Fb=function(e){var n,r;return this===e?!0:Lt(e,76)?(n=u(e,76),n.Lk()==this.c?(r=this.md(),r==null?n.md()==null:Ti(r,n.md())):!1):!1},l.Lk=function(){return this.c},l.Hb=function(){var e;return e=this.md(),$i(this.c)^(e==null?0:$i(e))},l.Ib=function(){var e,n;return e=this.c,n=sh(e.qk()).yi(),e.xe(),(n!=null&&n.length!=0?n+":"+e.xe():e.xe())+"="+this.md()},I(Rn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),D(791,576,yU,hvt),l.yl=function(e){return new hvt(this.c,e)},l.md=function(){return this.a},l.zl=function(e,n,r){return apn(this,e,this.a,n,r)},l.Al=function(e,n,r){return opn(this,e,this.a,n,r)},I(Rn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),D(1350,1,{},dQt),l.yk=function(e,n,r,s,o){var h;return h=u(UE(e,this.b),220),h.Yl(this.a).Fk(s)},l.zk=function(e,n,r,s,o){var h;return h=u(UE(e,this.b),220),h.Pl(this.a,s,o)},l.Ak=function(e,n,r,s,o){var h;return h=u(UE(e,this.b),220),h.Ql(this.a,s,o)},l.Bk=function(e,n,r){var s;return s=u(UE(e,this.b),220),s.Yl(this.a).Qj()},l.Ck=function(e,n,r,s){var o;o=u(UE(e,this.b),220),o.Yl(this.a).Wb(s)},l.Dk=function(e,n,r){return u(UE(e,this.b),220).Yl(this.a)},l.Ek=function(e,n,r){var s;s=u(UE(e,this.b),220),s.Yl(this.a).Gk()},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),D(91,1,{},mp,X2,yp,ew),l.yk=function(e,n,r,s,o){var h;if(h=n.li(r),h==null&&n.mi(r,h=vV(this,e)),!o)switch(this.e){case 50:case 41:return u(h,597).bk();case 40:return u(h,220).Vl()}return h},l.zk=function(e,n,r,s,o){var h,d;return d=n.li(r),d==null&&n.mi(r,d=vV(this,e)),h=u(d,71).Wk(s,o),h},l.Ak=function(e,n,r,s,o){var h;return h=n.li(r),h!=null&&(o=u(h,71).Xk(s,o)),o},l.Bk=function(e,n,r){var s;return s=n.li(r),s!=null&&u(s,79).Qj()},l.Ck=function(e,n,r,s){var o;o=u(n.li(r),79),!o&&n.mi(r,o=vV(this,e)),o.Wb(s)},l.Dk=function(e,n,r){var s,o;return o=n.li(r),o==null&&n.mi(r,o=vV(this,e)),Lt(o,79)?u(o,79):(s=u(n.li(r),15),new nKt(s))},l.Ek=function(e,n,r){var s;s=u(n.li(r),79),!s&&n.mi(r,s=vV(this,e)),s.Gk()},l.b=0,l.e=0,I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),D(512,1,{}),l.zk=function(e,n,r,s,o){throw at(new Vr)},l.Ak=function(e,n,r,s,o){throw at(new Vr)},l.Dk=function(e,n,r){return new hne(this,e,n,r)};var Q0;I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),D(1367,1,aht,hne),l.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},l.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},l.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},l.Gk=function(){this.a.Ek(this.c,this.d,this.b)},l.b=0,I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),D(784,512,{},Zyt),l.yk=function(e,n,r,s,o){return oct(e,e.Ph(),e.Fh())==this.b?this.bl()&&s?Kot(e):e.Ph():null},l.zk=function(e,n,r,s,o){var h,d;return e.Ph()&&(o=(h=e.Fh(),h>=0?e.Ah(o):e.Ph().Th(e,-1-h,null,o))),d=ns(e.Dh(),this.e),e.Ch(s,d,o)},l.Ak=function(e,n,r,s,o){var h;return h=ns(e.Dh(),this.e),e.Ch(null,h,o)},l.Bk=function(e,n,r){var s;return s=ns(e.Dh(),this.e),!!e.Ph()&&e.Fh()==s},l.Ck=function(e,n,r,s){var o,h,d,m,k;if(s!=null&&!hct(this.a,s))throw at(new fE(xU+(Lt(s,58)?$xt(u(s,58).Dh()):a4t(Wl(s)))+kU+this.a+"'"));if(o=e.Ph(),d=ns(e.Dh(),this.e),$t(s)!==$t(o)||e.Fh()!=d&&s!=null){if(_7(e,u(s,58)))throw at(new zn(oA+e.Ib()));k=null,o&&(k=(h=e.Fh(),h>=0?e.Ah(k):e.Ph().Th(e,-1-h,null,k))),m=u(s,54),m&&(k=m.Rh(e,ns(m.Dh(),this.b),null,k)),k=e.Ch(m,d,k),k&&k.oj()}else e.vh()&&e.wh()&&Ei(e,new ha(e,1,d,s,s))},l.Ek=function(e,n,r){var s,o,h,d;s=e.Ph(),s?(d=(o=e.Fh(),o>=0?e.Ah(null):e.Ph().Th(e,-1-o,null,null)),h=ns(e.Dh(),this.e),d=e.Ch(null,h,d),d&&d.oj()):e.vh()&&e.wh()&&Ei(e,new NS(e,1,this.e,null,null))},l.bl=function(){return!1},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),D(1351,784,{},ete),l.bl=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),D(574,512,{}),l.yk=function(e,n,r,s,o){var h;return h=n.li(r),h==null?this.b:$t(h)===$t(Q0)?null:h},l.Bk=function(e,n,r){var s;return s=n.li(r),s!=null&&($t(s)===$t(Q0)||!Ti(s,this.b))},l.Ck=function(e,n,r,s){var o,h;e.vh()&&e.wh()?(o=(h=n.li(r),h==null?this.b:$t(h)===$t(Q0)?null:h),s==null?this.c!=null?(n.mi(r,null),s=this.b):this.b!=null?n.mi(r,Q0):n.mi(r,null):(this.Bl(s),n.mi(r,s)),Ei(e,this.d.Cl(e,1,this.e,o,s))):s==null?this.c!=null?n.mi(r,null):this.b!=null?n.mi(r,Q0):n.mi(r,null):(this.Bl(s),n.mi(r,s))},l.Ek=function(e,n,r){var s,o;e.vh()&&e.wh()?(s=(o=n.li(r),o==null?this.b:$t(o)===$t(Q0)?null:o),n.ni(r),Ei(e,this.d.Cl(e,1,this.e,s,this.b))):n.ni(r)},l.Bl=function(e){throw at(new dKt)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),D(O5,1,{},mC),l.Cl=function(e,n,r,s,o){return new NS(e,n,r,s,o)},l.Dl=function(e,n,r,s,o,h){return new sst(e,n,r,s,o,h)};var HIt,VIt,UIt,GIt,KIt,WIt,YIt,s0t,XIt;I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",O5),D(1368,O5,{},b1),l.Cl=function(e,n,r,s,o){return new D3t(e,n,r,Ie(Me(s)),Ie(Me(o)))},l.Dl=function(e,n,r,s,o,h){return new Fre(e,n,r,Ie(Me(s)),Ie(Me(o)),h)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),D(1369,O5,{},uM),l.Cl=function(e,n,r,s,o){return new l4t(e,n,r,u(s,222).a,u(o,222).a)},l.Dl=function(e,n,r,s,o,h){return new Lre(e,n,r,u(s,222).a,u(o,222).a,h)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),D(1370,O5,{},lM),l.Cl=function(e,n,r,s,o){return new h4t(e,n,r,u(s,180).a,u(o,180).a)},l.Dl=function(e,n,r,s,o,h){return new Dre(e,n,r,u(s,180).a,u(o,180).a,h)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),D(1371,O5,{},u6),l.Cl=function(e,n,r,s,o){return new A3t(e,n,r,Rt(Ht(s)),Rt(Ht(o)))},l.Dl=function(e,n,r,s,o,h){return new Mre(e,n,r,Rt(Ht(s)),Rt(Ht(o)),h)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),D(1372,O5,{},eet),l.Cl=function(e,n,r,s,o){return new g4t(e,n,r,u(s,161).a,u(o,161).a)},l.Dl=function(e,n,r,s,o,h){return new Ire(e,n,r,u(s,161).a,u(o,161).a,h)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),D(1373,O5,{},net),l.Cl=function(e,n,r,s,o){return new L3t(e,n,r,u(s,17).a,u(o,17).a)},l.Dl=function(e,n,r,s,o,h){return new Ore(e,n,r,u(s,17).a,u(o,17).a,h)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),D(1374,O5,{},ret),l.Cl=function(e,n,r,s,o){return new f4t(e,n,r,u(s,168).a,u(o,168).a)},l.Dl=function(e,n,r,s,o,h){return new Nre(e,n,r,u(s,168).a,u(o,168).a,h)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),D(1375,O5,{},iet),l.Cl=function(e,n,r,s,o){return new d4t(e,n,r,u(s,191).a,u(o,191).a)},l.Dl=function(e,n,r,s,o,h){return new Pre(e,n,r,u(s,191).a,u(o,191).a,h)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),D(1353,574,{},fne),l.Bl=function(e){if(!this.a.fk(e))throw at(new fE(xU+Wl(e)+kU+this.a+"'"))},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),D(1354,574,{},Zte),l.Bl=function(e){},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),D(785,574,{}),l.Bk=function(e,n,r){var s;return s=n.li(r),s!=null},l.Ck=function(e,n,r,s){var o,h;e.vh()&&e.wh()?(o=!0,h=n.li(r),h==null?(o=!1,h=this.b):$t(h)===$t(Q0)&&(h=null),s==null?this.c!=null?(n.mi(r,null),s=this.b):n.mi(r,Q0):(this.Bl(s),n.mi(r,s)),Ei(e,this.d.Dl(e,1,this.e,h,s,!o))):s==null?this.c!=null?n.mi(r,null):n.mi(r,Q0):(this.Bl(s),n.mi(r,s))},l.Ek=function(e,n,r){var s,o;e.vh()&&e.wh()?(s=!0,o=n.li(r),o==null?(s=!1,o=this.b):$t(o)===$t(Q0)&&(o=null),n.ni(r),Ei(e,this.d.Dl(e,2,this.e,o,this.b,s))):n.ni(r)},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),D(1355,785,{},dne),l.Bl=function(e){if(!this.a.fk(e))throw at(new fE(xU+Wl(e)+kU+this.a+"'"))},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),D(1356,785,{},tee),l.Bl=function(e){},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),D(410,512,{},Iz),l.yk=function(e,n,r,s,o){var h,d,m,k,T;if(T=n.li(r),this.tk()&&$t(T)===$t(Q0))return null;if(this.bl()&&s&&T!=null){if(m=u(T,54),m.Vh()&&(k=jb(e,m),m!=k)){if(!hct(this.a,k))throw at(new fE(xU+Wl(k)+kU+this.a+"'"));n.mi(r,T=k),this.al()&&(h=u(k,54),d=m.Th(e,this.b?ns(m.Dh(),this.b):-1-ns(e.Dh(),this.e),null,null),!h.Ph()&&(d=h.Rh(e,this.b?ns(h.Dh(),this.b):-1-ns(e.Dh(),this.e),null,d)),d&&d.oj()),e.vh()&&e.wh()&&Ei(e,new NS(e,9,this.e,m,k))}return T}else return T},l.zk=function(e,n,r,s,o){var h,d;return d=n.li(r),$t(d)===$t(Q0)&&(d=null),n.mi(r,s),this.Mj()?$t(d)!==$t(s)&&d!=null&&(h=u(d,54),o=h.Th(e,ns(h.Dh(),this.b),null,o)):this.al()&&d!=null&&(o=u(d,54).Th(e,-1-ns(e.Dh(),this.e),null,o)),e.vh()&&e.wh()&&(!o&&(o=new xb(4)),o.nj(new NS(e,1,this.e,d,s))),o},l.Ak=function(e,n,r,s,o){var h;return h=n.li(r),$t(h)===$t(Q0)&&(h=null),n.ni(r),e.vh()&&e.wh()&&(!o&&(o=new xb(4)),this.tk()?o.nj(new NS(e,2,this.e,h,null)):o.nj(new NS(e,1,this.e,h,null))),o},l.Bk=function(e,n,r){var s;return s=n.li(r),s!=null},l.Ck=function(e,n,r,s){var o,h,d,m,k;if(s!=null&&!hct(this.a,s))throw at(new fE(xU+(Lt(s,58)?$xt(u(s,58).Dh()):a4t(Wl(s)))+kU+this.a+"'"));k=n.li(r),m=k!=null,this.tk()&&$t(k)===$t(Q0)&&(k=null),d=null,this.Mj()?$t(k)!==$t(s)&&(k!=null&&(o=u(k,54),d=o.Th(e,ns(o.Dh(),this.b),null,d)),s!=null&&(o=u(s,54),d=o.Rh(e,ns(o.Dh(),this.b),null,d))):this.al()&&$t(k)!==$t(s)&&(k!=null&&(d=u(k,54).Th(e,-1-ns(e.Dh(),this.e),null,d)),s!=null&&(d=u(s,54).Rh(e,-1-ns(e.Dh(),this.e),null,d))),s==null&&this.tk()?n.mi(r,Q0):n.mi(r,s),e.vh()&&e.wh()?(h=new sst(e,1,this.e,k,s,this.tk()&&!m),d?(d.nj(h),d.oj()):Ei(e,h)):d&&d.oj()},l.Ek=function(e,n,r){var s,o,h,d,m;m=n.li(r),d=m!=null,this.tk()&&$t(m)===$t(Q0)&&(m=null),h=null,m!=null&&(this.Mj()?(s=u(m,54),h=s.Th(e,ns(s.Dh(),this.b),null,h)):this.al()&&(h=u(m,54).Th(e,-1-ns(e.Dh(),this.e),null,h))),n.ni(r),e.vh()&&e.wh()?(o=new sst(e,this.tk()?2:1,this.e,m,null,d),h?(h.nj(o),h.oj()):Ei(e,o)):h&&h.oj()},l.Mj=function(){return!1},l.al=function(){return!1},l.bl=function(){return!1},l.tk=function(){return!1},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),D(575,410,{},uit),l.al=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),D(1359,575,{},JJt),l.bl=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),D(787,575,{},Jmt),l.tk=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),D(1361,787,{},ZJt),l.bl=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),D(650,575,{},kit),l.Mj=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),D(1360,650,{},nte),l.bl=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),D(788,650,{},Rvt),l.tk=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),D(1362,788,{},rte),l.bl=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),D(651,410,{},Zmt),l.bl=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),D(1363,651,{},tZt),l.tk=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),D(789,651,{},Fvt),l.Mj=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),D(1364,789,{},ite),l.tk=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),D(1357,410,{},eZt),l.tk=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),D(786,410,{},Bvt),l.Mj=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),D(1358,786,{},ste),l.tk=function(){return!0},I(Rn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),D(790,576,yU,Nyt),l.yl=function(e){return new Nyt(this.a,this.c,e)},l.md=function(){return this.b},l.zl=function(e,n,r){return i0n(this,e,this.b,r)},l.Al=function(e,n,r){return s0n(this,e,this.b,r)},I(Rn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),D(1365,1,aht,nKt),l.Fk=function(e){return this.a},l.Qj=function(){return Lt(this.a,97)?u(this.a,97).Qj():!this.a.dc()},l.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},l.Gk=function(){Lt(this.a,97)?u(this.a,97).Gk():this.a.$b()},I(Rn,"EStructuralFeatureImpl/SettingMany",1365),D(1366,576,yU,_ie),l.xl=function(e){return new fit((Ni(),DL),this.b.ri(this.a,e))},l.md=function(){return null},l.zl=function(e,n,r){return r},l.Al=function(e,n,r){return r},I(Rn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),D(652,576,yU,fit),l.xl=function(e){return new fit(this.c,e)},l.md=function(){return this.a},l.zl=function(e,n,r){return r},l.Al=function(e,n,r){return r},I(Rn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),D(403,505,o0,x0),l.aj=function(e){return Vt(mf,Ln,29,e,0,1)},l.Yi=function(){return!1},I(Rn,"ESuperAdapter/1",403),D(456,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,456:1,119:1,120:1},vC),l.Lh=function(e,n,r){var s;switch(e){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new DS(this,Do,this)),this.a}return Ih(this,e-fr((wn(),Pv)),En((s=u(jn(this,16),29),s||Pv),e),n,r)},l.Uh=function(e,n,r){var s,o;switch(n){case 0:return!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),so(this.Ab,e,r);case 2:return!this.a&&(this.a=new DS(this,Do,this)),so(this.a,e,r)}return o=u(En((s=u(jn(this,16),29),s||(wn(),Pv)),n),69),o.wk().Ak(this,Au(this),n-fr((wn(),Pv)),e,r)},l.Wh=function(e){var n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Dh(this,e-fr((wn(),Pv)),En((n=u(jn(this,16),29),n||Pv),e))},l.bi=function(e,n){var r;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab),!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),gs(this.Ab,u(n,16));return;case 1:mu(this,Gr(n));return;case 2:!this.a&&(this.a=new DS(this,Do,this)),Ir(this.a),!this.a&&(this.a=new DS(this,Do,this)),gs(this.a,u(n,16));return}Fh(this,e-fr((wn(),Pv)),En((r=u(jn(this,16),29),r||Pv),e),n)},l.ii=function(){return wn(),Pv},l.ki=function(e){var n;switch(e){case 0:!this.Ab&&(this.Ab=new Jt(ci,this,0,3)),Ir(this.Ab);return;case 1:mu(this,null);return;case 2:!this.a&&(this.a=new DS(this,Do,this)),Ir(this.a);return}Ph(this,e-fr((wn(),Pv)),En((n=u(jn(this,16),29),n||Pv),e))},I(Rn,"ETypeParameterImpl",456),D(457,83,ic,DS),l.Nj=function(e,n){return v3n(this,u(e,89),n)},l.Oj=function(e,n){return y3n(this,u(e,89),n)},I(Rn,"ETypeParameterImpl/1",457),D(647,45,E5,Gnt),l.ec=function(){return new s$(this)},I(Rn,"ETypeParameterImpl/2",647),D(570,dd,sl,s$),l.Fc=function(e){return _Zt(this,u(e,89))},l.Gc=function(e){var n,r,s;for(s=!1,r=e.Kc();r.Ob();)n=u(r.Pb(),89),hi(this.a,n,"")==null&&(s=!0);return s},l.$b=function(){dl(this.a)},l.Hc=function(e){return Tu(this.a,e)},l.Kc=function(){var e;return e=new sw(new mr(this.a).a),new a$(e)},l.Mc=function(e){return wse(this,e)},l.gc=function(){return QC(this.a)},I(Rn,"ETypeParameterImpl/2/1",570),D(571,1,wa,a$),l.Nb=function(e){Na(this,e)},l.Pb=function(){return u(Um(this.a).ld(),89)},l.Ob=function(){return this.a.b},l.Qb=function(){Sae(this.a)},I(Rn,"ETypeParameterImpl/2/1/1",571),D(1329,45,E5,GKt),l._b=function(e){return ba(e)?ost(this,e):!!Eo(this.f,e)},l.xc=function(e){var n,r;return n=ba(e)?nu(this,e):Ko(Eo(this.f,e)),Lt(n,851)?(r=u(n,851),n=r.Kk(),hi(this,u(e,241),n),n):n??(e==null?(hrt(),OTe):null)},I(Rn,"EValidatorRegistryImpl",1329),D(1349,720,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},l6),l.ri=function(e,n){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return n==null?null:rc(n);case 25:return bgn(n);case 27:return D0n(n);case 28:return M0n(n);case 29:return n==null?null:iJt(TL[0],u(n,206));case 41:return n==null?"":V2(u(n,296));case 42:return rc(n);case 50:return Gr(n);default:throw at(new zn(lT+e.xe()+fv))}},l.si=function(e){var n,r,s,o,h,d,m,k,T,A,P,$,U,J,tt,ht;switch(e.G==-1&&(e.G=($=sh(e),$?Np($.vi(),e):-1)),e.G){case 0:return r=new Hnt,r;case 1:return n=new aM,n;case 2:return s=new Pj,s;case 4:return o=new o$,o;case 5:return h=new UKt,h;case 6:return d=new bKt,d;case 7:return m=new Fj,m;case 10:return T=new E4,T;case 11:return A=new Vnt,A;case 12:return P=new xne,P;case 13:return U=new Unt,U;case 14:return J=new nvt,J;case 17:return tt=new wC,tt;case 18:return k=new lm,k;case 19:return ht=new vC,ht;default:throw at(new zn(Vlt+e.zb+fv))}},l.ti=function(e,n){switch(e.hk()){case 20:return n==null?null:new Twt(n);case 21:return n==null?null:new Sb(n);case 23:case 22:return n==null?null:Lwn(n);case 26:case 24:return n==null?null:GI(lh(n,-128,127)<<24>>24);case 25:return Wxn(n);case 27:return bvn(n);case 28:return wvn(n);case 29:return $3n(n);case 32:case 31:return n==null?null:Jy(n);case 38:case 37:return n==null?null:new z2t(n);case 40:case 39:return n==null?null:he(lh(n,Ga,xi));case 41:return null;case 42:return n==null,null;case 44:case 43:return n==null?null:Mg(mV(n));case 49:case 48:return n==null?null:w7(lh(n,EU,32767)<<16>>16);case 50:return n;default:throw at(new zn(lT+e.xe()+fv))}},I(Rn,"EcoreFactoryImpl",1349),D(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},Uee),l.gb=!1,l.hb=!1;var QIt,ITe=!1;I(Rn,"EcorePackageImpl",560),D(1234,1,{851:1},K1),l.Kk=function(){return wJt(),NTe},I(Rn,"EcorePackageImpl/1",1234),D(1243,1,li,JR),l.fk=function(e){return Lt(e,155)},l.gk=function(e){return Vt(HP,Ln,155,e,0,1)},I(Rn,"EcorePackageImpl/10",1243),D(1244,1,li,ZR),l.fk=function(e){return Lt(e,197)},l.gk=function(e){return Vt(Xdt,Ln,197,e,0,1)},I(Rn,"EcorePackageImpl/11",1244),D(1245,1,li,tj),l.fk=function(e){return Lt(e,58)},l.gk=function(e){return Vt(p2,Ln,58,e,0,1)},I(Rn,"EcorePackageImpl/12",1245),D(1246,1,li,ej),l.fk=function(e){return Lt(e,411)},l.gk=function(e){return Vt(vf,zTt,62,e,0,1)},I(Rn,"EcorePackageImpl/13",1246),D(1247,1,li,nj),l.fk=function(e){return Lt(e,241)},l.gk=function(e){return Vt(F1,Ln,241,e,0,1)},I(Rn,"EcorePackageImpl/14",1247),D(1248,1,li,rj),l.fk=function(e){return Lt(e,518)},l.gk=function(e){return Vt(Ov,Ln,2116,e,0,1)},I(Rn,"EcorePackageImpl/15",1248),D(1249,1,li,w1),l.fk=function(e){return Lt(e,102)},l.gk=function(e){return Vt(U3,I5,19,e,0,1)},I(Rn,"EcorePackageImpl/16",1249),D(1250,1,li,Bu),l.fk=function(e){return Lt(e,179)},l.gk=function(e){return Vt(Wu,I5,179,e,0,1)},I(Rn,"EcorePackageImpl/17",1250),D(1251,1,li,set),l.fk=function(e){return Lt(e,480)},l.gk=function(e){return Vt(H3,Ln,480,e,0,1)},I(Rn,"EcorePackageImpl/18",1251),D(1252,1,li,aet),l.fk=function(e){return Lt(e,561)},l.gk=function(e){return Vt(Mc,Nme,561,e,0,1)},I(Rn,"EcorePackageImpl/19",1252),D(1235,1,li,oet),l.fk=function(e){return Lt(e,331)},l.gk=function(e){return Vt(V3,I5,35,e,0,1)},I(Rn,"EcorePackageImpl/2",1235),D(1253,1,li,Ru),l.fk=function(e){return Lt(e,248)},l.gk=function(e){return Vt(Do,Qme,89,e,0,1)},I(Rn,"EcorePackageImpl/20",1253),D(1254,1,li,yC),l.fk=function(e){return Lt(e,456)},l.gk=function(e){return Vt(Nu,Ln,850,e,0,1)},I(Rn,"EcorePackageImpl/21",1254),D(1255,1,li,ij),l.fk=function(e){return Ty(e)},l.gk=function(e){return Vt(ys,ue,484,e,8,1)},I(Rn,"EcorePackageImpl/22",1255),D(1256,1,li,sj),l.fk=function(e){return Lt(e,195)},l.gk=function(e){return Vt(ul,ue,195,e,0,2)},I(Rn,"EcorePackageImpl/23",1256),D(1257,1,li,h6),l.fk=function(e){return Lt(e,222)},l.gk=function(e){return Vt(Fk,ue,222,e,0,1)},I(Rn,"EcorePackageImpl/24",1257),D(1258,1,li,cet),l.fk=function(e){return Lt(e,180)},l.gk=function(e){return Vt(vA,ue,180,e,0,1)},I(Rn,"EcorePackageImpl/25",1258),D(1259,1,li,X8),l.fk=function(e){return Lt(e,206)},l.gk=function(e){return Vt(OU,ue,206,e,0,1)},I(Rn,"EcorePackageImpl/26",1259),D(1260,1,li,uet),l.fk=function(e){return!1},l.gk=function(e){return Vt(pOt,Ln,2215,e,0,1)},I(Rn,"EcorePackageImpl/27",1260),D(1261,1,li,aj),l.fk=function(e){return Cy(e)},l.gk=function(e){return Vt(zs,ue,345,e,7,1)},I(Rn,"EcorePackageImpl/28",1261),D(1262,1,li,het),l.fk=function(e){return Lt(e,61)},l.gk=function(e){return Vt(DIt,l3,61,e,0,1)},I(Rn,"EcorePackageImpl/29",1262),D(1236,1,li,fet),l.fk=function(e){return Lt(e,519)},l.gk=function(e){return Vt(ci,{3:1,4:1,5:1,2033:1},598,e,0,1)},I(Rn,"EcorePackageImpl/3",1236),D(1263,1,li,xC),l.fk=function(e){return Lt(e,582)},l.gk=function(e){return Vt(OIt,Ln,2039,e,0,1)},I(Rn,"EcorePackageImpl/30",1263),D(1264,1,li,oj),l.fk=function(e){return Lt(e,160)},l.gk=function(e){return Vt(nOt,l3,160,e,0,1)},I(Rn,"EcorePackageImpl/31",1264),D(1265,1,li,hM),l.fk=function(e){return Lt(e,76)},l.gk=function(e){return Vt(XK,ave,76,e,0,1)},I(Rn,"EcorePackageImpl/32",1265),D(1266,1,li,kC),l.fk=function(e){return Lt(e,161)},l.gk=function(e){return Vt(wT,ue,161,e,0,1)},I(Rn,"EcorePackageImpl/33",1266),D(1267,1,li,det),l.fk=function(e){return Lt(e,17)},l.gk=function(e){return Vt(Ra,ue,17,e,0,1)},I(Rn,"EcorePackageImpl/34",1267),D(1268,1,li,get),l.fk=function(e){return Lt(e,296)},l.gk=function(e){return Vt(t9t,Ln,296,e,0,1)},I(Rn,"EcorePackageImpl/35",1268),D(1269,1,li,fM),l.fk=function(e){return Lt(e,168)},l.gk=function(e){return Vt(gv,ue,168,e,0,1)},I(Rn,"EcorePackageImpl/36",1269),D(1270,1,li,EC),l.fk=function(e){return Lt(e,85)},l.gk=function(e){return Vt(e9t,Ln,85,e,0,1)},I(Rn,"EcorePackageImpl/37",1270),D(1271,1,li,W1),l.fk=function(e){return Lt(e,599)},l.gk=function(e){return Vt(JIt,Ln,599,e,0,1)},I(Rn,"EcorePackageImpl/38",1271),D(1272,1,li,Q8),l.fk=function(e){return!1},l.gk=function(e){return Vt(bOt,Ln,2216,e,0,1)},I(Rn,"EcorePackageImpl/39",1272),D(1237,1,li,pet),l.fk=function(e){return Lt(e,90)},l.gk=function(e){return Vt(mf,Ln,29,e,0,1)},I(Rn,"EcorePackageImpl/4",1237),D(1273,1,li,J8),l.fk=function(e){return Lt(e,191)},l.gk=function(e){return Vt(pv,ue,191,e,0,1)},I(Rn,"EcorePackageImpl/40",1273),D(1274,1,li,dM),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I(Rn,"EcorePackageImpl/41",1274),D(1275,1,li,R2),l.fk=function(e){return Lt(e,596)},l.gk=function(e){return Vt(IIt,Ln,596,e,0,1)},I(Rn,"EcorePackageImpl/42",1275),D(1276,1,li,TC),l.fk=function(e){return!1},l.gk=function(e){return Vt(wOt,ue,2217,e,0,1)},I(Rn,"EcorePackageImpl/43",1276),D(1277,1,li,gM),l.fk=function(e){return Lt(e,44)},l.gk=function(e){return Vt(Sw,xV,44,e,0,1)},I(Rn,"EcorePackageImpl/44",1277),D(1238,1,li,m1),l.fk=function(e){return Lt(e,142)},l.gk=function(e){return Vt(B1,Ln,142,e,0,1)},I(Rn,"EcorePackageImpl/5",1238),D(1239,1,li,CC),l.fk=function(e){return Lt(e,156)},l.gk=function(e){return Vt(n0t,Ln,156,e,0,1)},I(Rn,"EcorePackageImpl/6",1239),D(1240,1,li,Y1),l.fk=function(e){return Lt(e,468)},l.gk=function(e){return Vt(YK,Ln,685,e,0,1)},I(Rn,"EcorePackageImpl/7",1240),D(1241,1,li,X1),l.fk=function(e){return Lt(e,582)},l.gk=function(e){return Vt(Vg,Ln,694,e,0,1)},I(Rn,"EcorePackageImpl/8",1241),D(1242,1,li,bet),l.fk=function(e){return Lt(e,479)},l.gk=function(e){return Vt(EL,Ln,479,e,0,1)},I(Rn,"EcorePackageImpl/9",1242),D(1038,2080,Ome,dWt),l.Mi=function(e,n){i2n(this,u(n,424))},l.Qi=function(e,n){o1e(this,e,u(n,424))},I(Rn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),D(1039,152,LN,Pee),l.jj=function(){return this.a.a},I(Rn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),D(1067,1066,{},YQt),I("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var JIt=os(ove,"Resource");D(799,1524,cve),l.Hl=function(e){},l.Il=function(e){},l.El=function(){return!this.a&&(this.a=new Bnt(this)),this.a},l.Fl=function(e){var n,r,s,o,h;if(s=e.length,s>0)if(qn(0,e.length),e.charCodeAt(0)==47){for(h=new wu(4),o=1,n=1;n<s;++n)qn(n,e.length),e.charCodeAt(n)==47&&(ge(h,o==n?"":(Da(o,n,e.length),e.substr(o,n-o))),o=n+1);return ge(h,(qn(o,e.length+1),e.substr(o))),oyn(this,h)}else qn(s-1,e.length),e.charCodeAt(s-1)==63&&(r=Tvt(e,Hu(63),s-2),r>0&&(e=(Da(0,r,e.length),e.substr(0,r))));return O5n(this,e)},l.Gl=function(){return this.c},l.Ib=function(){var e;return V2(this.Rm)+"@"+(e=$i(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},l.b=!1,I(oht,"ResourceImpl",799),D(1525,799,cve,rKt),I(oht,"BinaryResourceImpl",1525),D(1190,708,eht),l.bj=function(e){return Lt(e,58)?Thn(this,u(e,58)):Lt(e,599)?new Zn(u(e,599).El()):$t(e)===$t(this.f)?u(e,16).Kc():(_E(),GP.a)},l.Ob=function(){return O6t(this)},l.a=!1,I(Yi,"EcoreUtil/ContentTreeIterator",1190),D(1526,1190,eht,hee),l.bj=function(e){return $t(e)===$t(this.f)?u(e,15).Kc():new cie(u(e,58))},I(oht,"ResourceImpl/5",1526),D(658,2092,Xme,Bnt),l.Hc=function(e){return this.i<=4?L7(this,e):Lt(e,54)&&u(e,54).Jh()==this.a},l.Mi=function(e,n){e==this.i-1&&(this.a.b||(this.a.b=!0))},l.Oi=function(e,n){e==0?this.a.b||(this.a.b=!0):Fst(this,e,n)},l.Qi=function(e,n){},l.Ri=function(e,n,r){},l.Lj=function(){return 2},l.jj=function(){return this.a},l.Mj=function(){return!0},l.Nj=function(e,n){var r;return r=u(e,54),n=r.fi(this.a,n),n},l.Oj=function(e,n){var r;return r=u(e,54),r.fi(null,n)},l.Pj=function(){return!1},l.Si=function(){return!0},l.aj=function(e){return Vt(p2,Ln,58,e,0,1)},l.Yi=function(){return!1},I(oht,"ResourceImpl/ContentsEList",658),D(970,2062,W7,iKt),l.fd=function(e){return this.a.Ki(e)},l.gc=function(){return this.a.gc()},I(Yi,"AbstractSequentialInternalEList/1",970);var ZIt,tOt,ja,eOt;D(634,1,{},dte);var QK,JK;I(Yi,"BasicExtendedMetaData",634),D(1181,1,{},pQt),l.Jl=function(){return null},l.Kl=function(){return this.a==-2&&Ut(this,O3n(this.d,this.b)),this.a},l.Ll=function(){return null},l.Ml=function(){return mn(),mn(),co},l.xe=function(){return this.c==dT&&de(this,Mle(this.d,this.b)),this.c},l.Nl=function(){return 0},l.a=-2,l.c=dT,I(Yi,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),D(1182,1,{},Rre),l.Jl=function(){return this.a==(VE(),QK)&&Te(this,I8n(this.f,this.b)),this.a},l.Kl=function(){return 0},l.Ll=function(){return this.c==(VE(),QK)&&Yt(this,O8n(this.f,this.b)),this.c},l.Ml=function(){return!this.d&&ze(this,w7n(this.f,this.b)),this.d},l.xe=function(){return this.e==dT&&yn(this,Mle(this.f,this.b)),this.e},l.Nl=function(){return this.g==-2&&qe(this,Jyn(this.f,this.b)),this.g},l.e=dT,l.g=-2,I(Yi,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),D(1180,1,{},bQt),l.b=!1,l.c=!1,I(Yi,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),D(1183,1,{},jre),l.c=-2,l.e=dT,l.f=dT,I(Yi,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),D(593,632,ic,kz),l.Lj=function(){return this.c},l.ol=function(){return!1},l.Wi=function(e,n){return n},l.c=0,I(Yi,"EDataTypeEList",593);var nOt=os(Yi,"FeatureMap");D(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},ps),l.bd=function(e,n){Q6n(this,e,u(n,76))},l.Fc=function(e){return p6n(this,u(e,76))},l.Hi=function(e){xln(this,u(e,76))},l.Nj=function(e,n){return qan(this,u(e,76),n)},l.Oj=function(e,n){return Svt(this,u(e,76),n)},l.Ti=function(e,n){return EEn(this,e,n)},l.Wi=function(e,n){return u9n(this,e,u(n,76))},l.hd=function(e,n){return Rkn(this,e,u(n,76))},l.Uj=function(e,n){return Han(this,u(e,76),n)},l.Vj=function(e,n){return qZt(this,u(e,76),n)},l.Wj=function(e,n,r){return jyn(this,u(e,76),u(n,76),r)},l.Zi=function(e,n){return Dot(this,e,u(n,76))},l.Ol=function(e,n){return Tkt(this,e,n)},l.cd=function(e,n){var r,s,o,h,d,m,k,T,A;for(T=new $m(n.gc()),o=n.Kc();o.Ob();)if(s=u(o.Pb(),76),h=s.Lk(),Ng(this.e,h))(!h.Si()||!dq(this,h,s.md())&&!L7(T,s))&&Or(T,s);else{for(A=Lu(this.e.Dh(),h),r=u(this.g,124),d=!0,m=0;m<this.i;++m)if(k=r[m],A.am(k.Lk())){u(c5(this,m,s),76),d=!1;break}d&&Or(T,s)}return K4t(this,e,T)},l.Gc=function(e){var n,r,s,o,h,d,m,k,T;for(k=new $m(e.gc()),s=e.Kc();s.Ob();)if(r=u(s.Pb(),76),o=r.Lk(),Ng(this.e,o))(!o.Si()||!dq(this,o,r.md())&&!L7(k,r))&&Or(k,r);else{for(T=Lu(this.e.Dh(),o),n=u(this.g,124),h=!0,d=0;d<this.i;++d)if(m=n[d],T.am(m.Lk())){u(c5(this,d,r),76),h=!1;break}h&&Or(k,r)}return gs(this,k)},l.Fi=function(e){return this.j=-1,fct(this,this.i,e)},l.Pl=function(e,n,r){return bkt(this,e,n,r)},l.Xk=function(e,n){return UO(this,e,n)},l.Ql=function(e,n,r){return qkt(this,e,n,r)},l.Rl=function(){return this},l.Sl=function(e,n){return YO(this,e,n)},l.Tl=function(e){return u(Dt(this,e),76).Lk()},l.Ul=function(e){return u(Dt(this,e),76).md()},l.Vl=function(){return this.b},l.Mj=function(){return!0},l.Tj=function(){return!0},l.Wl=function(e){return!wO(this,e)},l.aj=function(e){return Vt(MTe,ave,343,e,0,1)},l.pl=function(e){return lit(this,e)},l.Wb=function(e){xI(this,e)},l.Xl=function(e,n){gV(this,e,n)},l.Yl=function(e){return $oe(this,e)},l.Zl=function(e){mhe(this,e)},I(Yi,"BasicFeatureMap",78),D(1960,1,P0),l.Nb=function(e){Na(this,e)},l.Rb=function(e){if(this.g==-1)throw at(new Xu);Bz(this);try{Jde(this.e,this.b,this.a,e),this.d=this.e.j,LH(this)}catch(n){throw n=es(n),Lt(n,77)?at(new Th):at(n)}},l.Ob=function(){return Lat(this)},l.Sb=function(){return fue(this)},l.Pb=function(){return LH(this)},l.Tb=function(){return this.a},l.Ub=function(){var e;if(fue(this))return Bz(this),this.g=--this.a,this.ul()&&(e=C_(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw at(new cc)},l.Vb=function(){return this.a-1},l.Qb=function(){if(this.g==-1)throw at(new Xu);Bz(this);try{Vfe(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw e=es(e),Lt(e,77)?at(new Th):at(e)}},l.ul=function(){return!1},l.Wb=function(e){if(this.g==-1)throw at(new Xu);Bz(this);try{kge(this.e,this.b,this.g,e),this.d=this.e.j}catch(n){throw n=es(n),Lt(n,77)?at(new Th):at(n)}},l.a=0,l.c=0,l.d=0,l.f=!1,l.g=0,l.i=0,I(Yi,"FeatureMapUtil/BasicFeatureEIterator",1960),D(420,1960,P0,o7),l.$l=function(){var e,n,r;for(r=this.e.i,e=u(this.e.g,124);this.c<r;){if(n=e[this.c],this.k.am(n.Lk()))return this.j=this.f?n:n.md(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},l._l=function(){var e,n;for(e=u(this.e.g,124);--this.c>=0;)if(n=e[this.c],this.k.am(n.Lk()))return this.j=this.f?n:n.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},I(Yi,"BasicFeatureMap/FeatureEIterator",420),D(676,420,P0,Krt),l.ul=function(){return!0},I(Yi,"BasicFeatureMap/ResolvingFeatureEIterator",676),D(968,495,mU,sJt),l.pj=function(){return this},I(Yi,"EContentsEList/1",968),D(969,495,mU,LQt),l.ul=function(){return!1},I(Yi,"EContentsEList/2",969),D(967,287,vU,aJt),l.wl=function(e){},l.Ob=function(){return!1},l.Sb=function(){return!1},I(Yi,"EContentsEList/FeatureIteratorImpl/1",967),D(840,593,ic,Omt),l.Ni=function(){this.a=!0},l.Qj=function(){return this.a},l.Gk=function(){var e;Ir(this),Hl(this.e)?(e=this.a,this.a=!1,Ei(this.e,new jf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,I(Yi,"EDataTypeEList/Unsettable",840),D(1958,593,ic,dJt),l.Si=function(){return!0},I(Yi,"EDataTypeUniqueEList",1958),D(1959,840,ic,gJt),l.Si=function(){return!0},I(Yi,"EDataTypeUniqueEList/Unsettable",1959),D(147,83,ic,Ju),l.nl=function(){return!0},l.Wi=function(e,n){return yk(this,e,u(n,58))},I(Yi,"EObjectContainmentEList/Resolving",147),D(1184,555,ic,pJt),l.nl=function(){return!0},l.Wi=function(e,n){return yk(this,e,u(n,58))},I(Yi,"EObjectContainmentEList/Unsettable/Resolving",1184),D(766,14,ic,vvt),l.Ni=function(){this.a=!0},l.Qj=function(){return this.a},l.Gk=function(){var e;Ir(this),Hl(this.e)?(e=this.a,this.a=!1,Ei(this.e,new jf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,I(Yi,"EObjectContainmentWithInverseEList/Unsettable",766),D(1222,766,ic,AZt),l.nl=function(){return!0},l.Wi=function(e,n){return yk(this,e,u(n,58))},I(Yi,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),D(757,504,ic,Nmt),l.Ni=function(){this.a=!0},l.Qj=function(){return this.a},l.Gk=function(){var e;Ir(this),Hl(this.e)?(e=this.a,this.a=!1,Ei(this.e,new jf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,I(Yi,"EObjectEList/Unsettable",757),D(338,504,ic,G4),l.nl=function(){return!0},l.Wi=function(e,n){return yk(this,e,u(n,58))},I(Yi,"EObjectResolvingEList",338),D(1844,757,ic,bJt),l.nl=function(){return!0},l.Wi=function(e,n){return yk(this,e,u(n,58))},I(Yi,"EObjectResolvingEList/Unsettable",1844),D(1527,1,{},wet);var OTe;I(Yi,"EObjectValidator",1527),D(559,504,ic,jz),l.il=function(){return this.d},l.jl=function(){return this.b},l.Mj=function(){return!0},l.ml=function(){return!0},l.b=0,I(Yi,"EObjectWithInverseEList",559),D(1225,559,ic,LZt),l.ll=function(){return!0},I(Yi,"EObjectWithInverseEList/ManyInverse",1225),D(635,559,ic,git),l.Ni=function(){this.a=!0},l.Qj=function(){return this.a},l.Gk=function(){var e;Ir(this),Hl(this.e)?(e=this.a,this.a=!1,Ei(this.e,new jf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,I(Yi,"EObjectWithInverseEList/Unsettable",635),D(1224,635,ic,DZt),l.ll=function(){return!0},I(Yi,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),D(767,559,ic,yvt),l.nl=function(){return!0},l.Wi=function(e,n){return yk(this,e,u(n,58))},I(Yi,"EObjectWithInverseResolvingEList",767),D(32,767,ic,kn),l.ll=function(){return!0},I(Yi,"EObjectWithInverseResolvingEList/ManyInverse",32),D(768,635,ic,xvt),l.nl=function(){return!0},l.Wi=function(e,n){return yk(this,e,u(n,58))},I(Yi,"EObjectWithInverseResolvingEList/Unsettable",768),D(1223,768,ic,MZt),l.ll=function(){return!0},I(Yi,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),D(1185,632,ic),l.Li=function(){return(this.b&1792)==0},l.Ni=function(){this.b|=1},l.kl=function(){return(this.b&4)!=0},l.Mj=function(){return(this.b&40)!=0},l.ll=function(){return(this.b&16)!=0},l.ml=function(){return(this.b&8)!=0},l.nl=function(){return(this.b&b3)!=0},l.al=function(){return(this.b&32)!=0},l.ol=function(){return(this.b&Uf)!=0},l.fk=function(e){return this.d?wie(this.d,e):this.Lk().Hk().fk(e)},l.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},l.Si=function(){return(this.b&128)!=0},l.Gk=function(){var e;Ir(this),this.b&2&&(Hl(this.e)?(e=(this.b&1)!=0,this.b&=-2,hE(this,new jf(this.e,2,ns(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},l.Yi=function(){return(this.b&1536)==0},l.b=0,I(Yi,"EcoreEList/Generic",1185),D(1186,1185,ic,Ene),l.Lk=function(){return this.a},I(Yi,"EcoreEList/Dynamic",1186),D(765,66,o0,P2t),l.aj=function(e){return XI(this.a.a,e)},I(Yi,"EcoreEMap/1",765),D(764,83,ic,vyt),l.Mi=function(e,n){IH(this.b,u(n,136))},l.Oi=function(e,n){yce(this.b)},l.Pi=function(e,n,r){var s;++(s=this.b,u(n,136),s).e},l.Qi=function(e,n){jat(this.b,u(n,136))},l.Ri=function(e,n,r){jat(this.b,u(r,136)),$t(r)===$t(n)&&u(r,136).Ci($in(u(n,136).ld())),IH(this.b,u(n,136))},I(Yi,"EcoreEMap/DelegateEObjectContainmentEList",764),D(1220,141,$Tt,Boe),I(Yi,"EcoreEMap/Unsettable",1220),D(1221,764,ic,IZt),l.Ni=function(){this.a=!0},l.Qj=function(){return this.a},l.Gk=function(){var e;Ir(this),Hl(this.e)?(e=this.a,this.a=!1,Ei(this.e,new jf(this.e,2,this.c,e,!1))):this.a=!1},l.a=!1,I(Yi,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),D(1189,215,E5,Tee),l.a=!1,l.b=!1,I(Yi,"EcoreUtil/Copier",1189),D(759,1,wa,cie),l.Nb=function(e){Na(this,e)},l.Ob=function(){return ble(this)},l.Pb=function(){var e;return ble(this),e=this.b,this.b=null,e},l.Qb=function(){this.a.Qb()},I(Yi,"EcoreUtil/ProperContentIterator",759),D(1528,1527,{},Bj);var NTe;I(Yi,"EcoreValidator",1528);var PTe;os(Yi,"FeatureMapUtil/Validator"),D(1295,1,{2041:1},T4),l.am=function(e){return!0},I(Yi,"FeatureMapUtil/1",1295),D(773,1,{2041:1},t8t),l.am=function(e){var n;return this.c==e?!0:(n=Me(tr(this.a,e)),n==null?j8n(this,e)?(cse(this.a,e,(Pn(),bT)),!0):(cse(this.a,e,(Pn(),t2)),!1):n==(Pn(),bT))},l.e=!1;var a0t;I(Yi,"FeatureMapUtil/BasicValidator",773),D(774,45,E5,Mmt),I(Yi,"FeatureMapUtil/BasicValidator/Cache",774),D(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},eI),l.bd=function(e,n){Jde(this.c,this.b,e,n)},l.Fc=function(e){return Tkt(this.c,this.b,e)},l.cd=function(e,n){return aTn(this.c,this.b,e,n)},l.Gc=function(e){return xS(this,e)},l.Gi=function(e,n){egn(this.c,this.b,e,n)},l.Wk=function(e,n){return bkt(this.c,this.b,e,n)},l.$i=function(e){return dV(this.c,this.b,e,!1)},l.Ii=function(){return zQt(this.c,this.b)},l.Ji=function(){return _in(this.c,this.b)},l.Ki=function(e){return a0n(this.c,this.b,e)},l.Xk=function(e,n){return hZt(this,e,n)},l.$b=function(){T6(this)},l.Hc=function(e){return dq(this.c,this.b,e)},l.Ic=function(e){return spn(this.c,this.b,e)},l.Xb=function(e){return dV(this.c,this.b,e,!0)},l.Fk=function(e){return this},l.dd=function(e){return ddn(this.c,this.b,e)},l.dc=function(){return Q$(this)},l.Qj=function(){return!wO(this.c,this.b)},l.Kc=function(){return U0n(this.c,this.b)},l.ed=function(){return G0n(this.c,this.b)},l.fd=function(e){return E2n(this.c,this.b,e)},l.Ti=function(e,n){return dge(this.c,this.b,e,n)},l.Ui=function(e,n){u0n(this.c,this.b,e,n)},l.gd=function(e){return Vfe(this.c,this.b,e)},l.Mc=function(e){return cEn(this.c,this.b,e)},l.hd=function(e,n){return kge(this.c,this.b,e,n)},l.Wb=function(e){WH(this.c,this.b),xS(this,u(e,15))},l.gc=function(){return k2n(this.c,this.b)},l.Pc=function(){return p1n(this.c,this.b)},l.Qc=function(e){return gdn(this.c,this.b,e)},l.Ib=function(){var e,n;for(n=new dp,n.a+="[",e=zQt(this.c,this.b);Lat(e);)Mo(n,ES(LH(e))),Lat(e)&&(n.a+=ao);return n.a+="]",n.a},l.Gk=function(){WH(this.c,this.b)},I(Yi,"FeatureMapUtil/FeatureEList",509),D(644,38,LN,Cst),l.hj=function(e){return l_(this,e)},l.mj=function(e){var n,r,s,o,h,d,m;switch(this.d){case 1:case 2:{if(h=e.jj(),$t(h)===$t(this.c)&&l_(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break}case 3:{switch(o=e.gj(),o){case 3:{if(h=e.jj(),$t(h)===$t(this.c)&&l_(this,null)==e.hj(null))return this.d=5,n=new $m(2),Or(n,this.g),Or(n,e.ij()),this.g=n,!0;break}}break}case 5:{switch(o=e.gj(),o){case 3:{if(h=e.jj(),$t(h)===$t(this.c)&&l_(this,null)==e.hj(null))return r=u(this.g,16),r.Fc(e.ij()),!0;break}}break}case 4:{switch(o=e.gj(),o){case 3:{if(h=e.jj(),$t(h)===$t(this.c)&&l_(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break}case 4:{if(h=e.jj(),$t(h)===$t(this.c)&&l_(this,null)==e.hj(null))return this.d=6,m=new $m(2),Or(m,this.n),Or(m,e.kj()),this.n=m,d=lt(ut(Fr,1),ii,28,15,[this.o,e.lj()]),this.g=d,!0;break}}break}case 6:{switch(o=e.gj(),o){case 4:{if(h=e.jj(),$t(h)===$t(this.c)&&l_(this,null)==e.hj(null))return r=u(this.n,16),r.Fc(e.kj()),d=u(this.g,53),s=Vt(Fr,ii,28,d.length+1,15,1),Xc(d,0,s,0,d.length),s[d.length]=e.lj(),this.g=s,!0;break}}break}}return!1},I(Yi,"FeatureMapUtil/FeatureENotificationImpl",644),D(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Sz),l.Ol=function(e,n){return Tkt(this.c,e,n)},l.Pl=function(e,n,r){return bkt(this.c,e,n,r)},l.Ql=function(e,n,r){return qkt(this.c,e,n,r)},l.Rl=function(){return this},l.Sl=function(e,n){return YO(this.c,e,n)},l.Tl=function(e){return u(dV(this.c,this.b,e,!1),76).Lk()},l.Ul=function(e){return u(dV(this.c,this.b,e,!1),76).md()},l.Vl=function(){return this.a},l.Wl=function(e){return!wO(this.c,e)},l.Xl=function(e,n){gV(this.c,e,n)},l.Yl=function(e){return $oe(this.c,e)},l.Zl=function(e){mhe(this.c,e)},I(Yi,"FeatureMapUtil/FeatureFeatureMap",564),D(1294,1,aht,gQt),l.Fk=function(e){return dV(this.b,this.a,-1,e)},l.Qj=function(){return!wO(this.b,this.a)},l.Wb=function(e){gV(this.b,this.a,e)},l.Gk=function(){WH(this.b,this.a)},I(Yi,"FeatureMapUtil/FeatureValue",1294);var i8,o0t,c0t,s8,FTe,WP=os(_U,"AnyType");D(680,63,Pg,trt),I(_U,"InvalidDatatypeValueException",680);var ZK=os(_U,lve),YP=os(_U,hve),rOt=os(_U,fve),BTe,Bc,iOt,Hw,RTe,jTe,$Te,zTe,qTe,HTe,VTe,UTe,GTe,KTe,WTe,gx,YTe,px,AL,XTe,Fv,XP,QP,QTe,LL,DL;D(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},twt),l.Lh=function(e,n,r){switch(e){case 0:return r?(!this.c&&(this.c=new ps(this,0)),this.c):(!this.c&&(this.c=new ps(this,0)),this.c.b);case 1:return r?(!this.c&&(this.c=new ps(this,0)),u(ru(this.c,(Ni(),Hw)),160)):(!this.c&&(this.c=new ps(this,0)),u(u(ru(this.c,(Ni(),Hw)),160),220)).Vl();case 2:return r?(!this.b&&(this.b=new ps(this,2)),this.b):(!this.b&&(this.b=new ps(this,2)),this.b.b)}return Ih(this,e-fr(this.ii()),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():this.ii(),e),n,r)},l.Uh=function(e,n,r){var s;switch(n){case 0:return!this.c&&(this.c=new ps(this,0)),UO(this.c,e,r);case 1:return(!this.c&&(this.c=new ps(this,0)),u(u(ru(this.c,(Ni(),Hw)),160),71)).Xk(e,r);case 2:return!this.b&&(this.b=new ps(this,2)),UO(this.b,e,r)}return s=u(En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():this.ii(),n),69),s.wk().Ak(this,r4t(this),n-fr(this.ii()),e,r)},l.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ps(this,0)),u(ru(this.c,(Ni(),Hw)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Dh(this,e-fr(this.ii()),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():this.ii(),e))},l.bi=function(e,n){switch(e){case 0:!this.c&&(this.c=new ps(this,0)),xI(this.c,n);return;case 1:(!this.c&&(this.c=new ps(this,0)),u(u(ru(this.c,(Ni(),Hw)),160),220)).Wb(n);return;case 2:!this.b&&(this.b=new ps(this,2)),xI(this.b,n);return}Fh(this,e-fr(this.ii()),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():this.ii(),e),n)},l.ii=function(){return Ni(),iOt},l.ki=function(e){switch(e){case 0:!this.c&&(this.c=new ps(this,0)),Ir(this.c);return;case 1:(!this.c&&(this.c=new ps(this,0)),u(ru(this.c,(Ni(),Hw)),160)).$b();return;case 2:!this.b&&(this.b=new ps(this,2)),Ir(this.b);return}Ph(this,e-fr(this.ii()),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():this.ii(),e))},l.Ib=function(){var e;return this.j&4?qf(this):(e=new ef(qf(this)),e.a+=" (mixed: ",wS(e,this.c),e.a+=", anyAttribute: ",wS(e,this.b),e.a+=")",e.a)},I($s,"AnyTypeImpl",844),D(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},xet),l.Lh=function(e,n,r){switch(e){case 0:return this.a;case 1:return this.b}return Ih(this,e-fr((Ni(),gx)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():gx,e),n,r)},l.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return Dh(this,e-fr((Ni(),gx)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():gx,e))},l.bi=function(e,n){switch(e){case 0:lr(this,Gr(n));return;case 1:or(this,Gr(n));return}Fh(this,e-fr((Ni(),gx)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():gx,e),n)},l.ii=function(){return Ni(),gx},l.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}Ph(this,e-fr((Ni(),gx)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():gx,e))},l.Ib=function(){var e;return this.j&4?qf(this):(e=new ef(qf(this)),e.a+=" (data: ",Mo(e,this.a),e.a+=", target: ",Mo(e,this.b),e.a+=")",e.a)},l.a=null,l.b=null,I($s,"ProcessingInstructionImpl",681),D(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},KKt),l.Lh=function(e,n,r){switch(e){case 0:return r?(!this.c&&(this.c=new ps(this,0)),this.c):(!this.c&&(this.c=new ps(this,0)),this.c.b);case 1:return r?(!this.c&&(this.c=new ps(this,0)),u(ru(this.c,(Ni(),Hw)),160)):(!this.c&&(this.c=new ps(this,0)),u(u(ru(this.c,(Ni(),Hw)),160),220)).Vl();case 2:return r?(!this.b&&(this.b=new ps(this,2)),this.b):(!this.b&&(this.b=new ps(this,2)),this.b.b);case 3:return!this.c&&(this.c=new ps(this,0)),Gr(YO(this.c,(Ni(),AL),!0));case 4:return Evt(this.a,(!this.c&&(this.c=new ps(this,0)),Gr(YO(this.c,(Ni(),AL),!0))));case 5:return this.a}return Ih(this,e-fr((Ni(),px)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():px,e),n,r)},l.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ps(this,0)),u(ru(this.c,(Ni(),Hw)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new ps(this,0)),Gr(YO(this.c,(Ni(),AL),!0))!=null;case 4:return Evt(this.a,(!this.c&&(this.c=new ps(this,0)),Gr(YO(this.c,(Ni(),AL),!0))))!=null;case 5:return!!this.a}return Dh(this,e-fr((Ni(),px)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():px,e))},l.bi=function(e,n){switch(e){case 0:!this.c&&(this.c=new ps(this,0)),xI(this.c,n);return;case 1:(!this.c&&(this.c=new ps(this,0)),u(u(ru(this.c,(Ni(),Hw)),160),220)).Wb(n);return;case 2:!this.b&&(this.b=new ps(this,2)),xI(this.b,n);return;case 3:h3t(this,Gr(n));return;case 4:h3t(this,kvt(this.a,n));return;case 5:Sn(this,u(n,156));return}Fh(this,e-fr((Ni(),px)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():px,e),n)},l.ii=function(){return Ni(),px},l.ki=function(e){switch(e){case 0:!this.c&&(this.c=new ps(this,0)),Ir(this.c);return;case 1:(!this.c&&(this.c=new ps(this,0)),u(ru(this.c,(Ni(),Hw)),160)).$b();return;case 2:!this.b&&(this.b=new ps(this,2)),Ir(this.b);return;case 3:!this.c&&(this.c=new ps(this,0)),gV(this.c,(Ni(),AL),null);return;case 4:h3t(this,kvt(this.a,null));return;case 5:this.a=null;return}Ph(this,e-fr((Ni(),px)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():px,e))},I($s,"SimpleAnyTypeImpl",682),D(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},WKt),l.Lh=function(e,n,r){switch(e){case 0:return r?(!this.a&&(this.a=new ps(this,0)),this.a):(!this.a&&(this.a=new ps(this,0)),this.a.b);case 1:return r?(!this.b&&(this.b=new nl((wn(),wo),Mc,this,1)),this.b):(!this.b&&(this.b=new nl((wn(),wo),Mc,this,1)),RI(this.b));case 2:return r?(!this.c&&(this.c=new nl((wn(),wo),Mc,this,2)),this.c):(!this.c&&(this.c=new nl((wn(),wo),Mc,this,2)),RI(this.c));case 3:return!this.a&&(this.a=new ps(this,0)),ru(this.a,(Ni(),XP));case 4:return!this.a&&(this.a=new ps(this,0)),ru(this.a,(Ni(),QP));case 5:return!this.a&&(this.a=new ps(this,0)),ru(this.a,(Ni(),LL));case 6:return!this.a&&(this.a=new ps(this,0)),ru(this.a,(Ni(),DL))}return Ih(this,e-fr((Ni(),Fv)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():Fv,e),n,r)},l.Uh=function(e,n,r){var s;switch(n){case 0:return!this.a&&(this.a=new ps(this,0)),UO(this.a,e,r);case 1:return!this.b&&(this.b=new nl((wn(),wo),Mc,this,1)),pz(this.b,e,r);case 2:return!this.c&&(this.c=new nl((wn(),wo),Mc,this,2)),pz(this.c,e,r);case 5:return!this.a&&(this.a=new ps(this,0)),hZt(ru(this.a,(Ni(),LL)),e,r)}return s=u(En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():(Ni(),Fv),n),69),s.wk().Ak(this,r4t(this),n-fr((Ni(),Fv)),e,r)},l.Wh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new ps(this,0)),!Q$(ru(this.a,(Ni(),XP)));case 4:return!this.a&&(this.a=new ps(this,0)),!Q$(ru(this.a,(Ni(),QP)));case 5:return!this.a&&(this.a=new ps(this,0)),!Q$(ru(this.a,(Ni(),LL)));case 6:return!this.a&&(this.a=new ps(this,0)),!Q$(ru(this.a,(Ni(),DL)))}return Dh(this,e-fr((Ni(),Fv)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():Fv,e))},l.bi=function(e,n){switch(e){case 0:!this.a&&(this.a=new ps(this,0)),xI(this.a,n);return;case 1:!this.b&&(this.b=new nl((wn(),wo),Mc,this,1)),Jq(this.b,n);return;case 2:!this.c&&(this.c=new nl((wn(),wo),Mc,this,2)),Jq(this.c,n);return;case 3:!this.a&&(this.a=new ps(this,0)),T6(ru(this.a,(Ni(),XP))),!this.a&&(this.a=new ps(this,0)),xS(ru(this.a,XP),u(n,16));return;case 4:!this.a&&(this.a=new ps(this,0)),T6(ru(this.a,(Ni(),QP))),!this.a&&(this.a=new ps(this,0)),xS(ru(this.a,QP),u(n,16));return;case 5:!this.a&&(this.a=new ps(this,0)),T6(ru(this.a,(Ni(),LL))),!this.a&&(this.a=new ps(this,0)),xS(ru(this.a,LL),u(n,16));return;case 6:!this.a&&(this.a=new ps(this,0)),T6(ru(this.a,(Ni(),DL))),!this.a&&(this.a=new ps(this,0)),xS(ru(this.a,DL),u(n,16));return}Fh(this,e-fr((Ni(),Fv)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():Fv,e),n)},l.ii=function(){return Ni(),Fv},l.ki=function(e){switch(e){case 0:!this.a&&(this.a=new ps(this,0)),Ir(this.a);return;case 1:!this.b&&(this.b=new nl((wn(),wo),Mc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new nl((wn(),wo),Mc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new ps(this,0)),T6(ru(this.a,(Ni(),XP)));return;case 4:!this.a&&(this.a=new ps(this,0)),T6(ru(this.a,(Ni(),QP)));return;case 5:!this.a&&(this.a=new ps(this,0)),T6(ru(this.a,(Ni(),LL)));return;case 6:!this.a&&(this.a=new ps(this,0)),T6(ru(this.a,(Ni(),DL)));return}Ph(this,e-fr((Ni(),Fv)),En(this.j&2?(!this.k&&(this.k=new Zh),this.k).Nk():Fv,e))},l.Ib=function(){var e;return this.j&4?qf(this):(e=new ef(qf(this)),e.a+=" (mixed: ",wS(e,this.a),e.a+=")",e.a)},I($s,"XMLTypeDocumentRootImpl",683),D(2028,720,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},Z8),l.ri=function(e,n){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return n==null?null:rc(n);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Gr(n);case 6:return Zsn(u(n,195));case 12:case 47:case 49:case 11:return upe(this,e,n);case 13:return n==null?null:lTn(u(n,247));case 15:case 14:return n==null?null:pln(Rt(Ht(n)));case 17:return sfe((Ni(),n));case 18:return sfe(n);case 21:case 20:return n==null?null:bln(u(n,161).a);case 27:return tan(u(n,195));case 30:return vhe((Ni(),u(n,15)));case 31:return vhe(u(n,15));case 40:return nan((Ni(),n));case 42:return afe((Ni(),n));case 43:return afe(n);case 59:case 48:return ean((Ni(),n));default:throw at(new zn(lT+e.xe()+fv))}},l.si=function(e){var n,r,s,o,h;switch(e.G==-1&&(e.G=(r=sh(e),r?Np(r.vi(),e):-1)),e.G){case 0:return n=new twt,n;case 1:return s=new xet,s;case 2:return o=new KKt,o;case 3:return h=new WKt,h;default:throw at(new zn(Vlt+e.zb+fv))}},l.ti=function(e,n){var r,s,o,h,d,m,k,T,A,P,$,U,J,tt,ht,Tt;switch(e.hk()){case 5:case 52:case 4:return n;case 6:return cmn(n);case 8:case 7:return n==null?null:Wyn(n);case 9:return n==null?null:GI(lh((s=su(n,!0),s.length>0&&(qn(0,s.length),s.charCodeAt(0)==43)?(qn(1,s.length+1),s.substr(1)):s),-128,127)<<24>>24);case 10:return n==null?null:GI(lh((o=su(n,!0),o.length>0&&(qn(0,o.length),o.charCodeAt(0)==43)?(qn(1,o.length+1),o.substr(1)):o),-128,127)<<24>>24);case 11:return Gr(iv(this,(Ni(),$Te),n));case 12:return Gr(iv(this,(Ni(),zTe),n));case 13:return n==null?null:new Twt(su(n,!0));case 15:case 14:return w6n(n);case 16:return Gr(iv(this,(Ni(),qTe),n));case 17:return xle((Ni(),n));case 18:return xle(n);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return su(n,!0);case 21:case 20:return _6n(n);case 22:return Gr(iv(this,(Ni(),HTe),n));case 23:return Gr(iv(this,(Ni(),VTe),n));case 24:return Gr(iv(this,(Ni(),UTe),n));case 25:return Gr(iv(this,(Ni(),GTe),n));case 26:return Gr(iv(this,(Ni(),KTe),n));case 27:return Xwn(n);case 30:return kle((Ni(),n));case 31:return kle(n);case 32:return n==null?null:he(lh((A=su(n,!0),A.length>0&&(qn(0,A.length),A.charCodeAt(0)==43)?(qn(1,A.length+1),A.substr(1)):A),Ga,xi));case 33:return n==null?null:new Sb((P=su(n,!0),P.length>0&&(qn(0,P.length),P.charCodeAt(0)==43)?(qn(1,P.length+1),P.substr(1)):P));case 34:return n==null?null:he(lh(($=su(n,!0),$.length>0&&(qn(0,$.length),$.charCodeAt(0)==43)?(qn(1,$.length+1),$.substr(1)):$),Ga,xi));case 36:return n==null?null:Mg(mV((U=su(n,!0),U.length>0&&(qn(0,U.length),U.charCodeAt(0)==43)?(qn(1,U.length+1),U.substr(1)):U)));case 37:return n==null?null:Mg(mV((J=su(n,!0),J.length>0&&(qn(0,J.length),J.charCodeAt(0)==43)?(qn(1,J.length+1),J.substr(1)):J)));case 40:return Kmn((Ni(),n));case 42:return Ele((Ni(),n));case 43:return Ele(n);case 44:return n==null?null:new Sb((tt=su(n,!0),tt.length>0&&(qn(0,tt.length),tt.charCodeAt(0)==43)?(qn(1,tt.length+1),tt.substr(1)):tt));case 45:return n==null?null:new Sb((ht=su(n,!0),ht.length>0&&(qn(0,ht.length),ht.charCodeAt(0)==43)?(qn(1,ht.length+1),ht.substr(1)):ht));case 46:return su(n,!1);case 47:return Gr(iv(this,(Ni(),WTe),n));case 59:case 48:return Gmn((Ni(),n));case 49:return Gr(iv(this,(Ni(),YTe),n));case 50:return n==null?null:w7(lh((Tt=su(n,!0),Tt.length>0&&(qn(0,Tt.length),Tt.charCodeAt(0)==43)?(qn(1,Tt.length+1),Tt.substr(1)):Tt),EU,32767)<<16>>16);case 51:return n==null?null:w7(lh((h=su(n,!0),h.length>0&&(qn(0,h.length),h.charCodeAt(0)==43)?(qn(1,h.length+1),h.substr(1)):h),EU,32767)<<16>>16);case 53:return Gr(iv(this,(Ni(),XTe),n));case 55:return n==null?null:w7(lh((d=su(n,!0),d.length>0&&(qn(0,d.length),d.charCodeAt(0)==43)?(qn(1,d.length+1),d.substr(1)):d),EU,32767)<<16>>16);case 56:return n==null?null:w7(lh((m=su(n,!0),m.length>0&&(qn(0,m.length),m.charCodeAt(0)==43)?(qn(1,m.length+1),m.substr(1)):m),EU,32767)<<16>>16);case 57:return n==null?null:Mg(mV((k=su(n,!0),k.length>0&&(qn(0,k.length),k.charCodeAt(0)==43)?(qn(1,k.length+1),k.substr(1)):k)));case 58:return n==null?null:Mg(mV((T=su(n,!0),T.length>0&&(qn(0,T.length),T.charCodeAt(0)==43)?(qn(1,T.length+1),T.substr(1)):T)));case 60:return n==null?null:he(lh((r=su(n,!0),r.length>0&&(qn(0,r.length),r.charCodeAt(0)==43)?(qn(1,r.length+1),r.substr(1)):r),Ga,xi));case 61:return n==null?null:he(lh(su(n,!0),Ga,xi));default:throw at(new zn(lT+e.xe()+fv))}};var JTe,sOt,ZTe,aOt;I($s,"XMLTypeFactoryImpl",2028),D(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},Gee),l.N=!1,l.O=!1;var t9e=!1;I($s,"XMLTypePackageImpl",594),D(1961,1,{851:1},tE),l.Kk=function(){return Okt(),u9e},I($s,"XMLTypePackageImpl/1",1961),D(1970,1,li,SC),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/10",1970),D(1971,1,li,met),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/11",1971),D(1972,1,li,vet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/12",1972),D(1973,1,li,f6),l.fk=function(e){return Cy(e)},l.gk=function(e){return Vt(zs,ue,345,e,7,1)},I($s,"XMLTypePackageImpl/13",1973),D(1974,1,li,cj),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/14",1974),D(1975,1,li,uj),l.fk=function(e){return Lt(e,15)},l.gk=function(e){return Vt(Vh,l3,15,e,0,1)},I($s,"XMLTypePackageImpl/15",1975),D(1976,1,li,yet),l.fk=function(e){return Lt(e,15)},l.gk=function(e){return Vt(Vh,l3,15,e,0,1)},I($s,"XMLTypePackageImpl/16",1976),D(1977,1,li,lj),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/17",1977),D(1978,1,li,hj),l.fk=function(e){return Lt(e,161)},l.gk=function(e){return Vt(wT,ue,161,e,0,1)},I($s,"XMLTypePackageImpl/18",1978),D(1979,1,li,pM),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/19",1979),D(1962,1,li,ket),l.fk=function(e){return Lt(e,857)},l.gk=function(e){return Vt(WP,Ln,857,e,0,1)},I($s,"XMLTypePackageImpl/2",1962),D(1980,1,li,_C),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/20",1980),D(1981,1,li,Eet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/21",1981),D(1982,1,li,Tet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/22",1982),D(1983,1,li,Cet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/23",1983),D(1984,1,li,_et),l.fk=function(e){return Lt(e,195)},l.gk=function(e){return Vt(ul,ue,195,e,0,2)},I($s,"XMLTypePackageImpl/24",1984),D(1985,1,li,Aet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/25",1985),D(1986,1,li,fj),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/26",1986),D(1987,1,li,Let),l.fk=function(e){return Lt(e,15)},l.gk=function(e){return Vt(Vh,l3,15,e,0,1)},I($s,"XMLTypePackageImpl/27",1987),D(1988,1,li,Det),l.fk=function(e){return Lt(e,15)},l.gk=function(e){return Vt(Vh,l3,15,e,0,1)},I($s,"XMLTypePackageImpl/28",1988),D(1989,1,li,Met),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/29",1989),D(1963,1,li,dj),l.fk=function(e){return Lt(e,681)},l.gk=function(e){return Vt(ZK,Ln,2119,e,0,1)},I($s,"XMLTypePackageImpl/3",1963),D(1990,1,li,Iet),l.fk=function(e){return Lt(e,17)},l.gk=function(e){return Vt(Ra,ue,17,e,0,1)},I($s,"XMLTypePackageImpl/30",1990),D(1991,1,li,Oet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/31",1991),D(1992,1,li,AC),l.fk=function(e){return Lt(e,168)},l.gk=function(e){return Vt(gv,ue,168,e,0,1)},I($s,"XMLTypePackageImpl/32",1992),D(1993,1,li,Net),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/33",1993),D(1994,1,li,Pet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/34",1994),D(1995,1,li,Fet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/35",1995),D(1996,1,li,Bet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/36",1996),D(1997,1,li,Ret),l.fk=function(e){return Lt(e,15)},l.gk=function(e){return Vt(Vh,l3,15,e,0,1)},I($s,"XMLTypePackageImpl/37",1997),D(1998,1,li,jet),l.fk=function(e){return Lt(e,15)},l.gk=function(e){return Vt(Vh,l3,15,e,0,1)},I($s,"XMLTypePackageImpl/38",1998),D(1999,1,li,gj),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/39",1999),D(1964,1,li,$et),l.fk=function(e){return Lt(e,682)},l.gk=function(e){return Vt(YP,Ln,2120,e,0,1)},I($s,"XMLTypePackageImpl/4",1964),D(2e3,1,li,pj),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/40",2e3),D(2001,1,li,zet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/41",2001),D(2002,1,li,bM),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/42",2002),D(2003,1,li,qet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/43",2003),D(2004,1,li,bj),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/44",2004),D(2005,1,li,Het),l.fk=function(e){return Lt(e,191)},l.gk=function(e){return Vt(pv,ue,191,e,0,1)},I($s,"XMLTypePackageImpl/45",2005),D(2006,1,li,wj),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/46",2006),D(2007,1,li,Vet),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/47",2007),D(2008,1,li,mj),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/48",2008),D(2009,1,li,vj),l.fk=function(e){return Lt(e,191)},l.gk=function(e){return Vt(pv,ue,191,e,0,1)},I($s,"XMLTypePackageImpl/49",2009),D(1965,1,li,yj),l.fk=function(e){return Lt(e,683)},l.gk=function(e){return Vt(rOt,Ln,2121,e,0,1)},I($s,"XMLTypePackageImpl/5",1965),D(2010,1,li,wM),l.fk=function(e){return Lt(e,168)},l.gk=function(e){return Vt(gv,ue,168,e,0,1)},I($s,"XMLTypePackageImpl/50",2010),D(2011,1,li,C4),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/51",2011),D(2012,1,li,LC),l.fk=function(e){return Lt(e,17)},l.gk=function(e){return Vt(Ra,ue,17,e,0,1)},I($s,"XMLTypePackageImpl/52",2012),D(1966,1,li,Q1),l.fk=function(e){return ba(e)},l.gk=function(e){return Vt(Pe,ue,2,e,6,1)},I($s,"XMLTypePackageImpl/6",1966),D(1967,1,li,xj),l.fk=function(e){return Lt(e,195)},l.gk=function(e){return Vt(ul,ue,195,e,0,2)},I($s,"XMLTypePackageImpl/7",1967),D(1968,1,li,eE),l.fk=function(e){return Ty(e)},l.gk=function(e){return Vt(ys,ue,484,e,8,1)},I($s,"XMLTypePackageImpl/8",1968),D(1969,1,li,mM),l.fk=function(e){return Lt(e,222)},l.gk=function(e){return Vt(Fk,ue,222,e,0,1)},I($s,"XMLTypePackageImpl/9",1969);var _d,nb,ML,tW,vt;D(55,63,Pg,Yr),I(qp,"RegEx/ParseException",55),D(836,1,{},kj),l.bm=function(e){return e<this.j&&Va(this.i,e)==63},l.cm=function(){var e,n,r,s,o;if(this.c!=10)throw at(new Yr(Qr((Ur(),pU))));switch(e=this.a,e){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(wi(this),this.c!=0)throw at(new Yr(Qr((Ur(),zp))));if(this.a==123){o=0,r=0;do{if(wi(this),this.c!=0)throw at(new Yr(Qr((Ur(),zp))));if((o=hw(this.a))<0)break;if(r>r*16)throw at(new Yr(Qr((Ur(),Eme))));r=r*16+o}while(!0);if(this.a!=125)throw at(new Yr(Qr((Ur(),Tme))));if(r>gT)throw at(new Yr(Qr((Ur(),Cme))));e=r}else{if(o=0,this.c!=0||(o=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(r=o,wi(this),this.c!=0||(o=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));r=r*16+o,e=r}break;case 117:if(s=0,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=s,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=n*16+s,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=n*16+s,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));n=n*16+s,e=n;break;case 118:if(wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=s,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=n*16+s,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=n*16+s,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=n*16+s,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=n*16+s,wi(this),this.c!=0||(s=hw(this.a))<0)throw at(new Yr(Qr((Ur(),zp))));if(n=n*16+s,n>gT)throw at(new Yr(Qr((Ur(),"parser.descappe.4"))));e=n;break;case 65:case 90:case 122:throw at(new Yr(Qr((Ur(),Sme))))}return e},l.dm=function(e){var n,r;switch(e){case 100:r=(this.e&32)==32?Gb("Nd",!0):(yi(),eW);break;case 68:r=(this.e&32)==32?Gb("Nd",!1):(yi(),fOt);break;case 119:r=(this.e&32)==32?Gb("IsWord",!0):(yi(),t9);break;case 87:r=(this.e&32)==32?Gb("IsWord",!1):(yi(),gOt);break;case 115:r=(this.e&32)==32?Gb("IsSpace",!0):(yi(),a8);break;case 83:r=(this.e&32)==32?Gb("IsSpace",!1):(yi(),dOt);break;default:throw at(new uc((n=e,Sve+n.toString(16))))}return r},l.em=function(e){var n,r,s,o,h,d,m,k,T,A,P,$;for(this.b=1,wi(this),n=null,this.c==0&&this.a==94?(wi(this),e?A=(yi(),yi(),new ih(5)):(n=(yi(),yi(),new ih(4)),iu(n,0,gT),A=new ih(4))):A=(yi(),yi(),new ih(4)),o=!0;($=this.c)!=1&&!($==0&&this.a==93&&!o);){if(o=!1,r=this.a,s=!1,$==10)switch(r){case 100:case 68:case 119:case 87:case 115:case 83:a3(A,this.dm(r)),s=!0;break;case 105:case 73:case 99:case 67:r=this.um(A,r),r<0&&(s=!0);break;case 112:case 80:if(P=M6t(this,r),!P)throw at(new Yr(Qr((Ur(),rht))));a3(A,P),s=!0;break;default:r=this.cm()}else if($==20){if(d=TE(this.i,58,this.d),d<0)throw at(new Yr(Qr((Ur(),NTt))));if(m=!0,Va(this.i,this.d)==94&&(++this.d,m=!1),h=Lh(this.i,this.d,d),k=Qse(h,m,(this.e&512)==512),!k)throw at(new Yr(Qr((Ur(),mme))));if(a3(A,k),s=!0,d+1>=this.j||Va(this.i,d+1)!=93)throw at(new Yr(Qr((Ur(),NTt))));this.d=d+2}if(wi(this),!s)if(this.c!=0||this.a!=45)iu(A,r,r);else{if(wi(this),($=this.c)==1)throw at(new Yr(Qr((Ur(),bU))));$==0&&this.a==93?(iu(A,r,r),iu(A,45,45)):(T=this.a,$==10&&(T=this.cm()),wi(this),iu(A,r,T))}(this.e&Uf)==Uf&&this.c==0&&this.a==44&&wi(this)}if(this.c==1)throw at(new Yr(Qr((Ur(),bU))));return n&&($_(n,A),A=n),g5(A),R_(A),this.b=0,wi(this),A},l.fm=function(){var e,n,r,s;for(r=this.em(!1);(s=this.c)!=7;)if(e=this.a,s==0&&(e==45||e==38)||s==4){if(wi(this),this.c!=9)throw at(new Yr(Qr((Ur(),yme))));if(n=this.em(!1),s==4)a3(r,n);else if(e==45)$_(r,n);else if(e==38)spe(r,n);else throw at(new uc("ASSERT"))}else throw at(new Yr(Qr((Ur(),xme))));return wi(this),r},l.gm=function(){var e,n;return e=this.a-48,n=(yi(),yi(),new lst(12,null,e)),!this.g&&(this.g=new u$),c$(this.g,new F2t(e)),wi(this),n},l.hm=function(){return wi(this),yi(),r9e},l.im=function(){return wi(this),yi(),n9e},l.jm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.km=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.lm=function(){return wi(this),hbn()},l.mm=function(){return wi(this),yi(),s9e},l.nm=function(){return wi(this),yi(),o9e},l.om=function(){var e;if(this.d>=this.j||((e=Va(this.i,this.d++))&65504)!=64)throw at(new Yr(Qr((Ur(),pme))));return wi(this),yi(),yi(),new _0(0,e-64)},l.pm=function(){return wi(this),g7n()},l.qm=function(){return wi(this),yi(),c9e},l.rm=function(){var e;return e=(yi(),yi(),new _0(0,105)),wi(this),e},l.sm=function(){return wi(this),yi(),a9e},l.tm=function(){return wi(this),yi(),i9e},l.um=function(e,n){return this.cm()},l.vm=function(){return wi(this),yi(),lOt},l.wm=function(){var e,n,r,s,o;if(this.d+1>=this.j)throw at(new Yr(Qr((Ur(),fme))));if(s=-1,n=null,e=Va(this.i,this.d),49<=e&&e<=57){if(s=e-48,!this.g&&(this.g=new u$),c$(this.g,new F2t(s)),++this.d,Va(this.i,this.d)!=41)throw at(new Yr(Qr((Ur(),Tw))));++this.d}else switch(e==63&&--this.d,wi(this),n=i8t(this),n.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));break;default:throw at(new Yr(Qr((Ur(),dme))))}if(wi(this),o=Xm(this),r=null,o.e==2){if(o.Pm()!=2)throw at(new Yr(Qr((Ur(),gme))));r=o.Lm(1),o=o.Lm(0)}if(this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),yi(),yi(),new Iae(s,n,o,r)},l.xm=function(){return wi(this),yi(),hOt},l.ym=function(){var e;if(wi(this),e=$z(24,Xm(this)),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),e},l.zm=function(){var e;if(wi(this),e=$z(20,Xm(this)),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),e},l.Am=function(){var e;if(wi(this),e=$z(22,Xm(this)),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),e},l.Bm=function(){var e,n,r,s,o;for(e=0,r=0,n=-1;this.d<this.j&&(n=Va(this.i,this.d),o=B6t(n),o!=0);)e|=o,++this.d;if(this.d>=this.j)throw at(new Yr(Qr((Ur(),ITt))));if(n==45){for(++this.d;this.d<this.j&&(n=Va(this.i,this.d),o=B6t(n),o!=0);)r|=o,++this.d;if(this.d>=this.j)throw at(new Yr(Qr((Ur(),ITt))))}if(n==58){if(++this.d,wi(this),s=_ee(Xm(this),e,r),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));wi(this)}else if(n==41)++this.d,wi(this),s=_ee(Xm(this),e,r);else throw at(new Yr(Qr((Ur(),hme))));return s},l.Cm=function(){var e;if(wi(this),e=$z(21,Xm(this)),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),e},l.Dm=function(){var e;if(wi(this),e=$z(23,Xm(this)),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),e},l.Em=function(){var e,n;if(wi(this),e=this.f++,n=Rit(Xm(this),e),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),n},l.Fm=function(){var e;if(wi(this),e=Rit(Xm(this),0),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),e},l.Gm=function(e){return wi(this),this.c==5?(wi(this),Mz(e,(yi(),yi(),new By(9,e)))):Mz(e,(yi(),yi(),new By(3,e)))},l.Hm=function(e){var n;return wi(this),n=(yi(),yi(),new yS(2)),this.c==5?(wi(this),gw(n,OL),gw(n,e)):(gw(n,e),gw(n,OL)),n},l.Im=function(e){return wi(this),this.c==5?(wi(this),yi(),yi(),new By(9,e)):(yi(),yi(),new By(3,e))},l.a=0,l.b=0,l.c=0,l.d=0,l.e=0,l.f=1,l.g=null,l.j=0,I(qp,"RegEx/RegexParser",836),D(1947,836,{},YKt),l.bm=function(e){return!1},l.cm=function(){return fkt(this)},l.dm=function(e){return j7(e)},l.em=function(e){return tbe(this)},l.fm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.gm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.hm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.im=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.jm=function(){return wi(this),j7(67)},l.km=function(){return wi(this),j7(73)},l.lm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.mm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.nm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.om=function(){return wi(this),j7(99)},l.pm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.qm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.rm=function(){return wi(this),j7(105)},l.sm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.tm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.um=function(e,n){return a3(e,j7(n)),-1},l.vm=function(){return wi(this),yi(),yi(),new _0(0,94)},l.wm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.xm=function(){return wi(this),yi(),yi(),new _0(0,36)},l.ym=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.zm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.Am=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.Bm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.Cm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.Dm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.Em=function(){var e;if(wi(this),e=Rit(Xm(this),0),this.c!=7)throw at(new Yr(Qr((Ur(),Tw))));return wi(this),e},l.Fm=function(){throw at(new Yr(Qr((Ur(),Hh))))},l.Gm=function(e){return wi(this),Mz(e,(yi(),yi(),new By(3,e)))},l.Hm=function(e){var n;return wi(this),n=(yi(),yi(),new yS(2)),gw(n,e),gw(n,OL),n},l.Im=function(e){return wi(this),yi(),yi(),new By(3,e)};var bx=null,JT=null;I(qp,"RegEx/ParserForXMLSchema",1947),D(122,1,pT,um),l.Jm=function(e){throw at(new uc("Not supported."))},l.Km=function(){return-1},l.Lm=function(e){return null},l.Mm=function(){return null},l.Nm=function(e){},l.Om=function(e){},l.Pm=function(){return 0},l.Ib=function(){return this.Qm(0)},l.Qm=function(e){return this.e==11?".":""},l.e=0;var oOt,ZT,IL,e9e,cOt,W3=null,eW,u0t=null,uOt,OL,l0t=null,lOt,hOt,fOt,dOt,gOt,n9e,a8,r9e,i9e,s9e,a9e,t9,o9e,c9e,T_n=I(qp,"RegEx/Token",122);D(138,122,{3:1,138:1,122:1},ih),l.Qm=function(e){var n,r,s;if(this.e==4)if(this==uOt)r=".";else if(this==eW)r="\\d";else if(this==t9)r="\\w";else if(this==a8)r="\\s";else{for(s=new dp,s.a+="[",n=0;n<this.b.length;n+=2)e&Uf&&n>0&&(s.a+=","),this.b[n]===this.b[n+1]?Mo(s,WO(this.b[n])):(Mo(s,WO(this.b[n])),s.a+="-",Mo(s,WO(this.b[n+1])));s.a+="]",r=s.a}else if(this==fOt)r="\\D";else if(this==gOt)r="\\W";else if(this==dOt)r="\\S";else{for(s=new dp,s.a+="[^",n=0;n<this.b.length;n+=2)e&Uf&&n>0&&(s.a+=","),this.b[n]===this.b[n+1]?Mo(s,WO(this.b[n])):(Mo(s,WO(this.b[n])),s.a+="-",Mo(s,WO(this.b[n+1])));s.a+="]",r=s.a}return r},l.a=!1,l.c=!1,I(qp,"RegEx/RangeToken",138),D(592,1,{592:1},F2t),l.a=0,I(qp,"RegEx/RegexParser/ReferencePosition",592),D(591,1,{3:1,591:1},lYt),l.Fb=function(e){var n;return e==null||!Lt(e,591)?!1:(n=u(e,591),hn(this.b,n.b)&&this.a==n.a)},l.Hb=function(){return _p(this.b+"/"+skt(this.a))},l.Ib=function(){return this.c.Qm(this.a)},l.a=0,I(qp,"RegEx/RegularExpression",591),D(228,122,pT,_0),l.Km=function(){return this.a},l.Qm=function(e){var n,r,s;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:s="\\"+dit(this.a&js);break;case 12:s="\\f";break;case 10:s="\\n";break;case 13:s="\\r";break;case 9:s="\\t";break;case 27:s="\\e";break;default:this.a>=po?(r=(n=this.a>>>0,"0"+n.toString(16)),s="\\v"+Lh(r,r.length-6,r.length)):s=""+dit(this.a&js)}break;case 8:this==lOt||this==hOt?s=""+dit(this.a&js):s="\\"+dit(this.a&js);break;default:s=null}return s},l.a=0,I(qp,"RegEx/Token/CharToken",228),D(318,122,pT,By),l.Lm=function(e){return this.a},l.Nm=function(e){this.b=e},l.Om=function(e){this.c=e},l.Pm=function(){return 1},l.Qm=function(e){var n;if(this.e==3)if(this.c<0&&this.b<0)n=this.a.Qm(e)+"*";else if(this.c==this.b)n=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)n=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)n=this.a.Qm(e)+"{"+this.c+",}";else throw at(new uc("Token#toString(): CLOSURE "+this.c+ao+this.b));else if(this.c<0&&this.b<0)n=this.a.Qm(e)+"*?";else if(this.c==this.b)n=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)n=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)n=this.a.Qm(e)+"{"+this.c+",}?";else throw at(new uc("Token#toString(): NONGREEDYCLOSURE "+this.c+ao+this.b));return n},l.b=0,l.c=0,I(qp,"RegEx/Token/ClosureToken",318),D(837,122,pT,Cyt),l.Lm=function(e){return e==0?this.a:this.b},l.Pm=function(){return 2},l.Qm=function(e){var n;return this.b.e==3&&this.b.Lm(0)==this.a?n=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?n=this.a.Qm(e)+"+?":n=this.a.Qm(e)+(""+this.b.Qm(e)),n},I(qp,"RegEx/Token/ConcatToken",837),D(1945,122,pT,Iae),l.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw at(new uc("Internal Error: "+e))},l.Pm=function(){return this.b?2:1},l.Qm=function(e){var n;return this.c>0?n="(?("+this.c+")":this.a.e==8?n="(?("+this.a+")":n="(?"+this.a,this.b?n+=this.d+"|"+this.b+")":n+=this.d+")",n},l.c=0,I(qp,"RegEx/Token/ConditionToken",1945),D(1946,122,pT,kre),l.Lm=function(e){return this.b},l.Pm=function(){return 1},l.Qm=function(e){return"(?"+(this.a==0?"":skt(this.a))+(this.c==0?"":skt(this.c))+":"+this.b.Qm(e)+")"},l.a=0,l.c=0,I(qp,"RegEx/Token/ModifierToken",1946),D(838,122,pT,Pyt),l.Lm=function(e){return this.a},l.Pm=function(){return 1},l.Qm=function(e){var n;switch(n=null,this.e){case 6:this.b==0?n="(?:"+this.a.Qm(e)+")":n="("+this.a.Qm(e)+")";break;case 20:n="(?="+this.a.Qm(e)+")";break;case 21:n="(?!"+this.a.Qm(e)+")";break;case 22:n="(?<="+this.a.Qm(e)+")";break;case 23:n="(?<!"+this.a.Qm(e)+")";break;case 24:n="(?>"+this.a.Qm(e)+")"}return n},l.b=0,I(qp,"RegEx/Token/ParenToken",838),D(530,122,{3:1,122:1,530:1},lst),l.Mm=function(){return this.b},l.Qm=function(e){return this.e==12?"\\"+this.a:a6n(this.b)},l.a=0,I(qp,"RegEx/Token/StringToken",530),D(476,122,pT,yS),l.Jm=function(e){gw(this,e)},l.Lm=function(e){return u(Im(this.a,e),122)},l.Pm=function(){return this.a?this.a.a.c.length:0},l.Qm=function(e){var n,r,s,o,h;if(this.e==1){if(this.a.a.c.length==2)n=u(Im(this.a,0),122),r=u(Im(this.a,1),122),r.e==3&&r.Lm(0)==n?o=n.Qm(e)+"+":r.e==9&&r.Lm(0)==n?o=n.Qm(e)+"+?":o=n.Qm(e)+(""+r.Qm(e));else{for(h=new dp,s=0;s<this.a.a.c.length;s++)Mo(h,u(Im(this.a,s),122).Qm(e));o=h.a}return o}if(this.a.a.c.length==2&&u(Im(this.a,1),122).e==7)o=u(Im(this.a,0),122).Qm(e)+"?";else if(this.a.a.c.length==2&&u(Im(this.a,0),122).e==7)o=u(Im(this.a,1),122).Qm(e)+"??";else{for(h=new dp,Mo(h,u(Im(this.a,0),122).Qm(e)),s=1;s<this.a.a.c.length;s++)h.a+="|",Mo(h,u(Im(this.a,s),122).Qm(e));o=h.a}return o},I(qp,"RegEx/Token/UnionToken",476),D(527,1,{600:1},OM),l.Ib=function(){return this.a.b},I(Dve,"XMLTypeUtil/PatternMatcherImpl",527),D(1707,1527,{},j2);var u9e;I(Dve,"XMLTypeValidator",1707),D(270,1,F0,W2),l.Jc=function(e){Fa(this,e)},l.Kc=function(){return(this.b-this.a)*this.c<0?y2:new _b(this)},l.a=0,l.b=0,l.c=0;var y2;I(ZTt,"ExclusiveRange",270),D(1084,1,P0,Ej),l.Rb=function(e){u(e,17),zin()},l.Nb=function(e){Na(this,e)},l.Pb=function(){return Lrn()},l.Ub=function(){return Drn()},l.Wb=function(e){u(e,17),Hin()},l.Ob=function(){return!1},l.Sb=function(){return!1},l.Tb=function(){return-1},l.Vb=function(){return-1},l.Qb=function(){throw at(new hp(Ove))},I(ZTt,"ExclusiveRange/1",1084),D(258,1,P0,_b),l.Rb=function(e){u(e,17),qin()},l.Nb=function(e){Na(this,e)},l.Pb=function(){return Fbn(this)},l.Ub=function(){return T0n(this)},l.Wb=function(e){u(e,17),Vin()},l.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},l.Sb=function(){return this.b>0},l.Tb=function(){return this.b},l.Vb=function(){return this.b-1},l.Qb=function(){throw at(new hp(Ove))},l.a=0,l.b=0,I(ZTt,"ExclusiveRange/RangeIterator",258);var Yh=FE(wU,"C"),Fr=FE(dA,"I"),Fl=FE(kk,"Z"),x2=FE(gA,"J"),ul=FE(lA,"B"),ma=FE(hA,"D"),Y3=FE(fA,"F"),wx=FE(pA,"S"),C_n=os("org.eclipse.elk.core.labels","ILabelManager"),pOt=os(oo,"DiagnosticChain"),bOt=os(ove,"ResourceSet"),wOt=I(oo,"InvocationTargetException",null),l9e=(d$(),jdn),h9e=h9e=Dyn;Ign(Ann),Agn("permProps",[[["locale","default"],[Nve,"gecko1_8"]],[["locale","default"],[Nve,"safari"]]]),h9e(null,"elk",null)}).call(this)}).call(this,typeof Z0<"u"?Z0:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(f,g,w){function v(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function b(M,F){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:M}function E(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(M,F):M.__proto__=F)}var S=f("./elk-api.js").default,_=function(M){E(F,M);function F(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};v(this,F);var B=Object.assign({},R),z=!1;try{f.resolve("web-worker"),z=!0}catch{}if(R.workerUrl)if(z){var Y=f("web-worker");B.workerFactory=function(ft){return new Y(ft)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
1534 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=typeof window>"u"?null:window,z=B?B.navigator:null;B&&B.document;var Y=f(""),nt=f({}),ot=f(function(){}),ft=typeof HTMLElement>"u"?"undefined":f(HTMLElement),wt=function(p){return p&&p.instanceString&&ct(p.instanceString)?p.instanceString():null},mt=function(p){return p!=null&&f(p)==Y},ct=function(p){return p!=null&&f(p)===ot},rt=function(p){return!yt(p)&&(Array.isArray?Array.isArray(p):p!=null&&p instanceof Array)},it=function(p){return p!=null&&f(p)===nt&&!rt(p)&&p.constructor===Object},gt=function(p){return p!=null&&f(p)===nt},Q=function(p){return p!=null&&f(p)===f(1)&&!isNaN(p)},dt=function(p){return Q(p)&&Math.floor(p)===p},K=function(p){if(ft!=="undefined")return p!=null&&p instanceof HTMLElement},yt=function(p){return V(p)||Ot(p)},V=function(p){return wt(p)==="collection"&&p._private.single},Ot=function(p){return wt(p)==="collection"&&!p._private.single},It=function(p){return wt(p)==="core"},jt=function(p){return wt(p)==="stylesheet"},xt=function(p){return wt(p)==="event"},Ft=function(p){return p==null?!0:!!(p===""||p.match(/^\s+$/))},Ct=function(p){return typeof HTMLElement>"u"?!1:p instanceof HTMLElement},kt=function(p){return it(p)&&Q(p.x1)&&Q(p.x2)&&Q(p.y1)&&Q(p.y2)},Gt=function(p){return gt(p)&&ct(p.then)},Fe=function(){return z&&z.userAgent.match(/msie|trident|edge/i)},Mt=function(p,x){x||(x=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var O=[],N=0;N<arguments.length;N++)O.push(arguments[N]);return O.join("$")});var C=function L(){var O=this,N=arguments,j,H=x.apply(O,N),q=L.cache;return(j=q[H])||(j=q[H]=p.apply(O,N)),j};return C.cache={},C},pn=Mt(function(y){return y.replace(/([A-Z])/g,function(p){return"-"+p.toLowerCase()})}),Ae=Mt(function(y){return y.replace(/(-\w)/g,function(p){return p[1].toUpperCase()})}),ye=Mt(function(y,p){return y+p[0].toUpperCase()+p.substring(1)},function(y,p){return y+"$"+p}),tn=function(p){return Ft(p)?p:p.charAt(0).toUpperCase()+p.substring(1)},sn="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",be="rgb[a]?\\(("+sn+"[%]?)\\s*,\\s*("+sn+"[%]?)\\s*,\\s*("+sn+"[%]?)(?:\\s*,\\s*("+sn+"))?\\)",Ne="rgb[a]?\\((?:"+sn+"[%]?)\\s*,\\s*(?:"+sn+"[%]?)\\s*,\\s*(?:"+sn+"[%]?)(?:\\s*,\\s*(?:"+sn+"))?\\)",Xt="hsl[a]?\\(("+sn+")\\s*,\\s*("+sn+"[%])\\s*,\\s*("+sn+"[%])(?:\\s*,\\s*("+sn+"))?\\)",_e="hsl[a]?\\((?:"+sn+")\\s*,\\s*(?:"+sn+"[%])\\s*,\\s*(?:"+sn+"[%])(?:\\s*,\\s*(?:"+sn+"))?\\)",xe="\\#[0-9a-fA-F]{3}",Mn="\\#[0-9a-fA-F]{6}",ce=function(p,x){return p<x?-1:p>x?1:0},Br=function(p,x){return-1*ce(p,x)},we=Object.assign!=null?Object.assign.bind(Object):function(y){for(var p=arguments,x=1;x<p.length;x++){var C=p[x];if(C!=null)for(var L=Object.keys(C),O=0;O<L.length;O++){var N=L[O];y[N]=C[N]}}return y},Fi=function(p){if(!(!(p.length===4||p.length===7)||p[0]!=="#")){var x=p.length===4,C,L,O,N=16;return x?(C=parseInt(p[1]+p[1],N),L=parseInt(p[2]+p[2],N),O=parseInt(p[3]+p[3],N)):(C=parseInt(p[1]+p[2],N),L=parseInt(p[3]+p[4],N),O=parseInt(p[5]+p[6],N)),[C,L,O]}},mi=function(p){var x,C,L,O,N,j,H,q;function W(pt,_t,St){return St<0&&(St+=1),St>1&&(St-=1),St<1/6?pt+(_t-pt)*6*St:St<1/2?_t:St<2/3?pt+(_t-pt)*(2/3-St)*6:pt}var Z=new RegExp("^"+Xt+"$").exec(p);if(Z){if(C=parseInt(Z[1]),C<0?C=(360- -1*C%360)%360:C>360&&(C=C%360),C/=360,L=parseFloat(Z[2]),L<0||L>100||(L=L/100,O=parseFloat(Z[3]),O<0||O>100)||(O=O/100,N=Z[4],N!==void 0&&(N=parseFloat(N),N<0||N>1)))return;if(L===0)j=H=q=Math.round(O*255);else{var st=O<.5?O*(1+L):O+L-O*L,bt=2*O-st;j=Math.round(255*W(bt,st,C+1/3)),H=Math.round(255*W(bt,st,C)),q=Math.round(255*W(bt,st,C-1/3))}x=[j,H,q,N]}return x},ga=function(p){var x,C=new RegExp("^"+be+"$").exec(p);if(C){x=[];for(var L=[],O=1;O<=3;O++){var N=C[O];if(N[N.length-1]==="%"&&(L[O]=!0),N=parseFloat(N),L[O]&&(N=N/100*255),N<0||N>255)return;x.push(Math.floor(N))}var j=L[1]||L[2]||L[3],H=L[1]&&L[2]&&L[3];if(j&&!H)return;var q=C[4];if(q!==void 0){if(q=parseFloat(q),q<0||q>1)return;x.push(q)}}return x},Ss=function(p){return br[p.toLowerCase()]},za=function(p){return(rt(p)?p:null)||Ss(p)||Fi(p)||ga(p)||mi(p)},br={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},An=function(p){for(var x=p.map,C=p.keys,L=C.length,O=0;O<L;O++){var N=C[O];if(it(N))throw Error("Tried to set map with object key");O<C.length-1?(x[N]==null&&(x[N]={}),x=x[N]):x[N]=p.value}},Nn=function(p){for(var x=p.map,C=p.keys,L=C.length,O=0;O<L;O++){var N=C[O];if(it(N))throw Error("Tried to get map with object key");if(x=x[N],x==null)return x}return x};function Bn(y){var p=typeof y;return y!=null&&(p=="object"||p=="function")}var ke=Bn,pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Z0<"u"?Z0:typeof self<"u"?self:{};function Je(y,p){return p={exports:{}},y(p,p.exports),p.exports}var an=typeof pe=="object"&&pe&&pe.Object===Object&&pe,xn=an,qa=typeof self=="object"&&self&&self.Object===Object&&self,xo=xn||qa||Function("return this")(),ko=xo,va=function(){return ko.Date.now()},Ha=va,ds=/\s/;function Fu(y){for(var p=y.length;p--&&ds.test(y.charAt(p)););return p}var Zs=Fu,d1=/^\s+/;function I2(y){return y&&y.slice(0,Zs(y)+1).replace(d1,"")}var ll=I2,Ic=ko.Symbol,wc=Ic,Ea=Object.prototype,gu=Ea.hasOwnProperty,ta=Ea.toString,fo=wc?wc.toStringTag:void 0;function mc(y){var p=gu.call(y,fo),x=y[fo];try{y[fo]=void 0;var C=!0}catch{}var L=ta.call(y);return C&&(p?y[fo]=x:delete y[fo]),L}var ca=mc,ya=Object.prototype,ea=ya.toString;function Zl(y){return ea.call(y)}var Uc=Zl,rm="[object Null]",kh="[object Undefined]",Md=wc?wc.toStringTag:void 0;function w0(y){return y==null?y===void 0?kh:rm:Md&&Md in Object(y)?ca(y):Uc(y)}var Id=w0;function m0(y){return y!=null&&typeof y=="object"}var hg=m0,Gi="[object Symbol]";function cn(y){return typeof y=="symbol"||hg(y)&&Id(y)==Gi}var Nr=cn,Si=0/0,vc=/^[-+]0x[0-9a-f]+$/i,Rc=/^0b[01]+$/i,Eh=/^0o[0-7]+$/i,Zc=parseInt;function Qh(y){if(typeof y=="number")return y;if(Nr(y))return Si;if(ke(y)){var p=typeof y.valueOf=="function"?y.valueOf():y;y=ke(p)?p+"":p}if(typeof y!="string")return y===0?y:+y;y=ll(y);var x=Rc.test(y);return x||Eh.test(y)?Zc(y.slice(2),x?2:8):vc.test(y)?Si:+y}var Od=Qh,cs="Expected a function",As=Math.max,to=Math.min;function Ci(y,p,x){var C,L,O,N,j,H,q=0,W=!1,Z=!1,st=!0;if(typeof y!="function")throw new TypeError(cs);p=Od(p)||0,ke(x)&&(W=!!x.leading,Z="maxWait"in x,O=Z?As(Od(x.maxWait)||0,p):O,st="trailing"in x?!!x.trailing:st);function bt(ee){var Ut=C,de=L;return C=L=void 0,q=ee,N=y.apply(de,Ut),N}function pt(ee){return q=ee,j=setTimeout(Et,p),W?bt(ee):N}function _t(ee){var Ut=ee-H,de=ee-q,Yt=p-Ut;return Z?to(Yt,O-de):Yt}function St(ee){var Ut=ee-H,de=ee-q;return H===void 0||Ut>=p||Ut<0||Z&&de>=O}function Et(){var ee=Ha();if(St(ee))return Nt(ee);j=setTimeout(Et,_t(ee))}function Nt(ee){return j=void 0,st&&C?bt(ee):(C=L=void 0,N)}function Pt(){j!==void 0&&clearTimeout(j),q=0,C=H=L=j=void 0}function qt(){return j===void 0?N:Nt(Ha())}function re(){var ee=Ha(),Ut=St(ee);if(C=arguments,L=this,H=ee,Ut){if(j===void 0)return pt(H);if(Z)return clearTimeout(j),j=setTimeout(Et,p),bt(H)}return j===void 0&&(j=setTimeout(Et,p)),N}return re.cancel=Pt,re.flush=qt,re}var pu=Ci,Le=B?B.performance:null,iy=Le&&Le.now?function(){return Le.now()}:function(){return Date.now()},$e=function(){if(B){if(B.requestAnimationFrame)return function(y){B.requestAnimationFrame(y)};if(B.mozRequestAnimationFrame)return function(y){B.mozRequestAnimationFrame(y)};if(B.webkitRequestAnimationFrame)return function(y){B.webkitRequestAnimationFrame(y)};if(B.msRequestAnimationFrame)return function(y){B.msRequestAnimationFrame(y)}}return function(y){y&&setTimeout(function(){y(iy())},1e3/60)}}(),g1=function(p){return $e(p)},ip=iy,sy=9261,D8=65599,g4=5381,th=function(p){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sy,C=x,L;L=p.next(),!L.done;)C=C*D8+L.value|0;return C},fg=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sy;return x*D8+p|0},O2=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g4;return(x<<5)+x+p|0},M8=function(p,x){return p*2097152+x},N2=function(p){return p[0]*2097152+p[1]},p4=function(p,x){return[fg(p[0],x[0]),O2(p[1],x[1])]},U1=function(p,x){var C={value:0,done:!1},L=0,O=p.length,N={next:function(){return L<O?C.value=p[L++]:C.done=!0,C}};return th(N,x)},Nd=function(p,x){var C={value:0,done:!1},L=0,O=p.length,N={next:function(){return L<O?C.value=p.charCodeAt(L++):C.done=!0,C}};return th(N,x)},Pd=function(){return I8(arguments)},I8=function(p){for(var x,C=0;C<p.length;C++){var L=p[C];C===0?x=Nd(L):x=Nd(L,x)}return x},im=!0,Gx=console.warn!=null,hb=console.trace!=null,Kx=Number.MAX_SAFE_INTEGER||9007199254740991,b4=function(){return!0},ay=function(){return!1},sp=function(){return 0},BD=function(){},$l=function(p){throw new Error(p)},U9=function(p){if(p!==void 0)im=!!p;else return im},Gc=function(p){U9()&&(Gx?console.warn(p):(console.log(p),hb&&console.trace()))},$X=function(p){return we({},p)},P2=function(p){return p==null?p:rt(p)?p.slice():it(p)?$X(p):p},zX=function(p){return p.slice()},MB=function(p,x){for(x=p="";p++<36;x+=p*51&52?(p^15?8^Math.random()*(p^20?16:4):4).toString(16):"-");return x},qX={},IB=function(){return qX},p1=function(p){var x=Object.keys(p);return function(C){for(var L={},O=0;O<x.length;O++){var N=x[O],j=C==null?void 0:C[N];L[N]=j===void 0?p[N]:j}return L}},oy=function(p,x,C){for(var L=p.length-1;L>=0&&!(p[L]===x&&(p.splice(L,1),C));L--);},G9=function(p){p.splice(0,p.length)},OB=function(p,x){for(var C=0;C<x.length;C++){var L=x[C];p.push(L)}},fb=function(p,x,C){return C&&(x=ye(C,x)),p[x]},cy=function(p,x,C,L){C&&(x=ye(C,x)),p[x]=L},HX=function(){function y(){g(this,y),this._obj={}}return v(y,[{key:"set",value:function(x,C){return this._obj[x]=C,this}},{key:"delete",value:function(x){return this._obj[x]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(x){return this._obj[x]!==void 0}},{key:"get",value:function(x){return this._obj[x]}}]),y}(),F2=typeof Map<"u"?Map:HX,VX="undefined",UX=function(){function y(p){if(g(this,y),this._obj=Object.create(null),this.size=0,p!=null){var x;p.instanceString!=null&&p.instanceString()===this.instanceString()?x=p.toArray():x=p;for(var C=0;C<x.length;C++)this.add(x[C])}}return v(y,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(x){var C=this._obj;C[x]!==1&&(C[x]=1,this.size++)}},{key:"delete",value:function(x){var C=this._obj;C[x]===1&&(C[x]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(x){return this._obj[x]===1}},{key:"toArray",value:function(){var x=this;return Object.keys(this._obj).filter(function(C){return x.has(C)})}},{key:"forEach",value:function(x,C){return this.toArray().forEach(x,C)}}]),y}(),Wx=(typeof Set>"u"?"undefined":f(Set))!==VX?Set:UX,K9=function(p,x){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(p===void 0||x===void 0||!It(p)){$l("An element must have a core reference and parameters set");return}var L=x.group;if(L==null&&(x.data&&x.data.source!=null&&x.data.target!=null?L="edges":L="nodes"),L!=="nodes"&&L!=="edges"){$l("An element must be of type `nodes` or `edges`; you specified `"+L+"`");return}this.length=1,this[0]=this;var O=this._private={cy:p,single:!0,data:x.data||{},position:x.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:L,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!x.selected,selectable:x.selectable===void 0?!0:!!x.selectable,locked:!!x.locked,grabbed:!1,grabbable:x.grabbable===void 0?!0:!!x.grabbable,pannable:x.pannable===void 0?L==="edges":!!x.pannable,active:!1,classes:new Wx,animation:{current:[],queue:[]},rscratch:{},scratch:x.scratch||{},edges:[],children:[],parent:x.parent&&x.parent.isNode()?x.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(O.position.x==null&&(O.position.x=0),O.position.y==null&&(O.position.y=0),x.renderedPosition){var N=x.renderedPosition,j=p.pan(),H=p.zoom();O.position={x:(N.x-j.x)/H,y:(N.y-j.y)/H}}var q=[];rt(x.classes)?q=x.classes:mt(x.classes)&&(q=x.classes.split(/\s+/));for(var W=0,Z=q.length;W<Z;W++){var st=q[W];!st||st===""||O.classes.add(st)}this.createEmitter();var bt=x.style||x.css;bt&&(Gc("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(bt)),(C===void 0||C)&&this.restore()},NB=function(p){return p={bfs:p.bfs||!p.dfs,dfs:p.dfs||!p.bfs},function(C,L,O){var N;it(C)&&!yt(C)&&(N=C,C=N.roots||N.root,L=N.visit,O=N.directed),O=arguments.length===2&&!ct(L)?L:O,L=ct(L)?L:function(){};for(var j=this._private.cy,H=C=mt(C)?this.filter(C):C,q=[],W=[],Z={},st={},bt={},pt=0,_t,St=this.byGroup(),Et=St.nodes,Nt=St.edges,Pt=0;Pt<H.length;Pt++){var qt=H[Pt],re=qt.id();qt.isNode()&&(q.unshift(qt),p.bfs&&(bt[re]=!0,W.push(qt)),st[re]=0)}for(var ee=function(){var ze=p.bfs?q.shift():q.pop(),me=ze.id();if(p.dfs){if(bt[me])return"continue";bt[me]=!0,W.push(ze)}var yn=st[me],nn=Z[me],qe=nn!=null?nn.source():null,Tn=nn!=null?nn.target():null,Xn=nn==null?void 0:ze.same(qe)?Tn[0]:qe[0],lr=void 0;if(lr=L(ze,nn,Xn,pt++,yn),lr===!0)return _t=ze,"break";if(lr===!1)return"break";for(var Sn=ze.connectedEdges().filter(function(Cr){return(!O||Cr.source().same(ze))&&Nt.has(Cr)}),or=0;or<Sn.length;or++){var pr=Sn[or],kr=pr.connectedNodes().filter(function(Cr){return!Cr.same(ze)&&Et.has(Cr)}),wr=kr.id();kr.length!==0&&!bt[wr]&&(kr=kr[0],q.push(kr),p.bfs&&(bt[wr]=!0,W.push(kr)),Z[wr]=pr,st[wr]=st[me]+1)}};q.length!==0;){var Ut=ee();if(Ut!=="continue"&&Ut==="break")break}for(var de=j.collection(),Yt=0;Yt<W.length;Yt++){var Ee=W[Yt],Te=Z[Ee.id()];Te!=null&&de.push(Te),de.push(Ee)}return{path:j.collection(de),found:j.collection(_t)}}},O8={breadthFirstSearch:NB({bfs:!0}),depthFirstSearch:NB({dfs:!0})};O8.bfs=O8.breadthFirstSearch,O8.dfs=O8.depthFirstSearch;var GX=Je(function(y,p){(function(){var x,C,L,O,N,j,H,q,W,Z,st,bt,pt,_t,St;L=Math.floor,Z=Math.min,C=function(Et,Nt){return Et<Nt?-1:Et>Nt?1:0},W=function(Et,Nt,Pt,qt,re){var ee;if(Pt==null&&(Pt=0),re==null&&(re=C),Pt<0)throw new Error("lo must be non-negative");for(qt==null&&(qt=Et.length);Pt<qt;)ee=L((Pt+qt)/2),re(Nt,Et[ee])<0?qt=ee:Pt=ee+1;return[].splice.apply(Et,[Pt,Pt-Pt].concat(Nt)),Nt},j=function(Et,Nt,Pt){return Pt==null&&(Pt=C),Et.push(Nt),_t(Et,0,Et.length-1,Pt)},N=function(Et,Nt){var Pt,qt;return Nt==null&&(Nt=C),Pt=Et.pop(),Et.length?(qt=Et[0],Et[0]=Pt,St(Et,0,Nt)):qt=Pt,qt},q=function(Et,Nt,Pt){var qt;return Pt==null&&(Pt=C),qt=Et[0],Et[0]=Nt,St(Et,0,Pt),qt},H=function(Et,Nt,Pt){var qt;return Pt==null&&(Pt=C),Et.length&&Pt(Et[0],Nt)<0&&(qt=[Et[0],Nt],Nt=qt[0],Et[0]=qt[1],St(Et,0,Pt)),Nt},O=function(Et,Nt){var Pt,qt,re,ee,Ut,de;for(Nt==null&&(Nt=C),ee=(function(){de=[];for(var Yt=0,Ee=L(Et.length/2);0<=Ee?Yt<Ee:Yt>Ee;0<=Ee?Yt++:Yt--)de.push(Yt);return de}).apply(this).reverse(),Ut=[],qt=0,re=ee.length;qt<re;qt++)Pt=ee[qt],Ut.push(St(Et,Pt,Nt));return Ut},pt=function(Et,Nt,Pt){var qt;if(Pt==null&&(Pt=C),qt=Et.indexOf(Nt),qt!==-1)return _t(Et,0,qt,Pt),St(Et,qt,Pt)},st=function(Et,Nt,Pt){var qt,re,ee,Ut,de;if(Pt==null&&(Pt=C),re=Et.slice(0,Nt),!re.length)return re;for(O(re,Pt),de=Et.slice(Nt),ee=0,Ut=de.length;ee<Ut;ee++)qt=de[ee],H(re,qt,Pt);return re.sort(Pt).reverse()},bt=function(Et,Nt,Pt){var qt,re,ee,Ut,de,Yt,Ee,Te,ie;if(Pt==null&&(Pt=C),Nt*10<=Et.length){if(ee=Et.slice(0,Nt).sort(Pt),!ee.length)return ee;for(re=ee[ee.length-1],Ee=Et.slice(Nt),Ut=0,Yt=Ee.length;Ut<Yt;Ut++)qt=Ee[Ut],Pt(qt,re)<0&&(W(ee,qt,0,null,Pt),ee.pop(),re=ee[ee.length-1]);return ee}for(O(Et,Pt),ie=[],de=0,Te=Z(Nt,Et.length);0<=Te?de<Te:de>Te;0<=Te?++de:--de)ie.push(N(Et,Pt));return ie},_t=function(Et,Nt,Pt,qt){var re,ee,Ut;for(qt==null&&(qt=C),re=Et[Pt];Pt>Nt;){if(Ut=Pt-1>>1,ee=Et[Ut],qt(re,ee)<0){Et[Pt]=ee,Pt=Ut;continue}break}return Et[Pt]=re},St=function(Et,Nt,Pt){var qt,re,ee,Ut,de;for(Pt==null&&(Pt=C),re=Et.length,de=Nt,ee=Et[Nt],qt=2*Nt+1;qt<re;)Ut=qt+1,Ut<re&&!(Pt(Et[qt],Et[Ut])<0)&&(qt=Ut),Et[Nt]=Et[qt],Nt=qt,qt=2*Nt+1;return Et[Nt]=ee,_t(Et,de,Nt,Pt)},x=function(){Et.push=j,Et.pop=N,Et.replace=q,Et.pushpop=H,Et.heapify=O,Et.updateItem=pt,Et.nlargest=st,Et.nsmallest=bt;function Et(Nt){this.cmp=Nt??C,this.nodes=[]}return Et.prototype.push=function(Nt){return j(this.nodes,Nt,this.cmp)},Et.prototype.pop=function(){return N(this.nodes,this.cmp)},Et.prototype.peek=function(){return this.nodes[0]},Et.prototype.contains=function(Nt){return this.nodes.indexOf(Nt)!==-1},Et.prototype.replace=function(Nt){return q(this.nodes,Nt,this.cmp)},Et.prototype.pushpop=function(Nt){return H(this.nodes,Nt,this.cmp)},Et.prototype.heapify=function(){return O(this.nodes,this.cmp)},Et.prototype.updateItem=function(Nt){return pt(this.nodes,Nt,this.cmp)},Et.prototype.clear=function(){return this.nodes=[]},Et.prototype.empty=function(){return this.nodes.length===0},Et.prototype.size=function(){return this.nodes.length},Et.prototype.clone=function(){var Nt;return Nt=new Et,Nt.nodes=this.nodes.slice(0),Nt},Et.prototype.toArray=function(){return this.nodes.slice(0)},Et.prototype.insert=Et.prototype.push,Et.prototype.top=Et.prototype.peek,Et.prototype.front=Et.prototype.peek,Et.prototype.has=Et.prototype.contains,Et.prototype.copy=Et.prototype.clone,Et}(),function(Et,Nt){return y.exports=Nt()}(this,function(){return x})}).call(pe)}),N8=GX,KX=p1({root:null,weight:function(p){return 1},directed:!1}),WX={dijkstra:function(p){if(!it(p)){var x=arguments;p={root:x[0],weight:x[1],directed:x[2]}}var C=KX(p),L=C.root,O=C.weight,N=C.directed,j=this,H=O,q=mt(L)?this.filter(L)[0]:L[0],W={},Z={},st={},bt=this.byGroup(),pt=bt.nodes,_t=bt.edges;_t.unmergeBy(function(yn){return yn.isLoop()});for(var St=function(nn){return W[nn.id()]},Et=function(nn,qe){W[nn.id()]=qe,Nt.updateItem(nn)},Nt=new N8(function(yn,nn){return St(yn)-St(nn)}),Pt=0;Pt<pt.length;Pt++){var qt=pt[Pt];W[qt.id()]=qt.same(q)?0:1/0,Nt.push(qt)}for(var re=function(nn,qe){for(var Tn=(N?nn.edgesTo(qe):nn.edgesWith(qe)).intersect(_t),Xn=1/0,lr,Sn=0;Sn<Tn.length;Sn++){var or=Tn[Sn],pr=H(or);(pr<Xn||!lr)&&(Xn=pr,lr=or)}return{edge:lr,dist:Xn}};Nt.size()>0;){var ee=Nt.pop(),Ut=St(ee),de=ee.id();if(st[de]=Ut,Ut!==1/0)for(var Yt=ee.neighborhood().intersect(pt),Ee=0;Ee<Yt.length;Ee++){var Te=Yt[Ee],ie=Te.id(),ze=re(ee,Te),me=Ut+ze.dist;me<St(Te)&&(Et(Te,me),Z[ie]={node:ee,edge:ze.edge})}}return{distanceTo:function(nn){var qe=mt(nn)?pt.filter(nn)[0]:nn[0];return st[qe.id()]},pathTo:function(nn){var qe=mt(nn)?pt.filter(nn)[0]:nn[0],Tn=[],Xn=qe,lr=Xn.id();if(qe.length>0)for(Tn.unshift(qe);Z[lr];){var Sn=Z[lr];Tn.unshift(Sn.edge),Tn.unshift(Sn.node),Xn=Sn.node,lr=Xn.id()}return j.spawn(Tn)}}}},YX={kruskal:function(p){p=p||function(Pt){return 1};for(var x=this.byGroup(),C=x.nodes,L=x.edges,O=C.length,N=new Array(O),j=C,H=function(qt){for(var re=0;re<N.length;re++){var ee=N[re];if(ee.has(qt))return re}},q=0;q<O;q++)N[q]=this.spawn(C[q]);for(var W=L.sort(function(Pt,qt){return p(Pt)-p(qt)}),Z=0;Z<W.length;Z++){var st=W[Z],bt=st.source()[0],pt=st.target()[0],_t=H(bt),St=H(pt),Et=N[_t],Nt=N[St];_t!==St&&(j.merge(st),Et.merge(Nt),N.splice(St,1))}return j}},XX=p1({root:null,goal:null,weight:function(p){return 1},heuristic:function(p){return 0},directed:!1}),QX={aStar:function(p){var x=this.cy(),C=XX(p),L=C.root,O=C.goal,N=C.heuristic,j=C.directed,H=C.weight;L=x.collection(L)[0],O=x.collection(O)[0];var q=L.id(),W=O.id(),Z={},st={},bt={},pt=new N8(function(lr,Sn){return st[lr.id()]-st[Sn.id()]}),_t=new Wx,St={},Et={},Nt=function(Sn,or){pt.push(Sn),_t.add(or)},Pt,qt,re=function(){Pt=pt.pop(),qt=Pt.id(),_t.delete(qt)},ee=function(Sn){return _t.has(Sn)};Nt(L,q),Z[q]=0,st[q]=N(L);for(var Ut=0;pt.size()>0;){if(re(),Ut++,qt===W){for(var de=[],Yt=O,Ee=W,Te=Et[Ee];de.unshift(Yt),Te!=null&&de.unshift(Te),Yt=St[Ee],Yt!=null;)Ee=Yt.id(),Te=Et[Ee];return{found:!0,distance:Z[qt],path:this.spawn(de),steps:Ut}}bt[qt]=!0;for(var ie=Pt._private.edges,ze=0;ze<ie.length;ze++){var me=ie[ze];if(this.hasElementWithId(me.id())&&!(j&&me.data("source")!==qt)){var yn=me.source(),nn=me.target(),qe=yn.id()!==qt?yn:nn,Tn=qe.id();if(this.hasElementWithId(Tn)&&!bt[Tn]){var Xn=Z[qt]+H(me);if(!ee(Tn)){Z[Tn]=Xn,st[Tn]=Xn+N(qe),Nt(qe,Tn),St[Tn]=Pt,Et[Tn]=me;continue}Xn<Z[Tn]&&(Z[Tn]=Xn,st[Tn]=Xn+N(qe),St[Tn]=Pt,Et[Tn]=me)}}}}return{found:!1,distance:void 0,path:void 0,steps:Ut}}},JX=p1({weight:function(p){return 1},directed:!1}),ZX={floydWarshall:function(p){for(var x=this.cy(),C=JX(p),L=C.weight,O=C.directed,N=L,j=this.byGroup(),H=j.nodes,q=j.edges,W=H.length,Z=W*W,st=function(pr){return H.indexOf(pr)},bt=function(pr){return H[pr]},pt=new Array(Z),_t=0;_t<Z;_t++){var St=_t%W,Et=(_t-St)/W;Et===St?pt[_t]=0:pt[_t]=1/0}for(var Nt=new Array(Z),Pt=new Array(Z),qt=0;qt<q.length;qt++){var re=q[qt],ee=re.source()[0],Ut=re.target()[0];if(ee!==Ut){var de=st(ee),Yt=st(Ut),Ee=de*W+Yt,Te=N(re);if(pt[Ee]>Te&&(pt[Ee]=Te,Nt[Ee]=Yt,Pt[Ee]=re),!O){var ie=Yt*W+de;!O&&pt[ie]>Te&&(pt[ie]=Te,Nt[ie]=de,Pt[ie]=re)}}}for(var ze=0;ze<W;ze++)for(var me=0;me<W;me++)for(var yn=me*W+ze,nn=0;nn<W;nn++){var qe=me*W+nn,Tn=ze*W+nn;pt[yn]+pt[Tn]<pt[qe]&&(pt[qe]=pt[yn]+pt[Tn],Nt[qe]=Nt[yn])}var Xn=function(pr){return(mt(pr)?x.filter(pr):pr)[0]},lr=function(pr){return st(Xn(pr))},Sn={distance:function(pr,kr){var wr=lr(pr),Cr=lr(kr);return pt[wr*W+Cr]},path:function(pr,kr){var wr=lr(pr),Cr=lr(kr),$n=bt(wr);if(wr===Cr)return $n.collection();if(Nt[wr*W+Cr]==null)return x.collection();var cr=x.collection(),mr=wr,Sr;for(cr.merge($n);wr!==Cr;)mr=wr,wr=Nt[wr*W+Cr],Sr=Pt[mr*W+wr],cr.merge(Sr),cr.merge(bt(wr));return cr}};return Sn}},tQ=p1({weight:function(p){return 1},directed:!1,root:null}),eQ={bellmanFord:function(p){var x=this,C=tQ(p),L=C.weight,O=C.directed,N=C.root,j=L,H=this,q=this.cy(),W=this.byGroup(),Z=W.edges,st=W.nodes,bt=st.length,pt=new F2,_t=!1,St=[];N=q.collection(N)[0],Z.unmergeBy(function(ks){return ks.isLoop()});for(var Et=Z.length,Nt=function(as){var Es=pt.get(as.id());return Es||(Es={},pt.set(as.id(),Es)),Es},Pt=function(as){return(mt(as)?q.$(as):as)[0]},qt=function(as){return Nt(Pt(as)).dist},re=function(as){for(var Es=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,eo=Pt(as),Ta=[],pa=eo;;){if(pa==null)return x.spawn();var mo=Nt(pa),Kn=mo.edge,G=mo.pred;if(Ta.unshift(pa[0]),pa.same(Es)&&Ta.length>0)break;Kn!=null&&Ta.unshift(Kn),pa=G}return H.spawn(Ta)},ee=0;ee<bt;ee++){var Ut=st[ee],de=Nt(Ut);Ut.same(N)?de.dist=0:de.dist=1/0,de.pred=null,de.edge=null}for(var Yt=!1,Ee=function(as,Es,eo,Ta,pa,mo){var Kn=Ta.dist+mo;Kn<pa.dist&&!eo.same(Ta.edge)&&(pa.dist=Kn,pa.pred=as,pa.edge=eo,Yt=!0)},Te=1;Te<bt;Te++){Yt=!1;for(var ie=0;ie<Et;ie++){var ze=Z[ie],me=ze.source(),yn=ze.target(),nn=j(ze),qe=Nt(me),Tn=Nt(yn);Ee(me,yn,ze,qe,Tn,nn),O||Ee(yn,me,ze,Tn,qe,nn)}if(!Yt)break}if(Yt)for(var Xn=[],lr=0;lr<Et;lr++){var Sn=Z[lr],or=Sn.source(),pr=Sn.target(),kr=j(Sn),wr=Nt(or).dist,Cr=Nt(pr).dist;if(wr+kr<Cr||!O&&Cr+kr<wr)if(_t||(Gc("Graph contains a negative weight cycle for Bellman-Ford"),_t=!0),p.findNegativeWeightCycles!==!1){var $n=[];wr+kr<Cr&&$n.push(or),!O&&Cr+kr<wr&&$n.push(pr);for(var cr=$n.length,mr=0;mr<cr;mr++){var Sr=$n[mr],gi=[Sr];gi.push(Nt(Sr).edge);for(var ss=Nt(Sr).pred;gi.indexOf(ss)===-1;)gi.push(ss),gi.push(Nt(ss).edge),ss=Nt(ss).pred;gi=gi.slice(gi.indexOf(ss));for(var na=gi[0].id(),vi=0,si=2;si<gi.length;si+=2)gi[si].id()<na&&(na=gi[si].id(),vi=si);gi=gi.slice(vi).concat(gi.slice(0,vi)),gi.push(gi[0]);var Qi=gi.map(function(ks){return ks.id()}).join(",");Xn.indexOf(Qi)===-1&&(St.push(H.spawn(gi)),Xn.push(Qi))}}else break}return{distanceTo:qt,pathTo:re,hasNegativeWeightCycle:_t,negativeWeightCycles:St}}},nQ=Math.sqrt(2),rQ=function(p,x,C){C.length===0&&$l("Karger-Stein must be run on a connected (sub)graph");for(var L=C[p],O=L[1],N=L[2],j=x[O],H=x[N],q=C,W=q.length-1;W>=0;W--){var Z=q[W],st=Z[1],bt=Z[2];(x[st]===j&&x[bt]===H||x[st]===H&&x[bt]===j)&&q.splice(W,1)}for(var pt=0;pt<q.length;pt++){var _t=q[pt];_t[1]===H?(q[pt]=_t.slice(),q[pt][1]=j):_t[2]===H&&(q[pt]=_t.slice(),q[pt][2]=j)}for(var St=0;St<x.length;St++)x[St]===H&&(x[St]=j);return q},RD=function(p,x,C,L){for(;C>L;){var O=Math.floor(Math.random()*x.length);x=rQ(O,p,x),C--}return x},iQ={kargerStein:function(){var p=this,x=this.byGroup(),C=x.nodes,L=x.edges;L.unmergeBy(function(Tn){return Tn.isLoop()});var O=C.length,N=L.length,j=Math.ceil(Math.pow(Math.log(O)/Math.LN2,2)),H=Math.floor(O/nQ);if(O<2){$l("At least 2 nodes are required for Karger-Stein algorithm");return}for(var q=[],W=0;W<N;W++){var Z=L[W];q.push([W,C.indexOf(Z.source()),C.indexOf(Z.target())])}for(var st=1/0,bt=[],pt=new Array(O),_t=new Array(O),St=new Array(O),Et=function(Xn,lr){for(var Sn=0;Sn<O;Sn++)lr[Sn]=Xn[Sn]},Nt=0;Nt<=j;Nt++){for(var Pt=0;Pt<O;Pt++)_t[Pt]=Pt;var qt=RD(_t,q.slice(),O,H),re=qt.slice();Et(_t,St);var ee=RD(_t,qt,H,2),Ut=RD(St,re,H,2);ee.length<=Ut.length&&ee.length<st?(st=ee.length,bt=ee,Et(_t,pt)):Ut.length<=ee.length&&Ut.length<st&&(st=Ut.length,bt=Ut,Et(St,pt))}for(var de=this.spawn(bt.map(function(Tn){return L[Tn[0]]})),Yt=this.spawn(),Ee=this.spawn(),Te=pt[0],ie=0;ie<pt.length;ie++){var ze=pt[ie],me=C[ie];ze===Te?Yt.merge(me):Ee.merge(me)}var yn=function(Xn){var lr=p.spawn();return Xn.forEach(function(Sn){lr.merge(Sn),Sn.connectedEdges().forEach(function(or){p.contains(or)&&!de.contains(or)&&lr.merge(or)})}),lr},nn=[yn(Yt),yn(Ee)],qe={cut:de,components:nn,partition1:Yt,partition2:Ee};return qe}},sQ=function(p){return{x:p.x,y:p.y}},W9=function(p,x,C){return{x:p.x*x+C.x,y:p.y*x+C.y}},PB=function(p,x,C){return{x:(p.x-C.x)/x,y:(p.y-C.y)/x}},Yx=function(p){return{x:p[0],y:p[1]}},aQ=function(p){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.length,L=1/0,O=x;O<C;O++){var N=p[O];isFinite(N)&&(L=Math.min(N,L))}return L},oQ=function(p){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.length,L=-1/0,O=x;O<C;O++){var N=p[O];isFinite(N)&&(L=Math.max(N,L))}return L},cQ=function(p){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.length,L=0,O=0,N=x;N<C;N++){var j=p[N];isFinite(j)&&(L+=j,O++)}return L/O},uQ=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.length,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,O=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,N=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;L?p=p.slice(x,C):(C<p.length&&p.splice(C,p.length-C),x>0&&p.splice(0,x));for(var j=0,H=p.length-1;H>=0;H--){var q=p[H];N?isFinite(q)||(p[H]=-1/0,j++):p.splice(H,1)}O&&p.sort(function(st,bt){return st-bt});var W=p.length,Z=Math.floor(W/2);return W%2!==0?p[Z+1+j]:(p[Z-1+j]+p[Z+j])/2},lQ=function(p){return Math.PI*p/180},Y9=function(p,x){return Math.atan2(x,p)-Math.PI/2},jD=Math.log2||function(y){return Math.log(y)/Math.log(2)},FB=function(p){return p>0?1:p<0?-1:0},w4=function(p,x){return Math.sqrt(m4(p,x))},m4=function(p,x){var C=x.x-p.x,L=x.y-p.y;return C*C+L*L},hQ=function(p){for(var x=p.length,C=0,L=0;L<x;L++)C+=p[L];for(var O=0;O<x;O++)p[O]=p[O]/C;return p},Lf=function(p,x,C,L){return(1-L)*(1-L)*p+2*(1-L)*L*x+L*L*C},Xx=function(p,x,C,L){return{x:Lf(p.x,x.x,C.x,L),y:Lf(p.y,x.y,C.y,L)}},fQ=function(p,x,C,L){var O={x:x.x-p.x,y:x.y-p.y},N=w4(p,x),j={x:O.x/N,y:O.y/N};return C=C??0,L=L??C*N,{x:p.x+j.x*L,y:p.y+j.y*L}},P8=function(p,x,C){return Math.max(p,Math.min(C,x))},v0=function(p){if(p==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(p.x1!=null&&p.y1!=null){if(p.x2!=null&&p.y2!=null&&p.x2>=p.x1&&p.y2>=p.y1)return{x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,w:p.x2-p.x1,h:p.y2-p.y1};if(p.w!=null&&p.h!=null&&p.w>=0&&p.h>=0)return{x1:p.x1,y1:p.y1,x2:p.x1+p.w,y2:p.y1+p.h,w:p.w,h:p.h}}},dQ=function(p){return{x1:p.x1,x2:p.x2,w:p.w,y1:p.y1,y2:p.y2,h:p.h}},gQ=function(p){p.x1=1/0,p.y1=1/0,p.x2=-1/0,p.y2=-1/0,p.w=0,p.h=0},pQ=function(p,x,C){return{x1:p.x1+x,x2:p.x2+x,y1:p.y1+C,y2:p.y2+C,w:p.w,h:p.h}},BB=function(p,x){p.x1=Math.min(p.x1,x.x1),p.x2=Math.max(p.x2,x.x2),p.w=p.x2-p.x1,p.y1=Math.min(p.y1,x.y1),p.y2=Math.max(p.y2,x.y2),p.h=p.y2-p.y1},bQ=function(p,x,C){p.x1=Math.min(p.x1,x),p.x2=Math.max(p.x2,x),p.w=p.x2-p.x1,p.y1=Math.min(p.y1,C),p.y2=Math.max(p.y2,C),p.h=p.y2-p.y1},X9=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return p.x1-=x,p.x2+=x,p.y1-=x,p.y2+=x,p.w=p.x2-p.x1,p.h=p.y2-p.y1,p},Q9=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],C,L,O,N;if(x.length===1)C=L=O=N=x[0];else if(x.length===2)C=O=x[0],N=L=x[1];else if(x.length===4){var j=E(x,4);C=j[0],L=j[1],O=j[2],N=j[3]}return p.x1-=N,p.x2+=L,p.y1-=C,p.y2+=O,p.w=p.x2-p.x1,p.h=p.y2-p.y1,p},RB=function(p,x){p.x1=x.x1,p.y1=x.y1,p.x2=x.x2,p.y2=x.y2,p.w=p.x2-p.x1,p.h=p.y2-p.y1},$D=function(p,x){return!(p.x1>x.x2||x.x1>p.x2||p.x2<x.x1||x.x2<p.x1||p.y2<x.y1||x.y2<p.y1||p.y1>x.y2||x.y1>p.y2)},Qx=function(p,x,C){return p.x1<=x&&x<=p.x2&&p.y1<=C&&C<=p.y2},wQ=function(p,x){return Qx(p,x.x,x.y)},jB=function(p,x){return Qx(p,x.x1,x.y1)&&Qx(p,x.x2,x.y2)},$B=function(p,x,C,L,O,N,j){var H=R8(O,N),q=O/2,W=N/2,Z;{var st=C-q+H-j,bt=L-W-j,pt=C+q-H+j,_t=bt;if(Z=uy(p,x,C,L,st,bt,pt,_t,!1),Z.length>0)return Z}{var St=C+q+j,Et=L-W+H-j,Nt=St,Pt=L+W-H+j;if(Z=uy(p,x,C,L,St,Et,Nt,Pt,!1),Z.length>0)return Z}{var qt=C-q+H-j,re=L+W+j,ee=C+q-H+j,Ut=re;if(Z=uy(p,x,C,L,qt,re,ee,Ut,!1),Z.length>0)return Z}{var de=C-q-j,Yt=L-W+H-j,Ee=de,Te=L+W-H+j;if(Z=uy(p,x,C,L,de,Yt,Ee,Te,!1),Z.length>0)return Z}var ie;{var ze=C-q+H,me=L-W+H;if(ie=F8(p,x,C,L,ze,me,H+j),ie.length>0&&ie[0]<=ze&&ie[1]<=me)return[ie[0],ie[1]]}{var yn=C+q-H,nn=L-W+H;if(ie=F8(p,x,C,L,yn,nn,H+j),ie.length>0&&ie[0]>=yn&&ie[1]<=nn)return[ie[0],ie[1]]}{var qe=C+q-H,Tn=L+W-H;if(ie=F8(p,x,C,L,qe,Tn,H+j),ie.length>0&&ie[0]>=qe&&ie[1]>=Tn)return[ie[0],ie[1]]}{var Xn=C-q+H,lr=L+W-H;if(ie=F8(p,x,C,L,Xn,lr,H+j),ie.length>0&&ie[0]<=Xn&&ie[1]>=lr)return[ie[0],ie[1]]}return[]},mQ=function(p,x,C,L,O,N,j){var H=j,q=Math.min(C,O),W=Math.max(C,O),Z=Math.min(L,N),st=Math.max(L,N);return q-H<=p&&p<=W+H&&Z-H<=x&&x<=st+H},vQ=function(p,x,C,L,O,N,j,H,q){var W={x1:Math.min(C,j,O)-q,x2:Math.max(C,j,O)+q,y1:Math.min(L,H,N)-q,y2:Math.max(L,H,N)+q};return!(p<W.x1||p>W.x2||x<W.y1||x>W.y2)},yQ=function(p,x,C,L){C-=L;var O=x*x-4*p*C;if(O<0)return[];var N=Math.sqrt(O),j=2*p,H=(-x+N)/j,q=(-x-N)/j;return[H,q]},xQ=function(p,x,C,L,O){var N=1e-5;p===0&&(p=N),x/=p,C/=p,L/=p;var j,H,q,W,Z,st,bt,pt;if(H=(3*C-x*x)/9,q=-(27*L)+x*(9*C-2*(x*x)),q/=54,j=H*H*H+q*q,O[1]=0,bt=x/3,j>0){Z=q+Math.sqrt(j),Z=Z<0?-Math.pow(-Z,1/3):Math.pow(Z,1/3),st=q-Math.sqrt(j),st=st<0?-Math.pow(-st,1/3):Math.pow(st,1/3),O[0]=-bt+Z+st,bt+=(Z+st)/2,O[4]=O[2]=-bt,bt=Math.sqrt(3)*(-st+Z)/2,O[3]=bt,O[5]=-bt;return}if(O[5]=O[3]=0,j===0){pt=q<0?-Math.pow(-q,1/3):Math.pow(q,1/3),O[0]=-bt+2*pt,O[4]=O[2]=-(pt+bt);return}H=-H,W=H*H*H,W=Math.acos(q/Math.sqrt(W)),pt=2*Math.sqrt(H),O[0]=-bt+pt*Math.cos(W/3),O[2]=-bt+pt*Math.cos((W+2*Math.PI)/3),O[4]=-bt+pt*Math.cos((W+4*Math.PI)/3)},kQ=function(p,x,C,L,O,N,j,H){var q=1*C*C-4*C*O+2*C*j+4*O*O-4*O*j+j*j+L*L-4*L*N+2*L*H+4*N*N-4*N*H+H*H,W=1*9*C*O-3*C*C-3*C*j-6*O*O+3*O*j+9*L*N-3*L*L-3*L*H-6*N*N+3*N*H,Z=1*3*C*C-6*C*O+C*j-C*p+2*O*O+2*O*p-j*p+3*L*L-6*L*N+L*H-L*x+2*N*N+2*N*x-H*x,st=1*C*O-C*C+C*p-O*p+L*N-L*L+L*x-N*x,bt=[];xQ(q,W,Z,st,bt);for(var pt=1e-7,_t=[],St=0;St<6;St+=2)Math.abs(bt[St+1])<pt&&bt[St]>=0&&bt[St]<=1&&_t.push(bt[St]);_t.push(1),_t.push(0);for(var Et=-1,Nt,Pt,qt,re=0;re<_t.length;re++)Nt=Math.pow(1-_t[re],2)*C+2*(1-_t[re])*_t[re]*O+_t[re]*_t[re]*j,Pt=Math.pow(1-_t[re],2)*L+2*(1-_t[re])*_t[re]*N+_t[re]*_t[re]*H,qt=Math.pow(Nt-p,2)+Math.pow(Pt-x,2),Et>=0?qt<Et&&(Et=qt):Et=qt;return Et},EQ=function(p,x,C,L,O,N){var j=[p-C,x-L],H=[O-C,N-L],q=H[0]*H[0]+H[1]*H[1],W=j[0]*j[0]+j[1]*j[1],Z=j[0]*H[0]+j[1]*H[1],st=Z*Z/q;return Z<0?W:st>q?(p-O)*(p-O)+(x-N)*(x-N):W-st},y0=function(p,x,C){for(var L,O,N,j,H,q=0,W=0;W<C.length/2;W++)if(L=C[W*2],O=C[W*2+1],W+1<C.length/2?(N=C[(W+1)*2],j=C[(W+1)*2+1]):(N=C[(W+1-C.length/2)*2],j=C[(W+1-C.length/2)*2+1]),!(L==p&&N==p))if(L>=p&&p>=N||L<=p&&p<=N)H=(p-L)/(N-L)*(j-O)+O,H>x&&q++;else continue;return q%2!==0},sm=function(p,x,C,L,O,N,j,H,q){var W=new Array(C.length),Z;H[0]!=null?(Z=Math.atan(H[1]/H[0]),H[0]<0?Z=Z+Math.PI/2:Z=-Z-Math.PI/2):Z=H;for(var st=Math.cos(-Z),bt=Math.sin(-Z),pt=0;pt<W.length/2;pt++)W[pt*2]=N/2*(C[pt*2]*st-C[pt*2+1]*bt),W[pt*2+1]=j/2*(C[pt*2+1]*st+C[pt*2]*bt),W[pt*2]+=L,W[pt*2+1]+=O;var _t;if(q>0){var St=Z9(W,-q);_t=J9(St)}else _t=W;return y0(p,x,_t)},TQ=function(p,x,C,L,O,N,j){for(var H=new Array(C.length),q=N/2,W=j/2,Z=HD(N,j),st=Z*Z,bt=0;bt<C.length/4;bt++){var pt=void 0,_t=void 0;bt===0?pt=C.length-2:pt=bt*4-2,_t=bt*4+2;var St=L+q*C[bt*4],Et=O+W*C[bt*4+1],Nt=-C[pt]*C[_t]-C[pt+1]*C[_t+1],Pt=Z/Math.tan(Math.acos(Nt)/2),qt=St-Pt*C[pt],re=Et-Pt*C[pt+1],ee=St+Pt*C[_t],Ut=Et+Pt*C[_t+1];H[bt*4]=qt,H[bt*4+1]=re,H[bt*4+2]=ee,H[bt*4+3]=Ut;var de=C[pt+1],Yt=-C[pt],Ee=de*C[_t]+Yt*C[_t+1];Ee<0&&(de*=-1,Yt*=-1);var Te=qt+de*Z,ie=re+Yt*Z,ze=Math.pow(Te-p,2)+Math.pow(ie-x,2);if(ze<=st)return!0}return y0(p,x,H)},J9=function(p){for(var x=new Array(p.length/2),C,L,O,N,j,H,q,W,Z=0;Z<p.length/4;Z++){C=p[Z*4],L=p[Z*4+1],O=p[Z*4+2],N=p[Z*4+3],Z<p.length/4-1?(j=p[(Z+1)*4],H=p[(Z+1)*4+1],q=p[(Z+1)*4+2],W=p[(Z+1)*4+3]):(j=p[0],H=p[1],q=p[2],W=p[3]);var st=uy(C,L,O,N,j,H,q,W,!0);x[Z*2]=st[0],x[Z*2+1]=st[1]}return x},Z9=function(p,x){for(var C=new Array(p.length*2),L,O,N,j,H=0;H<p.length/2;H++){L=p[H*2],O=p[H*2+1],H<p.length/2-1?(N=p[(H+1)*2],j=p[(H+1)*2+1]):(N=p[0],j=p[1]);var q=j-O,W=-(N-L),Z=Math.sqrt(q*q+W*W),st=q/Z,bt=W/Z;C[H*4]=L+st*x,C[H*4+1]=O+bt*x,C[H*4+2]=N+st*x,C[H*4+3]=j+bt*x}return C},CQ=function(p,x,C,L,O,N){var j=C-p,H=L-x;j/=O,H/=N;var q=Math.sqrt(j*j+H*H),W=q-1;if(W<0)return[];var Z=W/q;return[(C-p)*Z+p,(L-x)*Z+x]},v4=function(p,x,C,L,O,N,j){return p-=O,x-=N,p/=C/2+j,x/=L/2+j,p*p+x*x<=1},F8=function(p,x,C,L,O,N,j){var H=[C-p,L-x],q=[p-O,x-N],W=H[0]*H[0]+H[1]*H[1],Z=2*(q[0]*H[0]+q[1]*H[1]),st=q[0]*q[0]+q[1]*q[1]-j*j,bt=Z*Z-4*W*st;if(bt<0)return[];var pt=(-Z+Math.sqrt(bt))/(2*W),_t=(-Z-Math.sqrt(bt))/(2*W),St=Math.min(pt,_t),Et=Math.max(pt,_t),Nt=[];if(St>=0&&St<=1&&Nt.push(St),Et>=0&&Et<=1&&Nt.push(Et),Nt.length===0)return[];var Pt=Nt[0]*H[0]+p,qt=Nt[0]*H[1]+x;if(Nt.length>1){if(Nt[0]==Nt[1])return[Pt,qt];var re=Nt[1]*H[0]+p,ee=Nt[1]*H[1]+x;return[Pt,qt,re,ee]}else return[Pt,qt]},zD=function(p,x,C){return x<=p&&p<=C||C<=p&&p<=x?p:p<=x&&x<=C||C<=x&&x<=p?x:C},uy=function(p,x,C,L,O,N,j,H,q){var W=p-O,Z=C-p,st=j-O,bt=x-N,pt=L-x,_t=H-N,St=st*bt-_t*W,Et=Z*bt-pt*W,Nt=_t*Z-st*pt;if(Nt!==0){var Pt=St/Nt,qt=Et/Nt,re=.001,ee=0-re,Ut=1+re;return ee<=Pt&&Pt<=Ut&&ee<=qt&&qt<=Ut?[p+Pt*Z,x+Pt*pt]:q?[p+Pt*Z,x+Pt*pt]:[]}else return St===0||Et===0?zD(p,C,j)===j?[j,H]:zD(p,C,O)===O?[O,N]:zD(O,j,C)===C?[C,L]:[]:[]},B8=function(p,x,C,L,O,N,j,H){var q=[],W,Z=new Array(C.length),st=!0;N==null&&(st=!1);var bt;if(st){for(var pt=0;pt<Z.length/2;pt++)Z[pt*2]=C[pt*2]*N+L,Z[pt*2+1]=C[pt*2+1]*j+O;if(H>0){var _t=Z9(Z,-H);bt=J9(_t)}else bt=Z}else bt=C;for(var St,Et,Nt,Pt,qt=0;qt<bt.length/2;qt++)St=bt[qt*2],Et=bt[qt*2+1],qt<bt.length/2-1?(Nt=bt[(qt+1)*2],Pt=bt[(qt+1)*2+1]):(Nt=bt[0],Pt=bt[1]),W=uy(p,x,L,O,St,Et,Nt,Pt),W.length!==0&&q.push(W[0],W[1]);return q},SQ=function(p,x,C,L,O,N,j,H){for(var q=[],W,Z=new Array(C.length),st=N/2,bt=j/2,pt=HD(N,j),_t=0;_t<C.length/4;_t++){var St=void 0,Et=void 0;_t===0?St=C.length-2:St=_t*4-2,Et=_t*4+2;var Nt=L+st*C[_t*4],Pt=O+bt*C[_t*4+1],qt=-C[St]*C[Et]-C[St+1]*C[Et+1],re=pt/Math.tan(Math.acos(qt)/2),ee=Nt-re*C[St],Ut=Pt-re*C[St+1],de=Nt+re*C[Et],Yt=Pt+re*C[Et+1];_t===0?(Z[C.length-2]=ee,Z[C.length-1]=Ut):(Z[_t*4-2]=ee,Z[_t*4-1]=Ut),Z[_t*4]=de,Z[_t*4+1]=Yt;var Ee=C[St+1],Te=-C[St],ie=Ee*C[Et]+Te*C[Et+1];ie<0&&(Ee*=-1,Te*=-1);var ze=ee+Ee*pt,me=Ut+Te*pt;W=F8(p,x,L,O,ze,me,pt),W.length!==0&&q.push(W[0],W[1])}for(var yn=0;yn<Z.length/4;yn++)W=uy(p,x,L,O,Z[yn*4],Z[yn*4+1],Z[yn*4+2],Z[yn*4+3],!1),W.length!==0&&q.push(W[0],W[1]);if(q.length>2){for(var nn=[q[0],q[1]],qe=Math.pow(nn[0]-p,2)+Math.pow(nn[1]-x,2),Tn=1;Tn<q.length/2;Tn++){var Xn=Math.pow(q[Tn*2]-p,2)+Math.pow(q[Tn*2+1]-x,2);Xn<=qe&&(nn[0]=q[Tn*2],nn[1]=q[Tn*2+1],qe=Xn)}return nn}return q},tC=function(p,x,C){var L=[p[0]-x[0],p[1]-x[1]],O=Math.sqrt(L[0]*L[0]+L[1]*L[1]),N=(O-C)/O;return N<0&&(N=1e-5),[x[0]+N*L[0],x[1]+N*L[1]]},Fd=function(p,x){var C=qD(p,x);return C=zB(C),C},zB=function(p){for(var x,C,L=p.length/2,O=1/0,N=1/0,j=-1/0,H=-1/0,q=0;q<L;q++)x=p[2*q],C=p[2*q+1],O=Math.min(O,x),j=Math.max(j,x),N=Math.min(N,C),H=Math.max(H,C);for(var W=2/(j-O),Z=2/(H-N),st=0;st<L;st++)x=p[2*st]=p[2*st]*W,C=p[2*st+1]=p[2*st+1]*Z,O=Math.min(O,x),j=Math.max(j,x),N=Math.min(N,C),H=Math.max(H,C);if(N<-1)for(var bt=0;bt<L;bt++)C=p[2*bt+1]=p[2*bt+1]+(-1-N);return p},qD=function(p,x){var C=1/p*2*Math.PI,L=p%2===0?Math.PI/2+C/2:Math.PI/2;L+=x;for(var O=new Array(p*2),N,j=0;j<p;j++)N=j*C+L,O[2*j]=Math.cos(N),O[2*j+1]=Math.sin(-N);return O},R8=function(p,x){return Math.min(p/4,x/4,8)},HD=function(p,x){return Math.min(p/10,x/10,8)},qB=function(){return 8},_Q=function(p,x,C){return[p-2*x+C,2*(x-p),p]},VD=function(p,x){return{heightOffset:Math.min(15,.05*x),widthOffset:Math.min(100,.25*p),ctrlPtOffsetPct:.05}},AQ=p1({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(p){return 1}}),LQ={pageRank:function(p){for(var x=AQ(p),C=x.dampingFactor,L=x.precision,O=x.iterations,N=x.weight,j=this._private.cy,H=this.byGroup(),q=H.nodes,W=H.edges,Z=q.length,st=Z*Z,bt=W.length,pt=new Array(st),_t=new Array(Z),St=(1-C)/Z,Et=0;Et<Z;Et++){for(var Nt=0;Nt<Z;Nt++){var Pt=Et*Z+Nt;pt[Pt]=0}_t[Et]=0}for(var qt=0;qt<bt;qt++){var re=W[qt],ee=re.data("source"),Ut=re.data("target");if(ee!==Ut){var de=q.indexOfId(ee),Yt=q.indexOfId(Ut),Ee=N(re),Te=Yt*Z+de;pt[Te]+=Ee,_t[de]+=Ee}}for(var ie=1/Z+St,ze=0;ze<Z;ze++)if(_t[ze]===0)for(var me=0;me<Z;me++){var yn=me*Z+ze;pt[yn]=ie}else for(var nn=0;nn<Z;nn++){var qe=nn*Z+ze;pt[qe]=pt[qe]/_t[ze]+St}for(var Tn=new Array(Z),Xn=new Array(Z),lr,Sn=0;Sn<Z;Sn++)Tn[Sn]=1;for(var or=0;or<O;or++){for(var pr=0;pr<Z;pr++)Xn[pr]=0;for(var kr=0;kr<Z;kr++)for(var wr=0;wr<Z;wr++){var Cr=kr*Z+wr;Xn[kr]+=pt[Cr]*Tn[wr]}hQ(Xn),lr=Tn,Tn=Xn,Xn=lr;for(var $n=0,cr=0;cr<Z;cr++){var mr=lr[cr]-Tn[cr];$n+=mr*mr}if($n<L)break}var Sr={rank:function(ss){return ss=j.collection(ss)[0],Tn[q.indexOf(ss)]}};return Sr}},HB=p1({root:null,weight:function(p){return 1},directed:!1,alpha:0}),Jx={degreeCentralityNormalized:function(p){p=HB(p);var x=this.cy(),C=this.nodes(),L=C.length;if(p.directed){for(var W={},Z={},st=0,bt=0,pt=0;pt<L;pt++){var _t=C[pt],St=_t.id();p.root=_t;var Et=this.degreeCentrality(p);st<Et.indegree&&(st=Et.indegree),bt<Et.outdegree&&(bt=Et.outdegree),W[St]=Et.indegree,Z[St]=Et.outdegree}return{indegree:function(Pt){return st==0?0:(mt(Pt)&&(Pt=x.filter(Pt)),W[Pt.id()]/st)},outdegree:function(Pt){return bt===0?0:(mt(Pt)&&(Pt=x.filter(Pt)),Z[Pt.id()]/bt)}}}else{for(var O={},N=0,j=0;j<L;j++){var H=C[j];p.root=H;var q=this.degreeCentrality(p);N<q.degree&&(N=q.degree),O[H.id()]=q.degree}return{degree:function(Pt){return N===0?0:(mt(Pt)&&(Pt=x.filter(Pt)),O[Pt.id()]/N)}}}},degreeCentrality:function(p){p=HB(p);var x=this.cy(),C=this,L=p,O=L.root,N=L.weight,j=L.directed,H=L.alpha;if(O=x.collection(O)[0],j){for(var bt=O.connectedEdges(),pt=bt.filter(function(ee){return ee.target().same(O)&&C.has(ee)}),_t=bt.filter(function(ee){return ee.source().same(O)&&C.has(ee)}),St=pt.length,Et=_t.length,Nt=0,Pt=0,qt=0;qt<pt.length;qt++)Nt+=N(pt[qt]);for(var re=0;re<_t.length;re++)Pt+=N(_t[re]);return{indegree:Math.pow(St,1-H)*Math.pow(Nt,H),outdegree:Math.pow(Et,1-H)*Math.pow(Pt,H)}}else{for(var q=O.connectedEdges().intersection(C),W=q.length,Z=0,st=0;st<q.length;st++)Z+=N(q[st]);return{degree:Math.pow(W,1-H)*Math.pow(Z,H)}}}};Jx.dc=Jx.degreeCentrality,Jx.dcn=Jx.degreeCentralityNormalised=Jx.degreeCentralityNormalized;var VB=p1({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),Zx={closenessCentralityNormalized:function(p){for(var x=VB(p),C=x.harmonic,L=x.weight,O=x.directed,N=this.cy(),j={},H=0,q=this.nodes(),W=this.floydWarshall({weight:L,directed:O}),Z=0;Z<q.length;Z++){for(var st=0,bt=q[Z],pt=0;pt<q.length;pt++)if(Z!==pt){var _t=W.distance(bt,q[pt]);C?st+=1/_t:st+=_t}C||(st=1/st),H<st&&(H=st),j[bt.id()]=st}return{closeness:function(Et){return H==0?0:(mt(Et)?Et=N.filter(Et)[0].id():Et=Et.id(),j[Et]/H)}}},closenessCentrality:function(p){var x=VB(p),C=x.root,L=x.weight,O=x.directed,N=x.harmonic;C=this.filter(C)[0];for(var j=this.dijkstra({root:C,weight:L,directed:O}),H=0,q=this.nodes(),W=0;W<q.length;W++){var Z=q[W];if(!Z.same(C)){var st=j.distanceTo(Z);N?H+=1/st:H+=st}}return N?H:1/H}};Zx.cc=Zx.closenessCentrality,Zx.ccn=Zx.closenessCentralityNormalised=Zx.closenessCentralityNormalized;var DQ=p1({weight:null,directed:!1}),UD={betweennessCentrality:function(p){for(var x=DQ(p),C=x.directed,L=x.weight,O=L!=null,N=this.cy(),j=this.nodes(),H={},q={},W=0,Z={set:function(Pt,qt){q[Pt]=qt,qt>W&&(W=qt)},get:function(Pt){return q[Pt]}},st=0;st<j.length;st++){var bt=j[st],pt=bt.id();C?H[pt]=bt.outgoers().nodes():H[pt]=bt.openNeighborhood().nodes(),Z.set(pt,0)}for(var _t=function(Pt){for(var qt=j[Pt].id(),re=[],ee={},Ut={},de={},Yt=new N8(function(wr,Cr){return de[wr]-de[Cr]}),Ee=0;Ee<j.length;Ee++){var Te=j[Ee].id();ee[Te]=[],Ut[Te]=0,de[Te]=1/0}for(Ut[qt]=1,de[qt]=0,Yt.push(qt);!Yt.empty();){var ie=Yt.pop();if(re.push(ie),O)for(var ze=0;ze<H[ie].length;ze++){var me=H[ie][ze],yn=N.getElementById(ie),nn=void 0;yn.edgesTo(me).length>0?nn=yn.edgesTo(me)[0]:nn=me.edgesTo(yn)[0];var qe=L(nn);me=me.id(),de[me]>de[ie]+qe&&(de[me]=de[ie]+qe,Yt.nodes.indexOf(me)<0?Yt.push(me):Yt.updateItem(me),Ut[me]=0,ee[me]=[]),de[me]==de[ie]+qe&&(Ut[me]=Ut[me]+Ut[ie],ee[me].push(ie))}else for(var Tn=0;Tn<H[ie].length;Tn++){var Xn=H[ie][Tn].id();de[Xn]==1/0&&(Yt.push(Xn),de[Xn]=de[ie]+1),de[Xn]==de[ie]+1&&(Ut[Xn]=Ut[Xn]+Ut[ie],ee[Xn].push(ie))}}for(var lr={},Sn=0;Sn<j.length;Sn++)lr[j[Sn].id()]=0;for(;re.length>0;){for(var or=re.pop(),pr=0;pr<ee[or].length;pr++){var kr=ee[or][pr];lr[kr]=lr[kr]+Ut[kr]/Ut[or]*(1+lr[or])}or!=j[Pt].id()&&Z.set(or,Z.get(or)+lr[or])}},St=0;St<j.length;St++)_t(St);var Et={betweenness:function(Pt){var qt=N.collection(Pt).id();return Z.get(qt)},betweennessNormalized:function(Pt){if(W==0)return 0;var qt=N.collection(Pt).id();return Z.get(qt)/W}};return Et.betweennessNormalised=Et.betweennessNormalized,Et}};UD.bc=UD.betweennessCentrality;var MQ=p1({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(y){return 1}]}),IQ=function(p){return MQ(p)},OQ=function(p,x){for(var C=0,L=0;L<x.length;L++)C+=x[L](p);return C},NQ=function(p,x,C){for(var L=0;L<x;L++)p[L*x+L]=C},UB=function(p,x){for(var C,L=0;L<x;L++){C=0;for(var O=0;O<x;O++)C+=p[O*x+L];for(var N=0;N<x;N++)p[N*x+L]=p[N*x+L]/C}},PQ=function(p,x,C){for(var L=new Array(C*C),O=0;O<C;O++){for(var N=0;N<C;N++)L[O*C+N]=0;for(var j=0;j<C;j++)for(var H=0;H<C;H++)L[O*C+H]+=p[O*C+j]*x[j*C+H]}return L},FQ=function(p,x,C){for(var L=p.slice(0),O=1;O<C;O++)p=PQ(p,L,x);return p},GB=function(p,x,C){for(var L=new Array(x*x),O=0;O<x*x;O++)L[O]=Math.pow(p[O],C);return UB(L,x),L},BQ=function(p,x,C,L){for(var O=0;O<C;O++){var N=Math.round(p[O]*Math.pow(10,L))/Math.pow(10,L),j=Math.round(x[O]*Math.pow(10,L))/Math.pow(10,L);if(N!==j)return!1}return!0},RQ=function(p,x,C,L){for(var O=[],N=0;N<x;N++){for(var j=[],H=0;H<x;H++)Math.round(p[N*x+H]*1e3)/1e3>0&&j.push(C[H]);j.length!==0&&O.push(L.collection(j))}return O},jQ=function(p,x){for(var C=0;C<p.length;C++)if(!x[C]||p[C].id()!==x[C].id())return!1;return!0},$Q=function(p){for(var x=0;x<p.length;x++)for(var C=0;C<p.length;C++)x!=C&&jQ(p[x],p[C])&&p.splice(C,1);return p},KB=function(p){for(var x=this.nodes(),C=this.edges(),L=this.cy(),O=IQ(p),N={},j=0;j<x.length;j++)N[x[j].id()]=j;for(var H=x.length,q=H*H,W=new Array(q),Z,st=0;st<q;st++)W[st]=0;for(var bt=0;bt<C.length;bt++){var pt=C[bt],_t=N[pt.source().id()],St=N[pt.target().id()],Et=OQ(pt,O.attributes);W[_t*H+St]+=Et,W[St*H+_t]+=Et}NQ(W,H,O.multFactor),UB(W,H);for(var Nt=!0,Pt=0;Nt&&Pt<O.maxIterations;)Nt=!1,Z=FQ(W,H,O.expandFactor),W=GB(Z,H,O.inflateFactor),BQ(W,Z,q,4)||(Nt=!0),Pt++;var qt=RQ(W,H,x,L);return qt=$Q(qt),qt},zQ={markovClustering:KB,mcl:KB},qQ=function(p){return p},WB=function(p,x){return Math.abs(x-p)},YB=function(p,x,C){return p+WB(x,C)},XB=function(p,x,C){return p+Math.pow(C-x,2)},HQ=function(p){return Math.sqrt(p)},VQ=function(p,x,C){return Math.max(p,WB(x,C))},j8=function(p,x,C,L,O){for(var N=arguments.length>5&&arguments[5]!==void 0?arguments[5]:qQ,j=L,H,q,W=0;W<p;W++)H=x(W),q=C(W),j=O(j,H,q);return N(j)},t6={euclidean:function(p,x,C){return p>=2?j8(p,x,C,0,XB,HQ):j8(p,x,C,0,YB)},squaredEuclidean:function(p,x,C){return j8(p,x,C,0,XB)},manhattan:function(p,x,C){return j8(p,x,C,0,YB)},max:function(p,x,C){return j8(p,x,C,-1/0,VQ)}};t6["squared-euclidean"]=t6.squaredEuclidean,t6.squaredeuclidean=t6.squaredEuclidean;function eC(y,p,x,C,L,O){var N;return ct(y)?N=y:N=t6[y]||t6.euclidean,p===0&&ct(y)?N(L,O):N(p,x,C,L,O)}var UQ=p1({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),GD=function(p){return UQ(p)},nC=function(p,x,C,L,O){var N=O!=="kMedoids",j=N?function(Z){return C[Z]}:function(Z){return L[Z](C)},H=function(st){return L[st](x)},q=C,W=x;return eC(p,L.length,j,H,q,W)},KD=function(p,x,C){for(var L=C.length,O=new Array(L),N=new Array(L),j=new Array(x),H=null,q=0;q<L;q++)O[q]=p.min(C[q]).value,N[q]=p.max(C[q]).value;for(var W=0;W<x;W++){H=[];for(var Z=0;Z<L;Z++)H[Z]=Math.random()*(N[Z]-O[Z])+O[Z];j[W]=H}return j},QB=function(p,x,C,L,O){for(var N=1/0,j=0,H=0;H<x.length;H++){var q=nC(C,p,x[H],L,O);q<N&&(N=q,j=H)}return j},JB=function(p,x,C){for(var L=[],O=null,N=0;N<x.length;N++)O=x[N],C[O.id()]===p&&L.push(O);return L},GQ=function(p,x,C){return Math.abs(x-p)<=C},KQ=function(p,x,C){for(var L=0;L<p.length;L++)for(var O=0;O<p[L].length;O++){var N=Math.abs(p[L][O]-x[L][O]);if(N>C)return!1}return!0},WQ=function(p,x,C){for(var L=0;L<C;L++)if(p===x[L])return!0;return!1},ZB=function(p,x){var C=new Array(x);if(p.length<50)for(var L=0;L<x;L++){for(var O=p[Math.floor(Math.random()*p.length)];WQ(O,C,L);)O=p[Math.floor(Math.random()*p.length)];C[L]=O}else for(var N=0;N<x;N++)C[N]=p[Math.floor(Math.random()*p.length)];return C},tR=function(p,x,C){for(var L=0,O=0;O<x.length;O++)L+=nC("manhattan",x[O],p,C,"kMedoids");return L},YQ=function(p){var x=this.cy(),C=this.nodes(),L=null,O=GD(p),N=new Array(O.k),j={},H;O.testMode?typeof O.testCentroids=="number"?(O.testCentroids,H=KD(C,O.k,O.attributes)):f(O.testCentroids)==="object"?H=O.testCentroids:H=KD(C,O.k,O.attributes):H=KD(C,O.k,O.attributes);for(var q=!0,W=0;q&&W<O.maxIterations;){for(var Z=0;Z<C.length;Z++)L=C[Z],j[L.id()]=QB(L,H,O.distance,O.attributes,"kMeans");q=!1;for(var st=0;st<O.k;st++){var bt=JB(st,C,j);if(bt.length!==0){for(var pt=O.attributes.length,_t=H[st],St=new Array(pt),Et=new Array(pt),Nt=0;Nt<pt;Nt++){Et[Nt]=0;for(var Pt=0;Pt<bt.length;Pt++)L=bt[Pt],Et[Nt]+=O.attributes[Nt](L);St[Nt]=Et[Nt]/bt.length,GQ(St[Nt],_t[Nt],O.sensitivityThreshold)||(q=!0)}H[st]=St,N[st]=x.collection(bt)}}W++}return N},XQ=function(p){var x=this.cy(),C=this.nodes(),L=null,O=GD(p),N=new Array(O.k),j,H={},q,W=new Array(O.k);O.testMode?typeof O.testCentroids=="number"||(f(O.testCentroids)==="object"?j=O.testCentroids:j=ZB(C,O.k)):j=ZB(C,O.k);for(var Z=!0,st=0;Z&&st<O.maxIterations;){for(var bt=0;bt<C.length;bt++)L=C[bt],H[L.id()]=QB(L,j,O.distance,O.attributes,"kMedoids");Z=!1;for(var pt=0;pt<j.length;pt++){var _t=JB(pt,C,H);if(_t.length!==0){W[pt]=tR(j[pt],_t,O.attributes);for(var St=0;St<_t.length;St++)q=tR(_t[St],_t,O.attributes),q<W[pt]&&(W[pt]=q,j[pt]=_t[St],Z=!0);N[pt]=x.collection(_t)}}st++}return N},QQ=function(p,x,C,L,O){for(var N,j,H=0;H<x.length;H++)for(var q=0;q<p.length;q++)L[H][q]=Math.pow(C[H][q],O.m);for(var W=0;W<p.length;W++)for(var Z=0;Z<O.attributes.length;Z++){N=0,j=0;for(var st=0;st<x.length;st++)N+=L[st][W]*O.attributes[Z](x[st]),j+=L[st][W];p[W][Z]=N/j}},JQ=function(p,x,C,L,O){for(var N=0;N<p.length;N++)x[N]=p[N].slice();for(var j,H,q,W=2/(O.m-1),Z=0;Z<C.length;Z++)for(var st=0;st<L.length;st++){j=0;for(var bt=0;bt<C.length;bt++)H=nC(O.distance,L[st],C[Z],O.attributes,"cmeans"),q=nC(O.distance,L[st],C[bt],O.attributes,"cmeans"),j+=Math.pow(H/q,W);p[st][Z]=1/j}},ZQ=function(p,x,C,L){for(var O=new Array(C.k),N=0;N<O.length;N++)O[N]=[];for(var j,H,q=0;q<x.length;q++){j=-1/0,H=-1;for(var W=0;W<x[0].length;W++)x[q][W]>j&&(j=x[q][W],H=W);O[H].push(p[q])}for(var Z=0;Z<O.length;Z++)O[Z]=L.collection(O[Z]);return O},eR=function(p){var x=this.cy(),C=this.nodes(),L=GD(p),O,N,j,H,q;H=new Array(C.length);for(var W=0;W<C.length;W++)H[W]=new Array(L.k);j=new Array(C.length);for(var Z=0;Z<C.length;Z++)j[Z]=new Array(L.k);for(var st=0;st<C.length;st++){for(var bt=0,pt=0;pt<L.k;pt++)j[st][pt]=Math.random(),bt+=j[st][pt];for(var _t=0;_t<L.k;_t++)j[st][_t]=j[st][_t]/bt}N=new Array(L.k);for(var St=0;St<L.k;St++)N[St]=new Array(L.attributes.length);q=new Array(C.length);for(var Et=0;Et<C.length;Et++)q[Et]=new Array(L.k);for(var Nt=!0,Pt=0;Nt&&Pt<L.maxIterations;)Nt=!1,QQ(N,C,j,q,L),JQ(j,H,N,C,L),KQ(j,H,L.sensitivityThreshold)||(Nt=!0),Pt++;return O=ZQ(C,j,L,x),{clusters:O,degreeOfMembership:j}},tJ={kMeans:YQ,kMedoids:XQ,fuzzyCMeans:eR,fcm:eR},eJ=p1({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),nJ={single:"min",complete:"max"},rJ=function(p){var x=eJ(p),C=nJ[x.linkage];return C!=null&&(x.linkage=C),x},nR=function(p,x,C,L,O){for(var N=0,j=1/0,H,q=O.attributes,W=function(Yt,Ee){return eC(O.distance,q.length,function(Te){return q[Te](Yt)},function(Te){return q[Te](Ee)},Yt,Ee)},Z=0;Z<p.length;Z++){var st=p[Z].key,bt=C[st][L[st]];bt<j&&(N=st,j=bt)}if(O.mode==="threshold"&&j>=O.threshold||O.mode==="dendrogram"&&p.length===1)return!1;var pt=x[N],_t=x[L[N]],St;O.mode==="dendrogram"?St={left:pt,right:_t,key:pt.key}:St={value:pt.value.concat(_t.value),key:pt.key},p[pt.index]=St,p.splice(_t.index,1),x[pt.key]=St;for(var Et=0;Et<p.length;Et++){var Nt=p[Et];pt.key===Nt.key?H=1/0:O.linkage==="min"?(H=C[pt.key][Nt.key],C[pt.key][Nt.key]>C[_t.key][Nt.key]&&(H=C[_t.key][Nt.key])):O.linkage==="max"?(H=C[pt.key][Nt.key],C[pt.key][Nt.key]<C[_t.key][Nt.key]&&(H=C[_t.key][Nt.key])):O.linkage==="mean"?H=(C[pt.key][Nt.key]*pt.size+C[_t.key][Nt.key]*_t.size)/(pt.size+_t.size):O.mode==="dendrogram"?H=W(Nt.value,pt.value):H=W(Nt.value[0],pt.value[0]),C[pt.key][Nt.key]=C[Nt.key][pt.key]=H}for(var Pt=0;Pt<p.length;Pt++){var qt=p[Pt].key;if(L[qt]===pt.key||L[qt]===_t.key){for(var re=qt,ee=0;ee<p.length;ee++){var Ut=p[ee].key;C[qt][Ut]<C[qt][re]&&(re=Ut)}L[qt]=re}p[Pt].index=Pt}return pt.key=_t.key=pt.index=_t.index=null,!0},rC=function y(p,x,C){p&&(p.value?x.push(p.value):(p.left&&y(p.left,x),p.right&&y(p.right,x)))},iJ=function y(p,x){if(!p)return"";if(p.left&&p.right){var C=y(p.left,x),L=y(p.right,x),O=x.add({group:"nodes",data:{id:C+","+L}});return x.add({group:"edges",data:{source:C,target:O.id()}}),x.add({group:"edges",data:{source:L,target:O.id()}}),O.id()}else if(p.value)return p.value.id()},sJ=function y(p,x,C){if(!p)return[];var L=[],O=[],N=[];return x===0?(p.left&&rC(p.left,L),p.right&&rC(p.right,O),N=L.concat(O),[C.collection(N)]):x===1?p.value?[C.collection(p.value)]:(p.left&&rC(p.left,L),p.right&&rC(p.right,O),[C.collection(L),C.collection(O)]):p.value?[C.collection(p.value)]:(p.left&&(L=y(p.left,x-1,C)),p.right&&(O=y(p.right,x-1,C)),L.concat(O))},rR=function(p){for(var x=this.cy(),C=this.nodes(),L=rJ(p),O=L.attributes,N=function(Pt,qt){return eC(L.distance,O.length,function(re){return O[re](Pt)},function(re){return O[re](qt)},Pt,qt)},j=[],H=[],q=[],W=[],Z=0;Z<C.length;Z++){var st={value:L.mode==="dendrogram"?C[Z]:[C[Z]],key:Z,index:Z};j[Z]=st,W[Z]=st,H[Z]=[],q[Z]=0}for(var bt=0;bt<j.length;bt++)for(var pt=0;pt<=bt;pt++){var _t=void 0;L.mode==="dendrogram"?_t=bt===pt?1/0:N(j[bt].value,j[pt].value):_t=bt===pt?1/0:N(j[bt].value[0],j[pt].value[0]),H[bt][pt]=_t,H[pt][bt]=_t,_t<H[bt][q[bt]]&&(q[bt]=pt)}for(var St=nR(j,W,H,q,L);St;)St=nR(j,W,H,q,L);var Et;return L.mode==="dendrogram"?(Et=sJ(j[0],L.dendrogramDepth,x),L.addDendrogram&&iJ(j[0],x)):(Et=new Array(j.length),j.forEach(function(Nt,Pt){Nt.key=Nt.index=null,Et[Pt]=x.collection(Nt.value)})),Et},aJ={hierarchicalClustering:rR,hca:rR},oJ=p1({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),cJ=function(p){var x=p.damping,C=p.preference;.5<=x&&x<1||$l("Damping must range on [0.5, 1). Got: ".concat(x));var L=["median","mean","min","max"];return L.some(function(O){return O===C})||Q(C)||$l("Preference must be one of [".concat(L.map(function(O){return"'".concat(O,"'")}).join(", "),"] or a number. Got: ").concat(C)),oJ(p)},uJ=function(p,x,C,L){var O=function(j,H){return L[H](j)};return-eC(p,L.length,function(N){return O(x,N)},function(N){return O(C,N)},x,C)},lJ=function(p,x){var C=null;return x==="median"?C=uQ(p):x==="mean"?C=cQ(p):x==="min"?C=aQ(p):x==="max"?C=oQ(p):C=x,C},hJ=function(p,x,C){for(var L=[],O=0;O<p;O++)x[O*p+O]+C[O*p+O]>0&&L.push(O);return L},iR=function(p,x,C){for(var L=[],O=0;O<p;O++){for(var N=-1,j=-1/0,H=0;H<C.length;H++){var q=C[H];x[O*p+q]>j&&(N=q,j=x[O*p+q])}N>0&&L.push(N)}for(var W=0;W<C.length;W++)L[C[W]]=C[W];return L},fJ=function(p,x,C){for(var L=iR(p,x,C),O=0;O<C.length;O++){for(var N=[],j=0;j<L.length;j++)L[j]===C[O]&&N.push(j);for(var H=-1,q=-1/0,W=0;W<N.length;W++){for(var Z=0,st=0;st<N.length;st++)Z+=x[N[st]*p+N[W]];Z>q&&(H=W,q=Z)}C[O]=N[H]}return L=iR(p,x,C),L},sR=function(p){for(var x=this.cy(),C=this.nodes(),L=cJ(p),O={},N=0;N<C.length;N++)O[C[N].id()]=N;var j,H,q,W,Z,st;j=C.length,H=j*j,q=new Array(H);for(var bt=0;bt<H;bt++)q[bt]=-1/0;for(var pt=0;pt<j;pt++)for(var _t=0;_t<j;_t++)pt!==_t&&(q[pt*j+_t]=uJ(L.distance,C[pt],C[_t],L.attributes));W=lJ(q,L.preference);for(var St=0;St<j;St++)q[St*j+St]=W;Z=new Array(H);for(var Et=0;Et<H;Et++)Z[Et]=0;st=new Array(H);for(var Nt=0;Nt<H;Nt++)st[Nt]=0;for(var Pt=new Array(j),qt=new Array(j),re=new Array(j),ee=0;ee<j;ee++)Pt[ee]=0,qt[ee]=0,re[ee]=0;for(var Ut=new Array(j*L.minIterations),de=0;de<Ut.length;de++)Ut[de]=0;var Yt;for(Yt=0;Yt<L.maxIterations;Yt++){for(var Ee=0;Ee<j;Ee++){for(var Te=-1/0,ie=-1/0,ze=-1,me=0,yn=0;yn<j;yn++)Pt[yn]=Z[Ee*j+yn],me=st[Ee*j+yn]+q[Ee*j+yn],me>=Te?(ie=Te,Te=me,ze=yn):me>ie&&(ie=me);for(var nn=0;nn<j;nn++)Z[Ee*j+nn]=(1-L.damping)*(q[Ee*j+nn]-Te)+L.damping*Pt[nn];Z[Ee*j+ze]=(1-L.damping)*(q[Ee*j+ze]-ie)+L.damping*Pt[ze]}for(var qe=0;qe<j;qe++){for(var Tn=0,Xn=0;Xn<j;Xn++)Pt[Xn]=st[Xn*j+qe],qt[Xn]=Math.max(0,Z[Xn*j+qe]),Tn+=qt[Xn];Tn-=qt[qe],qt[qe]=Z[qe*j+qe],Tn+=qt[qe];for(var lr=0;lr<j;lr++)st[lr*j+qe]=(1-L.damping)*Math.min(0,Tn-qt[lr])+L.damping*Pt[lr];st[qe*j+qe]=(1-L.damping)*(Tn-qt[qe])+L.damping*Pt[qe]}for(var Sn=0,or=0;or<j;or++){var pr=st[or*j+or]+Z[or*j+or]>0?1:0;Ut[Yt%L.minIterations*j+or]=pr,Sn+=pr}if(Sn>0&&(Yt>=L.minIterations-1||Yt==L.maxIterations-1)){for(var kr=0,wr=0;wr<j;wr++){re[wr]=0;for(var Cr=0;Cr<L.minIterations;Cr++)re[wr]+=Ut[Cr*j+wr];(re[wr]===0||re[wr]===L.minIterations)&&kr++}if(kr===j)break}}for(var $n=hJ(j,Z,st),cr=fJ(j,q,$n),mr={},Sr=0;Sr<$n.length;Sr++)mr[$n[Sr]]=[];for(var gi=0;gi<C.length;gi++){var ss=O[C[gi].id()],na=cr[ss];na!=null&&mr[na].push(C[gi])}for(var vi=new Array($n.length),si=0;si<$n.length;si++)vi[si]=x.collection(mr[$n[si]]);return vi},dJ={affinityPropagation:sR,ap:sR},gJ=p1({root:void 0,directed:!1}),pJ={hierholzer:function(p){if(!it(p)){var x=arguments;p={root:x[0],directed:x[1]}}var C=gJ(p),L=C.root,O=C.directed,N=this,j=!1,H,q,W;L&&(W=mt(L)?this.filter(L)[0].id():L[0].id());var Z={},st={};O?N.forEach(function(Nt){var Pt=Nt.id();if(Nt.isNode()){var qt=Nt.indegree(!0),re=Nt.outdegree(!0),ee=qt-re,Ut=re-qt;ee==1?H?j=!0:H=Pt:Ut==1?q?j=!0:q=Pt:(Ut>1||ee>1)&&(j=!0),Z[Pt]=[],Nt.outgoers().forEach(function(de){de.isEdge()&&Z[Pt].push(de.id())})}else st[Pt]=[void 0,Nt.target().id()]}):N.forEach(function(Nt){var Pt=Nt.id();if(Nt.isNode()){var qt=Nt.degree(!0);qt%2&&(H?q?j=!0:q=Pt:H=Pt),Z[Pt]=[],Nt.connectedEdges().forEach(function(re){return Z[Pt].push(re.id())})}else st[Pt]=[Nt.source().id(),Nt.target().id()]});var bt={found:!1,trail:void 0};if(j)return bt;if(q&&H)if(O){if(W&&q!=W)return bt;W=q}else{if(W&&q!=W&&H!=W)return bt;W||(W=q)}else W||(W=N[0].id());var pt=function(Pt){for(var qt=Pt,re=[Pt],ee,Ut,de;Z[qt].length;)ee=Z[qt].shift(),Ut=st[ee][0],de=st[ee][1],qt!=de?(Z[de]=Z[de].filter(function(Yt){return Yt!=ee}),qt=de):!O&&qt!=Ut&&(Z[Ut]=Z[Ut].filter(function(Yt){return Yt!=ee}),qt=Ut),re.unshift(ee),re.unshift(qt);return re},_t=[],St=[];for(St=pt(W);St.length!=1;)Z[St[0]].length==0?(_t.unshift(N.getElementById(St.shift())),_t.unshift(N.getElementById(St.shift()))):St=pt(St.shift()).concat(St);_t.unshift(N.getElementById(St.shift()));for(var Et in Z)if(Z[Et].length)return bt;return bt.found=!0,bt.trail=this.spawn(_t,!0),bt}},iC=function(){var p=this,x={},C=0,L=0,O=[],N=[],j={},H=function(st,bt){for(var pt=N.length-1,_t=[],St=p.spawn();N[pt].x!=st||N[pt].y!=bt;)_t.push(N.pop().edge),pt--;_t.push(N.pop().edge),_t.forEach(function(Et){var Nt=Et.connectedNodes().intersection(p);St.merge(Et),Nt.forEach(function(Pt){var qt=Pt.id(),re=Pt.connectedEdges().intersection(p);St.merge(Pt),x[qt].cutVertex?St.merge(re.filter(function(ee){return ee.isLoop()})):St.merge(re)})}),O.push(St)},q=function Z(st,bt,pt){st===pt&&(L+=1),x[bt]={id:C,low:C++,cutVertex:!1};var _t=p.getElementById(bt).connectedEdges().intersection(p);if(_t.size()===0)O.push(p.spawn(p.getElementById(bt)));else{var St,Et,Nt,Pt;_t.forEach(function(qt){St=qt.source().id(),Et=qt.target().id(),Nt=St===bt?Et:St,Nt!==pt&&(Pt=qt.id(),j[Pt]||(j[Pt]=!0,N.push({x:bt,y:Nt,edge:qt})),Nt in x?x[bt].low=Math.min(x[bt].low,x[Nt].id):(Z(st,Nt,bt),x[bt].low=Math.min(x[bt].low,x[Nt].low),x[bt].id<=x[Nt].low&&(x[bt].cutVertex=!0,H(bt,Nt))))})}};p.forEach(function(Z){if(Z.isNode()){var st=Z.id();st in x||(L=0,q(st,st),x[st].cutVertex=L>1)}});var W=Object.keys(x).filter(function(Z){return x[Z].cutVertex}).map(function(Z){return p.getElementById(Z)});return{cut:p.spawn(W),components:O}},bJ={hopcroftTarjanBiconnected:iC,htbc:iC,htb:iC,hopcroftTarjanBiconnectedComponents:iC},sC=function(){var p=this,x={},C=0,L=[],O=[],N=p.spawn(p),j=function H(q){O.push(q),x[q]={index:C,low:C++,explored:!1};var W=p.getElementById(q).connectedEdges().intersection(p);if(W.forEach(function(_t){var St=_t.target().id();St!==q&&(St in x||H(St),x[St].explored||(x[q].low=Math.min(x[q].low,x[St].low)))}),x[q].index===x[q].low){for(var Z=p.spawn();;){var st=O.pop();if(Z.merge(p.getElementById(st)),x[st].low=x[q].index,x[st].explored=!0,st===q)break}var bt=Z.edgesWith(Z),pt=Z.merge(bt);L.push(pt),N=N.difference(pt)}};return p.forEach(function(H){if(H.isNode()){var q=H.id();q in x||j(q)}}),{cut:N,components:L}},wJ={tarjanStronglyConnected:sC,tsc:sC,tscc:sC,tarjanStronglyConnectedComponents:sC},aR={};[O8,WX,YX,QX,ZX,eQ,iQ,LQ,Jx,Zx,UD,zQ,tJ,aJ,dJ,pJ,bJ,wJ].forEach(function(y){we(aR,y)});/*!
1538 */var oR=0,cR=1,uR=2,am=function y(p){if(!(this instanceof y))return new y(p);this.id="Thenable/1.0.7",this.state=oR,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof p=="function"&&p.call(this,this.fulfill.bind(this),this.reject.bind(this))};am.prototype={fulfill:function(p){return lR(this,cR,"fulfillValue",p)},reject:function(p){return lR(this,uR,"rejectReason",p)},then:function(p,x){var C=this,L=new am;return C.onFulfilled.push(dR(p,L,"fulfill")),C.onRejected.push(dR(x,L,"reject")),hR(C),L.proxy}};var lR=function(p,x,C,L){return p.state===oR&&(p.state=x,p[C]=L,hR(p)),p},hR=function(p){p.state===cR?fR(p,"onFulfilled",p.fulfillValue):p.state===uR&&fR(p,"onRejected",p.rejectReason)},fR=function(p,x,C){if(p[x].length!==0){var L=p[x];p[x]=[];var O=function(){for(var j=0;j<L.length;j++)L[j](C)};typeof setImmediate=="function"?setImmediate(O):setTimeout(O,0)}},dR=function(p,x,C){return function(L){if(typeof p!="function")x[C].call(x,L);else{var O;try{O=p(L)}catch(N){x.reject(N);return}mJ(x,O)}}},mJ=function y(p,x){if(p===x||p.proxy===x){p.reject(new TypeError("cannot resolve promise with itself"));return}var C;if(f(x)==="object"&&x!==null||typeof x=="function")try{C=x.then}catch(O){p.reject(O);return}if(typeof C=="function"){var L=!1;try{C.call(x,function(O){L||(L=!0,O===x?p.reject(new TypeError("circular thenable chain")):y(p,O))},function(O){L||(L=!0,p.reject(O))})}catch(O){L||p.reject(O)}return}p.fulfill(x)};am.all=function(y){return new am(function(p,x){for(var C=new Array(y.length),L=0,O=function(H,q){C[H]=q,L++,L===y.length&&p(C)},N=0;N<y.length;N++)(function(j){var H=y[j],q=H!=null&&H.then!=null;if(q)H.then(function(Z){O(j,Z)},function(Z){x(Z)});else{var W=H;O(j,W)}})(N)})},am.resolve=function(y){return new am(function(p,x){p(y)})},am.reject=function(y){return new am(function(p,x){x(y)})};var e6=typeof Promise<"u"?Promise:am,WD=function(p,x,C){var L=It(p),O=!L,N=this._private=we({duration:1e3},x,C);if(N.target=p,N.style=N.style||N.css,N.started=!1,N.playing=!1,N.hooked=!1,N.applying=!1,N.progress=0,N.completes=[],N.frames=[],N.complete&&ct(N.complete)&&N.completes.push(N.complete),O){var j=p.position();N.startPosition=N.startPosition||{x:j.x,y:j.y},N.startStyle=N.startStyle||p.cy().style().getAnimationStartStyle(p,N.style)}if(L){var H=p.pan();N.startPan={x:H.x,y:H.y},N.startZoom=p.zoom()}this.length=1,this[0]=this},y4=WD.prototype;we(y4,{instanceString:function(){return"animation"},hook:function(){var p=this._private;if(!p.hooked){var x,C=p.target._private.animation;p.queue?x=C.queue:x=C.current,x.push(this),yt(p.target)&&p.target.cy().addToAnimationPool(p.target),p.hooked=!0}return this},play:function(){var p=this._private;return p.progress===1&&(p.progress=0),p.playing=!0,p.started=!1,p.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var p=this._private;return p.applying=!0,p.started=!1,p.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var p=this._private;return p.playing=!1,p.started=!1,this},stop:function(){var p=this._private;return p.playing=!1,p.started=!1,p.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(p){var x=this._private;return p===void 0?x.progress*x.duration:this.progress(p/x.duration)},progress:function(p){var x=this._private,C=x.playing;return p===void 0?x.progress:(C&&this.pause(),x.progress=p,x.started=!1,C&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var p=this._private,x=p.playing;x&&this.pause(),p.progress=1-p.progress,p.started=!1;var C=function(q,W){var Z=p[q];Z!=null&&(p[q]=p[W],p[W]=Z)};if(C("zoom","startZoom"),C("pan","startPan"),C("position","startPosition"),p.style)for(var L=0;L<p.style.length;L++){var O=p.style[L],N=O.name,j=p.startStyle[N];p.startStyle[N]=O,p.style[L]=j}return x&&this.play(),this},promise:function(p){var x=this._private,C;switch(p){case"frame":C=x.frames;break;default:case"complete":case"completed":C=x.completes}return new e6(function(L,O){C.push(function(){L()})})}}),y4.complete=y4.completed,y4.run=y4.play,y4.running=y4.playing;var vJ={animated:function(){return function(){var x=this,C=x.length!==void 0,L=C?x:[x],O=this._private.cy||this;if(!O.styleEnabled())return!1;var N=L[0];if(N)return N._private.animation.current.length>0}},clearQueue:function(){return function(){var x=this,C=x.length!==void 0,L=C?x:[x],O=this._private.cy||this;if(!O.styleEnabled())return this;for(var N=0;N<L.length;N++){var j=L[N];j._private.animation.queue=[]}return this}},delay:function(){return function(x,C){var L=this._private.cy||this;return L.styleEnabled()?this.animate({delay:x,duration:x,complete:C}):this}},delayAnimation:function(){return function(x,C){var L=this._private.cy||this;return L.styleEnabled()?this.animation({delay:x,duration:x,complete:C}):this}},animation:function(){return function(x,C){var L=this,O=L.length!==void 0,N=O?L:[L],j=this._private.cy||this,H=!O,q=!H;if(!j.styleEnabled())return this;var W=j.style();x=we({},x,C);var Z=Object.keys(x).length===0;if(Z)return new WD(N[0],x);switch(x.duration===void 0&&(x.duration=400),x.duration){case"slow":x.duration=600;break;case"fast":x.duration=200;break}if(q&&(x.style=W.getPropsList(x.style||x.css),x.css=void 0),q&&x.renderedPosition!=null){var st=x.renderedPosition,bt=j.pan(),pt=j.zoom();x.position=PB(st,pt,bt)}if(H&&x.panBy!=null){var _t=x.panBy,St=j.pan();x.pan={x:St.x+_t.x,y:St.y+_t.y}}var Et=x.center||x.centre;if(H&&Et!=null){var Nt=j.getCenterPan(Et.eles,x.zoom);Nt!=null&&(x.pan=Nt)}if(H&&x.fit!=null){var Pt=x.fit,qt=j.getFitViewport(Pt.eles||Pt.boundingBox,Pt.padding);qt!=null&&(x.pan=qt.pan,x.zoom=qt.zoom)}if(H&&it(x.zoom)){var re=j.getZoomedViewport(x.zoom);re!=null?(re.zoomed&&(x.zoom=re.zoom),re.panned&&(x.pan=re.pan)):x.zoom=null}return new WD(N[0],x)}},animate:function(){return function(x,C){var L=this,O=L.length!==void 0,N=O?L:[L],j=this._private.cy||this;if(!j.styleEnabled())return this;C&&(x=we({},x,C));for(var H=0;H<N.length;H++){var q=N[H],W=q.animated()&&(x.queue===void 0||x.queue),Z=q.animation(x,W?{queue:!0}:void 0);Z.play()}return this}},stop:function(){return function(x,C){var L=this,O=L.length!==void 0,N=O?L:[L],j=this._private.cy||this;if(!j.styleEnabled())return this;for(var H=0;H<N.length;H++){for(var q=N[H],W=q._private,Z=W.animation.current,st=0;st<Z.length;st++){var bt=Z[st],pt=bt._private;C&&(pt.duration=0)}x&&(W.animation.queue=[]),C||(W.animation.current=[])}return j.notify("draw"),this}}},yJ=Array.isArray,aC=yJ,gR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xJ=/^\w*$/;function kJ(y,p){if(aC(y))return!1;var x=typeof y;return x=="number"||x=="symbol"||x=="boolean"||y==null||Nr(y)?!0:xJ.test(y)||!gR.test(y)||p!=null&&y in Object(p)}var EJ=kJ,TJ="[object AsyncFunction]",CJ="[object Function]",SJ="[object GeneratorFunction]",_J="[object Proxy]";function AJ(y){if(!ke(y))return!1;var p=Id(y);return p==CJ||p==SJ||p==TJ||p==_J}var LJ=AJ,DJ=ko["__core-js_shared__"],oC=DJ,pR=function(){var y=/[^.]+$/.exec(oC&&oC.keys&&oC.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}();function MJ(y){return!!pR&&pR in y}var IJ=MJ,OJ=Function.prototype,NJ=OJ.toString;function PJ(y){if(y!=null){try{return NJ.call(y)}catch{}try{return y+""}catch{}}return""}var bR=PJ,wR=/[\\^$.*+?()[\]{}|]/g,FJ=/^\[object .+?Constructor\]$/,mR=Function.prototype,vR=Object.prototype,BJ=mR.toString,RJ=vR.hasOwnProperty,jJ=RegExp("^"+BJ.call(RJ).replace(wR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $J(y){if(!ke(y)||IJ(y))return!1;var p=LJ(y)?jJ:FJ;return p.test(bR(y))}var zJ=$J;function qJ(y,p){return y==null?void 0:y[p]}var HJ=qJ;function VJ(y,p){var x=HJ(y,p);return zJ(x)?x:void 0}var YD=VJ,UJ=YD(Object,"create"),$8=UJ;function yR(){this.__data__=$8?$8(null):{},this.size=0}var GJ=yR;function KJ(y){var p=this.has(y)&&delete this.__data__[y];return this.size-=p?1:0,p}var WJ=KJ,YJ="__lodash_hash_undefined__",XJ=Object.prototype,QJ=XJ.hasOwnProperty;function JJ(y){var p=this.__data__;if($8){var x=p[y];return x===YJ?void 0:x}return QJ.call(p,y)?p[y]:void 0}var ZJ=JJ,tZ=Object.prototype,eZ=tZ.hasOwnProperty;function nZ(y){var p=this.__data__;return $8?p[y]!==void 0:eZ.call(p,y)}var rZ=nZ,iZ="__lodash_hash_undefined__";function sZ(y,p){var x=this.__data__;return this.size+=this.has(y)?0:1,x[y]=$8&&p===void 0?iZ:p,this}var aZ=sZ;function n6(y){var p=-1,x=y==null?0:y.length;for(this.clear();++p<x;){var C=y[p];this.set(C[0],C[1])}}n6.prototype.clear=GJ,n6.prototype.delete=WJ,n6.prototype.get=ZJ,n6.prototype.has=rZ,n6.prototype.set=aZ;var xR=n6;function oZ(){this.__data__=[],this.size=0}var cZ=oZ;function uZ(y,p){return y===p||y!==y&&p!==p}var kR=uZ;function lZ(y,p){for(var x=y.length;x--;)if(kR(y[x][0],p))return x;return-1}var cC=lZ,hZ=Array.prototype,fZ=hZ.splice;function dZ(y){var p=this.__data__,x=cC(p,y);if(x<0)return!1;var C=p.length-1;return x==C?p.pop():fZ.call(p,x,1),--this.size,!0}var gZ=dZ;function pZ(y){var p=this.__data__,x=cC(p,y);return x<0?void 0:p[x][1]}var bZ=pZ;function wZ(y){return cC(this.__data__,y)>-1}var mZ=wZ;function vZ(y,p){var x=this.__data__,C=cC(x,y);return C<0?(++this.size,x.push([y,p])):x[C][1]=p,this}var yZ=vZ;function r6(y){var p=-1,x=y==null?0:y.length;for(this.clear();++p<x;){var C=y[p];this.set(C[0],C[1])}}r6.prototype.clear=cZ,r6.prototype.delete=gZ,r6.prototype.get=bZ,r6.prototype.has=mZ,r6.prototype.set=yZ;var xZ=r6,kZ=YD(ko,"Map"),EZ=kZ;function TZ(){this.size=0,this.__data__={hash:new xR,map:new(EZ||xZ),string:new xR}}var CZ=TZ;function SZ(y){var p=typeof y;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?y!=="__proto__":y===null}var _Z=SZ;function AZ(y,p){var x=y.__data__;return _Z(p)?x[typeof p=="string"?"string":"hash"]:x.map}var uC=AZ;function LZ(y){var p=uC(this,y).delete(y);return this.size-=p?1:0,p}var DZ=LZ;function MZ(y){return uC(this,y).get(y)}var IZ=MZ;function OZ(y){return uC(this,y).has(y)}var NZ=OZ;function PZ(y,p){var x=uC(this,y),C=x.size;return x.set(y,p),this.size+=x.size==C?0:1,this}var FZ=PZ;function i6(y){var p=-1,x=y==null?0:y.length;for(this.clear();++p<x;){var C=y[p];this.set(C[0],C[1])}}i6.prototype.clear=CZ,i6.prototype.delete=DZ,i6.prototype.get=IZ,i6.prototype.has=NZ,i6.prototype.set=FZ;var ER=i6,BZ="Expected a function";function XD(y,p){if(typeof y!="function"||p!=null&&typeof p!="function")throw new TypeError(BZ);var x=function(){var C=arguments,L=p?p.apply(this,C):C[0],O=x.cache;if(O.has(L))return O.get(L);var N=y.apply(this,C);return x.cache=O.set(L,N)||O,N};return x.cache=new(XD.Cache||ER),x}XD.Cache=ER;var RZ=XD,jZ=500;function $Z(y){var p=RZ(y,function(C){return x.size===jZ&&x.clear(),C}),x=p.cache;return p}var zZ=$Z,qZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HZ=/\\(\\)?/g,VZ=zZ(function(y){var p=[];return y.charCodeAt(0)===46&&p.push(""),y.replace(qZ,function(x,C,L,O){p.push(L?O.replace(HZ,"$1"):C||x)}),p}),TR=VZ;function UZ(y,p){for(var x=-1,C=y==null?0:y.length,L=Array(C);++x<C;)L[x]=p(y[x],x,y);return L}var CR=UZ,GZ=1/0,SR=wc?wc.prototype:void 0,_R=SR?SR.toString:void 0;function AR(y){if(typeof y=="string")return y;if(aC(y))return CR(y,AR)+"";if(Nr(y))return _R?_R.call(y):"";var p=y+"";return p=="0"&&1/y==-GZ?"-0":p}var KZ=AR;function WZ(y){return y==null?"":KZ(y)}var LR=WZ;function YZ(y,p){return aC(y)?y:EJ(y,p)?[y]:TR(LR(y))}var DR=YZ,XZ=1/0;function QZ(y){if(typeof y=="string"||Nr(y))return y;var p=y+"";return p=="0"&&1/y==-XZ?"-0":p}var QD=QZ;function JZ(y,p){p=DR(p,y);for(var x=0,C=p.length;y!=null&&x<C;)y=y[QD(p[x++])];return x&&x==C?y:void 0}var ZZ=JZ;function ttt(y,p,x){var C=y==null?void 0:ZZ(y,p);return C===void 0?x:C}var ett=ttt,ntt=function(){try{var y=YD(Object,"defineProperty");return y({},"",{}),y}catch{}}(),MR=ntt;function rtt(y,p,x){p=="__proto__"&&MR?MR(y,p,{configurable:!0,enumerable:!0,value:x,writable:!0}):y[p]=x}var itt=rtt,stt=Object.prototype,A2t=stt.hasOwnProperty;function att(y,p,x){var C=y[p];(!(A2t.call(y,p)&&kR(C,x))||x===void 0&&!(p in y))&&itt(y,p,x)}var ott=att,ctt=9007199254740991,utt=/^(?:0|[1-9]\d*)$/;function ltt(y,p){var x=typeof y;return p=p??ctt,!!p&&(x=="number"||x!="symbol"&&utt.test(y))&&y>-1&&y%1==0&&y<p}var htt=ltt;function ftt(y,p,x,C){if(!ke(y))return y;p=DR(p,y);for(var L=-1,O=p.length,N=O-1,j=y;j!=null&&++L<O;){var H=QD(p[L]),q=x;if(H==="__proto__"||H==="constructor"||H==="prototype")return y;if(L!=N){var W=j[H];q=C?C(W,H,j):void 0,q===void 0&&(q=ke(W)?W:htt(p[L+1])?[]:{})}ott(j,H,q),j=j[H]}return y}var dtt=ftt;function gtt(y,p,x){return y==null?y:dtt(y,p,x)}var ptt=gtt;function btt(y,p){var x=-1,C=y.length;for(p||(p=Array(C));++x<C;)p[x]=y[x];return p}var wtt=btt;function mtt(y){return aC(y)?CR(y,QD):Nr(y)?[y]:wtt(TR(LR(y)))}var vtt=mtt,ytt={data:function(p){var x={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(L){},beforeSet:function(L,O){},onSet:function(L){},canSet:function(L){return!0}};return p=we({},x,p),function(L,O){var N=p,j=this,H=j.length!==void 0,q=H?j:[j],W=H?j[0]:j;if(mt(L)){var Z=L.indexOf(".")!==-1,st=Z&&vtt(L);if(N.allowGetting&&O===void 0){var bt;return W&&(N.beforeGet(W),st&&W._private[N.field][L]===void 0?bt=ett(W._private[N.field],st):bt=W._private[N.field][L]),bt}else if(N.allowSetting&&O!==void 0){var pt=!N.immutableKeys[L];if(pt){var _t=b({},L,O);N.beforeSet(j,_t);for(var St=0,Et=q.length;St<Et;St++){var Nt=q[St];N.canSet(Nt)&&(st&&W._private[N.field][L]===void 0?ptt(Nt._private[N.field],st,O):Nt._private[N.field][L]=O)}N.updateStyle&&j.updateStyle(),N.onSet(j),N.settingTriggersEvent&&j[N.triggerFnName](N.settingEvent)}}}else if(N.allowSetting&&it(L)){var Pt=L,qt,re,ee=Object.keys(Pt);N.beforeSet(j,Pt);for(var Ut=0;Ut<ee.length;Ut++){qt=ee[Ut],re=Pt[qt];var de=!N.immutableKeys[qt];if(de)for(var Yt=0;Yt<q.length;Yt++){var Ee=q[Yt];N.canSet(Ee)&&(Ee._private[N.field][qt]=re)}}N.updateStyle&&j.updateStyle(),N.onSet(j),N.settingTriggersEvent&&j[N.triggerFnName](N.settingEvent)}else if(N.allowBinding&&ct(L)){var Te=L;j.on(N.bindingEvent,Te)}else if(N.allowGetting&&L===void 0){var ie;return W&&(N.beforeGet(W),ie=W._private[N.field]),ie}return j}},removeData:function(p){var x={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return p=we({},x,p),function(L){var O=p,N=this,j=N.length!==void 0,H=j?N:[N];if(mt(L)){for(var q=L.split(/\s+/),W=q.length,Z=0;Z<W;Z++){var st=q[Z];if(!Ft(st)){var bt=!O.immutableKeys[st];if(bt)for(var pt=0,_t=H.length;pt<_t;pt++)H[pt]._private[O.field][st]=void 0}}O.triggerEvent&&N[O.triggerFnName](O.event)}else if(L===void 0){for(var St=0,Et=H.length;St<Et;St++)for(var Nt=H[St]._private[O.field],Pt=Object.keys(Nt),qt=0;qt<Pt.length;qt++){var re=Pt[qt],ee=!O.immutableKeys[re];ee&&(Nt[re]=void 0)}O.triggerEvent&&N[O.triggerFnName](O.event)}return N}}},xtt={eventAliasesOn:function(p){var x=p;x.addListener=x.listen=x.bind=x.on,x.unlisten=x.unbind=x.off=x.removeListener,x.trigger=x.emit,x.pon=x.promiseOn=function(C,L){var O=this,N=Array.prototype.slice.call(arguments,0);return new e6(function(j,H){var q=function(bt){O.off.apply(O,Z),j(bt)},W=N.concat([q]),Z=W.concat([]);O.on.apply(O,W)})}}},Kc={};[vJ,ytt,xtt].forEach(function(y){we(Kc,y)});var ktt={animate:Kc.animate(),animation:Kc.animation(),animated:Kc.animated(),clearQueue:Kc.clearQueue(),delay:Kc.delay(),delayAnimation:Kc.delayAnimation(),stop:Kc.stop()},lC={classes:function(p){var x=this;if(p===void 0){var C=[];return x[0]._private.classes.forEach(function(pt){return C.push(pt)}),C}else rt(p)||(p=(p||"").match(/\S+/g)||[]);for(var L=[],O=new Wx(p),N=0;N<x.length;N++){for(var j=x[N],H=j._private,q=H.classes,W=!1,Z=0;Z<p.length;Z++){var st=p[Z],bt=q.has(st);if(!bt){W=!0;break}}W||(W=q.size!==p.length),W&&(H.classes=O,L.push(j))}return L.length>0&&this.spawn(L).updateStyle().emit("class"),x},addClass:function(p){return this.toggleClass(p,!0)},hasClass:function(p){var x=this[0];return x!=null&&x._private.classes.has(p)},toggleClass:function(p,x){rt(p)||(p=p.match(/\S+/g)||[]);for(var C=this,L=x===void 0,O=[],N=0,j=C.length;N<j;N++)for(var H=C[N],q=H._private.classes,W=!1,Z=0;Z<p.length;Z++){var st=p[Z],bt=q.has(st),pt=!1;x||L&&!bt?(q.add(st),pt=!0):(!x||L&&bt)&&(q.delete(st),pt=!0),!W&&pt&&(O.push(H),W=!0)}return O.length>0&&this.spawn(O).updateStyle().emit("class"),C},removeClass:function(p){return this.toggleClass(p,!1)},flashClass:function(p,x){var C=this;if(x==null)x=250;else if(x===0)return C;return C.addClass(p),setTimeout(function(){C.removeClass(p)},x),C}};lC.className=lC.classNames=lC.classes;var yc={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:sn,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};yc.variable="(?:[\\w-.]|(?:\\\\"+yc.metaChar+"))+",yc.className="(?:[\\w-]|(?:\\\\"+yc.metaChar+"))+",yc.value=yc.string+"|"+yc.number,yc.id=yc.variable,function(){var y,p,x;for(y=yc.comparatorOp.split("|"),x=0;x<y.length;x++)p=y[x],yc.comparatorOp+="|@"+p;for(y=yc.comparatorOp.split("|"),x=0;x<y.length;x++)p=y[x],!(p.indexOf("!")>=0)&&p!=="="&&(yc.comparatorOp+="|\\!"+p)}();var bu=function(){return{checks:[]}},Xi={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},JD=[{selector:":selected",matches:function(p){return p.selected()}},{selector:":unselected",matches:function(p){return!p.selected()}},{selector:":selectable",matches:function(p){return p.selectable()}},{selector:":unselectable",matches:function(p){return!p.selectable()}},{selector:":locked",matches:function(p){return p.locked()}},{selector:":unlocked",matches:function(p){return!p.locked()}},{selector:":visible",matches:function(p){return p.visible()}},{selector:":hidden",matches:function(p){return!p.visible()}},{selector:":transparent",matches:function(p){return p.transparent()}},{selector:":grabbed",matches:function(p){return p.grabbed()}},{selector:":free",matches:function(p){return!p.grabbed()}},{selector:":removed",matches:function(p){return p.removed()}},{selector:":inside",matches:function(p){return!p.removed()}},{selector:":grabbable",matches:function(p){return p.grabbable()}},{selector:":ungrabbable",matches:function(p){return!p.grabbable()}},{selector:":animated",matches:function(p){return p.animated()}},{selector:":unanimated",matches:function(p){return!p.animated()}},{selector:":parent",matches:function(p){return p.isParent()}},{selector:":childless",matches:function(p){return p.isChildless()}},{selector:":child",matches:function(p){return p.isChild()}},{selector:":orphan",matches:function(p){return p.isOrphan()}},{selector:":nonorphan",matches:function(p){return p.isChild()}},{selector:":compound",matches:function(p){return p.isNode()?p.isParent():p.source().isParent()||p.target().isParent()}},{selector:":loop",matches:function(p){return p.isLoop()}},{selector:":simple",matches:function(p){return p.isSimple()}},{selector:":active",matches:function(p){return p.active()}},{selector:":inactive",matches:function(p){return!p.active()}},{selector:":backgrounding",matches:function(p){return p.backgrounding()}},{selector:":nonbackgrounding",matches:function(p){return!p.backgrounding()}}].sort(function(y,p){return Br(y.selector,p.selector)}),Ett=function(){for(var y={},p,x=0;x<JD.length;x++)p=JD[x],y[p.selector]=p.matches;return y}(),Ttt=function(p,x){return Ett[p](x)},Ctt="("+JD.map(function(y){return y.selector}).join("|")+")",s6=function(p){return p.replace(new RegExp("\\\\("+yc.metaChar+")","g"),function(x,C){return C})},B2=function(p,x,C){p[p.length-1]=C},z8=[{name:"group",query:!0,regex:"("+yc.group+")",populate:function(p,x,C){var L=E(C,1),O=L[0];x.checks.push({type:Xi.GROUP,value:O==="*"?O:O+"s"})}},{name:"state",query:!0,regex:Ctt,populate:function(p,x,C){var L=E(C,1),O=L[0];x.checks.push({type:Xi.STATE,value:O})}},{name:"id",query:!0,regex:"\\#("+yc.id+")",populate:function(p,x,C){var L=E(C,1),O=L[0];x.checks.push({type:Xi.ID,value:s6(O)})}},{name:"className",query:!0,regex:"\\.("+yc.className+")",populate:function(p,x,C){var L=E(C,1),O=L[0];x.checks.push({type:Xi.CLASS,value:s6(O)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+yc.variable+")\\s*\\]",populate:function(p,x,C){var L=E(C,1),O=L[0];x.checks.push({type:Xi.DATA_EXIST,field:s6(O)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+yc.variable+")\\s*("+yc.comparatorOp+")\\s*("+yc.value+")\\s*\\]",populate:function(p,x,C){var L=E(C,3),O=L[0],N=L[1],j=L[2],H=new RegExp("^"+yc.string+"$").exec(j)!=null;H?j=j.substring(1,j.length-1):j=parseFloat(j),x.checks.push({type:Xi.DATA_COMPARE,field:s6(O),operator:N,value:j})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+yc.boolOp+")\\s*("+yc.variable+")\\s*\\]",populate:function(p,x,C){var L=E(C,2),O=L[0],N=L[1];x.checks.push({type:Xi.DATA_BOOL,field:s6(N),operator:O})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+yc.meta+")\\s*("+yc.comparatorOp+")\\s*("+yc.number+")\\s*\\]\\]",populate:function(p,x,C){var L=E(C,3),O=L[0],N=L[1],j=L[2];x.checks.push({type:Xi.META_COMPARE,field:s6(O),operator:N,value:parseFloat(j)})}},{name:"nextQuery",separator:!0,regex:yc.separator,populate:function(p,x){var C=p.currentSubject,L=p.edgeCount,O=p.compoundCount,N=p[p.length-1];C!=null&&(N.subject=C,p.currentSubject=null),N.edgeCount=L,N.compoundCount=O,p.edgeCount=0,p.compoundCount=0;var j=p[p.length++]=bu();return j}},{name:"directedEdge",separator:!0,regex:yc.directedEdge,populate:function(p,x){if(p.currentSubject==null){var C=bu(),L=x,O=bu();return C.checks.push({type:Xi.DIRECTED_EDGE,source:L,target:O}),B2(p,x,C),p.edgeCount++,O}else{var N=bu(),j=x,H=bu();return N.checks.push({type:Xi.NODE_SOURCE,source:j,target:H}),B2(p,x,N),p.edgeCount++,H}}},{name:"undirectedEdge",separator:!0,regex:yc.undirectedEdge,populate:function(p,x){if(p.currentSubject==null){var C=bu(),L=x,O=bu();return C.checks.push({type:Xi.UNDIRECTED_EDGE,nodes:[L,O]}),B2(p,x,C),p.edgeCount++,O}else{var N=bu(),j=x,H=bu();return N.checks.push({type:Xi.NODE_NEIGHBOR,node:j,neighbor:H}),B2(p,x,N),H}}},{name:"child",separator:!0,regex:yc.child,populate:function(p,x){if(p.currentSubject==null){var C=bu(),L=bu(),O=p[p.length-1];return C.checks.push({type:Xi.CHILD,parent:O,child:L}),B2(p,x,C),p.compoundCount++,L}else if(p.currentSubject===x){var N=bu(),j=p[p.length-1],H=bu(),q=bu(),W=bu(),Z=bu();return N.checks.push({type:Xi.COMPOUND_SPLIT,left:j,right:H,subject:q}),q.checks=x.checks,x.checks=[{type:Xi.TRUE}],Z.checks.push({type:Xi.TRUE}),H.checks.push({type:Xi.PARENT,parent:Z,child:W}),B2(p,j,N),p.currentSubject=q,p.compoundCount++,W}else{var st=bu(),bt=bu(),pt=[{type:Xi.PARENT,parent:st,child:bt}];return st.checks=x.checks,x.checks=pt,p.compoundCount++,bt}}},{name:"descendant",separator:!0,regex:yc.descendant,populate:function(p,x){if(p.currentSubject==null){var C=bu(),L=bu(),O=p[p.length-1];return C.checks.push({type:Xi.DESCENDANT,ancestor:O,descendant:L}),B2(p,x,C),p.compoundCount++,L}else if(p.currentSubject===x){var N=bu(),j=p[p.length-1],H=bu(),q=bu(),W=bu(),Z=bu();return N.checks.push({type:Xi.COMPOUND_SPLIT,left:j,right:H,subject:q}),q.checks=x.checks,x.checks=[{type:Xi.TRUE}],Z.checks.push({type:Xi.TRUE}),H.checks.push({type:Xi.ANCESTOR,ancestor:Z,descendant:W}),B2(p,j,N),p.currentSubject=q,p.compoundCount++,W}else{var st=bu(),bt=bu(),pt=[{type:Xi.ANCESTOR,ancestor:st,descendant:bt}];return st.checks=x.checks,x.checks=pt,p.compoundCount++,bt}}},{name:"subject",modifier:!0,regex:yc.subject,populate:function(p,x){if(p.currentSubject!=null&&p.currentSubject!==x)return Gc("Redefinition of subject in selector `"+p.toString()+"`"),!1;p.currentSubject=x;var C=p[p.length-1],L=C.checks[0],O=L==null?null:L.type;O===Xi.DIRECTED_EDGE?L.type=Xi.NODE_TARGET:O===Xi.UNDIRECTED_EDGE&&(L.type=Xi.NODE_NEIGHBOR,L.node=L.nodes[1],L.neighbor=L.nodes[0],L.nodes=null)}}];z8.forEach(function(y){return y.regexObj=new RegExp("^"+y.regex)});var Stt=function(p){for(var x,C,L,O=0;O<z8.length;O++){var N=z8[O],j=N.name,H=p.match(N.regexObj);if(H!=null){C=H,x=N,L=j;var q=H[0];p=p.substring(q.length);break}}return{expr:x,match:C,name:L,remaining:p}},ZD=function(p){var x=p.match(/^\s+/);if(x){var C=x[0];p=p.substring(C.length)}return p},_tt=function(p){var x=this,C=x.inputText=p,L=x[0]=bu();for(x.length=1,C=ZD(C);;){var O=Stt(C);if(O.expr==null)return Gc("The selector `"+p+"`is invalid"),!1;var N=O.match.slice(1),j=O.expr.populate(x,L,N);if(j===!1)return!1;if(j!=null&&(L=j),C=O.remaining,C.match(/^\s*$/))break}var H=x[x.length-1];x.currentSubject!=null&&(H.subject=x.currentSubject),H.edgeCount=x.edgeCount,H.compoundCount=x.compoundCount;for(var q=0;q<x.length;q++){var W=x[q];if(W.compoundCount>0&&W.edgeCount>0)return Gc("The selector `"+p+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(W.edgeCount>1)return Gc("The selector `"+p+"` is invalid because it uses multiple edge selectors"),!1;W.edgeCount===1&&Gc("The selector `"+p+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},Att=function(){if(this.toStringCache!=null)return this.toStringCache;for(var p=function(W){return W??""},x=function(W){return mt(W)?'"'+W+'"':p(W)},C=function(W){return" "+W+" "},L=function(W,Z){var st=W.type,bt=W.value;switch(st){case Xi.GROUP:{var pt=p(bt);return pt.substring(0,pt.length-1)}case Xi.DATA_COMPARE:{var _t=W.field,St=W.operator;return"["+_t+C(p(St))+x(bt)+"]"}case Xi.DATA_BOOL:{var Et=W.operator,Nt=W.field;return"["+p(Et)+Nt+"]"}case Xi.DATA_EXIST:{var Pt=W.field;return"["+Pt+"]"}case Xi.META_COMPARE:{var qt=W.operator,re=W.field;return"[["+re+C(p(qt))+x(bt)+"]]"}case Xi.STATE:return bt;case Xi.ID:return"#"+bt;case Xi.CLASS:return"."+bt;case Xi.PARENT:case Xi.CHILD:return O(W.parent,Z)+C(">")+O(W.child,Z);case Xi.ANCESTOR:case Xi.DESCENDANT:return O(W.ancestor,Z)+" "+O(W.descendant,Z);case Xi.COMPOUND_SPLIT:{var ee=O(W.left,Z),Ut=O(W.subject,Z),de=O(W.right,Z);return ee+(ee.length>0?" ":"")+Ut+de}case Xi.TRUE:return""}},O=function(W,Z){return W.checks.reduce(function(st,bt,pt){return st+(Z===W&&pt===0?"$":"")+L(bt,Z)},"")},N="",j=0;j<this.length;j++){var H=this[j];N+=O(H,H.subject),this.length>1&&j<this.length-1&&(N+=", ")}return this.toStringCache=N,N},Ltt={parse:_tt,toString:Att},IR=function(p,x,C){var L,O=mt(p),N=Q(p),j=mt(C),H,q,W=!1,Z=!1,st=!1;switch(x.indexOf("!")>=0&&(x=x.replace("!",""),Z=!0),x.indexOf("@")>=0&&(x=x.replace("@",""),W=!0),(O||j||W)&&(H=!O&&!N?"":""+p,q=""+C),W&&(p=H=H.toLowerCase(),C=q=q.toLowerCase()),x){case"*=":L=H.indexOf(q)>=0;break;case"$=":L=H.indexOf(q,H.length-q.length)>=0;break;case"^=":L=H.indexOf(q)===0;break;case"=":L=p===C;break;case">":st=!0,L=p>C;break;case">=":st=!0,L=p>=C;break;case"<":st=!0,L=p<C;break;case"<=":st=!0,L=p<=C;break;default:L=!1;break}return Z&&(p!=null||!st)&&(L=!L),L},Dtt=function(p,x){switch(x){case"?":return!!p;case"!":return!p;case"^":return p===void 0}},Mtt=function(p){return p!==void 0},tM=function(p,x){return p.data(x)},Itt=function(p,x){return p[x]()},zl=[],Yu=function(p,x){return p.checks.every(function(C){return zl[C.type](C,x)})};zl[Xi.GROUP]=function(y,p){var x=y.value;return x==="*"||x===p.group()},zl[Xi.STATE]=function(y,p){var x=y.value;return Ttt(x,p)},zl[Xi.ID]=function(y,p){var x=y.value;return p.id()===x},zl[Xi.CLASS]=function(y,p){var x=y.value;return p.hasClass(x)},zl[Xi.META_COMPARE]=function(y,p){var x=y.field,C=y.operator,L=y.value;return IR(Itt(p,x),C,L)},zl[Xi.DATA_COMPARE]=function(y,p){var x=y.field,C=y.operator,L=y.value;return IR(tM(p,x),C,L)},zl[Xi.DATA_BOOL]=function(y,p){var x=y.field,C=y.operator;return Dtt(tM(p,x),C)},zl[Xi.DATA_EXIST]=function(y,p){var x=y.field;return y.operator,Mtt(tM(p,x))},zl[Xi.UNDIRECTED_EDGE]=function(y,p){var x=y.nodes[0],C=y.nodes[1],L=p.source(),O=p.target();return Yu(x,L)&&Yu(C,O)||Yu(C,L)&&Yu(x,O)},zl[Xi.NODE_NEIGHBOR]=function(y,p){return Yu(y.node,p)&&p.neighborhood().some(function(x){return x.isNode()&&Yu(y.neighbor,x)})},zl[Xi.DIRECTED_EDGE]=function(y,p){return Yu(y.source,p.source())&&Yu(y.target,p.target())},zl[Xi.NODE_SOURCE]=function(y,p){return Yu(y.source,p)&&p.outgoers().some(function(x){return x.isNode()&&Yu(y.target,x)})},zl[Xi.NODE_TARGET]=function(y,p){return Yu(y.target,p)&&p.incomers().some(function(x){return x.isNode()&&Yu(y.source,x)})},zl[Xi.CHILD]=function(y,p){return Yu(y.child,p)&&Yu(y.parent,p.parent())},zl[Xi.PARENT]=function(y,p){return Yu(y.parent,p)&&p.children().some(function(x){return Yu(y.child,x)})},zl[Xi.DESCENDANT]=function(y,p){return Yu(y.descendant,p)&&p.ancestors().some(function(x){return Yu(y.ancestor,x)})},zl[Xi.ANCESTOR]=function(y,p){return Yu(y.ancestor,p)&&p.descendants().some(function(x){return Yu(y.descendant,x)})},zl[Xi.COMPOUND_SPLIT]=function(y,p){return Yu(y.subject,p)&&Yu(y.left,p)&&Yu(y.right,p)},zl[Xi.TRUE]=function(){return!0},zl[Xi.COLLECTION]=function(y,p){var x=y.value;return x.has(p)},zl[Xi.FILTER]=function(y,p){var x=y.value;return x(p)};var OR=function(p){var x=this;if(x.length===1&&x[0].checks.length===1&&x[0].checks[0].type===Xi.ID)return p.getElementById(x[0].checks[0].value).collection();var C=function(O){for(var N=0;N<x.length;N++){var j=x[N];if(Yu(j,O))return!0}return!1};return x.text()==null&&(C=function(){return!0}),p.filter(C)},Ott=function(p){for(var x=this,C=0;C<x.length;C++){var L=x[C];if(Yu(L,p))return!0}return!1},Ntt={matches:Ott,filter:OR},ly=function(p){this.inputText=p,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,p==null||mt(p)&&p.match(/^\s*$/)||(yt(p)?this.addQuery({checks:[{type:Xi.COLLECTION,value:p.collection()}]}):ct(p)?this.addQuery({checks:[{type:Xi.FILTER,value:p}]}):mt(p)?this.parse(p)||(this.invalid=!0):$l("A selector must be created from a string; found "))},x4=ly.prototype;[Ltt,Ntt].forEach(function(y){return we(x4,y)}),x4.text=function(){return this.inputText},x4.size=function(){return this.length},x4.eq=function(y){return this[y]},x4.sameText=function(y){return!this.invalid&&!y.invalid&&this.text()===y.text()},x4.addQuery=function(y){this[this.length++]=y},x4.selector=x4.toString;var hy={allAre:function(p){var x=new ly(p);return this.every(function(C){return x.matches(C)})},is:function(p){var x=new ly(p);return this.some(function(C){return x.matches(C)})},some:function(p,x){for(var C=0;C<this.length;C++){var L=x?p.apply(x,[this[C],C,this]):p(this[C],C,this);if(L)return!0}return!1},every:function(p,x){for(var C=0;C<this.length;C++){var L=x?p.apply(x,[this[C],C,this]):p(this[C],C,this);if(!L)return!1}return!0},same:function(p){if(this===p)return!0;p=this.cy().collection(p);var x=this.length,C=p.length;return x!==C?!1:x===1?this[0]===p[0]:this.every(function(L){return p.hasElementWithId(L.id())})},anySame:function(p){return p=this.cy().collection(p),this.some(function(x){return p.hasElementWithId(x.id())})},allAreNeighbors:function(p){p=this.cy().collection(p);var x=this.neighborhood();return p.every(function(C){return x.hasElementWithId(C.id())})},contains:function(p){p=this.cy().collection(p);var x=this;return p.every(function(C){return x.hasElementWithId(C.id())})}};hy.allAreNeighbours=hy.allAreNeighbors,hy.has=hy.contains,hy.equal=hy.equals=hy.same;var ap=function(p,x){return function(L,O,N,j){var H=L,q=this,W;if(H==null?W="":yt(H)&&H.length===1&&(W=H.id()),q.length===1&&W){var Z=q[0]._private,st=Z.traversalCache=Z.traversalCache||{},bt=st[x]=st[x]||[],pt=Nd(W),_t=bt[pt];return _t||(bt[pt]=p.call(q,L,O,N,j))}else return p.call(q,L,O,N,j)}},a6={parent:function(p){var x=[];if(this.length===1){var C=this[0]._private.parent;if(C)return C}for(var L=0;L<this.length;L++){var O=this[L],N=O._private.parent;N&&x.push(N)}return this.spawn(x,!0).filter(p)},parents:function(p){for(var x=[],C=this.parent();C.nonempty();){for(var L=0;L<C.length;L++){var O=C[L];x.push(O)}C=C.parent()}return this.spawn(x,!0).filter(p)},commonAncestors:function(p){for(var x,C=0;C<this.length;C++){var L=this[C],O=L.parents();x=x||O,x=x.intersect(O)}return x.filter(p)},orphans:function(p){return this.stdFilter(function(x){return x.isOrphan()}).filter(p)},nonorphans:function(p){return this.stdFilter(function(x){return x.isChild()}).filter(p)},children:ap(function(y){for(var p=[],x=0;x<this.length;x++)for(var C=this[x],L=C._private.children,O=0;O<L.length;O++)p.push(L[O]);return this.spawn(p,!0).filter(y)},"children"),siblings:function(p){return this.parent().children().not(this).filter(p)},isParent:function(){var p=this[0];if(p)return p.isNode()&&p._private.children.length!==0},isChildless:function(){var p=this[0];if(p)return p.isNode()&&p._private.children.length===0},isChild:function(){var p=this[0];if(p)return p.isNode()&&p._private.parent!=null},isOrphan:function(){var p=this[0];if(p)return p.isNode()&&p._private.parent==null},descendants:function(p){var x=[];function C(L){for(var O=0;O<L.length;O++){var N=L[O];x.push(N),N.children().nonempty()&&C(N.children())}}return C(this.children()),this.spawn(x,!0).filter(p)}};function eM(y,p,x,C){for(var L=[],O=new Wx,N=y.cy(),j=N.hasCompoundNodes(),H=0;H<y.length;H++){var q=y[H];x?L.push(q):j&&C(L,O,q)}for(;L.length>0;){var W=L.shift();p(W),O.add(W.id()),j&&C(L,O,W)}return y}function NR(y,p,x){if(x.isParent())for(var C=x._private.children,L=0;L<C.length;L++){var O=C[L];p.has(O.id())||y.push(O)}}a6.forEachDown=function(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return eM(this,y,p,NR)};function PR(y,p,x){if(x.isChild()){var C=x._private.parent;p.has(C.id())||y.push(C)}}a6.forEachUp=function(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return eM(this,y,p,PR)};function Ptt(y,p,x){PR(y,p,x),NR(y,p,x)}a6.forEachUpAndDown=function(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return eM(this,y,p,Ptt)},a6.ancestors=a6.parents;var G1,FR;G1=FR={data:Kc.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Kc.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Kc.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Kc.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Kc.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Kc.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var p=this[0];if(p)return p._private.data.id}},G1.attr=G1.data,G1.removeAttr=G1.removeData;var fy=FR,q8={};function nM(y){return function(p){var x=this;if(p===void 0&&(p=!0),x.length!==0)if(x.isNode()&&!x.removed()){for(var C=0,L=x[0],O=L._private.edges,N=0;N<O.length;N++){var j=O[N];!p&&j.isLoop()||(C+=y(L,j))}return C}else return}}we(q8,{degree:nM(function(y,p){return p.source().same(p.target())?2:1}),indegree:nM(function(y,p){return p.target().same(y)?1:0}),outdegree:nM(function(y,p){return p.source().same(y)?1:0})});function o6(y,p){return function(x){for(var C,L=this.nodes(),O=0;O<L.length;O++){var N=L[O],j=N[y](x);j!==void 0&&(C===void 0||p(j,C))&&(C=j)}return C}}we(q8,{minDegree:o6("degree",function(y,p){return y<p}),maxDegree:o6("degree",function(y,p){return y>p}),minIndegree:o6("indegree",function(y,p){return y<p}),maxIndegree:o6("indegree",function(y,p){return y>p}),minOutdegree:o6("outdegree",function(y,p){return y<p}),maxOutdegree:o6("outdegree",function(y,p){return y>p})}),we(q8,{totalDegree:function(p){for(var x=0,C=this.nodes(),L=0;L<C.length;L++)x+=C[L].degree(p);return x}});var db,BR,RR=function(p,x,C){for(var L=0;L<p.length;L++){var O=p[L];if(!O.locked()){var N=O._private.position,j={x:x.x!=null?x.x-N.x:0,y:x.y!=null?x.y-N.y:0};O.isParent()&&!(j.x===0&&j.y===0)&&O.children().shift(j,C),O.dirtyBoundingBoxCache()}}},jR={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(p){p.updateCompoundBounds()},beforeSet:function(p,x){RR(p,x,!1)},onSet:function(p){p.dirtyCompoundBoundsCache()},canSet:function(p){return!p.locked()}};db=BR={position:Kc.data(jR),silentPosition:Kc.data(we({},jR,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(p,x){RR(p,x,!0)},onSet:function(p){p.dirtyCompoundBoundsCache()}})),positions:function(p,x){if(it(p))x?this.silentPosition(p):this.position(p);else if(ct(p)){var C=p,L=this.cy();L.startBatch();for(var O=0;O<this.length;O++){var N=this[O],j=void 0;(j=C(N,O))&&(x?N.silentPosition(j):N.position(j))}L.endBatch()}return this},silentPositions:function(p){return this.positions(p,!0)},shift:function(p,x,C){var L;if(it(p)?(L={x:Q(p.x)?p.x:0,y:Q(p.y)?p.y:0},C=x):mt(p)&&Q(x)&&(L={x:0,y:0},L[p]=x),L!=null){var O=this.cy();O.startBatch();for(var N=0;N<this.length;N++){var j=this[N];if(!(O.hasCompoundNodes()&&j.isChild()&&j.ancestors().anySame(this))){var H=j.position(),q={x:H.x+L.x,y:H.y+L.y};C?j.silentPosition(q):j.position(q)}}O.endBatch()}return this},silentShift:function(p,x){return it(p)?this.shift(p,!0):mt(p)&&Q(x)&&this.shift(p,x,!0),this},renderedPosition:function(p,x){var C=this[0],L=this.cy(),O=L.zoom(),N=L.pan(),j=it(p)?p:void 0,H=j!==void 0||x!==void 0&&mt(p);if(C&&C.isNode())if(H)for(var q=0;q<this.length;q++){var W=this[q];x!==void 0?W.position(p,(x-N[p])/O):j!==void 0&&W.position(PB(j,O,N))}else{var Z=C.position();return j=W9(Z,O,N),p===void 0?j:j[p]}else if(!H)return;return this},relativePosition:function(p,x){var C=this[0],L=this.cy(),O=it(p)?p:void 0,N=O!==void 0||x!==void 0&&mt(p),j=L.hasCompoundNodes();if(C&&C.isNode())if(N)for(var H=0;H<this.length;H++){var q=this[H],W=j?q.parent():null,Z=W&&W.length>0,st=Z;Z&&(W=W[0]);var bt=st?W.position():{x:0,y:0};x!==void 0?q.position(p,x+bt[p]):O!==void 0&&q.position({x:O.x+bt.x,y:O.y+bt.y})}else{var pt=C.position(),_t=j?C.parent():null,St=_t&&_t.length>0,Et=St;St&&(_t=_t[0]);var Nt=Et?_t.position():{x:0,y:0};return O={x:pt.x-Nt.x,y:pt.y-Nt.y},p===void 0?O:O[p]}else if(!N)return;return this}},db.modelPosition=db.point=db.position,db.modelPositions=db.points=db.positions,db.renderedPoint=db.renderedPosition,db.relativePoint=db.relativePosition;var Ftt=BR,c6,dy;c6=dy={},dy.renderedBoundingBox=function(y){var p=this.boundingBox(y),x=this.cy(),C=x.zoom(),L=x.pan(),O=p.x1*C+L.x,N=p.x2*C+L.x,j=p.y1*C+L.y,H=p.y2*C+L.y;return{x1:O,x2:N,y1:j,y2:H,w:N-O,h:H-j}},dy.dirtyCompoundBoundsCache=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,p=this.cy();return!p.styleEnabled()||!p.hasCompoundNodes()?this:(this.forEachUp(function(x){if(x.isParent()){var C=x._private;C.compoundBoundsClean=!1,C.bbCache=null,y||x.emitAndNotify("bounds")}}),this)},dy.updateCompoundBounds=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,p=this.cy();if(!p.styleEnabled()||!p.hasCompoundNodes())return this;if(!y&&p.batching())return this;function x(N){if(!N.isParent())return;var j=N._private,H=N.children(),q=N.pstyle("compound-sizing-wrt-labels").value==="include",W={width:{val:N.pstyle("min-width").pfValue,left:N.pstyle("min-width-bias-left"),right:N.pstyle("min-width-bias-right")},height:{val:N.pstyle("min-height").pfValue,top:N.pstyle("min-height-bias-top"),bottom:N.pstyle("min-height-bias-bottom")}},Z=H.boundingBox({includeLabels:q,includeOverlays:!1,useCache:!1}),st=j.position;(Z.w===0||Z.h===0)&&(Z={w:N.pstyle("width").pfValue,h:N.pstyle("height").pfValue},Z.x1=st.x-Z.w/2,Z.x2=st.x+Z.w/2,Z.y1=st.y-Z.h/2,Z.y2=st.y+Z.h/2);function bt(Yt,Ee,Te){var ie=0,ze=0,me=Ee+Te;return Yt>0&&me>0&&(ie=Ee/me*Yt,ze=Te/me*Yt),{biasDiff:ie,biasComplementDiff:ze}}function pt(Yt,Ee,Te,ie){if(Te.units==="%")switch(ie){case"width":return Yt>0?Te.pfValue*Yt:0;case"height":return Ee>0?Te.pfValue*Ee:0;case"average":return Yt>0&&Ee>0?Te.pfValue*(Yt+Ee)/2:0;case"min":return Yt>0&&Ee>0?Yt>Ee?Te.pfValue*Ee:Te.pfValue*Yt:0;case"max":return Yt>0&&Ee>0?Yt>Ee?Te.pfValue*Yt:Te.pfValue*Ee:0;default:return 0}else return Te.units==="px"?Te.pfValue:0}var _t=W.width.left.value;W.width.left.units==="px"&&W.width.val>0&&(_t=_t*100/W.width.val);var St=W.width.right.value;W.width.right.units==="px"&&W.width.val>0&&(St=St*100/W.width.val);var Et=W.height.top.value;W.height.top.units==="px"&&W.height.val>0&&(Et=Et*100/W.height.val);var Nt=W.height.bottom.value;W.height.bottom.units==="px"&&W.height.val>0&&(Nt=Nt*100/W.height.val);var Pt=bt(W.width.val-Z.w,_t,St),qt=Pt.biasDiff,re=Pt.biasComplementDiff,ee=bt(W.height.val-Z.h,Et,Nt),Ut=ee.biasDiff,de=ee.biasComplementDiff;j.autoPadding=pt(Z.w,Z.h,N.pstyle("padding"),N.pstyle("padding-relative-to").value),j.autoWidth=Math.max(Z.w,W.width.val),st.x=(-qt+Z.x1+Z.x2+re)/2,j.autoHeight=Math.max(Z.h,W.height.val),st.y=(-Ut+Z.y1+Z.y2+de)/2}for(var C=0;C<this.length;C++){var L=this[C],O=L._private;(!O.compoundBoundsClean||y)&&(x(L),p.batching()||(O.compoundBoundsClean=!0))}return this};var op=function(p){return p===1/0||p===-1/0?0:p},gb=function(p,x,C,L,O){L-x===0||O-C===0||x==null||C==null||L==null||O==null||(p.x1=x<p.x1?x:p.x1,p.x2=L>p.x2?L:p.x2,p.y1=C<p.y1?C:p.y1,p.y2=O>p.y2?O:p.y2,p.w=p.x2-p.x1,p.h=p.y2-p.y1)},k4=function(p,x){return x==null?p:gb(p,x.x1,x.y1,x.x2,x.y2)},H8=function(p,x,C){return fb(p,x,C)},hC=function(p,x,C){if(!x.cy().headless()){var L=x._private,O=L.rstyle,N=O.arrowWidth/2,j=x.pstyle(C+"-arrow-shape").value,H,q;if(j!=="none"){C==="source"?(H=O.srcX,q=O.srcY):C==="target"?(H=O.tgtX,q=O.tgtY):(H=O.midX,q=O.midY);var W=L.arrowBounds=L.arrowBounds||{},Z=W[C]=W[C]||{};Z.x1=H-N,Z.y1=q-N,Z.x2=H+N,Z.y2=q+N,Z.w=Z.x2-Z.x1,Z.h=Z.y2-Z.y1,X9(Z,1),gb(p,Z.x1,Z.y1,Z.x2,Z.y2)}}},rM=function(p,x,C){if(!x.cy().headless()){var L;C?L=C+"-":L="";var O=x._private,N=O.rstyle,j=x.pstyle(L+"label").strValue;if(j){var H=x.pstyle("text-halign"),q=x.pstyle("text-valign"),W=H8(N,"labelWidth",C),Z=H8(N,"labelHeight",C),st=H8(N,"labelX",C),bt=H8(N,"labelY",C),pt=x.pstyle(L+"text-margin-x").pfValue,_t=x.pstyle(L+"text-margin-y").pfValue,St=x.isEdge(),Et=x.pstyle(L+"text-rotation"),Nt=x.pstyle("text-outline-width").pfValue,Pt=x.pstyle("text-border-width").pfValue,qt=Pt/2,re=x.pstyle("text-background-padding").pfValue,ee=2,Ut=Z,de=W,Yt=de/2,Ee=Ut/2,Te,ie,ze,me;if(St)Te=st-Yt,ie=st+Yt,ze=bt-Ee,me=bt+Ee;else{switch(H.value){case"left":Te=st-de,ie=st;break;case"center":Te=st-Yt,ie=st+Yt;break;case"right":Te=st,ie=st+de;break}switch(q.value){case"top":ze=bt-Ut,me=bt;break;case"center":ze=bt-Ee,me=bt+Ee;break;case"bottom":ze=bt,me=bt+Ut;break}}Te+=pt-Math.max(Nt,qt)-re-ee,ie+=pt+Math.max(Nt,qt)+re+ee,ze+=_t-Math.max(Nt,qt)-re-ee,me+=_t+Math.max(Nt,qt)+re+ee;var yn=C||"main",nn=O.labelBounds,qe=nn[yn]=nn[yn]||{};qe.x1=Te,qe.y1=ze,qe.x2=ie,qe.y2=me,qe.w=ie-Te,qe.h=me-ze;var Tn=St&&Et.strValue==="autorotate",Xn=Et.pfValue!=null&&Et.pfValue!==0;if(Tn||Xn){var lr=Tn?H8(O.rstyle,"labelAngle",C):Et.pfValue,Sn=Math.cos(lr),or=Math.sin(lr),pr=(Te+ie)/2,kr=(ze+me)/2;if(!St){switch(H.value){case"left":pr=ie;break;case"right":pr=Te;break}switch(q.value){case"top":kr=me;break;case"bottom":kr=ze;break}}var wr=function(na,vi){return na=na-pr,vi=vi-kr,{x:na*Sn-vi*or+pr,y:na*or+vi*Sn+kr}},Cr=wr(Te,ze),$n=wr(Te,me),cr=wr(ie,ze),mr=wr(ie,me);Te=Math.min(Cr.x,$n.x,cr.x,mr.x),ie=Math.max(Cr.x,$n.x,cr.x,mr.x),ze=Math.min(Cr.y,$n.y,cr.y,mr.y),me=Math.max(Cr.y,$n.y,cr.y,mr.y)}var Sr=yn+"Rot",gi=nn[Sr]=nn[Sr]||{};gi.x1=Te,gi.y1=ze,gi.x2=ie,gi.y2=me,gi.w=ie-Te,gi.h=me-ze,gb(p,Te,ze,ie,me),gb(O.labelBounds.all,Te,ze,ie,me)}return p}},Btt=function(p,x){if(!x.cy().headless()){var C=x.pstyle("outline-opacity").value,L=x.pstyle("outline-width").value;if(C>0&&L>0){var O=x.pstyle("outline-offset").value,N=x.pstyle("shape").value,j=L+O,H=(p.w+j*2)/p.w,q=(p.h+j*2)/p.h,W=0,Z=0;["diamond","pentagon","round-triangle"].includes(N)?(H=(p.w+j*2.4)/p.w,Z=-j/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(N)?H=(p.w+j*2.4)/p.w:N==="star"?(H=(p.w+j*2.8)/p.w,q=(p.h+j*2.6)/p.h,Z=-j/3.8):N==="triangle"?(H=(p.w+j*2.8)/p.w,q=(p.h+j*2.4)/p.h,Z=-j/1.4):N==="vee"&&(H=(p.w+j*4.4)/p.w,q=(p.h+j*3.8)/p.h,Z=-j*.5);var st=p.h*q-p.h,bt=p.w*H-p.w;if(Q9(p,[Math.ceil(st/2),Math.ceil(bt/2)]),W!=0||Z!==0){var pt=pQ(p,W,Z);BB(p,pt)}}}},Rtt=function(p,x){var C=p._private.cy,L=C.styleEnabled(),O=C.headless(),N=v0(),j=p._private,H=p.isNode(),q=p.isEdge(),W,Z,st,bt,pt,_t,St=j.rstyle,Et=H&&L?p.pstyle("bounds-expansion").pfValue:[0],Nt=function(Qi){return Qi.pstyle("display").value!=="none"},Pt=!L||Nt(p)&&(!q||Nt(p.source())&&Nt(p.target()));if(Pt){var qt=0,re=0;L&&x.includeOverlays&&(qt=p.pstyle("overlay-opacity").value,qt!==0&&(re=p.pstyle("overlay-padding").value));var ee=0,Ut=0;L&&x.includeUnderlays&&(ee=p.pstyle("underlay-opacity").value,ee!==0&&(Ut=p.pstyle("underlay-padding").value));var de=Math.max(re,Ut),Yt=0,Ee=0;if(L&&(Yt=p.pstyle("width").pfValue,Ee=Yt/2),H&&x.includeNodes){var Te=p.position();pt=Te.x,_t=Te.y;var ie=p.outerWidth(),ze=ie/2,me=p.outerHeight(),yn=me/2;W=pt-ze,Z=pt+ze,st=_t-yn,bt=_t+yn,gb(N,W,st,Z,bt),L&&x.includeOutlines&&Btt(N,p)}else if(q&&x.includeEdges)if(L&&!O){var nn=p.pstyle("curve-style").strValue;if(W=Math.min(St.srcX,St.midX,St.tgtX),Z=Math.max(St.srcX,St.midX,St.tgtX),st=Math.min(St.srcY,St.midY,St.tgtY),bt=Math.max(St.srcY,St.midY,St.tgtY),W-=Ee,Z+=Ee,st-=Ee,bt+=Ee,gb(N,W,st,Z,bt),nn==="haystack"){var qe=St.haystackPts;if(qe&&qe.length===2){if(W=qe[0].x,st=qe[0].y,Z=qe[1].x,bt=qe[1].y,W>Z){var Tn=W;W=Z,Z=Tn}if(st>bt){var Xn=st;st=bt,bt=Xn}gb(N,W-Ee,st-Ee,Z+Ee,bt+Ee)}}else if(nn==="bezier"||nn==="unbundled-bezier"||nn==="segments"||nn==="taxi"){var lr;switch(nn){case"bezier":case"unbundled-bezier":lr=St.bezierPts;break;case"segments":case"taxi":lr=St.linePts;break}if(lr!=null)for(var Sn=0;Sn<lr.length;Sn++){var or=lr[Sn];W=or.x-Ee,Z=or.x+Ee,st=or.y-Ee,bt=or.y+Ee,gb(N,W,st,Z,bt)}}}else{var pr=p.source(),kr=pr.position(),wr=p.target(),Cr=wr.position();if(W=kr.x,Z=Cr.x,st=kr.y,bt=Cr.y,W>Z){var $n=W;W=Z,Z=$n}if(st>bt){var cr=st;st=bt,bt=cr}W-=Ee,Z+=Ee,st-=Ee,bt+=Ee,gb(N,W,st,Z,bt)}if(L&&x.includeEdges&&q&&(hC(N,p,"mid-source"),hC(N,p,"mid-target"),hC(N,p,"source"),hC(N,p,"target")),L){var mr=p.pstyle("ghost").value==="yes";if(mr){var Sr=p.pstyle("ghost-offset-x").pfValue,gi=p.pstyle("ghost-offset-y").pfValue;gb(N,N.x1+Sr,N.y1+gi,N.x2+Sr,N.y2+gi)}}var ss=j.bodyBounds=j.bodyBounds||{};RB(ss,N),Q9(ss,Et),X9(ss,1),L&&(W=N.x1,Z=N.x2,st=N.y1,bt=N.y2,gb(N,W-de,st-de,Z+de,bt+de));var na=j.overlayBounds=j.overlayBounds||{};RB(na,N),Q9(na,Et),X9(na,1);var vi=j.labelBounds=j.labelBounds||{};vi.all!=null?gQ(vi.all):vi.all=v0(),L&&x.includeLabels&&(x.includeMainLabels&&rM(N,p,null),q&&(x.includeSourceLabels&&rM(N,p,"source"),x.includeTargetLabels&&rM(N,p,"target")))}return N.x1=op(N.x1),N.y1=op(N.y1),N.x2=op(N.x2),N.y2=op(N.y2),N.w=op(N.x2-N.x1),N.h=op(N.y2-N.y1),N.w>0&&N.h>0&&Pt&&(Q9(N,Et),X9(N,1)),N},$R=function(p){var x=0,C=function(N){return(N?1:0)<<x++},L=0;return L+=C(p.incudeNodes),L+=C(p.includeEdges),L+=C(p.includeLabels),L+=C(p.includeMainLabels),L+=C(p.includeSourceLabels),L+=C(p.includeTargetLabels),L+=C(p.includeOverlays),L+=C(p.includeOutlines),L},zR=function(p){if(p.isEdge()){var x=p.source().position(),C=p.target().position(),L=function(N){return Math.round(N)};return U1([L(x.x),L(x.y),L(C.x),L(C.y)])}else return 0},je=function(p,x){var C=p._private,L,O=p.isEdge(),N=x==null?qR:$R(x),j=N===qR,H=zR(p),q=C.bbCachePosKey===H,W=x.useCache&&q,Z=function(_t){return _t._private.bbCache==null||_t._private.styleDirty},st=!W||Z(p)||O&&Z(p.source())||Z(p.target());if(st?(q||p.recalculateRenderedStyle(W),L=Rtt(p,V8),C.bbCache=L,C.bbCachePosKey=H):L=C.bbCache,!j){var bt=p.isNode();L=v0(),(x.includeNodes&&bt||x.includeEdges&&!bt)&&(x.includeOverlays?k4(L,C.overlayBounds):k4(L,C.bodyBounds)),x.includeLabels&&(x.includeMainLabels&&(!O||x.includeSourceLabels&&x.includeTargetLabels)?k4(L,C.labelBounds.all):(x.includeMainLabels&&k4(L,C.labelBounds.mainRot),x.includeSourceLabels&&k4(L,C.labelBounds.sourceRot),x.includeTargetLabels&&k4(L,C.labelBounds.targetRot))),L.w=L.x2-L.x1,L.h=L.y2-L.y1}return L},V8={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},qR=$R(V8),HR=p1(V8);dy.boundingBox=function(y){var p;if(this.length===1&&this[0]._private.bbCache!=null&&!this[0]._private.styleDirty&&(y===void 0||y.useCache===void 0||y.useCache===!0))y===void 0?y=V8:y=HR(y),p=je(this[0],y);else{p=v0(),y=y||V8;var x=HR(y),C=this,L=C.cy(),O=L.styleEnabled();if(O)for(var N=0;N<C.length;N++){var j=C[N],H=j._private,q=zR(j),W=H.bbCachePosKey===q,Z=x.useCache&&W&&!H.styleDirty;j.recalculateRenderedStyle(Z)}this.updateCompoundBounds(!y.useCache);for(var st=0;st<C.length;st++){var bt=C[st];k4(p,je(bt,x))}}return p.x1=op(p.x1),p.y1=op(p.y1),p.x2=op(p.x2),p.y2=op(p.y2),p.w=op(p.x2-p.x1),p.h=op(p.y2-p.y1),p},dy.dirtyBoundingBoxCache=function(){for(var y=0;y<this.length;y++){var p=this[y]._private;p.bbCache=null,p.bbCachePosKey=null,p.bodyBounds=null,p.overlayBounds=null,p.labelBounds.all=null,p.labelBounds.source=null,p.labelBounds.target=null,p.labelBounds.main=null,p.labelBounds.sourceRot=null,p.labelBounds.targetRot=null,p.labelBounds.mainRot=null,p.arrowBounds.source=null,p.arrowBounds.target=null,p.arrowBounds["mid-source"]=null,p.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},dy.boundingBoxAt=function(y){var p=this.nodes(),x=this.cy(),C=x.hasCompoundNodes(),L=x.collection();if(C&&(L=p.filter(function(q){return q.isParent()}),p=p.not(L)),it(y)){var O=y;y=function(){return O}}var N=function(W,Z){return W._private.bbAtOldPos=y(W,Z)},j=function(W){return W._private.bbAtOldPos};x.startBatch(),p.forEach(N).silentPositions(y),C&&(L.dirtyCompoundBoundsCache(),L.dirtyBoundingBoxCache(),L.updateCompoundBounds(!0));var H=dQ(this.boundingBox({useCache:!1}));return p.silentPositions(j),C&&(L.dirtyCompoundBoundsCache(),L.dirtyBoundingBoxCache(),L.updateCompoundBounds(!0)),x.endBatch(),H},c6.boundingbox=c6.bb=c6.boundingBox,c6.renderedBoundingbox=c6.renderedBoundingBox;var jtt=dy,U8,G8;U8=G8={};var VR=function(p){p.uppercaseName=tn(p.name),p.autoName="auto"+p.uppercaseName,p.labelName="label"+p.uppercaseName,p.outerName="outer"+p.uppercaseName,p.uppercaseOuterName=tn(p.outerName),U8[p.name]=function(){var C=this[0],L=C._private,O=L.cy,N=O._private.styleEnabled;if(C)if(N){if(C.isParent())return C.updateCompoundBounds(),L[p.autoName]||0;var j=C.pstyle(p.name);switch(j.strValue){case"label":return C.recalculateRenderedStyle(),L.rstyle[p.labelName]||0;default:return j.pfValue}}else return 1},U8["outer"+p.uppercaseName]=function(){var C=this[0],L=C._private,O=L.cy,N=O._private.styleEnabled;if(C)if(N){var j=C[p.name](),H=C.pstyle("border-width").pfValue,q=2*C.padding();return j+H+q}else return 1},U8["rendered"+p.uppercaseName]=function(){var C=this[0];if(C){var L=C[p.name]();return L*this.cy().zoom()}},U8["rendered"+p.uppercaseOuterName]=function(){var C=this[0];if(C){var L=C[p.outerName]();return L*this.cy().zoom()}}};VR({name:"width"}),VR({name:"height"}),G8.padding=function(){var y=this[0],p=y._private;return y.isParent()?(y.updateCompoundBounds(),p.autoPadding!==void 0?p.autoPadding:y.pstyle("padding").pfValue):y.pstyle("padding").pfValue},G8.paddedHeight=function(){var y=this[0];return y.height()+2*y.padding()},G8.paddedWidth=function(){var y=this[0];return y.width()+2*y.padding()};var $tt=G8,ztt=function(p,x){if(p.isEdge())return x(p)},qtt=function(p,x){if(p.isEdge()){var C=p.cy();return W9(x(p),C.zoom(),C.pan())}},Htt=function(p,x){if(p.isEdge()){var C=p.cy(),L=C.pan(),O=C.zoom();return x(p).map(function(N){return W9(N,O,L)})}},Vtt=function(p){return p.renderer().getControlPoints(p)},Utt=function(p){return p.renderer().getSegmentPoints(p)},iM=function(p){return p.renderer().getSourceEndpoint(p)},Gtt=function(p){return p.renderer().getTargetEndpoint(p)},Ktt=function(p){return p.renderer().getEdgeMidpoint(p)},UR={controlPoints:{get:Vtt,mult:!0},segmentPoints:{get:Utt,mult:!0},sourceEndpoint:{get:iM},targetEndpoint:{get:Gtt},midpoint:{get:Ktt}},fC=function(p){return"rendered"+p[0].toUpperCase()+p.substr(1)},Wtt=Object.keys(UR).reduce(function(y,p){var x=UR[p],C=fC(p);return y[p]=function(){return ztt(this,x.get)},x.mult?y[C]=function(){return Htt(this,x.get)}:y[C]=function(){return qtt(this,x.get)},y},{}),sM=we({},Ftt,jtt,$tt,Wtt);/*!
1544 */var K8=function(p,x){this.recycle(p,x)};function W8(){return!1}function Y8(){return!0}K8.prototype={instanceString:function(){return"event"},recycle:function(p,x){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=W8,p!=null&&p.preventDefault?(this.type=p.type,this.isDefaultPrevented=p.defaultPrevented?Y8:W8):p!=null&&p.type?x=p:this.type=p,x!=null&&(this.originalEvent=x.originalEvent,this.type=x.type!=null?x.type:this.type,this.cy=x.cy,this.target=x.target,this.position=x.position,this.renderedPosition=x.renderedPosition,this.namespace=x.namespace,this.layout=x.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var C=this.position,L=this.cy.zoom(),O=this.cy.pan();this.renderedPosition={x:C.x*L+O.x,y:C.y*L+O.y}}this.timeStamp=p&&p.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Y8;var p=this.originalEvent;p&&p.preventDefault&&p.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Y8;var p=this.originalEvent;p&&p.stopPropagation&&p.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Y8,this.stopPropagation()},isDefaultPrevented:W8,isPropagationStopped:W8,isImmediatePropagationStopped:W8};var GR=/^([^.]+)(\.(?:[^.]+))?$/,Ytt=".*",KR={qualifierCompare:function(p,x){return p===x},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(p){return p},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},WR=Object.keys(KR),Xtt={};function dC(){for(var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xtt,p=arguments.length>1?arguments[1]:void 0,x=0;x<WR.length;x++){var C=WR[x];this[C]=y[C]||KR[C]}this.context=p||this.context,this.listeners=[],this.emitting=0}var pb=dC.prototype,YR=function(p,x,C,L,O,N,j){ct(L)&&(O=L,L=null),j&&(N==null?N=j:N=we({},N,j));for(var H=rt(C)?C:C.split(/\s+/),q=0;q<H.length;q++){var W=H[q];if(!Ft(W)){var Z=W.match(GR);if(Z){var st=Z[1],bt=Z[2]?Z[2]:null,pt=x(p,W,st,bt,L,O,N);if(pt===!1)break}}}},XR=function(p,x){return p.addEventFields(p.context,x),new K8(x.type,x)},gC=function(p,x,C){if(xt(C)){x(p,C);return}else if(it(C)){x(p,XR(p,C));return}for(var L=rt(C)?C:C.split(/\s+/),O=0;O<L.length;O++){var N=L[O];if(!Ft(N)){var j=N.match(GR);if(j){var H=j[1],q=j[2]?j[2]:null,W=XR(p,{type:H,namespace:q,target:p.context});x(p,W)}}}};pb.on=pb.addListener=function(y,p,x,C,L){return YR(this,function(O,N,j,H,q,W,Z){ct(W)&&O.listeners.push({event:N,callback:W,type:j,namespace:H,qualifier:q,conf:Z})},y,p,x,C,L),this},pb.one=function(y,p,x,C){return this.on(y,p,x,C,{one:!0})},pb.removeListener=pb.off=function(y,p,x,C){var L=this;this.emitting!==0&&(this.listeners=zX(this.listeners));for(var O=this.listeners,N=function(q){var W=O[q];YR(L,function(Z,st,bt,pt,_t,St){if((W.type===bt||y==="*")&&(!pt&&W.namespace!==".*"||W.namespace===pt)&&(!_t||Z.qualifierCompare(W.qualifier,_t))&&(!St||W.callback===St))return O.splice(q,1),!1},y,p,x,C)},j=O.length-1;j>=0;j--)N(j);return this},pb.removeAllListeners=function(){return this.removeListener("*")},pb.emit=pb.trigger=function(y,p,x){var C=this.listeners,L=C.length;return this.emitting++,rt(p)||(p=[p]),gC(this,function(O,N){x!=null&&(C=[{event:N.event,type:N.type,namespace:N.namespace,callback:x}],L=C.length);for(var j=function(W){var Z=C[W];if(Z.type===N.type&&(!Z.namespace||Z.namespace===N.namespace||Z.namespace===Ytt)&&O.eventMatches(O.context,Z,N)){var st=[N];p!=null&&OB(st,p),O.beforeEmit(O.context,Z,N),Z.conf&&Z.conf.one&&(O.listeners=O.listeners.filter(function(_t){return _t!==Z}));var bt=O.callbackContext(O.context,Z,N),pt=Z.callback.apply(bt,st);O.afterEmit(O.context,Z,N),pt===!1&&(N.stopPropagation(),N.preventDefault())}},H=0;H<L;H++)j(H);O.bubble(O.context)&&!N.isPropagationStopped()&&O.parent(O.context).emit(N,p)},y),this.emitting--,this};var Qtt={qualifierCompare:function(p,x){return p==null||x==null?p==null&&x==null:p.sameText(x)},eventMatches:function(p,x,C){var L=x.qualifier;return L!=null?p!==C.target&&V(C.target)&&L.matches(C.target):!0},addEventFields:function(p,x){x.cy=p.cy(),x.target=p},callbackContext:function(p,x,C){return x.qualifier!=null?C.target:p},beforeEmit:function(p,x){x.conf&&x.conf.once&&x.conf.onceCollection.removeListener(x.event,x.qualifier,x.callback)},bubble:function(){return!0},parent:function(p){return p.isChild()?p.parent():p.cy()}},E4=function(p){return mt(p)?new ly(p):p},QR={createEmitter:function(){for(var p=0;p<this.length;p++){var x=this[p],C=x._private;C.emitter||(C.emitter=new dC(Qtt,x))}return this},emitter:function(){return this._private.emitter},on:function(p,x,C){for(var L=E4(x),O=0;O<this.length;O++){var N=this[O];N.emitter().on(p,L,C)}return this},removeListener:function(p,x,C){for(var L=E4(x),O=0;O<this.length;O++){var N=this[O];N.emitter().removeListener(p,L,C)}return this},removeAllListeners:function(){for(var p=0;p<this.length;p++){var x=this[p];x.emitter().removeAllListeners()}return this},one:function(p,x,C){for(var L=E4(x),O=0;O<this.length;O++){var N=this[O];N.emitter().one(p,L,C)}return this},once:function(p,x,C){for(var L=E4(x),O=0;O<this.length;O++){var N=this[O];N.emitter().on(p,L,C,{once:!0,onceCollection:this})}},emit:function(p,x){for(var C=0;C<this.length;C++){var L=this[C];L.emitter().emit(p,x)}return this},emitAndNotify:function(p,x){if(this.length!==0)return this.cy().notify(p,this),this.emit(p,x),this}};Kc.eventAliasesOn(QR);var aM={nodes:function(p){return this.filter(function(x){return x.isNode()}).filter(p)},edges:function(p){return this.filter(function(x){return x.isEdge()}).filter(p)},byGroup:function(){for(var p=this.spawn(),x=this.spawn(),C=0;C<this.length;C++){var L=this[C];L.isNode()?p.push(L):x.push(L)}return{nodes:p,edges:x}},filter:function(p,x){if(p===void 0)return this;if(mt(p)||yt(p))return new ly(p).filter(this);if(ct(p)){for(var C=this.spawn(),L=this,O=0;O<L.length;O++){var N=L[O],j=x?p.apply(x,[N,O,L]):p(N,O,L);j&&C.push(N)}return C}return this.spawn()},not:function(p){if(p){mt(p)&&(p=this.filter(p));for(var x=this.spawn(),C=0;C<this.length;C++){var L=this[C],O=p.has(L);O||x.push(L)}return x}else return this},absoluteComplement:function(){var p=this.cy();return p.mutableElements().not(this)},intersect:function(p){if(mt(p)){var x=p;return this.filter(x)}for(var C=this.spawn(),L=this,O=p,N=this.length<p.length,j=N?L:O,H=N?O:L,q=0;q<j.length;q++){var W=j[q];H.has(W)&&C.push(W)}return C},xor:function(p){var x=this._private.cy;mt(p)&&(p=x.$(p));var C=this.spawn(),L=this,O=p,N=function(H,q){for(var W=0;W<H.length;W++){var Z=H[W],st=Z._private.data.id,bt=q.hasElementWithId(st);bt||C.push(Z)}};return N(L,O),N(O,L),C},diff:function(p){var x=this._private.cy;mt(p)&&(p=x.$(p));var C=this.spawn(),L=this.spawn(),O=this.spawn(),N=this,j=p,H=function(W,Z,st){for(var bt=0;bt<W.length;bt++){var pt=W[bt],_t=pt._private.data.id,St=Z.hasElementWithId(_t);St?O.merge(pt):st.push(pt)}};return H(N,j,C),H(j,N,L),{left:C,right:L,both:O}},add:function(p){var x=this._private.cy;if(!p)return this;if(mt(p)){var C=p;p=x.mutableElements().filter(C)}for(var L=this.spawnSelf(),O=0;O<p.length;O++){var N=p[O],j=!this.has(N);j&&L.push(N)}return L},merge:function(p){var x=this._private,C=x.cy;if(!p)return this;if(p&&mt(p)){var L=p;p=C.mutableElements().filter(L)}for(var O=x.map,N=0;N<p.length;N++){var j=p[N],H=j._private.data.id,q=!O.has(H);if(q){var W=this.length++;this[W]=j,O.set(H,{ele:j,index:W})}}return this},unmergeAt:function(p){var x=this[p],C=x.id(),L=this._private,O=L.map;this[p]=void 0,O.delete(C);var N=p===this.length-1;if(this.length>1&&!N){var j=this.length-1,H=this[j],q=H._private.data.id;this[j]=void 0,this[p]=H,O.set(q,{ele:H,index:p})}return this.length--,this},unmergeOne:function(p){p=p[0];var x=this._private,C=p._private.data.id,L=x.map,O=L.get(C);if(!O)return this;var N=O.index;return this.unmergeAt(N),this},unmerge:function(p){var x=this._private.cy;if(!p)return this;if(p&&mt(p)){var C=p;p=x.mutableElements().filter(C)}for(var L=0;L<p.length;L++)this.unmergeOne(p[L]);return this},unmergeBy:function(p){for(var x=this.length-1;x>=0;x--){var C=this[x];p(C)&&this.unmergeAt(x)}return this},map:function(p,x){for(var C=[],L=this,O=0;O<L.length;O++){var N=L[O],j=x?p.apply(x,[N,O,L]):p(N,O,L);C.push(j)}return C},reduce:function(p,x){for(var C=x,L=this,O=0;O<L.length;O++)C=p(C,L[O],O,L);return C},max:function(p,x){for(var C=-1/0,L,O=this,N=0;N<O.length;N++){var j=O[N],H=x?p.apply(x,[j,N,O]):p(j,N,O);H>C&&(C=H,L=j)}return{value:C,ele:L}},min:function(p,x){for(var C=1/0,L,O=this,N=0;N<O.length;N++){var j=O[N],H=x?p.apply(x,[j,N,O]):p(j,N,O);H<C&&(C=H,L=j)}return{value:C,ele:L}}},Oc=aM;Oc.u=Oc["|"]=Oc["+"]=Oc.union=Oc.or=Oc.add,Oc["\\"]=Oc["!"]=Oc["-"]=Oc.difference=Oc.relativeComplement=Oc.subtract=Oc.not,Oc.n=Oc["&"]=Oc["."]=Oc.and=Oc.intersection=Oc.intersect,Oc["^"]=Oc["(+)"]=Oc["(-)"]=Oc.symmetricDifference=Oc.symdiff=Oc.xor,Oc.fnFilter=Oc.filterFn=Oc.stdFilter=Oc.filter,Oc.complement=Oc.abscomp=Oc.absoluteComplement;var oM={isNode:function(){return this.group()==="nodes"},isEdge:function(){return this.group()==="edges"},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var p=this[0];if(p)return p._private.group}},cM=function(p,x){var C=p.cy(),L=C.hasCompoundNodes();function O(W){var Z=W.pstyle("z-compound-depth");return Z.value==="auto"?L?W.zDepth():0:Z.value==="bottom"?-1:Z.value==="top"?Kx:0}var N=O(p)-O(x);if(N!==0)return N;function j(W){var Z=W.pstyle("z-index-compare");return Z.value==="auto"&&W.isNode()?1:0}var H=j(p)-j(x);if(H!==0)return H;var q=p.pstyle("z-index").value-x.pstyle("z-index").value;return q!==0?q:p.poolIndex()-x.poolIndex()},pC={forEach:function(p,x){if(ct(p))for(var C=this.length,L=0;L<C;L++){var O=this[L],N=x?p.apply(x,[O,L,this]):p(O,L,this);if(N===!1)break}return this},toArray:function(){for(var p=[],x=0;x<this.length;x++)p.push(this[x]);return p},slice:function(p,x){var C=[],L=this.length;x==null&&(x=L),p==null&&(p=0),p<0&&(p=L+p),x<0&&(x=L+x);for(var O=p;O>=0&&O<x&&O<L;O++)C.push(this[O]);return this.spawn(C)},size:function(){return this.length},eq:function(p){return this[p]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return this.length===0},nonempty:function(){return!this.empty()},sort:function(p){if(!ct(p))return this;var x=this.toArray().sort(p);return this.spawn(x)},sortByZIndex:function(){return this.sort(cM)},zDepth:function(){var p=this[0];if(p){var x=p._private,C=x.group;if(C==="nodes"){var L=x.data.parent?p.parents().size():0;return p.isParent()?L:Kx-1}else{var O=x.source,N=x.target,j=O.zDepth(),H=N.zDepth();return Math.max(j,H,0)}}}};pC.each=pC.forEach;var Jtt=function(){var p="undefined",x=(typeof Symbol>"u"?"undefined":f(Symbol))!=p&&f(Symbol.iterator)!=p;x&&(pC[Symbol.iterator]=function(){var C=this,L={value:void 0,done:!1},O=0,N=this.length;return b({next:function(){return O<N?L.value=C[O++]:(L.value=void 0,L.done=!0),L}},Symbol.iterator,function(){return this})})};Jtt();var Ztt=p1({nodeDimensionsIncludeLabels:!1}),bC={layoutDimensions:function(p){p=Ztt(p);var x;if(!this.takesUpSpace())x={w:0,h:0};else if(p.nodeDimensionsIncludeLabels){var C=this.boundingBox();x={w:C.w,h:C.h}}else x={w:this.outerWidth(),h:this.outerHeight()};return(x.w===0||x.h===0)&&(x.w=x.h=1),x},layoutPositions:function(p,x,C){var L=this.nodes().filter(function(re){return!re.isParent()}),O=this.cy(),N=x.eles,j=function(ee){return ee.id()},H=Mt(C,j);p.emit({type:"layoutstart",layout:p}),p.animations=[];var q=function(ee,Ut,de){var Yt={x:Ut.x1+Ut.w/2,y:Ut.y1+Ut.h/2},Ee={x:(de.x-Yt.x)*ee,y:(de.y-Yt.y)*ee};return{x:Yt.x+Ee.x,y:Yt.y+Ee.y}},W=x.spacingFactor&&x.spacingFactor!==1,Z=function(){if(!W)return null;for(var ee=v0(),Ut=0;Ut<L.length;Ut++){var de=L[Ut],Yt=H(de,Ut);bQ(ee,Yt.x,Yt.y)}return ee},st=Z(),bt=Mt(function(re,ee){var Ut=H(re,ee);if(W){var de=Math.abs(x.spacingFactor);Ut=q(de,st,Ut)}return x.transform!=null&&(Ut=x.transform(re,Ut)),Ut},j);if(x.animate){for(var pt=0;pt<L.length;pt++){var _t=L[pt],St=bt(_t,pt),Et=x.animateFilter==null||x.animateFilter(_t,pt);if(Et){var Nt=_t.animation({position:St,duration:x.animationDuration,easing:x.animationEasing});p.animations.push(Nt)}else _t.position(St)}if(x.fit){var Pt=O.animation({fit:{boundingBox:N.boundingBoxAt(bt),padding:x.padding},duration:x.animationDuration,easing:x.animationEasing});p.animations.push(Pt)}else if(x.zoom!==void 0&&x.pan!==void 0){var qt=O.animation({zoom:x.zoom,pan:x.pan,duration:x.animationDuration,easing:x.animationEasing});p.animations.push(qt)}p.animations.forEach(function(re){return re.play()}),p.one("layoutready",x.ready),p.emit({type:"layoutready",layout:p}),e6.all(p.animations.map(function(re){return re.promise()})).then(function(){p.one("layoutstop",x.stop),p.emit({type:"layoutstop",layout:p})})}else L.positions(bt),x.fit&&O.fit(x.eles,x.padding),x.zoom!=null&&O.zoom(x.zoom),x.pan&&O.pan(x.pan),p.one("layoutready",x.ready),p.emit({type:"layoutready",layout:p}),p.one("layoutstop",x.stop),p.emit({type:"layoutstop",layout:p});return this},layout:function(p){var x=this.cy();return x.makeLayout(we({},p,{eles:this}))}};bC.createLayout=bC.makeLayout=bC.layout;function tet(y,p,x){var C=x._private,L=C.styleCache=C.styleCache||[],O;return(O=L[y])!=null||(O=L[y]=p(x)),O}function wC(y,p){return y=Nd(y),function(C){return tet(y,p,C)}}function mC(y,p){y=Nd(y);var x=function(L){return p.call(L)};return function(){var L=this[0];if(L)return tet(y,x,L)}}var b1={recalculateRenderedStyle:function(p){var x=this.cy(),C=x.renderer(),L=x.styleEnabled();return C&&L&&C.recalculateRenderedStyle(this,p),this},dirtyStyleCache:function(){var p=this.cy(),x=function(O){return O._private.styleCache=null};if(p.hasCompoundNodes()){var C;C=this.spawnSelf().merge(this.descendants()).merge(this.parents()),C.merge(C.connectedEdges()),C.forEach(x)}else this.forEach(function(L){x(L),L.connectedEdges().forEach(x)});return this},updateStyle:function(p){var x=this._private.cy;if(!x.styleEnabled())return this;if(x.batching()){var C=x._private.batchStyleEles;return C.merge(this),this}var L=x.hasCompoundNodes(),O=this;p=!!(p||p===void 0),L&&(O=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var N=O;return p?N.emitAndNotify("style"):N.emit("style"),O.forEach(function(j){return j._private.styleDirty=!0}),this},cleanStyle:function(){var p=this.cy();if(p.styleEnabled())for(var x=0;x<this.length;x++){var C=this[x];C._private.styleDirty&&(C._private.styleDirty=!1,p.style().apply(C))}},parsedStyle:function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,C=this[0],L=C.cy();if(L.styleEnabled()&&C){this.cleanStyle();var O=C._private.style[p];return O??(x?L.style().getDefaultProperty(p):null)}},numericStyle:function(p){var x=this[0];if(x.cy().styleEnabled()&&x){var C=x.pstyle(p);return C.pfValue!==void 0?C.pfValue:C.value}},numericStyleUnits:function(p){var x=this[0];if(x.cy().styleEnabled()&&x)return x.pstyle(p).units},renderedStyle:function(p){var x=this.cy();if(!x.styleEnabled())return this;var C=this[0];if(C)return x.style().getRenderedStyle(C,p)},style:function(p,x){var C=this.cy();if(!C.styleEnabled())return this;var L=!1,O=C.style();if(it(p)){var N=p;O.applyBypass(this,N,L),this.emitAndNotify("style")}else if(mt(p))if(x===void 0){var j=this[0];return j?O.getStylePropertyValue(j,p):void 0}else O.applyBypass(this,p,x,L),this.emitAndNotify("style");else if(p===void 0){var H=this[0];return H?O.getRawStyle(H):void 0}return this},removeStyle:function(p){var x=this.cy();if(!x.styleEnabled())return this;var C=!1,L=x.style(),O=this;if(p===void 0)for(var N=0;N<O.length;N++){var j=O[N];L.removeAllBypasses(j,C)}else{p=p.split(/\s+/);for(var H=0;H<O.length;H++){var q=O[H];L.removeBypasses(q,p,C)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var p=this.cy();if(!p.styleEnabled())return 1;var x=p.hasCompoundNodes(),C=this[0];if(C){var L=C._private,O=C.pstyle("opacity").value;if(!x)return O;var N=L.data.parent?C.parents():null;if(N)for(var j=0;j<N.length;j++){var H=N[j],q=H.pstyle("opacity").value;O=q*O}return O}},transparent:function(){var p=this.cy();if(!p.styleEnabled())return!1;var x=this[0],C=x.cy().hasCompoundNodes();if(x)return C?x.effectiveOpacity()===0:x.pstyle("opacity").value===0},backgrounding:function(){var p=this.cy();if(!p.styleEnabled())return!1;var x=this[0];return!!x._private.backgrounding}};function uM(y,p){var x=y._private,C=x.data.parent?y.parents():null;if(C)for(var L=0;L<C.length;L++){var O=C[L];if(!p(O))return!1}return!0}function lM(y){var p=y.ok,x=y.edgeOkViaNode||y.ok,C=y.parentOk||y.ok;return function(){var L=this.cy();if(!L.styleEnabled())return!0;var O=this[0],N=L.hasCompoundNodes();if(O){var j=O._private;if(!p(O))return!1;if(O.isNode())return!N||uM(O,C);var H=j.source,q=j.target;return x(H)&&(!N||uM(H,x))&&(H===q||x(q)&&(!N||uM(q,x)))}}}var u6=wC("eleTakesUpSpace",function(y){return y.pstyle("display").value==="element"&&y.width()!==0&&(y.isNode()?y.height()!==0:!0)});b1.takesUpSpace=mC("takesUpSpace",lM({ok:u6}));var eet=wC("eleInteractive",function(y){return y.pstyle("events").value==="yes"&&y.pstyle("visibility").value==="visible"&&u6(y)}),net=wC("parentInteractive",function(y){return y.pstyle("visibility").value==="visible"&&u6(y)});b1.interactive=mC("interactive",lM({ok:eet,parentOk:net,edgeOkViaNode:u6})),b1.noninteractive=function(){var y=this[0];if(y)return!y.interactive()};var ret=wC("eleVisible",function(y){return y.pstyle("visibility").value==="visible"&&y.pstyle("opacity").pfValue!==0&&u6(y)}),iet=u6;b1.visible=mC("visible",lM({ok:ret,edgeOkViaNode:iet})),b1.hidden=function(){var y=this[0];if(y)return!y.visible()},b1.isBundledBezier=mC("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1}),b1.bypass=b1.css=b1.style,b1.renderedCss=b1.renderedStyle,b1.removeBypass=b1.removeCss=b1.removeStyle,b1.pstyle=b1.parsedStyle;var x0={};function vC(y){return function(){var p=arguments,x=[];if(p.length===2){var C=p[0],L=p[1];this.on(y.event,C,L)}else if(p.length===1&&ct(p[0])){var O=p[0];this.on(y.event,O)}else if(p.length===0||p.length===1&&rt(p[0])){for(var N=p.length===1?p[0]:null,j=0;j<this.length;j++){var H=this[j],q=!y.ableField||H._private[y.ableField],W=H._private[y.field]!=y.value;if(y.overrideAble){var Z=y.overrideAble(H);if(Z!==void 0&&(q=Z,!Z))return this}q&&(H._private[y.field]=y.value,W&&x.push(H))}var st=this.spawn(x);st.updateStyle(),st.emit(y.event),N&&st.emit(N)}return this}}function l6(y){x0[y.field]=function(){var p=this[0];if(p){if(y.overrideField){var x=y.overrideField(p);if(x!==void 0)return x}return p._private[y.field]}},x0[y.on]=vC({event:y.on,field:y.field,ableField:y.ableField,overrideAble:y.overrideAble,value:!0}),x0[y.off]=vC({event:y.off,field:y.field,ableField:y.ableField,overrideAble:y.overrideAble,value:!1})}l6({field:"locked",overrideField:function(p){return p.cy().autolock()?!0:void 0},on:"lock",off:"unlock"}),l6({field:"grabbable",overrideField:function(p){return p.cy().autoungrabify()||p.pannable()?!1:void 0},on:"grabify",off:"ungrabify"}),l6({field:"selected",ableField:"selectable",overrideAble:function(p){return p.cy().autounselectify()?!1:void 0},on:"select",off:"unselect"}),l6({field:"selectable",overrideField:function(p){return p.cy().autounselectify()?!1:void 0},on:"selectify",off:"unselectify"}),x0.deselect=x0.unselect,x0.grabbed=function(){var y=this[0];if(y)return y._private.grabbed},l6({field:"active",on:"activate",off:"unactivate"}),l6({field:"pannable",on:"panify",off:"unpanify"}),x0.inactive=function(){var y=this[0];if(y)return!y._private.active};var K1={},JR=function(p){return function(C){for(var L=this,O=[],N=0;N<L.length;N++){var j=L[N];if(j.isNode()){for(var H=!1,q=j.connectedEdges(),W=0;W<q.length;W++){var Z=q[W],st=Z.source(),bt=Z.target();if(p.noIncomingEdges&&bt===j&&st!==j||p.noOutgoingEdges&&st===j&&bt!==j){H=!0;break}}H||O.push(j)}}return this.spawn(O,!0).filter(C)}},ZR=function(p){return function(x){for(var C=this,L=[],O=0;O<C.length;O++){var N=C[O];if(N.isNode())for(var j=N.connectedEdges(),H=0;H<j.length;H++){var q=j[H],W=q.source(),Z=q.target();p.outgoing&&W===N?(L.push(q),L.push(Z)):p.incoming&&Z===N&&(L.push(q),L.push(W))}}return this.spawn(L,!0).filter(x)}},tj=function(p){return function(x){for(var C=this,L=[],O={};;){var N=p.outgoing?C.outgoers():C.incomers();if(N.length===0)break;for(var j=!1,H=0;H<N.length;H++){var q=N[H],W=q.id();O[W]||(O[W]=!0,L.push(q),j=!0)}if(!j)break;C=N}return this.spawn(L,!0).filter(x)}};K1.clearTraversalCache=function(){for(var y=0;y<this.length;y++)this[y]._private.traversalCache=null},we(K1,{roots:JR({noIncomingEdges:!0}),leaves:JR({noOutgoingEdges:!0}),outgoers:ap(ZR({outgoing:!0}),"outgoers"),successors:tj({outgoing:!0}),incomers:ap(ZR({incoming:!0}),"incomers"),predecessors:tj({incoming:!0})}),we(K1,{neighborhood:ap(function(y){for(var p=[],x=this.nodes(),C=0;C<x.length;C++)for(var L=x[C],O=L.connectedEdges(),N=0;N<O.length;N++){var j=O[N],H=j.source(),q=j.target(),W=L===H?q:H;W.length>0&&p.push(W[0]),p.push(j[0])}return this.spawn(p,!0).filter(y)},"neighborhood"),closedNeighborhood:function(p){return this.neighborhood().add(this).filter(p)},openNeighborhood:function(p){return this.neighborhood(p)}}),K1.neighbourhood=K1.neighborhood,K1.closedNeighbourhood=K1.closedNeighborhood,K1.openNeighbourhood=K1.openNeighborhood,we(K1,{source:ap(function(p){var x=this[0],C;return x&&(C=x._private.source||x.cy().collection()),C&&p?C.filter(p):C},"source"),target:ap(function(p){var x=this[0],C;return x&&(C=x._private.target||x.cy().collection()),C&&p?C.filter(p):C},"target"),sources:ej({attr:"source"}),targets:ej({attr:"target"})});function ej(y){return function(x){for(var C=[],L=0;L<this.length;L++){var O=this[L],N=O._private[y.attr];N&&C.push(N)}return this.spawn(C,!0).filter(x)}}we(K1,{edgesWith:ap(nj(),"edgesWith"),edgesTo:ap(nj({thisIsSrc:!0}),"edgesTo")});function nj(y){return function(x){var C=[],L=this._private.cy,O=y||{};mt(x)&&(x=L.$(x));for(var N=0;N<x.length;N++)for(var j=x[N]._private.edges,H=0;H<j.length;H++){var q=j[H],W=q._private.data,Z=this.hasElementWithId(W.source)&&x.hasElementWithId(W.target),st=x.hasElementWithId(W.source)&&this.hasElementWithId(W.target),bt=Z||st;bt&&((O.thisIsSrc||O.thisIsTgt)&&(O.thisIsSrc&&!Z||O.thisIsTgt&&!st)||C.push(q))}return this.spawn(C,!0)}}we(K1,{connectedEdges:ap(function(y){for(var p=[],x=this,C=0;C<x.length;C++){var L=x[C];if(L.isNode())for(var O=L._private.edges,N=0;N<O.length;N++){var j=O[N];p.push(j)}}return this.spawn(p,!0).filter(y)},"connectedEdges"),connectedNodes:ap(function(y){for(var p=[],x=this,C=0;C<x.length;C++){var L=x[C];L.isEdge()&&(p.push(L.source()[0]),p.push(L.target()[0]))}return this.spawn(p,!0).filter(y)},"connectedNodes"),parallelEdges:ap(rj(),"parallelEdges"),codirectedEdges:ap(rj({codirected:!0}),"codirectedEdges")});function rj(y){var p={codirected:!1};return y=we({},p,y),function(C){for(var L=[],O=this.edges(),N=y,j=0;j<O.length;j++)for(var H=O[j],q=H._private,W=q.source,Z=W._private.data.id,st=q.data.target,bt=W._private.edges,pt=0;pt<bt.length;pt++){var _t=bt[pt],St=_t._private.data,Et=St.target,Nt=St.source,Pt=Et===st&&Nt===Z,qt=Z===Et&&st===Nt;(N.codirected&&Pt||!N.codirected&&(Pt||qt))&&L.push(_t)}return this.spawn(L,!0).filter(C)}}we(K1,{components:function(p){var x=this,C=x.cy(),L=C.collection(),O=p==null?x.nodes():p.nodes(),N=[];p!=null&&O.empty()&&(O=p.sources());var j=function(W,Z){L.merge(W),O.unmerge(W),Z.merge(W)};if(O.empty())return x.spawn();var H=function(){var W=C.collection();N.push(W);var Z=O[0];j(Z,W),x.bfs({directed:!1,roots:Z,visit:function(bt){return j(bt,W)}}),W.forEach(function(st){st.connectedEdges().forEach(function(bt){x.has(bt)&&W.has(bt.source())&&W.has(bt.target())&&W.merge(bt)})})};do H();while(O.length>0);return N},component:function(){var p=this[0];return p.cy().mutableElements().components(p)[0]}}),K1.componentsOf=K1.components;var w1=function(p,x){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(p===void 0){$l("A collection must have a reference to the core");return}var O=new F2,N=!1;if(!x)x=[];else if(x.length>0&&it(x[0])&&!V(x[0])){N=!0;for(var j=[],H=new Wx,q=0,W=x.length;q<W;q++){var Z=x[q];Z.data==null&&(Z.data={});var st=Z.data;if(st.id==null)st.id=MB();else if(p.hasElementWithId(st.id)||H.has(st.id))continue;var bt=new K9(p,Z,!1);j.push(bt),H.add(st.id)}x=j}this.length=0;for(var pt=0,_t=x.length;pt<_t;pt++){var St=x[pt][0];if(St!=null){var Et=St._private.data.id;(!C||!O.has(Et))&&(C&&O.set(Et,{index:this.length,ele:St}),this[this.length]=St,this.length++)}}this._private={eles:this,cy:p,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(Nt){this.lazyMap=Nt},rebuildMap:function(){for(var Pt=this.lazyMap=new F2,qt=this.eles,re=0;re<qt.length;re++){var ee=qt[re];Pt.set(ee.id(),{index:re,ele:ee})}}},C&&(this._private.map=O),N&&!L&&this.restore()},Bu=K9.prototype=w1.prototype=Object.create(Array.prototype);Bu.instanceString=function(){return"collection"},Bu.spawn=function(y,p){return new w1(this.cy(),y,p)},Bu.spawnSelf=function(){return this.spawn(this)},Bu.cy=function(){return this._private.cy},Bu.renderer=function(){return this._private.cy.renderer()},Bu.element=function(){return this[0]},Bu.collection=function(){return Ot(this)?this:new w1(this._private.cy,[this])},Bu.unique=function(){return new w1(this._private.cy,this,!0)},Bu.hasElementWithId=function(y){return y=""+y,this._private.map.has(y)},Bu.getElementById=function(y){y=""+y;var p=this._private.cy,x=this._private.map.get(y);return x?x.ele:new w1(p)},Bu.$id=Bu.getElementById,Bu.poolIndex=function(){var y=this._private.cy,p=y._private.elements,x=this[0]._private.data.id;return p._private.map.get(x).index},Bu.indexOf=function(y){var p=y[0]._private.data.id;return this._private.map.get(p).index},Bu.indexOfId=function(y){return y=""+y,this._private.map.get(y).index},Bu.json=function(y){var p=this.element(),x=this.cy();if(p==null&&y)return this;if(p!=null){var C=p._private;if(it(y)){if(x.startBatch(),y.data){p.data(y.data);var L=C.data;if(p.isEdge()){var O=!1,N={},j=y.data.source,H=y.data.target;j!=null&&j!=L.source&&(N.source=""+j,O=!0),H!=null&&H!=L.target&&(N.target=""+H,O=!0),O&&(p=p.move(N))}else{var q="parent"in y.data,W=y.data.parent;q&&(W!=null||L.parent!=null)&&W!=L.parent&&(W===void 0&&(W=null),W!=null&&(W=""+W),p=p.move({parent:W}))}}y.position&&p.position(y.position);var Z=function(_t,St,Et){var Nt=y[_t];Nt!=null&&Nt!==C[_t]&&(Nt?p[St]():p[Et]())};return Z("removed","remove","restore"),Z("selected","select","unselect"),Z("selectable","selectify","unselectify"),Z("locked","lock","unlock"),Z("grabbable","grabify","ungrabify"),Z("pannable","panify","unpanify"),y.classes!=null&&p.classes(y.classes),x.endBatch(),this}else if(y===void 0){var st={data:P2(C.data),position:P2(C.position),group:C.group,removed:C.removed,selected:C.selected,selectable:C.selectable,locked:C.locked,grabbable:C.grabbable,pannable:C.pannable,classes:null};st.classes="";var bt=0;return C.classes.forEach(function(pt){return st.classes+=bt++===0?pt:" "+pt}),st}}},Bu.jsons=function(){for(var y=[],p=0;p<this.length;p++){var x=this[p],C=x.json();y.push(C)}return y},Bu.clone=function(){for(var y=this.cy(),p=[],x=0;x<this.length;x++){var C=this[x],L=C.json(),O=new K9(y,L,!1);p.push(O)}return new w1(y,p)},Bu.copy=Bu.clone,Bu.restore=function(){for(var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,x=this,C=x.cy(),L=C._private,O=[],N=[],j,H=0,q=x.length;H<q;H++){var W=x[H];p&&!W.removed()||(W.isNode()?O.push(W):N.push(W))}j=O.concat(N);var Z,st=function(){j.splice(Z,1),Z--};for(Z=0;Z<j.length;Z++){var bt=j[Z],pt=bt._private,_t=pt.data;if(bt.clearTraversalCache(),!(!p&&!pt.removed)){if(_t.id===void 0)_t.id=MB();else if(Q(_t.id))_t.id=""+_t.id;else if(Ft(_t.id)||!mt(_t.id)){$l("Can not create element with invalid string ID `"+_t.id+"`"),st();continue}else if(C.hasElementWithId(_t.id)){$l("Can not create second element with ID `"+_t.id+"`"),st();continue}}var St=_t.id;if(bt.isNode()){var Et=pt.position;Et.x==null&&(Et.x=0),Et.y==null&&(Et.y=0)}if(bt.isEdge()){for(var Nt=bt,Pt=["source","target"],qt=Pt.length,re=!1,ee=0;ee<qt;ee++){var Ut=Pt[ee],de=_t[Ut];Q(de)&&(de=_t[Ut]=""+_t[Ut]),de==null||de===""?($l("Can not create edge `"+St+"` with unspecified "+Ut),re=!0):C.hasElementWithId(de)||($l("Can not create edge `"+St+"` with nonexistant "+Ut+" `"+de+"`"),re=!0)}if(re){st();continue}var Yt=C.getElementById(_t.source),Ee=C.getElementById(_t.target);Yt.same(Ee)?Yt._private.edges.push(Nt):(Yt._private.edges.push(Nt),Ee._private.edges.push(Nt)),Nt._private.source=Yt,Nt._private.target=Ee}pt.map=new F2,pt.map.set(St,{ele:bt,index:0}),pt.removed=!1,p&&C.addToPool(bt)}for(var Te=0;Te<O.length;Te++){var ie=O[Te],ze=ie._private.data;Q(ze.parent)&&(ze.parent=""+ze.parent);var me=ze.parent,yn=me!=null;if(yn||ie._private.parent){var nn=ie._private.parent?C.collection().merge(ie._private.parent):C.getElementById(me);if(nn.empty())ze.parent=void 0;else if(nn[0].removed())Gc("Node added with missing parent, reference to parent removed"),ze.parent=void 0,ie._private.parent=null;else{for(var qe=!1,Tn=nn;!Tn.empty();){if(ie.same(Tn)){qe=!0,ze.parent=void 0;break}Tn=Tn.parent()}qe||(nn[0]._private.children.push(ie),ie._private.parent=nn[0],L.hasCompoundNodes=!0)}}}if(j.length>0){for(var Xn=j.length===x.length?x:new w1(C,j),lr=0;lr<Xn.length;lr++){var Sn=Xn[lr];Sn.isNode()||(Sn.parallelEdges().clearTraversalCache(),Sn.source().clearTraversalCache(),Sn.target().clearTraversalCache())}var or;L.hasCompoundNodes?or=C.collection().merge(Xn).merge(Xn.connectedNodes()).merge(Xn.parent()):or=Xn,or.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(y),y?Xn.emitAndNotify("add"):p&&Xn.emit("add")}return x},Bu.removed=function(){var y=this[0];return y&&y._private.removed},Bu.inside=function(){var y=this[0];return y&&!y._private.removed},Bu.remove=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,x=this,C=[],L={},O=x._private.cy;function N(me){for(var yn=me._private.edges,nn=0;nn<yn.length;nn++)H(yn[nn])}function j(me){for(var yn=me._private.children,nn=0;nn<yn.length;nn++)H(yn[nn])}function H(me){var yn=L[me.id()];p&&me.removed()||yn||(L[me.id()]=!0,me.isNode()?(C.push(me),N(me),j(me)):C.unshift(me))}for(var q=0,W=x.length;q<W;q++){var Z=x[q];H(Z)}function st(me,yn){var nn=me._private.edges;oy(nn,yn),me.clearTraversalCache()}function bt(me){me.clearTraversalCache()}var pt=[];pt.ids={};function _t(me,yn){yn=yn[0],me=me[0];var nn=me._private.children,qe=me.id();oy(nn,yn),yn._private.parent=null,pt.ids[qe]||(pt.ids[qe]=!0,pt.push(me))}x.dirtyCompoundBoundsCache(),p&&O.removeFromPool(C);for(var St=0;St<C.length;St++){var Et=C[St];if(Et.isEdge()){var Nt=Et.source()[0],Pt=Et.target()[0];st(Nt,Et),st(Pt,Et);for(var qt=Et.parallelEdges(),re=0;re<qt.length;re++){var ee=qt[re];bt(ee),ee.isBundledBezier()&&ee.dirtyBoundingBoxCache()}}else{var Ut=Et.parent();Ut.length!==0&&_t(Ut,Et)}p&&(Et._private.removed=!0)}var de=O._private.elements;O._private.hasCompoundNodes=!1;for(var Yt=0;Yt<de.length;Yt++){var Ee=de[Yt];if(Ee.isParent()){O._private.hasCompoundNodes=!0;break}}var Te=new w1(this.cy(),C);Te.size()>0&&(y?Te.emitAndNotify("remove"):p&&Te.emit("remove"));for(var ie=0;ie<pt.length;ie++){var ze=pt[ie];(!p||!ze.removed())&&ze.updateStyle()}return Te},Bu.move=function(y){var p=this._private.cy,x=this,C=!1,L=!1,O=function(pt){return pt==null?pt:""+pt};if(y.source!==void 0||y.target!==void 0){var N=O(y.source),j=O(y.target),H=N!=null&&p.hasElementWithId(N),q=j!=null&&p.hasElementWithId(j);(H||q)&&(p.batch(function(){x.remove(C,L),x.emitAndNotify("moveout");for(var bt=0;bt<x.length;bt++){var pt=x[bt],_t=pt._private.data;pt.isEdge()&&(H&&(_t.source=N),q&&(_t.target=j))}x.restore(C,L)}),x.emitAndNotify("move"))}else if(y.parent!==void 0){var W=O(y.parent),Z=W===null||p.hasElementWithId(W);if(Z){var st=W===null?void 0:W;p.batch(function(){var bt=x.remove(C,L);bt.emitAndNotify("moveout");for(var pt=0;pt<x.length;pt++){var _t=x[pt],St=_t._private.data;_t.isNode()&&(St.parent=st)}bt.restore(C,L)}),x.emitAndNotify("move")}}return this},[aR,ktt,lC,hy,a6,fy,q8,sM,QR,aM,oM,pC,bC,b1,x0,K1].forEach(function(y){we(Bu,y)});var set={add:function(p){var x,C=this;if(yt(p)){var L=p;if(L._private.cy===C)x=L.restore();else{for(var O=[],N=0;N<L.length;N++){var j=L[N];O.push(j.json())}x=new w1(C,O)}}else if(rt(p)){var H=p;x=new w1(C,H)}else if(it(p)&&(rt(p.nodes)||rt(p.edges))){for(var q=p,W=[],Z=["nodes","edges"],st=0,bt=Z.length;st<bt;st++){var pt=Z[st],_t=q[pt];if(rt(_t))for(var St=0,Et=_t.length;St<Et;St++){var Nt=we({group:pt},_t[St]);W.push(Nt)}}x=new w1(C,W)}else{var Pt=p;x=new K9(C,Pt).collection()}return x},remove:function(p){if(!yt(p)){if(mt(p)){var x=p;p=this.$(x)}}return p.remove()}};/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */function aet(y,p,x,C){var L=4,O=.001,N=1e-7,j=10,H=11,q=1/(H-1),W=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var Z=0;Z<4;++Z)if(typeof arguments[Z]!="number"||isNaN(arguments[Z])||!isFinite(arguments[Z]))return!1;y=Math.min(y,1),x=Math.min(x,1),y=Math.max(y,0),x=Math.max(x,0);var st=W?new Float32Array(H):new Array(H);function bt(Ee,Te){return 1-3*Te+3*Ee}function pt(Ee,Te){return 3*Te-6*Ee}function _t(Ee){return 3*Ee}function St(Ee,Te,ie){return((bt(Te,ie)*Ee+pt(Te,ie))*Ee+_t(Te))*Ee}function Et(Ee,Te,ie){return 3*bt(Te,ie)*Ee*Ee+2*pt(Te,ie)*Ee+_t(Te)}function Nt(Ee,Te){for(var ie=0;ie<L;++ie){var ze=Et(Te,y,x);if(ze===0)return Te;var me=St(Te,y,x)-Ee;Te-=me/ze}return Te}function Pt(){for(var Ee=0;Ee<H;++Ee)st[Ee]=St(Ee*q,y,x)}function qt(Ee,Te,ie){var ze,me,yn=0;do me=Te+(ie-Te)/2,ze=St(me,y,x)-Ee,ze>0?ie=me:Te=me;while(Math.abs(ze)>N&&++yn<j);return me}function re(Ee){for(var Te=0,ie=1,ze=H-1;ie!==ze&&st[ie]<=Ee;++ie)Te+=q;--ie;var me=(Ee-st[ie])/(st[ie+1]-st[ie]),yn=Te+me*q,nn=Et(yn,y,x);return nn>=O?Nt(Ee,yn):nn===0?yn:qt(Ee,Te,Te+q)}var ee=!1;function Ut(){ee=!0,(y!==p||x!==C)&&Pt()}var de=function(Te){return ee||Ut(),y===p&&x===C?Te:Te===0?0:Te===1?1:St(re(Te),p,C)};de.getControlPoints=function(){return[{x:y,y:p},{x,y:C}]};var Yt="generateBezier("+[y,p,x,C]+")";return de.toString=function(){return Yt},de}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var oet=function(){function y(C){return-C.tension*C.x-C.friction*C.v}function p(C,L,O){var N={x:C.x+O.dx*L,v:C.v+O.dv*L,tension:C.tension,friction:C.friction};return{dx:N.v,dv:y(N)}}function x(C,L){var O={dx:C.v,dv:y(C)},N=p(C,L*.5,O),j=p(C,L*.5,N),H=p(C,L,j),q=1/6*(O.dx+2*(N.dx+j.dx)+H.dx),W=1/6*(O.dv+2*(N.dv+j.dv)+H.dv);return C.x=C.x+q*L,C.v=C.v+W*L,C}return function C(L,O,N){var j={x:-1,v:0,tension:null,friction:null},H=[0],q=0,W=1/1e4,Z=16/1e3,st,bt,pt;for(L=parseFloat(L)||500,O=parseFloat(O)||20,N=N||null,j.tension=L,j.friction=O,st=N!==null,st?(q=C(L,O),bt=q/N*Z):bt=Z;pt=x(pt||j,bt),H.push(1+pt.x),q+=16,Math.abs(pt.x)>W&&Math.abs(pt.v)>W;);return st?function(_t){return H[_t*(H.length-1)|0]}:q}}(),Ru=function(p,x,C,L){var O=aet(p,x,C,L);return function(N,j,H){return N+(j-N)*O(H)}},yC={linear:function(p,x,C){return p+(x-p)*C},ease:Ru(.25,.1,.25,1),"ease-in":Ru(.42,0,1,1),"ease-out":Ru(0,0,.58,1),"ease-in-out":Ru(.42,0,.58,1),"ease-in-sine":Ru(.47,0,.745,.715),"ease-out-sine":Ru(.39,.575,.565,1),"ease-in-out-sine":Ru(.445,.05,.55,.95),"ease-in-quad":Ru(.55,.085,.68,.53),"ease-out-quad":Ru(.25,.46,.45,.94),"ease-in-out-quad":Ru(.455,.03,.515,.955),"ease-in-cubic":Ru(.55,.055,.675,.19),"ease-out-cubic":Ru(.215,.61,.355,1),"ease-in-out-cubic":Ru(.645,.045,.355,1),"ease-in-quart":Ru(.895,.03,.685,.22),"ease-out-quart":Ru(.165,.84,.44,1),"ease-in-out-quart":Ru(.77,0,.175,1),"ease-in-quint":Ru(.755,.05,.855,.06),"ease-out-quint":Ru(.23,1,.32,1),"ease-in-out-quint":Ru(.86,0,.07,1),"ease-in-expo":Ru(.95,.05,.795,.035),"ease-out-expo":Ru(.19,1,.22,1),"ease-in-out-expo":Ru(1,0,0,1),"ease-in-circ":Ru(.6,.04,.98,.335),"ease-out-circ":Ru(.075,.82,.165,1),"ease-in-out-circ":Ru(.785,.135,.15,.86),spring:function(p,x,C){if(C===0)return yC.linear;var L=oet(p,x,C);return function(O,N,j){return O+(N-O)*L(j)}},"cubic-bezier":Ru};function ij(y,p,x,C,L){if(C===1||p===x)return x;var O=L(p,x,C);return y==null||((y.roundValue||y.color)&&(O=Math.round(O)),y.min!==void 0&&(O=Math.max(O,y.min)),y.max!==void 0&&(O=Math.min(O,y.max))),O}function sj(y,p){return y.pfValue!=null||y.value!=null?y.pfValue!=null&&(p==null||p.type.units!=="%")?y.pfValue:y.value:y}function h6(y,p,x,C,L){var O=L!=null?L.type:null;x<0?x=0:x>1&&(x=1);var N=sj(y,L),j=sj(p,L);if(Q(N)&&Q(j))return ij(O,N,j,x,C);if(rt(N)&&rt(j)){for(var H=[],q=0;q<j.length;q++){var W=N[q],Z=j[q];if(W!=null&&Z!=null){var st=ij(O,W,Z,x,C);H.push(st)}else H.push(Z)}return H}}function cet(y,p,x,C){var L=!C,O=y._private,N=p._private,j=N.easing,H=N.startTime,q=C?y:y.cy(),W=q.style();if(!N.easingImpl)if(j==null)N.easingImpl=yC.linear;else{var Z;if(mt(j)){var st=W.parse("transition-timing-function",j);Z=st.value}else Z=j;var bt,pt;mt(Z)?(bt=Z,pt=[]):(bt=Z[1],pt=Z.slice(2).map(function(Xn){return+Xn})),pt.length>0?(bt==="spring"&&pt.push(N.duration),N.easingImpl=yC[bt].apply(null,pt)):N.easingImpl=yC[bt]}var _t=N.easingImpl,St;if(N.duration===0?St=1:St=(x-H)/N.duration,N.applying&&(St=N.progress),St<0?St=0:St>1&&(St=1),N.delay==null){var Et=N.startPosition,Nt=N.position;if(Nt&&L&&!y.locked()){var Pt={};X8(Et.x,Nt.x)&&(Pt.x=h6(Et.x,Nt.x,St,_t)),X8(Et.y,Nt.y)&&(Pt.y=h6(Et.y,Nt.y,St,_t)),y.position(Pt)}var qt=N.startPan,re=N.pan,ee=O.pan,Ut=re!=null&&C;Ut&&(X8(qt.x,re.x)&&(ee.x=h6(qt.x,re.x,St,_t)),X8(qt.y,re.y)&&(ee.y=h6(qt.y,re.y,St,_t)),y.emit("pan"));var de=N.startZoom,Yt=N.zoom,Ee=Yt!=null&&C;Ee&&(X8(de,Yt)&&(O.zoom=P8(O.minZoom,h6(de,Yt,St,_t),O.maxZoom)),y.emit("zoom")),(Ut||Ee)&&y.emit("viewport");var Te=N.style;if(Te&&Te.length>0&&L){for(var ie=0;ie<Te.length;ie++){var ze=Te[ie],me=ze.name,yn=ze,nn=N.startStyle[me],qe=W.properties[nn.name],Tn=h6(nn,yn,St,_t,qe);W.overrideBypass(y,me,Tn)}y.emit("style")}}return N.progress=St,St}function X8(y,p){return y==null||p==null?!1:Q(y)&&Q(p)?!0:!!(y&&p)}function uet(y,p,x,C){var L=p._private;L.started=!0,L.startTime=x-L.progress*L.duration}function aj(y,p){var x=p._private.aniEles,C=[];function L(W,Z){var st=W._private,bt=st.animation.current,pt=st.animation.queue,_t=!1;if(bt.length===0){var St=pt.shift();St&&bt.push(St)}for(var Et=function(ee){for(var Ut=ee.length-1;Ut>=0;Ut--){var de=ee[Ut];de()}ee.splice(0,ee.length)},Nt=bt.length-1;Nt>=0;Nt--){var Pt=bt[Nt],qt=Pt._private;if(qt.stopped){bt.splice(Nt,1),qt.hooked=!1,qt.playing=!1,qt.started=!1,Et(qt.frames);continue}!qt.playing&&!qt.applying||(qt.playing&&qt.applying&&(qt.applying=!1),qt.started||uet(W,Pt,y),cet(W,Pt,y,Z),qt.applying&&(qt.applying=!1),Et(qt.frames),qt.step!=null&&qt.step(y),Pt.completed()&&(bt.splice(Nt,1),qt.hooked=!1,qt.playing=!1,qt.started=!1,Et(qt.completes)),_t=!0)}return!Z&&bt.length===0&&pt.length===0&&C.push(W),_t}for(var O=!1,N=0;N<x.length;N++){var j=x[N],H=L(j);O=O||H}var q=L(p,!0);(O||q)&&(x.length>0?p.notify("draw",x):p.notify("draw")),x.unmerge(C),p.emit("step")}var het={animate:Kc.animate(),animation:Kc.animation(),animated:Kc.animated(),clearQueue:Kc.clearQueue(),delay:Kc.delay(),delayAnimation:Kc.delayAnimation(),stop:Kc.stop(),addToAnimationPool:function(p){var x=this;x.styleEnabled()&&x._private.aniEles.merge(p)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var p=this;if(p._private.animationsRunning=!0,!p.styleEnabled())return;function x(){p._private.animationsRunning&&g1(function(O){aj(O,p),x()})}var C=p.renderer();C&&C.beforeRender?C.beforeRender(function(O,N){aj(N,p)},C.beforeRenderPriorities.animations):x()}},fet={qualifierCompare:function(p,x){return p==null||x==null?p==null&&x==null:p.sameText(x)},eventMatches:function(p,x,C){var L=x.qualifier;return L!=null?p!==C.target&&V(C.target)&&L.matches(C.target):!0},addEventFields:function(p,x){x.cy=p,x.target=p},callbackContext:function(p,x,C){return x.qualifier!=null?C.target:p}},xC=function(p){return mt(p)?new ly(p):p},oj={createEmitter:function(){var p=this._private;return p.emitter||(p.emitter=new dC(fet,this)),this},emitter:function(){return this._private.emitter},on:function(p,x,C){return this.emitter().on(p,xC(x),C),this},removeListener:function(p,x,C){return this.emitter().removeListener(p,xC(x),C),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(p,x,C){return this.emitter().one(p,xC(x),C),this},once:function(p,x,C){return this.emitter().one(p,xC(x),C),this},emit:function(p,x){return this.emitter().emit(p,x),this},emitAndNotify:function(p,x){return this.emit(p),this.notify(p,x),this}};Kc.eventAliasesOn(oj);var hM={png:function(p){var x=this._private.renderer;return p=p||{},x.png(p)},jpg:function(p){var x=this._private.renderer;return p=p||{},p.bg=p.bg||"#fff",x.jpg(p)}};hM.jpeg=hM.jpg;var kC={layout:function(p){var x=this;if(p==null){$l("Layout options must be specified to make a layout");return}if(p.name==null){$l("A `name` must be specified to make a layout");return}var C=p.name,L=x.extension("layout",C);if(L==null){$l("No such layout `"+C+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var O;mt(p.eles)?O=x.$(p.eles):O=p.eles!=null?p.eles:x.$();var N=new L(we({},p,{cy:x,eles:O}));return N}};kC.createLayout=kC.makeLayout=kC.layout;var det={notify:function(p,x){var C=this._private;if(this.batching()){C.batchNotifications=C.batchNotifications||{};var L=C.batchNotifications[p]=C.batchNotifications[p]||this.collection();x!=null&&L.merge(x);return}if(C.notificationsEnabled){var O=this.renderer();this.destroyed()||!O||O.notify(p,x)}},notifications:function(p){var x=this._private;return p===void 0?x.notificationsEnabled:(x.notificationsEnabled=!!p,this)},noNotifications:function(p){this.notifications(!1),p(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var p=this._private;return p.batchCount==null&&(p.batchCount=0),p.batchCount===0&&(p.batchStyleEles=this.collection(),p.batchNotifications={}),p.batchCount++,this},endBatch:function(){var p=this._private;if(p.batchCount===0)return this;if(p.batchCount--,p.batchCount===0){p.batchStyleEles.updateStyle();var x=this.renderer();Object.keys(p.batchNotifications).forEach(function(C){var L=p.batchNotifications[C];L.empty()?x.notify(C):x.notify(C,L)})}return this},batch:function(p){return this.startBatch(),p(),this.endBatch(),this},batchData:function(p){var x=this;return this.batch(function(){for(var C=Object.keys(p),L=0;L<C.length;L++){var O=C[L],N=p[O],j=x.getElementById(O);j.data(N)}})}},get=p1({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),fM={renderTo:function(p,x,C,L){var O=this._private.renderer;return O.renderTo(p,x,C,L),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(p){var x=this,C=x.extension("renderer",p.name);if(C==null){$l("Can not initialise: No such renderer `".concat(p.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}p.wheelSensitivity!==void 0&&Gc("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var L=get(p);L.cy=x,x._private.renderer=new C(L),this.notify("init")},destroyRenderer:function(){var p=this;p.notify("destroy");var x=p.container();if(x)for(x._cyreg=null;x.childNodes.length>0;)x.removeChild(x.childNodes[0]);p._private.renderer=null,p.mutableElements().forEach(function(C){var L=C._private;L.rscratch={},L.rstyle={},L.animation.current=[],L.animation.queue=[]})},onRender:function(p){return this.on("render",p)},offRender:function(p){return this.off("render",p)}};fM.invalidateDimensions=fM.resize;var EC={collection:function(p,x){return mt(p)?this.$(p):yt(p)?p.collection():rt(p)?(x||(x={}),new w1(this,p,x.unique,x.removed)):new w1(this)},nodes:function(p){var x=this.$(function(C){return C.isNode()});return p?x.filter(p):x},edges:function(p){var x=this.$(function(C){return C.isEdge()});return p?x.filter(p):x},$:function(p){var x=this._private.elements;return p?x.filter(p):x.spawnSelf()},mutableElements:function(){return this._private.elements}};EC.elements=EC.filter=EC.$;var W1={},Q8="t",pet="f";W1.apply=function(y){for(var p=this,x=p._private,C=x.cy,L=C.collection(),O=0;O<y.length;O++){var N=y[O],j=p.getContextMeta(N);if(!j.empty){var H=p.getContextStyle(j),q=p.applyContextStyle(j,H,N);N._private.appliedInitStyle?p.updateTransitions(N,q.diffProps):N._private.appliedInitStyle=!0;var W=p.updateStyleHints(N);W&&L.push(N)}}return L},W1.getPropertiesDiff=function(y,p){var x=this,C=x._private.propDiffs=x._private.propDiffs||{},L=y+"-"+p,O=C[L];if(O)return O;for(var N=[],j={},H=0;H<x.length;H++){var q=x[H],W=y[H]===Q8,Z=p[H]===Q8,st=W!==Z,bt=q.mappedProperties.length>0;if(st||Z&&bt){var pt=void 0;st&&bt||st?pt=q.properties:bt&&(pt=q.mappedProperties);for(var _t=0;_t<pt.length;_t++){for(var St=pt[_t],Et=St.name,Nt=!1,Pt=H+1;Pt<x.length;Pt++){var qt=x[Pt],re=p[Pt]===Q8;if(re&&(Nt=qt.properties[St.name]!=null,Nt))break}!j[Et]&&!Nt&&(j[Et]=!0,N.push(Et))}}}return C[L]=N,N},W1.getContextMeta=function(y){for(var p=this,x="",C,L=y._private.styleCxtKey||"",O=0;O<p.length;O++){var N=p[O],j=N.selector&&N.selector.matches(y);j?x+=Q8:x+=pet}return C=p.getPropertiesDiff(L,x),y._private.styleCxtKey=x,{key:x,diffPropNames:C,empty:C.length===0}},W1.getContextStyle=function(y){var p=y.key,x=this,C=this._private.contextStyles=this._private.contextStyles||{};if(C[p])return C[p];for(var L={_private:{key:p}},O=0;O<x.length;O++){var N=x[O],j=p[O]===Q8;if(j)for(var H=0;H<N.properties.length;H++){var q=N.properties[H];L[q.name]=q}}return C[p]=L,L},W1.applyContextStyle=function(y,p,x){for(var C=this,L=y.diffPropNames,O={},N=C.types,j=0;j<L.length;j++){var H=L[j],q=p[H],W=x.pstyle(H);if(!q)if(W)W.bypass?q={name:H,deleteBypassed:!0}:q={name:H,delete:!0};else continue;if(W!==q){if(q.mapped===N.fn&&W!=null&&W.mapping!=null&&W.mapping.value===q.value){var Z=W.mapping,st=Z.fnValue=q.value(x);if(st===Z.prevFnValue)continue}var bt=O[H]={prev:W};C.applyParsedProperty(x,q),bt.next=x.pstyle(H),bt.next&&bt.next.bypass&&(bt.next=bt.next.bypassed)}}return{diffProps:O}},W1.updateStyleHints=function(y){var p=y._private,x=this,C=x.propertyGroupNames,L=x.propertyGroupKeys,O=function(gi,ss,na){return x.getPropertiesHash(gi,ss,na)},N=p.styleKey;if(y.removed())return!1;var j=p.group==="nodes",H=y._private.style;C=Object.keys(H);for(var q=0;q<L.length;q++){var W=L[q];p.styleKeys[W]=[sy,g4]}for(var Z=function(gi,ss){return p.styleKeys[ss][0]=fg(gi,p.styleKeys[ss][0])},st=function(gi,ss){return p.styleKeys[ss][1]=O2(gi,p.styleKeys[ss][1])},bt=function(gi,ss){Z(gi,ss),st(gi,ss)},pt=function(gi,ss){for(var na=0;na<gi.length;na++){var vi=gi.charCodeAt(na);Z(vi,ss),st(vi,ss)}},_t=2e9,St=function(gi){return-128<gi&&gi<128&&Math.floor(gi)!==gi?_t-(gi*1024|0):gi},Et=0;Et<C.length;Et++){var Nt=C[Et],Pt=H[Nt];if(Pt!=null){var qt=this.properties[Nt],re=qt.type,ee=qt.groupKey,Ut=void 0;qt.hashOverride!=null?Ut=qt.hashOverride(y,Pt):Pt.pfValue!=null&&(Ut=Pt.pfValue);var de=qt.enums==null?Pt.value:null,Yt=Ut!=null,Ee=de!=null,Te=Yt||Ee,ie=Pt.units;if(re.number&&Te&&!re.multiple){var ze=Yt?Ut:de;bt(St(ze),ee),!Yt&&ie!=null&&pt(ie,ee)}else pt(Pt.strValue,ee)}}for(var me=[sy,g4],yn=0;yn<L.length;yn++){var nn=L[yn],qe=p.styleKeys[nn];me[0]=fg(qe[0],me[0]),me[1]=O2(qe[1],me[1])}p.styleKey=M8(me[0],me[1]);var Tn=p.styleKeys;p.labelDimsKey=N2(Tn.labelDimensions);var Xn=O(y,["label"],Tn.labelDimensions);if(p.labelKey=N2(Xn),p.labelStyleKey=N2(p4(Tn.commonLabel,Xn)),!j){var lr=O(y,["source-label"],Tn.labelDimensions);p.sourceLabelKey=N2(lr),p.sourceLabelStyleKey=N2(p4(Tn.commonLabel,lr));var Sn=O(y,["target-label"],Tn.labelDimensions);p.targetLabelKey=N2(Sn),p.targetLabelStyleKey=N2(p4(Tn.commonLabel,Sn))}if(j){var or=p.styleKeys,pr=or.nodeBody,kr=or.nodeBorder,wr=or.nodeOutline,Cr=or.backgroundImage,$n=or.compound,cr=or.pie,mr=[pr,kr,wr,Cr,$n,cr].filter(function(Sr){return Sr!=null}).reduce(p4,[sy,g4]);p.nodeKey=N2(mr),p.hasPie=cr!=null&&cr[0]!==sy&&cr[1]!==g4}return N!==p.styleKey},W1.clearStyleHints=function(y){var p=y._private;p.styleCxtKey="",p.styleKeys={},p.styleKey=null,p.labelKey=null,p.labelStyleKey=null,p.sourceLabelKey=null,p.sourceLabelStyleKey=null,p.targetLabelKey=null,p.targetLabelStyleKey=null,p.nodeKey=null,p.hasPie=null},W1.applyParsedProperty=function(y,p){var x=this,C=p,L=y._private.style,O,N=x.types,j=x.properties[C.name].type,H=C.bypass,q=L[C.name],W=q&&q.bypass,Z=y._private,st="mapping",bt=function(pr){return pr==null?null:pr.pfValue!=null?pr.pfValue:pr.value},pt=function(){var pr=bt(q),kr=bt(C);x.checkTriggers(y,C.name,pr,kr)};if(p.name==="curve-style"&&y.isEdge()&&(p.value!=="bezier"&&y.isLoop()||p.value==="haystack"&&(y.source().isParent()||y.target().isParent()))&&(C=p=this.parse(p.name,"bezier",H)),C.delete)return L[C.name]=void 0,pt(),!0;if(C.deleteBypassed)return q?q.bypass?(q.bypassed=void 0,pt(),!0):!1:(pt(),!0);if(C.deleteBypass)return q?q.bypass?(L[C.name]=q.bypassed,pt(),!0):!1:(pt(),!0);var _t=function(){Gc("Do not assign mappings to elements without corresponding data (i.e. ele `"+y.id()+"` has no mapping for property `"+C.name+"` with data field `"+C.field+"`); try a `["+C.field+"]` selector to limit scope to elements with `"+C.field+"` defined")};switch(C.mapped){case N.mapData:{for(var St=C.field.split("."),Et=Z.data,Nt=0;Nt<St.length&&Et;Nt++){var Pt=St[Nt];Et=Et[Pt]}if(Et==null)return _t(),!1;var qt;if(Q(Et)){var re=C.fieldMax-C.fieldMin;re===0?qt=0:qt=(Et-C.fieldMin)/re}else return Gc("Do not use continuous mappers without specifying numeric data (i.e. `"+C.field+": "+Et+"` for `"+y.id()+"` is non-numeric)"),!1;if(qt<0?qt=0:qt>1&&(qt=1),j.color){var ee=C.valueMin[0],Ut=C.valueMax[0],de=C.valueMin[1],Yt=C.valueMax[1],Ee=C.valueMin[2],Te=C.valueMax[2],ie=C.valueMin[3]==null?1:C.valueMin[3],ze=C.valueMax[3]==null?1:C.valueMax[3],me=[Math.round(ee+(Ut-ee)*qt),Math.round(de+(Yt-de)*qt),Math.round(Ee+(Te-Ee)*qt),Math.round(ie+(ze-ie)*qt)];O={bypass:C.bypass,name:C.name,value:me,strValue:"rgb("+me[0]+", "+me[1]+", "+me[2]+")"}}else if(j.number){var yn=C.valueMin+(C.valueMax-C.valueMin)*qt;O=this.parse(C.name,yn,C.bypass,st)}else return!1;if(!O)return _t(),!1;O.mapping=C,C=O;break}case N.data:{for(var nn=C.field.split("."),qe=Z.data,Tn=0;Tn<nn.length&&qe;Tn++){var Xn=nn[Tn];qe=qe[Xn]}if(qe!=null&&(O=this.parse(C.name,qe,C.bypass,st)),!O)return _t(),!1;O.mapping=C,C=O;break}case N.fn:{var lr=C.value,Sn=C.fnValue!=null?C.fnValue:lr(y);if(C.prevFnValue=Sn,Sn==null)return Gc("Custom function mappers may not return null (i.e. `"+C.name+"` for ele `"+y.id()+"` is null)"),!1;if(O=this.parse(C.name,Sn,C.bypass,st),!O)return Gc("Custom function mappers may not return invalid values for the property type (i.e. `"+C.name+"` for ele `"+y.id()+"` is invalid)"),!1;O.mapping=P2(C),C=O;break}case void 0:break;default:return!1}return H?(W?C.bypassed=q.bypassed:C.bypassed=q,L[C.name]=C):W?q.bypassed=C:L[C.name]=C,pt(),!0},W1.cleanElements=function(y,p){for(var x=0;x<y.length;x++){var C=y[x];if(this.clearStyleHints(C),C.dirtyCompoundBoundsCache(),C.dirtyBoundingBoxCache(),!p)C._private.style={};else for(var L=C._private.style,O=Object.keys(L),N=0;N<O.length;N++){var j=O[N],H=L[j];H!=null&&(H.bypass?H.bypassed=null:L[j]=null)}}},W1.update=function(){var y=this._private.cy,p=y.mutableElements();p.updateStyle()},W1.updateTransitions=function(y,p){var x=this,C=y._private,L=y.pstyle("transition-property").value,O=y.pstyle("transition-duration").pfValue,N=y.pstyle("transition-delay").pfValue;if(L.length>0&&O>0){for(var j={},H=!1,q=0;q<L.length;q++){var W=L[q],Z=y.pstyle(W),st=p[W];if(st){var bt=st.prev,pt=bt,_t=st.next!=null?st.next:Z,St=!1,Et=void 0,Nt=1e-6;pt&&(Q(pt.pfValue)&&Q(_t.pfValue)?(St=_t.pfValue-pt.pfValue,Et=pt.pfValue+Nt*St):Q(pt.value)&&Q(_t.value)?(St=_t.value-pt.value,Et=pt.value+Nt*St):rt(pt.value)&&rt(_t.value)&&(St=pt.value[0]!==_t.value[0]||pt.value[1]!==_t.value[1]||pt.value[2]!==_t.value[2],Et=pt.strValue),St&&(j[W]=_t.strValue,this.applyBypass(y,W,Et),H=!0))}}if(!H)return;C.transitioning=!0,new e6(function(Pt){N>0?y.delayAnimation(N).play().promise().then(Pt):Pt()}).then(function(){return y.animation({style:j,duration:O,easing:y.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){x.removeBypasses(y,L),y.emitAndNotify("style"),C.transitioning=!1})}else C.transitioning&&(this.removeBypasses(y,L),y.emitAndNotify("style"),C.transitioning=!1)},W1.checkTrigger=function(y,p,x,C,L,O){var N=this.properties[p],j=L(N);j!=null&&j(x,C)&&O(N)},W1.checkZOrderTrigger=function(y,p,x,C){var L=this;this.checkTrigger(y,p,x,C,function(O){return O.triggersZOrder},function(){L._private.cy.notify("zorder",y)})},W1.checkBoundsTrigger=function(y,p,x,C){this.checkTrigger(y,p,x,C,function(L){return L.triggersBounds},function(L){y.dirtyCompoundBoundsCache(),y.dirtyBoundingBoxCache(),L.triggersBoundsOfParallelBeziers&&p==="curve-style"&&(x==="bezier"||C==="bezier")&&y.parallelEdges().forEach(function(O){O.isBundledBezier()&&O.dirtyBoundingBoxCache()}),L.triggersBoundsOfConnectedEdges&&p==="display"&&(x==="none"||C==="none")&&y.connectedEdges().forEach(function(O){O.dirtyBoundingBoxCache()})})},W1.checkTriggers=function(y,p,x,C){y.dirtyStyleCache(),this.checkZOrderTrigger(y,p,x,C),this.checkBoundsTrigger(y,p,x,C)};var J8={};J8.applyBypass=function(y,p,x,C){var L=this,O=[],N=!0;if(p==="*"||p==="**"){if(x!==void 0)for(var j=0;j<L.properties.length;j++){var H=L.properties[j],q=H.name,W=this.parse(q,x,!0);W&&O.push(W)}}else if(mt(p)){var Z=this.parse(p,x,!0);Z&&O.push(Z)}else if(it(p)){var st=p;C=x;for(var bt=Object.keys(st),pt=0;pt<bt.length;pt++){var _t=bt[pt],St=st[_t];if(St===void 0&&(St=st[Ae(_t)]),St!==void 0){var Et=this.parse(_t,St,!0);Et&&O.push(Et)}}}else return!1;if(O.length===0)return!1;for(var Nt=!1,Pt=0;Pt<y.length;Pt++){for(var qt=y[Pt],re={},ee=void 0,Ut=0;Ut<O.length;Ut++){var de=O[Ut];if(C){var Yt=qt.pstyle(de.name);ee=re[de.name]={prev:Yt}}Nt=this.applyParsedProperty(qt,P2(de))||Nt,C&&(ee.next=qt.pstyle(de.name))}Nt&&this.updateStyleHints(qt),C&&this.updateTransitions(qt,re,N)}return Nt},J8.overrideBypass=function(y,p,x){p=pn(p);for(var C=0;C<y.length;C++){var L=y[C],O=L._private.style[p],N=this.properties[p].type,j=N.color,H=N.mutiple,q=O?O.pfValue!=null?O.pfValue:O.value:null;!O||!O.bypass?this.applyBypass(L,p,x):(O.value=x,O.pfValue!=null&&(O.pfValue=x),j?O.strValue="rgb("+x.join(",")+")":H?O.strValue=x.join(" "):O.strValue=""+x,this.updateStyleHints(L)),this.checkTriggers(L,p,q,x)}},J8.removeAllBypasses=function(y,p){return this.removeBypasses(y,this.propertyNames,p)},J8.removeBypasses=function(y,p,x){for(var C=!0,L=0;L<y.length;L++){for(var O=y[L],N={},j=0;j<p.length;j++){var H=p[j],q=this.properties[H],W=O.pstyle(q.name);if(!(!W||!W.bypass)){var Z="",st=this.parse(H,Z,!0),bt=N[q.name]={prev:W};this.applyParsedProperty(O,st),bt.next=O.pstyle(q.name)}}this.updateStyleHints(O),x&&this.updateTransitions(O,N,C)}};var dM={};dM.getEmSizeInPixels=function(){var y=this.containerCss("font-size");return y!=null?parseFloat(y):1},dM.containerCss=function(y){var p=this._private.cy,x=p.container(),C=p.window();if(C&&x&&C.getComputedStyle)return C.getComputedStyle(x).getPropertyValue(y)};var R2={};R2.getRenderedStyle=function(y,p){return p?this.getStylePropertyValue(y,p,!0):this.getRawStyle(y,!0)},R2.getRawStyle=function(y,p){var x=this;if(y=y[0],y){for(var C={},L=0;L<x.properties.length;L++){var O=x.properties[L],N=x.getStylePropertyValue(y,O.name,p);N!=null&&(C[O.name]=N,C[Ae(O.name)]=N)}return C}},R2.getIndexedStyle=function(y,p,x,C){var L=y.pstyle(p)[x][C];return L??y.cy().style().getDefaultProperty(p)[x][0]},R2.getStylePropertyValue=function(y,p,x){var C=this;if(y=y[0],y){var L=C.properties[p];L.alias&&(L=L.pointsTo);var O=L.type,N=y.pstyle(L.name);if(N){var j=N.value,H=N.units,q=N.strValue;if(x&&O.number&&j!=null&&Q(j)){var W=y.cy().zoom(),Z=function(St){return St*W},st=function(St,Et){return Z(St)+Et},bt=rt(j),pt=bt?H.every(function(_t){return _t!=null}):H!=null;return pt?bt?j.map(function(_t,St){return st(_t,H[St])}).join(" "):st(j,H):bt?j.map(function(_t){return mt(_t)?_t:""+Z(_t)}).join(" "):""+Z(j)}else if(q!=null)return q}return null}},R2.getAnimationStartStyle=function(y,p){for(var x={},C=0;C<p.length;C++){var L=p[C],O=L.name,N=y.pstyle(O);N!==void 0&&(it(N)?N=this.parse(O,N.strValue):N=this.parse(O,N)),N&&(x[O]=N)}return x},R2.getPropsList=function(y){var p=this,x=[],C=y,L=p.properties;if(C)for(var O=Object.keys(C),N=0;N<O.length;N++){var j=O[N],H=C[j],q=L[j]||L[pn(j)],W=this.parse(q.name,H);W&&x.push(W)}return x},R2.getNonDefaultPropertiesHash=function(y,p,x){var C=x.slice(),L,O,N,j,H,q;for(H=0;H<p.length;H++)if(L=p[H],O=y.pstyle(L,!1),O!=null)if(O.pfValue!=null)C[0]=fg(j,C[0]),C[1]=O2(j,C[1]);else for(N=O.strValue,q=0;q<N.length;q++)j=N.charCodeAt(q),C[0]=fg(j,C[0]),C[1]=O2(j,C[1]);return C},R2.getPropertiesHash=R2.getNonDefaultPropertiesHash;var TC={};TC.appendFromJson=function(y){for(var p=this,x=0;x<y.length;x++){var C=y[x],L=C.selector,O=C.style||C.css,N=Object.keys(O);p.selector(L);for(var j=0;j<N.length;j++){var H=N[j],q=O[H];p.css(H,q)}}return p},TC.fromJson=function(y){var p=this;return p.resetToDefault(),p.appendFromJson(y),p},TC.json=function(){for(var y=[],p=this.defaultLength;p<this.length;p++){for(var x=this[p],C=x.selector,L=x.properties,O={},N=0;N<L.length;N++){var j=L[N];O[j.name]=j.strValue}y.push({selector:C?C.toString():"core",style:O})}return y};var gM={};gM.appendFromString=function(y){var p=this,x=this,C=""+y,L,O,N;C=C.replace(/[/][*](\s|.)+?[*][/]/g,"");function j(){C.length>L.length?C=C.substr(L.length):C=""}function H(){O.length>N.length?O=O.substr(N.length):O=""}for(;;){var q=C.match(/^\s*$/);if(q)break;var W=C.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!W){Gc("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+C);break}L=W[0];var Z=W[1];if(Z!=="core"){var st=new ly(Z);if(st.invalid){Gc("Skipping parsing of block: Invalid selector found in string stylesheet: "+Z),j();continue}}var bt=W[2],pt=!1;O=bt;for(var _t=[];;){var St=O.match(/^\s*$/);if(St)break;var Et=O.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!Et){Gc("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+bt),pt=!0;break}N=Et[0];var Nt=Et[1],Pt=Et[2],qt=p.properties[Nt];if(!qt){Gc("Skipping property: Invalid property name in: "+N),H();continue}var re=x.parse(Nt,Pt);if(!re){Gc("Skipping property: Invalid property definition in: "+N),H();continue}_t.push({name:Nt,val:Pt}),H()}if(pt){j();break}x.selector(Z);for(var ee=0;ee<_t.length;ee++){var Ut=_t[ee];x.css(Ut.name,Ut.val)}j()}return x},gM.fromString=function(y){var p=this;return p.resetToDefault(),p.appendFromString(y),p};var m1={};(function(){var y=sn,p=Ne,x=_e,C=xe,L=Mn,O=function(mr){return"^"+mr+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},N=function(mr){var Sr=y+"|\\w+|"+p+"|"+x+"|"+C+"|"+L;return"^"+mr+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+y+")\\s*\\,\\s*("+y+")\\s*,\\s*("+Sr+")\\s*\\,\\s*("+Sr+")\\)$"},j=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];m1.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi"]},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:O("data")},layoutData:{mapping:!0,regex:O("layoutData")},scratch:{mapping:!0,regex:O("scratch")},mapData:{mapping:!0,regex:N("mapData")},mapLayoutData:{mapping:!0,regex:N("mapLayoutData")},mapScratch:{mapping:!0,regex:N("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:j,singleRegexMatchValue:!0},urls:{regexes:j,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(mr,Sr){switch(mr.length){case 2:return Sr[0]!=="deg"&&Sr[0]!=="rad"&&Sr[1]!=="deg"&&Sr[1]!=="rad";case 1:return mt(mr[0])||Sr[0]==="deg"||Sr[0]==="rad";default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+y+")\\s*,\\s*("+y+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+y+")\\s*,\\s*("+y+")\\s*,\\s*("+y+")\\s*,\\s*("+y+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(mr){var Sr=mr.length;return Sr===1||Sr===2||Sr===4}}};var H={zeroNonZero:function(mr,Sr){return(mr==null||Sr==null)&&mr!==Sr||mr==0&&Sr!=0?!0:mr!=0&&Sr==0},any:function(mr,Sr){return mr!=Sr},emptyNonEmpty:function(mr,Sr){var gi=Ft(mr),ss=Ft(Sr);return gi&&!ss||!gi&&ss}},q=m1.types,W=[{name:"label",type:q.text,triggersBounds:H.any,triggersZOrder:H.emptyNonEmpty},{name:"text-rotation",type:q.textRotation,triggersBounds:H.any},{name:"text-margin-x",type:q.bidirectionalSize,triggersBounds:H.any},{name:"text-margin-y",type:q.bidirectionalSize,triggersBounds:H.any}],Z=[{name:"source-label",type:q.text,triggersBounds:H.any},{name:"source-text-rotation",type:q.textRotation,triggersBounds:H.any},{name:"source-text-margin-x",type:q.bidirectionalSize,triggersBounds:H.any},{name:"source-text-margin-y",type:q.bidirectionalSize,triggersBounds:H.any},{name:"source-text-offset",type:q.size,triggersBounds:H.any}],st=[{name:"target-label",type:q.text,triggersBounds:H.any},{name:"target-text-rotation",type:q.textRotation,triggersBounds:H.any},{name:"target-text-margin-x",type:q.bidirectionalSize,triggersBounds:H.any},{name:"target-text-margin-y",type:q.bidirectionalSize,triggersBounds:H.any},{name:"target-text-offset",type:q.size,triggersBounds:H.any}],bt=[{name:"font-family",type:q.fontFamily,triggersBounds:H.any},{name:"font-style",type:q.fontStyle,triggersBounds:H.any},{name:"font-weight",type:q.fontWeight,triggersBounds:H.any},{name:"font-size",type:q.size,triggersBounds:H.any},{name:"text-transform",type:q.textTransform,triggersBounds:H.any},{name:"text-wrap",type:q.textWrap,triggersBounds:H.any},{name:"text-overflow-wrap",type:q.textOverflowWrap,triggersBounds:H.any},{name:"text-max-width",type:q.size,triggersBounds:H.any},{name:"text-outline-width",type:q.size,triggersBounds:H.any},{name:"line-height",type:q.positiveNumber,triggersBounds:H.any}],pt=[{name:"text-valign",type:q.valign,triggersBounds:H.any},{name:"text-halign",type:q.halign,triggersBounds:H.any},{name:"color",type:q.color},{name:"text-outline-color",type:q.color},{name:"text-outline-opacity",type:q.zeroOneNumber},{name:"text-background-color",type:q.color},{name:"text-background-opacity",type:q.zeroOneNumber},{name:"text-background-padding",type:q.size,triggersBounds:H.any},{name:"text-border-opacity",type:q.zeroOneNumber},{name:"text-border-color",type:q.color},{name:"text-border-width",type:q.size,triggersBounds:H.any},{name:"text-border-style",type:q.borderStyle,triggersBounds:H.any},{name:"text-background-shape",type:q.textBackgroundShape,triggersBounds:H.any},{name:"text-justification",type:q.justification}],_t=[{name:"events",type:q.bool,triggersZOrder:H.any},{name:"text-events",type:q.bool,triggersZOrder:H.any}],St=[{name:"display",type:q.display,triggersZOrder:H.any,triggersBounds:H.any,triggersBoundsOfConnectedEdges:!0},{name:"visibility",type:q.visibility,triggersZOrder:H.any},{name:"opacity",type:q.zeroOneNumber,triggersZOrder:H.zeroNonZero},{name:"text-opacity",type:q.zeroOneNumber},{name:"min-zoomed-font-size",type:q.size},{name:"z-compound-depth",type:q.zCompoundDepth,triggersZOrder:H.any},{name:"z-index-compare",type:q.zIndexCompare,triggersZOrder:H.any},{name:"z-index",type:q.number,triggersZOrder:H.any}],Et=[{name:"overlay-padding",type:q.size,triggersBounds:H.any},{name:"overlay-color",type:q.color},{name:"overlay-opacity",type:q.zeroOneNumber,triggersBounds:H.zeroNonZero},{name:"overlay-shape",type:q.overlayShape,triggersBounds:H.any}],Nt=[{name:"underlay-padding",type:q.size,triggersBounds:H.any},{name:"underlay-color",type:q.color},{name:"underlay-opacity",type:q.zeroOneNumber,triggersBounds:H.zeroNonZero},{name:"underlay-shape",type:q.overlayShape,triggersBounds:H.any}],Pt=[{name:"transition-property",type:q.propList},{name:"transition-duration",type:q.time},{name:"transition-delay",type:q.time},{name:"transition-timing-function",type:q.easing}],qt=function(mr,Sr){return Sr.value==="label"?-mr.poolIndex():Sr.pfValue},re=[{name:"height",type:q.nodeSize,triggersBounds:H.any,hashOverride:qt},{name:"width",type:q.nodeSize,triggersBounds:H.any,hashOverride:qt},{name:"shape",type:q.nodeShape,triggersBounds:H.any},{name:"shape-polygon-points",type:q.polygonPointList,triggersBounds:H.any},{name:"background-color",type:q.color},{name:"background-fill",type:q.fill},{name:"background-opacity",type:q.zeroOneNumber},{name:"background-blacken",type:q.nOneOneNumber},{name:"background-gradient-stop-colors",type:q.colors},{name:"background-gradient-stop-positions",type:q.percentages},{name:"background-gradient-direction",type:q.gradientDirection},{name:"padding",type:q.sizeMaybePercent,triggersBounds:H.any},{name:"padding-relative-to",type:q.paddingRelativeTo,triggersBounds:H.any},{name:"bounds-expansion",type:q.boundsExpansion,triggersBounds:H.any}],ee=[{name:"border-color",type:q.color},{name:"border-opacity",type:q.zeroOneNumber},{name:"border-width",type:q.size,triggersBounds:H.any},{name:"border-style",type:q.borderStyle}],Ut=[{name:"outline-color",type:q.color},{name:"outline-opacity",type:q.zeroOneNumber},{name:"outline-width",type:q.size,triggersBounds:H.any},{name:"outline-style",type:q.borderStyle},{name:"outline-offset",type:q.size,triggersBounds:H.any}],de=[{name:"background-image",type:q.urls},{name:"background-image-crossorigin",type:q.bgCrossOrigin},{name:"background-image-opacity",type:q.zeroOneNumbers},{name:"background-image-containment",type:q.bgContainment},{name:"background-image-smoothing",type:q.bools},{name:"background-position-x",type:q.bgPos},{name:"background-position-y",type:q.bgPos},{name:"background-width-relative-to",type:q.bgRelativeTo},{name:"background-height-relative-to",type:q.bgRelativeTo},{name:"background-repeat",type:q.bgRepeat},{name:"background-fit",type:q.bgFit},{name:"background-clip",type:q.bgClip},{name:"background-width",type:q.bgWH},{name:"background-height",type:q.bgWH},{name:"background-offset-x",type:q.bgPos},{name:"background-offset-y",type:q.bgPos}],Yt=[{name:"position",type:q.position,triggersBounds:H.any},{name:"compound-sizing-wrt-labels",type:q.compoundIncludeLabels,triggersBounds:H.any},{name:"min-width",type:q.size,triggersBounds:H.any},{name:"min-width-bias-left",type:q.sizeMaybePercent,triggersBounds:H.any},{name:"min-width-bias-right",type:q.sizeMaybePercent,triggersBounds:H.any},{name:"min-height",type:q.size,triggersBounds:H.any},{name:"min-height-bias-top",type:q.sizeMaybePercent,triggersBounds:H.any},{name:"min-height-bias-bottom",type:q.sizeMaybePercent,triggersBounds:H.any}],Ee=[{name:"line-style",type:q.lineStyle},{name:"line-color",type:q.color},{name:"line-fill",type:q.fill},{name:"line-cap",type:q.lineCap},{name:"line-opacity",type:q.zeroOneNumber},{name:"line-dash-pattern",type:q.numbers},{name:"line-dash-offset",type:q.number},{name:"line-gradient-stop-colors",type:q.colors},{name:"line-gradient-stop-positions",type:q.percentages},{name:"curve-style",type:q.curveStyle,triggersBounds:H.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:q.zeroOneNumber,triggersBounds:H.any},{name:"source-endpoint",type:q.edgeEndpoint,triggersBounds:H.any},{name:"target-endpoint",type:q.edgeEndpoint,triggersBounds:H.any},{name:"control-point-step-size",type:q.size,triggersBounds:H.any},{name:"control-point-distances",type:q.bidirectionalSizes,triggersBounds:H.any},{name:"control-point-weights",type:q.numbers,triggersBounds:H.any},{name:"segment-distances",type:q.bidirectionalSizes,triggersBounds:H.any},{name:"segment-weights",type:q.numbers,triggersBounds:H.any},{name:"taxi-turn",type:q.bidirectionalSizeMaybePercent,triggersBounds:H.any},{name:"taxi-turn-min-distance",type:q.size,triggersBounds:H.any},{name:"taxi-direction",type:q.axisDirection,triggersBounds:H.any},{name:"edge-distances",type:q.edgeDistances,triggersBounds:H.any},{name:"arrow-scale",type:q.positiveNumber,triggersBounds:H.any},{name:"loop-direction",type:q.angle,triggersBounds:H.any},{name:"loop-sweep",type:q.angle,triggersBounds:H.any},{name:"source-distance-from-node",type:q.size,triggersBounds:H.any},{name:"target-distance-from-node",type:q.size,triggersBounds:H.any}],Te=[{name:"ghost",type:q.bool,triggersBounds:H.any},{name:"ghost-offset-x",type:q.bidirectionalSize,triggersBounds:H.any},{name:"ghost-offset-y",type:q.bidirectionalSize,triggersBounds:H.any},{name:"ghost-opacity",type:q.zeroOneNumber}],ie=[{name:"selection-box-color",type:q.color},{name:"selection-box-opacity",type:q.zeroOneNumber},{name:"selection-box-border-color",type:q.color},{name:"selection-box-border-width",type:q.size},{name:"active-bg-color",type:q.color},{name:"active-bg-opacity",type:q.zeroOneNumber},{name:"active-bg-size",type:q.size},{name:"outside-texture-bg-color",type:q.color},{name:"outside-texture-bg-opacity",type:q.zeroOneNumber}],ze=[];m1.pieBackgroundN=16,ze.push({name:"pie-size",type:q.sizeMaybePercent});for(var me=1;me<=m1.pieBackgroundN;me++)ze.push({name:"pie-"+me+"-background-color",type:q.color}),ze.push({name:"pie-"+me+"-background-size",type:q.percent}),ze.push({name:"pie-"+me+"-background-opacity",type:q.zeroOneNumber});var yn=[],nn=m1.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:q.arrowShape,triggersBounds:H.any},{name:"arrow-color",type:q.color},{name:"arrow-fill",type:q.arrowFill},{name:"arrow-width",type:q.arrowWidth}].forEach(function(cr){nn.forEach(function(mr){var Sr=mr+"-"+cr.name,gi=cr.type,ss=cr.triggersBounds;yn.push({name:Sr,type:gi,triggersBounds:ss})})},{});var qe=m1.properties=[].concat(_t,Pt,St,Et,Nt,Te,pt,bt,W,Z,st,re,ee,Ut,de,ze,Yt,Ee,yn,ie),Tn=m1.propertyGroups={behavior:_t,transition:Pt,visibility:St,overlay:Et,underlay:Nt,ghost:Te,commonLabel:pt,labelDimensions:bt,mainLabel:W,sourceLabel:Z,targetLabel:st,nodeBody:re,nodeBorder:ee,nodeOutline:Ut,backgroundImage:de,pie:ze,compound:Yt,edgeLine:Ee,edgeArrow:yn,core:ie},Xn=m1.propertyGroupNames={},lr=m1.propertyGroupKeys=Object.keys(Tn);lr.forEach(function(cr){Xn[cr]=Tn[cr].map(function(mr){return mr.name}),Tn[cr].forEach(function(mr){return mr.groupKey=cr})});var Sn=m1.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];m1.propertyNames=qe.map(function(cr){return cr.name});for(var or=0;or<qe.length;or++){var pr=qe[or];qe[pr.name]=pr}for(var kr=0;kr<Sn.length;kr++){var wr=Sn[kr],Cr=qe[wr.pointsTo],$n={name:wr.name,alias:!0,pointsTo:Cr};qe.push($n),qe[wr.name]=$n}})(),m1.getDefaultProperty=function(y){return this.getDefaultProperties()[y]},m1.getDefaultProperties=function(){var y=this._private;if(y.defaultProperties!=null)return y.defaultProperties;for(var p=we({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(H,q){for(var W=1;W<=m1.pieBackgroundN;W++){var Z=q.name.replace("{{i}}",W),st=q.value;H[Z]=st}return H},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"taxi-turn":"50%","taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(H,q){return m1.arrowPrefixes.forEach(function(W){var Z=W+"-"+q.name,st=q.value;H[Z]=st}),H},{})),x={},C=0;C<this.properties.length;C++){var L=this.properties[C];if(!L.pointsTo){var O=L.name,N=p[O],j=this.parse(O,N);x[O]=j}}return y.defaultProperties=x,y.defaultProperties},m1.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var CC={};CC.parse=function(y,p,x,C){var L=this;if(ct(p))return L.parseImplWarn(y,p,x,C);var O=C==="mapping"||C===!0||C===!1||C==null?"dontcare":C,N=x?"t":"f",j=""+p,H=Pd(y,j,N,O),q=L.propCache=L.propCache||[],W;return(W=q[H])||(W=q[H]=L.parseImplWarn(y,p,x,C)),(x||C==="mapping")&&(W=P2(W),W&&(W.value=P2(W.value))),W},CC.parseImplWarn=function(y,p,x,C){var L=this.parseImpl(y,p,x,C);return!L&&p!=null&&Gc("The style property `".concat(y,": ").concat(p,"` is invalid")),L&&(L.name==="width"||L.name==="height")&&p==="label"&&Gc("The style value of `label` is deprecated for `"+L.name+"`"),L},CC.parseImpl=function(y,p,x,C){var L=this;y=pn(y);var O=L.properties[y],N=p,j=L.types;if(!O||p===void 0)return null;O.alias&&(O=O.pointsTo,y=O.name);var H=mt(p);H&&(p=p.trim());var q=O.type;if(!q)return null;if(x&&(p===""||p===null))return{name:y,value:p,bypass:!0,deleteBypass:!0};if(ct(p))return{name:y,value:p,strValue:"fn",mapped:j.fn,bypass:x};var W,Z;if(!(!H||C||p.length<7||p[1]!=="a")){if(p.length>=7&&p[0]==="d"&&(W=new RegExp(j.data.regex).exec(p))){if(x)return!1;var st=j.data;return{name:y,value:W,strValue:""+p,mapped:st,field:W[1],bypass:x}}else if(p.length>=10&&p[0]==="m"&&(Z=new RegExp(j.mapData.regex).exec(p))){if(x||q.multiple)return!1;var bt=j.mapData;if(!(q.color||q.number))return!1;var pt=this.parse(y,Z[4]);if(!pt||pt.mapped)return!1;var _t=this.parse(y,Z[5]);if(!_t||_t.mapped)return!1;if(pt.pfValue===_t.pfValue||pt.strValue===_t.strValue)return Gc("`"+y+": "+p+"` is not a valid mapper because the output range is zero; converting to `"+y+": "+pt.strValue+"`"),this.parse(y,pt.strValue);if(q.color){var St=pt.value,Et=_t.value,Nt=St[0]===Et[0]&&St[1]===Et[1]&&St[2]===Et[2]&&(St[3]===Et[3]||(St[3]==null||St[3]===1)&&(Et[3]==null||Et[3]===1));if(Nt)return!1}return{name:y,value:Z,strValue:""+p,mapped:bt,field:Z[1],fieldMin:parseFloat(Z[2]),fieldMax:parseFloat(Z[3]),valueMin:pt.value,valueMax:_t.value,bypass:x}}}if(q.multiple&&C!=="multiple"){var Pt;if(H?Pt=p.split(/\s+/):rt(p)?Pt=p:Pt=[p],q.evenMultiple&&Pt.length%2!==0)return null;for(var qt=[],re=[],ee=[],Ut="",de=!1,Yt=0;Yt<Pt.length;Yt++){var Ee=L.parse(y,Pt[Yt],x,"multiple");de=de||mt(Ee.value),qt.push(Ee.value),ee.push(Ee.pfValue!=null?Ee.pfValue:Ee.value),re.push(Ee.units),Ut+=(Yt>0?" ":"")+Ee.strValue}return q.validate&&!q.validate(qt,re)?null:q.singleEnum&&de?qt.length===1&&mt(qt[0])?{name:y,value:qt[0],strValue:qt[0],bypass:x}:null:{name:y,value:qt,pfValue:ee,strValue:Ut,bypass:x,units:re}}var Te=function(){for(var mr=0;mr<q.enums.length;mr++){var Sr=q.enums[mr];if(Sr===p)return{name:y,value:p,strValue:""+p,bypass:x}}return null};if(q.number){var ie,ze="px";if(q.units&&(ie=q.units),q.implicitUnits&&(ze=q.implicitUnits),!q.unitless)if(H){var me="px|em"+(q.allowPercent?"|\\%":"");ie&&(me=ie);var yn=p.match("^("+sn+")("+me+")?$");yn&&(p=yn[1],ie=yn[2]||ze)}else(!ie||q.implicitUnits)&&(ie=ze);if(p=parseFloat(p),isNaN(p)&&q.enums===void 0)return null;if(isNaN(p)&&q.enums!==void 0)return p=N,Te();if(q.integer&&!dt(p)||q.min!==void 0&&(p<q.min||q.strictMin&&p===q.min)||q.max!==void 0&&(p>q.max||q.strictMax&&p===q.max))return null;var nn={name:y,value:p,strValue:""+p+(ie||""),units:ie,bypass:x};return q.unitless||ie!=="px"&&ie!=="em"?nn.pfValue=p:nn.pfValue=ie==="px"||!ie?p:this.getEmSizeInPixels()*p,(ie==="ms"||ie==="s")&&(nn.pfValue=ie==="ms"?p:1e3*p),(ie==="deg"||ie==="rad")&&(nn.pfValue=ie==="rad"?p:lQ(p)),ie==="%"&&(nn.pfValue=p/100),nn}else if(q.propList){var qe=[],Tn=""+p;if(Tn!=="none"){for(var Xn=Tn.split(/\s*,\s*|\s+/),lr=0;lr<Xn.length;lr++){var Sn=Xn[lr].trim();L.properties[Sn]?qe.push(Sn):Gc("`"+Sn+"` is not a valid property name")}if(qe.length===0)return null}return{name:y,value:qe,strValue:qe.length===0?"none":qe.join(" "),bypass:x}}else if(q.color){var or=za(p);return or?{name:y,value:or,pfValue:or,strValue:"rgb("+or[0]+","+or[1]+","+or[2]+")",bypass:x}:null}else if(q.regex||q.regexes){if(q.enums){var pr=Te();if(pr)return pr}for(var kr=q.regexes?q.regexes:[q.regex],wr=0;wr<kr.length;wr++){var Cr=new RegExp(kr[wr]),$n=Cr.exec(p);if($n)return{name:y,value:q.singleRegexMatchValue?$n[1]:$n,strValue:""+p,bypass:x}}return null}else return q.string?{name:y,value:""+p,strValue:""+p,bypass:x}:q.enums?Te():null};var Y1=function y(p){if(!(this instanceof y))return new y(p);if(!It(p)){$l("A style must have a core reference");return}this._private={cy:p,coreStyle:{}},this.length=0,this.resetToDefault()},X1=Y1.prototype;X1.instanceString=function(){return"style"},X1.clear=function(){for(var y=this._private,p=y.cy,x=p.elements(),C=0;C<this.length;C++)this[C]=void 0;return this.length=0,y.contextStyles={},y.propDiffs={},this.cleanElements(x,!0),x.forEach(function(L){var O=L[0]._private;O.styleDirty=!0,O.appliedInitStyle=!1}),this},X1.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},X1.core=function(y){return this._private.coreStyle[y]||this.getDefaultProperty(y)},X1.selector=function(y){var p=y==="core"?null:new ly(y),x=this.length++;return this[x]={selector:p,properties:[],mappedProperties:[],index:x},this},X1.css=function(){var y=this,p=arguments;if(p.length===1)for(var x=p[0],C=0;C<y.properties.length;C++){var L=y.properties[C],O=x[L.name];O===void 0&&(O=x[Ae(L.name)]),O!==void 0&&this.cssRule(L.name,O)}else p.length===2&&this.cssRule(p[0],p[1]);return this},X1.style=X1.css,X1.cssRule=function(y,p){var x=this.parse(y,p);if(x){var C=this.length-1;this[C].properties.push(x),this[C].properties[x.name]=x,x.name.match(/pie-(\d+)-background-size/)&&x.value&&(this._private.hasPie=!0),x.mapped&&this[C].mappedProperties.push(x);var L=!this[C].selector;L&&(this._private.coreStyle[x.name]=x)}return this},X1.append=function(y){return jt(y)?y.appendToStyle(this):rt(y)?this.appendFromJson(y):mt(y)&&this.appendFromString(y),this},Y1.fromJson=function(y,p){var x=new Y1(y);return x.fromJson(p),x},Y1.fromString=function(y,p){return new Y1(y).fromString(p)},[W1,J8,dM,R2,TC,gM,m1,CC].forEach(function(y){we(X1,y)}),Y1.types=X1.types,Y1.properties=X1.properties,Y1.propertyGroups=X1.propertyGroups,Y1.propertyGroupNames=X1.propertyGroupNames,Y1.propertyGroupKeys=X1.propertyGroupKeys;var bet={style:function(p){if(p){var x=this.setStyle(p);x.update()}return this._private.style},setStyle:function(p){var x=this._private;return jt(p)?x.style=p.generateStyle(this):rt(p)?x.style=Y1.fromJson(this,p):mt(p)?x.style=Y1.fromString(this,p):x.style=Y1(this),x.style},updateStyle:function(){this.mutableElements().updateStyle()}},wet="single",T4={autolock:function(p){if(p!==void 0)this._private.autolock=!!p;else return this._private.autolock;return this},autoungrabify:function(p){if(p!==void 0)this._private.autoungrabify=!!p;else return this._private.autoungrabify;return this},autounselectify:function(p){if(p!==void 0)this._private.autounselectify=!!p;else return this._private.autounselectify;return this},selectionType:function(p){var x=this._private;if(x.selectionType==null&&(x.selectionType=wet),p!==void 0)(p==="additive"||p==="single")&&(x.selectionType=p);else return x.selectionType;return this},panningEnabled:function(p){if(p!==void 0)this._private.panningEnabled=!!p;else return this._private.panningEnabled;return this},userPanningEnabled:function(p){if(p!==void 0)this._private.userPanningEnabled=!!p;else return this._private.userPanningEnabled;return this},zoomingEnabled:function(p){if(p!==void 0)this._private.zoomingEnabled=!!p;else return this._private.zoomingEnabled;return this},userZoomingEnabled:function(p){if(p!==void 0)this._private.userZoomingEnabled=!!p;else return this._private.userZoomingEnabled;return this},boxSelectionEnabled:function(p){if(p!==void 0)this._private.boxSelectionEnabled=!!p;else return this._private.boxSelectionEnabled;return this},pan:function(){var p=arguments,x=this._private.pan,C,L,O,N,j;switch(p.length){case 0:return x;case 1:if(mt(p[0]))return C=p[0],x[C];if(it(p[0])){if(!this._private.panningEnabled)return this;O=p[0],N=O.x,j=O.y,Q(N)&&(x.x=N),Q(j)&&(x.y=j),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;C=p[0],L=p[1],(C==="x"||C==="y")&&Q(L)&&(x[C]=L),this.emit("pan viewport");break}return this.notify("viewport"),this},panBy:function(p,x){var C=arguments,L=this._private.pan,O,N,j,H,q;if(!this._private.panningEnabled)return this;switch(C.length){case 1:it(p)&&(j=C[0],H=j.x,q=j.y,Q(H)&&(L.x+=H),Q(q)&&(L.y+=q),this.emit("pan viewport"));break;case 2:O=p,N=x,(O==="x"||O==="y")&&Q(N)&&(L[O]+=N),this.emit("pan viewport");break}return this.notify("viewport"),this},fit:function(p,x){var C=this.getFitViewport(p,x);if(C){var L=this._private;L.zoom=C.zoom,L.pan=C.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(p,x){if(Q(p)&&x===void 0&&(x=p,p=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var C;if(mt(p)){var L=p;p=this.$(L)}else if(kt(p)){var O=p;C={x1:O.x1,y1:O.y1,x2:O.x2,y2:O.y2},C.w=C.x2-C.x1,C.h=C.y2-C.y1}else yt(p)||(p=this.mutableElements());if(!(yt(p)&&p.empty())){C=C||p.boundingBox();var N=this.width(),j=this.height(),H;if(x=Q(x)?x:0,!isNaN(N)&&!isNaN(j)&&N>0&&j>0&&!isNaN(C.w)&&!isNaN(C.h)&&C.w>0&&C.h>0){H=Math.min((N-2*x)/C.w,(j-2*x)/C.h),H=H>this._private.maxZoom?this._private.maxZoom:H,H=H<this._private.minZoom?this._private.minZoom:H;var q={x:(N-H*(C.x1+C.x2))/2,y:(j-H*(C.y1+C.y2))/2};return{zoom:H,pan:q}}}}},zoomRange:function(p,x){var C=this._private;if(x==null){var L=p;p=L.min,x=L.max}return Q(p)&&Q(x)&&p<=x?(C.minZoom=p,C.maxZoom=x):Q(p)&&x===void 0&&p<=C.maxZoom?C.minZoom=p:Q(x)&&p===void 0&&x>=C.minZoom&&(C.maxZoom=x),this},minZoom:function(p){return p===void 0?this._private.minZoom:this.zoomRange({min:p})},maxZoom:function(p){return p===void 0?this._private.maxZoom:this.zoomRange({max:p})},getZoomedViewport:function(p){var x=this._private,C=x.pan,L=x.zoom,O,N,j=!1;if(x.zoomingEnabled||(j=!0),Q(p)?N=p:it(p)&&(N=p.level,p.position!=null?O=W9(p.position,L,C):p.renderedPosition!=null&&(O=p.renderedPosition),O!=null&&!x.panningEnabled&&(j=!0)),N=N>x.maxZoom?x.maxZoom:N,N=N<x.minZoom?x.minZoom:N,j||!Q(N)||N===L||O!=null&&(!Q(O.x)||!Q(O.y)))return null;if(O!=null){var H=C,q=L,W=N,Z={x:-W/q*(O.x-H.x)+O.x,y:-W/q*(O.y-H.y)+O.y};return{zoomed:!0,panned:!0,zoom:W,pan:Z}}else return{zoomed:!0,panned:!1,zoom:N,pan:C}},zoom:function(p){if(p===void 0)return this._private.zoom;var x=this.getZoomedViewport(p),C=this._private;return x==null||!x.zoomed?this:(C.zoom=x.zoom,x.panned&&(C.pan.x=x.pan.x,C.pan.y=x.pan.y),this.emit("zoom"+(x.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},viewport:function(p){var x=this._private,C=!0,L=!0,O=[],N=!1,j=!1;if(!p)return this;if(Q(p.zoom)||(C=!1),it(p.pan)||(L=!1),!C&&!L)return this;if(C){var H=p.zoom;H<x.minZoom||H>x.maxZoom||!x.zoomingEnabled?N=!0:(x.zoom=H,O.push("zoom"))}if(L&&(!N||!p.cancelOnFailedZoom)&&x.panningEnabled){var q=p.pan;Q(q.x)&&(x.pan.x=q.x,j=!1),Q(q.y)&&(x.pan.y=q.y,j=!1),j||O.push("pan")}return O.length>0&&(O.push("viewport"),this.emit(O.join(" ")),this.notify("viewport")),this},center:function(p){var x=this.getCenterPan(p);return x&&(this._private.pan=x,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(p,x){if(this._private.panningEnabled){if(mt(p)){var C=p;p=this.mutableElements().filter(C)}else yt(p)||(p=this.mutableElements());if(p.length!==0){var L=p.boundingBox(),O=this.width(),N=this.height();x=x===void 0?this._private.zoom:x;var j={x:(O-x*(L.x1+L.x2))/2,y:(N-x*(L.y1+L.y2))/2};return j}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var p=this._private,x=p.container,C=this;return p.sizeCache=p.sizeCache||(x?function(){var L=C.window().getComputedStyle(x),O=function(j){return parseFloat(L.getPropertyValue(j))};return{width:x.clientWidth-O("padding-left")-O("padding-right"),height:x.clientHeight-O("padding-top")-O("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var p=this._private.pan,x=this._private.zoom,C=this.renderedExtent(),L={x1:(C.x1-p.x)/x,x2:(C.x2-p.x)/x,y1:(C.y1-p.y)/x,y2:(C.y2-p.y)/x};return L.w=L.x2-L.x1,L.h=L.y2-L.y1,L},renderedExtent:function(){var p=this.width(),x=this.height();return{x1:0,y1:0,x2:p,y2:x,w:p,h:x}},multiClickDebounceTime:function(p){if(p)this._private.multiClickDebounceTime=p;else return this._private.multiClickDebounceTime;return this}};T4.centre=T4.center,T4.autolockNodes=T4.autolock,T4.autoungrabifyNodes=T4.autoungrabify;var Z8={data:Kc.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Kc.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Kc.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Kc.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Z8.attr=Z8.data,Z8.removeAttr=Z8.removeData;var tE=function(p){var x=this;p=we({},p);var C=p.container;C&&!K(C)&&K(C[0])&&(C=C[0]);var L=C?C._cyreg:null;L=L||{},L&&L.cy&&(L.cy.destroy(),L={});var O=L.readies=L.readies||[];C&&(C._cyreg=L),L.cy=x;var N=B!==void 0&&C!==void 0&&!p.headless,j=p;j.layout=we({name:N?"grid":"null"},j.layout),j.renderer=we({name:N?"canvas":"null"},j.renderer);var H=function(pt,_t,St){return _t!==void 0?_t:St!==void 0?St:pt},q=this._private={container:C,ready:!1,options:j,elements:new w1(this),listeners:[],aniEles:new w1(this),data:j.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:H(!0,j.zoomingEnabled),userZoomingEnabled:H(!0,j.userZoomingEnabled),panningEnabled:H(!0,j.panningEnabled),userPanningEnabled:H(!0,j.userPanningEnabled),boxSelectionEnabled:H(!0,j.boxSelectionEnabled),autolock:H(!1,j.autolock,j.autolockNodes),autoungrabify:H(!1,j.autoungrabify,j.autoungrabifyNodes),autounselectify:H(!1,j.autounselectify),styleEnabled:j.styleEnabled===void 0?N:j.styleEnabled,zoom:Q(j.zoom)?j.zoom:1,pan:{x:it(j.pan)&&Q(j.pan.x)?j.pan.x:0,y:it(j.pan)&&Q(j.pan.y)?j.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:H(250,j.multiClickDebounceTime)};this.createEmitter(),this.selectionType(j.selectionType),this.zoomRange({min:j.minZoom,max:j.maxZoom});var W=function(pt,_t){var St=pt.some(Gt);if(St)return e6.all(pt).then(_t);_t(pt)};q.styleEnabled&&x.setStyle([]);var Z=we({},j,j.renderer);x.initRenderer(Z);var st=function(pt,_t,St){x.notifications(!1);var Et=x.mutableElements();Et.length>0&&Et.remove(),pt!=null&&(it(pt)||rt(pt))&&x.add(pt),x.one("layoutready",function(Pt){x.notifications(!0),x.emit(Pt),x.one("load",_t),x.emitAndNotify("load")}).one("layoutstop",function(){x.one("done",St),x.emit("done")});var Nt=we({},x._private.options.layout);Nt.eles=x.elements(),x.layout(Nt).run()};W([j.style,j.elements],function(bt){var pt=bt[0],_t=bt[1];q.styleEnabled&&x.style().append(pt),st(_t,function(){x.startAnimationLoop(),q.ready=!0,ct(j.ready)&&x.on("ready",j.ready);for(var St=0;St<O.length;St++){var Et=O[St];x.on("ready",Et)}L&&(L.readies=[]),x.emit("ready")},j.done)})},SC=tE.prototype;we(SC,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(p){return this.isReady()?this.emitter().emit("ready",[],p):this.on("ready",p),this},destroy:function(){var p=this;if(!p.destroyed())return p.stopAnimationLoop(),p.destroyRenderer(),this.emit("destroy"),p._private.destroyed=!0,p},hasElementWithId:function(p){return this._private.elements.hasElementWithId(p)},getElementById:function(p){return this._private.elements.getElementById(p)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(p){return this._private.elements.merge(p),this},removeFromPool:function(p){return this._private.elements.unmerge(p),this},container:function(){return this._private.container||null},window:function(){var p=this._private.container;if(p==null)return B;var x=this._private.container.ownerDocument;return x===void 0||x==null?B:x.defaultView||B},mount:function(p){if(p!=null){var x=this,C=x._private,L=C.options;return!K(p)&&K(p[0])&&(p=p[0]),x.stopAnimationLoop(),x.destroyRenderer(),C.container=p,C.styleEnabled=!0,x.invalidateSize(),x.initRenderer(we({},L,L.renderer,{name:L.renderer.name==="null"?"canvas":L.renderer.name})),x.startAnimationLoop(),x.style(L.style),x.emit("mount"),x}},unmount:function(){var p=this;return p.stopAnimationLoop(),p.destroyRenderer(),p.initRenderer({name:"null"}),p.emit("unmount"),p},options:function(){return P2(this._private.options)},json:function(p){var x=this,C=x._private,L=x.mutableElements(),O=function(qt){return x.getElementById(qt.id())};if(it(p)){if(x.startBatch(),p.elements){var N={},j=function(qt,re){for(var ee=[],Ut=[],de=0;de<qt.length;de++){var Yt=qt[de];if(!Yt.data.id){Gc("cy.json() cannot handle elements without an ID attribute");continue}var Ee=""+Yt.data.id,Te=x.getElementById(Ee);N[Ee]=!0,Te.length!==0?Ut.push({ele:Te,json:Yt}):(re&&(Yt.group=re),ee.push(Yt))}x.add(ee);for(var ie=0;ie<Ut.length;ie++){var ze=Ut[ie],me=ze.ele,yn=ze.json;me.json(yn)}};if(rt(p.elements))j(p.elements);else for(var H=["nodes","edges"],q=0;q<H.length;q++){var W=H[q],Z=p.elements[W];rt(Z)&&j(Z,W)}var st=x.collection();L.filter(function(Pt){return!N[Pt.id()]}).forEach(function(Pt){Pt.isParent()?st.merge(Pt):Pt.remove()}),st.forEach(function(Pt){return Pt.children().move({parent:null})}),st.forEach(function(Pt){return O(Pt).remove()})}p.style&&x.style(p.style),p.zoom!=null&&p.zoom!==C.zoom&&x.zoom(p.zoom),p.pan&&(p.pan.x!==C.pan.x||p.pan.y!==C.pan.y)&&x.pan(p.pan),p.data&&x.data(p.data);for(var bt=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],pt=0;pt<bt.length;pt++){var _t=bt[pt];p[_t]!=null&&x[_t](p[_t])}return x.endBatch(),this}else{var St=!!p,Et={};St?Et.elements=this.elements().map(function(Pt){return Pt.json()}):(Et.elements={},L.forEach(function(Pt){var qt=Pt.group();Et.elements[qt]||(Et.elements[qt]=[]),Et.elements[qt].push(Pt.json())})),this._private.styleEnabled&&(Et.style=x.style().json()),Et.data=P2(x.data());var Nt=C.options;return Et.zoomingEnabled=C.zoomingEnabled,Et.userZoomingEnabled=C.userZoomingEnabled,Et.zoom=C.zoom,Et.minZoom=C.minZoom,Et.maxZoom=C.maxZoom,Et.panningEnabled=C.panningEnabled,Et.userPanningEnabled=C.userPanningEnabled,Et.pan=P2(C.pan),Et.boxSelectionEnabled=C.boxSelectionEnabled,Et.renderer=P2(Nt.renderer),Et.hideEdgesOnViewport=Nt.hideEdgesOnViewport,Et.textureOnViewport=Nt.textureOnViewport,Et.wheelSensitivity=Nt.wheelSensitivity,Et.motionBlur=Nt.motionBlur,Et.multiClickDebounceTime=Nt.multiClickDebounceTime,Et}}}),SC.$id=SC.getElementById,[set,het,oj,hM,kC,det,fM,EC,bet,T4,Z8].forEach(function(y){we(SC,y)});var met={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(p,x){return!0},ready:void 0,stop:void 0,transform:function(p,x){return x}},vet={maximal:!1,acyclic:!1},f6=function(p){return p.scratch("breadthfirst")},cj=function(p,x){return p.scratch("breadthfirst",x)};function uj(y){this.options=we({},met,vet,y)}uj.prototype.run=function(){var y=this.options,p=y,x=y.cy,C=p.eles,L=C.nodes().filter(function(vi){return!vi.isParent()}),O=C,N=p.directed,j=p.acyclic||p.maximal||p.maximalAdjustments>0,H=v0(p.boundingBox?p.boundingBox:{x1:0,y1:0,w:x.width(),h:x.height()}),q;if(yt(p.roots))q=p.roots;else if(rt(p.roots)){for(var W=[],Z=0;Z<p.roots.length;Z++){var st=p.roots[Z],bt=x.getElementById(st);W.push(bt)}q=x.collection(W)}else if(mt(p.roots))q=x.$(p.roots);else if(N)q=L.roots();else{var pt=C.components();q=x.collection();for(var _t=function(si){var Qi=pt[si],ks=Qi.maxDegree(!1),as=Qi.filter(function(Es){return Es.degree(!1)===ks});q=q.add(as)},St=0;St<pt.length;St++)_t(St)}var Et=[],Nt={},Pt=function(si,Qi){Et[Qi]==null&&(Et[Qi]=[]);var ks=Et[Qi].length;Et[Qi].push(si),cj(si,{index:ks,depth:Qi})},qt=function(si,Qi){var ks=f6(si),as=ks.depth,Es=ks.index;Et[as][Es]=null,Pt(si,Qi)};O.bfs({roots:q,directed:p.directed,visit:function(si,Qi,ks,as,Es){var eo=si[0],Ta=eo.id();Pt(eo,Es),Nt[Ta]=!0}});for(var re=[],ee=0;ee<L.length;ee++){var Ut=L[ee];Nt[Ut.id()]||re.push(Ut)}var de=function(si){for(var Qi=Et[si],ks=0;ks<Qi.length;ks++){var as=Qi[ks];if(as==null){Qi.splice(ks,1),ks--;continue}cj(as,{depth:si,index:ks})}},Yt=function(){for(var si=0;si<Et.length;si++)de(si)},Ee=function(si,Qi){for(var ks=f6(si),as=si.incomers().filter(function(G){return G.isNode()&&C.has(G)}),Es=-1,eo=si.id(),Ta=0;Ta<as.length;Ta++){var pa=as[Ta],mo=f6(pa);Es=Math.max(Es,mo.depth)}if(ks.depth<=Es){if(!p.acyclic&&Qi[eo])return null;var Kn=Es+1;return qt(si,Kn),Qi[eo]=Kn,!0}return!1};if(N&&j){var Te=[],ie={},ze=function(si){return Te.push(si)},me=function(){return Te.shift()};for(L.forEach(function(vi){return Te.push(vi)});Te.length>0;){var yn=me(),nn=Ee(yn,ie);if(nn)yn.outgoers().filter(function(vi){return vi.isNode()&&C.has(vi)}).forEach(ze);else if(nn===null){Gc("Detected double maximal shift for node `"+yn.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}Yt();var qe=0;if(p.avoidOverlap)for(var Tn=0;Tn<L.length;Tn++){var Xn=L[Tn],lr=Xn.layoutDimensions(p),Sn=lr.w,or=lr.h;qe=Math.max(qe,Sn,or)}var pr={},kr=function(si){if(pr[si.id()])return pr[si.id()];for(var Qi=f6(si).depth,ks=si.neighborhood(),as=0,Es=0,eo=0;eo<ks.length;eo++){var Ta=ks[eo];if(!(Ta.isEdge()||Ta.isParent()||!L.has(Ta))){var pa=f6(Ta);if(pa!=null){var mo=pa.index,Kn=pa.depth;if(!(mo==null||Kn==null)){var G=Et[Kn].length;Kn<Qi&&(as+=mo/G,Es++)}}}}return Es=Math.max(1,Es),as=as/Es,Es===0&&(as=0),pr[si.id()]=as,as},wr=function(si,Qi){var ks=kr(si),as=kr(Qi),Es=ks-as;return Es===0?ce(si.id(),Qi.id()):Es};p.depthSort!==void 0&&(wr=p.depthSort);for(var Cr=0;Cr<Et.length;Cr++)Et[Cr].sort(wr),de(Cr);for(var $n=[],cr=0;cr<re.length;cr++)$n.push(re[cr]);Et.unshift($n),Yt();for(var mr=0,Sr=0;Sr<Et.length;Sr++)mr=Math.max(Et[Sr].length,mr);var gi={x:H.x1+H.w/2,y:H.x1+H.h/2},ss=Et.reduce(function(vi,si){return Math.max(vi,si.length)},0),na=function(si){var Qi=f6(si),ks=Qi.depth,as=Qi.index,Es=Et[ks].length,eo=Math.max(H.w/((p.grid?ss:Es)+1),qe),Ta=Math.max(H.h/(Et.length+1),qe),pa=Math.min(H.w/2/Et.length,H.h/2/Et.length);if(pa=Math.max(pa,qe),p.circle){var Kn=pa*ks+pa-(Et.length>0&&Et[0].length<=3?pa/2:0),G=2*Math.PI/Et[ks].length*as;return ks===0&&Et[0].length===1&&(Kn=1),{x:gi.x+Kn*Math.cos(G),y:gi.y+Kn*Math.sin(G)}}else{var mo={x:gi.x+(as+1-(Es+1)/2)*eo,y:(ks+1)*Ta};return mo}};return C.nodes().layoutPositions(this,p,na),this};var yet={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(p,x){return!0},ready:void 0,stop:void 0,transform:function(p,x){return x}};function lj(y){this.options=we({},yet,y)}lj.prototype.run=function(){var y=this.options,p=y,x=y.cy,C=p.eles,L=p.counterclockwise!==void 0?!p.counterclockwise:p.clockwise,O=C.nodes().not(":parent");p.sort&&(O=O.sort(p.sort));for(var N=v0(p.boundingBox?p.boundingBox:{x1:0,y1:0,w:x.width(),h:x.height()}),j={x:N.x1+N.w/2,y:N.y1+N.h/2},H=p.sweep===void 0?2*Math.PI-2*Math.PI/O.length:p.sweep,q=H/Math.max(1,O.length-1),W,Z=0,st=0;st<O.length;st++){var bt=O[st],pt=bt.layoutDimensions(p),_t=pt.w,St=pt.h;Z=Math.max(Z,_t,St)}if(Q(p.radius)?W=p.radius:O.length<=1?W=0:W=Math.min(N.h,N.w)/2-Z,O.length>1&&p.avoidOverlap){Z*=1.75;var Et=Math.cos(q)-Math.cos(0),Nt=Math.sin(q)-Math.sin(0),Pt=Math.sqrt(Z*Z/(Et*Et+Nt*Nt));W=Math.max(Pt,W)}var qt=function(ee,Ut){var de=p.startAngle+Ut*q*(L?1:-1),Yt=W*Math.cos(de),Ee=W*Math.sin(de),Te={x:j.x+Yt,y:j.y+Ee};return Te};return C.nodes().layoutPositions(this,p,qt),this};var xet={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(p){return p.degree()},levelWidth:function(p){return p.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(p,x){return!0},ready:void 0,stop:void 0,transform:function(p,x){return x}};function hj(y){this.options=we({},xet,y)}hj.prototype.run=function(){for(var y=this.options,p=y,x=p.counterclockwise!==void 0?!p.counterclockwise:p.clockwise,C=y.cy,L=p.eles,O=L.nodes().not(":parent"),N=v0(p.boundingBox?p.boundingBox:{x1:0,y1:0,w:C.width(),h:C.height()}),j={x:N.x1+N.w/2,y:N.y1+N.h/2},H=[],q=0,W=0;W<O.length;W++){var Z=O[W],st=void 0;st=p.concentric(Z),H.push({value:st,node:Z}),Z._private.scratch.concentric=st}O.updateStyle();for(var bt=0;bt<O.length;bt++){var pt=O[bt],_t=pt.layoutDimensions(p);q=Math.max(q,_t.w,_t.h)}H.sort(function(vi,si){return si.value-vi.value});for(var St=p.levelWidth(O),Et=[[]],Nt=Et[0],Pt=0;Pt<H.length;Pt++){var qt=H[Pt];if(Nt.length>0){var re=Math.abs(Nt[0].value-qt.value);re>=St&&(Nt=[],Et.push(Nt))}Nt.push(qt)}var ee=q+p.minNodeSpacing;if(!p.avoidOverlap){var Ut=Et.length>0&&Et[0].length>1,de=Math.min(N.w,N.h)/2-ee,Yt=de/(Et.length+Ut?1:0);ee=Math.min(ee,Yt)}for(var Ee=0,Te=0;Te<Et.length;Te++){var ie=Et[Te],ze=p.sweep===void 0?2*Math.PI-2*Math.PI/ie.length:p.sweep,me=ie.dTheta=ze/Math.max(1,ie.length-1);if(ie.length>1&&p.avoidOverlap){var yn=Math.cos(me)-Math.cos(0),nn=Math.sin(me)-Math.sin(0),qe=Math.sqrt(ee*ee/(yn*yn+nn*nn));Ee=Math.max(qe,Ee)}ie.r=Ee,Ee+=ee}if(p.equidistant){for(var Tn=0,Xn=0,lr=0;lr<Et.length;lr++){var Sn=Et[lr],or=Sn.r-Xn;Tn=Math.max(Tn,or)}Xn=0;for(var pr=0;pr<Et.length;pr++){var kr=Et[pr];pr===0&&(Xn=kr.r),kr.r=Xn,Xn+=Tn}}for(var wr={},Cr=0;Cr<Et.length;Cr++)for(var $n=Et[Cr],cr=$n.dTheta,mr=$n.r,Sr=0;Sr<$n.length;Sr++){var gi=$n[Sr],ss=p.startAngle+(x?1:-1)*cr*Sr,na={x:j.x+mr*Math.cos(ss),y:j.y+mr*Math.sin(ss)};wr[gi.node.id()]=na}return L.nodes().layoutPositions(this,p,function(vi){var si=vi.id();return wr[si]}),this};var pM,ket={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(p,x){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(p){return 2048},nodeOverlap:4,idealEdgeLength:function(p){return 32},edgeElasticity:function(p){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function _C(y){this.options=we({},ket,y),this.options.layout=this;var p=this.options.eles.nodes(),x=this.options.eles.edges(),C=x.filter(function(L){var O=L.source().data("id"),N=L.target().data("id"),j=p.some(function(q){return q.data("id")===O}),H=p.some(function(q){return q.data("id")===N});return!j||!H});this.options.eles=this.options.eles.not(C)}_C.prototype.run=function(){var y=this.options,p=y.cy,x=this;x.stopped=!1,(y.animate===!0||y.animate===!1)&&x.emit({type:"layoutstart",layout:x}),y.debug===!0?pM=!0:pM=!1;var C=Eet(p,x,y);pM&&_et(C),y.randomize&&Aet(C);var L=ip(),O=function(){Let(C,p,y),y.fit===!0&&p.fit(y.padding)},N=function(st){return!(x.stopped||st>=y.numIter||(Det(C,y),C.temperature=C.temperature*y.coolingFactor,C.temperature<y.minTemp))},j=function(){if(y.animate===!0||y.animate===!1)O(),x.one("layoutstop",y.stop),x.emit({type:"layoutstop",layout:x});else{var st=y.eles.nodes(),bt=fj(C,y,st);st.layoutPositions(x,y,bt)}},H=0,q=!0;if(y.animate===!0){var W=function Z(){for(var st=0;q&&st<y.refresh;)q=N(H),H++,st++;if(!q)gj(C,y),j();else{var bt=ip();bt-L>=y.animationThreshold&&O(),g1(Z)}};W()}else{for(;q;)q=N(H),H++;gj(C,y),j()}return this},_C.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},_C.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Eet=function(p,x,C){for(var L=C.eles.edges(),O=C.eles.nodes(),N=v0(C.boundingBox?C.boundingBox:{x1:0,y1:0,w:p.width(),h:p.height()}),j={isCompound:p.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:O.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:L.size(),temperature:C.initialTemp,clientWidth:N.w,clientHeight:N.h,boundingBox:N},H=C.eles.components(),q={},W=0;W<H.length;W++)for(var Z=H[W],st=0;st<Z.length;st++){var bt=Z[st];q[bt.id()]=W}for(var W=0;W<j.nodeSize;W++){var pt=O[W],_t=pt.layoutDimensions(C),St={};St.isLocked=pt.locked(),St.id=pt.data("id"),St.parentId=pt.data("parent"),St.cmptId=q[pt.id()],St.children=[],St.positionX=pt.position("x"),St.positionY=pt.position("y"),St.offsetX=0,St.offsetY=0,St.height=_t.w,St.width=_t.h,St.maxX=St.positionX+St.width/2,St.minX=St.positionX-St.width/2,St.maxY=St.positionY+St.height/2,St.minY=St.positionY-St.height/2,St.padLeft=parseFloat(pt.style("padding")),St.padRight=parseFloat(pt.style("padding")),St.padTop=parseFloat(pt.style("padding")),St.padBottom=parseFloat(pt.style("padding")),St.nodeRepulsion=ct(C.nodeRepulsion)?C.nodeRepulsion(pt):C.nodeRepulsion,j.layoutNodes.push(St),j.idToIndex[St.id]=W}for(var Et=[],Nt=0,Pt=-1,qt=[],W=0;W<j.nodeSize;W++){var pt=j.layoutNodes[W],re=pt.parentId;re!=null?j.layoutNodes[j.idToIndex[re]].children.push(pt.id):(Et[++Pt]=pt.id,qt.push(pt.id))}for(j.graphSet.push(qt);Nt<=Pt;){var ee=Et[Nt++],Ut=j.idToIndex[ee],bt=j.layoutNodes[Ut],de=bt.children;if(de.length>0){j.graphSet.push(de);for(var W=0;W<de.length;W++)Et[++Pt]=de[W]}}for(var W=0;W<j.graphSet.length;W++)for(var Yt=j.graphSet[W],st=0;st<Yt.length;st++){var Ee=j.idToIndex[Yt[st]];j.indexToGraph[Ee]=W}for(var W=0;W<j.edgeSize;W++){var Te=L[W],ie={};ie.id=Te.data("id"),ie.sourceId=Te.data("source"),ie.targetId=Te.data("target");var ze=ct(C.idealEdgeLength)?C.idealEdgeLength(Te):C.idealEdgeLength,me=ct(C.edgeElasticity)?C.edgeElasticity(Te):C.edgeElasticity,yn=j.idToIndex[ie.sourceId],nn=j.idToIndex[ie.targetId],qe=j.indexToGraph[yn],Tn=j.indexToGraph[nn];if(qe!=Tn){for(var Xn=Tet(ie.sourceId,ie.targetId,j),lr=j.graphSet[Xn],Sn=0,St=j.layoutNodes[yn];lr.indexOf(St.id)===-1;)St=j.layoutNodes[j.idToIndex[St.parentId]],Sn++;for(St=j.layoutNodes[nn];lr.indexOf(St.id)===-1;)St=j.layoutNodes[j.idToIndex[St.parentId]],Sn++;ze*=Sn*C.nestingFactor}ie.idealLength=ze,ie.elasticity=me,j.layoutEdges.push(ie)}return j},Tet=function(p,x,C){var L=Cet(p,x,0,C);return 2>L.count?0:L.graph},Cet=function y(p,x,C,L){var O=L.graphSet[C];if(-1<O.indexOf(p)&&-1<O.indexOf(x))return{count:2,graph:C};for(var N=0,j=0;j<O.length;j++){var H=O[j],q=L.idToIndex[H],W=L.layoutNodes[q].children;if(W.length!==0){var Z=L.indexToGraph[L.idToIndex[W[0]]],st=y(p,x,Z,L);if(st.count!==0)if(st.count===1){if(N++,N===2)break}else return st}}return{count:N,graph:C}},_et,Aet=function(p,x){for(var C=p.clientWidth,L=p.clientHeight,O=0;O<p.nodeSize;O++){var N=p.layoutNodes[O];N.children.length===0&&!N.isLocked&&(N.positionX=Math.random()*C,N.positionY=Math.random()*L)}},fj=function(p,x,C){var L=p.boundingBox,O={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return x.boundingBox&&(C.forEach(function(N){var j=p.layoutNodes[p.idToIndex[N.data("id")]];O.x1=Math.min(O.x1,j.positionX),O.x2=Math.max(O.x2,j.positionX),O.y1=Math.min(O.y1,j.positionY),O.y2=Math.max(O.y2,j.positionY)}),O.w=O.x2-O.x1,O.h=O.y2-O.y1),function(N,j){var H=p.layoutNodes[p.idToIndex[N.data("id")]];if(x.boundingBox){var q=(H.positionX-O.x1)/O.w,W=(H.positionY-O.y1)/O.h;return{x:L.x1+q*L.w,y:L.y1+W*L.h}}else return{x:H.positionX,y:H.positionY}}},Let=function(p,x,C){var L=C.layout,O=C.eles.nodes(),N=fj(p,C,O);O.positions(N),p.ready!==!0&&(p.ready=!0,L.one("layoutready",C.ready),L.emit({type:"layoutready",layout:this}))},Det=function(p,x,C){Met(p,x),Net(p),Pet(p,x),Fet(p),Bet(p)},Met=function(p,x){for(var C=0;C<p.graphSet.length;C++)for(var L=p.graphSet[C],O=L.length,N=0;N<O;N++)for(var j=p.layoutNodes[p.idToIndex[L[N]]],H=N+1;H<O;H++){var q=p.layoutNodes[p.idToIndex[L[H]]];Iet(j,q,p,x)}},dj=function(p){return-p+2*p*Math.random()},Iet=function(p,x,C,L){var O=p.cmptId,N=x.cmptId;if(!(O!==N&&!C.isCompound)){var j=x.positionX-p.positionX,H=x.positionY-p.positionY,q=1;j===0&&H===0&&(j=dj(q),H=dj(q));var W=Oet(p,x,j,H);if(W>0)var Z=L.nodeOverlap*W,st=Math.sqrt(j*j+H*H),bt=Z*j/st,pt=Z*H/st;else var _t=AC(p,j,H),St=AC(x,-1*j,-1*H),Et=St.x-_t.x,Nt=St.y-_t.y,Pt=Et*Et+Nt*Nt,st=Math.sqrt(Pt),Z=(p.nodeRepulsion+x.nodeRepulsion)/Pt,bt=Z*Et/st,pt=Z*Nt/st;p.isLocked||(p.offsetX-=bt,p.offsetY-=pt),x.isLocked||(x.offsetX+=bt,x.offsetY+=pt)}},Oet=function(p,x,C,L){if(C>0)var O=p.maxX-x.minX;else var O=x.maxX-p.minX;if(L>0)var N=p.maxY-x.minY;else var N=x.maxY-p.minY;return O>=0&&N>=0?Math.sqrt(O*O+N*N):0},AC=function(p,x,C){var L=p.positionX,O=p.positionY,N=p.height||1,j=p.width||1,H=C/x,q=N/j,W={};return x===0&&0<C||x===0&&0>C?(W.x=L,W.y=O+N/2,W):0<x&&-1*q<=H&&H<=q?(W.x=L+j/2,W.y=O+j*C/2/x,W):0>x&&-1*q<=H&&H<=q?(W.x=L-j/2,W.y=O-j*C/2/x,W):0<C&&(H<=-1*q||H>=q)?(W.x=L+N*x/2/C,W.y=O+N/2,W):(0>C&&(H<=-1*q||H>=q)&&(W.x=L-N*x/2/C,W.y=O-N/2),W)},Net=function(p,x){for(var C=0;C<p.edgeSize;C++){var L=p.layoutEdges[C],O=p.idToIndex[L.sourceId],N=p.layoutNodes[O],j=p.idToIndex[L.targetId],H=p.layoutNodes[j],q=H.positionX-N.positionX,W=H.positionY-N.positionY;if(!(q===0&&W===0)){var Z=AC(N,q,W),st=AC(H,-1*q,-1*W),bt=st.x-Z.x,pt=st.y-Z.y,_t=Math.sqrt(bt*bt+pt*pt),St=Math.pow(L.idealLength-_t,2)/L.elasticity;if(_t!==0)var Et=St*bt/_t,Nt=St*pt/_t;else var Et=0,Nt=0;N.isLocked||(N.offsetX+=Et,N.offsetY+=Nt),H.isLocked||(H.offsetX-=Et,H.offsetY-=Nt)}}},Pet=function(p,x){if(x.gravity!==0)for(var C=1,L=0;L<p.graphSet.length;L++){var O=p.graphSet[L],N=O.length;if(L===0)var j=p.clientHeight/2,H=p.clientWidth/2;else var q=p.layoutNodes[p.idToIndex[O[0]]],W=p.layoutNodes[p.idToIndex[q.parentId]],j=W.positionX,H=W.positionY;for(var Z=0;Z<N;Z++){var st=p.layoutNodes[p.idToIndex[O[Z]]];if(!st.isLocked){var bt=j-st.positionX,pt=H-st.positionY,_t=Math.sqrt(bt*bt+pt*pt);if(_t>C){var St=x.gravity*bt/_t,Et=x.gravity*pt/_t;st.offsetX+=St,st.offsetY+=Et}}}}},Fet=function(p,x){var C=[],L=0,O=-1;for(C.push.apply(C,p.graphSet[0]),O+=p.graphSet[0].length;L<=O;){var N=C[L++],j=p.idToIndex[N],H=p.layoutNodes[j],q=H.children;if(0<q.length&&!H.isLocked){for(var W=H.offsetX,Z=H.offsetY,st=0;st<q.length;st++){var bt=p.layoutNodes[p.idToIndex[q[st]]];bt.offsetX+=W,bt.offsetY+=Z,C[++O]=q[st]}H.offsetX=0,H.offsetY=0}}},Bet=function(p,x){for(var C=0;C<p.nodeSize;C++){var L=p.layoutNodes[C];0<L.children.length&&(L.maxX=void 0,L.minX=void 0,L.maxY=void 0,L.minY=void 0)}for(var C=0;C<p.nodeSize;C++){var L=p.layoutNodes[C];if(!(0<L.children.length||L.isLocked)){var O=Ret(L.offsetX,L.offsetY,p.temperature);L.positionX+=O.x,L.positionY+=O.y,L.offsetX=0,L.offsetY=0,L.minX=L.positionX-L.width,L.maxX=L.positionX+L.width,L.minY=L.positionY-L.height,L.maxY=L.positionY+L.height,jet(L,p)}}for(var C=0;C<p.nodeSize;C++){var L=p.layoutNodes[C];0<L.children.length&&!L.isLocked&&(L.positionX=(L.maxX+L.minX)/2,L.positionY=(L.maxY+L.minY)/2,L.width=L.maxX-L.minX,L.height=L.maxY-L.minY)}},Ret=function(p,x,C){var L=Math.sqrt(p*p+x*x);if(L>C)var O={x:C*p/L,y:C*x/L};else var O={x:p,y:x};return O},jet=function y(p,x){var C=p.parentId;if(C!=null){var L=x.layoutNodes[x.idToIndex[C]],O=!1;if((L.maxX==null||p.maxX+L.padRight>L.maxX)&&(L.maxX=p.maxX+L.padRight,O=!0),(L.minX==null||p.minX-L.padLeft<L.minX)&&(L.minX=p.minX-L.padLeft,O=!0),(L.maxY==null||p.maxY+L.padBottom>L.maxY)&&(L.maxY=p.maxY+L.padBottom,O=!0),(L.minY==null||p.minY-L.padTop<L.minY)&&(L.minY=p.minY-L.padTop,O=!0),O)return y(L,x)}},gj=function(p,x){for(var C=p.layoutNodes,L=[],O=0;O<C.length;O++){var N=C[O],j=N.cmptId,H=L[j]=L[j]||[];H.push(N)}for(var q=0,O=0;O<L.length;O++){var W=L[O];if(W){W.x1=1/0,W.x2=-1/0,W.y1=1/0,W.y2=-1/0;for(var Z=0;Z<W.length;Z++){var st=W[Z];W.x1=Math.min(W.x1,st.positionX-st.width/2),W.x2=Math.max(W.x2,st.positionX+st.width/2),W.y1=Math.min(W.y1,st.positionY-st.height/2),W.y2=Math.max(W.y2,st.positionY+st.height/2)}W.w=W.x2-W.x1,W.h=W.y2-W.y1,q+=W.w*W.h}}L.sort(function(Nt,Pt){return Pt.w*Pt.h-Nt.w*Nt.h});for(var bt=0,pt=0,_t=0,St=0,Et=Math.sqrt(q)*p.clientWidth/p.clientHeight,O=0;O<L.length;O++){var W=L[O];if(W){for(var Z=0;Z<W.length;Z++){var st=W[Z];st.isLocked||(st.positionX+=bt-W.x1,st.positionY+=pt-W.y1)}bt+=W.w+x.componentSpacing,_t+=W.w+x.componentSpacing,St=Math.max(St,W.h),_t>Et&&(pt+=St+x.componentSpacing,bt=0,_t=0,St=0)}}},$et={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(p){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(p,x){return!0},ready:void 0,stop:void 0,transform:function(p,x){return x}};function pj(y){this.options=we({},$et,y)}pj.prototype.run=function(){var y=this.options,p=y,x=y.cy,C=p.eles,L=C.nodes().not(":parent");p.sort&&(L=L.sort(p.sort));var O=v0(p.boundingBox?p.boundingBox:{x1:0,y1:0,w:x.width(),h:x.height()});if(O.h===0||O.w===0)C.nodes().layoutPositions(this,p,function(pr){return{x:O.x1,y:O.y1}});else{var N=L.size(),j=Math.sqrt(N*O.h/O.w),H=Math.round(j),q=Math.round(O.w/O.h*j),W=function(kr){if(kr==null)return Math.min(H,q);var wr=Math.min(H,q);wr==H?H=kr:q=kr},Z=function(kr){if(kr==null)return Math.max(H,q);var wr=Math.max(H,q);wr==H?H=kr:q=kr},st=p.rows,bt=p.cols!=null?p.cols:p.columns;if(st!=null&&bt!=null)H=st,q=bt;else if(st!=null&&bt==null)H=st,q=Math.ceil(N/H);else if(st==null&&bt!=null)q=bt,H=Math.ceil(N/q);else if(q*H>N){var pt=W(),_t=Z();(pt-1)*_t>=N?W(pt-1):(_t-1)*pt>=N&&Z(_t-1)}else for(;q*H<N;){var St=W(),Et=Z();(Et+1)*St>=N?Z(Et+1):W(St+1)}var Nt=O.w/q,Pt=O.h/H;if(p.condense&&(Nt=0,Pt=0),p.avoidOverlap)for(var qt=0;qt<L.length;qt++){var re=L[qt],ee=re._private.position;(ee.x==null||ee.y==null)&&(ee.x=0,ee.y=0);var Ut=re.layoutDimensions(p),de=p.avoidOverlapPadding,Yt=Ut.w+de,Ee=Ut.h+de;Nt=Math.max(Nt,Yt),Pt=Math.max(Pt,Ee)}for(var Te={},ie=function(kr,wr){return!!Te["c-"+kr+"-"+wr]},ze=function(kr,wr){Te["c-"+kr+"-"+wr]=!0},me=0,yn=0,nn=function(){yn++,yn>=q&&(yn=0,me++)},qe={},Tn=0;Tn<L.length;Tn++){var Xn=L[Tn],lr=p.position(Xn);if(lr&&(lr.row!==void 0||lr.col!==void 0)){var Sn={row:lr.row,col:lr.col};if(Sn.col===void 0)for(Sn.col=0;ie(Sn.row,Sn.col);)Sn.col++;else if(Sn.row===void 0)for(Sn.row=0;ie(Sn.row,Sn.col);)Sn.row++;qe[Xn.id()]=Sn,ze(Sn.row,Sn.col)}}var or=function(kr,wr){var Cr,$n;if(kr.locked()||kr.isParent())return!1;var cr=qe[kr.id()];if(cr)Cr=cr.col*Nt+Nt/2+O.x1,$n=cr.row*Pt+Pt/2+O.y1;else{for(;ie(me,yn);)nn();Cr=yn*Nt+Nt/2+O.x1,$n=me*Pt+Pt/2+O.y1,ze(me,yn),nn()}return{x:Cr,y:$n}};L.layoutPositions(this,p,or)}return this};var zet={ready:function(){},stop:function(){}};function bM(y){this.options=we({},zet,y)}bM.prototype.run=function(){var y=this.options,p=y.eles,x=this;return y.cy,x.emit("layoutstart"),p.nodes().positions(function(){return{x:0,y:0}}),x.one("layoutready",y.ready),x.emit("layoutready"),x.one("layoutstop",y.stop),x.emit("layoutstop"),this},bM.prototype.stop=function(){return this};var qet={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(p,x){return!0},ready:void 0,stop:void 0,transform:function(p,x){return x}};function bj(y){this.options=we({},qet,y)}bj.prototype.run=function(){var y=this.options,p=y.eles,x=p.nodes(),C=ct(y.positions);function L(O){if(y.positions==null)return sQ(O.position());if(C)return y.positions(O);var N=y.positions[O._private.data.id];return N??null}return x.layoutPositions(this,y,function(O,N){var j=L(O);return O.locked()||j==null?!1:j}),this};var Het={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(p,x){return!0},ready:void 0,stop:void 0,transform:function(p,x){return x}};function wj(y){this.options=we({},Het,y)}wj.prototype.run=function(){var y=this.options,p=y.cy,x=y.eles,C=v0(y.boundingBox?y.boundingBox:{x1:0,y1:0,w:p.width(),h:p.height()}),L=function(N,j){return{x:C.x1+Math.round(Math.random()*C.w),y:C.y1+Math.round(Math.random()*C.h)}};return x.nodes().layoutPositions(this,y,L),this};var Vet=[{name:"breadthfirst",impl:uj},{name:"circle",impl:lj},{name:"concentric",impl:hj},{name:"cose",impl:_C},{name:"grid",impl:pj},{name:"null",impl:bM},{name:"preset",impl:bj},{name:"random",impl:wj}];function mj(y){this.options=y,this.notifications=0}var vj=function(){},yj=function(){throw new Error("A headless instance can not render images")};mj.prototype={recalculateRenderedStyle:vj,notify:function(){this.notifications++},init:vj,isHeadless:function(){return!0},png:yj,jpg:yj};var wM={};wM.arrowShapeWidth=.3,wM.registerArrowShapes=function(){var y=this.arrowShapes={},p=this,x=function(q,W,Z,st,bt,pt,_t){var St=bt.x-Z/2-_t,Et=bt.x+Z/2+_t,Nt=bt.y-Z/2-_t,Pt=bt.y+Z/2+_t,qt=St<=q&&q<=Et&&Nt<=W&&W<=Pt;return qt},C=function(q,W,Z,st,bt){var pt=q*Math.cos(st)-W*Math.sin(st),_t=q*Math.sin(st)+W*Math.cos(st),St=pt*Z,Et=_t*Z,Nt=St+bt.x,Pt=Et+bt.y;return{x:Nt,y:Pt}},L=function(q,W,Z,st){for(var bt=[],pt=0;pt<q.length;pt+=2){var _t=q[pt],St=q[pt+1];bt.push(C(_t,St,W,Z,st))}return bt},O=function(q){for(var W=[],Z=0;Z<q.length;Z++){var st=q[Z];W.push(st.x,st.y)}return W},N=function(q){return q.pstyle("width").pfValue*q.pstyle("arrow-scale").pfValue*2},j=function(q,W){mt(W)&&(W=y[W]),y[q]=we({name:q,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(st,bt,pt,_t,St,Et){var Nt=O(L(this.points,pt+2*Et,_t,St)),Pt=y0(st,bt,Nt);return Pt},roughCollide:x,draw:function(st,bt,pt,_t){var St=L(this.points,bt,pt,_t);p.arrowShapeImpl("polygon")(st,St)},spacing:function(st){return 0},gap:N},W)};j("none",{collide:ay,roughCollide:ay,draw:BD,spacing:sp,gap:sp}),j("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),j("arrow","triangle"),j("triangle-backcurve",{points:y.triangle.points,controlPoint:[0,-.15],roughCollide:x,draw:function(q,W,Z,st,bt){var pt=L(this.points,W,Z,st),_t=this.controlPoint,St=C(_t[0],_t[1],W,Z,st);p.arrowShapeImpl(this.name)(q,pt,St)},gap:function(q){return N(q)*.8}}),j("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(q,W,Z,st,bt,pt,_t){var St=O(L(this.points,Z+2*_t,st,bt)),Et=O(L(this.pointsTee,Z+2*_t,st,bt)),Nt=y0(q,W,St)||y0(q,W,Et);return Nt},draw:function(q,W,Z,st,bt){var pt=L(this.points,W,Z,st),_t=L(this.pointsTee,W,Z,st);p.arrowShapeImpl(this.name)(q,pt,_t)}}),j("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(q,W,Z,st,bt,pt,_t){var St=bt,Et=Math.pow(St.x-q,2)+Math.pow(St.y-W,2)<=Math.pow((Z+2*_t)*this.radius,2),Nt=O(L(this.points,Z+2*_t,st,bt));return y0(q,W,Nt)||Et},draw:function(q,W,Z,st,bt){var pt=L(this.pointsTr,W,Z,st);p.arrowShapeImpl(this.name)(q,pt,st.x,st.y,this.radius*W)},spacing:function(q){return p.getArrowWidth(q.pstyle("width").pfValue,q.pstyle("arrow-scale").value)*this.radius}}),j("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(q,W){var Z=this.baseCrossLinePts.slice(),st=W/q,bt=3,pt=5;return Z[bt]=Z[bt]-st,Z[pt]=Z[pt]-st,Z},collide:function(q,W,Z,st,bt,pt,_t){var St=O(L(this.points,Z+2*_t,st,bt)),Et=O(L(this.crossLinePts(Z,pt),Z+2*_t,st,bt)),Nt=y0(q,W,St)||y0(q,W,Et);return Nt},draw:function(q,W,Z,st,bt){var pt=L(this.points,W,Z,st),_t=L(this.crossLinePts(W,bt),W,Z,st);p.arrowShapeImpl(this.name)(q,pt,_t)}}),j("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(q){return N(q)*.525}}),j("circle",{radius:.15,collide:function(q,W,Z,st,bt,pt,_t){var St=bt,Et=Math.pow(St.x-q,2)+Math.pow(St.y-W,2)<=Math.pow((Z+2*_t)*this.radius,2);return Et},draw:function(q,W,Z,st,bt){p.arrowShapeImpl(this.name)(q,st.x,st.y,this.radius*W)},spacing:function(q){return p.getArrowWidth(q.pstyle("width").pfValue,q.pstyle("arrow-scale").value)*this.radius}}),j("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(q){return 1},gap:function(q){return 1}}),j("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),j("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(q){return q.pstyle("width").pfValue*q.pstyle("arrow-scale").value}}),j("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(q){return .95*q.pstyle("width").pfValue*q.pstyle("arrow-scale").value}})};var C4={};C4.projectIntoViewport=function(y,p){var x=this.cy,C=this.findContainerClientCoords(),L=C[0],O=C[1],N=C[4],j=x.pan(),H=x.zoom(),q=((y-L)/N-j.x)/H,W=((p-O)/N-j.y)/H;return[q,W]},C4.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var y=this.container,p=y.getBoundingClientRect(),x=this.cy.window().getComputedStyle(y),C=function(Et){return parseFloat(x.getPropertyValue(Et))},L={left:C("padding-left"),right:C("padding-right"),top:C("padding-top"),bottom:C("padding-bottom")},O={left:C("border-left-width"),right:C("border-right-width"),top:C("border-top-width"),bottom:C("border-bottom-width")},N=y.clientWidth,j=y.clientHeight,H=L.left+L.right,q=L.top+L.bottom,W=O.left+O.right,Z=p.width/(N+W),st=N-H,bt=j-q,pt=p.left+L.left+O.left,_t=p.top+L.top+O.top;return this.containerBB=[pt,_t,st,bt,Z]},C4.invalidateContainerClientCoordsCache=function(){this.containerBB=null},C4.findNearestElement=function(y,p,x,C){return this.findNearestElements(y,p,x,C)[0]},C4.findNearestElements=function(y,p,x,C){var L=this,O=this,N=O.getCachedZSortedEles(),j=[],H=O.cy.zoom(),q=O.cy.hasCompoundNodes(),W=(C?24:8)/H,Z=(C?8:2)/H,st=(C?8:2)/H,bt=1/0,pt,_t;x&&(N=N.interactive);function St(Ut,de){if(Ut.isNode()){if(_t)return;_t=Ut,j.push(Ut)}if(Ut.isEdge()&&(de==null||de<bt))if(pt){if(pt.pstyle("z-compound-depth").value===Ut.pstyle("z-compound-depth").value&&pt.pstyle("z-compound-depth").value===Ut.pstyle("z-compound-depth").value){for(var Yt=0;Yt<j.length;Yt++)if(j[Yt].isEdge()){j[Yt]=Ut,pt=Ut,bt=de??bt;break}}}else j.push(Ut),pt=Ut,bt=de??bt}function Et(Ut){var de=Ut.outerWidth()+2*Z,Yt=Ut.outerHeight()+2*Z,Ee=de/2,Te=Yt/2,ie=Ut.position();if(ie.x-Ee<=y&&y<=ie.x+Ee&&ie.y-Te<=p&&p<=ie.y+Te){var ze=O.nodeShapes[L.getNodeShape(Ut)];if(ze.checkPoint(y,p,0,de,Yt,ie.x,ie.y))return St(Ut,0),!0}}function Nt(Ut){var de=Ut._private,Yt=de.rscratch,Ee=Ut.pstyle("width").pfValue,Te=Ut.pstyle("arrow-scale").value,ie=Ee/2+W,ze=ie*ie,me=ie*2,Tn=de.source,Xn=de.target,yn;if(Yt.edgeType==="segments"||Yt.edgeType==="straight"||Yt.edgeType==="haystack"){for(var nn=Yt.allpts,qe=0;qe+3<nn.length;qe+=2)if(mQ(y,p,nn[qe],nn[qe+1],nn[qe+2],nn[qe+3],me)&&ze>(yn=EQ(y,p,nn[qe],nn[qe+1],nn[qe+2],nn[qe+3])))return St(Ut,yn),!0}else if(Yt.edgeType==="bezier"||Yt.edgeType==="multibezier"||Yt.edgeType==="self"||Yt.edgeType==="compound"){for(var nn=Yt.allpts,qe=0;qe+5<Yt.allpts.length;qe+=4)if(vQ(y,p,nn[qe],nn[qe+1],nn[qe+2],nn[qe+3],nn[qe+4],nn[qe+5],me)&&ze>(yn=kQ(y,p,nn[qe],nn[qe+1],nn[qe+2],nn[qe+3],nn[qe+4],nn[qe+5])))return St(Ut,yn),!0}for(var Tn=Tn||de.source,Xn=Xn||de.target,lr=L.getArrowWidth(Ee,Te),Sn=[{name:"source",x:Yt.arrowStartX,y:Yt.arrowStartY,angle:Yt.srcArrowAngle},{name:"target",x:Yt.arrowEndX,y:Yt.arrowEndY,angle:Yt.tgtArrowAngle},{name:"mid-source",x:Yt.midX,y:Yt.midY,angle:Yt.midsrcArrowAngle},{name:"mid-target",x:Yt.midX,y:Yt.midY,angle:Yt.midtgtArrowAngle}],qe=0;qe<Sn.length;qe++){var or=Sn[qe],pr=O.arrowShapes[Ut.pstyle(or.name+"-arrow-shape").value],kr=Ut.pstyle("width").pfValue;if(pr.roughCollide(y,p,lr,or.angle,{x:or.x,y:or.y},kr,W)&&pr.collide(y,p,lr,or.angle,{x:or.x,y:or.y},kr,W))return St(Ut),!0}q&&j.length>0&&(Et(Tn),Et(Xn))}function Pt(Ut,de,Yt){return fb(Ut,de,Yt)}function qt(Ut,de){var Yt=Ut._private,Ee=st,Te;de?Te=de+"-":Te="",Ut.boundingBox();var ie=Yt.labelBounds[de||"main"],ze=Ut.pstyle(Te+"label").value,me=Ut.pstyle("text-events").strValue==="yes";if(!(!me||!ze)){var yn=Pt(Yt.rscratch,"labelX",de),nn=Pt(Yt.rscratch,"labelY",de),qe=Pt(Yt.rscratch,"labelAngle",de),Tn=Ut.pstyle(Te+"text-margin-x").pfValue,Xn=Ut.pstyle(Te+"text-margin-y").pfValue,lr=ie.x1-Ee-Tn,Sn=ie.x2+Ee-Tn,or=ie.y1-Ee-Xn,pr=ie.y2+Ee-Xn;if(qe){var kr=Math.cos(qe),wr=Math.sin(qe),Cr=function(na,vi){return na=na-yn,vi=vi-nn,{x:na*kr-vi*wr+yn,y:na*wr+vi*kr+nn}},$n=Cr(lr,or),cr=Cr(lr,pr),mr=Cr(Sn,or),Sr=Cr(Sn,pr),gi=[$n.x+Tn,$n.y+Xn,mr.x+Tn,mr.y+Xn,Sr.x+Tn,Sr.y+Xn,cr.x+Tn,cr.y+Xn];if(y0(y,p,gi))return St(Ut),!0}else if(Qx(ie,y,p))return St(Ut),!0}}for(var re=N.length-1;re>=0;re--){var ee=N[re];ee.isNode()?Et(ee)||qt(ee):Nt(ee)||qt(ee)||qt(ee,"source")||qt(ee,"target")}return j},C4.getAllInBox=function(y,p,x,C){var L=this.getCachedZSortedEles().interactive,O=[],N=Math.min(y,x),j=Math.max(y,x),H=Math.min(p,C),q=Math.max(p,C);y=N,x=j,p=H,C=q;for(var W=v0({x1:y,y1:p,x2:x,y2:C}),Z=0;Z<L.length;Z++){var st=L[Z];if(st.isNode()){var bt=st,pt=bt.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});$D(W,pt)&&!jB(pt,W)&&O.push(bt)}else{var _t=st,St=_t._private,Et=St.rscratch;if(Et.startX!=null&&Et.startY!=null&&!Qx(W,Et.startX,Et.startY)||Et.endX!=null&&Et.endY!=null&&!Qx(W,Et.endX,Et.endY))continue;if(Et.edgeType==="bezier"||Et.edgeType==="multibezier"||Et.edgeType==="self"||Et.edgeType==="compound"||Et.edgeType==="segments"||Et.edgeType==="haystack"){for(var Nt=St.rstyle.bezierPts||St.rstyle.linePts||St.rstyle.haystackPts,Pt=!0,qt=0;qt<Nt.length;qt++)if(!wQ(W,Nt[qt])){Pt=!1;break}Pt&&O.push(_t)}else(Et.edgeType==="haystack"||Et.edgeType==="straight")&&O.push(_t)}}return O};var LC={};LC.calculateArrowAngles=function(y){var p=y._private.rscratch,x=p.edgeType==="haystack",C=p.edgeType==="bezier",L=p.edgeType==="multibezier",O=p.edgeType==="segments",N=p.edgeType==="compound",j=p.edgeType==="self",H,q,W,Z,st,bt,Et,Nt;if(x?(W=p.haystackPts[0],Z=p.haystackPts[1],st=p.haystackPts[2],bt=p.haystackPts[3]):(W=p.arrowStartX,Z=p.arrowStartY,st=p.arrowEndX,bt=p.arrowEndY),Et=p.midX,Nt=p.midY,O)H=W-p.segpts[0],q=Z-p.segpts[1];else if(L||N||j||C){var pt=p.allpts,_t=Lf(pt[0],pt[2],pt[4],.1),St=Lf(pt[1],pt[3],pt[5],.1);H=W-_t,q=Z-St}else H=W-Et,q=Z-Nt;p.srcArrowAngle=Y9(H,q);var Et=p.midX,Nt=p.midY;if(x&&(Et=(W+st)/2,Nt=(Z+bt)/2),H=st-W,q=bt-Z,O){var pt=p.allpts;if(pt.length/2%2===0){var Pt=pt.length/2,qt=Pt-2;H=pt[Pt]-pt[qt],q=pt[Pt+1]-pt[qt+1]}else{var Pt=pt.length/2-1,qt=Pt-2,re=Pt+2;H=pt[Pt]-pt[qt],q=pt[Pt+1]-pt[qt+1]}}else if(L||N||j){var pt=p.allpts,ee=p.ctrlpts,Ut,de,Yt,Ee;if(ee.length/2%2===0){var Te=pt.length/2-1,ie=Te+2,ze=ie+2;Ut=Lf(pt[Te],pt[ie],pt[ze],0),de=Lf(pt[Te+1],pt[ie+1],pt[ze+1],0),Yt=Lf(pt[Te],pt[ie],pt[ze],1e-4),Ee=Lf(pt[Te+1],pt[ie+1],pt[ze+1],1e-4)}else{var ie=pt.length/2-1,Te=ie-2,ze=ie+2;Ut=Lf(pt[Te],pt[ie],pt[ze],.4999),de=Lf(pt[Te+1],pt[ie+1],pt[ze+1],.4999),Yt=Lf(pt[Te],pt[ie],pt[ze],.5),Ee=Lf(pt[Te+1],pt[ie+1],pt[ze+1],.5)}H=Yt-Ut,q=Ee-de}if(p.midtgtArrowAngle=Y9(H,q),p.midDispX=H,p.midDispY=q,H*=-1,q*=-1,O){var pt=p.allpts;if(pt.length/2%2!==0){var Pt=pt.length/2-1,re=Pt+2;H=-(pt[re]-pt[Pt]),q=-(pt[re+1]-pt[Pt+1])}}if(p.midsrcArrowAngle=Y9(H,q),O)H=st-p.segpts[p.segpts.length-2],q=bt-p.segpts[p.segpts.length-1];else if(L||N||j||C){var pt=p.allpts,me=pt.length,_t=Lf(pt[me-6],pt[me-4],pt[me-2],.9),St=Lf(pt[me-5],pt[me-3],pt[me-1],.9);H=st-_t,q=bt-St}else H=st-Et,q=bt-Nt;p.tgtArrowAngle=Y9(H,q)},LC.getArrowWidth=LC.getArrowHeight=function(y,p){var x=this.arrowWidthCache=this.arrowWidthCache||{},C=x[y+", "+p];return C||(C=Math.max(Math.pow(y*13.37,.9),29)*p,x[y+", "+p]=C,C)};var Q1={};Q1.findMidptPtsEtc=function(y,p){var x=p.posPts,C=p.intersectionPts,L=p.vectorNormInverse,O,N=y.pstyle("source-endpoint"),j=y.pstyle("target-endpoint"),H=N.units!=null&&j.units!=null,q=function(re,ee,Ut,de){var Yt=de-ee,Ee=Ut-re,Te=Math.sqrt(Ee*Ee+Yt*Yt);return{x:-Yt/Te,y:Ee/Te}},W=y.pstyle("edge-distances").value;switch(W){case"node-position":O=x;break;case"intersection":O=C;break;case"endpoints":{if(H){var Z=this.manualEndptToPx(y.source()[0],N),st=E(Z,2),bt=st[0],pt=st[1],_t=this.manualEndptToPx(y.target()[0],j),St=E(_t,2),Et=St[0],Nt=St[1],Pt={x1:bt,y1:pt,x2:Et,y2:Nt};L=q(bt,pt,Et,Nt),O=Pt}else Gc("Edge ".concat(y.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),O=C;break}}return{midptPts:O,vectorNormInverse:L}},Q1.findHaystackPoints=function(y){for(var p=0;p<y.length;p++){var x=y[p],C=x._private,L=C.rscratch;if(!L.haystack){var O=Math.random()*2*Math.PI;L.source={x:Math.cos(O),y:Math.sin(O)},O=Math.random()*2*Math.PI,L.target={x:Math.cos(O),y:Math.sin(O)}}var N=C.source,j=C.target,H=N.position(),q=j.position(),W=N.width(),Z=j.width(),st=N.height(),bt=j.height(),pt=x.pstyle("haystack-radius").value,_t=pt/2;L.haystackPts=L.allpts=[L.source.x*W*_t+H.x,L.source.y*st*_t+H.y,L.target.x*Z*_t+q.x,L.target.y*bt*_t+q.y],L.midX=(L.allpts[0]+L.allpts[2])/2,L.midY=(L.allpts[1]+L.allpts[3])/2,L.edgeType="haystack",L.haystack=!0,this.storeEdgeProjections(x),this.calculateArrowAngles(x),this.recalculateEdgeLabelProjections(x),this.calculateLabelAngles(x)}},Q1.findSegmentsPoints=function(y,p){var x=y._private.rscratch,C=y.pstyle("segment-weights"),L=y.pstyle("segment-distances"),O=Math.min(C.pfValue.length,L.pfValue.length);x.edgeType="segments",x.segpts=[];for(var N=0;N<O;N++){var j=C.pfValue[N],H=L.pfValue[N],q=1-j,W=j,Z=this.findMidptPtsEtc(y,p),st=Z.midptPts,bt=Z.vectorNormInverse,pt={x:st.x1*q+st.x2*W,y:st.y1*q+st.y2*W};x.segpts.push(pt.x+bt.x*H,pt.y+bt.y*H)}},Q1.findLoopPoints=function(y,p,x,C){var L=y._private.rscratch,O=p.dirCounts,N=p.srcPos,j=y.pstyle("control-point-distances"),H=j?j.pfValue[0]:void 0,q=y.pstyle("loop-direction").pfValue,W=y.pstyle("loop-sweep").pfValue,Z=y.pstyle("control-point-step-size").pfValue;L.edgeType="self";var st=x,bt=Z;C&&(st=0,bt=H);var pt=q-Math.PI/2,_t=pt-W/2,St=pt+W/2,Et=q+"_"+W;st=O[Et]===void 0?O[Et]=0:++O[Et],L.ctrlpts=[N.x+Math.cos(_t)*1.4*bt*(st/3+1),N.y+Math.sin(_t)*1.4*bt*(st/3+1),N.x+Math.cos(St)*1.4*bt*(st/3+1),N.y+Math.sin(St)*1.4*bt*(st/3+1)]},Q1.findCompoundLoopPoints=function(y,p,x,C){var L=y._private.rscratch;L.edgeType="compound";var O=p.srcPos,N=p.tgtPos,j=p.srcW,H=p.srcH,q=p.tgtW,W=p.tgtH,Z=y.pstyle("control-point-step-size").pfValue,st=y.pstyle("control-point-distances"),bt=st?st.pfValue[0]:void 0,pt=x,_t=Z;C&&(pt=0,_t=bt);var St=50,Et={x:O.x-j/2,y:O.y-H/2},Nt={x:N.x-q/2,y:N.y-W/2},Pt={x:Math.min(Et.x,Nt.x),y:Math.min(Et.y,Nt.y)},qt=.5,re=Math.max(qt,Math.log(j*.01)),ee=Math.max(qt,Math.log(q*.01));L.ctrlpts=[Pt.x,Pt.y-(1+Math.pow(St,1.12)/100)*_t*(pt/3+1)*re,Pt.x-(1+Math.pow(St,1.12)/100)*_t*(pt/3+1)*ee,Pt.y]},Q1.findStraightEdgePoints=function(y){y._private.rscratch.edgeType="straight"},Q1.findBezierPoints=function(y,p,x,C,L){var O=y._private.rscratch,N=y.pstyle("control-point-step-size").pfValue,j=y.pstyle("control-point-distances"),H=y.pstyle("control-point-weights"),q=j&&H?Math.min(j.value.length,H.value.length):1,W=j?j.pfValue[0]:void 0,Z=H.value[0],st=C;O.edgeType=st?"multibezier":"bezier",O.ctrlpts=[];for(var bt=0;bt<q;bt++){var pt=(.5-p.eles.length/2+x)*N*(L?-1:1),_t=void 0,St=FB(pt);st&&(W=j?j.pfValue[bt]:N,Z=H.value[bt]),C?_t=W:_t=W!==void 0?St*W:void 0;var Et=_t!==void 0?_t:pt,Nt=1-Z,Pt=Z,qt=this.findMidptPtsEtc(y,p),re=qt.midptPts,ee=qt.vectorNormInverse,Ut={x:re.x1*Nt+re.x2*Pt,y:re.y1*Nt+re.y2*Pt};O.ctrlpts.push(Ut.x+ee.x*Et,Ut.y+ee.y*Et)}},Q1.findTaxiPoints=function(y,p){var x=y._private.rscratch;x.edgeType="segments";var C="vertical",L="horizontal",O="leftward",N="rightward",j="downward",H="upward",q="auto",W=p.posPts,Z=p.srcW,st=p.srcH,bt=p.tgtW,pt=p.tgtH,_t=y.pstyle("edge-distances").value,St=_t!=="node-position",Et=y.pstyle("taxi-direction").value,Nt=Et,Pt=y.pstyle("taxi-turn"),qt=Pt.units==="%",re=Pt.pfValue,ee=re<0,Ut=y.pstyle("taxi-turn-min-distance").pfValue,de=St?(Z+bt)/2:0,Yt=St?(st+pt)/2:0,Ee=W.x2-W.x1,Te=W.y2-W.y1,ie=function(hr,us){return hr>0?Math.max(hr-us,0):Math.min(hr+us,0)},ze=ie(Ee,de),me=ie(Te,Yt),yn=!1;Nt===q?Et=Math.abs(ze)>Math.abs(me)?L:C:Nt===H||Nt===j?(Et=C,yn=!0):(Nt===O||Nt===N)&&(Et=L,yn=!0);var nn=Et===C,qe=nn?me:ze,Tn=nn?Te:Ee,Xn=FB(Tn),lr=!1;!(yn&&(qt||ee))&&(Nt===j&&Tn<0||Nt===H&&Tn>0||Nt===O&&Tn>0||Nt===N&&Tn<0)&&(Xn*=-1,qe=Xn*Math.abs(qe),lr=!0);var Sn;if(qt){var or=re<0?1+re:re;Sn=or*qe}else{var pr=re<0?qe:0;Sn=pr+re*Xn}var kr=function(hr){return Math.abs(hr)<Ut||Math.abs(hr)>=Math.abs(qe)},wr=kr(Sn),Cr=kr(Math.abs(qe)-Math.abs(Sn)),$n=wr||Cr;if($n&&!lr)if(nn){var cr=Math.abs(Tn)<=st/2,mr=Math.abs(Ee)<=bt/2;if(cr){var Sr=(W.x1+W.x2)/2,gi=W.y1,ss=W.y2;x.segpts=[Sr,gi,Sr,ss]}else if(mr){var na=(W.y1+W.y2)/2,vi=W.x1,si=W.x2;x.segpts=[vi,na,si,na]}else x.segpts=[W.x1,W.y2]}else{var Qi=Math.abs(Tn)<=Z/2,ks=Math.abs(Te)<=pt/2;if(Qi){var as=(W.y1+W.y2)/2,Es=W.x1,eo=W.x2;x.segpts=[Es,as,eo,as]}else if(ks){var Ta=(W.x1+W.x2)/2,pa=W.y1,mo=W.y2;x.segpts=[Ta,pa,Ta,mo]}else x.segpts=[W.x2,W.y1]}else if(nn){var Kn=W.y1+Sn+(St?st/2*Xn:0),G=W.x1,Vn=W.x2;x.segpts=[G,Kn,Vn,Kn]}else{var gr=W.x1+Sn+(St?Z/2*Xn:0),nr=W.y1,Be=W.y2;x.segpts=[gr,nr,gr,Be]}},Q1.tryToCorrectInvalidPoints=function(y,p){var x=y._private.rscratch;if(x.edgeType==="bezier"){var C=p.srcPos,L=p.tgtPos,O=p.srcW,N=p.srcH,j=p.tgtW,H=p.tgtH,q=p.srcShape,W=p.tgtShape,Z=!Q(x.startX)||!Q(x.startY),st=!Q(x.arrowStartX)||!Q(x.arrowStartY),bt=!Q(x.endX)||!Q(x.endY),pt=!Q(x.arrowEndX)||!Q(x.arrowEndY),_t=3,St=this.getArrowWidth(y.pstyle("width").pfValue,y.pstyle("arrow-scale").value)*this.arrowShapeWidth,Et=_t*St,Nt=w4({x:x.ctrlpts[0],y:x.ctrlpts[1]},{x:x.startX,y:x.startY}),Pt=Nt<Et,qt=w4({x:x.ctrlpts[0],y:x.ctrlpts[1]},{x:x.endX,y:x.endY}),re=qt<Et,ee=!1;if(Z||st||Pt){ee=!0;var Ut={x:x.ctrlpts[0]-C.x,y:x.ctrlpts[1]-C.y},de=Math.sqrt(Ut.x*Ut.x+Ut.y*Ut.y),Yt={x:Ut.x/de,y:Ut.y/de},Ee=Math.max(O,N),Te={x:x.ctrlpts[0]+Yt.x*2*Ee,y:x.ctrlpts[1]+Yt.y*2*Ee},ie=q.intersectLine(C.x,C.y,O,N,Te.x,Te.y,0);Pt?(x.ctrlpts[0]=x.ctrlpts[0]+Yt.x*(Et-Nt),x.ctrlpts[1]=x.ctrlpts[1]+Yt.y*(Et-Nt)):(x.ctrlpts[0]=ie[0]+Yt.x*Et,x.ctrlpts[1]=ie[1]+Yt.y*Et)}if(bt||pt||re){ee=!0;var ze={x:x.ctrlpts[0]-L.x,y:x.ctrlpts[1]-L.y},me=Math.sqrt(ze.x*ze.x+ze.y*ze.y),yn={x:ze.x/me,y:ze.y/me},nn=Math.max(O,N),qe={x:x.ctrlpts[0]+yn.x*2*nn,y:x.ctrlpts[1]+yn.y*2*nn},Tn=W.intersectLine(L.x,L.y,j,H,qe.x,qe.y,0);re?(x.ctrlpts[0]=x.ctrlpts[0]+yn.x*(Et-qt),x.ctrlpts[1]=x.ctrlpts[1]+yn.y*(Et-qt)):(x.ctrlpts[0]=Tn[0]+yn.x*Et,x.ctrlpts[1]=Tn[1]+yn.y*Et)}ee&&this.findEndpoints(y)}},Q1.storeAllpts=function(y){var p=y._private.rscratch;if(p.edgeType==="multibezier"||p.edgeType==="bezier"||p.edgeType==="self"||p.edgeType==="compound"){p.allpts=[],p.allpts.push(p.startX,p.startY);for(var x=0;x+1<p.ctrlpts.length;x+=2)p.allpts.push(p.ctrlpts[x],p.ctrlpts[x+1]),x+3<p.ctrlpts.length&&p.allpts.push((p.ctrlpts[x]+p.ctrlpts[x+2])/2,(p.ctrlpts[x+1]+p.ctrlpts[x+3])/2);p.allpts.push(p.endX,p.endY);var C,L;p.ctrlpts.length/2%2===0?(C=p.allpts.length/2-1,p.midX=p.allpts[C],p.midY=p.allpts[C+1]):(C=p.allpts.length/2-3,L=.5,p.midX=Lf(p.allpts[C],p.allpts[C+2],p.allpts[C+4],L),p.midY=Lf(p.allpts[C+1],p.allpts[C+3],p.allpts[C+5],L))}else if(p.edgeType==="straight")p.allpts=[p.startX,p.startY,p.endX,p.endY],p.midX=(p.startX+p.endX+p.arrowStartX+p.arrowEndX)/4,p.midY=(p.startY+p.endY+p.arrowStartY+p.arrowEndY)/4;else if(p.edgeType==="segments")if(p.allpts=[],p.allpts.push(p.startX,p.startY),p.allpts.push.apply(p.allpts,p.segpts),p.allpts.push(p.endX,p.endY),p.segpts.length%4===0){var O=p.segpts.length/2,N=O-2;p.midX=(p.segpts[N]+p.segpts[O])/2,p.midY=(p.segpts[N+1]+p.segpts[O+1])/2}else{var j=p.segpts.length/2-1;p.midX=p.segpts[j],p.midY=p.segpts[j+1]}},Q1.checkForInvalidEdgeWarning=function(y){var p=y[0]._private.rscratch;p.nodesOverlap||Q(p.startX)&&Q(p.startY)&&Q(p.endX)&&Q(p.endY)?p.loggedErr=!1:p.loggedErr||(p.loggedErr=!0,Gc("Edge `"+y.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},Q1.findEdgeControlPoints=function(y){var p=this;if(!(!y||y.length===0)){for(var x=this,C=x.cy,L=C.hasCompoundNodes(),O={map:new F2,get:function(Ut){var de=this.map.get(Ut[0]);return de!=null?de.get(Ut[1]):null},set:function(Ut,de){var Yt=this.map.get(Ut[0]);Yt==null&&(Yt=new F2,this.map.set(Ut[0],Yt)),Yt.set(Ut[1],de)}},N=[],j=[],H=0;H<y.length;H++){var q=y[H],W=q._private,Z=q.pstyle("curve-style").value;if(!(q.removed()||!q.takesUpSpace())){if(Z==="haystack"){j.push(q);continue}var st=Z==="unbundled-bezier"||Z==="segments"||Z==="straight"||Z==="straight-triangle"||Z==="taxi",bt=Z==="unbundled-bezier"||Z==="bezier",pt=W.source,_t=W.target,St=pt.poolIndex(),Et=_t.poolIndex(),Nt=[St,Et].sort(),Pt=O.get(Nt);Pt==null&&(Pt={eles:[]},O.set(Nt,Pt),N.push(Nt)),Pt.eles.push(q),st&&(Pt.hasUnbundled=!0),bt&&(Pt.hasBezier=!0)}}for(var qt=function(Ut){var de=N[Ut],Yt=O.get(de),Ee=void 0;if(!Yt.hasUnbundled){var Te=Yt.eles[0].parallelEdges().filter(function(mo){return mo.isBundledBezier()});G9(Yt.eles),Te.forEach(function(mo){return Yt.eles.push(mo)}),Yt.eles.sort(function(mo,Kn){return mo.poolIndex()-Kn.poolIndex()})}var ie=Yt.eles[0],ze=ie.source(),me=ie.target();if(ze.poolIndex()>me.poolIndex()){var yn=ze;ze=me,me=yn}var nn=Yt.srcPos=ze.position(),qe=Yt.tgtPos=me.position(),Tn=Yt.srcW=ze.outerWidth(),Xn=Yt.srcH=ze.outerHeight(),lr=Yt.tgtW=me.outerWidth(),Sn=Yt.tgtH=me.outerHeight(),or=Yt.srcShape=x.nodeShapes[p.getNodeShape(ze)],pr=Yt.tgtShape=x.nodeShapes[p.getNodeShape(me)];Yt.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var kr=0;kr<Yt.eles.length;kr++){var wr=Yt.eles[kr],Cr=wr[0]._private.rscratch,$n=wr.pstyle("curve-style").value,cr=$n==="unbundled-bezier"||$n==="segments"||$n==="taxi",mr=!ze.same(wr.source());if(!Yt.calculatedIntersection&&ze!==me&&(Yt.hasBezier||Yt.hasUnbundled)){Yt.calculatedIntersection=!0;var Sr=or.intersectLine(nn.x,nn.y,Tn,Xn,qe.x,qe.y,0),gi=Yt.srcIntn=Sr,ss=pr.intersectLine(qe.x,qe.y,lr,Sn,nn.x,nn.y,0),na=Yt.tgtIntn=ss,vi=Yt.intersectionPts={x1:Sr[0],x2:ss[0],y1:Sr[1],y2:ss[1]},si=Yt.posPts={x1:nn.x,x2:qe.x,y1:nn.y,y2:qe.y},Qi=ss[1]-Sr[1],ks=ss[0]-Sr[0],as=Math.sqrt(ks*ks+Qi*Qi),Es=Yt.vector={x:ks,y:Qi},eo=Yt.vectorNorm={x:Es.x/as,y:Es.y/as},Ta={x:-eo.y,y:eo.x};Yt.nodesOverlap=!Q(as)||pr.checkPoint(Sr[0],Sr[1],0,lr,Sn,qe.x,qe.y)||or.checkPoint(ss[0],ss[1],0,Tn,Xn,nn.x,nn.y),Yt.vectorNormInverse=Ta,Ee={nodesOverlap:Yt.nodesOverlap,dirCounts:Yt.dirCounts,calculatedIntersection:!0,hasBezier:Yt.hasBezier,hasUnbundled:Yt.hasUnbundled,eles:Yt.eles,srcPos:qe,tgtPos:nn,srcW:lr,srcH:Sn,tgtW:Tn,tgtH:Xn,srcIntn:na,tgtIntn:gi,srcShape:pr,tgtShape:or,posPts:{x1:si.x2,y1:si.y2,x2:si.x1,y2:si.y1},intersectionPts:{x1:vi.x2,y1:vi.y2,x2:vi.x1,y2:vi.y1},vector:{x:-Es.x,y:-Es.y},vectorNorm:{x:-eo.x,y:-eo.y},vectorNormInverse:{x:-Ta.x,y:-Ta.y}}}var pa=mr?Ee:Yt;Cr.nodesOverlap=pa.nodesOverlap,Cr.srcIntn=pa.srcIntn,Cr.tgtIntn=pa.tgtIntn,L&&(ze.isParent()||ze.isChild()||me.isParent()||me.isChild())&&(ze.parents().anySame(me)||me.parents().anySame(ze)||ze.same(me)&&ze.isParent())?p.findCompoundLoopPoints(wr,pa,kr,cr):ze===me?p.findLoopPoints(wr,pa,kr,cr):$n==="segments"?p.findSegmentsPoints(wr,pa):$n==="taxi"?p.findTaxiPoints(wr,pa):$n==="straight"||!cr&&Yt.eles.length%2===1&&kr===Math.floor(Yt.eles.length/2)?p.findStraightEdgePoints(wr):p.findBezierPoints(wr,pa,kr,cr,mr),p.findEndpoints(wr),p.tryToCorrectInvalidPoints(wr,pa),p.checkForInvalidEdgeWarning(wr),p.storeAllpts(wr),p.storeEdgeProjections(wr),p.calculateArrowAngles(wr),p.recalculateEdgeLabelProjections(wr),p.calculateLabelAngles(wr)}},re=0;re<N.length;re++)qt(re);this.findHaystackPoints(j)}};function xj(y){var p=[];if(y!=null){for(var x=0;x<y.length;x+=2){var C=y[x],L=y[x+1];p.push({x:C,y:L})}return p}}Q1.getSegmentPoints=function(y){var p=y[0]._private.rscratch,x=p.edgeType;if(x==="segments")return this.recalculateRenderedStyle(y),xj(p.segpts)},Q1.getControlPoints=function(y){var p=y[0]._private.rscratch,x=p.edgeType;if(x==="bezier"||x==="multibezier"||x==="self"||x==="compound")return this.recalculateRenderedStyle(y),xj(p.ctrlpts)},Q1.getEdgeMidpoint=function(y){var p=y[0]._private.rscratch;return this.recalculateRenderedStyle(y),{x:p.midX,y:p.midY}};var eE={};eE.manualEndptToPx=function(y,p){var x=this,C=y.position(),L=y.outerWidth(),O=y.outerHeight();if(p.value.length===2){var N=[p.pfValue[0],p.pfValue[1]];return p.units[0]==="%"&&(N[0]=N[0]*L),p.units[1]==="%"&&(N[1]=N[1]*O),N[0]+=C.x,N[1]+=C.y,N}else{var j=p.pfValue[0];j=-Math.PI/2+j;var H=2*Math.max(L,O),q=[C.x+Math.cos(j)*H,C.y+Math.sin(j)*H];return x.nodeShapes[this.getNodeShape(y)].intersectLine(C.x,C.y,L,O,q[0],q[1],0)}},eE.findEndpoints=function(y){var p=this,x,C=y.source()[0],L=y.target()[0],O=C.position(),N=L.position(),j=y.pstyle("target-arrow-shape").value,H=y.pstyle("source-arrow-shape").value,q=y.pstyle("target-distance-from-node").pfValue,W=y.pstyle("source-distance-from-node").pfValue,Z=y.pstyle("curve-style").value,st=y._private.rscratch,bt=st.edgeType,pt=Z==="taxi",_t=bt==="self"||bt==="compound",St=bt==="bezier"||bt==="multibezier"||_t,Et=bt!=="bezier",Nt=bt==="straight"||bt==="segments",Pt=bt==="segments",qt=St||Et||Nt,re=_t||pt,ee=y.pstyle("source-endpoint"),Ut=re?"outside-to-node":ee.value,de=y.pstyle("target-endpoint"),Yt=re?"outside-to-node":de.value;st.srcManEndpt=ee,st.tgtManEndpt=de;var Ee,Te,ie,ze;if(St){var me=[st.ctrlpts[0],st.ctrlpts[1]],yn=Et?[st.ctrlpts[st.ctrlpts.length-2],st.ctrlpts[st.ctrlpts.length-1]]:me;Ee=yn,Te=me}else if(Nt){var nn=Pt?st.segpts.slice(0,2):[N.x,N.y],qe=Pt?st.segpts.slice(st.segpts.length-2):[O.x,O.y];Ee=qe,Te=nn}if(Yt==="inside-to-node")x=[N.x,N.y];else if(de.units)x=this.manualEndptToPx(L,de);else if(Yt==="outside-to-line")x=st.tgtIntn;else if(Yt==="outside-to-node"||Yt==="outside-to-node-or-label"?ie=Ee:(Yt==="outside-to-line"||Yt==="outside-to-line-or-label")&&(ie=[O.x,O.y]),x=p.nodeShapes[this.getNodeShape(L)].intersectLine(N.x,N.y,L.outerWidth(),L.outerHeight(),ie[0],ie[1],0),Yt==="outside-to-node-or-label"||Yt==="outside-to-line-or-label"){var Tn=L._private.rscratch,Xn=Tn.labelWidth,lr=Tn.labelHeight,Sn=Tn.labelX,or=Tn.labelY,pr=Xn/2,kr=lr/2,wr=L.pstyle("text-valign").value;wr==="top"?or-=kr:wr==="bottom"&&(or+=kr);var Cr=L.pstyle("text-halign").value;Cr==="left"?Sn-=pr:Cr==="right"&&(Sn+=pr);var $n=B8(ie[0],ie[1],[Sn-pr,or-kr,Sn+pr,or-kr,Sn+pr,or+kr,Sn-pr,or+kr],N.x,N.y);if($n.length>0){var cr=O,mr=m4(cr,Yx(x)),Sr=m4(cr,Yx($n)),gi=mr;if(Sr<mr&&(x=$n,gi=Sr),$n.length>2){var ss=m4(cr,{x:$n[2],y:$n[3]});ss<gi&&(x=[$n[2],$n[3]])}}}var na=tC(x,Ee,p.arrowShapes[j].spacing(y)+q),vi=tC(x,Ee,p.arrowShapes[j].gap(y)+q);if(st.endX=vi[0],st.endY=vi[1],st.arrowEndX=na[0],st.arrowEndY=na[1],Ut==="inside-to-node")x=[O.x,O.y];else if(ee.units)x=this.manualEndptToPx(C,ee);else if(Ut==="outside-to-line")x=st.srcIntn;else if(Ut==="outside-to-node"||Ut==="outside-to-node-or-label"?ze=Te:(Ut==="outside-to-line"||Ut==="outside-to-line-or-label")&&(ze=[N.x,N.y]),x=p.nodeShapes[this.getNodeShape(C)].intersectLine(O.x,O.y,C.outerWidth(),C.outerHeight(),ze[0],ze[1],0),Ut==="outside-to-node-or-label"||Ut==="outside-to-line-or-label"){var si=C._private.rscratch,Qi=si.labelWidth,ks=si.labelHeight,as=si.labelX,Es=si.labelY,eo=Qi/2,Ta=ks/2,pa=C.pstyle("text-valign").value;pa==="top"?Es-=Ta:pa==="bottom"&&(Es+=Ta);var mo=C.pstyle("text-halign").value;mo==="left"?as-=eo:mo==="right"&&(as+=eo);var Kn=B8(ze[0],ze[1],[as-eo,Es-Ta,as+eo,Es-Ta,as+eo,Es+Ta,as-eo,Es+Ta],O.x,O.y);if(Kn.length>0){var G=N,Vn=m4(G,Yx(x)),gr=m4(G,Yx(Kn)),nr=Vn;if(gr<Vn&&(x=[Kn[0],Kn[1]],nr=gr),Kn.length>2){var Be=m4(G,{x:Kn[2],y:Kn[3]});Be<nr&&(x=[Kn[2],Kn[3]])}}}var Ls=tC(x,Te,p.arrowShapes[H].spacing(y)+W),hr=tC(x,Te,p.arrowShapes[H].gap(y)+W);st.startX=hr[0],st.startY=hr[1],st.arrowStartX=Ls[0],st.arrowStartY=Ls[1],qt&&(!Q(st.startX)||!Q(st.startY)||!Q(st.endX)||!Q(st.endY)?st.badLine=!0:st.badLine=!1)},eE.getSourceEndpoint=function(y){var p=y[0]._private.rscratch;switch(this.recalculateRenderedStyle(y),p.edgeType){case"haystack":return{x:p.haystackPts[0],y:p.haystackPts[1]};default:return{x:p.arrowStartX,y:p.arrowStartY}}},eE.getTargetEndpoint=function(y){var p=y[0]._private.rscratch;switch(this.recalculateRenderedStyle(y),p.edgeType){case"haystack":return{x:p.haystackPts[2],y:p.haystackPts[3]};default:return{x:p.arrowEndX,y:p.arrowEndY}}};var mM={};function kj(y,p,x){for(var C=function(q,W,Z,st){return Lf(q,W,Z,st)},L=p._private,O=L.rstyle.bezierPts,N=0;N<y.bezierProjPcts.length;N++){var j=y.bezierProjPcts[N];O.push({x:C(x[0],x[2],x[4],j),y:C(x[1],x[3],x[5],j)})}}mM.storeEdgeProjections=function(y){var p=y._private,x=p.rscratch,C=x.edgeType;if(p.rstyle.bezierPts=null,p.rstyle.linePts=null,p.rstyle.haystackPts=null,C==="multibezier"||C==="bezier"||C==="self"||C==="compound"){p.rstyle.bezierPts=[];for(var L=0;L+5<x.allpts.length;L+=4)kj(this,y,x.allpts.slice(L,L+6))}else if(C==="segments")for(var O=p.rstyle.linePts=[],L=0;L+1<x.allpts.length;L+=2)O.push({x:x.allpts[L],y:x.allpts[L+1]});else if(C==="haystack"){var N=x.haystackPts;p.rstyle.haystackPts=[{x:N[0],y:N[1]},{x:N[2],y:N[3]}]}p.rstyle.arrowWidth=this.getArrowWidth(y.pstyle("width").pfValue,y.pstyle("arrow-scale").value)*this.arrowShapeWidth},mM.recalculateEdgeProjections=function(y){this.findEdgeControlPoints(y)};var j2={};j2.recalculateNodeLabelProjection=function(y){var p=y.pstyle("label").strValue;if(!Ft(p)){var x,C,L=y._private,O=y.width(),N=y.height(),j=y.padding(),H=y.position(),q=y.pstyle("text-halign").strValue,W=y.pstyle("text-valign").strValue,Z=L.rscratch,st=L.rstyle;switch(q){case"left":x=H.x-O/2-j;break;case"right":x=H.x+O/2+j;break;default:x=H.x}switch(W){case"top":C=H.y-N/2-j;break;case"bottom":C=H.y+N/2+j;break;default:C=H.y}Z.labelX=x,Z.labelY=C,st.labelX=x,st.labelY=C,this.calculateLabelAngles(y),this.applyLabelDimensions(y)}};var Ej=function(p,x){var C=Math.atan(x/p);return p===0&&C<0&&(C=C*-1),C},DC=function(p,x){var C=x.x-p.x,L=x.y-p.y;return Ej(C,L)},Uet=function(p,x,C,L){var O=P8(0,L-.001,1),N=P8(0,L+.001,1),j=Xx(p,x,C,O),H=Xx(p,x,C,N);return DC(j,H)};j2.recalculateEdgeLabelProjections=function(y){var p,x=y._private,C=x.rscratch,L=this,O={mid:y.pstyle("label").strValue,source:y.pstyle("source-label").strValue,target:y.pstyle("target-label").strValue};if(O.mid||O.source||O.target){p={x:C.midX,y:C.midY};var N=function(Z,st,bt){cy(x.rscratch,Z,st,bt),cy(x.rstyle,Z,st,bt)};N("labelX",null,p.x),N("labelY",null,p.y);var j=Ej(C.midDispX,C.midDispY);N("labelAutoAngle",null,j);var H=function W(){if(W.cache)return W.cache;for(var Z=[],st=0;st+5<C.allpts.length;st+=4){var bt={x:C.allpts[st],y:C.allpts[st+1]},pt={x:C.allpts[st+2],y:C.allpts[st+3]},_t={x:C.allpts[st+4],y:C.allpts[st+5]};Z.push({p0:bt,p1:pt,p2:_t,startDist:0,length:0,segments:[]})}var St=x.rstyle.bezierPts,Et=L.bezierProjPcts.length;function Nt(Ut,de,Yt,Ee,Te){var ie=w4(de,Yt),ze=Ut.segments[Ut.segments.length-1],me={p0:de,p1:Yt,t0:Ee,t1:Te,startDist:ze?ze.startDist+ze.length:0,length:ie};Ut.segments.push(me),Ut.length+=ie}for(var Pt=0;Pt<Z.length;Pt++){var qt=Z[Pt],re=Z[Pt-1];re&&(qt.startDist=re.startDist+re.length),Nt(qt,qt.p0,St[Pt*Et],0,L.bezierProjPcts[0]);for(var ee=0;ee<Et-1;ee++)Nt(qt,St[Pt*Et+ee],St[Pt*Et+ee+1],L.bezierProjPcts[ee],L.bezierProjPcts[ee+1]);Nt(qt,St[Pt*Et+Et-1],qt.p2,L.bezierProjPcts[Et-1],1)}return W.cache=Z},q=function(Z){var st,bt=Z==="source";if(O[Z]){var pt=y.pstyle(Z+"-text-offset").pfValue;switch(C.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var _t=H(),St,Et=0,Nt=0,Pt=0;Pt<_t.length;Pt++){for(var qt=_t[bt?Pt:_t.length-1-Pt],re=0;re<qt.segments.length;re++){var ee=qt.segments[bt?re:qt.segments.length-1-re],Ut=Pt===_t.length-1&&re===qt.segments.length-1;if(Et=Nt,Nt+=ee.length,Nt>=pt||Ut){St={cp:qt,segment:ee};break}}if(St)break}var de=St.cp,Yt=St.segment,Ee=(pt-Et)/Yt.length,Te=Yt.t1-Yt.t0,ie=bt?Yt.t0+Te*Ee:Yt.t1-Te*Ee;ie=P8(0,ie,1),p=Xx(de.p0,de.p1,de.p2,ie),st=Uet(de.p0,de.p1,de.p2,ie);break}case"straight":case"segments":case"haystack":{for(var ze=0,me,yn,nn,qe,Tn=C.allpts.length,Xn=0;Xn+3<Tn&&(bt?(nn={x:C.allpts[Xn],y:C.allpts[Xn+1]},qe={x:C.allpts[Xn+2],y:C.allpts[Xn+3]}):(nn={x:C.allpts[Tn-2-Xn],y:C.allpts[Tn-1-Xn]},qe={x:C.allpts[Tn-4-Xn],y:C.allpts[Tn-3-Xn]}),me=w4(nn,qe),yn=ze,ze+=me,!(ze>=pt));Xn+=2);var lr=pt-yn,Sn=lr/me;Sn=P8(0,Sn,1),p=fQ(nn,qe,Sn),st=DC(nn,qe);break}}N("labelX",Z,p.x),N("labelY",Z,p.y),N("labelAutoAngle",Z,st)}};q("source"),q("target"),this.applyLabelDimensions(y)}},j2.applyLabelDimensions=function(y){this.applyPrefixedLabelDimensions(y),y.isEdge()&&(this.applyPrefixedLabelDimensions(y,"source"),this.applyPrefixedLabelDimensions(y,"target"))},j2.applyPrefixedLabelDimensions=function(y,p){var x=y._private,C=this.getLabelText(y,p),L=this.calculateLabelDimensions(y,C),O=y.pstyle("line-height").pfValue,N=y.pstyle("text-wrap").strValue,j=fb(x.rscratch,"labelWrapCachedLines",p)||[],H=N!=="wrap"?1:Math.max(j.length,1),q=L.height/H,W=q*O,Z=L.width,st=L.height+(H-1)*(O-1)*q;cy(x.rstyle,"labelWidth",p,Z),cy(x.rscratch,"labelWidth",p,Z),cy(x.rstyle,"labelHeight",p,st),cy(x.rscratch,"labelHeight",p,st),cy(x.rscratch,"labelLineHeight",p,W)},j2.getLabelText=function(y,p){var x=y._private,C=p?p+"-":"",L=y.pstyle(C+"label").strValue,O=y.pstyle("text-transform").value,N=function(lr,Sn){return Sn?(cy(x.rscratch,lr,p,Sn),Sn):fb(x.rscratch,lr,p)};if(!L)return"";O=="none"||(O=="uppercase"?L=L.toUpperCase():O=="lowercase"&&(L=L.toLowerCase()));var j=y.pstyle("text-wrap").value;if(j==="wrap"){var H=N("labelKey");if(H!=null&&N("labelWrapKey")===H)return N("labelWrapCachedText");for(var q="​",W=L.split(`
1547 `),Et=0;Et<St.length;Et++){var Nt=St[Et],Pt=st.measureText(Nt),qt=Math.ceil(Pt.width),re=H;pt=Math.max(qt,pt),_t+=re}return pt+=N,_t+=N,L[C]={width:pt,height:_t}},j2.calculateLabelAngle=function(y,p){var x=y._private,C=x.rscratch,L=y.isEdge(),O=p?p+"-":"",N=y.pstyle(O+"text-rotation"),j=N.strValue;return j==="none"?0:L&&j==="autorotate"?C.labelAutoAngle:j==="autorotate"?0:N.pfValue},j2.calculateLabelAngles=function(y){var p=this,x=y.isEdge(),C=y._private,L=C.rscratch;L.labelAngle=p.calculateLabelAngle(y),x&&(L.sourceLabelAngle=p.calculateLabelAngle(y,"source"),L.targetLabelAngle=p.calculateLabelAngle(y,"target"))};var Tj={},Cj=28,Sj=!1;Tj.getNodeShape=function(y){var p=this,x=y.pstyle("shape").value;if(x==="cutrectangle"&&(y.width()<Cj||y.height()<Cj))return Sj||(Gc("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),Sj=!0),"rectangle";if(y.isParent())return x==="rectangle"||x==="roundrectangle"||x==="round-rectangle"||x==="cutrectangle"||x==="cut-rectangle"||x==="barrel"?x:"rectangle";if(x==="polygon"){var C=y.pstyle("shape-polygon-points").value;return p.nodeShapes.makePolygon(C).name}return x};var MC={};MC.registerCalculationListeners=function(){var y=this.cy,p=y.collection(),x=this,C=function(N){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(p.merge(N),j)for(var H=0;H<N.length;H++){var q=N[H],W=q._private,Z=W.rstyle;Z.clean=!1,Z.cleanConnected=!1}};x.binder(y).on("bounds.* dirty.*",function(N){var j=N.target;C(j)}).on("style.* background.*",function(N){var j=N.target;C(j,!1)});var L=function(N){if(N){var j=x.onUpdateEleCalcsFns;p.cleanStyle();for(var H=0;H<p.length;H++){var q=p[H],W=q._private.rstyle;q.isNode()&&!W.cleanConnected&&(C(q.connectedEdges()),W.cleanConnected=!0)}if(j)for(var Z=0;Z<j.length;Z++){var st=j[Z];st(N,p)}x.recalculateRenderedStyle(p),p=y.collection()}};x.flushRenderedStyleQueue=function(){L(!0)},x.beforeRender(L,x.beforeRenderPriorities.eleCalcs)},MC.onUpdateEleCalcs=function(y){var p=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];p.push(y)},MC.recalculateRenderedStyle=function(y,p){var x=function(qt){return qt._private.rstyle.cleanConnected},C=[],L=[];if(!this.destroyed){p===void 0&&(p=!0);for(var O=0;O<y.length;O++){var N=y[O],j=N._private,H=j.rstyle;N.isEdge()&&(!x(N.source())||!x(N.target()))&&(H.clean=!1),!(p&&H.clean||N.removed())&&N.pstyle("display").value!=="none"&&(j.group==="nodes"?L.push(N):C.push(N),H.clean=!0)}for(var q=0;q<L.length;q++){var W=L[q],Z=W._private,st=Z.rstyle,bt=W.position();this.recalculateNodeLabelProjection(W),st.nodeX=bt.x,st.nodeY=bt.y,st.nodeW=W.pstyle("width").pfValue,st.nodeH=W.pstyle("height").pfValue}this.recalculateEdgeProjections(C);for(var pt=0;pt<C.length;pt++){var _t=C[pt],St=_t._private,Et=St.rstyle,Nt=St.rscratch;Et.srcX=Nt.arrowStartX,Et.srcY=Nt.arrowStartY,Et.tgtX=Nt.arrowEndX,Et.tgtY=Nt.arrowEndY,Et.midX=Nt.midX,Et.midY=Nt.midY,Et.labelAngle=Nt.labelAngle,Et.sourceLabelAngle=Nt.sourceLabelAngle,Et.targetLabelAngle=Nt.targetLabelAngle}}};var IC={};IC.updateCachedGrabbedEles=function(){var y=this.cachedZSortedEles;if(y){y.drag=[],y.nondrag=[];for(var p=[],x=0;x<y.length;x++){var C=y[x],L=C._private.rscratch;C.grabbed()&&!C.isParent()?p.push(C):L.inDragLayer?y.drag.push(C):y.nondrag.push(C)}for(var x=0;x<p.length;x++){var C=p[x];y.drag.push(C)}}},IC.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},IC.getCachedZSortedEles=function(y){if(y||!this.cachedZSortedEles){var p=this.cy.mutableElements().toArray();p.sort(cM),p.interactive=p.filter(function(x){return x.interactive()}),this.cachedZSortedEles=p,this.updateCachedGrabbedEles()}else p=this.cachedZSortedEles;return p};var _j={};[C4,LC,Q1,eE,mM,j2,Tj,MC,IC].forEach(function(y){we(_j,y)});var Aj={};Aj.getCachedImage=function(y,p,x){var C=this,L=C.imageCache=C.imageCache||{},O=L[y];if(O)return O.image.complete||O.image.addEventListener("load",x),O.image;O=L[y]=L[y]||{};var N=O.image=new Image;N.addEventListener("load",x),N.addEventListener("error",function(){N.error=!0});var j="data:",H=y.substring(0,j.length).toLowerCase()===j;return H||(p=p==="null"?null:p,N.crossOrigin=p),N.src=y,N};var d6={};d6.registerBinding=function(y,p,x,C){var L=Array.prototype.slice.apply(arguments,[1]),O=this.binder(y);return O.on.apply(O,L)},d6.binder=function(y){var p=this,x=p.cy.window(),C=y===x||y===x.document||y===x.document.body||Ct(y);if(p.supportsPassiveEvents==null){var L=!1;try{var O=Object.defineProperty({},"passive",{get:function(){return L=!0,!0}});x.addEventListener("test",null,O)}catch{}p.supportsPassiveEvents=L}var N=function(H,q,W){var Z=Array.prototype.slice.call(arguments);return C&&p.supportsPassiveEvents&&(Z[2]={capture:W??!1,passive:!1,once:!1}),p.bindings.push({target:y,args:Z}),(y.addEventListener||y.on).apply(y,Z),this};return{on:N,addEventListener:N,addListener:N,bind:N}},d6.nodeIsDraggable=function(y){return y&&y.isNode()&&!y.locked()&&y.grabbable()},d6.nodeIsGrabbable=function(y){return this.nodeIsDraggable(y)&&y.interactive()},d6.load=function(){var y=this,p=y.cy.window(),x=function(G){return G.selected()},C=function(G,Vn,gr,nr){G==null&&(G=y.cy);for(var Be=0;Be<Vn.length;Be++){var Ls=Vn[Be];G.emit({originalEvent:gr,type:Ls,position:nr})}},L=function(G){return G.shiftKey||G.metaKey||G.ctrlKey},O=function(G,Vn){var gr=!0;if(y.cy.hasCompoundNodes()&&G&&G.pannable())for(var nr=0;Vn&&nr<Vn.length;nr++){var G=Vn[nr];if(G.isNode()&&G.isParent()&&!G.pannable()){gr=!1;break}}else gr=!0;return gr},N=function(G){G[0]._private.grabbed=!0},j=function(G){G[0]._private.grabbed=!1},H=function(G){G[0]._private.rscratch.inDragLayer=!0},q=function(G){G[0]._private.rscratch.inDragLayer=!1},W=function(G){G[0]._private.rscratch.isGrabTarget=!0},Z=function(G){G[0]._private.rscratch.isGrabTarget=!1},st=function(G,Vn){var gr=Vn.addToList,nr=gr.has(G);!nr&&G.grabbable()&&!G.locked()&&(gr.merge(G),N(G))},bt=function(G,Vn){if(G.cy().hasCompoundNodes()&&!(Vn.inDragLayer==null&&Vn.addToList==null)){var gr=G.descendants();Vn.inDragLayer&&(gr.forEach(H),gr.connectedEdges().forEach(H)),Vn.addToList&&st(gr,Vn)}},pt=function(G,Vn){Vn=Vn||{};var gr=G.cy().hasCompoundNodes();Vn.inDragLayer&&(G.forEach(H),G.neighborhood().stdFilter(function(nr){return!gr||nr.isEdge()}).forEach(H)),Vn.addToList&&G.forEach(function(nr){st(nr,Vn)}),bt(G,Vn),Et(G,{inDragLayer:Vn.inDragLayer}),y.updateCachedGrabbedEles()},_t=pt,St=function(G){G&&(y.getCachedZSortedEles().forEach(function(Vn){j(Vn),q(Vn),Z(Vn)}),y.updateCachedGrabbedEles())},Et=function(G,Vn){if(!(Vn.inDragLayer==null&&Vn.addToList==null)&&G.cy().hasCompoundNodes()){var gr=G.ancestors().orphans();if(!gr.same(G)){var nr=gr.descendants().spawnSelf().merge(gr).unmerge(G).unmerge(G.descendants()),Be=nr.connectedEdges();Vn.inDragLayer&&(Be.forEach(H),nr.forEach(H)),Vn.addToList&&nr.forEach(function(Ls){st(Ls,Vn)})}}},Nt=function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},Pt=typeof MutationObserver<"u",qt=typeof ResizeObserver<"u";Pt?(y.removeObserver=new MutationObserver(function(Kn){for(var G=0;G<Kn.length;G++){var Vn=Kn[G],gr=Vn.removedNodes;if(gr)for(var nr=0;nr<gr.length;nr++){var Be=gr[nr];if(Be===y.container){y.destroy();break}}}}),y.container.parentNode&&y.removeObserver.observe(y.container.parentNode,{childList:!0})):y.registerBinding(y.container,"DOMNodeRemoved",function(Kn){y.destroy()});var re=pu(function(){y.cy.resize()},100);Pt&&(y.styleObserver=new MutationObserver(re),y.styleObserver.observe(y.container,{attributes:!0})),y.registerBinding(p,"resize",re),qt&&(y.resizeObserver=new ResizeObserver(re),y.resizeObserver.observe(y.container));var ee=function(G,Vn){for(;G!=null;)Vn(G),G=G.parentNode},Ut=function(){y.invalidateContainerClientCoordsCache()};ee(y.container,function(Kn){y.registerBinding(Kn,"transitionend",Ut),y.registerBinding(Kn,"animationend",Ut),y.registerBinding(Kn,"scroll",Ut)}),y.registerBinding(y.container,"contextmenu",function(Kn){Kn.preventDefault()});var de=function(){return y.selection[4]!==0},Yt=function(G){for(var Vn=y.findContainerClientCoords(),gr=Vn[0],nr=Vn[1],Be=Vn[2],Ls=Vn[3],hr=G.touches?G.touches:[G],us=!1,Ya=0;Ya<hr.length;Ya++){var kc=hr[Ya];if(gr<=kc.clientX&&kc.clientX<=gr+Be&&nr<=kc.clientY&&kc.clientY<=nr+Ls){us=!0;break}}if(!us)return!1;for(var Ca=y.container,oc=G.target,ra=oc.parentNode,no=!1;ra;){if(ra===Ca){no=!0;break}ra=ra.parentNode}return!!no};y.registerBinding(y.container,"mousedown",function(G){if(Yt(G)){G.preventDefault(),Nt(),y.hoverData.capture=!0,y.hoverData.which=G.which;var Vn=y.cy,gr=[G.clientX,G.clientY],nr=y.projectIntoViewport(gr[0],gr[1]),Be=y.selection,Ls=y.findNearestElements(nr[0],nr[1],!0,!1),hr=Ls[0],us=y.dragData.possibleDragElements;y.hoverData.mdownPos=nr,y.hoverData.mdownGPos=gr;var Ya=function(){y.hoverData.tapholdCancelled=!1,clearTimeout(y.hoverData.tapholdTimeout),y.hoverData.tapholdTimeout=setTimeout(function(){if(!y.hoverData.tapholdCancelled){var ql=y.hoverData.down;ql?ql.emit({originalEvent:G,type:"taphold",position:{x:nr[0],y:nr[1]}}):Vn.emit({originalEvent:G,type:"taphold",position:{x:nr[0],y:nr[1]}})}},y.tapholdDuration)};if(G.which==3){y.hoverData.cxtStarted=!0;var kc={originalEvent:G,type:"cxttapstart",position:{x:nr[0],y:nr[1]}};hr?(hr.activate(),hr.emit(kc),y.hoverData.down=hr):Vn.emit(kc),y.hoverData.downTime=new Date().getTime(),y.hoverData.cxtDragged=!1}else if(G.which==1){hr&&hr.activate();{if(hr!=null&&y.nodeIsGrabbable(hr)){var Ca=function(ql){return{originalEvent:G,type:ql,position:{x:nr[0],y:nr[1]}}},oc=function(ql){ql.emit(Ca("grab"))};if(W(hr),!hr.selected())us=y.dragData.possibleDragElements=Vn.collection(),_t(hr,{addToList:us}),hr.emit(Ca("grabon")).emit(Ca("grab"));else{us=y.dragData.possibleDragElements=Vn.collection();var ra=Vn.$(function(no){return no.isNode()&&no.selected()&&y.nodeIsGrabbable(no)});pt(ra,{addToList:us}),hr.emit(Ca("grabon")),ra.forEach(oc)}y.redrawHint("eles",!0),y.redrawHint("drag",!0)}y.hoverData.down=hr,y.hoverData.downs=Ls,y.hoverData.downTime=new Date().getTime()}C(hr,["mousedown","tapstart","vmousedown"],G,{x:nr[0],y:nr[1]}),hr==null?(Be[4]=1,y.data.bgActivePosistion={x:nr[0],y:nr[1]},y.redrawHint("select",!0),y.redraw()):hr.pannable()&&(Be[4]=1),Ya()}Be[0]=Be[2]=nr[0],Be[1]=Be[3]=nr[1]}},!1),y.registerBinding(p,"mousemove",function(G){var Vn=y.hoverData.capture;if(!(!Vn&&!Yt(G))){var gr=!1,nr=y.cy,Be=nr.zoom(),Ls=[G.clientX,G.clientY],hr=y.projectIntoViewport(Ls[0],Ls[1]),us=y.hoverData.mdownPos,Ya=y.hoverData.mdownGPos,kc=y.selection,Ca=null;!y.hoverData.draggingEles&&!y.hoverData.dragging&&!y.hoverData.selecting&&(Ca=y.findNearestElement(hr[0],hr[1],!0,!1));var oc=y.hoverData.last,ra=y.hoverData.down,no=[hr[0]-kc[2],hr[1]-kc[3]],ql=y.dragData.possibleDragElements,Sl;if(Ya){var mb=Ls[0]-Ya[0],vb=mb*mb,v1=Ls[1]-Ya[1],up=v1*v1,Bd=vb+up;y.hoverData.isOverThresholdDrag=Sl=Bd>=y.desktopTapThreshold2}var cm=L(G);Sl&&(y.hoverData.tapholdCancelled=!0);var py=function(){var $2=y.hoverData.dragDelta=y.hoverData.dragDelta||[];$2.length===0?($2.push(no[0]),$2.push(no[1])):($2[0]+=no[0],$2[1]+=no[1])};gr=!0,C(Ca,["mousemove","vmousemove","tapdrag"],G,{x:hr[0],y:hr[1]});var y6=function(){y.data.bgActivePosistion=void 0,y.hoverData.selecting||nr.emit({originalEvent:G,type:"boxstart",position:{x:hr[0],y:hr[1]}}),kc[4]=1,y.hoverData.selecting=!0,y.redrawHint("select",!0),y.redraw()};if(y.hoverData.which===3){if(Sl){var _4={originalEvent:G,type:"cxtdrag",position:{x:hr[0],y:hr[1]}};ra?ra.emit(_4):nr.emit(_4),y.hoverData.cxtDragged=!0,(!y.hoverData.cxtOver||Ca!==y.hoverData.cxtOver)&&(y.hoverData.cxtOver&&y.hoverData.cxtOver.emit({originalEvent:G,type:"cxtdragout",position:{x:hr[0],y:hr[1]}}),y.hoverData.cxtOver=Ca,Ca&&Ca.emit({originalEvent:G,type:"cxtdragover",position:{x:hr[0],y:hr[1]}}))}}else if(y.hoverData.dragging){if(gr=!0,nr.panningEnabled()&&nr.userPanningEnabled()){var x6;if(y.hoverData.justStartedPan){var BC=y.hoverData.mdownPos;x6={x:(hr[0]-BC[0])*Be,y:(hr[1]-BC[1])*Be},y.hoverData.justStartedPan=!1}else x6={x:no[0]*Be,y:no[1]*Be};nr.panBy(x6),nr.emit("dragpan"),y.hoverData.dragged=!0}hr=y.projectIntoViewport(G.clientX,G.clientY)}else if(kc[4]==1&&(ra==null||ra.pannable())){if(Sl){if(!y.hoverData.dragging&&nr.boxSelectionEnabled()&&(cm||!nr.panningEnabled()||!nr.userPanningEnabled()))y6();else if(!y.hoverData.selecting&&nr.panningEnabled()&&nr.userPanningEnabled()){var A4=O(ra,y.hoverData.downs);A4&&(y.hoverData.dragging=!0,y.hoverData.justStartedPan=!0,kc[4]=0,y.data.bgActivePosistion=Yx(us),y.redrawHint("select",!0),y.redraw())}ra&&ra.pannable()&&ra.active()&&ra.unactivate()}}else{if(ra&&ra.pannable()&&ra.active()&&ra.unactivate(),(!ra||!ra.grabbed())&&Ca!=oc&&(oc&&C(oc,["mouseout","tapdragout"],G,{x:hr[0],y:hr[1]}),Ca&&C(Ca,["mouseover","tapdragover"],G,{x:hr[0],y:hr[1]}),y.hoverData.last=Ca),ra)if(Sl){if(nr.boxSelectionEnabled()&&cm)ra&&ra.grabbed()&&(St(ql),ra.emit("freeon"),ql.emit("free"),y.dragData.didDrag&&(ra.emit("dragfreeon"),ql.emit("dragfree"))),y6();else if(ra&&ra.grabbed()&&y.nodeIsDraggable(ra)){var k0=!y.dragData.didDrag;k0&&y.redrawHint("eles",!0),y.dragData.didDrag=!0,y.hoverData.draggingEles||pt(ql,{inDragLayer:!0});var J1={x:0,y:0};if(Q(no[0])&&Q(no[1])&&(J1.x+=no[0],J1.y+=no[1],k0)){var E0=y.hoverData.dragDelta;E0&&Q(E0[0])&&Q(E0[1])&&(J1.x+=E0[0],J1.y+=E0[1])}y.hoverData.draggingEles=!0,ql.silentShift(J1).emit("position drag"),y.redrawHint("drag",!0),y.redraw()}}else py();gr=!0}if(kc[2]=hr[0],kc[3]=hr[1],gr)return G.stopPropagation&&G.stopPropagation(),G.preventDefault&&G.preventDefault(),!1}},!1);var Ee,Te,ie;y.registerBinding(p,"mouseup",function(G){var Vn=y.hoverData.capture;if(Vn){y.hoverData.capture=!1;var gr=y.cy,nr=y.projectIntoViewport(G.clientX,G.clientY),Be=y.selection,Ls=y.findNearestElement(nr[0],nr[1],!0,!1),hr=y.dragData.possibleDragElements,us=y.hoverData.down,Ya=L(G);if(y.data.bgActivePosistion&&(y.redrawHint("select",!0),y.redraw()),y.hoverData.tapholdCancelled=!0,y.data.bgActivePosistion=void 0,us&&us.unactivate(),y.hoverData.which===3){var kc={originalEvent:G,type:"cxttapend",position:{x:nr[0],y:nr[1]}};if(us?us.emit(kc):gr.emit(kc),!y.hoverData.cxtDragged){var Ca={originalEvent:G,type:"cxttap",position:{x:nr[0],y:nr[1]}};us?us.emit(Ca):gr.emit(Ca)}y.hoverData.cxtDragged=!1,y.hoverData.which=null}else if(y.hoverData.which===1){if(C(Ls,["mouseup","tapend","vmouseup"],G,{x:nr[0],y:nr[1]}),!y.dragData.didDrag&&!y.hoverData.dragged&&!y.hoverData.selecting&&!y.hoverData.isOverThresholdDrag&&(C(us,["click","tap","vclick"],G,{x:nr[0],y:nr[1]}),Te=!1,G.timeStamp-ie<=gr.multiClickDebounceTime()?(Ee&&clearTimeout(Ee),Te=!0,ie=null,C(us,["dblclick","dbltap","vdblclick"],G,{x:nr[0],y:nr[1]})):(Ee=setTimeout(function(){Te||C(us,["oneclick","onetap","voneclick"],G,{x:nr[0],y:nr[1]})},gr.multiClickDebounceTime()),ie=G.timeStamp)),us==null&&!y.dragData.didDrag&&!y.hoverData.selecting&&!y.hoverData.dragged&&!L(G)&&(gr.$(x).unselect(["tapunselect"]),hr.length>0&&y.redrawHint("eles",!0),y.dragData.possibleDragElements=hr=gr.collection()),Ls==us&&!y.dragData.didDrag&&!y.hoverData.selecting&&Ls!=null&&Ls._private.selectable&&(y.hoverData.dragging||(gr.selectionType()==="additive"||Ya?Ls.selected()?Ls.unselect(["tapunselect"]):Ls.select(["tapselect"]):Ya||(gr.$(x).unmerge(Ls).unselect(["tapunselect"]),Ls.select(["tapselect"]))),y.redrawHint("eles",!0)),y.hoverData.selecting){var oc=gr.collection(y.getAllInBox(Be[0],Be[1],Be[2],Be[3]));y.redrawHint("select",!0),oc.length>0&&y.redrawHint("eles",!0),gr.emit({type:"boxend",originalEvent:G,position:{x:nr[0],y:nr[1]}});var ra=function(Sl){return Sl.selectable()&&!Sl.selected()};gr.selectionType()==="additive"||Ya||gr.$(x).unmerge(oc).unselect(),oc.emit("box").stdFilter(ra).select().emit("boxselect"),y.redraw()}if(y.hoverData.dragging&&(y.hoverData.dragging=!1,y.redrawHint("select",!0),y.redrawHint("eles",!0),y.redraw()),!Be[4]){y.redrawHint("drag",!0),y.redrawHint("eles",!0);var no=us&&us.grabbed();St(hr),no&&(us.emit("freeon"),hr.emit("free"),y.dragData.didDrag&&(us.emit("dragfreeon"),hr.emit("dragfree")))}}Be[4]=0,y.hoverData.down=null,y.hoverData.cxtStarted=!1,y.hoverData.draggingEles=!1,y.hoverData.selecting=!1,y.hoverData.isOverThresholdDrag=!1,y.dragData.didDrag=!1,y.hoverData.dragged=!1,y.hoverData.dragDelta=[],y.hoverData.mdownPos=null,y.hoverData.mdownGPos=null}},!1);var ze=function(G){if(!y.scrollingPage){var Vn=y.cy,gr=Vn.zoom(),nr=Vn.pan(),Be=y.projectIntoViewport(G.clientX,G.clientY),Ls=[Be[0]*gr+nr.x,Be[1]*gr+nr.y];if(y.hoverData.draggingEles||y.hoverData.dragging||y.hoverData.cxtStarted||de()){G.preventDefault();return}if(Vn.panningEnabled()&&Vn.userPanningEnabled()&&Vn.zoomingEnabled()&&Vn.userZoomingEnabled()){G.preventDefault(),y.data.wheelZooming=!0,clearTimeout(y.data.wheelTimeout),y.data.wheelTimeout=setTimeout(function(){y.data.wheelZooming=!1,y.redrawHint("eles",!0),y.redraw()},150);var hr;G.deltaY!=null?hr=G.deltaY/-250:G.wheelDeltaY!=null?hr=G.wheelDeltaY/1e3:hr=G.wheelDelta/1e3,hr=hr*y.wheelSensitivity;var us=G.deltaMode===1;us&&(hr*=33);var Ya=Vn.zoom()*Math.pow(10,hr);G.type==="gesturechange"&&(Ya=y.gestureStartZoom*G.scale),Vn.zoom({level:Ya,renderedPosition:{x:Ls[0],y:Ls[1]}}),Vn.emit(G.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};y.registerBinding(y.container,"wheel",ze,!0),y.registerBinding(p,"scroll",function(G){y.scrollingPage=!0,clearTimeout(y.scrollingPageTimeout),y.scrollingPageTimeout=setTimeout(function(){y.scrollingPage=!1},250)},!0),y.registerBinding(y.container,"gesturestart",function(G){y.gestureStartZoom=y.cy.zoom(),y.hasTouchStarted||G.preventDefault()},!0),y.registerBinding(y.container,"gesturechange",function(Kn){y.hasTouchStarted||ze(Kn)},!0),y.registerBinding(y.container,"mouseout",function(G){var Vn=y.projectIntoViewport(G.clientX,G.clientY);y.cy.emit({originalEvent:G,type:"mouseout",position:{x:Vn[0],y:Vn[1]}})},!1),y.registerBinding(y.container,"mouseover",function(G){var Vn=y.projectIntoViewport(G.clientX,G.clientY);y.cy.emit({originalEvent:G,type:"mouseover",position:{x:Vn[0],y:Vn[1]}})},!1);var me,yn,nn,qe,Tn,Xn,lr,Sn,or,pr,kr,wr,Cr,$n=function(G,Vn,gr,nr){return Math.sqrt((gr-G)*(gr-G)+(nr-Vn)*(nr-Vn))},cr=function(G,Vn,gr,nr){return(gr-G)*(gr-G)+(nr-Vn)*(nr-Vn)},mr;y.registerBinding(y.container,"touchstart",mr=function(G){if(y.hasTouchStarted=!0,!!Yt(G)){Nt(),y.touchData.capture=!0,y.data.bgActivePosistion=void 0;var Vn=y.cy,gr=y.touchData.now,nr=y.touchData.earlier;if(G.touches[0]){var Be=y.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);gr[0]=Be[0],gr[1]=Be[1]}if(G.touches[1]){var Be=y.projectIntoViewport(G.touches[1].clientX,G.touches[1].clientY);gr[2]=Be[0],gr[3]=Be[1]}if(G.touches[2]){var Be=y.projectIntoViewport(G.touches[2].clientX,G.touches[2].clientY);gr[4]=Be[0],gr[5]=Be[1]}if(G.touches[1]){y.touchData.singleTouchMoved=!0,St(y.dragData.touchDragEles);var Ls=y.findContainerClientCoords();or=Ls[0],pr=Ls[1],kr=Ls[2],wr=Ls[3],me=G.touches[0].clientX-or,yn=G.touches[0].clientY-pr,nn=G.touches[1].clientX-or,qe=G.touches[1].clientY-pr,Cr=0<=me&&me<=kr&&0<=nn&&nn<=kr&&0<=yn&&yn<=wr&&0<=qe&&qe<=wr;var hr=Vn.pan(),us=Vn.zoom();Tn=$n(me,yn,nn,qe),Xn=cr(me,yn,nn,qe),lr=[(me+nn)/2,(yn+qe)/2],Sn=[(lr[0]-hr.x)/us,(lr[1]-hr.y)/us];var Ya=200,kc=Ya*Ya;if(Xn<kc&&!G.touches[2]){var Ca=y.findNearestElement(gr[0],gr[1],!0,!0),oc=y.findNearestElement(gr[2],gr[3],!0,!0);Ca&&Ca.isNode()?(Ca.activate().emit({originalEvent:G,type:"cxttapstart",position:{x:gr[0],y:gr[1]}}),y.touchData.start=Ca):oc&&oc.isNode()?(oc.activate().emit({originalEvent:G,type:"cxttapstart",position:{x:gr[0],y:gr[1]}}),y.touchData.start=oc):Vn.emit({originalEvent:G,type:"cxttapstart",position:{x:gr[0],y:gr[1]}}),y.touchData.start&&(y.touchData.start._private.grabbed=!1),y.touchData.cxt=!0,y.touchData.cxtDragged=!1,y.data.bgActivePosistion=void 0,y.redraw();return}}if(G.touches[2])Vn.boxSelectionEnabled()&&G.preventDefault();else if(!G.touches[1]){if(G.touches[0]){var ra=y.findNearestElements(gr[0],gr[1],!0,!0),no=ra[0];if(no!=null&&(no.activate(),y.touchData.start=no,y.touchData.starts=ra,y.nodeIsGrabbable(no))){var ql=y.dragData.touchDragEles=Vn.collection(),Sl=null;y.redrawHint("eles",!0),y.redrawHint("drag",!0),no.selected()?(Sl=Vn.$(function(Bd){return Bd.selected()&&y.nodeIsGrabbable(Bd)}),pt(Sl,{addToList:ql})):_t(no,{addToList:ql}),W(no);var mb=function(cm){return{originalEvent:G,type:cm,position:{x:gr[0],y:gr[1]}}};no.emit(mb("grabon")),Sl?Sl.forEach(function(Bd){Bd.emit(mb("grab"))}):no.emit(mb("grab"))}C(no,["touchstart","tapstart","vmousedown"],G,{x:gr[0],y:gr[1]}),no==null&&(y.data.bgActivePosistion={x:Be[0],y:Be[1]},y.redrawHint("select",!0),y.redraw()),y.touchData.singleTouchMoved=!1,y.touchData.singleTouchStartTime=+new Date,clearTimeout(y.touchData.tapholdTimeout),y.touchData.tapholdTimeout=setTimeout(function(){y.touchData.singleTouchMoved===!1&&!y.pinching&&!y.touchData.selecting&&C(y.touchData.start,["taphold"],G,{x:gr[0],y:gr[1]})},y.tapholdDuration)}}if(G.touches.length>=1){for(var vb=y.touchData.startPosition=[null,null,null,null,null,null],v1=0;v1<gr.length;v1++)vb[v1]=nr[v1]=gr[v1];var up=G.touches[0];y.touchData.startGPosition=[up.clientX,up.clientY]}}},!1);var Sr;y.registerBinding(window,"touchmove",Sr=function(G){var Vn=y.touchData.capture;if(!(!Vn&&!Yt(G))){var gr=y.selection,nr=y.cy,Be=y.touchData.now,Ls=y.touchData.earlier,hr=nr.zoom();if(G.touches[0]){var us=y.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);Be[0]=us[0],Be[1]=us[1]}if(G.touches[1]){var us=y.projectIntoViewport(G.touches[1].clientX,G.touches[1].clientY);Be[2]=us[0],Be[3]=us[1]}if(G.touches[2]){var us=y.projectIntoViewport(G.touches[2].clientX,G.touches[2].clientY);Be[4]=us[0],Be[5]=us[1]}var Ya=y.touchData.startGPosition,kc;if(Vn&&G.touches[0]&&Ya){for(var Ca=[],oc=0;oc<Be.length;oc++)Ca[oc]=Be[oc]-Ls[oc];var ra=G.touches[0].clientX-Ya[0],no=ra*ra,ql=G.touches[0].clientY-Ya[1],Sl=ql*ql,mb=no+Sl;kc=mb>=y.touchTapThreshold2}if(Vn&&y.touchData.cxt){G.preventDefault();var vb=G.touches[0].clientX-or,v1=G.touches[0].clientY-pr,up=G.touches[1].clientX-or,Bd=G.touches[1].clientY-pr,cm=cr(vb,v1,up,Bd),py=cm/Xn,y6=150,_4=y6*y6,x6=1.5,BC=x6*x6;if(py>=BC||cm>=_4){y.touchData.cxt=!1,y.data.bgActivePosistion=void 0,y.redrawHint("select",!0);var A4={originalEvent:G,type:"cxttapend",position:{x:Be[0],y:Be[1]}};y.touchData.start?(y.touchData.start.unactivate().emit(A4),y.touchData.start=null):nr.emit(A4)}}if(Vn&&y.touchData.cxt){var A4={originalEvent:G,type:"cxtdrag",position:{x:Be[0],y:Be[1]}};y.data.bgActivePosistion=void 0,y.redrawHint("select",!0),y.touchData.start?y.touchData.start.emit(A4):nr.emit(A4),y.touchData.start&&(y.touchData.start._private.grabbed=!1),y.touchData.cxtDragged=!0;var k0=y.findNearestElement(Be[0],Be[1],!0,!0);(!y.touchData.cxtOver||k0!==y.touchData.cxtOver)&&(y.touchData.cxtOver&&y.touchData.cxtOver.emit({originalEvent:G,type:"cxtdragout",position:{x:Be[0],y:Be[1]}}),y.touchData.cxtOver=k0,k0&&k0.emit({originalEvent:G,type:"cxtdragover",position:{x:Be[0],y:Be[1]}}))}else if(Vn&&G.touches[2]&&nr.boxSelectionEnabled())G.preventDefault(),y.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,y.touchData.selecting||nr.emit({originalEvent:G,type:"boxstart",position:{x:Be[0],y:Be[1]}}),y.touchData.selecting=!0,y.touchData.didSelect=!0,gr[4]=1,!gr||gr.length===0||gr[0]===void 0?(gr[0]=(Be[0]+Be[2]+Be[4])/3,gr[1]=(Be[1]+Be[3]+Be[5])/3,gr[2]=(Be[0]+Be[2]+Be[4])/3+1,gr[3]=(Be[1]+Be[3]+Be[5])/3+1):(gr[2]=(Be[0]+Be[2]+Be[4])/3,gr[3]=(Be[1]+Be[3]+Be[5])/3),y.redrawHint("select",!0),y.redraw();else if(Vn&&G.touches[1]&&!y.touchData.didSelect&&nr.zoomingEnabled()&&nr.panningEnabled()&&nr.userZoomingEnabled()&&nr.userPanningEnabled()){G.preventDefault(),y.data.bgActivePosistion=void 0,y.redrawHint("select",!0);var J1=y.dragData.touchDragEles;if(J1){y.redrawHint("drag",!0);for(var E0=0;E0<J1.length;E0++){var by=J1[E0]._private;by.grabbed=!1,by.rscratch.inDragLayer=!1}}var $2=y.touchData.start,vb=G.touches[0].clientX-or,v1=G.touches[0].clientY-pr,up=G.touches[1].clientX-or,Bd=G.touches[1].clientY-pr,Zj=$n(vb,v1,up,Bd),Mnt=Zj/Tn;if(Cr){var Int=vb-me,RC=v1-yn,Ont=up-nn,Nnt=Bd-qe,L4=(Int+Ont)/2,t$=(RC+Nnt)/2,lE=nr.zoom(),SM=lE*Mnt,jC=nr.pan(),e$=Sn[0]*lE+jC.x,n$=Sn[1]*lE+jC.y,Pnt={x:-SM/lE*(e$-jC.x-L4)+e$,y:-SM/lE*(n$-jC.y-t$)+n$};if($2&&$2.active()){var J1=y.dragData.touchDragEles;St(J1),y.redrawHint("drag",!0),y.redrawHint("eles",!0),$2.unactivate().emit("freeon"),J1.emit("free"),y.dragData.didDrag&&($2.emit("dragfreeon"),J1.emit("dragfree"))}nr.viewport({zoom:SM,pan:Pnt,cancelOnFailedZoom:!0}),nr.emit("pinchzoom"),Tn=Zj,me=vb,yn=v1,nn=up,qe=Bd,y.pinching=!0}if(G.touches[0]){var us=y.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);Be[0]=us[0],Be[1]=us[1]}if(G.touches[1]){var us=y.projectIntoViewport(G.touches[1].clientX,G.touches[1].clientY);Be[2]=us[0],Be[3]=us[1]}if(G.touches[2]){var us=y.projectIntoViewport(G.touches[2].clientX,G.touches[2].clientY);Be[4]=us[0],Be[5]=us[1]}}else if(G.touches[0]&&!y.touchData.didSelect){var lp=y.touchData.start,$C=y.touchData.last,k0;if(!y.hoverData.draggingEles&&!y.swipePanning&&(k0=y.findNearestElement(Be[0],Be[1],!0,!0)),Vn&&lp!=null&&G.preventDefault(),Vn&&lp!=null&&y.nodeIsDraggable(lp))if(kc){var J1=y.dragData.touchDragEles,_M=!y.dragData.didDrag;_M&&pt(J1,{inDragLayer:!0}),y.dragData.didDrag=!0;var z2={x:0,y:0};if(Q(Ca[0])&&Q(Ca[1])&&(z2.x+=Ca[0],z2.y+=Ca[1],_M)){y.redrawHint("eles",!0);var T0=y.touchData.dragDelta;T0&&Q(T0[0])&&Q(T0[1])&&(z2.x+=T0[0],z2.y+=T0[1])}y.hoverData.draggingEles=!0,J1.silentShift(z2).emit("position drag"),y.redrawHint("drag",!0),y.touchData.startPosition[0]==Ls[0]&&y.touchData.startPosition[1]==Ls[1]&&y.redrawHint("eles",!0),y.redraw()}else{var T0=y.touchData.dragDelta=y.touchData.dragDelta||[];T0.length===0?(T0.push(Ca[0]),T0.push(Ca[1])):(T0[0]+=Ca[0],T0[1]+=Ca[1])}if(C(lp||k0,["touchmove","tapdrag","vmousemove"],G,{x:Be[0],y:Be[1]}),(!lp||!lp.grabbed())&&k0!=$C&&($C&&$C.emit({originalEvent:G,type:"tapdragout",position:{x:Be[0],y:Be[1]}}),k0&&k0.emit({originalEvent:G,type:"tapdragover",position:{x:Be[0],y:Be[1]}})),y.touchData.last=k0,Vn)for(var E0=0;E0<Be.length;E0++)Be[E0]&&y.touchData.startPosition[E0]&&kc&&(y.touchData.singleTouchMoved=!0);if(Vn&&(lp==null||lp.pannable())&&nr.panningEnabled()&&nr.userPanningEnabled()){var D4=O(lp,y.touchData.starts);D4&&(G.preventDefault(),y.data.bgActivePosistion||(y.data.bgActivePosistion=Yx(y.touchData.startPosition)),y.swipePanning?(nr.panBy({x:Ca[0]*hr,y:Ca[1]*hr}),nr.emit("dragpan")):kc&&(y.swipePanning=!0,nr.panBy({x:ra*hr,y:ql*hr}),nr.emit("dragpan"),lp&&(lp.unactivate(),y.redrawHint("select",!0),y.touchData.start=null)));var us=y.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);Be[0]=us[0],Be[1]=us[1]}}for(var oc=0;oc<Be.length;oc++)Ls[oc]=Be[oc];Vn&&G.touches.length>0&&!y.hoverData.draggingEles&&!y.swipePanning&&y.data.bgActivePosistion!=null&&(y.data.bgActivePosistion=void 0,y.redrawHint("select",!0),y.redraw())}},!1);var gi;y.registerBinding(p,"touchcancel",gi=function(G){var Vn=y.touchData.start;y.touchData.capture=!1,Vn&&Vn.unactivate()});var ss,na,vi,si;if(y.registerBinding(p,"touchend",ss=function(G){var Vn=y.touchData.start,gr=y.touchData.capture;if(gr)G.touches.length===0&&(y.touchData.capture=!1),G.preventDefault();else return;var nr=y.selection;y.swipePanning=!1,y.hoverData.draggingEles=!1;var Be=y.cy,Ls=Be.zoom(),hr=y.touchData.now,us=y.touchData.earlier;if(G.touches[0]){var Ya=y.projectIntoViewport(G.touches[0].clientX,G.touches[0].clientY);hr[0]=Ya[0],hr[1]=Ya[1]}if(G.touches[1]){var Ya=y.projectIntoViewport(G.touches[1].clientX,G.touches[1].clientY);hr[2]=Ya[0],hr[3]=Ya[1]}if(G.touches[2]){var Ya=y.projectIntoViewport(G.touches[2].clientX,G.touches[2].clientY);hr[4]=Ya[0],hr[5]=Ya[1]}Vn&&Vn.unactivate();var kc;if(y.touchData.cxt){if(kc={originalEvent:G,type:"cxttapend",position:{x:hr[0],y:hr[1]}},Vn?Vn.emit(kc):Be.emit(kc),!y.touchData.cxtDragged){var Ca={originalEvent:G,type:"cxttap",position:{x:hr[0],y:hr[1]}};Vn?Vn.emit(Ca):Be.emit(Ca)}y.touchData.start&&(y.touchData.start._private.grabbed=!1),y.touchData.cxt=!1,y.touchData.start=null,y.redraw();return}if(!G.touches[2]&&Be.boxSelectionEnabled()&&y.touchData.selecting){y.touchData.selecting=!1;var oc=Be.collection(y.getAllInBox(nr[0],nr[1],nr[2],nr[3]));nr[0]=void 0,nr[1]=void 0,nr[2]=void 0,nr[3]=void 0,nr[4]=0,y.redrawHint("select",!0),Be.emit({type:"boxend",originalEvent:G,position:{x:hr[0],y:hr[1]}});var ra=function(_4){return _4.selectable()&&!_4.selected()};oc.emit("box").stdFilter(ra).select().emit("boxselect"),oc.nonempty()&&y.redrawHint("eles",!0),y.redraw()}if(Vn!=null&&Vn.unactivate(),G.touches[2])y.data.bgActivePosistion=void 0,y.redrawHint("select",!0);else if(!G.touches[1]){if(!G.touches[0]){if(!G.touches[0]){y.data.bgActivePosistion=void 0,y.redrawHint("select",!0);var no=y.dragData.touchDragEles;if(Vn!=null){var ql=Vn._private.grabbed;St(no),y.redrawHint("drag",!0),y.redrawHint("eles",!0),ql&&(Vn.emit("freeon"),no.emit("free"),y.dragData.didDrag&&(Vn.emit("dragfreeon"),no.emit("dragfree"))),C(Vn,["touchend","tapend","vmouseup","tapdragout"],G,{x:hr[0],y:hr[1]}),Vn.unactivate(),y.touchData.start=null}else{var Sl=y.findNearestElement(hr[0],hr[1],!0,!0);C(Sl,["touchend","tapend","vmouseup","tapdragout"],G,{x:hr[0],y:hr[1]})}var mb=y.touchData.startPosition[0]-hr[0],vb=mb*mb,v1=y.touchData.startPosition[1]-hr[1],up=v1*v1,Bd=vb+up,cm=Bd*Ls*Ls;y.touchData.singleTouchMoved||(Vn||Be.$(":selected").unselect(["tapunselect"]),C(Vn,["tap","vclick"],G,{x:hr[0],y:hr[1]}),na=!1,G.timeStamp-si<=Be.multiClickDebounceTime()?(vi&&clearTimeout(vi),na=!0,si=null,C(Vn,["dbltap","vdblclick"],G,{x:hr[0],y:hr[1]})):(vi=setTimeout(function(){na||C(Vn,["onetap","voneclick"],G,{x:hr[0],y:hr[1]})},Be.multiClickDebounceTime()),si=G.timeStamp)),Vn!=null&&!y.dragData.didDrag&&Vn._private.selectable&&cm<y.touchTapThreshold2&&!y.pinching&&(Be.selectionType()==="single"?(Be.$(x).unmerge(Vn).unselect(["tapunselect"]),Vn.select(["tapselect"])):Vn.selected()?Vn.unselect(["tapunselect"]):Vn.select(["tapselect"]),y.redrawHint("eles",!0)),y.touchData.singleTouchMoved=!0}}}for(var py=0;py<hr.length;py++)us[py]=hr[py];y.dragData.didDrag=!1,G.touches.length===0&&(y.touchData.dragDelta=[],y.touchData.startPosition=[null,null,null,null,null,null],y.touchData.startGPosition=null,y.touchData.didSelect=!1),G.touches.length<2&&(G.touches.length===1&&(y.touchData.startGPosition=[G.touches[0].clientX,G.touches[0].clientY]),y.pinching=!1,y.redrawHint("eles",!0),y.redraw())},!1),typeof TouchEvent>"u"){var Qi=[],ks=function(G){return{clientX:G.clientX,clientY:G.clientY,force:1,identifier:G.pointerId,pageX:G.pageX,pageY:G.pageY,radiusX:G.width/2,radiusY:G.height/2,screenX:G.screenX,screenY:G.screenY,target:G.target}},as=function(G){return{event:G,touch:ks(G)}},Es=function(G){Qi.push(as(G))},eo=function(G){for(var Vn=0;Vn<Qi.length;Vn++){var gr=Qi[Vn];if(gr.event.pointerId===G.pointerId){Qi.splice(Vn,1);return}}},Ta=function(G){var Vn=Qi.filter(function(gr){return gr.event.pointerId===G.pointerId})[0];Vn.event=G,Vn.touch=ks(G)},pa=function(G){G.touches=Qi.map(function(Vn){return Vn.touch})},mo=function(G){return G.pointerType==="mouse"||G.pointerType===4};y.registerBinding(y.container,"pointerdown",function(Kn){mo(Kn)||(Kn.preventDefault(),Es(Kn),pa(Kn),mr(Kn))}),y.registerBinding(y.container,"pointerup",function(Kn){mo(Kn)||(eo(Kn),pa(Kn),ss(Kn))}),y.registerBinding(y.container,"pointercancel",function(Kn){mo(Kn)||(eo(Kn),pa(Kn),gi(Kn))}),y.registerBinding(y.container,"pointermove",function(Kn){mo(Kn)||(Kn.preventDefault(),Ta(Kn),pa(Kn),Sr(Kn))})}};var om={};om.generatePolygon=function(y,p){return this.nodeShapes[y]={renderer:this,name:y,points:p,draw:function(C,L,O,N,j){this.renderer.nodeShapeImpl("polygon",C,L,O,N,j,this.points)},intersectLine:function(C,L,O,N,j,H,q){return B8(j,H,this.points,C,L,O/2,N/2,q)},checkPoint:function(C,L,O,N,j,H,q){return sm(C,L,this.points,H,q,N,j,[0,-1],O)}}},om.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(p,x,C,L,O){this.renderer.nodeShapeImpl(this.name,p,x,C,L,O)},intersectLine:function(p,x,C,L,O,N,j){return CQ(O,N,p,x,C/2+j,L/2+j)},checkPoint:function(p,x,C,L,O,N,j){return v4(p,x,L,O,N,j,C)}}},om.generateRoundPolygon=function(y,p){for(var x=new Array(p.length*2),C=0;C<p.length/2;C++){var L=C*2,O=void 0;C<p.length/2-1?O=(C+1)*2:O=0,x[C*4]=p[L],x[C*4+1]=p[L+1];var N=p[O]-p[L],j=p[O+1]-p[L+1],H=Math.sqrt(N*N+j*j);x[C*4+2]=N/H,x[C*4+3]=j/H}return this.nodeShapes[y]={renderer:this,name:y,points:x,draw:function(W,Z,st,bt,pt){this.renderer.nodeShapeImpl("round-polygon",W,Z,st,bt,pt,this.points)},intersectLine:function(W,Z,st,bt,pt,_t,St){return SQ(pt,_t,this.points,W,Z,st,bt)},checkPoint:function(W,Z,st,bt,pt,_t,St){return TQ(W,Z,this.points,_t,St,bt,pt)}}},om.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Fd(4,0),draw:function(p,x,C,L,O){this.renderer.nodeShapeImpl(this.name,p,x,C,L,O)},intersectLine:function(p,x,C,L,O,N,j){return $B(O,N,p,x,C,L,j)},checkPoint:function(p,x,C,L,O,N,j){var H=R8(L,O),q=H*2;return!!(sm(p,x,this.points,N,j,L,O-q,[0,-1],C)||sm(p,x,this.points,N,j,L-q,O,[0,-1],C)||v4(p,x,q,q,N-L/2+H,j-O/2+H,C)||v4(p,x,q,q,N+L/2-H,j-O/2+H,C)||v4(p,x,q,q,N+L/2-H,j+O/2-H,C)||v4(p,x,q,q,N-L/2+H,j+O/2-H,C))}}},om.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:qB(),points:Fd(4,0),draw:function(p,x,C,L,O){this.renderer.nodeShapeImpl(this.name,p,x,C,L,O)},generateCutTrianglePts:function(p,x,C,L){var O=this.cornerLength,N=x/2,j=p/2,H=C-j,q=C+j,W=L-N,Z=L+N;return{topLeft:[H,W+O,H+O,W,H+O,W+O],topRight:[q-O,W,q,W+O,q-O,W+O],bottomRight:[q,Z-O,q-O,Z,q-O,Z-O],bottomLeft:[H+O,Z,H,Z-O,H+O,Z-O]}},intersectLine:function(p,x,C,L,O,N,j){var H=this.generateCutTrianglePts(C+2*j,L+2*j,p,x),q=[].concat.apply([],[H.topLeft.splice(0,4),H.topRight.splice(0,4),H.bottomRight.splice(0,4),H.bottomLeft.splice(0,4)]);return B8(O,N,q,p,x)},checkPoint:function(p,x,C,L,O,N,j){if(sm(p,x,this.points,N,j,L,O-2*this.cornerLength,[0,-1],C)||sm(p,x,this.points,N,j,L-2*this.cornerLength,O,[0,-1],C))return!0;var H=this.generateCutTrianglePts(L,O,N,j);return y0(p,x,H.topLeft)||y0(p,x,H.topRight)||y0(p,x,H.bottomRight)||y0(p,x,H.bottomLeft)}}},om.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Fd(4,0),draw:function(p,x,C,L,O){this.renderer.nodeShapeImpl(this.name,p,x,C,L,O)},intersectLine:function(p,x,C,L,O,N,j){var H=.15,q=.5,W=.85,Z=this.generateBarrelBezierPts(C+2*j,L+2*j,p,x),st=function(_t){var St=Xx({x:_t[0],y:_t[1]},{x:_t[2],y:_t[3]},{x:_t[4],y:_t[5]},H),Et=Xx({x:_t[0],y:_t[1]},{x:_t[2],y:_t[3]},{x:_t[4],y:_t[5]},q),Nt=Xx({x:_t[0],y:_t[1]},{x:_t[2],y:_t[3]},{x:_t[4],y:_t[5]},W);return[_t[0],_t[1],St.x,St.y,Et.x,Et.y,Nt.x,Nt.y,_t[4],_t[5]]},bt=[].concat(st(Z.topLeft),st(Z.topRight),st(Z.bottomRight),st(Z.bottomLeft));return B8(O,N,bt,p,x)},generateBarrelBezierPts:function(p,x,C,L){var O=x/2,N=p/2,j=C-N,H=C+N,q=L-O,W=L+O,Z=VD(p,x),st=Z.heightOffset,bt=Z.widthOffset,pt=Z.ctrlPtOffsetPct*p,_t={topLeft:[j,q+st,j+pt,q,j+bt,q],topRight:[H-bt,q,H-pt,q,H,q+st],bottomRight:[H,W-st,H-pt,W,H-bt,W],bottomLeft:[j+bt,W,j+pt,W,j,W-st]};return _t.topLeft.isTop=!0,_t.topRight.isTop=!0,_t.bottomLeft.isBottom=!0,_t.bottomRight.isBottom=!0,_t},checkPoint:function(p,x,C,L,O,N,j){var H=VD(L,O),q=H.heightOffset,W=H.widthOffset;if(sm(p,x,this.points,N,j,L,O-2*q,[0,-1],C)||sm(p,x,this.points,N,j,L-2*W,O,[0,-1],C))return!0;for(var Z=this.generateBarrelBezierPts(L,O,N,j),st=function(Ut,de,Yt){var Ee=Yt[4],Te=Yt[2],ie=Yt[0],ze=Yt[5],me=Yt[1],yn=Math.min(Ee,ie),nn=Math.max(Ee,ie),qe=Math.min(ze,me),Tn=Math.max(ze,me);if(yn<=Ut&&Ut<=nn&&qe<=de&&de<=Tn){var Xn=_Q(Ee,Te,ie),lr=yQ(Xn[0],Xn[1],Xn[2],Ut),Sn=lr.filter(function(or){return 0<=or&&or<=1});if(Sn.length>0)return Sn[0]}return null},bt=Object.keys(Z),pt=0;pt<bt.length;pt++){var _t=bt[pt],St=Z[_t],Et=st(p,x,St);if(Et!=null){var Nt=St[5],Pt=St[3],qt=St[1],re=Lf(Nt,Pt,qt,Et);if(St.isTop&&re<=x||St.isBottom&&x<=re)return!0}}return!1}}},om.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Fd(4,0),draw:function(p,x,C,L,O){this.renderer.nodeShapeImpl(this.name,p,x,C,L,O)},intersectLine:function(p,x,C,L,O,N,j){var H=p-(C/2+j),q=x-(L/2+j),W=q,Z=p+(C/2+j),st=uy(O,N,p,x,H,q,Z,W,!1);return st.length>0?st:$B(O,N,p,x,C,L,j)},checkPoint:function(p,x,C,L,O,N,j){var H=R8(L,O),q=2*H;if(sm(p,x,this.points,N,j,L,O-q,[0,-1],C)||sm(p,x,this.points,N,j,L-q,O,[0,-1],C))return!0;var W=L/2+2*C,Z=O/2+2*C,st=[N-W,j-Z,N-W,j,N+W,j,N+W,j-Z];return!!(y0(p,x,st)||v4(p,x,q,q,N+L/2-H,j+O/2-H,C)||v4(p,x,q,q,N-L/2+H,j+O/2-H,C))}}},om.registerNodeShapes=function(){var y=this.nodeShapes={},p=this;this.generateEllipse(),this.generatePolygon("triangle",Fd(3,0)),this.generateRoundPolygon("round-triangle",Fd(3,0)),this.generatePolygon("rectangle",Fd(4,0)),y.square=y.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var x=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",x),this.generateRoundPolygon("round-diamond",x)}this.generatePolygon("pentagon",Fd(5,0)),this.generateRoundPolygon("round-pentagon",Fd(5,0)),this.generatePolygon("hexagon",Fd(6,0)),this.generateRoundPolygon("round-hexagon",Fd(6,0)),this.generatePolygon("heptagon",Fd(7,0)),this.generateRoundPolygon("round-heptagon",Fd(7,0)),this.generatePolygon("octagon",Fd(8,0)),this.generateRoundPolygon("round-octagon",Fd(8,0));var C=new Array(20);{var L=qD(5,0),O=qD(5,Math.PI/5),N=.5*(3-Math.sqrt(5));N*=1.57;for(var j=0;j<O.length/2;j++)O[j*2]*=N,O[j*2+1]*=N;for(var j=0;j<20/4;j++)C[j*4]=L[j*2],C[j*4+1]=L[j*2+1],C[j*4+2]=O[j*2],C[j*4+3]=O[j*2+1]}C=zB(C),this.generatePolygon("star",C),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var H=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",H),this.generateRoundPolygon("round-tag",H)}y.makePolygon=function(q){var W=q.join("$"),Z="polygon-"+W,st;return(st=this[Z])?st:p.generatePolygon(Z,q)}};var nE={};nE.timeToRender=function(){return this.redrawTotalTime/this.redrawCount},nE.redraw=function(y){y=y||IB();var p=this;p.averageRedrawTime===void 0&&(p.averageRedrawTime=0),p.lastRedrawTime===void 0&&(p.lastRedrawTime=0),p.lastDrawTime===void 0&&(p.lastDrawTime=0),p.requestedFrame=!0,p.renderOptions=y},nE.beforeRender=function(y,p){if(!this.destroyed){p==null&&$l("Priority is not optional for beforeRender");var x=this.beforeRenderCallbacks;x.push({fn:y,priority:p}),x.sort(function(C,L){return L.priority-C.priority})}};var Lj=function(p,x,C){for(var L=p.beforeRenderCallbacks,O=0;O<L.length;O++)L[O].fn(x,C)};nE.startRenderLoop=function(){var y=this,p=y.cy;if(!y.renderLoopStarted){y.renderLoopStarted=!0;var x=function C(L){if(!y.destroyed){if(!p.batching())if(y.requestedFrame&&!y.skipFrame){Lj(y,!0,L);var O=ip();y.render(y.renderOptions);var N=y.lastDrawTime=ip();y.averageRedrawTime===void 0&&(y.averageRedrawTime=N-O),y.redrawCount===void 0&&(y.redrawCount=0),y.redrawCount++,y.redrawTotalTime===void 0&&(y.redrawTotalTime=0);var j=N-O;y.redrawTotalTime+=j,y.lastRedrawTime=j,y.averageRedrawTime=y.averageRedrawTime/2+j/2,y.requestedFrame=!1}else Lj(y,!1,L);y.skipFrame=!1,g1(C)}};g1(x)}};var Get=function(p){this.init(p)},Dj=Get,g6=Dj.prototype;g6.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],g6.init=function(y){var p=this;p.options=y,p.cy=y.cy;var x=p.container=y.cy.container(),C=p.cy.window();if(C){var L=C.document,O=L.head,N="__________cytoscape_stylesheet",j="__________cytoscape_container",H=L.getElementById(N)!=null;if(x.className.indexOf(j)<0&&(x.className=(x.className||"")+" "+j),!H){var q=L.createElement("style");q.id=N,q.textContent="."+j+" { position: relative; }",O.insertBefore(q,O.children[0])}var W=C.getComputedStyle(x),Z=W.getPropertyValue("position");Z==="static"&&Gc("A Cytoscape container has style position:static and so can not use UI extensions properly")}p.selection=[void 0,void 0,void 0,void 0,0],p.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],p.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},p.dragData={possibleDragElements:[]},p.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},p.redraws=0,p.showFps=y.showFps,p.debug=y.debug,p.hideEdgesOnViewport=y.hideEdgesOnViewport,p.textureOnViewport=y.textureOnViewport,p.wheelSensitivity=y.wheelSensitivity,p.motionBlurEnabled=y.motionBlur,p.forcedPixelRatio=Q(y.pixelRatio)?y.pixelRatio:null,p.motionBlur=y.motionBlur,p.motionBlurOpacity=y.motionBlurOpacity,p.motionBlurTransparency=1-p.motionBlurOpacity,p.motionBlurPxRatio=1,p.mbPxRBlurry=1,p.minMbLowQualFrames=4,p.fullQualityMb=!1,p.clearedForMotionBlur=[],p.desktopTapThreshold=y.desktopTapThreshold,p.desktopTapThreshold2=y.desktopTapThreshold*y.desktopTapThreshold,p.touchTapThreshold=y.touchTapThreshold,p.touchTapThreshold2=y.touchTapThreshold*y.touchTapThreshold,p.tapholdDuration=500,p.bindings=[],p.beforeRenderCallbacks=[],p.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},p.registerNodeShapes(),p.registerArrowShapes(),p.registerCalculationListeners()},g6.notify=function(y,p){var x=this,C=x.cy;if(!this.destroyed){if(y==="init"){x.load();return}if(y==="destroy"){x.destroy();return}(y==="add"||y==="remove"||y==="move"&&C.hasCompoundNodes()||y==="load"||y==="zorder"||y==="mount")&&x.invalidateCachedZSortedEles(),y==="viewport"&&x.redrawHint("select",!0),(y==="load"||y==="resize"||y==="mount")&&(x.invalidateContainerClientCoordsCache(),x.matchCanvasSize(x.container)),x.redrawHint("eles",!0),x.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}},g6.destroy=function(){var y=this;y.destroyed=!0,y.cy.stopAnimationLoop();for(var p=0;p<y.bindings.length;p++){var x=y.bindings[p],C=x,L=C.target;(L.off||L.removeEventListener).apply(L,C.args)}if(y.bindings=[],y.beforeRenderCallbacks=[],y.onUpdateEleCalcsFns=[],y.removeObserver&&y.removeObserver.disconnect(),y.styleObserver&&y.styleObserver.disconnect(),y.resizeObserver&&y.resizeObserver.disconnect(),y.labelCalcDiv)try{document.body.removeChild(y.labelCalcDiv)}catch{}},g6.isHeadless=function(){return!1},[wM,_j,Aj,d6,om,nE].forEach(function(y){we(g6,y)});var vM=1e3/60,Mj={setupDequeueing:function(p){return function(){var C=this,L=this.renderer;if(!C.dequeueingSetup){C.dequeueingSetup=!0;var O=pu(function(){L.redrawHint("eles",!0),L.redrawHint("drag",!0),L.redraw()},p.deqRedrawThreshold),N=function(q,W){var Z=ip(),st=L.averageRedrawTime,bt=L.lastRedrawTime,pt=[],_t=L.cy.extent(),St=L.getPixelRatio();for(q||L.flushRenderedStyleQueue();;){var Et=ip(),Nt=Et-Z,Pt=Et-W;if(bt<vM){var qt=vM-(q?st:0);if(Pt>=p.deqFastCost*qt)break}else if(q){if(Nt>=p.deqCost*bt||Nt>=p.deqAvgCost*st)break}else if(Pt>=p.deqNoDrawCost*vM)break;var re=p.deq(C,St,_t);if(re.length>0)for(var ee=0;ee<re.length;ee++)pt.push(re[ee]);else break}pt.length>0&&(p.onDeqd(C,pt),!q&&p.shouldRedraw(C,pt,St,_t)&&O())},j=p.priority||BD;L.beforeRender(N,j(C))}}}},Ket=function(){function y(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ay;g(this,y),this.idsByKey=new F2,this.keyForId=new F2,this.cachesByLvl=new F2,this.lvls=[],this.getKey=p,this.doesEleInvalidateKey=x}return v(y,[{key:"getIdsFor",value:function(x){x==null&&$l("Can not get id list for null key");var C=this.idsByKey,L=this.idsByKey.get(x);return L||(L=new Wx,C.set(x,L)),L}},{key:"addIdForKey",value:function(x,C){x!=null&&this.getIdsFor(x).add(C)}},{key:"deleteIdForKey",value:function(x,C){x!=null&&this.getIdsFor(x).delete(C)}},{key:"getNumberOfIdsForKey",value:function(x){return x==null?0:this.getIdsFor(x).size}},{key:"updateKeyMappingFor",value:function(x){var C=x.id(),L=this.keyForId.get(C),O=this.getKey(x);this.deleteIdForKey(L,C),this.addIdForKey(O,C),this.keyForId.set(C,O)}},{key:"deleteKeyMappingFor",value:function(x){var C=x.id(),L=this.keyForId.get(C);this.deleteIdForKey(L,C),this.keyForId.delete(C)}},{key:"keyHasChangedFor",value:function(x){var C=x.id(),L=this.keyForId.get(C),O=this.getKey(x);return L!==O}},{key:"isInvalid",value:function(x){return this.keyHasChangedFor(x)||this.doesEleInvalidateKey(x)}},{key:"getCachesAt",value:function(x){var C=this.cachesByLvl,L=this.lvls,O=C.get(x);return O||(O=new F2,C.set(x,O),L.push(x)),O}},{key:"getCache",value:function(x,C){return this.getCachesAt(C).get(x)}},{key:"get",value:function(x,C){var L=this.getKey(x),O=this.getCache(L,C);return O!=null&&this.updateKeyMappingFor(x),O}},{key:"getForCachedKey",value:function(x,C){var L=this.keyForId.get(x.id()),O=this.getCache(L,C);return O}},{key:"hasCache",value:function(x,C){return this.getCachesAt(C).has(x)}},{key:"has",value:function(x,C){var L=this.getKey(x);return this.hasCache(L,C)}},{key:"setCache",value:function(x,C,L){L.key=x,this.getCachesAt(C).set(x,L)}},{key:"set",value:function(x,C,L){var O=this.getKey(x);this.setCache(O,C,L),this.updateKeyMappingFor(x)}},{key:"deleteCache",value:function(x,C){this.getCachesAt(C).delete(x)}},{key:"delete",value:function(x,C){var L=this.getKey(x);this.deleteCache(L,C)}},{key:"invalidateKey",value:function(x){var C=this;this.lvls.forEach(function(L){return C.deleteCache(x,L)})}},{key:"invalidate",value:function(x){var C=x.id(),L=this.keyForId.get(C);this.deleteKeyMappingFor(x);var O=this.doesEleInvalidateKey(x);return O&&this.invalidateKey(L),O||this.getNumberOfIdsForKey(L)===0}}]),y}(),Ij=25,OC=50,NC=-4,yM=3,Wet=7.99,Yet=8,Xet=1024,Qet=1024,Jet=1024,Zet=.2,tnt=.8,ent=10,nnt=.15,rnt=.1,int=.9,snt=.9,ant=100,ont=1,p6={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},cnt=p1({getKey:null,doesEleInvalidateKey:ay,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:b4,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),rE=function(p,x){var C=this;C.renderer=p,C.onDequeues=[];var L=cnt(x);we(C,L),C.lookup=new Ket(L.getKey,L.doesEleInvalidateKey),C.setupDequeueing()},Jh=rE.prototype;Jh.reasons=p6,Jh.getTextureQueue=function(y){var p=this;return p.eleImgCaches=p.eleImgCaches||{},p.eleImgCaches[y]=p.eleImgCaches[y]||[]},Jh.getRetiredTextureQueue=function(y){var p=this,x=p.eleImgCaches.retired=p.eleImgCaches.retired||{},C=x[y]=x[y]||[];return C},Jh.getElementQueue=function(){var y=this,p=y.eleCacheQueue=y.eleCacheQueue||new N8(function(x,C){return C.reqs-x.reqs});return p},Jh.getElementKeyToQueue=function(){var y=this,p=y.eleKeyToCacheQueue=y.eleKeyToCacheQueue||{};return p},Jh.getElement=function(y,p,x,C,L){var O=this,N=this.renderer,j=N.cy.zoom(),H=this.lookup;if(!p||p.w===0||p.h===0||isNaN(p.w)||isNaN(p.h)||!y.visible()||y.removed()||!O.allowEdgeTxrCaching&&y.isEdge()||!O.allowParentTxrCaching&&y.isParent())return null;if(C==null&&(C=Math.ceil(jD(j*x))),C<NC)C=NC;else if(j>=Wet||C>yM)return null;var q=Math.pow(2,C),W=p.h*q,Z=p.w*q,st=N.eleTextBiggerThanMin(y,q);if(!this.isVisible(y,st))return null;var bt=H.get(y,C);if(bt&&bt.invalidated&&(bt.invalidated=!1,bt.texture.invalidatedWidth-=bt.width),bt)return bt;var pt;if(W<=Ij?pt=Ij:W<=OC?pt=OC:pt=Math.ceil(W/OC)*OC,W>Jet||Z>Qet)return null;var _t=O.getTextureQueue(pt),St=_t[_t.length-2],Et=function(){return O.recycleTexture(pt,Z)||O.addTexture(pt,Z)};St||(St=_t[_t.length-1]),St||(St=Et()),St.width-St.usedWidth<Z&&(St=Et());for(var Nt=function(nn){return nn&&nn.scaledLabelShown===st},Pt=L&&L===p6.dequeue,qt=L&&L===p6.highQuality,re=L&&L===p6.downscale,ee,Ut=C+1;Ut<=yM;Ut++){var de=H.get(y,Ut);if(de){ee=de;break}}var Yt=ee&&ee.level===C+1?ee:null,Ee=function(){St.context.drawImage(Yt.texture.canvas,Yt.x,0,Yt.width,Yt.height,St.usedWidth,0,Z,W)};if(St.context.setTransform(1,0,0,1,0,0),St.context.clearRect(St.usedWidth,0,Z,pt),Nt(Yt))Ee();else if(Nt(ee))if(qt){for(var Te=ee.level;Te>C;Te--)Yt=O.getElement(y,p,x,Te,p6.downscale);Ee()}else return O.queueElement(y,ee.level-1),ee;else{var ie;if(!Pt&&!qt&&!re)for(var ze=C-1;ze>=NC;ze--){var me=H.get(y,ze);if(me){ie=me;break}}if(Nt(ie))return O.queueElement(y,C),ie;St.context.translate(St.usedWidth,0),St.context.scale(q,q),this.drawElement(St.context,y,p,st,!1),St.context.scale(1/q,1/q),St.context.translate(-St.usedWidth,0)}return bt={x:St.usedWidth,texture:St,level:C,scale:q,width:Z,height:W,scaledLabelShown:st},St.usedWidth+=Math.ceil(Z+Yet),St.eleCaches.push(bt),H.set(y,C,bt),O.checkTextureFullness(St),bt},Jh.invalidateElements=function(y){for(var p=0;p<y.length;p++)this.invalidateElement(y[p])},Jh.invalidateElement=function(y){var p=this,x=p.lookup,C=[],L=x.isInvalid(y);if(L){for(var O=NC;O<=yM;O++){var N=x.getForCachedKey(y,O);N&&C.push(N)}var j=x.invalidate(y);if(j)for(var H=0;H<C.length;H++){var q=C[H],W=q.texture;W.invalidatedWidth+=q.width,q.invalidated=!0,p.checkTextureUtility(W)}p.removeFromQueue(y)}},Jh.checkTextureUtility=function(y){y.invalidatedWidth>=Zet*y.width&&this.retireTexture(y)},Jh.checkTextureFullness=function(y){var p=this,x=p.getTextureQueue(y.height);y.usedWidth/y.width>tnt&&y.fullnessChecks>=ent?oy(x,y):y.fullnessChecks++},Jh.retireTexture=function(y){var p=this,x=y.height,C=p.getTextureQueue(x),L=this.lookup;oy(C,y),y.retired=!0;for(var O=y.eleCaches,N=0;N<O.length;N++){var j=O[N];L.deleteCache(j.key,j.level)}G9(O);var H=p.getRetiredTextureQueue(x);H.push(y)},Jh.addTexture=function(y,p){var x=this,C=x.getTextureQueue(y),L={};return C.push(L),L.eleCaches=[],L.height=y,L.width=Math.max(Xet,p),L.usedWidth=0,L.invalidatedWidth=0,L.fullnessChecks=0,L.canvas=x.renderer.makeOffscreenCanvas(L.width,L.height),L.context=L.canvas.getContext("2d"),L},Jh.recycleTexture=function(y,p){for(var x=this,C=x.getTextureQueue(y),L=x.getRetiredTextureQueue(y),O=0;O<L.length;O++){var N=L[O];if(N.width>=p)return N.retired=!1,N.usedWidth=0,N.invalidatedWidth=0,N.fullnessChecks=0,G9(N.eleCaches),N.context.setTransform(1,0,0,1,0,0),N.context.clearRect(0,0,N.width,N.height),oy(L,N),C.push(N),N}},Jh.queueElement=function(y,p){var x=this,C=x.getElementQueue(),L=x.getElementKeyToQueue(),O=this.getKey(y),N=L[O];if(N)N.level=Math.max(N.level,p),N.eles.merge(y),N.reqs++,C.updateItem(N);else{var j={eles:y.spawn().merge(y),level:p,reqs:1,key:O};C.push(j),L[O]=j}},Jh.dequeue=function(y){for(var p=this,x=p.getElementQueue(),C=p.getElementKeyToQueue(),L=[],O=p.lookup,N=0;N<ont&&x.size()>0;N++){var j=x.pop(),H=j.key,q=j.eles[0],W=O.hasCache(q,j.level);if(C[H]=null,W)continue;L.push(j);var Z=p.getBoundingBox(q);p.getElement(q,Z,y,j.level,p6.dequeue)}return L},Jh.removeFromQueue=function(y){var p=this,x=p.getElementQueue(),C=p.getElementKeyToQueue(),L=this.getKey(y),O=C[L];O!=null&&(O.eles.length===1?(O.reqs=Kx,x.updateItem(O),x.pop(),C[L]=null):O.eles.unmerge(y))},Jh.onDequeue=function(y){this.onDequeues.push(y)},Jh.offDequeue=function(y){oy(this.onDequeues,y)},Jh.setupDequeueing=Mj.setupDequeueing({deqRedrawThreshold:ant,deqCost:nnt,deqAvgCost:rnt,deqNoDrawCost:int,deqFastCost:snt,deq:function(p,x,C){return p.dequeue(x,C)},onDeqd:function(p,x){for(var C=0;C<p.onDequeues.length;C++){var L=p.onDequeues[C];L(x)}},shouldRedraw:function(p,x,C,L){for(var O=0;O<x.length;O++)for(var N=x[O].eles,j=0;j<N.length;j++){var H=N[j].boundingBox();if($D(H,L))return!0}return!1},priority:function(p){return p.renderer.beforeRenderPriorities.eleTxrDeq}});var unt=1,iE=-4,PC=2,lnt=3.99,hnt=50,fnt=50,Zh=.15,dnt=.1,gnt=.9,Oj=.9,pnt=1,Nj=250,Pj=4e3*4e3,Fj=!0,Bj=function(p){var x=this,C=x.renderer=p,L=C.cy;x.layersByLevel={},x.firstGet=!0,x.lastInvalidationTime=ip()-2*Nj,x.skipping=!1,x.eleTxrDeqs=L.collection(),x.scheduleElementRefinement=pu(function(){x.refineElementTextures(x.eleTxrDeqs),x.eleTxrDeqs.unmerge(x.eleTxrDeqs)},fnt),C.beforeRender(function(N,j){j-x.lastInvalidationTime<=Nj?x.skipping=!0:x.skipping=!1},C.beforeRenderPriorities.lyrTxrSkip);var O=function(j,H){return H.reqs-j.reqs};x.layersQueue=new N8(O),x.setupDequeueing()},Df=Bj.prototype,Rj=0,FC=Math.pow(2,53)-1;Df.makeLayer=function(y,p){var x=Math.pow(2,p),C=Math.ceil(y.w*x),L=Math.ceil(y.h*x),O=this.renderer.makeOffscreenCanvas(C,L),N={id:Rj=++Rj%FC,bb:y,level:p,width:C,height:L,canvas:O,context:O.getContext("2d"),eles:[],elesQueue:[],reqs:0},j=N.context,H=-N.bb.x1,q=-N.bb.y1;return j.scale(x,x),j.translate(H,q),N},Df.getLayers=function(y,p,x){var C=this,L=C.renderer,O=L.cy,N=O.zoom(),j=C.firstGet;if(C.firstGet=!1,x==null){if(x=Math.ceil(jD(N*p)),x<iE)x=iE;else if(N>=lnt||x>PC)return null}C.validateLayersElesOrdering(x,y);var H=C.layersByLevel,q=Math.pow(2,x),W=H[x]=H[x]||[],Z,st=C.levelIsComplete(x,y),bt,pt=function(){var Ee=function(yn){if(C.validateLayersElesOrdering(yn,y),C.levelIsComplete(yn,y))return bt=H[yn],!0},Te=function(yn){if(!bt)for(var nn=x+yn;iE<=nn&&nn<=PC&&!Ee(nn);nn+=yn);};Te(1),Te(-1);for(var ie=W.length-1;ie>=0;ie--){var ze=W[ie];ze.invalid&&oy(W,ze)}};if(!st)pt();else return W;var _t=function(){if(!Z){Z=v0();for(var Ee=0;Ee<y.length;Ee++)BB(Z,y[Ee].boundingBox())}return Z},St=function(Ee){Ee=Ee||{};var Te=Ee.after;_t();var ie=Z.w*q*(Z.h*q);if(ie>Pj)return null;var ze=C.makeLayer(Z,x);if(Te!=null){var me=W.indexOf(Te)+1;W.splice(me,0,ze)}else(Ee.insert===void 0||Ee.insert)&&W.unshift(ze);return ze};if(C.skipping&&!j)return null;for(var Et=null,Nt=y.length/unt,Pt=!j,qt=0;qt<y.length;qt++){var re=y[qt],ee=re._private.rscratch,Ut=ee.imgLayerCaches=ee.imgLayerCaches||{},de=Ut[x];if(de){Et=de;continue}if((!Et||Et.eles.length>=Nt||!jB(Et.bb,re.boundingBox()))&&(Et=St({insert:!0,after:Et}),!Et))return null;bt||Pt?C.queueLayer(Et,re):C.drawEleInLayer(Et,re,x,p),Et.eles.push(re),Ut[x]=Et}return bt||(Pt?null:W)},Df.getEleLevelForLayerLevel=function(y,p){return y},Df.drawEleInLayer=function(y,p,x,C){var L=this,O=this.renderer,N=y.context,j=p.boundingBox();j.w===0||j.h===0||!p.visible()||(x=L.getEleLevelForLayerLevel(x,C),O.setImgSmoothing(N,!1),O.drawCachedElement(N,p,null,null,x,Fj),O.setImgSmoothing(N,!0))},Df.levelIsComplete=function(y,p){var x=this,C=x.layersByLevel[y];if(!C||C.length===0)return!1;for(var L=0,O=0;O<C.length;O++){var N=C[O];if(N.reqs>0||N.invalid)return!1;L+=N.eles.length}return L===p.length},Df.validateLayersElesOrdering=function(y,p){var x=this.layersByLevel[y];if(x)for(var C=0;C<x.length;C++){for(var L=x[C],O=-1,N=0;N<p.length;N++)if(L.eles[0]===p[N]){O=N;break}if(O<0){this.invalidateLayer(L);continue}for(var j=O,N=0;N<L.eles.length;N++)if(L.eles[N]!==p[j+N]){this.invalidateLayer(L);break}}},Df.updateElementsInLayers=function(y,p){for(var x=this,C=V(y[0]),L=0;L<y.length;L++)for(var O=C?null:y[L],N=C?y[L]:y[L].ele,j=N._private.rscratch,H=j.imgLayerCaches=j.imgLayerCaches||{},q=iE;q<=PC;q++){var W=H[q];W&&(O&&x.getEleLevelForLayerLevel(W.level)!==O.level||p(W,N,O))}},Df.haveLayers=function(){for(var y=this,p=!1,x=iE;x<=PC;x++){var C=y.layersByLevel[x];if(C&&C.length>0){p=!0;break}}return p},Df.invalidateElements=function(y){var p=this;y.length!==0&&(p.lastInvalidationTime=ip(),!(y.length===0||!p.haveLayers())&&p.updateElementsInLayers(y,function(C,L,O){p.invalidateLayer(C)}))},Df.invalidateLayer=function(y){if(this.lastInvalidationTime=ip(),!y.invalid){var p=y.level,x=y.eles,C=this.layersByLevel[p];oy(C,y),y.elesQueue=[],y.invalid=!0,y.replacement&&(y.replacement.invalid=!0);for(var L=0;L<x.length;L++){var O=x[L]._private.rscratch.imgLayerCaches;O&&(O[p]=null)}}},Df.refineElementTextures=function(y){var p=this;p.updateElementsInLayers(y,function(C,L,O){var N=C.replacement;if(N||(N=C.replacement=p.makeLayer(C.bb,C.level),N.replaces=C,N.eles=C.eles),!N.reqs)for(var j=0;j<N.eles.length;j++)p.queueLayer(N,N.eles[j])})},Df.enqueueElementRefinement=function(y){this.eleTxrDeqs.merge(y),this.scheduleElementRefinement()},Df.queueLayer=function(y,p){var x=this,C=x.layersQueue,L=y.elesQueue,O=L.hasId=L.hasId||{};if(!y.replacement){if(p){if(O[p.id()])return;L.push(p),O[p.id()]=!0}y.reqs?(y.reqs++,C.updateItem(y)):(y.reqs=1,C.push(y))}},Df.dequeue=function(y){for(var p=this,x=p.layersQueue,C=[],L=0;L<pnt&&x.size()!==0;){var O=x.peek();if(O.replacement){x.pop();continue}if(O.replaces&&O!==O.replaces.replacement){x.pop();continue}if(O.invalid){x.pop();continue}var N=O.elesQueue.shift();N&&(p.drawEleInLayer(O,N,O.level,y),L++),C.length===0&&C.push(!0),O.elesQueue.length===0&&(x.pop(),O.reqs=0,O.replaces&&p.applyLayerReplacement(O),p.requestRedraw())}return C},Df.applyLayerReplacement=function(y){var p=this,x=p.layersByLevel[y.level],C=y.replaces,L=x.indexOf(C);if(!(L<0||C.invalid)){x[L]=y;for(var O=0;O<y.eles.length;O++){var N=y.eles[O]._private,j=N.imgLayerCaches=N.imgLayerCaches||{};j&&(j[y.level]=y)}p.requestRedraw()}},Df.requestRedraw=pu(function(){var y=this.renderer;y.redrawHint("eles",!0),y.redrawHint("drag",!0),y.redraw()},100),Df.setupDequeueing=Mj.setupDequeueing({deqRedrawThreshold:hnt,deqCost:Zh,deqAvgCost:dnt,deqNoDrawCost:gnt,deqFastCost:Oj,deq:function(p,x){return p.dequeue(x)},onDeqd:BD,shouldRedraw:b4,priority:function(p){return p.renderer.beforeRenderPriorities.lyrTxrDeq}});var jj={},$j;function bnt(y,p){for(var x=0;x<p.length;x++){var C=p[x];y.lineTo(C.x,C.y)}}function wnt(y,p,x){for(var C,L=0;L<p.length;L++){var O=p[L];L===0&&(C=O),y.lineTo(O.x,O.y)}y.quadraticCurveTo(x.x,x.y,C.x,C.y)}function zj(y,p,x){y.beginPath&&y.beginPath();for(var C=p,L=0;L<C.length;L++){var O=C[L];y.lineTo(O.x,O.y)}var N=x,j=x[0];y.moveTo(j.x,j.y);for(var L=1;L<N.length;L++){var O=N[L];y.lineTo(O.x,O.y)}y.closePath&&y.closePath()}function mnt(y,p,x,C,L){y.beginPath&&y.beginPath(),y.arc(x,C,L,0,Math.PI*2,!1);var O=p,N=O[0];y.moveTo(N.x,N.y);for(var j=0;j<O.length;j++){var H=O[j];y.lineTo(H.x,H.y)}y.closePath&&y.closePath()}function qj(y,p,x,C){y.arc(p,x,C,0,Math.PI*2,!1)}jj.arrowShapeImpl=function(y){return($j||($j={polygon:bnt,"triangle-backcurve":wnt,"triangle-tee":zj,"circle-triangle":mnt,"triangle-cross":zj,circle:qj}))[y]};var bb={};bb.drawElement=function(y,p,x,C,L,O){var N=this;p.isNode()?N.drawNode(y,p,x,C,L,O):N.drawEdge(y,p,x,C,L,O)},bb.drawElementOverlay=function(y,p){var x=this;p.isNode()?x.drawNodeOverlay(y,p):x.drawEdgeOverlay(y,p)},bb.drawElementUnderlay=function(y,p){var x=this;p.isNode()?x.drawNodeUnderlay(y,p):x.drawEdgeUnderlay(y,p)},bb.drawCachedElementPortion=function(y,p,x,C,L,O,N,j){var H=this,q=x.getBoundingBox(p);if(!(q.w===0||q.h===0)){var W=x.getElement(p,q,C,L,O);if(W!=null){var Z=j(H,p);if(Z===0)return;var st=N(H,p),bt=q.x1,pt=q.y1,_t=q.w,St=q.h,Et,Nt,Pt,qt,re;if(st!==0){var ee=x.getRotationPoint(p);Pt=ee.x,qt=ee.y,y.translate(Pt,qt),y.rotate(st),re=H.getImgSmoothing(y),re||H.setImgSmoothing(y,!0);var Ut=x.getRotationOffset(p);Et=Ut.x,Nt=Ut.y}else Et=bt,Nt=pt;var de;Z!==1&&(de=y.globalAlpha,y.globalAlpha=de*Z),y.drawImage(W.texture.canvas,W.x,0,W.width,W.height,Et,Nt,_t,St),Z!==1&&(y.globalAlpha=de),st!==0&&(y.rotate(-st),y.translate(-Pt,-qt),re||H.setImgSmoothing(y,!1))}else x.drawElement(y,p)}};var vnt=function(){return 0},ynt=function(p,x){return p.getTextAngle(x,null)},xM=function(p,x){return p.getTextAngle(x,"source")},xnt=function(p,x){return p.getTextAngle(x,"target")},knt=function(p,x){return x.effectiveOpacity()},sE=function(p,x){return x.pstyle("text-opacity").pfValue*x.effectiveOpacity()};bb.drawCachedElement=function(y,p,x,C,L,O){var N=this,j=N.data,H=j.eleTxrCache,q=j.lblTxrCache,W=j.slbTxrCache,Z=j.tlbTxrCache,st=p.boundingBox(),bt=O===!0?H.reasons.highQuality:null;if(!(st.w===0||st.h===0||!p.visible())&&(!C||$D(st,C))){var pt=p.isEdge(),_t=p.element()._private.rscratch.badLine;N.drawElementUnderlay(y,p),N.drawCachedElementPortion(y,p,H,x,L,bt,vnt,knt),(!pt||!_t)&&N.drawCachedElementPortion(y,p,q,x,L,bt,ynt,sE),pt&&!_t&&(N.drawCachedElementPortion(y,p,W,x,L,bt,xM,sE),N.drawCachedElementPortion(y,p,Z,x,L,bt,xnt,sE)),N.drawElementOverlay(y,p)}},bb.drawElements=function(y,p){for(var x=this,C=0;C<p.length;C++){var L=p[C];x.drawElement(y,L)}},bb.drawCachedElements=function(y,p,x,C){for(var L=this,O=0;O<p.length;O++){var N=p[O];L.drawCachedElement(y,N,x,C)}},bb.drawCachedNodes=function(y,p,x,C){for(var L=this,O=0;O<p.length;O++){var N=p[O];N.isNode()&&L.drawCachedElement(y,N,x,C)}},bb.drawLayeredElements=function(y,p,x,C){var L=this,O=L.data.lyrTxrCache.getLayers(p,x);if(O)for(var N=0;N<O.length;N++){var j=O[N],H=j.bb;H.w===0||H.h===0||y.drawImage(j.canvas,H.x1,H.y1,H.w,H.h)}else L.drawCachedElements(y,p,x,C)};var wb={};wb.drawEdge=function(y,p,x){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,O=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,N=this,j=p._private.rscratch;if(!(O&&!p.visible())&&!(j.badLine||j.allpts==null||isNaN(j.allpts[0]))){var H;x&&(H=x,y.translate(-H.x1,-H.y1));var q=O?p.pstyle("opacity").value:1,W=O?p.pstyle("line-opacity").value:1,Z=p.pstyle("curve-style").value,st=p.pstyle("line-style").value,bt=p.pstyle("width").pfValue,pt=p.pstyle("line-cap").value,_t=q*W,St=q*W,Et=function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_t;Z==="straight-triangle"?(N.eleStrokeStyle(y,p,ie),N.drawEdgeTrianglePath(p,y,j.allpts)):(y.lineWidth=bt,y.lineCap=pt,N.eleStrokeStyle(y,p,ie),N.drawEdgePath(p,y,j.allpts,st),y.lineCap="butt")},Nt=function(){L&&N.drawEdgeOverlay(y,p)},Pt=function(){L&&N.drawEdgeUnderlay(y,p)},qt=function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:St;N.drawArrowheads(y,p,ie)},re=function(){N.drawElementText(y,p,null,C)};y.lineJoin="round";var ee=p.pstyle("ghost").value==="yes";if(ee){var Ut=p.pstyle("ghost-offset-x").pfValue,de=p.pstyle("ghost-offset-y").pfValue,Yt=p.pstyle("ghost-opacity").value,Ee=_t*Yt;y.translate(Ut,de),Et(Ee),qt(Ee),y.translate(-Ut,-de)}Pt(),Et(),qt(),Nt(),re(),x&&y.translate(H.x1,H.y1)}};var Hj=function(p){if(!["overlay","underlay"].includes(p))throw new Error("Invalid state");return function(x,C){if(C.visible()){var L=C.pstyle("".concat(p,"-opacity")).value;if(L!==0){var O=this,N=O.usePaths(),j=C._private.rscratch,H=C.pstyle("".concat(p,"-padding")).pfValue,q=2*H,W=C.pstyle("".concat(p,"-color")).value;x.lineWidth=q,j.edgeType==="self"&&!N?x.lineCap="butt":x.lineCap="round",O.colorStrokeStyle(x,W[0],W[1],W[2],L),O.drawEdgePath(C,x,j.allpts,"solid")}}}};wb.drawEdgeOverlay=Hj("overlay"),wb.drawEdgeUnderlay=Hj("underlay"),wb.drawEdgePath=function(y,p,x,C){var L=y._private.rscratch,O=p,N,j=!1,H=this.usePaths(),q=y.pstyle("line-dash-pattern").pfValue,W=y.pstyle("line-dash-offset").pfValue;if(H){var Z=x.join("$"),st=L.pathCacheKey&&L.pathCacheKey===Z;st?(N=p=L.pathCache,j=!0):(N=p=new Path2D,L.pathCacheKey=Z,L.pathCache=N)}if(O.setLineDash)switch(C){case"dotted":O.setLineDash([1,1]);break;case"dashed":O.setLineDash(q),O.lineDashOffset=W;break;case"solid":O.setLineDash([]);break}if(!j&&!L.badLine)switch(p.beginPath&&p.beginPath(),p.moveTo(x[0],x[1]),L.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var bt=2;bt+3<x.length;bt+=4)p.quadraticCurveTo(x[bt],x[bt+1],x[bt+2],x[bt+3]);break;case"straight":case"segments":case"haystack":for(var pt=2;pt+1<x.length;pt+=2)p.lineTo(x[pt],x[pt+1]);break}p=O,H?p.stroke(N):p.stroke(),p.setLineDash&&p.setLineDash([])},wb.drawEdgeTrianglePath=function(y,p,x){p.fillStyle=p.strokeStyle;for(var C=y.pstyle("width").pfValue,L=0;L+1<x.length;L+=2){var O=[x[L+2]-x[L],x[L+3]-x[L+1]],N=Math.sqrt(O[0]*O[0]+O[1]*O[1]),j=[O[1]/N,-O[0]/N],H=[j[0]*C/2,j[1]*C/2];p.beginPath(),p.moveTo(x[L]-H[0],x[L+1]-H[1]),p.lineTo(x[L]+H[0],x[L+1]+H[1]),p.lineTo(x[L+2],x[L+3]),p.closePath(),p.fill()}},wb.drawArrowheads=function(y,p,x){var C=p._private.rscratch,L=C.edgeType==="haystack";L||this.drawArrowhead(y,p,"source",C.arrowStartX,C.arrowStartY,C.srcArrowAngle,x),this.drawArrowhead(y,p,"mid-target",C.midX,C.midY,C.midtgtArrowAngle,x),this.drawArrowhead(y,p,"mid-source",C.midX,C.midY,C.midsrcArrowAngle,x),L||this.drawArrowhead(y,p,"target",C.arrowEndX,C.arrowEndY,C.tgtArrowAngle,x)},wb.drawArrowhead=function(y,p,x,C,L,O,N){if(!(isNaN(C)||C==null||isNaN(L)||L==null||isNaN(O)||O==null)){var j=this,H=p.pstyle(x+"-arrow-shape").value;if(H!=="none"){var q=p.pstyle(x+"-arrow-fill").value==="hollow"?"both":"filled",W=p.pstyle(x+"-arrow-fill").value,Z=p.pstyle("width").pfValue,st=p.pstyle(x+"-arrow-width"),bt=st.value==="match-line"?Z:st.pfValue;st.units==="%"&&(bt*=Z);var pt=p.pstyle("opacity").value;N===void 0&&(N=pt);var _t=y.globalCompositeOperation;(N!==1||W==="hollow")&&(y.globalCompositeOperation="destination-out",j.colorFillStyle(y,255,255,255,1),j.colorStrokeStyle(y,255,255,255,1),j.drawArrowShape(p,y,q,Z,H,bt,C,L,O),y.globalCompositeOperation=_t);var St=p.pstyle(x+"-arrow-color").value;j.colorFillStyle(y,St[0],St[1],St[2],N),j.colorStrokeStyle(y,St[0],St[1],St[2],N),j.drawArrowShape(p,y,W,Z,H,bt,C,L,O)}}},wb.drawArrowShape=function(y,p,x,C,L,O,N,j,H){var q=this,W=this.usePaths()&&L!=="triangle-cross",Z=!1,st,bt=p,pt={x:N,y:j},_t=y.pstyle("arrow-scale").value,St=this.getArrowWidth(C,_t),Et=q.arrowShapes[L];if(W){var Nt=q.arrowPathCache=q.arrowPathCache||[],Pt=Nd(L),qt=Nt[Pt];qt!=null?(st=p=qt,Z=!0):(st=p=new Path2D,Nt[Pt]=st)}Z||(p.beginPath&&p.beginPath(),W?Et.draw(p,1,0,{x:0,y:0},1):Et.draw(p,St,H,pt,C),p.closePath&&p.closePath()),p=bt,W&&(p.translate(N,j),p.rotate(H),p.scale(St,St)),(x==="filled"||x==="both")&&(W?p.fill(st):p.fill()),(x==="hollow"||x==="both")&&(p.lineWidth=O/(W?St:1),p.lineJoin="miter",W?p.stroke(st):p.stroke()),W&&(p.scale(1/St,1/St),p.rotate(-H),p.translate(-N,-j))};var aE={};aE.safeDrawImage=function(y,p,x,C,L,O,N,j,H,q){if(!(L<=0||O<=0||H<=0||q<=0))try{y.drawImage(p,x,C,L,O,N,j,H,q)}catch(W){Gc(W)}},aE.drawInscribedImage=function(y,p,x,C,L){var O=this,N=x.position(),j=N.x,H=N.y,q=x.cy().style(),W=q.getIndexedStyle.bind(q),Z=W(x,"background-fit","value",C),st=W(x,"background-repeat","value",C),bt=x.width(),pt=x.height(),_t=x.padding()*2,St=bt+(W(x,"background-width-relative-to","value",C)==="inner"?0:_t),Et=pt+(W(x,"background-height-relative-to","value",C)==="inner"?0:_t),Nt=x._private.rscratch,Pt=W(x,"background-clip","value",C),qt=Pt==="node",re=W(x,"background-image-opacity","value",C)*L,ee=W(x,"background-image-smoothing","value",C),Ut=p.width||p.cachedW,de=p.height||p.cachedH;(Ut==null||de==null)&&(document.body.appendChild(p),Ut=p.cachedW=p.width||p.offsetWidth,de=p.cachedH=p.height||p.offsetHeight,document.body.removeChild(p));var Yt=Ut,Ee=de;if(W(x,"background-width","value",C)!=="auto"&&(W(x,"background-width","units",C)==="%"?Yt=W(x,"background-width","pfValue",C)*St:Yt=W(x,"background-width","pfValue",C)),W(x,"background-height","value",C)!=="auto"&&(W(x,"background-height","units",C)==="%"?Ee=W(x,"background-height","pfValue",C)*Et:Ee=W(x,"background-height","pfValue",C)),!(Yt===0||Ee===0)){if(Z==="contain"){var Te=Math.min(St/Yt,Et/Ee);Yt*=Te,Ee*=Te}else if(Z==="cover"){var Te=Math.max(St/Yt,Et/Ee);Yt*=Te,Ee*=Te}var ie=j-St/2,ze=W(x,"background-position-x","units",C),me=W(x,"background-position-x","pfValue",C);ze==="%"?ie+=(St-Yt)*me:ie+=me;var yn=W(x,"background-offset-x","units",C),nn=W(x,"background-offset-x","pfValue",C);yn==="%"?ie+=(St-Yt)*nn:ie+=nn;var qe=H-Et/2,Tn=W(x,"background-position-y","units",C),Xn=W(x,"background-position-y","pfValue",C);Tn==="%"?qe+=(Et-Ee)*Xn:qe+=Xn;var lr=W(x,"background-offset-y","units",C),Sn=W(x,"background-offset-y","pfValue",C);lr==="%"?qe+=(Et-Ee)*Sn:qe+=Sn,Nt.pathCache&&(ie-=j,qe-=H,j=0,H=0);var or=y.globalAlpha;y.globalAlpha=re;var pr=O.getImgSmoothing(y),kr=!1;if(ee==="no"&&pr?(O.setImgSmoothing(y,!1),kr=!0):ee==="yes"&&!pr&&(O.setImgSmoothing(y,!0),kr=!0),st==="no-repeat")qt&&(y.save(),Nt.pathCache?y.clip(Nt.pathCache):(O.nodeShapes[O.getNodeShape(x)].draw(y,j,H,St,Et),y.clip())),O.safeDrawImage(y,p,0,0,Ut,de,ie,qe,Yt,Ee),qt&&y.restore();else{var wr=y.createPattern(p,st);y.fillStyle=wr,O.nodeShapes[O.getNodeShape(x)].draw(y,j,H,St,Et),y.translate(ie,qe),y.fill(),y.translate(-ie,-qe)}y.globalAlpha=or,kr&&O.setImgSmoothing(y,pr)}};var S4={};S4.eleTextBiggerThanMin=function(y,p){if(!p){var x=y.cy().zoom(),C=this.getPixelRatio(),L=Math.ceil(jD(x*C));p=Math.pow(2,L)}var O=y.pstyle("font-size").pfValue*p,N=y.pstyle("min-zoomed-font-size").pfValue;return!(O<N)},S4.drawElementText=function(y,p,x,C,L){var O=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,N=this;if(C==null){if(O&&!N.eleTextBiggerThanMin(p))return}else if(C===!1)return;if(p.isNode()){var j=p.pstyle("label");if(!j||!j.value)return;var H=N.getLabelJustification(p);y.textAlign=H,y.textBaseline="bottom"}else{var q=p.element()._private.rscratch.badLine,W=p.pstyle("label"),Z=p.pstyle("source-label"),st=p.pstyle("target-label");if(q||(!W||!W.value)&&(!Z||!Z.value)&&(!st||!st.value))return;y.textAlign="center",y.textBaseline="bottom"}var bt=!x,pt;x&&(pt=x,y.translate(-pt.x1,-pt.y1)),L==null?(N.drawText(y,p,null,bt,O),p.isEdge()&&(N.drawText(y,p,"source",bt,O),N.drawText(y,p,"target",bt,O))):N.drawText(y,p,L,bt,O),x&&y.translate(pt.x1,pt.y1)},S4.getFontCache=function(y){var p;this.fontCaches=this.fontCaches||[];for(var x=0;x<this.fontCaches.length;x++)if(p=this.fontCaches[x],p.context===y)return p;return p={context:y},this.fontCaches.push(p),p},S4.setupTextStyle=function(y,p){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,C=p.pstyle("font-style").strValue,L=p.pstyle("font-size").pfValue+"px",O=p.pstyle("font-family").strValue,N=p.pstyle("font-weight").strValue,j=x?p.effectiveOpacity()*p.pstyle("text-opacity").value:1,H=p.pstyle("text-outline-opacity").value*j,q=p.pstyle("color").value,W=p.pstyle("text-outline-color").value;y.font=C+" "+N+" "+L+" "+O,y.lineJoin="round",this.colorFillStyle(y,q[0],q[1],q[2],j),this.colorStrokeStyle(y,W[0],W[1],W[2],H)};function kM(y,p,x,C,L){var O=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,N=arguments.length>6?arguments[6]:void 0;y.beginPath(),y.moveTo(p+O,x),y.lineTo(p+C-O,x),y.quadraticCurveTo(p+C,x,p+C,x+O),y.lineTo(p+C,x+L-O),y.quadraticCurveTo(p+C,x+L,p+C-O,x+L),y.lineTo(p+O,x+L),y.quadraticCurveTo(p,x+L,p,x+L-O),y.lineTo(p,x+O),y.quadraticCurveTo(p,x,p+O,x),y.closePath(),N?y.stroke():y.fill()}S4.getTextAngle=function(y,p){var x,C=y._private,L=C.rscratch,O=p?p+"-":"",N=y.pstyle(O+"text-rotation"),j=fb(L,"labelAngle",p);return N.strValue==="autorotate"?x=y.isEdge()?j:0:N.strValue==="none"?x=0:x=N.pfValue,x},S4.drawText=function(y,p,x){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,O=p._private,N=O.rscratch,j=L?p.effectiveOpacity():1;if(!(L&&(j===0||p.pstyle("text-opacity").value===0))){x==="main"&&(x=null);var H=fb(N,"labelX",x),q=fb(N,"labelY",x),W,Z,st=this.getLabelText(p,x);if(st!=null&&st!==""&&!isNaN(H)&&!isNaN(q)){this.setupTextStyle(y,p,L);var bt=x?x+"-":"",pt=fb(N,"labelWidth",x),_t=fb(N,"labelHeight",x),St=p.pstyle(bt+"text-margin-x").pfValue,Et=p.pstyle(bt+"text-margin-y").pfValue,Nt=p.isEdge(),Pt=p.pstyle("text-halign").value,qt=p.pstyle("text-valign").value;Nt&&(Pt="center",qt="center"),H+=St,q+=Et;var re;switch(C?re=this.getTextAngle(p,x):re=0,re!==0&&(W=H,Z=q,y.translate(W,Z),y.rotate(re),H=0,q=0),qt){case"top":break;case"center":q+=_t/2;break;case"bottom":q+=_t;break}var ee=p.pstyle("text-background-opacity").value,Ut=p.pstyle("text-border-opacity").value,de=p.pstyle("text-border-width").pfValue,Yt=p.pstyle("text-background-padding").pfValue,Ee=p.pstyle("text-background-shape").strValue,Te=Ee.indexOf("round")===0,ie=2;if(ee>0||de>0&&Ut>0){var ze=H-Yt;switch(Pt){case"left":ze-=pt;break;case"center":ze-=pt/2;break}var me=q-_t-Yt,yn=pt+2*Yt,nn=_t+2*Yt;if(ee>0){var qe=y.fillStyle,Tn=p.pstyle("text-background-color").value;y.fillStyle="rgba("+Tn[0]+","+Tn[1]+","+Tn[2]+","+ee*j+")",Te?kM(y,ze,me,yn,nn,ie):y.fillRect(ze,me,yn,nn),y.fillStyle=qe}if(de>0&&Ut>0){var Xn=y.strokeStyle,lr=y.lineWidth,Sn=p.pstyle("text-border-color").value,or=p.pstyle("text-border-style").value;if(y.strokeStyle="rgba("+Sn[0]+","+Sn[1]+","+Sn[2]+","+Ut*j+")",y.lineWidth=de,y.setLineDash)switch(or){case"dotted":y.setLineDash([1,1]);break;case"dashed":y.setLineDash([4,2]);break;case"double":y.lineWidth=de/4,y.setLineDash([]);break;case"solid":y.setLineDash([]);break}if(Te?kM(y,ze,me,yn,nn,ie,"stroke"):y.strokeRect(ze,me,yn,nn),or==="double"){var pr=de/2;Te?kM(y,ze+pr,me+pr,yn-pr*2,nn-pr*2,ie,"stroke"):y.strokeRect(ze+pr,me+pr,yn-pr*2,nn-pr*2)}y.setLineDash&&y.setLineDash([]),y.lineWidth=lr,y.strokeStyle=Xn}}var kr=2*p.pstyle("text-outline-width").pfValue;if(kr>0&&(y.lineWidth=kr),p.pstyle("text-wrap").value==="wrap"){var wr=fb(N,"labelWrapCachedLines",x),Cr=fb(N,"labelLineHeight",x),$n=pt/2,cr=this.getLabelJustification(p);switch(cr==="auto"||(Pt==="left"?cr==="left"?H+=-pt:cr==="center"&&(H+=-$n):Pt==="center"?cr==="left"?H+=-$n:cr==="right"&&(H+=$n):Pt==="right"&&(cr==="center"?H+=$n:cr==="right"&&(H+=pt))),qt){case"top":q-=(wr.length-1)*Cr;break;case"center":case"bottom":q-=(wr.length-1)*Cr;break}for(var mr=0;mr<wr.length;mr++)kr>0&&y.strokeText(wr[mr],H,q),y.fillText(wr[mr],H,q),q+=Cr}else kr>0&&y.strokeText(st,H,q),y.fillText(st,H,q);re!==0&&(y.rotate(-re),y.translate(-W,-Z))}}};var b6={};b6.drawNode=function(y,p,x){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,O=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,N=this,j,H,q=p._private,W=q.rscratch,Z=p.position();if(!(!Q(Z.x)||!Q(Z.y))&&!(O&&!p.visible())){var st=O?p.effectiveOpacity():1,bt=N.usePaths(),pt,_t=!1,St=p.padding();j=p.width()+2*St,H=p.height()+2*St;var Et;x&&(Et=x,y.translate(-Et.x1,-Et.y1));for(var Nt=p.pstyle("background-image"),Pt=Nt.value,qt=new Array(Pt.length),re=new Array(Pt.length),ee=0,Ut=0;Ut<Pt.length;Ut++){var de=Pt[Ut],Yt=qt[Ut]=de!=null&&de!=="none";if(Yt){var Ee=p.cy().style().getIndexedStyle(p,"background-image-crossorigin","value",Ut);ee++,re[Ut]=N.getCachedImage(de,Ee,function(){q.backgroundTimestamp=Date.now(),p.emitAndNotify("background")})}}var Te=p.pstyle("background-blacken").value,ie=p.pstyle("border-width").pfValue,ze=p.pstyle("background-opacity").value*st,me=p.pstyle("border-color").value,yn=p.pstyle("border-style").value,nn=p.pstyle("border-opacity").value*st,qe=p.pstyle("outline-width").pfValue,Tn=p.pstyle("outline-color").value,Xn=p.pstyle("outline-style").value,lr=p.pstyle("outline-opacity").value*st,Sn=p.pstyle("outline-offset").value;y.lineJoin="miter";var or=function(){var Kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ze;N.eleFillStyle(y,p,Kn)},pr=function(){var Kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nn;N.colorStrokeStyle(y,me[0],me[1],me[2],Kn)},kr=function(){var Kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lr;N.colorStrokeStyle(y,Tn[0],Tn[1],Tn[2],Kn)},wr=function(Kn,G,Vn,gr){var nr=N.nodePathCache=N.nodePathCache||[],Be=Pd(Vn==="polygon"?Vn+","+gr.join(","):Vn,""+G,""+Kn),Ls=nr[Be],hr,us=!1;return Ls!=null?(hr=Ls,us=!0,W.pathCache=hr):(hr=new Path2D,nr[Be]=W.pathCache=hr),{path:hr,cacheHit:us}},Cr=p.pstyle("shape").strValue,$n=p.pstyle("shape-polygon-points").pfValue;if(bt){y.translate(Z.x,Z.y);var cr=wr(j,H,Cr,$n);pt=cr.path,_t=cr.cacheHit}var mr=function(){if(!_t){var Kn=Z;bt&&(Kn={x:0,y:0}),N.nodeShapes[N.getNodeShape(p)].draw(pt||y,Kn.x,Kn.y,j,H)}bt?y.fill(pt):y.fill()},Sr=function(){for(var Kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Vn=q.backgrounding,gr=0,nr=0;nr<re.length;nr++){var Be=p.cy().style().getIndexedStyle(p,"background-image-containment","value",nr);if(G&&Be==="over"||!G&&Be==="inside"){gr++;continue}qt[nr]&&re[nr].complete&&!re[nr].error&&(gr++,N.drawInscribedImage(y,re[nr],p,nr,Kn))}q.backgrounding=gr!==ee,Vn!==q.backgrounding&&p.updateStyle(!1)},gi=function(){var Kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:st;N.hasPie(p)&&(N.drawPie(y,p,G),Kn&&(bt||N.nodeShapes[N.getNodeShape(p)].draw(y,Z.x,Z.y,j,H)))},ss=function(){var Kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st,G=(Te>0?Te:-Te)*Kn,Vn=Te>0?0:255;Te!==0&&(N.colorFillStyle(y,Vn,Vn,Vn,G),bt?y.fill(pt):y.fill())},na=function(){if(ie>0){if(y.lineWidth=ie,y.lineCap="butt",y.setLineDash)switch(yn){case"dotted":y.setLineDash([1,1]);break;case"dashed":y.setLineDash([4,2]);break;case"solid":case"double":y.setLineDash([]);break}if(bt?y.stroke(pt):y.stroke(),yn==="double"){y.lineWidth=ie/3;var Kn=y.globalCompositeOperation;y.globalCompositeOperation="destination-out",bt?y.stroke(pt):y.stroke(),y.globalCompositeOperation=Kn}y.setLineDash&&y.setLineDash([])}},vi=function(){if(qe>0){if(y.lineWidth=qe,y.lineCap="butt",y.setLineDash)switch(Xn){case"dotted":y.setLineDash([1,1]);break;case"dashed":y.setLineDash([4,2]);break;case"solid":case"double":y.setLineDash([]);break}var Kn=Z;bt&&(Kn={x:0,y:0});var G=N.getNodeShape(p),Vn=(j+ie+(qe+Sn))/j,gr=(H+ie+(qe+Sn))/H,nr=j*Vn,Be=H*gr,Ls=N.nodeShapes[G].points,hr;if(bt){var us=wr(nr,Be,G,Ls);hr=us.path}if(G==="ellipse")N.drawEllipsePath(hr||y,Kn.x,Kn.y,nr,Be);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(G)){var Ya=0,kc=0,Ca=0;G==="round-diamond"?Ya=(ie+Sn+qe)*1.4:G==="round-heptagon"?(Ya=(ie+Sn+qe)*1.075,Ca=-(ie/2+Sn+qe)/35):G==="round-hexagon"?Ya=(ie+Sn+qe)*1.12:G==="round-pentagon"?(Ya=(ie+Sn+qe)*1.13,Ca=-(ie/2+Sn+qe)/15):G==="round-tag"?(Ya=(ie+Sn+qe)*1.12,kc=(ie/2+qe+Sn)*.07):G==="round-triangle"&&(Ya=(ie+Sn+qe)*(Math.PI/2),Ca=-(ie+Sn/2+qe)/Math.PI),Ya!==0&&(Vn=(j+Ya)/j,gr=(H+Ya)/H),N.drawRoundPolygonPath(hr||y,Kn.x+kc,Kn.y+Ca,j*Vn,H*gr,Ls)}else if(["roundrectangle","round-rectangle"].includes(G))N.drawRoundRectanglePath(hr||y,Kn.x,Kn.y,nr,Be);else if(["cutrectangle","cut-rectangle"].includes(G))N.drawCutRectanglePath(hr||y,Kn.x,Kn.y,nr,Be);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(G))N.drawBottomRoundRectanglePath(hr||y,Kn.x,Kn.y,nr,Be);else if(G==="barrel")N.drawBarrelPath(hr||y,Kn.x,Kn.y,nr,Be);else if(G.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(G)){var oc=(ie+qe+Sn)/j;Ls=J9(Z9(Ls,oc)),N.drawPolygonPath(hr||y,Kn.x,Kn.y,j,H,Ls)}else{var ra=(ie+qe+Sn)/j;Ls=J9(Z9(Ls,-ra)),N.drawPolygonPath(hr||y,Kn.x,Kn.y,j,H,Ls)}if(bt?y.stroke(hr):y.stroke(),Xn==="double"){y.lineWidth=ie/3;var no=y.globalCompositeOperation;y.globalCompositeOperation="destination-out",bt?y.stroke(hr):y.stroke(),y.globalCompositeOperation=no}y.setLineDash&&y.setLineDash([])}},si=function(){L&&N.drawNodeOverlay(y,p,Z,j,H)},Qi=function(){L&&N.drawNodeUnderlay(y,p,Z,j,H)},ks=function(){N.drawElementText(y,p,null,C)},as=p.pstyle("ghost").value==="yes";if(as){var Es=p.pstyle("ghost-offset-x").pfValue,eo=p.pstyle("ghost-offset-y").pfValue,Ta=p.pstyle("ghost-opacity").value,pa=Ta*st;y.translate(Es,eo),kr(),vi(),or(Ta*ze),mr(),Sr(pa,!0),pr(Ta*nn),na(),gi(Te!==0||ie!==0),Sr(pa,!1),ss(pa),y.translate(-Es,-eo)}bt&&y.translate(-Z.x,-Z.y),Qi(),bt&&y.translate(Z.x,Z.y),kr(),vi(),or(),mr(),Sr(st,!0),pr(),na(),gi(Te!==0||ie!==0),Sr(st,!1),ss(),bt&&y.translate(-Z.x,-Z.y),ks(),si(),x&&y.translate(Et.x1,Et.y1)}};var EM=function(p){if(!["overlay","underlay"].includes(p))throw new Error("Invalid state");return function(x,C,L,O,N){var j=this;if(C.visible()){var H=C.pstyle("".concat(p,"-padding")).pfValue,q=C.pstyle("".concat(p,"-opacity")).value,W=C.pstyle("".concat(p,"-color")).value,Z=C.pstyle("".concat(p,"-shape")).value;if(q>0){if(L=L||C.position(),O==null||N==null){var st=C.padding();O=C.width()+2*st,N=C.height()+2*st}j.colorFillStyle(x,W[0],W[1],W[2],q),j.nodeShapes[Z].draw(x,L.x,L.y,O+H*2,N+H*2),x.fill()}}}};b6.drawNodeOverlay=EM("overlay"),b6.drawNodeUnderlay=EM("underlay"),b6.hasPie=function(y){return y=y[0],y._private.hasPie},b6.drawPie=function(y,p,x,C){p=p[0],C=C||p.position();var L=p.cy().style(),O=p.pstyle("pie-size"),N=C.x,j=C.y,H=p.width(),q=p.height(),W=Math.min(H,q)/2,Z=0,st=this.usePaths();st&&(N=0,j=0),O.units==="%"?W=W*O.pfValue:O.pfValue!==void 0&&(W=O.pfValue/2);for(var bt=1;bt<=L.pieBackgroundN;bt++){var pt=p.pstyle("pie-"+bt+"-background-size").value,_t=p.pstyle("pie-"+bt+"-background-color").value,St=p.pstyle("pie-"+bt+"-background-opacity").value*x,Et=pt/100;Et+Z>1&&(Et=1-Z);var Nt=1.5*Math.PI+2*Math.PI*Z,Pt=2*Math.PI*Et,qt=Nt+Pt;pt===0||Z>=1||Z+Et>1||(y.beginPath(),y.moveTo(N,j),y.arc(N,j,W,Nt,qt),y.closePath(),this.colorFillStyle(y,_t[0],_t[1],_t[2],St),y.fill(),Z+=Et)}};var dg={},Ent=100;dg.getPixelRatio=function(){var y=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var p=y.backingStorePixelRatio||y.webkitBackingStorePixelRatio||y.mozBackingStorePixelRatio||y.msBackingStorePixelRatio||y.oBackingStorePixelRatio||y.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/p},dg.paintCache=function(y){for(var p=this.paintCaches=this.paintCaches||[],x=!0,C,L=0;L<p.length;L++)if(C=p[L],C.context===y){x=!1;break}return x&&(C={context:y},p.push(C)),C},dg.createGradientStyleFor=function(y,p,x,C,L){var O,N=this.usePaths(),j=x.pstyle(p+"-gradient-stop-colors").value,H=x.pstyle(p+"-gradient-stop-positions").pfValue;if(C==="radial-gradient")if(x.isEdge()){var q=x.sourceEndpoint(),W=x.targetEndpoint(),Z=x.midpoint(),st=w4(q,Z),bt=w4(W,Z);O=y.createRadialGradient(Z.x,Z.y,0,Z.x,Z.y,Math.max(st,bt))}else{var pt=N?{x:0,y:0}:x.position(),_t=x.paddedWidth(),St=x.paddedHeight();O=y.createRadialGradient(pt.x,pt.y,0,pt.x,pt.y,Math.max(_t,St))}else if(x.isEdge()){var Et=x.sourceEndpoint(),Nt=x.targetEndpoint();O=y.createLinearGradient(Et.x,Et.y,Nt.x,Nt.y)}else{var Pt=N?{x:0,y:0}:x.position(),qt=x.paddedWidth(),re=x.paddedHeight(),ee=qt/2,Ut=re/2,de=x.pstyle("background-gradient-direction").value;switch(de){case"to-bottom":O=y.createLinearGradient(Pt.x,Pt.y-Ut,Pt.x,Pt.y+Ut);break;case"to-top":O=y.createLinearGradient(Pt.x,Pt.y+Ut,Pt.x,Pt.y-Ut);break;case"to-left":O=y.createLinearGradient(Pt.x+ee,Pt.y,Pt.x-ee,Pt.y);break;case"to-right":O=y.createLinearGradient(Pt.x-ee,Pt.y,Pt.x+ee,Pt.y);break;case"to-bottom-right":case"to-right-bottom":O=y.createLinearGradient(Pt.x-ee,Pt.y-Ut,Pt.x+ee,Pt.y+Ut);break;case"to-top-right":case"to-right-top":O=y.createLinearGradient(Pt.x-ee,Pt.y+Ut,Pt.x+ee,Pt.y-Ut);break;case"to-bottom-left":case"to-left-bottom":O=y.createLinearGradient(Pt.x+ee,Pt.y-Ut,Pt.x-ee,Pt.y+Ut);break;case"to-top-left":case"to-left-top":O=y.createLinearGradient(Pt.x+ee,Pt.y+Ut,Pt.x-ee,Pt.y-Ut);break}}if(!O)return null;for(var Yt=H.length===j.length,Ee=j.length,Te=0;Te<Ee;Te++)O.addColorStop(Yt?H[Te]:Te/(Ee-1),"rgba("+j[Te][0]+","+j[Te][1]+","+j[Te][2]+","+L+")");return O},dg.gradientFillStyle=function(y,p,x,C){var L=this.createGradientStyleFor(y,"background",p,x,C);if(!L)return null;y.fillStyle=L},dg.colorFillStyle=function(y,p,x,C,L){y.fillStyle="rgba("+p+","+x+","+C+","+L+")"},dg.eleFillStyle=function(y,p,x){var C=p.pstyle("background-fill").value;if(C==="linear-gradient"||C==="radial-gradient")this.gradientFillStyle(y,p,C,x);else{var L=p.pstyle("background-color").value;this.colorFillStyle(y,L[0],L[1],L[2],x)}},dg.gradientStrokeStyle=function(y,p,x,C){var L=this.createGradientStyleFor(y,"line",p,x,C);if(!L)return null;y.strokeStyle=L},dg.colorStrokeStyle=function(y,p,x,C,L){y.strokeStyle="rgba("+p+","+x+","+C+","+L+")"},dg.eleStrokeStyle=function(y,p,x){var C=p.pstyle("line-fill").value;if(C==="linear-gradient"||C==="radial-gradient")this.gradientStrokeStyle(y,p,C,x);else{var L=p.pstyle("line-color").value;this.colorStrokeStyle(y,L[0],L[1],L[2],x)}},dg.matchCanvasSize=function(y){var p=this,x=p.data,C=p.findContainerClientCoords(),L=C[2],O=C[3],N=p.getPixelRatio(),j=p.motionBlurPxRatio;(y===p.data.bufferCanvases[p.MOTIONBLUR_BUFFER_NODE]||y===p.data.bufferCanvases[p.MOTIONBLUR_BUFFER_DRAG])&&(N=j);var H=L*N,q=O*N,W;if(!(H===p.canvasWidth&&q===p.canvasHeight)){p.fontCaches=null;var Z=x.canvasContainer;Z.style.width=L+"px",Z.style.height=O+"px";for(var st=0;st<p.CANVAS_LAYERS;st++)W=x.canvases[st],W.width=H,W.height=q,W.style.width=L+"px",W.style.height=O+"px";for(var st=0;st<p.BUFFER_COUNT;st++)W=x.bufferCanvases[st],W.width=H,W.height=q,W.style.width=L+"px",W.style.height=O+"px";p.textureMult=1,N<=1&&(W=x.bufferCanvases[p.TEXTURE_BUFFER],p.textureMult=2,W.width=H*p.textureMult,W.height=q*p.textureMult),p.canvasWidth=H,p.canvasHeight=q}},dg.renderTo=function(y,p,x,C){this.render({forcedContext:y,forcedZoom:p,forcedPan:x,drawAllLayers:!0,forcedPxRatio:C})},dg.render=function(y){y=y||IB();var p=y.forcedContext,x=y.drawAllLayers,C=y.drawOnlyNodeLayer,L=y.forcedZoom,O=y.forcedPan,N=this,j=y.forcedPxRatio===void 0?this.getPixelRatio():y.forcedPxRatio,H=N.cy,q=N.data,W=q.canvasNeedsRedraw,Z=N.textureOnViewport&&!p&&(N.pinching||N.hoverData.dragging||N.swipePanning||N.data.wheelZooming),st=y.motionBlur!==void 0?y.motionBlur:N.motionBlur,bt=N.motionBlurPxRatio,pt=H.hasCompoundNodes(),_t=N.hoverData.draggingEles,St=!!(N.hoverData.selecting||N.touchData.selecting);st=st&&!p&&N.motionBlurEnabled&&!St;var Et=st;p||(N.prevPxRatio!==j&&(N.invalidateContainerClientCoordsCache(),N.matchCanvasSize(N.container),N.redrawHint("eles",!0),N.redrawHint("drag",!0)),N.prevPxRatio=j),!p&&N.motionBlurTimeout&&clearTimeout(N.motionBlurTimeout),st&&(N.mbFrames==null&&(N.mbFrames=0),N.mbFrames++,N.mbFrames<3&&(Et=!1),N.mbFrames>N.minMbLowQualFrames&&(N.motionBlurPxRatio=N.mbPxRBlurry)),N.clearingMotionBlur&&(N.motionBlurPxRatio=1),N.textureDrawLastFrame&&!Z&&(W[N.NODE]=!0,W[N.SELECT_BOX]=!0);var Nt=H.style(),Pt=H.zoom(),qt=L!==void 0?L:Pt,re=H.pan(),ee={x:re.x,y:re.y},Ut={zoom:Pt,pan:{x:re.x,y:re.y}},de=N.prevViewport,Yt=de===void 0||Ut.zoom!==de.zoom||Ut.pan.x!==de.pan.x||Ut.pan.y!==de.pan.y;!Yt&&!(_t&&!pt)&&(N.motionBlurPxRatio=1),O&&(ee=O),qt*=j,ee.x*=j,ee.y*=j;var Ee=N.getCachedZSortedEles();function Te(vi,si,Qi,ks,as){var Es=vi.globalCompositeOperation;vi.globalCompositeOperation="destination-out",N.colorFillStyle(vi,255,255,255,N.motionBlurTransparency),vi.fillRect(si,Qi,ks,as),vi.globalCompositeOperation=Es}function ie(vi,si){var Qi,ks,as,Es;!N.clearingMotionBlur&&(vi===q.bufferContexts[N.MOTIONBLUR_BUFFER_NODE]||vi===q.bufferContexts[N.MOTIONBLUR_BUFFER_DRAG])?(Qi={x:re.x*bt,y:re.y*bt},ks=Pt*bt,as=N.canvasWidth*bt,Es=N.canvasHeight*bt):(Qi=ee,ks=qt,as=N.canvasWidth,Es=N.canvasHeight),vi.setTransform(1,0,0,1,0,0),si==="motionBlur"?Te(vi,0,0,as,Es):!p&&(si===void 0||si)&&vi.clearRect(0,0,as,Es),x||(vi.translate(Qi.x,Qi.y),vi.scale(ks,ks)),O&&vi.translate(O.x,O.y),L&&vi.scale(L,L)}if(Z||(N.textureDrawLastFrame=!1),Z){if(N.textureDrawLastFrame=!0,!N.textureCache){N.textureCache={},N.textureCache.bb=H.mutableElements().boundingBox(),N.textureCache.texture=N.data.bufferCanvases[N.TEXTURE_BUFFER];var ze=N.data.bufferContexts[N.TEXTURE_BUFFER];ze.setTransform(1,0,0,1,0,0),ze.clearRect(0,0,N.canvasWidth*N.textureMult,N.canvasHeight*N.textureMult),N.render({forcedContext:ze,drawOnlyNodeLayer:!0,forcedPxRatio:j*N.textureMult});var Ut=N.textureCache.viewport={zoom:H.zoom(),pan:H.pan(),width:N.canvasWidth,height:N.canvasHeight};Ut.mpan={x:(0-Ut.pan.x)/Ut.zoom,y:(0-Ut.pan.y)/Ut.zoom}}W[N.DRAG]=!1,W[N.NODE]=!1;var me=q.contexts[N.NODE],yn=N.textureCache.texture,Ut=N.textureCache.viewport;me.setTransform(1,0,0,1,0,0),st?Te(me,0,0,Ut.width,Ut.height):me.clearRect(0,0,Ut.width,Ut.height);var nn=Nt.core("outside-texture-bg-color").value,qe=Nt.core("outside-texture-bg-opacity").value;N.colorFillStyle(me,nn[0],nn[1],nn[2],qe),me.fillRect(0,0,Ut.width,Ut.height);var Pt=H.zoom();ie(me,!1),me.clearRect(Ut.mpan.x,Ut.mpan.y,Ut.width/Ut.zoom/j,Ut.height/Ut.zoom/j),me.drawImage(yn,Ut.mpan.x,Ut.mpan.y,Ut.width/Ut.zoom/j,Ut.height/Ut.zoom/j)}else N.textureOnViewport&&!p&&(N.textureCache=null);var Tn=H.extent(),Xn=N.pinching||N.hoverData.dragging||N.swipePanning||N.data.wheelZooming||N.hoverData.draggingEles||N.cy.animated(),lr=N.hideEdgesOnViewport&&Xn,Sn=[];if(Sn[N.NODE]=!W[N.NODE]&&st&&!N.clearedForMotionBlur[N.NODE]||N.clearingMotionBlur,Sn[N.NODE]&&(N.clearedForMotionBlur[N.NODE]=!0),Sn[N.DRAG]=!W[N.DRAG]&&st&&!N.clearedForMotionBlur[N.DRAG]||N.clearingMotionBlur,Sn[N.DRAG]&&(N.clearedForMotionBlur[N.DRAG]=!0),W[N.NODE]||x||C||Sn[N.NODE]){var or=st&&!Sn[N.NODE]&&bt!==1,me=p||(or?N.data.bufferContexts[N.MOTIONBLUR_BUFFER_NODE]:q.contexts[N.NODE]),pr=st&&!or?"motionBlur":void 0;ie(me,pr),lr?N.drawCachedNodes(me,Ee.nondrag,j,Tn):N.drawLayeredElements(me,Ee.nondrag,j,Tn),N.debug&&N.drawDebugPoints(me,Ee.nondrag),!x&&!st&&(W[N.NODE]=!1)}if(!C&&(W[N.DRAG]||x||Sn[N.DRAG])){var or=st&&!Sn[N.DRAG]&&bt!==1,me=p||(or?N.data.bufferContexts[N.MOTIONBLUR_BUFFER_DRAG]:q.contexts[N.DRAG]);ie(me,st&&!or?"motionBlur":void 0),lr?N.drawCachedNodes(me,Ee.drag,j,Tn):N.drawCachedElements(me,Ee.drag,j,Tn),N.debug&&N.drawDebugPoints(me,Ee.drag),!x&&!st&&(W[N.DRAG]=!1)}if(N.showFps||!C&&W[N.SELECT_BOX]&&!x){var me=p||q.contexts[N.SELECT_BOX];if(ie(me),N.selection[4]==1&&(N.hoverData.selecting||N.touchData.selecting)){var Pt=N.cy.zoom(),kr=Nt.core("selection-box-border-width").value/Pt;me.lineWidth=kr,me.fillStyle="rgba("+Nt.core("selection-box-color").value[0]+","+Nt.core("selection-box-color").value[1]+","+Nt.core("selection-box-color").value[2]+","+Nt.core("selection-box-opacity").value+")",me.fillRect(N.selection[0],N.selection[1],N.selection[2]-N.selection[0],N.selection[3]-N.selection[1]),kr>0&&(me.strokeStyle="rgba("+Nt.core("selection-box-border-color").value[0]+","+Nt.core("selection-box-border-color").value[1]+","+Nt.core("selection-box-border-color").value[2]+","+Nt.core("selection-box-opacity").value+")",me.strokeRect(N.selection[0],N.selection[1],N.selection[2]-N.selection[0],N.selection[3]-N.selection[1]))}if(q.bgActivePosistion&&!N.hoverData.selecting){var Pt=N.cy.zoom(),wr=q.bgActivePosistion;me.fillStyle="rgba("+Nt.core("active-bg-color").value[0]+","+Nt.core("active-bg-color").value[1]+","+Nt.core("active-bg-color").value[2]+","+Nt.core("active-bg-opacity").value+")",me.beginPath(),me.arc(wr.x,wr.y,Nt.core("active-bg-size").pfValue/Pt,0,2*Math.PI),me.fill()}var Cr=N.lastRedrawTime;if(N.showFps&&Cr){Cr=Math.round(Cr);var $n=Math.round(1e3/Cr);me.setTransform(1,0,0,1,0,0),me.fillStyle="rgba(255, 0, 0, 0.75)",me.strokeStyle="rgba(255, 0, 0, 0.75)",me.lineWidth=1,me.fillText("1 frame = "+Cr+" ms = "+$n+" fps",0,20);var cr=60;me.strokeRect(0,30,250,20),me.fillRect(0,30,250*Math.min($n/cr,1),20)}x||(W[N.SELECT_BOX]=!1)}if(st&&bt!==1){var mr=q.contexts[N.NODE],Sr=N.data.bufferCanvases[N.MOTIONBLUR_BUFFER_NODE],gi=q.contexts[N.DRAG],ss=N.data.bufferCanvases[N.MOTIONBLUR_BUFFER_DRAG],na=function(si,Qi,ks){si.setTransform(1,0,0,1,0,0),ks||!Et?si.clearRect(0,0,N.canvasWidth,N.canvasHeight):Te(si,0,0,N.canvasWidth,N.canvasHeight);var as=bt;si.drawImage(Qi,0,0,N.canvasWidth*as,N.canvasHeight*as,0,0,N.canvasWidth,N.canvasHeight)};(W[N.NODE]||Sn[N.NODE])&&(na(mr,Sr,Sn[N.NODE]),W[N.NODE]=!1),(W[N.DRAG]||Sn[N.DRAG])&&(na(gi,ss,Sn[N.DRAG]),W[N.DRAG]=!1)}N.prevViewport=Ut,N.clearingMotionBlur&&(N.clearingMotionBlur=!1,N.motionBlurCleared=!0,N.motionBlur=!0),st&&(N.motionBlurTimeout=setTimeout(function(){N.motionBlurTimeout=null,N.clearedForMotionBlur[N.NODE]=!1,N.clearedForMotionBlur[N.DRAG]=!1,N.motionBlur=!1,N.clearingMotionBlur=!Z,N.mbFrames=0,W[N.NODE]=!0,W[N.DRAG]=!0,N.redraw()},Ent)),p||H.emit("render")};var gy={};gy.drawPolygonPath=function(y,p,x,C,L,O){var N=C/2,j=L/2;y.beginPath&&y.beginPath(),y.moveTo(p+N*O[0],x+j*O[1]);for(var H=1;H<O.length/2;H++)y.lineTo(p+N*O[H*2],x+j*O[H*2+1]);y.closePath()},gy.drawRoundPolygonPath=function(y,p,x,C,L,O){var N=C/2,j=L/2,H=HD(C,L);y.beginPath&&y.beginPath();for(var q=0;q<O.length/4;q++){var W=void 0,Z=void 0;q===0?W=O.length-2:W=q*4-2,Z=q*4+2;var st=p+N*O[q*4],bt=x+j*O[q*4+1],pt=-O[W]*O[Z]-O[W+1]*O[Z+1],_t=H/Math.tan(Math.acos(pt)/2),St=st-_t*O[W],Et=bt-_t*O[W+1],Nt=st+_t*O[Z],Pt=bt+_t*O[Z+1];q===0?y.moveTo(St,Et):y.lineTo(St,Et),y.arcTo(st,bt,Nt,Pt,H)}y.closePath()},gy.drawRoundRectanglePath=function(y,p,x,C,L){var O=C/2,N=L/2,j=R8(C,L);y.beginPath&&y.beginPath(),y.moveTo(p,x-N),y.arcTo(p+O,x-N,p+O,x,j),y.arcTo(p+O,x+N,p,x+N,j),y.arcTo(p-O,x+N,p-O,x,j),y.arcTo(p-O,x-N,p,x-N,j),y.lineTo(p,x-N),y.closePath()},gy.drawBottomRoundRectanglePath=function(y,p,x,C,L){var O=C/2,N=L/2,j=R8(C,L);y.beginPath&&y.beginPath(),y.moveTo(p,x-N),y.lineTo(p+O,x-N),y.lineTo(p+O,x),y.arcTo(p+O,x+N,p,x+N,j),y.arcTo(p-O,x+N,p-O,x,j),y.lineTo(p-O,x-N),y.lineTo(p,x-N),y.closePath()},gy.drawCutRectanglePath=function(y,p,x,C,L){var O=C/2,N=L/2,j=qB();y.beginPath&&y.beginPath(),y.moveTo(p-O+j,x-N),y.lineTo(p+O-j,x-N),y.lineTo(p+O,x-N+j),y.lineTo(p+O,x+N-j),y.lineTo(p+O-j,x+N),y.lineTo(p-O+j,x+N),y.lineTo(p-O,x+N-j),y.lineTo(p-O,x-N+j),y.closePath()},gy.drawBarrelPath=function(y,p,x,C,L){var O=C/2,N=L/2,j=p-O,H=p+O,q=x-N,W=x+N,Z=VD(C,L),st=Z.widthOffset,bt=Z.heightOffset,pt=Z.ctrlPtOffsetPct*st;y.beginPath&&y.beginPath(),y.moveTo(j,q+bt),y.lineTo(j,W-bt),y.quadraticCurveTo(j+pt,W,j+st,W),y.lineTo(H-st,W),y.quadraticCurveTo(H-pt,W,H,W-bt),y.lineTo(H,q+bt),y.quadraticCurveTo(H-pt,q,H-st,q),y.lineTo(j+st,q),y.quadraticCurveTo(j+pt,q,j,q+bt),y.closePath()};for(var Vj=Math.sin(0),Uj=Math.cos(0),TM={},CM={},Gj=Math.PI/40,w6=0*Math.PI;w6<2*Math.PI;w6+=Gj)TM[w6]=Math.sin(w6),CM[w6]=Math.cos(w6);gy.drawEllipsePath=function(y,p,x,C,L){if(y.beginPath&&y.beginPath(),y.ellipse)y.ellipse(p,x,C/2,L/2,0,0,2*Math.PI);else for(var O,N,j=C/2,H=L/2,q=0*Math.PI;q<2*Math.PI;q+=Gj)O=p-j*TM[q]*Vj+j*CM[q]*Uj,N=x+H*CM[q]*Vj+H*TM[q]*Uj,q===0?y.moveTo(O,N):y.lineTo(O,N);y.closePath()};var oE={};oE.createBuffer=function(y,p){var x=document.createElement("canvas");return x.width=y,x.height=p,[x,x.getContext("2d")]},oE.bufferCanvasImage=function(y){var p=this.cy,x=p.mutableElements(),C=x.boundingBox(),L=this.findContainerClientCoords(),O=y.full?Math.ceil(C.w):L[2],N=y.full?Math.ceil(C.h):L[3],j=Q(y.maxWidth)||Q(y.maxHeight),H=this.getPixelRatio(),q=1;if(y.scale!==void 0)O*=y.scale,N*=y.scale,q=y.scale;else if(j){var W=1/0,Z=1/0;Q(y.maxWidth)&&(W=q*y.maxWidth/O),Q(y.maxHeight)&&(Z=q*y.maxHeight/N),q=Math.min(W,Z),O*=q,N*=q}j||(O*=H,N*=H,q*=H);var st=document.createElement("canvas");st.width=O,st.height=N,st.style.width=O+"px",st.style.height=N+"px";var bt=st.getContext("2d");if(O>0&&N>0){bt.clearRect(0,0,O,N),bt.globalCompositeOperation="source-over";var pt=this.getCachedZSortedEles();if(y.full)bt.translate(-C.x1*q,-C.y1*q),bt.scale(q,q),this.drawElements(bt,pt),bt.scale(1/q,1/q),bt.translate(C.x1*q,C.y1*q);else{var _t=p.pan(),St={x:_t.x*q,y:_t.y*q};q*=p.zoom(),bt.translate(St.x,St.y),bt.scale(q,q),this.drawElements(bt,pt),bt.scale(1/q,1/q),bt.translate(-St.x,-St.y)}y.bg&&(bt.globalCompositeOperation="destination-over",bt.fillStyle=y.bg,bt.rect(0,0,O,N),bt.fill())}return st};function Tnt(y,p){for(var x=atob(y),C=new ArrayBuffer(x.length),L=new Uint8Array(C),O=0;O<x.length;O++)L[O]=x.charCodeAt(O);return new Blob([C],{type:p})}function Kj(y){var p=y.indexOf(",");return y.substr(p+1)}function Wj(y,p,x){var C=function(){return p.toDataURL(x,y.quality)};switch(y.output){case"blob-promise":return new e6(function(L,O){try{p.toBlob(function(N){N!=null?L(N):O(new Error("`canvas.toBlob()` sent a null value in its callback"))},x,y.quality)}catch(N){O(N)}});case"blob":return Tnt(Kj(C()),x);case"base64":return Kj(C());case"base64uri":default:return C()}}oE.png=function(y){return Wj(y,this.bufferCanvasImage(y),"image/png")},oE.jpg=function(y){return Wj(y,this.bufferCanvasImage(y),"image/jpeg")};var Yj={};Yj.nodeShapeImpl=function(y,p,x,C,L,O,N){switch(y){case"ellipse":return this.drawEllipsePath(p,x,C,L,O);case"polygon":return this.drawPolygonPath(p,x,C,L,O,N);case"round-polygon":return this.drawRoundPolygonPath(p,x,C,L,O,N);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(p,x,C,L,O);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(p,x,C,L,O);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(p,x,C,L,O);case"barrel":return this.drawBarrelPath(p,x,C,L,O)}};var Xj=cE,xc=cE.prototype;xc.CANVAS_LAYERS=3,xc.SELECT_BOX=0,xc.DRAG=1,xc.NODE=2,xc.BUFFER_COUNT=3,xc.TEXTURE_BUFFER=0,xc.MOTIONBLUR_BUFFER_NODE=1,xc.MOTIONBLUR_BUFFER_DRAG=2;function cE(y){var p=this;p.data={canvases:new Array(xc.CANVAS_LAYERS),contexts:new Array(xc.CANVAS_LAYERS),canvasNeedsRedraw:new Array(xc.CANVAS_LAYERS),bufferCanvases:new Array(xc.BUFFER_COUNT),bufferContexts:new Array(xc.CANVAS_LAYERS)};var x="-webkit-tap-highlight-color",C="rgba(0,0,0,0)";p.data.canvasContainer=document.createElement("div");var L=p.data.canvasContainer.style;p.data.canvasContainer.style[x]=C,L.position="relative",L.zIndex="0",L.overflow="hidden";var O=y.cy.container();O.appendChild(p.data.canvasContainer),O.style[x]=C;var N={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};Fe()&&(N["-ms-touch-action"]="none",N["touch-action"]="none");for(var j=0;j<xc.CANVAS_LAYERS;j++){var H=p.data.canvases[j]=document.createElement("canvas");p.data.contexts[j]=H.getContext("2d"),Object.keys(N).forEach(function(Cr){H.style[Cr]=N[Cr]}),H.style.position="absolute",H.setAttribute("data-id","layer"+j),H.style.zIndex=String(xc.CANVAS_LAYERS-j),p.data.canvasContainer.appendChild(H),p.data.canvasNeedsRedraw[j]=!1}p.data.topCanvas=p.data.canvases[0],p.data.canvases[xc.NODE].setAttribute("data-id","layer"+xc.NODE+"-node"),p.data.canvases[xc.SELECT_BOX].setAttribute("data-id","layer"+xc.SELECT_BOX+"-selectbox"),p.data.canvases[xc.DRAG].setAttribute("data-id","layer"+xc.DRAG+"-drag");for(var j=0;j<xc.BUFFER_COUNT;j++)p.data.bufferCanvases[j]=document.createElement("canvas"),p.data.bufferContexts[j]=p.data.bufferCanvases[j].getContext("2d"),p.data.bufferCanvases[j].style.position="absolute",p.data.bufferCanvases[j].setAttribute("data-id","buffer"+j),p.data.bufferCanvases[j].style.zIndex=String(-j-1),p.data.bufferCanvases[j].style.visibility="hidden";p.pathsEnabled=!0;var q=v0(),W=function($n){return{x:($n.x1+$n.x2)/2,y:($n.y1+$n.y2)/2}},Z=function($n){return{x:-$n.w/2,y:-$n.h/2}},st=function($n){var cr=$n[0]._private,mr=cr.oldBackgroundTimestamp===cr.backgroundTimestamp;return!mr},bt=function($n){return $n[0]._private.nodeKey},pt=function($n){return $n[0]._private.labelStyleKey},_t=function($n){return $n[0]._private.sourceLabelStyleKey},St=function($n){return $n[0]._private.targetLabelStyleKey},Et=function($n,cr,mr,Sr,gi){return p.drawElement($n,cr,mr,!1,!1,gi)},Nt=function($n,cr,mr,Sr,gi){return p.drawElementText($n,cr,mr,Sr,"main",gi)},Pt=function($n,cr,mr,Sr,gi){return p.drawElementText($n,cr,mr,Sr,"source",gi)},qt=function($n,cr,mr,Sr,gi){return p.drawElementText($n,cr,mr,Sr,"target",gi)},re=function($n){return $n.boundingBox(),$n[0]._private.bodyBounds},ee=function($n){return $n.boundingBox(),$n[0]._private.labelBounds.main||q},Ut=function($n){return $n.boundingBox(),$n[0]._private.labelBounds.source||q},de=function($n){return $n.boundingBox(),$n[0]._private.labelBounds.target||q},Yt=function($n,cr){return cr},Ee=function($n){return W(re($n))},Te=function($n,cr,mr){var Sr=$n?$n+"-":"";return{x:cr.x+mr.pstyle(Sr+"text-margin-x").pfValue,y:cr.y+mr.pstyle(Sr+"text-margin-y").pfValue}},ie=function($n,cr,mr){var Sr=$n[0]._private.rscratch;return{x:Sr[cr],y:Sr[mr]}},ze=function($n){return Te("",ie($n,"labelX","labelY"),$n)},me=function($n){return Te("source",ie($n,"sourceLabelX","sourceLabelY"),$n)},yn=function($n){return Te("target",ie($n,"targetLabelX","targetLabelY"),$n)},nn=function($n){return Z(re($n))},qe=function($n){return Z(Ut($n))},Tn=function($n){return Z(de($n))},Xn=function($n){var cr=ee($n),mr=Z(ee($n));if($n.isNode()){switch($n.pstyle("text-halign").value){case"left":mr.x=-cr.w;break;case"right":mr.x=0;break}switch($n.pstyle("text-valign").value){case"top":mr.y=-cr.h;break;case"bottom":mr.y=0;break}}return mr},lr=p.data.eleTxrCache=new rE(p,{getKey:bt,doesEleInvalidateKey:st,drawElement:Et,getBoundingBox:re,getRotationPoint:Ee,getRotationOffset:nn,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),Sn=p.data.lblTxrCache=new rE(p,{getKey:pt,drawElement:Nt,getBoundingBox:ee,getRotationPoint:ze,getRotationOffset:Xn,isVisible:Yt}),or=p.data.slbTxrCache=new rE(p,{getKey:_t,drawElement:Pt,getBoundingBox:Ut,getRotationPoint:me,getRotationOffset:qe,isVisible:Yt}),pr=p.data.tlbTxrCache=new rE(p,{getKey:St,drawElement:qt,getBoundingBox:de,getRotationPoint:yn,getRotationOffset:Tn,isVisible:Yt}),kr=p.data.lyrTxrCache=new Bj(p);p.onUpdateEleCalcs(function($n,cr){lr.invalidateElements(cr),Sn.invalidateElements(cr),or.invalidateElements(cr),pr.invalidateElements(cr),kr.invalidateElements(cr);for(var mr=0;mr<cr.length;mr++){var Sr=cr[mr]._private;Sr.oldBackgroundTimestamp=Sr.backgroundTimestamp}});var wr=function($n){for(var cr=0;cr<$n.length;cr++)kr.enqueueElementRefinement($n[cr].ele)};lr.onDequeue(wr),Sn.onDequeue(wr),or.onDequeue(wr),pr.onDequeue(wr)}xc.redrawHint=function(y,p){var x=this;switch(y){case"eles":x.data.canvasNeedsRedraw[xc.NODE]=p;break;case"drag":x.data.canvasNeedsRedraw[xc.DRAG]=p;break;case"select":x.data.canvasNeedsRedraw[xc.SELECT_BOX]=p;break}};var uE=typeof Path2D<"u";xc.path2dEnabled=function(y){if(y===void 0)return this.pathsEnabled;this.pathsEnabled=!!y},xc.usePaths=function(){return uE&&this.pathsEnabled},xc.setImgSmoothing=function(y,p){y.imageSmoothingEnabled!=null?y.imageSmoothingEnabled=p:(y.webkitImageSmoothingEnabled=p,y.mozImageSmoothingEnabled=p,y.msImageSmoothingEnabled=p)},xc.getImgSmoothing=function(y){return y.imageSmoothingEnabled!=null?y.imageSmoothingEnabled:y.webkitImageSmoothingEnabled||y.mozImageSmoothingEnabled||y.msImageSmoothingEnabled},xc.makeOffscreenCanvas=function(y,p){var x;return(typeof OffscreenCanvas>"u"?"undefined":f(OffscreenCanvas))!=="undefined"?x=new OffscreenCanvas(y,p):(x=document.createElement("canvas"),x.width=y,x.height=p),x},[jj,bb,wb,aE,S4,b6,dg,gy,oE,Yj].forEach(function(y){we(xc,y)});var cp=[{name:"null",impl:mj},{name:"base",impl:Dj},{name:"canvas",impl:Xj}],Cnt=[{type:"layout",extensions:Vet},{type:"renderer",extensions:cp}],Snt={},_nt={};function Ant(y,p,x){var C=x,L=function(de){Gc("Can not register `"+p+"` for `"+y+"` since `"+de+"` already exists in the prototype and can not be overridden")};if(y==="core"){if(tE.prototype[p])return L(p);tE.prototype[p]=x}else if(y==="collection"){if(w1.prototype[p])return L(p);w1.prototype[p]=x}else if(y==="layout"){for(var O=function(de){this.options=de,x.call(this,de),it(this._private)||(this._private={}),this._private.cy=de.cy,this._private.listeners=[],this.createEmitter()},N=O.prototype=Object.create(x.prototype),j=[],H=0;H<j.length;H++){var q=j[H];N[q]=N[q]||function(){return this}}N.start&&!N.run?N.run=function(){return this.start(),this}:!N.start&&N.run&&(N.start=function(){return this.run(),this});var W=x.prototype.stop;N.stop=function(){var Ut=this.options;if(Ut&&Ut.animate){var de=this.animations;if(de)for(var Yt=0;Yt<de.length;Yt++)de[Yt].stop()}return W?W.call(this):this.emit("layoutstop"),this},N.destroy||(N.destroy=function(){return this}),N.cy=function(){return this._private.cy};var Z=function(de){return de._private.cy},st={addEventFields:function(de,Yt){Yt.layout=de,Yt.cy=Z(de),Yt.target=de},bubble:function(){return!0},parent:function(de){return Z(de)}};we(N,{createEmitter:function(){return this._private.emitter=new dC(st,this),this},emitter:function(){return this._private.emitter},on:function(de,Yt){return this.emitter().on(de,Yt),this},one:function(de,Yt){return this.emitter().one(de,Yt),this},once:function(de,Yt){return this.emitter().one(de,Yt),this},removeListener:function(de,Yt){return this.emitter().removeListener(de,Yt),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(de,Yt){return this.emitter().emit(de,Yt),this}}),Kc.eventAliasesOn(N),C=O}else if(y==="renderer"&&p!=="null"&&p!=="base"){var bt=Lnt("renderer","base"),pt=bt.prototype,_t=x,St=x.prototype,Et=function(){bt.apply(this,arguments),_t.apply(this,arguments)},Nt=Et.prototype;for(var Pt in pt){var qt=pt[Pt],re=St[Pt]!=null;if(re)return L(Pt);Nt[Pt]=qt}for(var ee in St)Nt[ee]=St[ee];pt.clientFunctions.forEach(function(Ut){Nt[Ut]=Nt[Ut]||function(){$l("Renderer does not implement `renderer."+Ut+"()` on its prototype")}}),C=Et}else if(y==="__proto__"||y==="constructor"||y==="prototype")return $l(y+" is an illegal type to be registered, possibly lead to prototype pollutions");return An({map:Snt,keys:[y,p],value:C})}function Lnt(y,p){return Nn({map:Snt,keys:[y,p]})}function Qj(y,p,x,C,L){return An({map:_nt,keys:[y,p,x,C],value:L})}function L2t(y,p,x,C){return Nn({map:_nt,keys:[y,p,x,C]})}var Jj=function(){if(arguments.length===2)return Lnt.apply(null,arguments);if(arguments.length===3)return Ant.apply(null,arguments);if(arguments.length===4)return L2t.apply(null,arguments);if(arguments.length===5)return Qj.apply(null,arguments);$l("Invalid extension access syntax")};tE.prototype.extension=Jj,Cnt.forEach(function(y){y.extensions.forEach(function(p){Ant(y.type,p.name,p.impl)})});var Dnt=function y(){if(!(this instanceof y))return new y;this.length=0},m6=Dnt.prototype;m6.instanceString=function(){return"stylesheet"},m6.selector=function(y){var p=this.length++;return this[p]={selector:y,properties:[]},this},m6.css=function(y,p){var x=this.length-1;if(mt(y))this[x].properties.push({name:y,value:p});else if(it(y))for(var C=y,L=Object.keys(C),O=0;O<L.length;O++){var N=L[O],j=C[N];if(j!=null){var H=Y1.properties[N]||Y1.properties[Ae(N)];if(H!=null){var q=H.name,W=j;this[x].properties.push({name:q,value:W})}}}return this},m6.style=m6.css,m6.generateStyle=function(y){var p=new Y1(y);return this.appendToStyle(p)},m6.appendToStyle=function(y){for(var p=0;p<this.length;p++){var x=this[p],C=x.selector,L=x.properties;y.selector(C);for(var O=0;O<L.length;O++){var N=L[O];y.css(N.name,N.value)}}return y};var D2t="3.28.1",v6=function(p){if(p===void 0&&(p={}),it(p))return new tE(p);if(mt(p))return Jj.apply(Jj,arguments)};return v6.use=function(y){var p=Array.prototype.slice.call(arguments,1);return p.unshift(v6),y.apply(null,p),this},v6.warnings=function(y){return U9(y)},v6.version=D2t,v6.stylesheet=v6.Stylesheet=Dnt,v6})})(GHt);var een=GHt.exports;const KHt=e9(een);var WHt={exports:{}},p2t={exports:{}},b2t={exports:{}},YHt;function nen(){return YHt||(YHt=1,function(i,a){(function(g,w){i.exports=w()})(Z0,function(){return function(f){var g={};function w(v){if(g[v])return g[v].exports;var b=g[v]={i:v,l:!1,exports:{}};return f[v].call(b.exports,b,b.exports,w),b.l=!0,b.exports}return w.m=f,w.c=g,w.i=function(v){return v},w.d=function(v,b,E){w.o(v,b)||Object.defineProperty(v,b,{configurable:!1,enumerable:!0,get:E})},w.n=function(v){var b=v&&v.__esModule?function(){return v.default}:function(){return v};return w.d(b,"a",b),b},w.o=function(v,b){return Object.prototype.hasOwnProperty.call(v,b)},w.p="",w(w.s=26)}([function(f,g,w){function v(){}v.QUALITY=1,v.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,v.DEFAULT_INCREMENTAL=!1,v.DEFAULT_ANIMATION_ON_LAYOUT=!0,v.DEFAULT_ANIMATION_DURING_LAYOUT=!1,v.DEFAULT_ANIMATION_PERIOD=50,v.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,v.DEFAULT_GRAPH_MARGIN=15,v.NODE_DIMENSIONS_INCLUDE_LABELS=!1,v.SIMPLE_NODE_SIZE=40,v.SIMPLE_NODE_HALF_SIZE=v.SIMPLE_NODE_SIZE/2,v.EMPTY_COMPOUND_NODE_SIZE=40,v.MIN_EDGE_LENGTH=1,v.WORLD_BOUNDARY=1e6,v.INITIAL_WORLD_BOUNDARY=v.WORLD_BOUNDARY/1e3,v.WORLD_CENTER_X=1200,v.WORLD_CENTER_Y=900,f.exports=v},function(f,g,w){var v=w(2),b=w(8),E=w(9);function S(M,F,R){v.call(this,R),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=R,this.bendpoints=[],this.source=M,this.target=F}S.prototype=Object.create(v.prototype);for(var _ in v)S[_]=v[_];S.prototype.getSource=function(){return this.source},S.prototype.getTarget=function(){return this.target},S.prototype.isInterGraph=function(){return this.isInterGraph},S.prototype.getLength=function(){return this.length},S.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},S.prototype.getBendpoints=function(){return this.bendpoints},S.prototype.getLca=function(){return this.lca},S.prototype.getSourceInLca=function(){return this.sourceInLca},S.prototype.getTargetInLca=function(){return this.targetInLca},S.prototype.getOtherEnd=function(M){if(this.source===M)return this.target;if(this.target===M)return this.source;throw"Node is not incident with this edge"},S.prototype.getOtherEndInGraph=function(M,F){for(var R=this.getOtherEnd(M),B=F.getGraphManager().getRoot();;){if(R.getOwner()==F)return R;if(R.getOwner()==B)break;R=R.getOwner().getParent()}return null},S.prototype.updateLength=function(){var M=new Array(4);this.isOverlapingSourceAndTarget=b.getIntersection(this.target.getRect(),this.source.getRect(),M),this.isOverlapingSourceAndTarget||(this.lengthX=M[0]-M[2],this.lengthY=M[1]-M[3],Math.abs(this.lengthX)<1&&(this.lengthX=E.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=E.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},S.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=E.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=E.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},f.exports=S},function(f,g,w){function v(b){this.vGraphObject=b}f.exports=v},function(f,g,w){var v=w(2),b=w(10),E=w(13),S=w(0),_=w(16),M=w(4);function F(B,z,Y,nt){Y==null&&nt==null&&(nt=z),v.call(this,nt),B.graphManager!=null&&(B=B.graphManager),this.estimatedSize=b.MIN_VALUE,this.inclusionTreeDepth=b.MAX_VALUE,this.vGraphObject=nt,this.edges=[],this.graphManager=B,Y!=null&&z!=null?this.rect=new E(z.x,z.y,Y.width,Y.height):this.rect=new E}F.prototype=Object.create(v.prototype);for(var R in v)F[R]=v[R];F.prototype.getEdges=function(){return this.edges},F.prototype.getChild=function(){return this.child},F.prototype.getOwner=function(){return this.owner},F.prototype.getWidth=function(){return this.rect.width},F.prototype.setWidth=function(B){this.rect.width=B},F.prototype.getHeight=function(){return this.rect.height},F.prototype.setHeight=function(B){this.rect.height=B},F.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},F.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},F.prototype.getCenter=function(){return new M(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},F.prototype.getLocation=function(){return new M(this.rect.x,this.rect.y)},F.prototype.getRect=function(){return this.rect},F.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},F.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},F.prototype.setRect=function(B,z){this.rect.x=B.x,this.rect.y=B.y,this.rect.width=z.width,this.rect.height=z.height},F.prototype.setCenter=function(B,z){this.rect.x=B-this.rect.width/2,this.rect.y=z-this.rect.height/2},F.prototype.setLocation=function(B,z){this.rect.x=B,this.rect.y=z},F.prototype.moveBy=function(B,z){this.rect.x+=B,this.rect.y+=z},F.prototype.getEdgeListToNode=function(B){var z=[],Y=this;return Y.edges.forEach(function(nt){if(nt.target==B){if(nt.source!=Y)throw"Incorrect edge source!";z.push(nt)}}),z},F.prototype.getEdgesBetween=function(B){var z=[],Y=this;return Y.edges.forEach(function(nt){if(!(nt.source==Y||nt.target==Y))throw"Incorrect edge source and/or target";(nt.target==B||nt.source==B)&&z.push(nt)}),z},F.prototype.getNeighborsList=function(){var B=new Set,z=this;return z.edges.forEach(function(Y){if(Y.source==z)B.add(Y.target);else{if(Y.target!=z)throw"Incorrect incidency!";B.add(Y.source)}}),B},F.prototype.withChildren=function(){var B=new Set,z,Y;if(B.add(this),this.child!=null)for(var nt=this.child.getNodes(),ot=0;ot<nt.length;ot++)z=nt[ot],Y=z.withChildren(),Y.forEach(function(ft){B.add(ft)});return B},F.prototype.getNoOfChildren=function(){var B=0,z;if(this.child==null)B=1;else for(var Y=this.child.getNodes(),nt=0;nt<Y.length;nt++)z=Y[nt],B+=z.getNoOfChildren();return B==0&&(B=1),B},F.prototype.getEstimatedSize=function(){if(this.estimatedSize==b.MIN_VALUE)throw"assert failed";return this.estimatedSize},F.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},F.prototype.scatter=function(){var B,z,Y=-S.INITIAL_WORLD_BOUNDARY,nt=S.INITIAL_WORLD_BOUNDARY;B=S.WORLD_CENTER_X+_.nextDouble()*(nt-Y)+Y;var ot=-S.INITIAL_WORLD_BOUNDARY,ft=S.INITIAL_WORLD_BOUNDARY;z=S.WORLD_CENTER_Y+_.nextDouble()*(ft-ot)+ot,this.rect.x=B,this.rect.y=z},F.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var B=this.getChild();if(B.updateBounds(!0),this.rect.x=B.getLeft(),this.rect.y=B.getTop(),this.setWidth(B.getRight()-B.getLeft()),this.setHeight(B.getBottom()-B.getTop()),S.NODE_DIMENSIONS_INCLUDE_LABELS){var z=B.getRight()-B.getLeft(),Y=B.getBottom()-B.getTop();this.labelWidth>z&&(this.rect.x-=(this.labelWidth-z)/2,this.setWidth(this.labelWidth)),this.labelHeight>Y&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-Y)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-Y),this.setHeight(this.labelHeight))}}},F.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==b.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},F.prototype.transform=function(B){var z=this.rect.x;z>S.WORLD_BOUNDARY?z=S.WORLD_BOUNDARY:z<-S.WORLD_BOUNDARY&&(z=-S.WORLD_BOUNDARY);var Y=this.rect.y;Y>S.WORLD_BOUNDARY?Y=S.WORLD_BOUNDARY:Y<-S.WORLD_BOUNDARY&&(Y=-S.WORLD_BOUNDARY);var nt=new M(z,Y),ot=B.inverseTransformPoint(nt);this.setLocation(ot.x,ot.y)},F.prototype.getLeft=function(){return this.rect.x},F.prototype.getRight=function(){return this.rect.x+this.rect.width},F.prototype.getTop=function(){return this.rect.y},F.prototype.getBottom=function(){return this.rect.y+this.rect.height},F.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},f.exports=F},function(f,g,w){function v(b,E){b==null&&E==null?(this.x=0,this.y=0):(this.x=b,this.y=E)}v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.setX=function(b){this.x=b},v.prototype.setY=function(b){this.y=b},v.prototype.getDifference=function(b){return new DimensionD(this.x-b.x,this.y-b.y)},v.prototype.getCopy=function(){return new v(this.x,this.y)},v.prototype.translate=function(b){return this.x+=b.width,this.y+=b.height,this},f.exports=v},function(f,g,w){var v=w(2),b=w(10),E=w(0),S=w(6),_=w(3),M=w(1),F=w(13),R=w(12),B=w(11);function z(nt,ot,ft){v.call(this,ft),this.estimatedSize=b.MIN_VALUE,this.margin=E.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=nt,ot!=null&&ot instanceof S?this.graphManager=ot:ot!=null&&ot instanceof Layout&&(this.graphManager=ot.graphManager)}z.prototype=Object.create(v.prototype);for(var Y in v)z[Y]=v[Y];z.prototype.getNodes=function(){return this.nodes},z.prototype.getEdges=function(){return this.edges},z.prototype.getGraphManager=function(){return this.graphManager},z.prototype.getParent=function(){return this.parent},z.prototype.getLeft=function(){return this.left},z.prototype.getRight=function(){return this.right},z.prototype.getTop=function(){return this.top},z.prototype.getBottom=function(){return this.bottom},z.prototype.isConnected=function(){return this.isConnected},z.prototype.add=function(nt,ot,ft){if(ot==null&&ft==null){var wt=nt;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(wt)>-1)throw"Node already in graph!";return wt.owner=this,this.getNodes().push(wt),wt}else{var mt=nt;if(!(this.getNodes().indexOf(ot)>-1&&this.getNodes().indexOf(ft)>-1))throw"Source or target not in graph!";if(!(ot.owner==ft.owner&&ot.owner==this))throw"Both owners must be this graph!";return ot.owner!=ft.owner?null:(mt.source=ot,mt.target=ft,mt.isInterGraph=!1,this.getEdges().push(mt),ot.edges.push(mt),ft!=ot&&ft.edges.push(mt),mt)}},z.prototype.remove=function(nt){var ot=nt;if(nt instanceof _){if(ot==null)throw"Node is null!";if(!(ot.owner!=null&&ot.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var ft=ot.edges.slice(),wt,mt=ft.length,ct=0;ct<mt;ct++)wt=ft[ct],wt.isInterGraph?this.graphManager.remove(wt):wt.source.owner.remove(wt);var rt=this.nodes.indexOf(ot);if(rt==-1)throw"Node not in owner node list!";this.nodes.splice(rt,1)}else if(nt instanceof M){var wt=nt;if(wt==null)throw"Edge is null!";if(!(wt.source!=null&&wt.target!=null))throw"Source and/or target is null!";if(!(wt.source.owner!=null&&wt.target.owner!=null&&wt.source.owner==this&&wt.target.owner==this))throw"Source and/or target owner is invalid!";var it=wt.source.edges.indexOf(wt),gt=wt.target.edges.indexOf(wt);if(!(it>-1&&gt>-1))throw"Source and/or target doesn't know this edge!";wt.source.edges.splice(it,1),wt.target!=wt.source&&wt.target.edges.splice(gt,1);var rt=wt.source.owner.getEdges().indexOf(wt);if(rt==-1)throw"Not in owner's edge list!";wt.source.owner.getEdges().splice(rt,1)}},z.prototype.updateLeftTop=function(){for(var nt=b.MAX_VALUE,ot=b.MAX_VALUE,ft,wt,mt,ct=this.getNodes(),rt=ct.length,it=0;it<rt;it++){var gt=ct[it];ft=gt.getTop(),wt=gt.getLeft(),nt>ft&&(nt=ft),ot>wt&&(ot=wt)}return nt==b.MAX_VALUE?null:(ct[0].getParent().paddingLeft!=null?mt=ct[0].getParent().paddingLeft:mt=this.margin,this.left=ot-mt,this.top=nt-mt,new R(this.left,this.top))},z.prototype.updateBounds=function(nt){for(var ot=b.MAX_VALUE,ft=-b.MAX_VALUE,wt=b.MAX_VALUE,mt=-b.MAX_VALUE,ct,rt,it,gt,Q,dt=this.nodes,K=dt.length,yt=0;yt<K;yt++){var V=dt[yt];nt&&V.child!=null&&V.updateBounds(),ct=V.getLeft(),rt=V.getRight(),it=V.getTop(),gt=V.getBottom(),ot>ct&&(ot=ct),ft<rt&&(ft=rt),wt>it&&(wt=it),mt<gt&&(mt=gt)}var Ot=new F(ot,wt,ft-ot,mt-wt);ot==b.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),dt[0].getParent().paddingLeft!=null?Q=dt[0].getParent().paddingLeft:Q=this.margin,this.left=Ot.x-Q,this.right=Ot.x+Ot.width+Q,this.top=Ot.y-Q,this.bottom=Ot.y+Ot.height+Q},z.calculateBounds=function(nt){for(var ot=b.MAX_VALUE,ft=-b.MAX_VALUE,wt=b.MAX_VALUE,mt=-b.MAX_VALUE,ct,rt,it,gt,Q=nt.length,dt=0;dt<Q;dt++){var K=nt[dt];ct=K.getLeft(),rt=K.getRight(),it=K.getTop(),gt=K.getBottom(),ot>ct&&(ot=ct),ft<rt&&(ft=rt),wt>it&&(wt=it),mt<gt&&(mt=gt)}var yt=new F(ot,wt,ft-ot,mt-wt);return yt},z.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},z.prototype.getEstimatedSize=function(){if(this.estimatedSize==b.MIN_VALUE)throw"assert failed";return this.estimatedSize},z.prototype.calcEstimatedSize=function(){for(var nt=0,ot=this.nodes,ft=ot.length,wt=0;wt<ft;wt++){var mt=ot[wt];nt+=mt.calcEstimatedSize()}return nt==0?this.estimatedSize=E.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=nt/Math.sqrt(this.nodes.length),this.estimatedSize},z.prototype.updateConnected=function(){var nt=this;if(this.nodes.length==0){this.isConnected=!0;return}var ot=new B,ft=new Set,wt=this.nodes[0],mt,ct,rt=wt.withChildren();for(rt.forEach(function(yt){ot.push(yt),ft.add(yt)});ot.length!==0;){wt=ot.shift(),mt=wt.getEdges();for(var it=mt.length,gt=0;gt<it;gt++){var Q=mt[gt];if(ct=Q.getOtherEndInGraph(wt,this),ct!=null&&!ft.has(ct)){var dt=ct.withChildren();dt.forEach(function(yt){ot.push(yt),ft.add(yt)})}}}if(this.isConnected=!1,ft.size>=this.nodes.length){var K=0;ft.forEach(function(yt){yt.owner==nt&&K++}),K==this.nodes.length&&(this.isConnected=!0)}},f.exports=z},function(f,g,w){var v,b=w(1);function E(S){v=w(5),this.layout=S,this.graphs=[],this.edges=[]}E.prototype.addRoot=function(){var S=this.layout.newGraph(),_=this.layout.newNode(null),M=this.add(S,_);return this.setRootGraph(M),this.rootGraph},E.prototype.add=function(S,_,M,F,R){if(M==null&&F==null&&R==null){if(S==null)throw"Graph is null!";if(_==null)throw"Parent node is null!";if(this.graphs.indexOf(S)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(S),S.parent!=null)throw"Already has a parent!";if(_.child!=null)throw"Already has a child!";return S.parent=_,_.child=S,S}else{R=M,F=_,M=S;var B=F.getOwner(),z=R.getOwner();if(!(B!=null&&B.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(z!=null&&z.getGraphManager()==this))throw"Target not in this graph mgr!";if(B==z)return M.isInterGraph=!1,B.add(M,F,R);if(M.isInterGraph=!0,M.source=F,M.target=R,this.edges.indexOf(M)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(M),!(M.source!=null&&M.target!=null))throw"Edge source and/or target is null!";if(!(M.source.edges.indexOf(M)==-1&&M.target.edges.indexOf(M)==-1))throw"Edge already in source and/or target incidency list!";return M.source.edges.push(M),M.target.edges.push(M),M}},E.prototype.remove=function(S){if(S instanceof v){var _=S;if(_.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(_==this.rootGraph||_.parent!=null&&_.parent.graphManager==this))throw"Invalid parent node!";var M=[];M=M.concat(_.getEdges());for(var F,R=M.length,B=0;B<R;B++)F=M[B],_.remove(F);var z=[];z=z.concat(_.getNodes());var Y;R=z.length;for(var B=0;B<R;B++)Y=z[B],_.remove(Y);_==this.rootGraph&&this.setRootGraph(null);var nt=this.graphs.indexOf(_);this.graphs.splice(nt,1),_.parent=null}else if(S instanceof b){if(F=S,F==null)throw"Edge is null!";if(!F.isInterGraph)throw"Not an inter-graph edge!";if(!(F.source!=null&&F.target!=null))throw"Source and/or target is null!";if(!(F.source.edges.indexOf(F)!=-1&&F.target.edges.indexOf(F)!=-1))throw"Source and/or target doesn't know this edge!";var nt=F.source.edges.indexOf(F);if(F.source.edges.splice(nt,1),nt=F.target.edges.indexOf(F),F.target.edges.splice(nt,1),!(F.source.owner!=null&&F.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(F.source.owner.getGraphManager().edges.indexOf(F)==-1)throw"Not in owner graph manager's edge list!";var nt=F.source.owner.getGraphManager().edges.indexOf(F);F.source.owner.getGraphManager().edges.splice(nt,1)}},E.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},E.prototype.getGraphs=function(){return this.graphs},E.prototype.getAllNodes=function(){if(this.allNodes==null){for(var S=[],_=this.getGraphs(),M=_.length,F=0;F<M;F++)S=S.concat(_[F].getNodes());this.allNodes=S}return this.allNodes},E.prototype.resetAllNodes=function(){this.allNodes=null},E.prototype.resetAllEdges=function(){this.allEdges=null},E.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},E.prototype.getAllEdges=function(){if(this.allEdges==null){var S=[],_=this.getGraphs();_.length;for(var M=0;M<_.length;M++)S=S.concat(_[M].getEdges());S=S.concat(this.edges),this.allEdges=S}return this.allEdges},E.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},E.prototype.setAllNodesToApplyGravitation=function(S){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=S},E.prototype.getRoot=function(){return this.rootGraph},E.prototype.setRootGraph=function(S){if(S.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=S,S.parent==null&&(S.parent=this.layout.newNode("Root node"))},E.prototype.getLayout=function(){return this.layout},E.prototype.isOneAncestorOfOther=function(S,_){if(!(S!=null&&_!=null))throw"assert failed";if(S==_)return!0;var M=S.getOwner(),F;do{if(F=M.getParent(),F==null)break;if(F==_)return!0;if(M=F.getOwner(),M==null)break}while(!0);M=_.getOwner();do{if(F=M.getParent(),F==null)break;if(F==S)return!0;if(M=F.getOwner(),M==null)break}while(!0);return!1},E.prototype.calcLowestCommonAncestors=function(){for(var S,_,M,F,R,B=this.getAllEdges(),z=B.length,Y=0;Y<z;Y++){if(S=B[Y],_=S.source,M=S.target,S.lca=null,S.sourceInLca=_,S.targetInLca=M,_==M){S.lca=_.getOwner();continue}for(F=_.getOwner();S.lca==null;){for(S.targetInLca=M,R=M.getOwner();S.lca==null;){if(R==F){S.lca=R;break}if(R==this.rootGraph)break;if(S.lca!=null)throw"assert failed";S.targetInLca=R.getParent(),R=S.targetInLca.getOwner()}if(F==this.rootGraph)break;S.lca==null&&(S.sourceInLca=F.getParent(),F=S.sourceInLca.getOwner())}if(S.lca==null)throw"assert failed"}},E.prototype.calcLowestCommonAncestor=function(S,_){if(S==_)return S.getOwner();var M=S.getOwner();do{if(M==null)break;var F=_.getOwner();do{if(F==null)break;if(F==M)return F;F=F.getParent().getOwner()}while(!0);M=M.getParent().getOwner()}while(!0);return M},E.prototype.calcInclusionTreeDepths=function(S,_){S==null&&_==null&&(S=this.rootGraph,_=1);for(var M,F=S.getNodes(),R=F.length,B=0;B<R;B++)M=F[B],M.inclusionTreeDepth=_,M.child!=null&&this.calcInclusionTreeDepths(M.child,_+1)},E.prototype.includesInvalidEdge=function(){for(var S,_=this.edges.length,M=0;M<_;M++)if(S=this.edges[M],this.isOneAncestorOfOther(S.source,S.target))return!0;return!1},f.exports=E},function(f,g,w){var v=w(0);function b(){}for(var E in v)b[E]=v[E];b.MAX_ITERATIONS=2500,b.DEFAULT_EDGE_LENGTH=50,b.DEFAULT_SPRING_STRENGTH=.45,b.DEFAULT_REPULSION_STRENGTH=4500,b.DEFAULT_GRAVITY_STRENGTH=.4,b.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,b.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,b.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,b.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,b.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,b.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,b.COOLING_ADAPTATION_FACTOR=.33,b.ADAPTATION_LOWER_NODE_LIMIT=1e3,b.ADAPTATION_UPPER_NODE_LIMIT=5e3,b.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,b.MAX_NODE_DISPLACEMENT=b.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,b.MIN_REPULSION_DIST=b.DEFAULT_EDGE_LENGTH/10,b.CONVERGENCE_CHECK_PERIOD=100,b.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,b.MIN_EDGE_LENGTH=1,b.GRID_CALCULATION_CHECK_PERIOD=10,f.exports=b},function(f,g,w){var v=w(12);function b(){}b.calcSeparationAmount=function(E,S,_,M){if(!E.intersects(S))throw"assert failed";var F=new Array(2);this.decideDirectionsForOverlappingNodes(E,S,F),_[0]=Math.min(E.getRight(),S.getRight())-Math.max(E.x,S.x),_[1]=Math.min(E.getBottom(),S.getBottom())-Math.max(E.y,S.y),E.getX()<=S.getX()&&E.getRight()>=S.getRight()?_[0]+=Math.min(S.getX()-E.getX(),E.getRight()-S.getRight()):S.getX()<=E.getX()&&S.getRight()>=E.getRight()&&(_[0]+=Math.min(E.getX()-S.getX(),S.getRight()-E.getRight())),E.getY()<=S.getY()&&E.getBottom()>=S.getBottom()?_[1]+=Math.min(S.getY()-E.getY(),E.getBottom()-S.getBottom()):S.getY()<=E.getY()&&S.getBottom()>=E.getBottom()&&(_[1]+=Math.min(E.getY()-S.getY(),S.getBottom()-E.getBottom()));var R=Math.abs((S.getCenterY()-E.getCenterY())/(S.getCenterX()-E.getCenterX()));S.getCenterY()===E.getCenterY()&&S.getCenterX()===E.getCenterX()&&(R=1);var B=R*_[0],z=_[1]/R;_[0]<z?z=_[0]:B=_[1],_[0]=-1*F[0]*(z/2+M),_[1]=-1*F[1]*(B/2+M)},b.decideDirectionsForOverlappingNodes=function(E,S,_){E.getCenterX()<S.getCenterX()?_[0]=-1:_[0]=1,E.getCenterY()<S.getCenterY()?_[1]=-1:_[1]=1},b.getIntersection2=function(E,S,_){var M=E.getCenterX(),F=E.getCenterY(),R=S.getCenterX(),B=S.getCenterY();if(E.intersects(S))return _[0]=M,_[1]=F,_[2]=R,_[3]=B,!0;var z=E.getX(),Y=E.getY(),nt=E.getRight(),ot=E.getX(),ft=E.getBottom(),wt=E.getRight(),mt=E.getWidthHalf(),ct=E.getHeightHalf(),rt=S.getX(),it=S.getY(),gt=S.getRight(),Q=S.getX(),dt=S.getBottom(),K=S.getRight(),yt=S.getWidthHalf(),V=S.getHeightHalf(),Ot=!1,It=!1;if(M===R){if(F>B)return _[0]=M,_[1]=Y,_[2]=R,_[3]=dt,!1;if(F<B)return _[0]=M,_[1]=ft,_[2]=R,_[3]=it,!1}else if(F===B){if(M>R)return _[0]=z,_[1]=F,_[2]=gt,_[3]=B,!1;if(M<R)return _[0]=nt,_[1]=F,_[2]=rt,_[3]=B,!1}else{var jt=E.height/E.width,xt=S.height/S.width,Ft=(B-F)/(R-M),Ct=void 0,kt=void 0,Gt=void 0,Fe=void 0,Mt=void 0,pn=void 0;if(-jt===Ft?M>R?(_[0]=ot,_[1]=ft,Ot=!0):(_[0]=nt,_[1]=Y,Ot=!0):jt===Ft&&(M>R?(_[0]=z,_[1]=Y,Ot=!0):(_[0]=wt,_[1]=ft,Ot=!0)),-xt===Ft?R>M?(_[2]=Q,_[3]=dt,It=!0):(_[2]=gt,_[3]=it,It=!0):xt===Ft&&(R>M?(_[2]=rt,_[3]=it,It=!0):(_[2]=K,_[3]=dt,It=!0)),Ot&&It)return!1;if(M>R?F>B?(Ct=this.getCardinalDirection(jt,Ft,4),kt=this.getCardinalDirection(xt,Ft,2)):(Ct=this.getCardinalDirection(-jt,Ft,3),kt=this.getCardinalDirection(-xt,Ft,1)):F>B?(Ct=this.getCardinalDirection(-jt,Ft,1),kt=this.getCardinalDirection(-xt,Ft,3)):(Ct=this.getCardinalDirection(jt,Ft,2),kt=this.getCardinalDirection(xt,Ft,4)),!Ot)switch(Ct){case 1:Fe=Y,Gt=M+-ct/Ft,_[0]=Gt,_[1]=Fe;break;case 2:Gt=wt,Fe=F+mt*Ft,_[0]=Gt,_[1]=Fe;break;case 3:Fe=ft,Gt=M+ct/Ft,_[0]=Gt,_[1]=Fe;break;case 4:Gt=ot,Fe=F+-mt*Ft,_[0]=Gt,_[1]=Fe;break}if(!It)switch(kt){case 1:pn=it,Mt=R+-V/Ft,_[2]=Mt,_[3]=pn;break;case 2:Mt=K,pn=B+yt*Ft,_[2]=Mt,_[3]=pn;break;case 3:pn=dt,Mt=R+V/Ft,_[2]=Mt,_[3]=pn;break;case 4:Mt=Q,pn=B+-yt*Ft,_[2]=Mt,_[3]=pn;break}}return!1},b.getCardinalDirection=function(E,S,_){return E>S?_:1+_%4},b.getIntersection=function(E,S,_,M){if(M==null)return this.getIntersection2(E,S,_);var F=E.x,R=E.y,B=S.x,z=S.y,Y=_.x,nt=_.y,ot=M.x,ft=M.y,wt=void 0,mt=void 0,ct=void 0,rt=void 0,it=void 0,gt=void 0,Q=void 0,dt=void 0,K=void 0;return ct=z-R,it=F-B,Q=B*R-F*z,rt=ft-nt,gt=Y-ot,dt=ot*nt-Y*ft,K=ct*gt-rt*it,K===0?null:(wt=(it*dt-gt*Q)/K,mt=(rt*Q-ct*dt)/K,new v(wt,mt))},b.angleOfVector=function(E,S,_,M){var F=void 0;return E!==_?(F=Math.atan((M-S)/(_-E)),_<E?F+=Math.PI:M<S&&(F+=this.TWO_PI)):M<S?F=this.ONE_AND_HALF_PI:F=this.HALF_PI,F},b.doIntersect=function(E,S,_,M){var F=E.x,R=E.y,B=S.x,z=S.y,Y=_.x,nt=_.y,ot=M.x,ft=M.y,wt=(B-F)*(ft-nt)-(ot-Y)*(z-R);if(wt===0)return!1;var mt=((ft-nt)*(ot-F)+(Y-ot)*(ft-R))/wt,ct=((R-z)*(ot-F)+(B-F)*(ft-R))/wt;return 0<mt&&mt<1&&0<ct&&ct<1},b.HALF_PI=.5*Math.PI,b.ONE_AND_HALF_PI=1.5*Math.PI,b.TWO_PI=2*Math.PI,b.THREE_PI=3*Math.PI,f.exports=b},function(f,g,w){function v(){}v.sign=function(b){return b>0?1:b<0?-1:0},v.floor=function(b){return b<0?Math.ceil(b):Math.floor(b)},v.ceil=function(b){return b<0?Math.floor(b):Math.ceil(b)},f.exports=v},function(f,g,w){function v(){}v.MAX_VALUE=2147483647,v.MIN_VALUE=-2147483648,f.exports=v},function(f,g,w){var v=function(){function F(R,B){for(var z=0;z<B.length;z++){var Y=B[z];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(R,Y.key,Y)}}return function(R,B,z){return B&&F(R.prototype,B),z&&F(R,z),R}}();function b(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}var E=function(R){return{value:R,next:null,prev:null}},S=function(R,B,z,Y){return R!==null?R.next=B:Y.head=B,z!==null?z.prev=B:Y.tail=B,B.prev=R,B.next=z,Y.length++,B},_=function(R,B){var z=R.prev,Y=R.next;return z!==null?z.next=Y:B.head=Y,Y!==null?Y.prev=z:B.tail=z,R.prev=R.next=null,B.length--,R},M=function(){function F(R){var B=this;b(this,F),this.length=0,this.head=null,this.tail=null,R!=null&&R.forEach(function(z){return B.push(z)})}return v(F,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(B,z){return S(z.prev,E(B),z,this)}},{key:"insertAfter",value:function(B,z){return S(z,E(B),z.next,this)}},{key:"insertNodeBefore",value:function(B,z){return S(z.prev,B,z,this)}},{key:"insertNodeAfter",value:function(B,z){return S(z,B,z.next,this)}},{key:"push",value:function(B){return S(this.tail,E(B),null,this)}},{key:"unshift",value:function(B){return S(null,E(B),this.head,this)}},{key:"remove",value:function(B){return _(B,this)}},{key:"pop",value:function(){return _(this.tail,this).value}},{key:"popNode",value:function(){return _(this.tail,this)}},{key:"shift",value:function(){return _(this.head,this).value}},{key:"shiftNode",value:function(){return _(this.head,this)}},{key:"get_object_at",value:function(B){if(B<=this.length()){for(var z=1,Y=this.head;z<B;)Y=Y.next,z++;return Y.value}}},{key:"set_object_at",value:function(B,z){if(B<=this.length()){for(var Y=1,nt=this.head;Y<B;)nt=nt.next,Y++;nt.value=z}}}]),F}();f.exports=M},function(f,g,w){function v(b,E,S){this.x=null,this.y=null,b==null&&E==null&&S==null?(this.x=0,this.y=0):typeof b=="number"&&typeof E=="number"&&S==null?(this.x=b,this.y=E):b.constructor.name=="Point"&&E==null&&S==null&&(S=b,this.x=S.x,this.y=S.y)}v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.getLocation=function(){return new v(this.x,this.y)},v.prototype.setLocation=function(b,E,S){b.constructor.name=="Point"&&E==null&&S==null?(S=b,this.setLocation(S.x,S.y)):typeof b=="number"&&typeof E=="number"&&S==null&&(parseInt(b)==b&&parseInt(E)==E?this.move(b,E):(this.x=Math.floor(b+.5),this.y=Math.floor(E+.5)))},v.prototype.move=function(b,E){this.x=b,this.y=E},v.prototype.translate=function(b,E){this.x+=b,this.y+=E},v.prototype.equals=function(b){if(b.constructor.name=="Point"){var E=b;return this.x==E.x&&this.y==E.y}return this==b},v.prototype.toString=function(){return new v().constructor.name+"[x="+this.x+",y="+this.y+"]"},f.exports=v},function(f,g,w){function v(b,E,S,_){this.x=0,this.y=0,this.width=0,this.height=0,b!=null&&E!=null&&S!=null&&_!=null&&(this.x=b,this.y=E,this.width=S,this.height=_)}v.prototype.getX=function(){return this.x},v.prototype.setX=function(b){this.x=b},v.prototype.getY=function(){return this.y},v.prototype.setY=function(b){this.y=b},v.prototype.getWidth=function(){return this.width},v.prototype.setWidth=function(b){this.width=b},v.prototype.getHeight=function(){return this.height},v.prototype.setHeight=function(b){this.height=b},v.prototype.getRight=function(){return this.x+this.width},v.prototype.getBottom=function(){return this.y+this.height},v.prototype.intersects=function(b){return!(this.getRight()<b.x||this.getBottom()<b.y||b.getRight()<this.x||b.getBottom()<this.y)},v.prototype.getCenterX=function(){return this.x+this.width/2},v.prototype.getMinX=function(){return this.getX()},v.prototype.getMaxX=function(){return this.getX()+this.width},v.prototype.getCenterY=function(){return this.y+this.height/2},v.prototype.getMinY=function(){return this.getY()},v.prototype.getMaxY=function(){return this.getY()+this.height},v.prototype.getWidthHalf=function(){return this.width/2},v.prototype.getHeightHalf=function(){return this.height/2},f.exports=v},function(f,g,w){var 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};function b(){}b.lastID=0,b.createID=function(E){return b.isPrimitive(E)?E:(E.uniqueID!=null||(E.uniqueID=b.getString(),b.lastID++),E.uniqueID)},b.getString=function(E){return E==null&&(E=b.lastID),"Object#"+E},b.isPrimitive=function(E){var S=typeof E>"u"?"undefined":v(E);return E==null||S!="object"&&S!="function"},f.exports=b},function(f,g,w){function v(Y){if(Array.isArray(Y)){for(var nt=0,ot=Array(Y.length);nt<Y.length;nt++)ot[nt]=Y[nt];return ot}else return Array.from(Y)}var b=w(0),E=w(6),S=w(3),_=w(1),M=w(5),F=w(4),R=w(17),B=w(27);function z(Y){B.call(this),this.layoutQuality=b.QUALITY,this.createBendsAsNeeded=b.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=b.DEFAULT_INCREMENTAL,this.animationOnLayout=b.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=b.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=b.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=b.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new E(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,Y!=null&&(this.isRemoteUse=Y)}z.RANDOM_SEED=1,z.prototype=Object.create(B.prototype),z.prototype.getGraphManager=function(){return this.graphManager},z.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},z.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},z.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},z.prototype.newGraphManager=function(){var Y=new E(this);return this.graphManager=Y,Y},z.prototype.newGraph=function(Y){return new M(null,this.graphManager,Y)},z.prototype.newNode=function(Y){return new S(this.graphManager,Y)},z.prototype.newEdge=function(Y){return new _(null,null,Y)},z.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},z.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var Y;return this.checkLayoutSuccess()?Y=!1:Y=this.layout(),b.ANIMATE==="during"?!1:(Y&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,Y)},z.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},z.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var Y=this.graphManager.getAllEdges(),nt=0;nt<Y.length;nt++)Y[nt];for(var ot=this.graphManager.getRoot().getNodes(),nt=0;nt<ot.length;nt++)ot[nt];this.update(this.graphManager.getRoot())}},z.prototype.update=function(Y){if(Y==null)this.update2();else if(Y instanceof S){var nt=Y;if(nt.getChild()!=null)for(var ot=nt.getChild().getNodes(),ft=0;ft<ot.length;ft++)update(ot[ft]);if(nt.vGraphObject!=null){var wt=nt.vGraphObject;wt.update(nt)}}else if(Y instanceof _){var mt=Y;if(mt.vGraphObject!=null){var ct=mt.vGraphObject;ct.update(mt)}}else if(Y instanceof M){var rt=Y;if(rt.vGraphObject!=null){var it=rt.vGraphObject;it.update(rt)}}},z.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=b.QUALITY,this.animationDuringLayout=b.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=b.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=b.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=b.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=b.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=b.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},z.prototype.transform=function(Y){if(Y==null)this.transform(new F(0,0));else{var nt=new R,ot=this.graphManager.getRoot().updateLeftTop();if(ot!=null){nt.setWorldOrgX(Y.x),nt.setWorldOrgY(Y.y),nt.setDeviceOrgX(ot.x),nt.setDeviceOrgY(ot.y);for(var ft=this.getAllNodes(),wt,mt=0;mt<ft.length;mt++)wt=ft[mt],wt.transform(nt)}}},z.prototype.positionNodesRandomly=function(Y){if(Y==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var nt,ot,ft=Y.getNodes(),wt=0;wt<ft.length;wt++)nt=ft[wt],ot=nt.getChild(),ot==null||ot.getNodes().length==0?nt.scatter():(this.positionNodesRandomly(ot),nt.updateBounds())},z.prototype.getFlatForest=function(){for(var Y=[],nt=!0,ot=this.graphManager.getRoot().getNodes(),ft=!0,wt=0;wt<ot.length;wt++)ot[wt].getChild()!=null&&(ft=!1);if(!ft)return Y;var mt=new Set,ct=[],rt=new Map,it=[];for(it=it.concat(ot);it.length>0&&nt;){for(ct.push(it[0]);ct.length>0&&nt;){var gt=ct[0];ct.splice(0,1),mt.add(gt);for(var Q=gt.getEdges(),wt=0;wt<Q.length;wt++){var dt=Q[wt].getOtherEnd(gt);if(rt.get(gt)!=dt)if(!mt.has(dt))ct.push(dt),rt.set(dt,gt);else{nt=!1;break}}}if(!nt)Y=[];else{var K=[].concat(v(mt));Y.push(K);for(var wt=0;wt<K.length;wt++){var yt=K[wt],V=it.indexOf(yt);V>-1&&it.splice(V,1)}mt=new Set,rt=new Map}}return Y},z.prototype.createDummyNodesForBendpoints=function(Y){for(var nt=[],ot=Y.source,ft=this.graphManager.calcLowestCommonAncestor(Y.source,Y.target),wt=0;wt<Y.bendpoints.length;wt++){var mt=this.newNode(null);mt.setRect(new Point(0,0),new Dimension(1,1)),ft.add(mt);var ct=this.newEdge(null);this.graphManager.add(ct,ot,mt),nt.add(mt),ot=mt}var ct=this.newEdge(null);return this.graphManager.add(ct,ot,Y.target),this.edgeToDummyNodes.set(Y,nt),Y.isInterGraph()?this.graphManager.remove(Y):ft.remove(Y),nt},z.prototype.createBendpointsFromDummyNodes=function(){var Y=[];Y=Y.concat(this.graphManager.getAllEdges()),Y=[].concat(v(this.edgeToDummyNodes.keys())).concat(Y);for(var nt=0;nt<Y.length;nt++){var ot=Y[nt];if(ot.bendpoints.length>0){for(var ft=this.edgeToDummyNodes.get(ot),wt=0;wt<ft.length;wt++){var mt=ft[wt],ct=new F(mt.getCenterX(),mt.getCenterY()),rt=ot.bendpoints.get(wt);rt.x=ct.x,rt.y=ct.y,mt.getOwner().remove(mt)}this.graphManager.add(ot,ot.source,ot.target)}}},z.transform=function(Y,nt,ot,ft){if(ot!=null&&ft!=null){var wt=nt;if(Y<=50){var mt=nt/ot;wt-=(nt-mt)/50*(50-Y)}else{var ct=nt*ft;wt+=(ct-nt)/50*(Y-50)}return wt}else{var rt,it;return Y<=50?(rt=9*nt/500,it=nt/10):(rt=9*nt/50,it=-8*nt),rt*Y+it}},z.findCenterOfTree=function(Y){var nt=[];nt=nt.concat(Y);var ot=[],ft=new Map,wt=!1,mt=null;(nt.length==1||nt.length==2)&&(wt=!0,mt=nt[0]);for(var ct=0;ct<nt.length;ct++){var rt=nt[ct],it=rt.getNeighborsList().size;ft.set(rt,rt.getNeighborsList().size),it==1&&ot.push(rt)}var gt=[];for(gt=gt.concat(ot);!wt;){var Q=[];Q=Q.concat(gt),gt=[];for(var ct=0;ct<nt.length;ct++){var rt=nt[ct],dt=nt.indexOf(rt);dt>=0&&nt.splice(dt,1);var K=rt.getNeighborsList();K.forEach(function(Ot){if(ot.indexOf(Ot)<0){var It=ft.get(Ot),jt=It-1;jt==1&&gt.push(Ot),ft.set(Ot,jt)}})}ot=ot.concat(gt),(nt.length==1||nt.length==2)&&(wt=!0,mt=nt[0])}return mt},z.prototype.setGraphManager=function(Y){this.graphManager=Y},f.exports=z},function(f,g,w){function v(){}v.seed=1,v.x=0,v.nextDouble=function(){return v.x=Math.sin(v.seed++)*1e4,v.x-Math.floor(v.x)},f.exports=v},function(f,g,w){var v=w(4);function b(E,S){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}b.prototype.getWorldOrgX=function(){return this.lworldOrgX},b.prototype.setWorldOrgX=function(E){this.lworldOrgX=E},b.prototype.getWorldOrgY=function(){return this.lworldOrgY},b.prototype.setWorldOrgY=function(E){this.lworldOrgY=E},b.prototype.getWorldExtX=function(){return this.lworldExtX},b.prototype.setWorldExtX=function(E){this.lworldExtX=E},b.prototype.getWorldExtY=function(){return this.lworldExtY},b.prototype.setWorldExtY=function(E){this.lworldExtY=E},b.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},b.prototype.setDeviceOrgX=function(E){this.ldeviceOrgX=E},b.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},b.prototype.setDeviceOrgY=function(E){this.ldeviceOrgY=E},b.prototype.getDeviceExtX=function(){return this.ldeviceExtX},b.prototype.setDeviceExtX=function(E){this.ldeviceExtX=E},b.prototype.getDeviceExtY=function(){return this.ldeviceExtY},b.prototype.setDeviceExtY=function(E){this.ldeviceExtY=E},b.prototype.transformX=function(E){var S=0,_=this.lworldExtX;return _!=0&&(S=this.ldeviceOrgX+(E-this.lworldOrgX)*this.ldeviceExtX/_),S},b.prototype.transformY=function(E){var S=0,_=this.lworldExtY;return _!=0&&(S=this.ldeviceOrgY+(E-this.lworldOrgY)*this.ldeviceExtY/_),S},b.prototype.inverseTransformX=function(E){var S=0,_=this.ldeviceExtX;return _!=0&&(S=this.lworldOrgX+(E-this.ldeviceOrgX)*this.lworldExtX/_),S},b.prototype.inverseTransformY=function(E){var S=0,_=this.ldeviceExtY;return _!=0&&(S=this.lworldOrgY+(E-this.ldeviceOrgY)*this.lworldExtY/_),S},b.prototype.inverseTransformPoint=function(E){var S=new v(this.inverseTransformX(E.x),this.inverseTransformY(E.y));return S},f.exports=b},function(f,g,w){function v(B){if(Array.isArray(B)){for(var z=0,Y=Array(B.length);z<B.length;z++)Y[z]=B[z];return Y}else return Array.from(B)}var b=w(15),E=w(7),S=w(0),_=w(8),M=w(9);function F(){b.call(this),this.useSmartIdealEdgeLengthCalculation=E.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=E.DEFAULT_EDGE_LENGTH,this.springConstant=E.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=E.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=E.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=E.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=E.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=E.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*E.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=E.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=E.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=E.MAX_ITERATIONS}F.prototype=Object.create(b.prototype);for(var R in b)F[R]=b[R];F.prototype.initParameters=function(){b.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=E.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},F.prototype.calcIdealEdgeLengths=function(){for(var B,z,Y,nt,ot,ft,wt=this.getGraphManager().getAllEdges(),mt=0;mt<wt.length;mt++)B=wt[mt],B.idealLength=this.idealEdgeLength,B.isInterGraph&&(Y=B.getSource(),nt=B.getTarget(),ot=B.getSourceInLca().getEstimatedSize(),ft=B.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(B.idealLength+=ot+ft-2*S.SIMPLE_NODE_SIZE),z=B.getLca().getInclusionTreeDepth(),B.idealLength+=E.DEFAULT_EDGE_LENGTH*E.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(Y.getInclusionTreeDepth()+nt.getInclusionTreeDepth()-2*z))},F.prototype.initSpringEmbedder=function(){var B=this.getAllNodes().length;this.incremental?(B>E.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*E.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(B-E.ADAPTATION_LOWER_NODE_LIMIT)/(E.ADAPTATION_UPPER_NODE_LIMIT-E.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-E.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=E.MAX_NODE_DISPLACEMENT_INCREMENTAL):(B>E.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(E.COOLING_ADAPTATION_FACTOR,1-(B-E.ADAPTATION_LOWER_NODE_LIMIT)/(E.ADAPTATION_UPPER_NODE_LIMIT-E.ADAPTATION_LOWER_NODE_LIMIT)*(1-E.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=E.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},F.prototype.calcSpringForces=function(){for(var B=this.getAllEdges(),z,Y=0;Y<B.length;Y++)z=B[Y],this.calcSpringForce(z,z.idealLength)},F.prototype.calcRepulsionForces=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Y,nt,ot,ft,wt=this.getAllNodes(),mt;if(this.useFRGridVariant)for(this.totalIterations%E.GRID_CALCULATION_CHECK_PERIOD==1&&B&&this.updateGrid(),mt=new Set,Y=0;Y<wt.length;Y++)ot=wt[Y],this.calculateRepulsionForceOfANode(ot,mt,B,z),mt.add(ot);else for(Y=0;Y<wt.length;Y++)for(ot=wt[Y],nt=Y+1;nt<wt.length;nt++)ft=wt[nt],ot.getOwner()==ft.getOwner()&&this.calcRepulsionForce(ot,ft)},F.prototype.calcGravitationalForces=function(){for(var B,z=this.getAllNodesToApplyGravitation(),Y=0;Y<z.length;Y++)B=z[Y],this.calcGravitationalForce(B)},F.prototype.moveNodes=function(){for(var B=this.getAllNodes(),z,Y=0;Y<B.length;Y++)z=B[Y],z.move()},F.prototype.calcSpringForce=function(B,z){var Y=B.getSource(),nt=B.getTarget(),ot,ft,wt,mt;if(this.uniformLeafNodeSizes&&Y.getChild()==null&&nt.getChild()==null)B.updateLengthSimple();else if(B.updateLength(),B.isOverlapingSourceAndTarget)return;ot=B.getLength(),ot!=0&&(ft=this.springConstant*(ot-z),wt=ft*(B.lengthX/ot),mt=ft*(B.lengthY/ot),Y.springForceX+=wt,Y.springForceY+=mt,nt.springForceX-=wt,nt.springForceY-=mt)},F.prototype.calcRepulsionForce=function(B,z){var Y=B.getRect(),nt=z.getRect(),ot=new Array(2),ft=new Array(4),wt,mt,ct,rt,it,gt,Q;if(Y.intersects(nt)){_.calcSeparationAmount(Y,nt,ot,E.DEFAULT_EDGE_LENGTH/2),gt=2*ot[0],Q=2*ot[1];var dt=B.noOfChildren*z.noOfChildren/(B.noOfChildren+z.noOfChildren);B.repulsionForceX-=dt*gt,B.repulsionForceY-=dt*Q,z.repulsionForceX+=dt*gt,z.repulsionForceY+=dt*Q}else this.uniformLeafNodeSizes&&B.getChild()==null&&z.getChild()==null?(wt=nt.getCenterX()-Y.getCenterX(),mt=nt.getCenterY()-Y.getCenterY()):(_.getIntersection(Y,nt,ft),wt=ft[2]-ft[0],mt=ft[3]-ft[1]),Math.abs(wt)<E.MIN_REPULSION_DIST&&(wt=M.sign(wt)*E.MIN_REPULSION_DIST),Math.abs(mt)<E.MIN_REPULSION_DIST&&(mt=M.sign(mt)*E.MIN_REPULSION_DIST),ct=wt*wt+mt*mt,rt=Math.sqrt(ct),it=this.repulsionConstant*B.noOfChildren*z.noOfChildren/ct,gt=it*wt/rt,Q=it*mt/rt,B.repulsionForceX-=gt,B.repulsionForceY-=Q,z.repulsionForceX+=gt,z.repulsionForceY+=Q},F.prototype.calcGravitationalForce=function(B){var z,Y,nt,ot,ft,wt,mt,ct;z=B.getOwner(),Y=(z.getRight()+z.getLeft())/2,nt=(z.getTop()+z.getBottom())/2,ot=B.getCenterX()-Y,ft=B.getCenterY()-nt,wt=Math.abs(ot)+B.getWidth()/2,mt=Math.abs(ft)+B.getHeight()/2,B.getOwner()==this.graphManager.getRoot()?(ct=z.getEstimatedSize()*this.gravityRangeFactor,(wt>ct||mt>ct)&&(B.gravitationForceX=-this.gravityConstant*ot,B.gravitationForceY=-this.gravityConstant*ft)):(ct=z.getEstimatedSize()*this.compoundGravityRangeFactor,(wt>ct||mt>ct)&&(B.gravitationForceX=-this.gravityConstant*ot*this.compoundGravityConstant,B.gravitationForceY=-this.gravityConstant*ft*this.compoundGravityConstant))},F.prototype.isConverged=function(){var B,z=!1;return this.totalIterations>this.maxIterations/3&&(z=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),B=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,B||z},F.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},F.prototype.calcNoOfChildrenForAllNodes=function(){for(var B,z=this.graphManager.getAllNodes(),Y=0;Y<z.length;Y++)B=z[Y],B.noOfChildren=B.getNoOfChildren()},F.prototype.calcGrid=function(B){var z=0,Y=0;z=parseInt(Math.ceil((B.getRight()-B.getLeft())/this.repulsionRange)),Y=parseInt(Math.ceil((B.getBottom()-B.getTop())/this.repulsionRange));for(var nt=new Array(z),ot=0;ot<z;ot++)nt[ot]=new Array(Y);for(var ot=0;ot<z;ot++)for(var ft=0;ft<Y;ft++)nt[ot][ft]=new Array;return nt},F.prototype.addNodeToGrid=function(B,z,Y){var nt=0,ot=0,ft=0,wt=0;nt=parseInt(Math.floor((B.getRect().x-z)/this.repulsionRange)),ot=parseInt(Math.floor((B.getRect().width+B.getRect().x-z)/this.repulsionRange)),ft=parseInt(Math.floor((B.getRect().y-Y)/this.repulsionRange)),wt=parseInt(Math.floor((B.getRect().height+B.getRect().y-Y)/this.repulsionRange));for(var mt=nt;mt<=ot;mt++)for(var ct=ft;ct<=wt;ct++)this.grid[mt][ct].push(B),B.setGridCoordinates(nt,ot,ft,wt)},F.prototype.updateGrid=function(){var B,z,Y=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),B=0;B<Y.length;B++)z=Y[B],this.addNodeToGrid(z,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},F.prototype.calculateRepulsionForceOfANode=function(B,z,Y,nt){if(this.totalIterations%E.GRID_CALCULATION_CHECK_PERIOD==1&&Y||nt){var ot=new Set;B.surrounding=new Array;for(var ft,wt=this.grid,mt=B.startX-1;mt<B.finishX+2;mt++)for(var ct=B.startY-1;ct<B.finishY+2;ct++)if(!(mt<0||ct<0||mt>=wt.length||ct>=wt[0].length)){for(var rt=0;rt<wt[mt][ct].length;rt++)if(ft=wt[mt][ct][rt],!(B.getOwner()!=ft.getOwner()||B==ft)&&!z.has(ft)&&!ot.has(ft)){var it=Math.abs(B.getCenterX()-ft.getCenterX())-(B.getWidth()/2+ft.getWidth()/2),gt=Math.abs(B.getCenterY()-ft.getCenterY())-(B.getHeight()/2+ft.getHeight()/2);it<=this.repulsionRange&&gt<=this.repulsionRange&&ot.add(ft)}}B.surrounding=[].concat(v(ot))}for(mt=0;mt<B.surrounding.length;mt++)this.calcRepulsionForce(B,B.surrounding[mt])},F.prototype.calcRepulsionRange=function(){return 0},f.exports=F},function(f,g,w){var v=w(1),b=w(7);function E(_,M,F){v.call(this,_,M,F),this.idealLength=b.DEFAULT_EDGE_LENGTH}E.prototype=Object.create(v.prototype);for(var S in v)E[S]=v[S];f.exports=E},function(f,g,w){var v=w(3);function b(S,_,M,F){v.call(this,S,_,M,F),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}b.prototype=Object.create(v.prototype);for(var E in v)b[E]=v[E];b.prototype.setGridCoordinates=function(S,_,M,F){this.startX=S,this.finishX=_,this.startY=M,this.finishY=F},f.exports=b},function(f,g,w){function v(b,E){this.width=0,this.height=0,b!==null&&E!==null&&(this.height=E,this.width=b)}v.prototype.getWidth=function(){return this.width},v.prototype.setWidth=function(b){this.width=b},v.prototype.getHeight=function(){return this.height},v.prototype.setHeight=function(b){this.height=b},f.exports=v},function(f,g,w){var v=w(14);function b(){this.map={},this.keys=[]}b.prototype.put=function(E,S){var _=v.createID(E);this.contains(_)||(this.map[_]=S,this.keys.push(E))},b.prototype.contains=function(E){return v.createID(E),this.map[E]!=null},b.prototype.get=function(E){var S=v.createID(E);return this.map[S]},b.prototype.keySet=function(){return this.keys},f.exports=b},function(f,g,w){var v=w(14);function b(){this.set={}}b.prototype.add=function(E){var S=v.createID(E);this.contains(S)||(this.set[S]=E)},b.prototype.remove=function(E){delete this.set[v.createID(E)]},b.prototype.clear=function(){this.set={}},b.prototype.contains=function(E){return this.set[v.createID(E)]==E},b.prototype.isEmpty=function(){return this.size()===0},b.prototype.size=function(){return Object.keys(this.set).length},b.prototype.addAllTo=function(E){for(var S=Object.keys(this.set),_=S.length,M=0;M<_;M++)E.push(this.set[S[M]])},b.prototype.size=function(){return Object.keys(this.set).length},b.prototype.addAll=function(E){for(var S=E.length,_=0;_<S;_++){var M=E[_];this.add(M)}},f.exports=b},function(f,g,w){var v=function(){function _(M,F){for(var R=0;R<F.length;R++){var B=F[R];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(M,B.key,B)}}return function(M,F,R){return F&&_(M.prototype,F),R&&_(M,R),M}}();function b(_,M){if(!(_ instanceof M))throw new TypeError("Cannot call a class as a function")}var E=w(11),S=function(){function _(M,F){b(this,_),(F!==null||F!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var R=void 0;M instanceof E?R=M.size():R=M.length,this._quicksort(M,0,R-1)}return v(_,[{key:"_quicksort",value:function(F,R,B){if(R<B){var z=this._partition(F,R,B);this._quicksort(F,R,z),this._quicksort(F,z+1,B)}}},{key:"_partition",value:function(F,R,B){for(var z=this._get(F,R),Y=R,nt=B;;){for(;this.compareFunction(z,this._get(F,nt));)nt--;for(;this.compareFunction(this._get(F,Y),z);)Y++;if(Y<nt)this._swap(F,Y,nt),Y++,nt--;else return nt}}},{key:"_get",value:function(F,R){return F instanceof E?F.get_object_at(R):F[R]}},{key:"_set",value:function(F,R,B){F instanceof E?F.set_object_at(R,B):F[R]=B}},{key:"_swap",value:function(F,R,B){var z=this._get(F,R);this._set(F,R,this._get(F,B)),this._set(F,B,z)}},{key:"_defaultCompareFunction",value:function(F,R){return R>F}}]),_}();f.exports=S},function(f,g,w){var v=function(){function S(_,M){for(var F=0;F<M.length;F++){var R=M[F];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}return function(_,M,F){return M&&S(_.prototype,M),F&&S(_,F),_}}();function b(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}var E=function(){function S(_,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;b(this,S),this.sequence1=_,this.sequence2=M,this.match_score=F,this.mismatch_penalty=R,this.gap_penalty=B,this.iMax=_.length+1,this.jMax=M.length+1,this.grid=new Array(this.iMax);for(var z=0;z<this.iMax;z++){this.grid[z]=new Array(this.jMax);for(var Y=0;Y<this.jMax;Y++)this.grid[z][Y]=0}this.tracebackGrid=new Array(this.iMax);for(var nt=0;nt<this.iMax;nt++){this.tracebackGrid[nt]=new Array(this.jMax);for(var ot=0;ot<this.jMax;ot++)this.tracebackGrid[nt][ot]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return v(S,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var M=1;M<this.jMax;M++)this.grid[0][M]=this.grid[0][M-1]+this.gap_penalty,this.tracebackGrid[0][M]=[!1,!1,!0];for(var F=1;F<this.iMax;F++)this.grid[F][0]=this.grid[F-1][0]+this.gap_penalty,this.tracebackGrid[F][0]=[!1,!0,!1];for(var R=1;R<this.iMax;R++)for(var B=1;B<this.jMax;B++){var z=void 0;this.sequence1[R-1]===this.sequence2[B-1]?z=this.grid[R-1][B-1]+this.match_score:z=this.grid[R-1][B-1]+this.mismatch_penalty;var Y=this.grid[R-1][B]+this.gap_penalty,nt=this.grid[R][B-1]+this.gap_penalty,ot=[z,Y,nt],ft=this.arrayAllMaxIndexes(ot);this.grid[R][B]=ot[ft[0]],this.tracebackGrid[R][B]=[ft.includes(0),ft.includes(1),ft.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var M=[];for(M.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});M[0];){var F=M[0],R=this.tracebackGrid[F.pos[0]][F.pos[1]];R[0]&&M.push({pos:[F.pos[0]-1,F.pos[1]-1],seq1:this.sequence1[F.pos[0]-1]+F.seq1,seq2:this.sequence2[F.pos[1]-1]+F.seq2}),R[1]&&M.push({pos:[F.pos[0]-1,F.pos[1]],seq1:this.sequence1[F.pos[0]-1]+F.seq1,seq2:"-"+F.seq2}),R[2]&&M.push({pos:[F.pos[0],F.pos[1]-1],seq1:"-"+F.seq1,seq2:this.sequence2[F.pos[1]-1]+F.seq2}),F.pos[0]===0&&F.pos[1]===0&&this.alignments.push({sequence1:F.seq1,sequence2:F.seq2}),M.shift()}return this.alignments}},{key:"getAllIndexes",value:function(M,F){for(var R=[],B=-1;(B=M.indexOf(F,B+1))!==-1;)R.push(B);return R}},{key:"arrayAllMaxIndexes",value:function(M){return this.getAllIndexes(M,Math.max.apply(null,M))}}]),S}();f.exports=E},function(f,g,w){var v=function(){};v.FDLayout=w(18),v.FDLayoutConstants=w(7),v.FDLayoutEdge=w(19),v.FDLayoutNode=w(20),v.DimensionD=w(21),v.HashMap=w(22),v.HashSet=w(23),v.IGeometry=w(8),v.IMath=w(9),v.Integer=w(10),v.Point=w(12),v.PointD=w(4),v.RandomSeed=w(16),v.RectangleD=w(13),v.Transform=w(17),v.UniqueIDGeneretor=w(14),v.Quicksort=w(24),v.LinkedList=w(11),v.LGraphObject=w(2),v.LGraph=w(5),v.LEdge=w(1),v.LGraphManager=w(6),v.LNode=w(3),v.Layout=w(15),v.LayoutConstants=w(0),v.NeedlemanWunsch=w(25),f.exports=v},function(f,g,w){function v(){this.listeners=[]}var b=v.prototype;b.addListener=function(E,S){this.listeners.push({event:E,callback:S})},b.removeListener=function(E,S){for(var _=this.listeners.length;_>=0;_--){var M=this.listeners[_];M.event===E&&M.callback===S&&this.listeners.splice(_,1)}},b.emit=function(E,S){for(var _=0;_<this.listeners.length;_++){var M=this.listeners[_];E===M.event&&M.callback(S)}},f.exports=v}])})}(b2t)),b2t.exports}var XHt;function ren(){return XHt||(XHt=1,function(i,a){(function(g,w){i.exports=w(nen())})(Z0,function(f){return function(g){var w={};function v(b){if(w[b])return w[b].exports;var E=w[b]={i:b,l:!1,exports:{}};return g[b].call(E.exports,E,E.exports,v),E.l=!0,E.exports}return v.m=g,v.c=w,v.i=function(b){return b},v.d=function(b,E,S){v.o(b,E)||Object.defineProperty(b,E,{configurable:!1,enumerable:!0,get:S})},v.n=function(b){var E=b&&b.__esModule?function(){return b.default}:function(){return b};return v.d(E,"a",E),E},v.o=function(b,E){return Object.prototype.hasOwnProperty.call(b,E)},v.p="",v(v.s=7)}([function(g,w){g.exports=f},function(g,w,v){var b=v(0).FDLayoutConstants;function E(){}for(var S in b)E[S]=b[S];E.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,E.DEFAULT_RADIAL_SEPARATION=b.DEFAULT_EDGE_LENGTH,E.DEFAULT_COMPONENT_SEPERATION=60,E.TILE=!0,E.TILING_PADDING_VERTICAL=10,E.TILING_PADDING_HORIZONTAL=10,E.TREE_REDUCTION_ON_INCREMENTAL=!1,g.exports=E},function(g,w,v){var b=v(0).FDLayoutEdge;function E(_,M,F){b.call(this,_,M,F)}E.prototype=Object.create(b.prototype);for(var S in b)E[S]=b[S];g.exports=E},function(g,w,v){var b=v(0).LGraph;function E(_,M,F){b.call(this,_,M,F)}E.prototype=Object.create(b.prototype);for(var S in b)E[S]=b[S];g.exports=E},function(g,w,v){var b=v(0).LGraphManager;function E(_){b.call(this,_)}E.prototype=Object.create(b.prototype);for(var S in b)E[S]=b[S];g.exports=E},function(g,w,v){var b=v(0).FDLayoutNode,E=v(0).IMath;function S(M,F,R,B){b.call(this,M,F,R,B)}S.prototype=Object.create(b.prototype);for(var _ in b)S[_]=b[_];S.prototype.move=function(){var M=this.graphManager.getLayout();this.displacementX=M.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=M.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>M.coolingFactor*M.maxNodeDisplacement&&(this.displacementX=M.coolingFactor*M.maxNodeDisplacement*E.sign(this.displacementX)),Math.abs(this.displacementY)>M.coolingFactor*M.maxNodeDisplacement&&(this.displacementY=M.coolingFactor*M.maxNodeDisplacement*E.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),M.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},S.prototype.propogateDisplacementToChildren=function(M,F){for(var R=this.getChild().getNodes(),B,z=0;z<R.length;z++)B=R[z],B.getChild()==null?(B.moveBy(M,F),B.displacementX+=M,B.displacementY+=F):B.propogateDisplacementToChildren(M,F)},S.prototype.setPred1=function(M){this.pred1=M},S.prototype.getPred1=function(){return pred1},S.prototype.getPred2=function(){return pred2},S.prototype.setNext=function(M){this.next=M},S.prototype.getNext=function(){return next},S.prototype.setProcessed=function(M){this.processed=M},S.prototype.isProcessed=function(){return processed},g.exports=S},function(g,w,v){var b=v(0).FDLayout,E=v(4),S=v(3),_=v(5),M=v(2),F=v(1),R=v(0).FDLayoutConstants,B=v(0).LayoutConstants,z=v(0).Point,Y=v(0).PointD,nt=v(0).Layout,ot=v(0).Integer,ft=v(0).IGeometry,wt=v(0).LGraph,mt=v(0).Transform;function ct(){b.call(this),this.toBeTiled={}}ct.prototype=Object.create(b.prototype);for(var rt in b)ct[rt]=b[rt];ct.prototype.newGraphManager=function(){var it=new E(this);return this.graphManager=it,it},ct.prototype.newGraph=function(it){return new S(null,this.graphManager,it)},ct.prototype.newNode=function(it){return new _(this.graphManager,it)},ct.prototype.newEdge=function(it){return new M(null,null,it)},ct.prototype.initParameters=function(){b.prototype.initParameters.call(this,arguments),this.isSubLayout||(F.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=F.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=F.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=R.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=R.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=R.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=R.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=R.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=R.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/R.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=R.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},ct.prototype.layout=function(){var it=B.DEFAULT_CREATE_BENDS_AS_NEEDED;return it&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},ct.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(F.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var gt=new Set(this.getAllNodes()),Q=this.nodesWithGravity.filter(function(yt){return gt.has(yt)});this.graphManager.setAllNodesToApplyGravitation(Q)}}else{var it=this.getFlatForest();if(it.length>0)this.positionNodesRadially(it);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var gt=new Set(this.getAllNodes()),Q=this.nodesWithGravity.filter(function(dt){return gt.has(dt)});this.graphManager.setAllNodesToApplyGravitation(Q),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},ct.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%R.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var it=new Set(this.getAllNodes()),gt=this.nodesWithGravity.filter(function(K){return it.has(K)});this.graphManager.setAllNodesToApplyGravitation(gt),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=R.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=R.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var Q=!this.isTreeGrowing&&!this.isGrowthFinished,dt=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(Q,dt),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},ct.prototype.getPositionsData=function(){for(var it=this.graphManager.getAllNodes(),gt={},Q=0;Q<it.length;Q++){var dt=it[Q].rect,K=it[Q].id;gt[K]={id:K,x:dt.getCenterX(),y:dt.getCenterY(),w:dt.width,h:dt.height}}return gt},ct.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var it=!1;if(R.ANIMATE==="during")this.emit("layoutstarted");else{for(;!it;)it=this.tick();this.graphManager.updateBounds()}},ct.prototype.calculateNodesToApplyGravitationTo=function(){var it=[],gt,Q=this.graphManager.getGraphs(),dt=Q.length,K;for(K=0;K<dt;K++)gt=Q[K],gt.updateConnected(),gt.isConnected||(it=it.concat(gt.getNodes()));return it},ct.prototype.createBendpoints=function(){var it=[];it=it.concat(this.graphManager.getAllEdges());var gt=new Set,Q;for(Q=0;Q<it.length;Q++){var dt=it[Q];if(!gt.has(dt)){var K=dt.getSource(),yt=dt.getTarget();if(K==yt)dt.getBendpoints().push(new Y),dt.getBendpoints().push(new Y),this.createDummyNodesForBendpoints(dt),gt.add(dt);else{var V=[];if(V=V.concat(K.getEdgeListToNode(yt)),V=V.concat(yt.getEdgeListToNode(K)),!gt.has(V[0])){if(V.length>1){var Ot;for(Ot=0;Ot<V.length;Ot++){var It=V[Ot];It.getBendpoints().push(new Y),this.createDummyNodesForBendpoints(It)}}V.forEach(function(jt){gt.add(jt)})}}}if(gt.size==it.length)break}},ct.prototype.positionNodesRadially=function(it){for(var gt=new z(0,0),Q=Math.ceil(Math.sqrt(it.length)),dt=0,K=0,yt=0,V=new Y(0,0),Ot=0;Ot<it.length;Ot++){Ot%Q==0&&(yt=0,K=dt,Ot!=0&&(K+=F.DEFAULT_COMPONENT_SEPERATION),dt=0);var It=it[Ot],jt=nt.findCenterOfTree(It);gt.x=yt,gt.y=K,V=ct.radialLayout(It,jt,gt),V.y>dt&&(dt=Math.floor(V.y)),yt=Math.floor(V.x+F.DEFAULT_COMPONENT_SEPERATION)}this.transform(new Y(B.WORLD_CENTER_X-V.x/2,B.WORLD_CENTER_Y-V.y/2))},ct.radialLayout=function(it,gt,Q){var dt=Math.max(this.maxDiagonalInTree(it),F.DEFAULT_RADIAL_SEPARATION);ct.branchRadialLayout(gt,null,0,359,0,dt);var K=wt.calculateBounds(it),yt=new mt;yt.setDeviceOrgX(K.getMinX()),yt.setDeviceOrgY(K.getMinY()),yt.setWorldOrgX(Q.x),yt.setWorldOrgY(Q.y);for(var V=0;V<it.length;V++){var Ot=it[V];Ot.transform(yt)}var It=new Y(K.getMaxX(),K.getMaxY());return yt.inverseTransformPoint(It)},ct.branchRadialLayout=function(it,gt,Q,dt,K,yt){var V=(dt-Q+1)/2;V<0&&(V+=180);var Ot=(V+Q)%360,It=Ot*ft.TWO_PI/360,jt=K*Math.cos(It),xt=K*Math.sin(It);it.setCenter(jt,xt);var Ft=[];Ft=Ft.concat(it.getEdges());var Ct=Ft.length;gt!=null&&Ct--;for(var kt=0,Gt=Ft.length,Fe,Mt=it.getEdgesBetween(gt);Mt.length>1;){var pn=Mt[0];Mt.splice(0,1);var Ae=Ft.indexOf(pn);Ae>=0&&Ft.splice(Ae,1),Gt--,Ct--}gt!=null?Fe=(Ft.indexOf(Mt[0])+1)%Gt:Fe=0;for(var ye=Math.abs(dt-Q)/Ct,tn=Fe;kt!=Ct;tn=++tn%Gt){var sn=Ft[tn].getOtherEnd(it);if(sn!=gt){var be=(Q+kt*ye)%360,Ne=(be+ye)%360;ct.branchRadialLayout(sn,it,be,Ne,K+yt,yt),kt++}}},ct.maxDiagonalInTree=function(it){for(var gt=ot.MIN_VALUE,Q=0;Q<it.length;Q++){var dt=it[Q],K=dt.getDiagonal();K>gt&&(gt=K)}return gt},ct.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},ct.prototype.groupZeroDegreeMembers=function(){var it=this,gt={};this.memberGroups={},this.idToDummyNode={};for(var Q=[],dt=this.graphManager.getAllNodes(),K=0;K<dt.length;K++){var yt=dt[K],V=yt.getParent();this.getNodeDegreeWithChildren(yt)===0&&(V.id==null||!this.getToBeTiled(V))&&Q.push(yt)}for(var K=0;K<Q.length;K++){var yt=Q[K],Ot=yt.getParent().id;typeof gt[Ot]>"u"&&(gt[Ot]=[]),gt[Ot]=gt[Ot].concat(yt)}Object.keys(gt).forEach(function(It){if(gt[It].length>1){var jt="DummyCompound_"+It;it.memberGroups[jt]=gt[It];var xt=gt[It][0].getParent(),Ft=new _(it.graphManager);Ft.id=jt,Ft.paddingLeft=xt.paddingLeft||0,Ft.paddingRight=xt.paddingRight||0,Ft.paddingBottom=xt.paddingBottom||0,Ft.paddingTop=xt.paddingTop||0,it.idToDummyNode[jt]=Ft;var Ct=it.getGraphManager().add(it.newGraph(),Ft),kt=xt.getChild();kt.add(Ft);for(var Gt=0;Gt<gt[It].length;Gt++){var Fe=gt[It][Gt];kt.remove(Fe),Ct.add(Fe)}}})},ct.prototype.clearCompounds=function(){var it={},gt={};this.performDFSOnCompounds();for(var Q=0;Q<this.compoundOrder.length;Q++)gt[this.compoundOrder[Q].id]=this.compoundOrder[Q],it[this.compoundOrder[Q].id]=[].concat(this.compoundOrder[Q].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[Q].getChild()),this.compoundOrder[Q].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(it,gt)},ct.prototype.clearZeroDegreeMembers=function(){var it=this,gt=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(Q){var dt=it.idToDummyNode[Q];gt[Q]=it.tileNodes(it.memberGroups[Q],dt.paddingLeft+dt.paddingRight),dt.rect.width=gt[Q].width,dt.rect.height=gt[Q].height})},ct.prototype.repopulateCompounds=function(){for(var it=this.compoundOrder.length-1;it>=0;it--){var gt=this.compoundOrder[it],Q=gt.id,dt=gt.paddingLeft,K=gt.paddingTop;this.adjustLocations(this.tiledMemberPack[Q],gt.rect.x,gt.rect.y,dt,K)}},ct.prototype.repopulateZeroDegreeMembers=function(){var it=this,gt=this.tiledZeroDegreePack;Object.keys(gt).forEach(function(Q){var dt=it.idToDummyNode[Q],K=dt.paddingLeft,yt=dt.paddingTop;it.adjustLocations(gt[Q],dt.rect.x,dt.rect.y,K,yt)})},ct.prototype.getToBeTiled=function(it){var gt=it.id;if(this.toBeTiled[gt]!=null)return this.toBeTiled[gt];var Q=it.getChild();if(Q==null)return this.toBeTiled[gt]=!1,!1;for(var dt=Q.getNodes(),K=0;K<dt.length;K++){var yt=dt[K];if(this.getNodeDegree(yt)>0)return this.toBeTiled[gt]=!1,!1;if(yt.getChild()==null){this.toBeTiled[yt.id]=!1;continue}if(!this.getToBeTiled(yt))return this.toBeTiled[gt]=!1,!1}return this.toBeTiled[gt]=!0,!0},ct.prototype.getNodeDegree=function(it){it.id;for(var gt=it.getEdges(),Q=0,dt=0;dt<gt.length;dt++){var K=gt[dt];K.getSource().id!==K.getTarget().id&&(Q=Q+1)}return Q},ct.prototype.getNodeDegreeWithChildren=function(it){var gt=this.getNodeDegree(it);if(it.getChild()==null)return gt;for(var Q=it.getChild().getNodes(),dt=0;dt<Q.length;dt++){var K=Q[dt];gt+=this.getNodeDegreeWithChildren(K)}return gt},ct.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},ct.prototype.fillCompexOrderByDFS=function(it){for(var gt=0;gt<it.length;gt++){var Q=it[gt];Q.getChild()!=null&&this.fillCompexOrderByDFS(Q.getChild().getNodes()),this.getToBeTiled(Q)&&this.compoundOrder.push(Q)}},ct.prototype.adjustLocations=function(it,gt,Q,dt,K){gt+=dt,Q+=K;for(var yt=gt,V=0;V<it.rows.length;V++){var Ot=it.rows[V];gt=yt;for(var It=0,jt=0;jt<Ot.length;jt++){var xt=Ot[jt];xt.rect.x=gt,xt.rect.y=Q,gt+=xt.rect.width+it.horizontalPadding,xt.rect.height>It&&(It=xt.rect.height)}Q+=It+it.verticalPadding}},ct.prototype.tileCompoundMembers=function(it,gt){var Q=this;this.tiledMemberPack=[],Object.keys(it).forEach(function(dt){var K=gt[dt];Q.tiledMemberPack[dt]=Q.tileNodes(it[dt],K.paddingLeft+K.paddingRight),K.rect.width=Q.tiledMemberPack[dt].width,K.rect.height=Q.tiledMemberPack[dt].height})},ct.prototype.tileNodes=function(it,gt){var Q=F.TILING_PADDING_VERTICAL,dt=F.TILING_PADDING_HORIZONTAL,K={rows:[],rowWidth:[],rowHeight:[],width:0,height:gt,verticalPadding:Q,horizontalPadding:dt};it.sort(function(Ot,It){return Ot.rect.width*Ot.rect.height>It.rect.width*It.rect.height?-1:Ot.rect.width*Ot.rect.height<It.rect.width*It.rect.height?1:0});for(var yt=0;yt<it.length;yt++){var V=it[yt];K.rows.length==0?this.insertNodeToRow(K,V,0,gt):this.canAddHorizontal(K,V.rect.width,V.rect.height)?this.insertNodeToRow(K,V,this.getShortestRowIndex(K),gt):this.insertNodeToRow(K,V,K.rows.length,gt),this.shiftToLastRow(K)}return K},ct.prototype.insertNodeToRow=function(it,gt,Q,dt){var K=dt;if(Q==it.rows.length){var yt=[];it.rows.push(yt),it.rowWidth.push(K),it.rowHeight.push(0)}var V=it.rowWidth[Q]+gt.rect.width;it.rows[Q].length>0&&(V+=it.horizontalPadding),it.rowWidth[Q]=V,it.width<V&&(it.width=V);var Ot=gt.rect.height;Q>0&&(Ot+=it.verticalPadding);var It=0;Ot>it.rowHeight[Q]&&(It=it.rowHeight[Q],it.rowHeight[Q]=Ot,It=it.rowHeight[Q]-It),it.height+=It,it.rows[Q].push(gt)},ct.prototype.getShortestRowIndex=function(it){for(var gt=-1,Q=Number.MAX_VALUE,dt=0;dt<it.rows.length;dt++)it.rowWidth[dt]<Q&&(gt=dt,Q=it.rowWidth[dt]);return gt},ct.prototype.getLongestRowIndex=function(it){for(var gt=-1,Q=Number.MIN_VALUE,dt=0;dt<it.rows.length;dt++)it.rowWidth[dt]>Q&&(gt=dt,Q=it.rowWidth[dt]);return gt},ct.prototype.canAddHorizontal=function(it,gt,Q){var dt=this.getShortestRowIndex(it);if(dt<0)return!0;var K=it.rowWidth[dt];if(K+it.horizontalPadding+gt<=it.width)return!0;var yt=0;it.rowHeight[dt]<Q&&dt>0&&(yt=Q+it.verticalPadding-it.rowHeight[dt]);var V;it.width-K>=gt+it.horizontalPadding?V=(it.height+yt)/(K+gt+it.horizontalPadding):V=(it.height+yt)/it.width,yt=Q+it.verticalPadding;var Ot;return it.width<gt?Ot=(it.height+yt)/gt:Ot=(it.height+yt)/it.width,Ot<1&&(Ot=1/Ot),V<1&&(V=1/V),V<Ot},ct.prototype.shiftToLastRow=function(it){var gt=this.getLongestRowIndex(it),Q=it.rowWidth.length-1,dt=it.rows[gt],K=dt[dt.length-1],yt=K.width+it.horizontalPadding;if(it.width-it.rowWidth[Q]>yt&&gt!=Q){dt.splice(-1,1),it.rows[Q].push(K),it.rowWidth[gt]=it.rowWidth[gt]-yt,it.rowWidth[Q]=it.rowWidth[Q]+yt,it.width=it.rowWidth[instance.getLongestRowIndex(it)];for(var V=Number.MIN_VALUE,Ot=0;Ot<dt.length;Ot++)dt[Ot].height>V&&(V=dt[Ot].height);gt>0&&(V+=it.verticalPadding);var It=it.rowHeight[gt]+it.rowHeight[Q];it.rowHeight[gt]=V,it.rowHeight[Q]<K.height+it.verticalPadding&&(it.rowHeight[Q]=K.height+it.verticalPadding);var jt=it.rowHeight[gt]+it.rowHeight[Q];it.height+=jt-It,this.shiftToLastRow(it)}},ct.prototype.tilingPreLayout=function(){F.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},ct.prototype.tilingPostLayout=function(){F.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},ct.prototype.reduceTrees=function(){for(var it=[],gt=!0,Q;gt;){var dt=this.graphManager.getAllNodes(),K=[];gt=!1;for(var yt=0;yt<dt.length;yt++)Q=dt[yt],Q.getEdges().length==1&&!Q.getEdges()[0].isInterGraph&&Q.getChild()==null&&(K.push([Q,Q.getEdges()[0],Q.getOwner()]),gt=!0);if(gt==!0){for(var V=[],Ot=0;Ot<K.length;Ot++)K[Ot][0].getEdges().length==1&&(V.push(K[Ot]),K[Ot][0].getOwner().remove(K[Ot][0]));it.push(V),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=it},ct.prototype.growTree=function(it){for(var gt=it.length,Q=it[gt-1],dt,K=0;K<Q.length;K++)dt=Q[K],this.findPlaceforPrunedNode(dt),dt[2].add(dt[0]),dt[2].add(dt[1],dt[1].source,dt[1].target);it.splice(it.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},ct.prototype.findPlaceforPrunedNode=function(it){var gt,Q,dt=it[0];dt==it[1].source?Q=it[1].target:Q=it[1].source;var K=Q.startX,yt=Q.finishX,V=Q.startY,Ot=Q.finishY,It=0,jt=0,xt=0,Ft=0,Ct=[It,xt,jt,Ft];if(V>0)for(var kt=K;kt<=yt;kt++)Ct[0]+=this.grid[kt][V-1].length+this.grid[kt][V].length-1;if(yt<this.grid.length-1)for(var kt=V;kt<=Ot;kt++)Ct[1]+=this.grid[yt+1][kt].length+this.grid[yt][kt].length-1;if(Ot<this.grid[0].length-1)for(var kt=K;kt<=yt;kt++)Ct[2]+=this.grid[kt][Ot+1].length+this.grid[kt][Ot].length-1;if(K>0)for(var kt=V;kt<=Ot;kt++)Ct[3]+=this.grid[K-1][kt].length+this.grid[K][kt].length-1;for(var Gt=ot.MAX_VALUE,Fe,Mt,pn=0;pn<Ct.length;pn++)Ct[pn]<Gt?(Gt=Ct[pn],Fe=1,Mt=pn):Ct[pn]==Gt&&Fe++;if(Fe==3&&Gt==0)Ct[0]==0&&Ct[1]==0&&Ct[2]==0?gt=1:Ct[0]==0&&Ct[1]==0&&Ct[3]==0?gt=0:Ct[0]==0&&Ct[2]==0&&Ct[3]==0?gt=3:Ct[1]==0&&Ct[2]==0&&Ct[3]==0&&(gt=2);else if(Fe==2&&Gt==0){var Ae=Math.floor(Math.random()*2);Ct[0]==0&&Ct[1]==0?Ae==0?gt=0:gt=1:Ct[0]==0&&Ct[2]==0?Ae==0?gt=0:gt=2:Ct[0]==0&&Ct[3]==0?Ae==0?gt=0:gt=3:Ct[1]==0&&Ct[2]==0?Ae==0?gt=1:gt=2:Ct[1]==0&&Ct[3]==0?Ae==0?gt=1:gt=3:Ae==0?gt=2:gt=3}else if(Fe==4&&Gt==0){var Ae=Math.floor(Math.random()*4);gt=Ae}else gt=Mt;gt==0?dt.setCenter(Q.getCenterX(),Q.getCenterY()-Q.getHeight()/2-R.DEFAULT_EDGE_LENGTH-dt.getHeight()/2):gt==1?dt.setCenter(Q.getCenterX()+Q.getWidth()/2+R.DEFAULT_EDGE_LENGTH+dt.getWidth()/2,Q.getCenterY()):gt==2?dt.setCenter(Q.getCenterX(),Q.getCenterY()+Q.getHeight()/2+R.DEFAULT_EDGE_LENGTH+dt.getHeight()/2):dt.setCenter(Q.getCenterX()-Q.getWidth()/2-R.DEFAULT_EDGE_LENGTH-dt.getWidth()/2,Q.getCenterY())},g.exports=ct},function(g,w,v){var b={};b.layoutBase=v(0),b.CoSEConstants=v(1),b.CoSEEdge=v(2),b.CoSEGraph=v(3),b.CoSEGraphManager=v(4),b.CoSELayout=v(6),b.CoSENode=v(5),g.exports=b}])})}(p2t)),p2t.exports}(function(i,a){(function(g,w){i.exports=w(ren())})(Z0,function(f){return function(g){var w={};function v(b){if(w[b])return w[b].exports;var E=w[b]={i:b,l:!1,exports:{}};return g[b].call(E.exports,E,E.exports,v),E.l=!0,E.exports}return v.m=g,v.c=w,v.i=function(b){return b},v.d=function(b,E,S){v.o(b,E)||Object.defineProperty(b,E,{configurable:!1,enumerable:!0,get:S})},v.n=function(b){var E=b&&b.__esModule?function(){return b.default}:function(){return b};return v.d(E,"a",E),E},v.o=function(b,E){return Object.prototype.hasOwnProperty.call(b,E)},v.p="",v(v.s=1)}([function(g,w){g.exports=f},function(g,w,v){var b=v(0).layoutBase.LayoutConstants,E=v(0).layoutBase.FDLayoutConstants,S=v(0).CoSEConstants,_=v(0).CoSELayout,M=v(0).CoSENode,F=v(0).layoutBase.PointD,R=v(0).layoutBase.DimensionD,B={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function z(ft,wt){var mt={};for(var ct in ft)mt[ct]=ft[ct];for(var ct in wt)mt[ct]=wt[ct];return mt}function Y(ft){this.options=z(B,ft),nt(this.options)}var nt=function(wt){wt.nodeRepulsion!=null&&(S.DEFAULT_REPULSION_STRENGTH=E.DEFAULT_REPULSION_STRENGTH=wt.nodeRepulsion),wt.idealEdgeLength!=null&&(S.DEFAULT_EDGE_LENGTH=E.DEFAULT_EDGE_LENGTH=wt.idealEdgeLength),wt.edgeElasticity!=null&&(S.DEFAULT_SPRING_STRENGTH=E.DEFAULT_SPRING_STRENGTH=wt.edgeElasticity),wt.nestingFactor!=null&&(S.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=E.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=wt.nestingFactor),wt.gravity!=null&&(S.DEFAULT_GRAVITY_STRENGTH=E.DEFAULT_GRAVITY_STRENGTH=wt.gravity),wt.numIter!=null&&(S.MAX_ITERATIONS=E.MAX_ITERATIONS=wt.numIter),wt.gravityRange!=null&&(S.DEFAULT_GRAVITY_RANGE_FACTOR=E.DEFAULT_GRAVITY_RANGE_FACTOR=wt.gravityRange),wt.gravityCompound!=null&&(S.DEFAULT_COMPOUND_GRAVITY_STRENGTH=E.DEFAULT_COMPOUND_GRAVITY_STRENGTH=wt.gravityCompound),wt.gravityRangeCompound!=null&&(S.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=E.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=wt.gravityRangeCompound),wt.initialEnergyOnIncremental!=null&&(S.DEFAULT_COOLING_FACTOR_INCREMENTAL=E.DEFAULT_COOLING_FACTOR_INCREMENTAL=wt.initialEnergyOnIncremental),wt.quality=="draft"?b.QUALITY=0:wt.quality=="proof"?b.QUALITY=2:b.QUALITY=1,S.NODE_DIMENSIONS_INCLUDE_LABELS=E.NODE_DIMENSIONS_INCLUDE_LABELS=b.NODE_DIMENSIONS_INCLUDE_LABELS=wt.nodeDimensionsIncludeLabels,S.DEFAULT_INCREMENTAL=E.DEFAULT_INCREMENTAL=b.DEFAULT_INCREMENTAL=!wt.randomize,S.ANIMATE=E.ANIMATE=b.ANIMATE=wt.animate,S.TILE=wt.tile,S.TILING_PADDING_VERTICAL=typeof wt.tilingPaddingVertical=="function"?wt.tilingPaddingVertical.call():wt.tilingPaddingVertical,S.TILING_PADDING_HORIZONTAL=typeof wt.tilingPaddingHorizontal=="function"?wt.tilingPaddingHorizontal.call():wt.tilingPaddingHorizontal};Y.prototype.run=function(){var ft,wt,mt=this.options;this.idToLNode={};var ct=this.layout=new _,rt=this;rt.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var it=ct.newGraphManager();this.gm=it;var gt=this.options.eles.nodes(),Q=this.options.eles.edges();this.root=it.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(gt),ct);for(var dt=0;dt<Q.length;dt++){var K=Q[dt],yt=this.idToLNode[K.data("source")],V=this.idToLNode[K.data("target")];if(yt!==V&&yt.getEdgesBetween(V).length==0){var Ot=it.add(ct.newEdge(),yt,V);Ot.id=K.id()}}var It=function(Ft,Ct){typeof Ft=="number"&&(Ft=Ct);var kt=Ft.data("id"),Gt=rt.idToLNode[kt];return{x:Gt.getRect().getCenterX(),y:Gt.getRect().getCenterY()}},jt=function xt(){for(var Ft=function(){mt.fit&&mt.cy.fit(mt.eles,mt.padding),ft||(ft=!0,rt.cy.one("layoutready",mt.ready),rt.cy.trigger({type:"layoutready",layout:rt}))},Ct=rt.options.refresh,kt,Gt=0;Gt<Ct&&!kt;Gt++)kt=rt.stopped||rt.layout.tick();if(kt){ct.checkLayoutSuccess()&&!ct.isSubLayout&&ct.doPostLayout(),ct.tilingPostLayout&&ct.tilingPostLayout(),ct.isLayoutFinished=!0,rt.options.eles.nodes().positions(It),Ft(),rt.cy.one("layoutstop",rt.options.stop),rt.cy.trigger({type:"layoutstop",layout:rt}),wt&&cancelAnimationFrame(wt),ft=!1;return}var Fe=rt.layout.getPositionsData();mt.eles.nodes().positions(function(Mt,pn){if(typeof Mt=="number"&&(Mt=pn),!Mt.isParent()){for(var Ae=Mt.id(),ye=Fe[Ae],tn=Mt;ye==null&&(ye=Fe[tn.data("parent")]||Fe["DummyCompound_"+tn.data("parent")],Fe[Ae]=ye,tn=tn.parent()[0],tn!=null););return ye!=null?{x:ye.x,y:ye.y}:{x:Mt.position("x"),y:Mt.position("y")}}}),Ft(),wt=requestAnimationFrame(xt)};return ct.addListener("layoutstarted",function(){rt.options.animate==="during"&&(wt=requestAnimationFrame(jt))}),ct.runLayout(),this.options.animate!=="during"&&(rt.options.eles.nodes().not(":parent").layoutPositions(rt,rt.options,It),ft=!1),this},Y.prototype.getTopMostNodes=function(ft){for(var wt={},mt=0;mt<ft.length;mt++)wt[ft[mt].id()]=!0;var ct=ft.filter(function(rt,it){typeof rt=="number"&&(rt=it);for(var gt=rt.parent()[0];gt!=null;){if(wt[gt.id()])return!1;gt=gt.parent()[0]}return!0});return ct},Y.prototype.processChildrenList=function(ft,wt,mt){for(var ct=wt.length,rt=0;rt<ct;rt++){var it=wt[rt],gt=it.children(),Q,dt=it.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(it.outerWidth()!=null&&it.outerHeight()!=null?Q=ft.add(new M(mt.graphManager,new F(it.position("x")-dt.w/2,it.position("y")-dt.h/2),new R(parseFloat(dt.w),parseFloat(dt.h)))):Q=ft.add(new M(this.graphManager)),Q.id=it.data("id"),Q.paddingLeft=parseInt(it.css("padding")),Q.paddingTop=parseInt(it.css("padding")),Q.paddingRight=parseInt(it.css("padding")),Q.paddingBottom=parseInt(it.css("padding")),this.options.nodeDimensionsIncludeLabels&&it.isParent()){var K=it.boundingBox({includeLabels:!0,includeNodes:!1}).w,yt=it.boundingBox({includeLabels:!0,includeNodes:!1}).h,V=it.css("text-halign");Q.labelWidth=K,Q.labelHeight=yt,Q.labelPos=V}if(this.idToLNode[it.data("id")]=Q,isNaN(Q.rect.x)&&(Q.rect.x=0),isNaN(Q.rect.y)&&(Q.rect.y=0),gt!=null&&gt.length>0){var Ot;Ot=mt.getGraphManager().add(mt.newGraph(),Q),this.processChildrenList(Ot,gt,mt)}}},Y.prototype.stop=function(){return this.stopped=!0,this};var ot=function(wt){wt("layout","cose-bilkent",Y)};typeof cytoscape<"u"&&ot(cytoscape),g.exports=ot}])})})(WHt);var ien=WHt.exports;const sen=e9(ien),aen=12,oen=function(i,a,f,g){a.append("path").attr("id","node-"+f.id).attr("class","node-bkg node-"+i.type2Str(f.type)).attr("d",`M0 ${f.height-5} v${-f.height+2*5} q0,-5 5,-5 h${f.width-2*5} q5,0 5,5 v${f.height-5} H0 Z`),a.append("line").attr("class","node-line-"+g).attr("x1",0).attr("y1",f.height).attr("x2",f.width).attr("y2",f.height)},cen=function(i,a,f){a.append("rect").attr("id","node-"+f.id).attr("class","node-bkg node-"+i.type2Str(f.type)).attr("height",f.height).attr("width",f.width)},uen=function(i,a,f){const g=f.width,w=f.height,v=.15*g,b=.25*g,E=.35*g,S=.2*g;a.append("path").attr("id","node-"+f.id).attr("class","node-bkg node-"+i.type2Str(f.type)).attr("d",`M0 0 a${v},${v} 0 0,1 ${g*.25},${-1*g*.1}